digiKam
slideshowsettings.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2007-02-13
7  * Description : slide show settings container.
8  *
9  * Copyright (C) 2007-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2019-2020 by Minh Nghia Duong <minhnghiaduong997 at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_SLIDESHOW_SETTINGS_PLUGIN_H
26 #define DIGIKAM_SLIDESHOW_SETTINGS_PLUGIN_H
27 
28 // Qt includes
29 
30 #include <QMap>
31 #include <QColor>
32 #include <QString>
33 #include <QFont>
34 #include <QUrl>
35 
36 // Local includes
37 
38 #include "digikam_export.h"
39 #include "previewsettings.h"
40 #include "dinfointerface.h"
41 #include "dplugingeneric.h"
42 
43 using namespace Digikam;
44 
46 {
47 
52 {
53 
54 public:
55 
56  explicit SlideShowSettings();
58 
59  void readFromConfig();
60  void writeToConfig();
61 
62  int indexOf(const QUrl&) const;
63  int count() const;
64 
65  void suffleImages();
66 
67 public:
68 
70 
75 
79  bool exifRotate;
80 
84  bool printName;
85 
89  bool printDate;
90 
95 
100 
105 
110 
115 
120 
125 
129  bool printTags;
130 
135 
140 
144  bool loop;
145 
149  bool suffle;
150 
154  int delay;
155 
160 
165 
170 
175 
180 
185 
189  QUrl imageUrl;
190 
194  QFont captionFont;
195 
200 
205 
206 private:
207 
208  static const QString configGroupName;
209  static const QString configSlideShowStartCurrentEntry;
210  static const QString configSlideShowDelayEntry;
211  static const QString configSlideShowLoopEntry;
212  static const QString configSlideShowSuffleEntry;
213  static const QString configSlideShowPrintApertureFocalEntry;
214  static const QString configSlideShowPrintCommentEntry;
215  static const QString configSlideShowPrintTitleEntry;
216  static const QString configSlideShowPrintCapIfNoTitleEntry;
217  static const QString configSlideShowPrintDateEntry;
218  static const QString configSlideShowPrintExpoSensitivityEntry;
219  static const QString configSlideShowPrintMakeModelEntry;
220  static const QString configSlideShowPrintLensModelEntry;
221  static const QString configSlideShowPrintNameEntry;
222  static const QString configSlideShowPrintTagsEntry;
223  static const QString configSlideShowPrintLabelsEntry;
224  static const QString configSlideShowPrintRatingEntry;
225  static const QString configSlideShowProgressIndicatorEntry;
226  static const QString configSlideShowCaptionFontEntry;
227  static const QString configSlideScreenEntry;
228 };
229 
230 } // namespace DigikamGenericSlideShowPlugin
231 
232 #endif // DIGIKAM_SLIDESHOW_SETTINGS_PLUGIN_H
Definition: slideshowsettings.h:52
bool printLensModel
Definition: slideshowsettings.h:104
int delay
Definition: slideshowsettings.h:154
bool autoPlayEnabled
Definition: slideshowsettings.h:159
bool showProgressIndicator
Definition: slideshowsettings.h:169
QUrl imageUrl
Definition: slideshowsettings.h:189
QList< QUrl > fileList
Definition: slideshowsettings.h:179
bool printMakeModel
Definition: slideshowsettings.h:99
DInfoInterface * iface
Definition: slideshowsettings.h:199
QList< QUrl > originalFileList
Definition: slideshowsettings.h:184
bool printComment
Definition: slideshowsettings.h:114
bool printLabels
Definition: slideshowsettings.h:134
bool printRating
Definition: slideshowsettings.h:139
bool printExpoSensitivity
Definition: slideshowsettings.h:109
bool loop
Definition: slideshowsettings.h:144
bool printTags
Definition: slideshowsettings.h:129
DPluginGeneric * plugin
Definition: slideshowsettings.h:204
bool exifRotate
Definition: slideshowsettings.h:79
int slideScreen
Definition: slideshowsettings.h:164
bool suffle
Definition: slideshowsettings.h:149
bool startWithCurrent
Global Slide Show Settings.
Definition: slideshowsettings.h:74
QFont captionFont
Definition: slideshowsettings.h:194
bool printTitle
Definition: slideshowsettings.h:119
bool printApertureFocal
Definition: slideshowsettings.h:94
bool printCapIfNoTitle
Definition: slideshowsettings.h:124
bool printName
Definition: slideshowsettings.h:84
bool printDate
Definition: slideshowsettings.h:89
PreviewSettings previewSettings
Definition: slideshowsettings.h:174
Definition: dinfointerface.h:56
Definition: dplugingeneric.h:42
Definition: previewsettings.h:35
Definition: slideshowloader.cpp:70
Definition: datefolderview.cpp:43