File indexing completed on 2025-01-05 04:00:13
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2004-08-23 0007 * Description : mics configuration setup tab 0008 * 0009 * SPDX-FileCopyrightText: 2004 by Renchi Raju <renchi dot raju at gmail dot com> 0010 * SPDX-FileCopyrightText: 2005-2024 by Gilles Caulier <caulier dot gilles at gmail 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 #ifndef DIGIKAM_SETUP_MISC_H 0018 #define DIGIKAM_SETUP_MISC_H 0019 0020 // Qt includes 0021 0022 #include <QScrollArea> 0023 0024 namespace Digikam 0025 { 0026 0027 class SetupMisc : public QScrollArea 0028 { 0029 Q_OBJECT 0030 0031 public: 0032 0033 enum MiscTab 0034 { 0035 Behaviour = 0, 0036 Appearance, 0037 Grouping, 0038 SpellCheck, 0039 Localize, 0040 System 0041 }; 0042 0043 public: 0044 0045 explicit SetupMisc(QWidget* const parent = nullptr); 0046 ~SetupMisc() override; 0047 0048 void setActiveTab(MiscTab tab); 0049 MiscTab activeTab() const; 0050 0051 bool checkSettings(); 0052 void applySettings(); 0053 0054 private: 0055 0056 void readSettings(); 0057 0058 private: 0059 0060 class Private; 0061 Private* const d; 0062 }; 0063 0064 } // namespace Digikam 0065 0066 #endif // DIGIKAM_SETUP_MISC_H