File indexing completed on 2024-04-28 15:40:11

0001 // SPDX-FileCopyrightText: 2003-2022 Jesper K. Pedersen <blackie@kde.org>
0002 //
0003 // SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 #ifndef CATEGORYIMAGEPOPUP_H
0006 #define CATEGORYIMAGEPOPUP_H
0007 
0008 #include <DB/ImageDB.h>
0009 
0010 #include <QImage>
0011 #include <QMenu>
0012 
0013 namespace MainWindow
0014 {
0015 
0016 class CategoryImagePopup : public QMenu
0017 {
0018     Q_OBJECT
0019 
0020 public:
0021     explicit CategoryImagePopup(QWidget *parent);
0022     void populate(const QImage &image, const DB::FileName &imageName);
0023 
0024 protected Q_SLOTS:
0025     void slotExecuteService(QAction *);
0026     void makeCategoryImage();
0027 
0028 private:
0029     QImage m_image;
0030     DB::ImageInfoPtr m_imageInfo;
0031 };
0032 }
0033 
0034 #endif /* CATEGORYIMAGEPOPUP_H */
0035 
0036 // vi:expandtab:tabstop=4 shiftwidth=4: