summaryrefslogtreecommitdiff
path: root/src/gui/exportdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/exportdialog.h')
-rw-r--r--src/gui/exportdialog.h34
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