digiKam
Loading...
Searching...
No Matches
showfotosettings.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 : 2013-12-20
7 * Description : Settings for Showfoto
8 *
9 * SPDX-FileCopyrightText: 2013-2014 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
10 * SPDX-FileCopyrightText: 2013-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#include <QString>
23
24namespace ShowFoto
25{
26
27class ShowfotoSettings : public QObject
28{
29 Q_OBJECT
30
31public:
32
33 static ShowfotoSettings* instance();
34
35 void readSettings();
36 void syncConfig();
37
38 // -- Misc. Settings ---------------------------------------
39
40 QString getLastOpenedDir() const;
41 void setLastOpenedDir(const QString& dir);
42
43 bool getDeleteItem2Trash() const;
44 void setDeleteItem2Trash(bool D2t);
45
46 QString getCurrentTheme() const;
47 void setCurrentTheme(const QString& theme);
48
49 int getRightSideBarStyle() const;
50 void setRightSideBarStyle(int style);
51
52 int getUpdateType() const;
53 void setUpdateType(int type);
54
55 bool getUpdateWithDebug() const;
56 void setUpdateWithDebug(bool dbg);
57
58 QString getApplicationStyle() const;
59 void setApplicationStyle(const QString& style);
60
61 QString getIconTheme() const;
62 void setIconTheme(const QString& theme);
63
64 void setApplicationFont(const QFont& fnt);
65 QFont getApplicationFont() const;
66
67 bool getShowFormatOverThumbnail() const;
68 void setShowFormatOverThumbnail(bool show);
69
70 bool getShowCoordinates() const;
71 void setShowCoordinates(bool show);
72
73 bool getShowSplash() const;
74 void setShowSplash(bool show);
75
76 bool getNativeFileDialog() const;
77 void setNativeFileDialog(bool item);
78
79 bool getItemCenter() const;
80 void setItemCenter(bool item);
81
82 bool getCacheThumbs() const;
83 void setCacheThumbs(bool item);
84
85 int getSortRole() const;
86 void setSortRole(int order);
87
88 bool getReverseSort() const;
89 void setReverseSort(bool reverse);
90
91 // -- ToolTip Settings --------------------------------------
92
93 bool getShowToolTip() const;
94 void setShowToolTip(bool show);
95
96 bool getShowFileName() const;
97 void setShowFileName(bool show);
98
99 bool getShowFileDate() const;
100 void setShowFileDate(bool show);
101
102 bool getShowFileSize() const;
103 void setShowFileSize(bool show);
104
105 bool getShowFileType() const;
106 void setShowFileType(bool show);
107
108 bool getShowFileDim() const;
109 void setShowFileDim(bool show);
110
111 bool getShowPhotoMake() const;
112 void setShowPhotoMake(bool show);
113
114 bool getShowPhotoLens() const;
115 void setShowPhotoLens(bool show);
116
117 bool getShowPhotoFocal() const;
118 void setShowPhotoFocal(bool show);
119
120 bool getShowPhotoExpo() const;
121 void setShowPhotoExpo(bool show);
122
123 bool getShowPhotoFlash() const;
124 void setShowPhotoFlash(bool show);
125
126 bool getShowPhotoWB() const;
127 void setShowPhotoWB(bool show);
128
129 bool getShowPhotoDate() const;
130 void setShowPhotoDate(bool show);
131
132 bool getShowPhotoMode() const;
133 void setShowPhotoMode(bool show);
134
135 QFont getToolTipFont() const;
136 void setToolTipFont(const QFont& font);
137
138private:
139
140 // Disable
142 explicit ShowfotoSettings(QObject*) = delete;
143 ~ShowfotoSettings() override;
144
145private:
146
147 class Private;
148 Private* const d = nullptr;
149
151};
152
153} // namespace Showfoto
Definition showfotosettings.h:28
bool getUpdateWithDebug() const
Definition showfotosettings.cpp:265
int getSortRole() const
Definition showfotosettings.cpp:320
static ShowfotoSettings * instance()
Definition showfotosettings.cpp:145
bool getShowFormatOverThumbnail() const
Definition showfotosettings.cpp:275
void setShowFileDate(bool show)
Definition showfotosettings.cpp:415
QString getIconTheme() const
Definition showfotosettings.cpp:290
QString getApplicationStyle() const
Definition showfotosettings.cpp:285
QFont getApplicationFont() const
Definition showfotosettings.cpp:295
void setSortRole(int order)
Definition showfotosettings.cpp:568
void setShowPhotoMake(bool show)
Definition showfotosettings.cpp:435
void setShowPhotoLens(bool show)
Definition showfotosettings.cpp:440
void setUpdateType(int type)
Definition showfotosettings.cpp:495
void setIconTheme(const QString &theme)
Definition showfotosettings.cpp:522
bool getShowPhotoFocal() const
Definition showfotosettings.cpp:370
QString getCurrentTheme() const
Definition showfotosettings.cpp:255
void syncConfig()
Definition showfotosettings.cpp:578
void setShowCoordinates(bool show)
Definition showfotosettings.cpp:543
void setShowPhotoFocal(bool show)
Definition showfotosettings.cpp:445
bool getShowSplash() const
Definition showfotosettings.cpp:300
void setApplicationFont(const QFont &fnt)
Definition showfotosettings.cpp:527
void readSettings()
Definition showfotosettings.cpp:164
QFont getToolTipFont() const
Definition showfotosettings.cpp:400
bool getShowFileType() const
Definition showfotosettings.cpp:350
int getRightSideBarStyle() const
Definition showfotosettings.cpp:270
friend class ShowfotoSettingsCreator
Definition showfotosettings.h:150
QString getLastOpenedDir() const
Definition showfotosettings.cpp:245
bool getShowToolTip() const
Definition showfotosettings.cpp:330
void setShowFileName(bool show)
Definition showfotosettings.cpp:410
void setShowFileDim(bool show)
Definition showfotosettings.cpp:430
int getUpdateType() const
Definition showfotosettings.cpp:260
bool getDeleteItem2Trash() const
Definition showfotosettings.cpp:250
void setShowFileType(bool show)
Definition showfotosettings.cpp:425
void setShowFormatOverThumbnail(bool show)
Definition showfotosettings.cpp:538
bool getShowFileDim() const
Definition showfotosettings.cpp:355
bool getShowFileSize() const
Definition showfotosettings.cpp:345
void setDeleteItem2Trash(bool D2t)
Definition showfotosettings.cpp:485
void setLastOpenedDir(const QString &dir)
Definition showfotosettings.cpp:480
bool getShowFileDate() const
Definition showfotosettings.cpp:340
bool getCacheThumbs() const
Definition showfotosettings.cpp:315
bool getShowCoordinates() const
Definition showfotosettings.cpp:280
void setNativeFileDialog(bool item)
Definition showfotosettings.cpp:553
bool getShowPhotoWB() const
Definition showfotosettings.cpp:385
void setItemCenter(bool item)
Definition showfotosettings.cpp:558
void setReverseSort(bool reverse)
Definition showfotosettings.cpp:573
void setToolTipFont(const QFont &font)
Definition showfotosettings.cpp:475
bool getReverseSort() const
Definition showfotosettings.cpp:325
void setShowFileSize(bool show)
Definition showfotosettings.cpp:420
bool getShowPhotoMode() const
Definition showfotosettings.cpp:395
void setShowToolTip(bool show)
Definition showfotosettings.cpp:405
bool getNativeFileDialog() const
Definition showfotosettings.cpp:305
void setApplicationStyle(const QString &style)
Definition showfotosettings.cpp:510
void setShowPhotoFlash(bool show)
Definition showfotosettings.cpp:455
void setCurrentTheme(const QString &theme)
Definition showfotosettings.cpp:490
bool getShowFileName() const
Definition showfotosettings.cpp:335
bool getShowPhotoExpo() const
Definition showfotosettings.cpp:375
void setShowPhotoExpo(bool show)
Definition showfotosettings.cpp:450
void setShowSplash(bool show)
Definition showfotosettings.cpp:548
void setRightSideBarStyle(int style)
Definition showfotosettings.cpp:505
void setShowPhotoDate(bool show)
Definition showfotosettings.cpp:465
bool getShowPhotoMake() const
Definition showfotosettings.cpp:360
bool getItemCenter() const
Definition showfotosettings.cpp:310
void setShowPhotoWB(bool show)
Definition showfotosettings.cpp:460
void setUpdateWithDebug(bool dbg)
Definition showfotosettings.cpp:500
bool getShowPhotoLens() const
Definition showfotosettings.cpp:365
void setShowPhotoMode(bool show)
Definition showfotosettings.cpp:470
bool getShowPhotoFlash() const
Definition showfotosettings.cpp:380
void setCacheThumbs(bool item)
Definition showfotosettings.cpp:563
bool getShowPhotoDate() const
Definition showfotosettings.cpp:390
Definition showfotofolderviewbar.cpp:43