diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-12-31 12:56:32 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-12-31 12:56:32 +0100 |
commit | c5fedfb1ec79b97edec4a82b70f082fba93a5b5d (patch) | |
tree | d625f92b917f4c9cc11e3271f66c17a01f63f54e /src/gui/exportdialog.h | |
parent | 281efdc81ddfbd8a94775e96d7076860af1ae2e3 (diff) |
image export in progress
Diffstat (limited to 'src/gui/exportdialog.h')
-rw-r--r-- | src/gui/exportdialog.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/gui/exportdialog.h b/src/gui/exportdialog.h new file mode 100644 index 0000000..064c968 --- /dev/null +++ b/src/gui/exportdialog.h @@ -0,0 +1,34 @@ +#ifndef EXPORTDIALOG_H +#define EXPORTDIALOG_H + +#include <QDialog> + +namespace Ui { +class ExportDialog; +} + +class ExportDialog : public QDialog +{ + Q_OBJECT + +public: + explicit ExportDialog(QWidget *parent = nullptr); + ~ExportDialog(); + enum Format { + PNG = 0, + JPG = 1, + PDF = 2 + }; + +protected slots: + void setHeightFromWidth(); + void setWidthFromHeight(); + void on_keepAspect_stateChanged(int state); + void on_browseButton_clicked(); + void on_fileFormat_currentIndexChanged(int f); + +private: + Ui::ExportDialog *ui; +}; + +#endif // EXPORTDIALOG_H |