File indexing completed on 2025-01-05 04:00:10

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2005-02-01
0007  * Description : collections setup 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 DIGIKAM_SETUP_COLLECTIONS_H
0016 #define DIGIKAM_SETUP_COLLECTIONS_H
0017 
0018 // Qt includes
0019 
0020 #include <QScrollArea>
0021 
0022 // Local includes
0023 
0024 #include "digikam_export.h"
0025 
0026 namespace Digikam
0027 {
0028 
0029 class DIGIKAM_GUI_EXPORT SetupCollections : public QScrollArea
0030 {
0031     Q_OBJECT
0032 
0033 public:
0034 
0035     enum CollectionsTab
0036     {
0037         Collections = 0,
0038         IgnoreDirs
0039     };
0040 
0041 public:
0042 
0043     explicit SetupCollections(QWidget* const parent = nullptr);
0044     ~SetupCollections() override;
0045 
0046     void setActiveTab(CollectionsTab tab);
0047     CollectionsTab activeTab() const;
0048 
0049     void applySettings();
0050 
0051 private:
0052 
0053     void readSettings();
0054 
0055 private Q_SLOTS:
0056 
0057     void slotShowCurrentIgnoredDirectoriesSettings() const;
0058 
0059 private:
0060 
0061     class Private;
0062     Private* const d;
0063 };
0064 
0065 } // namespace Digikam
0066 
0067 #endif // DIGIKAM_SETUP_COLLECTIONS_H