digiKam
templatepanel.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 : 2009-07-06
7  * Description : metadata template settings panel.
8  *
9  * Copyright (C) 2009-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)
15  * 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_TEMPLATE_PANEL_H
25 #define DIGIKAM_TEMPLATE_PANEL_H
26 
27 // Qt includes
28 
29 #include <QTabWidget>
30 
31 // Local includes
32 
33 #include "template.h"
34 
35 namespace Digikam
36 {
37 
38 class TemplatePanel : public QTabWidget
39 {
40  Q_OBJECT
41 
42 public:
43 
45  {
46  RIGHTS=0,
49  SUBJECTS
50  };
51 
52 public:
53 
54  explicit TemplatePanel(QWidget* const parent = nullptr);
56 
57  void setTemplate(const Template& t);
58  Template getTemplate() const;
59 
60  void apply();
61 
62 private:
63 
64  class Private;
65  Private* const d;
66 };
67 
68 } // namespace Digikam
69 
70 #endif // DIGIKAM_TEMPLATE_PANEL_H
Definition: templatepanel.h:39
TemplatePanel(QWidget *const parent=nullptr)
Definition: templatepanel.cpp:110
TemplateTab
Definition: templatepanel.h:45
@ RIGHTS
Definition: templatepanel.h:46
@ CONTACT
Definition: templatepanel.h:48
@ SUBJECTS
Definition: templatepanel.h:49
@ LOCATION
Definition: templatepanel.h:47
void setTemplate(const Template &t)
Definition: templatepanel.cpp:449
~TemplatePanel()
Definition: templatepanel.cpp:444
Template getTemplate() const
Definition: templatepanel.cpp:476
void apply()
Definition: templatepanel.cpp:510
Definition: template.h:46
Definition: datefolderview.cpp:43