File indexing completed on 2025-01-05 03:56:42
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2010-06-23 0007 * Description : a tab to display item editing history 0008 * 0009 * SPDX-FileCopyrightText: 2010 by Martin Klapetek <martin dot klapetek at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_ITEM_PROPERTIES_HISTORY_TAB_H 0016 #define DIGIKAM_ITEM_PROPERTIES_HISTORY_TAB_H 0017 0018 // Qt includes 0019 0020 #include <QWidget> 0021 #include <QAction> 0022 #include <QModelIndex> 0023 #include <QUrl> 0024 0025 // Local includes 0026 0027 #include "digikam_export.h" 0028 #include "dmetadata.h" 0029 0030 namespace Digikam 0031 { 0032 0033 class DIGIKAM_GUI_EXPORT RemoveFilterAction : public QAction 0034 { 0035 Q_OBJECT 0036 0037 public: 0038 0039 explicit RemoveFilterAction(const QString& label, 0040 const QModelIndex& index, 0041 QObject* const parent = nullptr); 0042 ~RemoveFilterAction(); 0043 0044 void setIndex(const QModelIndex& index); 0045 0046 public Q_SLOTS: 0047 0048 void triggerSlot(); 0049 0050 Q_SIGNALS: 0051 0052 void actionTriggered(QModelIndex index); 0053 0054 private: 0055 0056 QModelIndex m_index; 0057 }; 0058 0059 // ------------------------------------------------------------------------------------- 0060 0061 class DIGIKAM_GUI_EXPORT ItemPropertiesHistoryTab : public QWidget 0062 { 0063 Q_OBJECT 0064 0065 public: 0066 0067 explicit ItemPropertiesHistoryTab(QWidget* const parent); 0068 ~ItemPropertiesHistoryTab(); 0069 0070 void setCurrentURL(const QUrl& url = QUrl()); 0071 0072 public Q_SLOTS: 0073 0074 void showCustomContextMenu(const QPoint& position); 0075 void setModelData(const QList<DImageHistory::Entry>& entries); 0076 void disableEntry(bool disable); 0077 0078 private: 0079 0080 class Private; 0081 Private* const d; 0082 }; 0083 0084 } // namespace Digikam 0085 0086 #endif // DIGIKAM_ITEM_PROPERTIES_HISTORY_TAB_H