File indexing completed on 2024-05-12 15:55:37
0001 // SPDX-FileCopyrightText: 2012-2022 Jesper K. Pedersen <blackie@kde.org> 0002 // 0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0004 0005 #ifndef MAINWINDOW_DUPLICATEMATCH_H 0006 #define MAINWINDOW_DUPLICATEMATCH_H 0007 0008 #include <ImageManager/ImageClientInterface.h> 0009 #include <Utilities/DeleteFiles.h> 0010 #include <kpabase/FileNameList.h> 0011 0012 #include <QList> 0013 #include <QWidget> 0014 0015 class QLabel; 0016 class QCheckBox; 0017 class QRadioButton; 0018 0019 namespace MainWindow 0020 { 0021 0022 class MergeToolTip; 0023 0024 class DuplicateMatch : public QWidget, ImageManager::ImageClientInterface 0025 { 0026 Q_OBJECT 0027 0028 public: 0029 explicit DuplicateMatch(const DB::FileNameList &files); 0030 void pixmapLoaded(ImageManager::ImageRequest *request, const QImage &image) override; 0031 void setSelected(bool); 0032 bool selected() const; 0033 void execute(Utilities::DeleteMethod); 0034 bool eventFilter(QObject *, QEvent *) override; 0035 0036 Q_SIGNALS: 0037 void selectionChanged(); 0038 0039 private: 0040 QLabel *m_image; 0041 QCheckBox *m_merge; 0042 QList<QRadioButton *> m_buttons; 0043 }; 0044 0045 } // namespace MainWindow 0046 0047 #endif // MAINWINDOW_DUPLICATEMATCH_H 0048 // vi:expandtab:tabstop=4 shiftwidth=4: