digiKam
Loading...
Searching...
No Matches
importsettings.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 : 2012-07-15
7 * Description : Settings for the import tool
8 *
9 * SPDX-FileCopyrightText: 2012 by Islam Wazery <wazery at ubuntu dot com>
10 * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QObject>
21#include <QFont>
22
23// Local includes
24
25#include "digikam_export.h"
26
27namespace Digikam
28{
29
30class DIGIKAM_GUI_EXPORT ImportSettings : public QObject
31{
32 Q_OBJECT
33
34public:
35
37 {
38 ShowPreview = 0,
40 OpenDefault
41 };
42
43Q_SIGNALS:
44
46
47public:
48
49 static ImportSettings* instance();
50
51 void readSettings();
52 void saveSettings();
53
54 void emitSetupChanged();
55
56 bool showToolTipsIsValid() const;
57
58 void setShowThumbbar(bool val);
59 bool getShowThumbbar() const;
60
61 void setPreviewLoadFullImageSize(bool val);
62 bool getPreviewLoadFullImageSize() const;
63
64 void setPreviewItemsWhileDownload(bool val);
65 bool getPreviewItemsWhileDownload() const;
66
67 void setPreviewShowIcons(bool val);
68 bool getPreviewShowIcons() const;
69
70 void setImageSortOrder(int order);
71 int getImageSortOrder() const;
72
73 void setImageSortBy(int sortBy);
74 int getImageSortBy() const;
75
76 void setImageSeparationMode(int mode);
77 int getImageSeparationMode() const;
78
79 void setItemLeftClickAction(int action);
80 int getItemLeftClickAction() const;
81
82 void setDefaultIconSize(int val);
83 int getDefaultIconSize() const;
84
85 void setIconViewFont(const QFont& font);
86 QFont getIconViewFont() const;
87
88 void setIconShowName(bool val);
89 bool getIconShowName() const;
90
91 void setIconShowSize(bool val);
92 bool getIconShowSize() const;
93
94 void setIconShowTitle(bool val);
95 bool getIconShowTitle() const;
96
97 void setIconShowTags(bool val);
98 bool getIconShowTags() const;
99
100 void setIconShowDate(bool val);
101 bool getIconShowDate() const;
102
103 void setIconShowRating(bool val);
104 bool getIconShowRating() const;
105
106 void setIconShowImageFormat(bool val);
107 bool getIconShowImageFormat() const;
108
109 void setIconShowCoordinates(bool val);
110 bool getIconShowCoordinates() const;
111
112 void setIconShowOverlays(bool val);
113 bool getIconShowOverlays() const;
114
115 void setToolTipsFont(const QFont& font);
116 QFont getToolTipsFont() const;
117
118 void setShowToolTips(bool val);
119 bool getShowToolTips() const;
120
121 void setToolTipsShowFileName(bool val);
122 bool getToolTipsShowFileName() const;
123
124 void setToolTipsShowFileDate(bool val);
125 bool getToolTipsShowFileDate() const;
126
127 void setToolTipsShowFileSize(bool val);
128 bool getToolTipsShowFileSize() const;
129
130 void setToolTipsShowImageType(bool val);
131 bool getToolTipsShowImageType() const;
132
133 void setToolTipsShowImageDim(bool val);
134 bool getToolTipsShowImageDim() const;
135
136 void setToolTipsShowPhotoMake(bool val);
137 bool getToolTipsShowPhotoMake() const;
138
139 void setToolTipsShowPhotoLens(bool val);
140 bool getToolTipsShowPhotoLens() const;
141
142 void setToolTipsShowPhotoFocal(bool val);
143 bool getToolTipsShowPhotoFocal() const;
144
145 void setToolTipsShowPhotoExpo(bool val);
146 bool getToolTipsShowPhotoExpo() const;
147
148 void setToolTipsShowPhotoFlash(bool val);
149 bool getToolTipsShowPhotoFlash() const;
150
151 void setToolTipsShowPhotoWB(bool val);
152 bool getToolTipsShowPhotoWB() const;
153
154 void setToolTipsShowTags(bool val);
155 bool getToolTipsShowTags() const;
156
157 void setToolTipsShowLabelRating(bool val);
158 bool getToolTipsShowLabelRating() const;
159
160private:
161
162 // Disable;
163 explicit ImportSettings(QObject*) = delete;
164
166 ~ImportSettings() override;
167
168private:
169
170 class Private;
171 Private* const d = nullptr;
172
173 friend class ImportSettingsCreator;
174};
175
176} // namespace Digikam
Definition importsettings.h:31
ItemLeftClickAction
Definition importsettings.h:37
@ StartEditor
Definition importsettings.h:39
Definition datefolderview.cpp:34