File indexing completed on 2024-05-05 04:22:01

0001 // SPDX-FileCopyrightText: 2003-2022 Jesper K. Pedersen <blackie@kde.org>
0002 //
0003 // SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 #ifndef IMAGEROW_H
0006 #define IMAGEROW_H
0007 
0008 #include <DB/ImageInfoPtr.h>
0009 
0010 #include <QObject>
0011 
0012 class QCheckBox;
0013 namespace ImportExport
0014 {
0015 class ImportDialog;
0016 class KimFileReader;
0017 
0018 /**
0019  * This class represent a single row on the ImageDialog's "select widgets to import" page.
0020  */
0021 class ImageRow : public QObject
0022 {
0023     Q_OBJECT
0024 public:
0025     ImageRow(DB::ImageInfoPtr info, ImportDialog *import, KimFileReader *kimFileReader, QWidget *parent);
0026     QCheckBox *m_checkbox;
0027     DB::ImageInfoPtr m_info;
0028     ImportDialog *m_import;
0029     KimFileReader *m_kimFileReader;
0030 
0031 public Q_SLOTS:
0032     void showImage();
0033 };
0034 
0035 }
0036 
0037 #endif /* IMAGEROW_H */
0038 
0039 // vi:expandtab:tabstop=4 shiftwidth=4: