File indexing completed on 2024-04-14 05:36:46

0001 /***************************************************************************
0002  *   Copyright (C) 2020 by Friedrich W. H. Kossebau - kossebau@kde.org     *
0003  *                                                                         *
0004  *   This program is free software; you can redistribute it and/or modify  *
0005  *   it under the terms of the GNU General Public License as published by  *
0006  *   the Free Software Foundation; either version 2 of the License, or     *
0007  *   (at your option) any later version.                                   *
0008  ***************************************************************************/
0009 
0010 #ifndef IMAGEEXPORTDLG_H
0011 #define IMAGEEXPORTDLG_H
0012 
0013 #include <QDialog>
0014 #include <QStringList>
0015 
0016 class KComboBox;
0017 class KUrlRequester;
0018 class QCheckBox;
0019 class QPushButton;
0020 class QDialogButtonBox;
0021 class QString;
0022 
0023 class ImageExportDialog : public QDialog
0024 {
0025     Q_OBJECT
0026 
0027 public:
0028     explicit ImageExportDialog(QWidget *parent);
0029 
0030 public:
0031     QString filePath() const;
0032     QString formatType() const;
0033     bool isCropSelected() const;
0034 
0035 private Q_SLOTS:
0036     void handleFormatIndexChanged(int index);
0037     void updateExportButton();
0038 
0039 private:
0040     const QStringList m_mimeTypeNames;
0041     KComboBox *m_formatSelect;
0042     KUrlRequester *m_filePathEdit;
0043     QCheckBox *m_cropCheck;
0044     QDialogButtonBox *m_buttonBox;
0045     QPushButton *m_exportButton;
0046 };
0047 
0048 #endif