File indexing completed on 2024-04-28 04:21:20

0001 // SPDX-FileCopyrightText: 2003-2022 The KPhotoAlbum Development Team
0002 //
0003 // SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 #ifndef UNTAGGEDGROUPBOX_H
0006 #define UNTAGGEDGROUPBOX_H
0007 
0008 #include <QGroupBox>
0009 
0010 class QComboBox;
0011 class QCheckBox;
0012 
0013 namespace Settings
0014 {
0015 class SettingsData;
0016 
0017 class UntaggedGroupBox : public QGroupBox
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit UntaggedGroupBox(QWidget *parent = nullptr);
0022     void loadSettings(Settings::SettingsData *opt);
0023     void saveSettings(Settings::SettingsData *opt);
0024     void categoryAdded(const QString &categoryName);
0025     void categoryDeleted(const QString &categoryName);
0026     void categoryRenamed(const QString &oldCategoryName, const QString &newCategoryName);
0027 
0028 private Q_SLOTS:
0029     void populateCategoryComboBox();
0030     void populateTagsCombo();
0031 
0032 private:
0033     QComboBox *m_category;
0034     QComboBox *m_tag;
0035     QCheckBox *m_showUntaggedImagesTag;
0036 };
0037 
0038 }
0039 
0040 #endif /* UNTAGGEDGROUPBOX_H */
0041 
0042 // vi:expandtab:tabstop=4 shiftwidth=4: