digiKam
iptcorigin.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-13
7  * Description : IPTC origin settings page.
8  *
9  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_IPTC_ORIGIN_H
24 #define DIGIKAM_IPTC_ORIGIN_H
25 
26 // Qt includes
27 
28 #include <QWidget>
29 #include <QDateTime>
30 
31 // Local includes
32 
33 #include "dmetadata.h"
34 
35 using namespace Digikam;
36 
38 {
39 
40 class IPTCOrigin : public QWidget
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit IPTCOrigin(QWidget* const parent);
47  ~IPTCOrigin() override;
48 
49  void applyMetadata(const DMetadata& meta);
50  void readMetadata(const DMetadata& meta);
51 
52  bool syncEXIFDateIsChecked() const;
53 
54  void setCheckedSyncEXIFDate(bool c);
55 
56  QDateTime getIPTCCreationDate() const;
57 
58 Q_SIGNALS:
59 
61 
62 private Q_SLOTS:
63 
64  void slotSetTodayCreated();
65  void slotSetTodayDigitalized();
66  void slotLineEditModified();
67 
68 private:
69 
70  class Private;
71  Private* const d;
72 };
73 
74 } // namespace DigikamGenericMetadataEditPlugin
75 
76 #endif // DIGIKAM_IPTC_ORIGIN_H
Definition: dmetadata.h:55
Definition: altlangstringedit.cpp:39
Definition: datefolderview.cpp:43