digiKam
setuptemplate.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-07-04
7  * Description : metadata template setup 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)
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_SETUP_TEMPLATE_H
25 #define DIGIKAM_SETUP_TEMPLATE_H
26 
27 // Qt includes
28 
29 #include <QScrollArea>
30 
31 // Local includes
32 
33 #include "template.h"
34 
35 namespace Digikam
36 {
37 
38 class SetupTemplate : public QScrollArea
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit SetupTemplate(QWidget* const parent = nullptr);
45  ~SetupTemplate() override;
46 
47  void applySettings();
48  void setTemplate(const Template& t);
49 
50 private:
51 
52  void readSettings();
53  void populateTemplate(const Template& t);
54 
55 private Q_SLOTS:
56 
57  void slotSelectionChanged();
58  void slotAddTemplate();
59  void slotDelTemplate();
60  void slotRepTemplate();
61 
62 private:
63 
64  class Private;
65  Private* const d;
66 };
67 
68 } // namespace Digikam
69 
70 #endif // DIGIKAM_SETUP_TEMPLATE_H
Definition: setuptemplate.h:39
void setTemplate(const Template &t)
Definition: setuptemplate.cpp:219
void applySettings()
Definition: setuptemplate.cpp:184
SetupTemplate(QWidget *const parent=nullptr)
Definition: setuptemplate.cpp:78
~SetupTemplate() override
Definition: setuptemplate.cpp:179
Definition: template.h:46
Definition: datefolderview.cpp:43