1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date        : 2003-16-10
7  * Description : application settings interface
8  *
9  * Copyright (C) 2003-2004 by Renchi Raju <renchi dot raju at gmail dot com>
10  * Copyright (C) 2003-2021 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2007      by Arnd Baecker <arnd dot baecker at web dot de>
12  * Copyright (C) 2014      by Mohamed_Anwer <m_dot_anwer at gmx dot com>
13  * Copyright (C) 2014      by Veaceslav Munteanu <veaceslav dot munteanu90 at gmail dot com>
14  *
15  * This program is free software; you can redistribute it
16  * and/or modify it under the terms of the GNU General
17  * Public License as published by the Free Software Foundation;
18  * either version 2, or (at your option)
19  * any later version.
20  *
21  * This program is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24  * GNU General Public License for more details.
25  *
26  * ============================================================ */
27 
28 #include "applicationsettings_p.h"
29 
30 namespace Digikam
31 {
32 
setImageSortOrder(int order)33 void ApplicationSettings::setImageSortOrder(int order)
34 {
35     d->imageSortOrder = order;
36 }
37 
getImageSortOrder() const38 int ApplicationSettings::getImageSortOrder() const
39 {
40     return d->imageSortOrder;
41 }
42 
setImageSorting(int sorting)43 void ApplicationSettings::setImageSorting(int sorting)
44 {
45     d->imageSorting = sorting;
46 }
47 
getImageSorting() const48 int ApplicationSettings::getImageSorting() const
49 {
50     return d->imageSorting;
51 }
52 
setImageSeparationMode(int mode)53 void ApplicationSettings::setImageSeparationMode(int mode)
54 {
55     d->imageSeparationMode = mode;
56 }
57 
getImageSeparationMode() const58 int ApplicationSettings::getImageSeparationMode() const
59 {
60     return d->imageSeparationMode;
61 }
62 
setImageSeparationSortOrder(int order)63 void ApplicationSettings::setImageSeparationSortOrder(int order)
64 {
65     d->imageSeparationSortOrder = order;
66 }
67 
getImageSeparationSortOrder() const68 int ApplicationSettings::getImageSeparationSortOrder() const
69 {
70     return d->imageSeparationSortOrder;
71 }
72 
setItemLeftClickAction(int action)73 void ApplicationSettings::setItemLeftClickAction(int action)
74 {
75     d->itemLeftClickAction = action;
76 }
77 
getItemLeftClickAction() const78 int ApplicationSettings::getItemLeftClickAction() const
79 {
80     return d->itemLeftClickAction;
81 }
82 
setDefaultIconSize(int val)83 void ApplicationSettings::setDefaultIconSize(int val)
84 {
85     d->thumbnailSize = val;
86 }
87 
getDefaultIconSize() const88 int ApplicationSettings::getDefaultIconSize() const
89 {
90     return d->thumbnailSize;
91 }
92 
setIconViewFont(const QFont & font)93 void ApplicationSettings::setIconViewFont(const QFont& font)
94 {
95     d->iconviewFont = font;
96 }
97 
getIconViewFont() const98 QFont ApplicationSettings::getIconViewFont() const
99 {
100     return d->iconviewFont;
101 }
102 
setIconShowName(bool val)103 void ApplicationSettings::setIconShowName(bool val)
104 {
105     d->iconShowName = val;
106 }
107 
getIconShowName() const108 bool ApplicationSettings::getIconShowName() const
109 {
110     return d->iconShowName;
111 }
112 
setIconShowSize(bool val)113 void ApplicationSettings::setIconShowSize(bool val)
114 {
115     d->iconShowSize = val;
116 }
117 
getIconShowSize() const118 bool ApplicationSettings::getIconShowSize() const
119 {
120     return d->iconShowSize;
121 }
122 
setIconShowTitle(bool val)123 void ApplicationSettings::setIconShowTitle(bool val)
124 {
125     d->iconShowTitle = val;
126 }
127 
getIconShowTitle() const128 bool ApplicationSettings::getIconShowTitle() const
129 {
130     return d->iconShowTitle;
131 }
132 
setIconShowComments(bool val)133 void ApplicationSettings::setIconShowComments(bool val)
134 {
135     d->iconShowComments = val;
136 }
137 
getIconShowComments() const138 bool ApplicationSettings::getIconShowComments() const
139 {
140     return d->iconShowComments;
141 }
142 
setIconShowResolution(bool val)143 void ApplicationSettings::setIconShowResolution(bool val)
144 {
145     d->iconShowResolution = val;
146 }
147 
getIconShowResolution() const148 bool ApplicationSettings::getIconShowResolution() const
149 {
150     return d->iconShowResolution;
151 }
152 
setIconShowAspectRatio(bool val)153 void ApplicationSettings::setIconShowAspectRatio(bool val)
154 {
155     d->iconShowAspectRatio = val;
156 }
157 
getIconShowAspectRatio() const158 bool ApplicationSettings::getIconShowAspectRatio() const
159 {
160     return d->iconShowAspectRatio;
161 }
162 
setIconShowTags(bool val)163 void ApplicationSettings::setIconShowTags(bool val)
164 {
165     d->iconShowTags = val;
166 }
167 
getIconShowTags() const168 bool ApplicationSettings::getIconShowTags() const
169 {
170     return d->iconShowTags;
171 }
172 
setIconShowDate(bool val)173 void ApplicationSettings::setIconShowDate(bool val)
174 {
175     d->iconShowDate = val;
176 }
177 
getIconShowDate() const178 bool ApplicationSettings::getIconShowDate() const
179 {
180     return d->iconShowDate;
181 }
182 
setIconShowModDate(bool val)183 void ApplicationSettings::setIconShowModDate(bool val)
184 {
185     d->iconShowModDate = val;
186 }
187 
getIconShowModDate() const188 bool ApplicationSettings::getIconShowModDate() const
189 {
190     return d->iconShowModDate;
191 }
192 
setIconShowRating(bool val)193 void ApplicationSettings::setIconShowRating(bool val)
194 {
195     d->iconShowRating = val;
196 }
197 
getIconShowRating() const198 bool ApplicationSettings::getIconShowRating() const
199 {
200     return d->iconShowRating;
201 }
202 
setIconShowImageFormat(bool val)203 void ApplicationSettings::setIconShowImageFormat(bool val)
204 {
205     d->iconShowImageFormat = val;
206 }
207 
getIconShowImageFormat() const208 bool ApplicationSettings::getIconShowImageFormat() const
209 {
210     return d->iconShowImageFormat;
211 }
212 
setIconShowCoordinates(bool val)213 void ApplicationSettings::setIconShowCoordinates(bool val)
214 {
215     d->iconShowCoordinates = val;
216 }
217 
getIconShowCoordinates() const218 bool ApplicationSettings::getIconShowCoordinates() const
219 {
220     return d->iconShowCoordinates;
221 }
222 
setIconShowOverlays(bool val)223 void ApplicationSettings::setIconShowOverlays(bool val)
224 {
225     d->iconShowOverlays = val;
226 }
227 
getIconShowOverlays() const228 bool ApplicationSettings::getIconShowOverlays() const
229 {
230     return d->iconShowOverlays;
231 }
232 
setIconShowFullscreen(bool val)233 void ApplicationSettings::setIconShowFullscreen(bool val)
234 {
235    d->iconShowFullscreen = val;
236 }
237 
getIconShowFullscreen() const238 bool ApplicationSettings::getIconShowFullscreen() const
239 {
240    return d->iconShowFullscreen;
241 }
242 
setPreviewSettings(const PreviewSettings & settings)243 void ApplicationSettings::setPreviewSettings(const PreviewSettings& settings)
244 {
245     d->previewSettings = settings;
246 }
247 
getPreviewSettings() const248 PreviewSettings ApplicationSettings::getPreviewSettings() const
249 {
250     return d->previewSettings;
251 }
252 
setPreviewShowIcons(bool val)253 void ApplicationSettings::setPreviewShowIcons(bool val)
254 {
255     d->previewShowIcons = val;
256 }
257 
getPreviewShowIcons() const258 bool ApplicationSettings::getPreviewShowIcons() const
259 {
260     return d->previewShowIcons;
261 }
262 
263 } // namespace Digikam
264