File indexing completed on 2025-01-05 03:57:56

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2005-04-02
0007  * Description : setup Misc tab.
0008  *
0009  * SPDX-FileCopyrightText: 2005-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef SHOW_FOTO_SETUP_MISC_H
0016 #define SHOW_FOTO_SETUP_MISC_H
0017 
0018 // Qt includes
0019 
0020 #include <QScrollArea>
0021 
0022 namespace ShowFoto
0023 {
0024 
0025 class ShowfotoSetupMisc : public QScrollArea
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030 
0031     enum SortOrder
0032     {
0033         SortByDate = 0,
0034         SortByName,
0035         SortByFileSize
0036     };
0037 
0038     enum MiscTab
0039     {
0040         Behaviour = 0,
0041         Appearance,
0042         SpellCheck,
0043         Localize,
0044         System
0045     };
0046 
0047 public:
0048 
0049     explicit ShowfotoSetupMisc(QWidget* const parent = nullptr);
0050     ~ShowfotoSetupMisc() override;
0051 
0052     void setActiveTab(MiscTab tab);
0053     MiscTab activeTab() const;
0054 
0055     bool checkSettings();
0056     void applySettings();
0057 
0058 private:
0059 
0060     void readSettings();
0061 
0062 private:
0063 
0064     class Private;
0065     Private* const d;
0066 };
0067 
0068 } // namespace ShowFoto
0069 
0070 #endif // SHOW_FOTO_SETUP_MISC_H