File indexing completed on 2024-04-28 04:21:03

0001 /* SPDX-FileCopyrightText: 2003-2016 Jesper K. Pedersen <blackie@kde.org>
0002 
0003    SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef INFODIALOG_H
0007 #define INFODIALOG_H
0008 
0009 #include <ImageManager/ImageClientInterface.h>
0010 #include <kpabase/FileName.h>
0011 
0012 #include <QDialog>
0013 
0014 class QComboBox;
0015 class QLineEdit;
0016 class QLabel;
0017 class QKeyEvent;
0018 class QResizeEvent;
0019 
0020 namespace DB
0021 {
0022 
0023 class Id;
0024 
0025 }
0026 
0027 namespace Exif
0028 {
0029 
0030 class Grid;
0031 class MetaDataDisplay;
0032 
0033 class InfoDialog : public QDialog, public ImageManager::ImageClientInterface
0034 {
0035     Q_OBJECT
0036 
0037 public:
0038     InfoDialog(const DB::FileName &fileName, QWidget *parent);
0039     void setImage(const DB::FileName &fileName);
0040 
0041     QSize sizeHint() const override;
0042     void enterEvent(QEvent *) override;
0043 
0044     // ImageManager::ImageClient interface.
0045     void pixmapLoaded(ImageManager::ImageRequest *request, const QImage &image) override;
0046 
0047 private:
0048     QLineEdit *m_searchBox;
0049     QLabel *m_pix;
0050     QComboBox *m_iptcCharset;
0051     Grid *m_grid;
0052     QLabel *m_fileNameLabel;
0053     MetaDataDisplay *m_metaDataDisplay;
0054 };
0055 
0056 }
0057 
0058 #endif /* INFODIALOG_H */
0059 
0060 // vi:expandtab:tabstop=4 shiftwidth=4: