digiKam
iptceditwidget.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 : 2011-03-14
7  * Description : a #include "dconfigdlgwdgWidget to edit IPTC metadata
8  *
9  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2011 by Victor Dodon <dodon dot victor 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_EDIT_WIDGET_H
25 #define DIGIKAM_IPTC_EDIT_WIDGET_H
26 
27 // Local includes
28 
29 #include "dconfigdlgwidgets.h"
30 
31 using namespace Digikam;
32 
34 {
35 
36 class MetadataEditDialog;
37 
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit IPTCEditWidget(MetadataEditDialog* const parent);
45  ~IPTCEditWidget() override;
46 
47  bool isModified() const;
48  void saveSettings();
49  void apply();
50 
51 Q_SIGNALS:
52 
54  void signalSetReadOnly(bool);
55 
56 public Q_SLOTS:
57 
58  void slotModified();
59  void slotItemChanged();
60 
61 private:
62 
63  void readSettings();
64 
65  int activePageIndex() const;
66  void showPage(int page);
67 
68 private:
69 
70  class Private;
71  Private* const d;
72 };
73 
74 } // namespace DigikamGenericMetadataEditPlugin
75 
76 #endif // DIGIKAM_IPTC_EDIT_WIDGET_H
Page widget with many layouts (faces).
Definition: dconfigdlgwidgets.h:48
Definition: altlangstringedit.cpp:39
Definition: datefolderview.cpp:43