28 #ifndef DIGIKAM_APPLICATION_SETTINGS_H
29 #define DIGIKAM_APPLICATION_SETTINGS_H
37 #include <QStringList>
41 #include "digikam_config.h"
52 class DbEngineParameters;
53 class VersionManagerSettings;
54 class PreviewSettings;
118 typedef QHash<ApplicationSettings::OperationType, ApplicationSettings::ApplyToEntireGroup>
OperationModes;
132 void emitSetupChanged();
134 QString generalConfigGroupName()
const;
156 void setSyncBalooToDigikam(
bool val);
157 bool getSyncBalooToDigikam()
const;
159 void setSyncDigikamToBaloo(
bool val);
160 bool getSyncDigikamToBaloo()
const;
164 void setTreeViewIconSize(
int val);
165 int getTreeViewIconSize()
const;
167 void setTreeViewFaceSize(
int val);
168 int getTreeViewFaceSize()
const;
170 void setTreeViewFont(
const QFont& font);
171 QFont getTreeViewFont()
const;
176 void setAlbumSortChanged(
bool val);
177 bool getAlbumSortChanged()
const;
179 void setShowFolderTreeViewItemsCount(
bool val);
180 bool getShowFolderTreeViewItemsCount()
const;
182 void setAlbumMonitoring(
bool val);
183 bool getAlbumMonitoring()
const;
185 void setRecurseAlbums(
bool val);
186 bool getRecurseAlbums()
const;
188 void setRecurseTags(
bool val);
189 bool getRecurseTags()
const;
191 void setAllGroupsOpen(
bool val);
192 bool getAllGroupsOpen()
const;
194 void setAlbumCategoryNames(
const QStringList& list);
195 QStringList getAlbumCategoryNames()
const;
197 bool addAlbumCategoryName(
const QString& name)
const;
198 bool delAlbumCategoryName(
const QString& name)
const;
202 void setDefaultIconSize(
int val);
203 int getDefaultIconSize()
const;
205 void setIconViewFont(
const QFont& font);
206 QFont getIconViewFont()
const;
208 void setImageSortOrder(
int order);
209 int getImageSortOrder()
const;
214 void setImageSorting(
int sorting);
215 int getImageSorting()
const;
217 void setImageSeparationMode(
int mode);
218 int getImageSeparationMode()
const;
220 void setImageSeparationSortOrder(
int order);
221 int getImageSeparationSortOrder()
const;
223 void setItemLeftClickAction(
int action);
224 int getItemLeftClickAction()
const;
226 void setIconShowName(
bool val);
227 bool getIconShowName()
const;
229 void setIconShowSize(
bool val);
230 bool getIconShowSize()
const;
232 void setIconShowTitle(
bool val);
233 bool getIconShowTitle()
const;
235 void setIconShowComments(
bool val);
236 bool getIconShowComments()
const;
238 void setIconShowResolution(
bool val);
239 bool getIconShowResolution()
const;
241 void setIconShowAspectRatio(
bool val);
242 bool getIconShowAspectRatio()
const;
244 void setIconShowTags(
bool val);
245 bool getIconShowTags()
const;
247 void setIconShowDate(
bool val);
248 bool getIconShowDate()
const;
250 void setIconShowModDate(
bool val);
251 bool getIconShowModDate()
const;
253 void setIconShowRating(
bool val);
254 bool getIconShowRating()
const;
256 void setIconShowImageFormat(
bool val);
257 bool getIconShowImageFormat()
const;
259 void setIconShowCoordinates(
bool val);
260 bool getIconShowCoordinates()
const;
265 void setIconShowOverlays(
bool val);
270 bool getIconShowOverlays()
const;
272 void setIconShowFullscreen(
bool val);
273 bool getIconShowFullscreen()
const;
278 void setPreviewShowIcons(
bool val);
279 bool getPreviewShowIcons()
const;
283 QString getImageFileFilter()
const;
284 QString getMovieFileFilter()
const;
285 QString getAudioFileFilter()
const;
286 QString getRawFileFilter()
const;
287 QString getAllFileFilter()
const;
293 bool showToolTipsIsValid()
const;
294 bool showAlbumToolTipsIsValid()
const;
296 void setToolTipsFont(
const QFont& font);
297 QFont getToolTipsFont()
const;
299 void setShowToolTips(
bool val);
300 bool getShowToolTips()
const;
302 void setToolTipsShowFileName(
bool val);
303 bool getToolTipsShowFileName()
const;
305 void setToolTipsShowFileDate(
bool val);
306 bool getToolTipsShowFileDate()
const;
308 void setToolTipsShowFileSize(
bool val);
309 bool getToolTipsShowFileSize()
const;
311 void setToolTipsShowImageType(
bool val);
312 bool getToolTipsShowImageType()
const;
314 void setToolTipsShowImageDim(
bool val);
315 bool getToolTipsShowImageDim()
const;
317 void setToolTipsShowImageAR(
bool val);
318 bool getToolTipsShowImageAR()
const;
320 void setToolTipsShowPhotoMake(
bool val);
321 bool getToolTipsShowPhotoMake()
const;
323 void setToolTipsShowPhotoLens(
bool val);
324 bool getToolTipsShowPhotoLens()
const;
326 void setToolTipsShowPhotoDate(
bool val);
327 bool getToolTipsShowPhotoDate()
const;
329 void setToolTipsShowPhotoFocal(
bool val);
330 bool getToolTipsShowPhotoFocal()
const;
332 void setToolTipsShowPhotoExpo(
bool val);
333 bool getToolTipsShowPhotoExpo()
const;
335 void setToolTipsShowPhotoMode(
bool val);
336 bool getToolTipsShowPhotoMode()
const;
338 void setToolTipsShowPhotoFlash(
bool val);
339 bool getToolTipsShowPhotoFlash()
const;
341 void setToolTipsShowPhotoWB(
bool val);
342 bool getToolTipsShowPhotoWB()
const;
344 void setToolTipsShowAlbumName(
bool val);
345 bool getToolTipsShowAlbumName()
const;
347 void setToolTipsShowTitles(
bool val);
348 bool getToolTipsShowTitles()
const;
350 void setToolTipsShowComments(
bool val);
351 bool getToolTipsShowComments()
const;
353 void setToolTipsShowTags(
bool val);
354 bool getToolTipsShowTags()
const;
356 void setToolTipsShowLabelRating(
bool val);
357 bool getToolTipsShowLabelRating()
const;
359 void setShowAlbumToolTips(
bool val);
360 bool getShowAlbumToolTips()
const;
362 void setToolTipsShowAlbumTitle(
bool val);
363 bool getToolTipsShowAlbumTitle()
const;
365 void setToolTipsShowAlbumDate(
bool val);
366 bool getToolTipsShowAlbumDate()
const;
368 void setToolTipsShowAlbumCollection(
bool val);
369 bool getToolTipsShowAlbumCollection()
const;
371 void setToolTipsShowAlbumCategory(
bool val);
372 bool getToolTipsShowAlbumCategory()
const;
374 void setToolTipsShowAlbumCaption(
bool val);
375 bool getToolTipsShowAlbumCaption()
const;
377 void setToolTipsShowAlbumPreview(
bool val);
378 bool getToolTipsShowAlbumPreview()
const;
380 void setToolTipsShowVideoAspectRatio(
bool val);
381 bool getToolTipsShowVideoAspectRatio()
const;
383 void setToolTipsShowVideoAudioBitRate(
bool val);
384 bool getToolTipsShowVideoAudioBitRate()
const;
386 void setToolTipsShowVideoAudioChannelType(
bool val);
387 bool getToolTipsShowVideoAudioChannelType()
const;
389 void setToolTipsShowVideoAudioCodec(
bool val);
390 bool getToolTipsShowVideoAudioCodec()
const;
392 void setToolTipsShowVideoDuration(
bool val);
393 bool getToolTipsShowVideoDuration()
const;
395 void setToolTipsShowVideoFrameRate(
bool val);
396 bool getToolTipsShowVideoFrameRate()
const;
398 void setToolTipsShowVideoVideoCodec(
bool val);
399 bool getToolTipsShowVideoVideoCodec()
const;
403 void setScanAtStart(
bool val);
404 bool getScanAtStart()
const;
406 void setCleanAtStart(
bool val);
407 bool getCleanAtStart()
const;
409 void setDatabaseDirSetAtCmd(
bool val);
410 bool getDatabaseDirSetAtCmd()
const;
412 void setUseTrash(
bool val);
413 bool getUseTrash()
const;
415 void setShowTrashDeleteDialog(
bool val);
416 bool getShowTrashDeleteDialog()
const;
418 void setShowPermanentDeleteDialog(
bool val);
419 bool getShowPermanentDeleteDialog()
const;
421 void setApplySidebarChangesDirectly(
bool val);
422 bool getApplySidebarChangesDirectly()
const;
424 void setUseNativeFileDialog(
bool val);
425 bool getUseNativeFileDialog()
const;
427 void setDrawFramesToGrouped(
bool val);
428 bool getDrawFramesToGrouped()
const;
430 void setExpandNewCurrentItem(
bool val);
431 bool getExpandNewCurrentItem()
const;
433 void setScrollItemToCenter(
bool val);
434 bool getScrollItemToCenter()
const;
436 void setShowOnlyPersonTagsInPeopleSidebar(
bool val);
437 bool showOnlyPersonTagsInPeopleSidebar()
const;
439 void setDetectFacesInNewImages(
bool val);
440 bool getDetectFacesInNewImages()
const;
456 bool isStringTypeNatural()
const;
458 void setApplicationStyle(
const QString& style);
459 QString getApplicationStyle()
const;
461 void setIconTheme(
const QString& theme);
462 QString getIconTheme()
const;
464 void setApplicationFont(
const QFont& fnt);
465 QFont getApplicationFont()
const;
467 void setShowSplashScreen(
bool val);
468 bool getShowSplashScreen()
const;
470 void setCurrentTheme(
const QString& theme);
471 QString getCurrentTheme()
const;
476 int getUpdateType()
const;
477 void setUpdateType(
int type);
479 bool getUpdateWithDebug()
const;
480 void setUpdateWithDebug(
bool dbg);
485 double getFaceDetectionAccuracy()
const;
486 void setFaceDetectionAccuracy(
double value);
488 bool getFaceDetectionYoloV3()
const;
489 void setFaceDetectionYoloV3(
bool yolo);
491 void setShowThumbbar(
bool val);
492 bool getShowThumbbar()
const;
494 void setRatingFilterCond(
int val);
495 int getRatingFilterCond()
const;
497 void setMinimumSimilarityBound(
int val);
498 int getMinimumSimilarityBound()
const;
500 void setDuplicatesSearchLastMinSimilarity(
int val);
501 int getDuplicatesSearchLastMinSimilarity()
const;
503 void setDuplicatesSearchLastMaxSimilarity(
int val);
504 int getDuplicatesSearchLastMaxSimilarity()
const;
550 void setDuplicatesAlbumTagRelation(
int val);
551 int getDuplicatesAlbumTagRelation()
const;
553 void setDuplicatesSearchRestrictions(
int val);
554 int getDuplicatesSearchRestrictions()
const;
556 void setHelpBoxNotificationSeen(
bool val);
557 bool getHelpBoxNotificationSeen();
561 void applyBalooSettings();
570 KConfigGroup generalConfigGroup()
const;
574 friend class ApplicationSettingsCreator;
Definition: applicationsettings_p.h:77
Definition: applicationsettings.h:57
ApplyToEntireGroup
Definition: applicationsettings.h:111
@ Yes
Definition: applicationsettings.h:113
StringComparisonType
Definition: applicationsettings.h:81
QHash< ApplicationSettings::OperationType, ApplicationSettings::ApplyToEntireGroup > OperationModes
Definition: applicationsettings.h:118
AlbumSortRole
Definition: applicationsettings.h:63
@ ByCategory
Definition: applicationsettings.h:65
ItemLeftClickAction
Definition: applicationsettings.h:70
@ ShowOnTable
Definition: applicationsettings.h:73
@ StartEditor
Definition: applicationsettings.h:72
@ OpenDefault
Definition: applicationsettings.h:74
QHash< ApplicationSettings::OperationType, QString > OperationStrings
Definition: applicationsettings.h:117
bool readMsgBoxShouldBeShown(const QString &dontShowAgainName)
void saveMsgBoxShouldBeShown(const QString &dontShowAgainName)
OperationType
Definition: applicationsettings.h:99
@ Tools
Definition: applicationsettings.h:106
@ ImportExport
Definition: applicationsettings.h:101
@ LightTable
Definition: applicationsettings.h:103
@ Slideshow
Definition: applicationsettings.h:104
@ Rename
Definition: applicationsettings.h:105
@ BQM
Definition: applicationsettings.h:102
void addToImageFileFilter(const QString &extensions)
void recurseSettingsChanged()
void balooSettingsChanged()
TextStyle
Definition: sidebar.h:66
Definition: dbengineparameters.h:49
Definition: previewsettings.h:35
Definition: versionmanagersettings.h:43
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43