digiKam
disjointmetadatadatafields.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-08-17
7
* Description : Helper class for Image Description Editor Tab
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_DISJOINT_METADATA_DATA_FIELDS_H
25
#define DIGIKAM_DISJOINT_METADATA_DATA_FIELDS_H
26
27
#include "
disjointmetadata.h
"
28
29
// Qt includes
30
31
#include <QMap>
32
#include <QList>
33
#include <QDateTime>
34
#include <QStringList>
35
36
// Local includes
37
38
#include "
captionvalues.h
"
39
#include "
template.h
"
40
41
namespace
Digikam
42
{
43
48
class
DisjointMetadataDataFields
49
{
50
51
public
:
52
58
enum
Status
59
{
60
MetadataInvalid
,
61
MetadataAvailable
,
62
MetadataDisjoint
63
};
64
65
public
:
66
67
DisjointMetadataDataFields
()
68
:
dateTimeChanged
(false),
69
titlesChanged
(false),
70
commentsChanged
(false),
71
pickLabelChanged
(false),
72
colorLabelChanged
(false),
73
ratingChanged
(false),
74
templateChanged
(false),
75
tagsChanged
(false),
76
withoutTags
(false),
77
pickLabel
(-1),
78
highestPickLabel
(-1),
79
colorLabel
(-1),
80
highestColorLabel
(-1),
81
rating
(-1),
82
highestRating
(-1),
83
count
(0),
84
dateTimeStatus
(
MetadataInvalid
),
85
titlesStatus
(
MetadataInvalid
),
86
commentsStatus
(
MetadataInvalid
),
87
pickLabelStatus
(
MetadataInvalid
),
88
colorLabelStatus
(
MetadataInvalid
),
89
ratingStatus
(
MetadataInvalid
),
90
templateStatus
(
MetadataInvalid
),
91
invalid
(false)
92
{
93
}
94
95
bool
dateTimeChanged
;
96
bool
titlesChanged
;
97
bool
commentsChanged
;
98
bool
pickLabelChanged
;
99
bool
colorLabelChanged
;
100
bool
ratingChanged
;
101
bool
templateChanged
;
102
bool
tagsChanged
;
103
bool
withoutTags
;
104
105
int
pickLabel
;
106
int
highestPickLabel
;
107
int
colorLabel
;
108
int
highestColorLabel
;
109
int
rating
;
110
int
highestRating
;
111
int
count
;
112
113
QDateTime
dateTime
;
114
QDateTime
lastDateTime
;
115
116
CaptionsMap
titles
;
117
CaptionsMap
comments
;
118
119
Template
metadataTemplate
;
120
121
QMap<int, Status>
tags
;
122
123
QStringList
tagList
;
124
125
Status
dateTimeStatus
;
126
Status
titlesStatus
;
127
Status
commentsStatus
;
128
Status
pickLabelStatus
;
129
Status
colorLabelStatus
;
130
Status
ratingStatus
;
131
Status
templateStatus
;
132
133
QList<int>
tagIds
;
134
bool
invalid
;
135
};
136
137
}
// namespace Digikam
138
139
#endif
// DIGIKAM_DISJOINT_METADATA_DATA_FIELDS_H
captionvalues.h
Digikam::CaptionsMap
Definition:
captionvalues.h:69
Digikam::DisjointMetadataDataFields
Definition:
disjointmetadatadatafields.h:49
Digikam::DisjointMetadataDataFields::withoutTags
bool withoutTags
Definition:
disjointmetadatadatafields.h:103
Digikam::DisjointMetadataDataFields::highestPickLabel
int highestPickLabel
Definition:
disjointmetadatadatafields.h:106
Digikam::DisjointMetadataDataFields::tagsChanged
bool tagsChanged
Definition:
disjointmetadatadatafields.h:102
Digikam::DisjointMetadataDataFields::pickLabelChanged
bool pickLabelChanged
Definition:
disjointmetadatadatafields.h:98
Digikam::DisjointMetadataDataFields::ratingChanged
bool ratingChanged
Definition:
disjointmetadatadatafields.h:100
Digikam::DisjointMetadataDataFields::tags
QMap< int, Status > tags
Definition:
disjointmetadatadatafields.h:121
Digikam::DisjointMetadataDataFields::comments
CaptionsMap comments
Definition:
disjointmetadatadatafields.h:117
Digikam::DisjointMetadataDataFields::templateStatus
Status templateStatus
Definition:
disjointmetadatadatafields.h:131
Digikam::DisjointMetadataDataFields::titlesStatus
Status titlesStatus
Definition:
disjointmetadatadatafields.h:126
Digikam::DisjointMetadataDataFields::ratingStatus
Status ratingStatus
Definition:
disjointmetadatadatafields.h:130
Digikam::DisjointMetadataDataFields::rating
int rating
Definition:
disjointmetadatadatafields.h:109
Digikam::DisjointMetadataDataFields::tagIds
QList< int > tagIds
Definition:
disjointmetadatadatafields.h:133
Digikam::DisjointMetadataDataFields::pickLabelStatus
Status pickLabelStatus
Definition:
disjointmetadatadatafields.h:128
Digikam::DisjointMetadataDataFields::tagList
QStringList tagList
Definition:
disjointmetadatadatafields.h:123
Digikam::DisjointMetadataDataFields::dateTime
QDateTime dateTime
Definition:
disjointmetadatadatafields.h:113
Digikam::DisjointMetadataDataFields::pickLabel
int pickLabel
Definition:
disjointmetadatadatafields.h:105
Digikam::DisjointMetadataDataFields::DisjointMetadataDataFields
DisjointMetadataDataFields()
Definition:
disjointmetadatadatafields.h:67
Digikam::DisjointMetadataDataFields::colorLabel
int colorLabel
Definition:
disjointmetadatadatafields.h:107
Digikam::DisjointMetadataDataFields::titles
CaptionsMap titles
Definition:
disjointmetadatadatafields.h:116
Digikam::DisjointMetadataDataFields::lastDateTime
QDateTime lastDateTime
Definition:
disjointmetadatadatafields.h:114
Digikam::DisjointMetadataDataFields::Status
Status
Definition:
disjointmetadatadatafields.h:59
Digikam::DisjointMetadataDataFields::MetadataDisjoint
@ MetadataDisjoint
No common value is available. For rating and dates, the interval is available.
Definition:
disjointmetadatadatafields.h:62
Digikam::DisjointMetadataDataFields::MetadataInvalid
@ MetadataInvalid
Not yet filled with any value.
Definition:
disjointmetadatadatafields.h:60
Digikam::DisjointMetadataDataFields::MetadataAvailable
@ MetadataAvailable
Only one data set has been added, or a common value is available.
Definition:
disjointmetadatadatafields.h:61
Digikam::DisjointMetadataDataFields::colorLabelChanged
bool colorLabelChanged
Definition:
disjointmetadatadatafields.h:99
Digikam::DisjointMetadataDataFields::invalid
bool invalid
Definition:
disjointmetadatadatafields.h:134
Digikam::DisjointMetadataDataFields::metadataTemplate
Template metadataTemplate
Definition:
disjointmetadatadatafields.h:119
Digikam::DisjointMetadataDataFields::highestRating
int highestRating
Definition:
disjointmetadatadatafields.h:110
Digikam::DisjointMetadataDataFields::commentsChanged
bool commentsChanged
Definition:
disjointmetadatadatafields.h:97
Digikam::DisjointMetadataDataFields::highestColorLabel
int highestColorLabel
Definition:
disjointmetadatadatafields.h:108
Digikam::DisjointMetadataDataFields::templateChanged
bool templateChanged
Definition:
disjointmetadatadatafields.h:101
Digikam::DisjointMetadataDataFields::count
int count
Definition:
disjointmetadatadatafields.h:111
Digikam::DisjointMetadataDataFields::colorLabelStatus
Status colorLabelStatus
Definition:
disjointmetadatadatafields.h:129
Digikam::DisjointMetadataDataFields::commentsStatus
Status commentsStatus
Definition:
disjointmetadatadatafields.h:127
Digikam::DisjointMetadataDataFields::dateTimeStatus
Status dateTimeStatus
Definition:
disjointmetadatadatafields.h:125
Digikam::DisjointMetadataDataFields::titlesChanged
bool titlesChanged
Definition:
disjointmetadatadatafields.h:96
Digikam::DisjointMetadataDataFields::dateTimeChanged
bool dateTimeChanged
Definition:
disjointmetadatadatafields.h:95
Digikam::Template
Definition:
template.h:46
QList< int >
disjointmetadata.h
Digikam
Definition:
datefolderview.cpp:43
template.h
core
libs
properties
captions
disjointmetadatadatafields.h
Generated by
1.9.1