digiKam
importitempropertiessidebar.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-02-08
7  * Description : item properties side bar used by import tool.
8  *
9  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2013 by Michael G. Hansen <mike at mghansen dot de>
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_IMPORT_ITEM_PROPERTIES_SIDEBAR_H
26 #define DIGIKAM_IMPORT_ITEM_PROPERTIES_SIDEBAR_H
27 
28 // Qt includes
29 
30 #include <QUrl>
31 #include <QWidget>
32 
33 // Local includes
34 
35 #include "sidebar.h"
36 #include "digikam_export.h"
37 
38 namespace Digikam
39 {
40 
41 class SidebarSplitter;
42 class CamItemInfo;
43 class DMetadata;
44 
45 class DIGIKAM_GUI_EXPORT ImportItemPropertiesSideBarImport : public Sidebar
46 {
47  Q_OBJECT
48 
49 public:
50 
51  explicit ImportItemPropertiesSideBarImport(QWidget* const parent,
52  SidebarSplitter* const splitter,
53  Qt::Edge side = Qt::LeftEdge,
54  bool mimimizedDefault = false);
56 
57  void applySettings();
58 
59  void itemChanged(const CamItemInfo& itemInfo, const DMetadata& meta);
60 
61  QUrl url() const;
62 
63 public Q_SLOTS:
64 
65  virtual void slotNoCurrentItem();
66 
67 Q_SIGNALS:
68 
73 
74 protected:
75 
79  void doLoadState() override;
80 
84  void doSaveState() override;
85 
86 private Q_SLOTS:
87 
88  virtual void slotChangedTab(QWidget* tab);
89 
90 private:
91 
92  class Private;
93  Private* const d;
94 };
95 
96 } // namespace Digikam
97 
98 #endif // DIGIKAM_IMPORT_ITEM_PROPERTIES_SIDEBAR_H
Definition: camiteminfo.h:48
Definition: dmetadata.h:55
Definition: importitempropertiessidebar.h:46
Definition: sidebar.h:480
Definition: sidebar.h:333
Definition: datefolderview.cpp:43