digiKam
Loading...
Searching...
No Matches
templateselector.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-06-23
7 * Description : a widget to select metadata template.
8 *
9 * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Local includes
18
19#include "dlayoutbox.h"
20#include "digikam_export.h"
21
22namespace Digikam
23{
24
25class Template;
26
27class DIGIKAM_GUI_EXPORT TemplateSelector : public DHBox
28{
29 Q_OBJECT
30
31public:
32
34 {
35 REMOVETEMPLATE = 0,
36 DONTCHANGE = 1
37 };
38
39public:
40
41 explicit TemplateSelector(QWidget* const parent = nullptr);
42 ~TemplateSelector() override;
43
44 Template getTemplate() const;
45 void setTemplate(const Template& t);
46
47 int getTemplateIndex() const;
48 void setTemplateIndex(int i);
49
50Q_SIGNALS:
51
53
54private Q_SLOTS:
55
56 void slotOpenSetup();
57 void slotTemplateListChanged();
58
59private:
60
61 void populateTemplates();
62
63private:
64
65 class Private;
66 Private* const d = nullptr;
67};
68
69} // namespace Digikam
Definition dlayoutbox.h:35
Definition templateselector.h:28
SelectorItems
Definition templateselector.h:34
Definition template.h:36
Definition datefolderview.cpp:34