File indexing completed on 2025-01-19 03:56:47

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2003-16-10
0007  * Description : application settings interface
0008  *
0009  * SPDX-FileCopyrightText: 2003-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2015      by Mohamed_Anwer <m_dot_anwer at gmx dot com>
0011  * SPDX-FileCopyrightText: 2017      by Simon Frei <freisim93 at gmail dot com>
0012  *
0013  * SPDX-License-Identifier: GPL-2.0-or-later
0014  *
0015  * ============================================================ */
0016 
0017 #include "applicationsettings_p.h"
0018 
0019 namespace Digikam
0020 {
0021 
0022 const QString ApplicationSettings::Private::configGroupDefault(QLatin1String("Album Settings"));
0023 const QString ApplicationSettings::Private::configGroupExif(QLatin1String("EXIF Settings"));
0024 const QString ApplicationSettings::Private::configGroupMetadata(QLatin1String("Metadata Settings"));
0025 const QString ApplicationSettings::Private::configGroupBaloo(QLatin1String("Baloo Settings"));
0026 const QString ApplicationSettings::Private::configGroupGeneral(QLatin1String("General Settings"));
0027 const QString ApplicationSettings::Private::configGroupVersioning(QLatin1String("Versioning Settings"));
0028 const QString ApplicationSettings::Private::configGroupFaceDetection(QLatin1String("Face Detection Settings"));
0029 const QString ApplicationSettings::Private::configGroupDuplicatesSearch(QLatin1String("Find Duplicates View"));
0030 const QString ApplicationSettings::Private::configGroupGrouping(QLatin1String("Grouping Behaviour"));
0031 const QString ApplicationSettings::Private::configAlbumCollectionsEntry(QLatin1String("Album Collections"));
0032 const QString ApplicationSettings::Private::configAlbumMonitoringEntry(QLatin1String("Album Monitoring"));
0033 const QString ApplicationSettings::Private::configAlbumSortRoleEntry(QLatin1String("Album Sort Role"));
0034 const QString ApplicationSettings::Private::configImageSortOrderEntry(QLatin1String("Image Sort Order"));
0035 const QString ApplicationSettings::Private::configImageSortingEntry(QLatin1String("Image Sorting"));
0036 const QString ApplicationSettings::Private::configImageSeparationModeEntry(QLatin1String("Image Group Mode"));
0037 const QString ApplicationSettings::Private::configImageSeparationSortOrderEntry(QLatin1String("Image Group Sort Order"));
0038 const QString ApplicationSettings::Private::configItemLeftClickActionEntry(QLatin1String("Item Left Click Action"));
0039 const QString ApplicationSettings::Private::configDefaultIconSizeEntry(QLatin1String("Default Icon Size"));
0040 const QString ApplicationSettings::Private::configDefaultTreeIconSizeEntry(QLatin1String("Default Tree Icon Size"));
0041 const QString ApplicationSettings::Private::configDefaultTreeFaceSizeEntry(QLatin1String("Default Tree Face Size"));
0042 const QString ApplicationSettings::Private::configTreeViewFontEntry(QLatin1String("TreeView Font"));
0043 const QString ApplicationSettings::Private::configThemeEntry(QLatin1String("Theme"));
0044 const QString ApplicationSettings::Private::configUpdateType(QLatin1String("Update Type"));
0045 const QString ApplicationSettings::Private::configUpdateWithDebug(QLatin1String("Update With Debug"));
0046 const QString ApplicationSettings::Private::configSidebarTitleStyleEntry(QLatin1String("Sidebar Title Style"));
0047 const QString ApplicationSettings::Private::configRatingFilterConditionEntry(QLatin1String("Rating Filter Condition"));
0048 const QString ApplicationSettings::Private::configRecursiveAlbumsEntry(QLatin1String("Recursive Albums"));
0049 const QString ApplicationSettings::Private::configRecursiveTagsEntry(QLatin1String("Recursive Tags"));
0050 const QString ApplicationSettings::Private::configAllGroupsOpenEntry(QLatin1String("All Groups Open"));
0051 const QString ApplicationSettings::Private::configIconShowNameEntry(QLatin1String("Icon Show Name"));
0052 const QString ApplicationSettings::Private::configIconShowResolutionEntry(QLatin1String("Icon Show Resolution"));
0053 const QString ApplicationSettings::Private::configIconShowSizeEntry(QLatin1String("Icon Show Size"));
0054 const QString ApplicationSettings::Private::configIconShowDateEntry(QLatin1String("Icon Show Date"));
0055 const QString ApplicationSettings::Private::configIconShowModificationDateEntry(QLatin1String("Icon Show Modification Date"));
0056 const QString ApplicationSettings::Private::configIconShowTitleEntry(QLatin1String("Icon Show Title"));
0057 const QString ApplicationSettings::Private::configIconShowCommentsEntry(QLatin1String("Icon Show Comments"));
0058 const QString ApplicationSettings::Private::configIconShowTagsEntry(QLatin1String("Icon Show Tags"));
0059 const QString ApplicationSettings::Private::configIconShowRatingEntry(QLatin1String("Icon Show Rating"));
0060 const QString ApplicationSettings::Private::configIconShowPickLabelEntry(QLatin1String("Icon Show Pick Label"));
0061 const QString ApplicationSettings::Private::configIconShowColorLabelEntry(QLatin1String("Icon Show Color Label"));
0062 const QString ApplicationSettings::Private::configIconShowImageFormatEntry(QLatin1String("Icon Show Image Format"));
0063 const QString ApplicationSettings::Private::configIconShowCoordinatesEntry(QLatin1String("Icon Show Coordinates"));
0064 const QString ApplicationSettings::Private::configIconShowAspectRatioEntry(QLatin1String("Icon Show Aspect Ratio"));
0065 const QString ApplicationSettings::Private::configIconShowOverlaysEntry(QLatin1String("Icon Show Overlays"));
0066 const QString ApplicationSettings::Private::configIconShowFullscreenEntry(QLatin1String("Icon Show Fullscreen"));
0067 const QString ApplicationSettings::Private::configIconViewFontEntry(QLatin1String("IconView Font"));
0068 const QString ApplicationSettings::Private::configToolTipsFontEntry(QLatin1String("ToolTips Font"));
0069 const QString ApplicationSettings::Private::configShowToolTipsEntry(QLatin1String("Show ToolTips"));
0070 const QString ApplicationSettings::Private::configToolTipsShowFileNameEntry(QLatin1String("ToolTips Show File Name"));
0071 const QString ApplicationSettings::Private::configToolTipsShowFileDateEntry(QLatin1String("ToolTips Show File Date"));
0072 const QString ApplicationSettings::Private::configToolTipsShowFileSizeEntry(QLatin1String("ToolTips Show File Size"));
0073 const QString ApplicationSettings::Private::configToolTipsShowImageTypeEntry(QLatin1String("ToolTips Show Image Type"));
0074 const QString ApplicationSettings::Private::configToolTipsShowImageDimEntry(QLatin1String("ToolTips Show Image Dim"));
0075 const QString ApplicationSettings::Private::configToolTipsShowImageAREntry(QLatin1String("ToolTips Show Image AR"));
0076 const QString ApplicationSettings::Private::configToolTipsShowPhotoMakeEntry(QLatin1String("ToolTips Show Photo Make"));
0077 const QString ApplicationSettings::Private::configToolTipsShowPhotoLensEntry(QLatin1String("ToolTips Show Photo Lens"));
0078 const QString ApplicationSettings::Private::configToolTipsShowPhotoDateEntry(QLatin1String("ToolTips Show Photo Date"));
0079 const QString ApplicationSettings::Private::configToolTipsShowPhotoFocalEntry(QLatin1String("ToolTips Show Photo Focal"));
0080 const QString ApplicationSettings::Private::configToolTipsShowPhotoExpoEntry(QLatin1String("ToolTips Show Photo Expo"));
0081 const QString ApplicationSettings::Private::configToolTipsShowPhotoModeEntry(QLatin1String("ToolTips Show Photo Mode"));
0082 const QString ApplicationSettings::Private::configToolTipsShowPhotoFlashEntry(QLatin1String("ToolTips Show Photo Flash"));
0083 const QString ApplicationSettings::Private::configToolTipsShowPhotoWBEntry(QLatin1String("ToolTips Show Photo WB"));
0084 const QString ApplicationSettings::Private::configToolTipsShowAlbumNameEntry(QLatin1String("ToolTips Show Album Name"));
0085 const QString ApplicationSettings::Private::configToolTipsShowTitlesEntry(QLatin1String("ToolTips Show Titles"));
0086 const QString ApplicationSettings::Private::configToolTipsShowCommentsEntry(QLatin1String("ToolTips Show Comments"));
0087 const QString ApplicationSettings::Private::configToolTipsShowTagsEntry(QLatin1String("ToolTips Show Tags"));
0088 const QString ApplicationSettings::Private::configToolTipsShowLabelRatingEntry(QLatin1String("ToolTips Show Label Rating"));
0089 const QString ApplicationSettings::Private::configToolTipsShowVideoAspectRatioEntry(QLatin1String("ToolTips Show Video Aspect Ratio"));
0090 const QString ApplicationSettings::Private::configToolTipsShowVideoAudioBitRateEntry(QLatin1String("ToolTips Show Audio Bit Rate"));
0091 const QString ApplicationSettings::Private::configToolTipsShowVideoAudioChannelTypeEntry(QLatin1String("ToolTips Show Audio Channel Type"));
0092 const QString ApplicationSettings::Private::configToolTipsShowVideoAudioCodecEntry(QLatin1String("ToolTips Show Audio Codec"));
0093 const QString ApplicationSettings::Private::configToolTipsShowVideoDurationEntry(QLatin1String("ToolTips Show Video Duration"));
0094 const QString ApplicationSettings::Private::configToolTipsShowVideoFrameRateEntry(QLatin1String("ToolTips Show Video Frame Rate"));
0095 const QString ApplicationSettings::Private::configToolTipsShowVideoVideoCodecEntry(QLatin1String("ToolTips Show Video Codec"));
0096 const QString ApplicationSettings::Private::configShowAlbumToolTipsEntry(QLatin1String("Show Album ToolTips"));
0097 const QString ApplicationSettings::Private::configToolTipsShowAlbumTitleEntry(QLatin1String("ToolTips Show Album Title"));
0098 const QString ApplicationSettings::Private::configToolTipsShowAlbumDateEntry(QLatin1String("ToolTips Show Album Date"));
0099 const QString ApplicationSettings::Private::configToolTipsShowAlbumCollectionEntry(QLatin1String("ToolTips Show Album Collection"));
0100 const QString ApplicationSettings::Private::configToolTipsShowAlbumCategoryEntry(QLatin1String("ToolTips Show Album Category"));
0101 const QString ApplicationSettings::Private::configToolTipsShowAlbumCaptionEntry(QLatin1String("ToolTips Show Album Caption"));
0102 const QString ApplicationSettings::Private::configToolTipsShowAlbumPreviewEntry(QLatin1String("ToolTips Show Album Preview"));
0103 const QString ApplicationSettings::Private::configPreviewLoadFullItemSizeEntry(QLatin1String("Preview Load Full Image Size"));
0104 const QString ApplicationSettings::Private::configPreviewRawUseLoadingDataEntry(QLatin1String("Preview Raw Use Loading Data"));
0105 const QString ApplicationSettings::Private::configPreviewConvertToEightBitEntry(QLatin1String("Preview Convert To Eight Bit"));
0106 const QString ApplicationSettings::Private::configPreviewScaleFitToWindowEntry(QLatin1String("Preview Scale Fit To Window"));
0107 const QString ApplicationSettings::Private::configPreviewShowIconsEntry(QLatin1String("Preview Show Icons"));
0108 const QString ApplicationSettings::Private::configShowThumbbarEntry(QLatin1String("Show Thumbbar"));
0109 const QString ApplicationSettings::Private::configShowFolderTreeViewItemsCountEntry(QLatin1String("Show Folder Tree View Items Count"));
0110 const QString ApplicationSettings::Private::configShowSplashEntry(QLatin1String("Show Splash"));
0111 const QString ApplicationSettings::Private::configUseTrashEntry(QLatin1String("Use Trash"));
0112 const QString ApplicationSettings::Private::configShowTrashDeleteDialogEntry(QLatin1String("Show Trash Delete Dialog"));
0113 const QString ApplicationSettings::Private::configShowPermanentDeleteDialogEntry(QLatin1String("Show Permanent Delete Dialog"));
0114 const QString ApplicationSettings::Private::configApplySidebarChangesDirectlyEntry(QLatin1String("Apply Sidebar Changes Directly"));
0115 const QString ApplicationSettings::Private::configUseNativeFileDialogEntry(QLatin1String("Use Native File Dialog"));
0116 const QString ApplicationSettings::Private::configDrawFramesToGroupedEntry(QLatin1String("Draw Frames To Grouped Items"));
0117 const QString ApplicationSettings::Private::configExpandNewCurrentItemEntry(QLatin1String("Expand New Current Item On Click"));
0118 const QString ApplicationSettings::Private::configScrollItemToCenterEntry(QLatin1String("Scroll Current Item To Center"));
0119 const QString ApplicationSettings::Private::configShowOnlyPersonTagsInPeopleSidebarEntry(QLatin1String("Show Only Face Tags For Assigning Name"));
0120 const QString ApplicationSettings::Private::configDetectFacesInNewImagesEntry(QLatin1String("Detect faces in newly added images"));
0121 const QString ApplicationSettings::Private::configSyncBalootoDigikamEntry(QLatin1String("Sync Baloo to Digikam"));
0122 const QString ApplicationSettings::Private::configSyncDigikamtoBalooEntry(QLatin1String("Sync Digikam to Baloo"));
0123 const QString ApplicationSettings::Private::configStringComparisonTypeEntry(QLatin1String("String Comparison Type"));
0124 const QString ApplicationSettings::Private::configFaceDetectionAccuracyEntry(QLatin1String("Detection Accuracy"));
0125 const QString ApplicationSettings::Private::configFaceDetectionYoloV3Entry(QLatin1String("Use Yolo V3"));
0126 const QString ApplicationSettings::Private::configApplicationStyleEntry(QLatin1String("Application Style"));
0127 const QString ApplicationSettings::Private::configIconThemeEntry(QLatin1String("Icon Theme"));
0128 const QString ApplicationSettings::Private::configApplicationFontEntry(QLatin1String("Application Font"));
0129 const QString ApplicationSettings::Private::configScanAtStartEntry(QLatin1String("Scan At Start"));
0130 const QString ApplicationSettings::Private::configCleanAtStartEntry(QLatin1String("Clean core DB At Start"));
0131 const QString ApplicationSettings::Private::configMinimumSimilarityBound(QLatin1String("Lower bound for minimum similarity"));
0132 const QString ApplicationSettings::Private::configDuplicatesSearchLastMinSimilarity(QLatin1String("Last minimum similarity"));
0133 const QString ApplicationSettings::Private::configDuplicatesSearchLastMaxSimilarity(QLatin1String("Last maximum similarity"));
0134 const QString ApplicationSettings::Private::configDuplicatesSearchLastAlbumTagRelation(QLatin1String("Last search album tag relation"));
0135 const QString ApplicationSettings::Private::configDuplicatesSearchLastRestrictions(QLatin1String("Last search results restriction"));
0136 const QString ApplicationSettings::Private::configDuplicatesSearchReferenceSelectionMethod(QLatin1String("Last reference image method"));
0137 const ApplicationSettings::OperationStrings ApplicationSettings::Private::configGroupingOperateOnAll =
0138         ApplicationSettings::Private::createConfigGroupingOperateOnAll();
0139 
0140 ApplicationSettings::OperationStrings ApplicationSettings::Private::createConfigGroupingOperateOnAll()
0141 {
0142     ApplicationSettings::OperationStrings out;
0143     out.insert(ApplicationSettings::Metadata,     QLatin1String("Do metadata operations on all"));
0144     out.insert(ApplicationSettings::ImportExport, QLatin1String("Do Import Export operations on all"));
0145     out.insert(ApplicationSettings::BQM,          QLatin1String("Do BQM operations on all"));
0146     out.insert(ApplicationSettings::LightTable,   QLatin1String("Do light table operations on all"));
0147     out.insert(ApplicationSettings::Slideshow,    QLatin1String("Do slideshow operations on all"));
0148     out.insert(ApplicationSettings::Rename,       QLatin1String("Rename all"));
0149     out.insert(ApplicationSettings::Tools,        QLatin1String("Operate tools on all"));
0150 
0151     return out;
0152 }
0153 
0154 ApplicationSettings::Private::Private(ApplicationSettings* const qq)
0155     : showSplash                                        (false),
0156       useTrash                                          (false),
0157       showTrashDeleteDialog                             (false),
0158       showPermanentDeleteDialog                         (false),
0159       sidebarApplyDirectly                              (false),
0160       useNativeFileDialog                               (false),
0161       drawFramesToGrouped                               (true),
0162       expandNewCurrentItem                              (false),
0163       scrollItemToCenter                                (false),
0164       showOnlyPersonTagsInPeopleSidebar                 (false),
0165       detectFacesInNewImages                            (false),
0166       iconShowName                                      (false),
0167       iconShowSize                                      (false),
0168       iconShowDate                                      (false),
0169       iconShowModDate                                   (false),
0170       iconShowTitle                                     (false),
0171       iconShowComments                                  (false),
0172       iconShowResolution                                (false),
0173       iconShowTags                                      (false),
0174       iconShowOverlays                                  (false),
0175       iconShowFullscreen                                (false),
0176       iconShowRating                                    (false),
0177       iconShowPickLabel                                 (false),
0178       iconShowColorLabel                                (false),
0179       iconShowImageFormat                               (false),
0180       iconShowCoordinates                               (false),
0181       iconShowAspectRatio                               (false),
0182       showToolTips                                      (false),
0183       tooltipShowFileName                               (false),
0184       tooltipShowFileDate                               (false),
0185       tooltipShowFileSize                               (false),
0186       tooltipShowImageType                              (false),
0187       tooltipShowImageDim                               (false),
0188       tooltipShowImageAR                                (false),
0189       tooltipShowPhotoMake                              (false),
0190       tooltipShowPhotoLens                              (false),
0191       tooltipShowPhotoDate                              (false),
0192       tooltipShowPhotoFocal                             (false),
0193       tooltipShowPhotoExpo                              (false),
0194       tooltipShowPhotoMode                              (false),
0195       tooltipShowPhotoFlash                             (false),
0196       tooltipShowPhotoWb                                (false),
0197       tooltipShowAlbumName                              (false),
0198       tooltipShowTitles                                 (false),
0199       tooltipShowComments                               (false),
0200       tooltipShowTags                                   (false),
0201       tooltipShowLabelRating                            (false),
0202       tooltipShowVideoAspectRatio                       (false),
0203       tooltipShowVideoAudioBitRate                      (false),
0204       tooltipShowVideoAudioChannelType                  (false),
0205       tooltipShowVideoAudioCodec                        (false),
0206       tooltipShowVideoDuration                          (false),
0207       tooltipShowVideoFrameRate                         (false),
0208       tooltipShowVideoVideoCodec                        (false),
0209       showAlbumToolTips                                 (false),
0210       tooltipShowAlbumTitle                             (false),
0211       tooltipShowAlbumDate                              (false),
0212       tooltipShowAlbumCollection                        (false),
0213       tooltipShowAlbumCategory                          (false),
0214       tooltipShowAlbumCaption                           (false),
0215       tooltipShowAlbumPreview                           (false),
0216       scaleFitToWindow                                  (false),
0217       previewShowIcons                                  (true),
0218       showThumbbar                                      (false),
0219       showFolderTreeViewItemsCount                      (false),
0220       treeThumbnailSize                                 (0),
0221       treeThumbFaceSize                                 (0),
0222       thumbnailSize                                     (0),
0223       ratingFilterCond                                  (0),
0224       recursiveAlbums                                   (false),
0225       recursiveTags                                     (false),
0226       allGroupsOpen                                     (false),
0227       scanAtStart                                       (true),
0228       cleanAtStart                                      (true),
0229       databaseDirSetAtCmd                               (false),
0230       albumMonitoring                                   (false),
0231       updateType                                        (0),
0232       updateWithDebug                                   (false),
0233       sidebarTitleStyle                                 (DMultiTabBar::AllIconsText),
0234       albumSortRole                                     (ApplicationSettings::ByFolder),
0235       albumSortChanged                                  (false),
0236       imageSortOrder                                    (0),
0237       imageSorting                                      (0),
0238       imageSeparationMode                               (0),
0239       imageSeparationSortOrder                          (0),
0240       itemLeftClickAction                               (ApplicationSettings::ShowPreview),
0241       syncToDigikam                                     (false),
0242       syncToBaloo                                       (false),
0243       faceDetectionAccuracy                             (0.7),
0244       faceDetectionYoloV3                               (false),
0245       stringComparisonType                              (ApplicationSettings::Natural),
0246       minimumSimilarityBound                            (40),
0247       duplicatesSearchLastMinSimilarity                 (90),
0248       duplicatesSearchLastMaxSimilarity                 (100),
0249       duplicatesSearchLastAlbumTagRelation              (0),
0250       duplicatesSearchLastRestrictions                  (0),
0251       duplicatesSearchLastReferenceImageSelectionMethod (HaarIface::RefImageSelMethod::OlderOrLarger),
0252       groupingOperateOnAll                              (ApplicationSettings::OperationModes()),
0253       q                                                 (qq)
0254 {
0255     for (int i = 0 ; i != ApplicationSettings::Unspecified ; ++i)
0256     {
0257         groupingOperateOnAll.insert((ApplicationSettings::OperationType)i,
0258                 ApplicationSettings::Ask);
0259     }
0260 }
0261 
0262 ApplicationSettings::Private::~Private()
0263 {
0264 }
0265 
0266 void ApplicationSettings::Private::init()
0267 {
0268     albumCategoryNames.clear();
0269     albumCategoryNames.append(i18nc("@item: album categories", "Category"));
0270     albumCategoryNames.append(i18nc("@item: album categories", "Travel"));
0271     albumCategoryNames.append(i18nc("@item: album categories", "Holidays"));
0272     albumCategoryNames.append(i18nc("@item: album categories", "Friends"));
0273     albumCategoryNames.append(i18nc("@item: album categories", "Nature"));
0274     albumCategoryNames.append(i18nc("@item: album categories", "Party"));
0275     albumCategoryNames.append(i18nc("@item: album categories", "Todo"));
0276     albumCategoryNames.append(i18nc("@item: album categories", "Miscellaneous"));
0277     albumCategoryNames.sort();
0278 
0279     albumSortRole                                     = ApplicationSettings::ByFolder;
0280     imageSortOrder                                    = ItemSortSettings::SortByFileName;
0281     imageSorting                                      = ItemSortSettings::AscendingOrder;
0282     imageSeparationMode                               = ItemSortSettings::CategoryByAlbum;
0283     imageSeparationSortOrder                          = ItemSortSettings::AscendingOrder;
0284 
0285     itemLeftClickAction                               = ApplicationSettings::ShowPreview;
0286 
0287     thumbnailSize                                     = ThumbnailSize::Medium;
0288     treeThumbnailSize                                 = 22;
0289     treeThumbFaceSize                                 = 48;
0290     treeviewFont                                      = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
0291 
0292     updateType                                        = 0;
0293     updateWithDebug                                   = false;
0294     sidebarTitleStyle                                 = DMultiTabBar::AllIconsText;
0295 
0296     ratingFilterCond                                  = ItemFilterSettings::GreaterEqualCondition;
0297 
0298     showSplash                                        = true;
0299     useTrash                                          = true;
0300     showTrashDeleteDialog                             = true;
0301     showPermanentDeleteDialog                         = true;
0302     sidebarApplyDirectly                              = false;
0303     useNativeFileDialog                               = false;
0304     drawFramesToGrouped                               = true;
0305     expandNewCurrentItem                              = true;
0306     scrollItemToCenter                                = false;
0307     showOnlyPersonTagsInPeopleSidebar                 = false;
0308     detectFacesInNewImages                            = false;
0309 
0310     iconShowName                                      = true;
0311     iconShowSize                                      = false;
0312     iconShowDate                                      = true;
0313     iconShowModDate                                   = false;
0314     iconShowTitle                                     = true;
0315     iconShowComments                                  = true;
0316     iconShowResolution                                = false;
0317     iconShowAspectRatio                               = false;
0318     iconShowTags                                      = true;
0319     iconShowOverlays                                  = true;
0320     iconShowFullscreen                                = true;
0321     iconShowRating                                    = true;
0322     iconShowPickLabel                                 = false;
0323     iconShowColorLabel                                = true;
0324     iconShowImageFormat                               = true;
0325     iconShowCoordinates                               = true;
0326     iconviewFont                                      = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
0327     toolTipsFont                                      = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
0328     showToolTips                                      = false;
0329     tooltipShowFileName                               = true;
0330     tooltipShowFileDate                               = false;
0331     tooltipShowFileSize                               = false;
0332     tooltipShowImageType                              = false;
0333     tooltipShowImageDim                               = true;
0334     tooltipShowImageAR                                = true;
0335     tooltipShowPhotoMake                              = true;
0336     tooltipShowPhotoLens                              = true;
0337     tooltipShowPhotoDate                              = true;
0338     tooltipShowPhotoFocal                             = true;
0339     tooltipShowPhotoExpo                              = true;
0340     tooltipShowPhotoMode                              = true;
0341     tooltipShowPhotoFlash                             = false;
0342     tooltipShowPhotoWb                                = false;
0343     tooltipShowAlbumName                              = false;
0344     tooltipShowTitles                                 = false;
0345     tooltipShowComments                               = true;
0346     tooltipShowTags                                   = true;
0347     tooltipShowLabelRating                            = true;
0348 
0349     tooltipShowVideoAspectRatio                       = true;
0350     tooltipShowVideoAudioBitRate                      = true;
0351     tooltipShowVideoAudioChannelType                  = true;
0352     tooltipShowVideoAudioCodec                        = true;
0353     tooltipShowVideoDuration                          = true;
0354     tooltipShowVideoFrameRate                         = true;
0355     tooltipShowVideoVideoCodec                        = true;
0356 
0357     showAlbumToolTips                                 = false;
0358     tooltipShowAlbumTitle                             = true;
0359     tooltipShowAlbumDate                              = true;
0360     tooltipShowAlbumCollection                        = true;
0361     tooltipShowAlbumCategory                          = true;
0362     tooltipShowAlbumCaption                           = true;
0363     tooltipShowAlbumPreview                           = false;
0364 
0365     scaleFitToWindow                                  = false;
0366     previewShowIcons                                  = true;
0367     showThumbbar                                      = true;
0368 
0369     recursiveAlbums                                   = false;
0370     recursiveTags                                     = true;
0371     allGroupsOpen                                     = false;
0372 
0373     showFolderTreeViewItemsCount                      = false;
0374 
0375     syncToDigikam                                     = false;
0376     syncToBaloo                                       = false;
0377     albumSortChanged                                  = false;
0378 
0379     faceDetectionAccuracy                             = 0.7;
0380     faceDetectionYoloV3                               = false;
0381 
0382     minimumSimilarityBound                            = 40;
0383     duplicatesSearchLastMinSimilarity                 = 90;
0384     duplicatesSearchLastMaxSimilarity                 = 100;
0385     duplicatesSearchLastAlbumTagRelation              = 0;
0386     duplicatesSearchLastRestrictions                  = 0;
0387     duplicatesSearchLastReferenceImageSelectionMethod = HaarIface::RefImageSelMethod::OlderOrLarger;
0388 
0389     scanAtStart                                       = true;
0390     cleanAtStart                                      = true;
0391     databaseDirSetAtCmd                               = false;
0392     albumMonitoring                                   = false;
0393     stringComparisonType                              = ApplicationSettings::Natural;
0394 
0395     applicationStyle                                  = qApp->style()->objectName();
0396     applicationIcon                                   = QString();
0397     applicationFont                                   = QFontDatabase::systemFont(QFontDatabase::GeneralFont);
0398 
0399     for (int i = 0 ; i != ApplicationSettings::Unspecified ; ++i)
0400     {
0401         groupingOperateOnAll.insert((ApplicationSettings::OperationType)i,
0402                                     ApplicationSettings::Ask);
0403     }
0404 
0405     q->connect(q, SIGNAL(balooSettingsChanged()),
0406                q, SLOT(applyBalooSettings()));
0407 }
0408 
0409 } // namespace Digikam