digiKam
itempropertieshistorytab.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 : 2010-06-23
7
* Description : a tab to display item editing history
8
*
9
* Copyright (C) 2010 by Martin Klapetek <martin dot klapetek 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_ITEM_PROPERTIES_HISTORY_TAB_H
25
#define DIGIKAM_ITEM_PROPERTIES_HISTORY_TAB_H
26
27
// Qt includes
28
29
#include <QWidget>
30
#include <QAction>
31
#include <QModelIndex>
32
#include <QUrl>
33
34
// Local includes
35
36
#include "
digikam_export.h
"
37
#include "
dmetadata.h
"
38
39
namespace
Digikam
40
{
41
42
class
DIGIKAM_GUI_EXPORT
RemoveFilterAction
:
public
QAction
43
{
44
Q_OBJECT
45
46
public
:
47
48
explicit
RemoveFilterAction
(
const
QString& label,
49
const
QModelIndex& index,
50
QObject*
const
parent =
nullptr
);
51
~
RemoveFilterAction
();
52
53
void
setIndex(
const
QModelIndex& index);
54
55
public
Q_SLOTS:
56
57
void
triggerSlot();
58
59
Q_SIGNALS:
60
61
void
actionTriggered
(QModelIndex index);
62
63
private
:
64
65
QModelIndex m_index;
66
};
67
68
// -------------------------------------------------------------------------------------
69
70
class
DIGIKAM_GUI_EXPORT
ItemPropertiesHistoryTab
:
public
QWidget
71
{
72
Q_OBJECT
73
74
public
:
75
76
explicit
ItemPropertiesHistoryTab
(QWidget*
const
parent);
77
~
ItemPropertiesHistoryTab
();
78
79
void
setCurrentURL(
const
QUrl& url = QUrl());
80
81
public
Q_SLOTS:
82
83
void
showCustomContextMenu(
const
QPoint&
position
);
84
void
setModelData(
const
QList<DImageHistory::Entry>
& entries);
85
void
disableEntry(
bool
disable);
86
87
private
:
88
89
class
Private;
90
Private*
const
d;
91
};
92
93
}
// namespace Digikam
94
95
#endif
// DIGIKAM_ITEM_PROPERTIES_HISTORY_TAB_H
Digikam::ItemPropertiesHistoryTab
Definition:
itempropertieshistorytab.h:71
Digikam::RemoveFilterAction
Definition:
itempropertieshistorytab.h:43
Digikam::RemoveFilterAction::actionTriggered
void actionTriggered(QModelIndex index)
QList
Definition:
piwigotalker.h:48
digikam_export.h
dmetadata.h
Digikam
Definition:
datefolderview.cpp:43
position
Definition:
scan.h:26
core
libs
properties
history
itempropertieshistorytab.h
Generated by
1.9.1