digiKam
setupmetadata.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 : 2003-08-03
7  * Description : setup Metadata tab.
8  *
9  * Copyright (C) 2003-2004 by Ralf Holzer <ralf at well.com>
10  * Copyright (C) 2003-2022 by Gilles Caulier <caulier dot gilles 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)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_SETUP_METADATA_H
26 #define DIGIKAM_SETUP_METADATA_H
27 
28 // Qt includes
29 
30 #include <QScrollArea>
31 
32 namespace Digikam
33 {
34 
35 class SetupMetadata : public QScrollArea
36 {
37  Q_OBJECT
38 
39 public:
40 
42  {
43  Behavior = 0,
50  };
51 
52 public:
53 
54  explicit SetupMetadata(QWidget* const parent = nullptr);
55  ~SetupMetadata() override;
56 
57  void applySettings();
58 
59  bool exifAutoRotateHasChanged() const;
60 
61  void setActiveMainTab(MetadataTab tab);
62  void setActiveSubTab(int tab);
63 
64 private:
65 
66  void appendBehaviorTab();
67  void appendSidecarsTab();
68  void appendDisplayTab();
69  void appendRotationTab();
70  void appendBalooTab();
71 
72 private Q_SLOTS:
73 
74  void slotExifAutoRotateToggled(bool);
75  void slotClearMetadataToggled(bool);
76  void slotWriteRawFilesToggled(bool);
77 
78 private:
79 
80  class Private;
81  Private* const d;
82 };
83 
84 } // namespace Digikam
85 
86 #endif // DIGIKAM_SETUP_METADATA_H
Definition: setupmetadata.h:36
void setActiveSubTab(int tab)
Definition: setupmetadata.cpp:94
MetadataTab
Definition: setupmetadata.h:42
@ AdvancedConfig
Definition: setupmetadata.h:49
@ Sidecars
Definition: setupmetadata.h:44
@ Display
Definition: setupmetadata.h:46
@ Baloo
Definition: setupmetadata.h:48
@ ExifTool
Definition: setupmetadata.h:47
@ Behavior
Definition: setupmetadata.h:43
@ Rotation
Definition: setupmetadata.h:45
void applySettings()
Definition: setupmetadata.cpp:99
void setActiveMainTab(MetadataTab tab)
Definition: setupmetadata.cpp:89
~SetupMetadata() override
Definition: setupmetadata.cpp:84
SetupMetadata(QWidget *const parent=nullptr)
Definition: setupmetadata.cpp:32
bool exifAutoRotateHasChanged() const
Definition: setupmetadata.cpp:189
Definition: datefolderview.cpp:43