File indexing completed on 2025-01-19 03:57:01

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2021-07-24
0007  * Description : frame on screen display settings container.
0008  *
0009  * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2021      by Quoc Hưng Tran <quochungtran1999 at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_FRAME_OSD_SETTINGS_H
0017 #define DIGIKAM_FRAME_OSD_SETTINGS_H
0018 
0019 // Qt includes
0020 
0021 #include <QList>
0022 #include <QString>
0023 #include <QFont>
0024 
0025 // Local includes
0026 
0027 #include "digikam_export.h"
0028 
0029 class KConfigGroup;
0030 
0031 namespace Digikam
0032 {
0033 
0034 class DIGIKAM_EXPORT FrameOsdSettings
0035 {
0036 
0037 public:
0038 
0039     explicit FrameOsdSettings();
0040     ~FrameOsdSettings();
0041 
0042     /**
0043      * Read and write settings in config file between sessions.
0044      */
0045     void  readSettings(KConfigGroup& group);
0046     void  writeSettings(KConfigGroup& group);
0047 
0048 public:
0049 
0050     bool                        printName            = true;  ///< Print picture file name while streaming
0051     bool                        printDate            = true;  ///< Print picture creation date while streaming
0052     bool                        printTitle           = false; ///< Print image title while streaming
0053     bool                        printTags            = false; ///< Print tags title while streaming
0054     bool                        printCapIfNoTitle    = false; ///< Print image captions if no title available while streaming
0055     bool                        printComment         = false; ///< Print picture comment while streaming
0056     bool                        printMakeModel       = false; ///< Print camera Make and Model while streaming
0057     bool                        printLensModel       = false; ///< Print camera Lens model while streaming
0058     bool                        printExpoSensitivity = false; ///< Print camera Exposure and Sensitivity while streaming
0059     bool                        printApertureFocal   = false; ///< Print camera Aperture and Focal while streaming
0060     bool                        printRating          = false; ///< Print rating while streaming
0061     QFont                       osdFont;                      ///< Font for the display of osd text
0062 };
0063 
0064 } // namespace Digikam
0065 
0066 #endif // DIGIKAM_FRAME_OSD_SETTINGS_H