digiKam
namespaceeditdlg.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 : 2015-07-03
7
* Description : dialog to edit and create digiKam xmp namespaces
8
*
9
* Copyright (C) 2015 by Veaceslav Munteanu <veaceslav dot munteanu90 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_NAMESPACE_EDIT_DLG_H
25
#define DIGIKAM_NAMESPACE_EDIT_DLG_H
26
27
// Qt includes
28
29
#include <QMap>
30
#include <QString>
31
#include <QKeySequence>
32
#include <QDialog>
33
34
// Local includes
35
36
#include "
dmetadatasettingscontainer.h
"
37
38
namespace
Digikam
39
{
40
41
class
NamespaceEditDlg
:
public
QDialog
42
{
43
Q_OBJECT
44
45
public
:
46
47
explicit
NamespaceEditDlg
(
bool
create
,
48
NamespaceEntry
& entry,
49
QWidget*
const
parent =
nullptr
);
50
~NamespaceEditDlg
()
override
;
51
52
void
saveData
(
NamespaceEntry
& entry);
53
54
static
bool
create
(QWidget*
const
parent,
NamespaceEntry
& entry);
55
static
bool
edit
(QWidget*
const
parent,
NamespaceEntry
& entry);
56
57
public
Q_SLOTS:
58
59
void
accept
()
override
;
60
61
private
Q_SLOTS:
62
63
void
slotHelp();
64
65
private
:
66
67
void
setupTagGui(
NamespaceEntry
& entry);
68
void
populateFields(
NamespaceEntry
& entry);
69
void
setType(
NamespaceEntry::NamespaceType
type);
70
void
makeReadOnly();
71
bool
validifyCheck(QString& errMsg);
72
73
private
:
74
75
class
Private;
76
Private*
const
d;
77
};
78
79
}
// namespace Digikam
80
81
#endif
// DIGIKAM_NAMESPACE_EDIT_DLG_H
Digikam::NamespaceEditDlg
Definition:
namespaceeditdlg.h:42
Digikam::NamespaceEditDlg::accept
void accept() override
Definition:
namespaceeditdlg.cpp:705
Digikam::NamespaceEditDlg::~NamespaceEditDlg
~NamespaceEditDlg() override
Definition:
namespaceeditdlg.cpp:196
Digikam::NamespaceEditDlg::edit
static bool edit(QWidget *const parent, NamespaceEntry &entry)
Definition:
namespaceeditdlg.cpp:219
Digikam::NamespaceEditDlg::create
static bool create(QWidget *const parent, NamespaceEntry &entry)
Definition:
namespaceeditdlg.cpp:201
Digikam::NamespaceEditDlg::NamespaceEditDlg
NamespaceEditDlg(bool create, NamespaceEntry &entry, QWidget *const parent=nullptr)
Definition:
namespaceeditdlg.cpp:137
Digikam::NamespaceEditDlg::saveData
void saveData(NamespaceEntry &entry)
Definition:
namespaceeditdlg.cpp:677
Digikam::NamespaceEntry
The NamespaceEntry class provide a simple container for dmetadata namespaces variables,...
Definition:
dmetadatasettingscontainer.h:51
Digikam::NamespaceEntry::NamespaceType
NamespaceType
Definition:
dmetadatasettingscontainer.h:81
dmetadatasettingscontainer.h
Digikam
Definition:
datefolderview.cpp:43
core
utilities
setup
metadata
namespaceeditdlg.h
Generated by
1.9.1