digiKam
iptccategories.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2006-10-15
7  * Description : IPTC categories settings page.
8  *
9  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2013 by Victor Dodon <dodonvictor at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_IPTC_CATEGORIES_H
25 #define DIGIKAM_IPTC_CATEGORIES_H
26 
27 // Qt includes
28 
29 #include <QWidget>
30 
31 // Local includes
32 
33 #include "dmetadata.h"
34 
35 using namespace Digikam;
36 
38 {
39 
40 class IPTCCategories : public QWidget
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit IPTCCategories(QWidget* const parent);
47  ~IPTCCategories() override;
48 
49  void applyMetadata(const DMetadata& meta);
50  void readMetadata(const DMetadata& meta);
51 
52 Q_SIGNALS:
53 
55 
56 private Q_SLOTS:
57 
58  void slotCategorySelectionChanged();
59  void slotAddCategory();
60  void slotDelCategory();
61  void slotRepCategory();
62 
63  void slotCheckCategoryToggled(bool checked);
64  void slotCheckSubCategoryToggled(bool checked);
65 
66  void slotLineEditModified();
67 
68 private:
69 
70  void enableWidgets(bool checked1, bool checked2);
71 
72 private:
73 
74  class Private;
75  Private* const d;
76 };
77 
78 } // namespace DigikamGenericMetadataEditPlugin
79 
80 #endif // DIGIKAM_IPTC_CATEGORIES_H
Definition: dmetadata.h:55
Definition: altlangstringedit.cpp:39
Definition: datefolderview.cpp:43