1 /*************************************************************************** 2 * Copyright (C) 2020 by Friedrich W. H. Kossebau - kossebau@kde.org * 3 * * 4 * This program is free software; you can redistribute it and/or modify * 5 * it under the terms of the GNU General Public License as published by * 6 * the Free Software Foundation; either version 2 of the License, or * 7 * (at your option) any later version. * 8 ***************************************************************************/ 9 10 #ifndef IMAGEEXPORTDLG_H 11 #define IMAGEEXPORTDLG_H 12 13 #include <QDialog> 14 #include <QStringList> 15 16 class KComboBox; 17 class KUrlRequester; 18 class QCheckBox; 19 class QPushButton; 20 class QDialogButtonBox; 21 class QString; 22 23 class ImageExportDialog : public QDialog 24 { 25 Q_OBJECT 26 27 public: 28 explicit ImageExportDialog(QWidget *parent); 29 30 public: 31 QString filePath() const; 32 QString formatType() const; 33 bool isCropSelected() const; 34 35 private Q_SLOTS: 36 void handleFormatIndexChanged(int index); 37 void updateExportButton(); 38 39 private: 40 const QStringList m_mimeTypeNames; 41 KComboBox *m_formatSelect; 42 KUrlRequester *m_filePathEdit; 43 QCheckBox *m_cropCheck; 44 QDialogButtonBox *m_buttonBox; 45 QPushButton *m_exportButton; 46 }; 47 48 #endif 49