diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-16 04:33:14 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-16 06:45:52 +0100 |
commit | 2b1c5593b0bc1ebfcd2e808f128e4b0312f59d93 (patch) | |
tree | e7e8f5d8d3af88a6df37cbd482edcbd3ff8def26 /variant/default/new_file_dialog.h | |
parent | 3583e3d3cd0b6ca2515ada16ca7dcc8cce83031f (diff) |
gui, variant/default: move default UI
Diffstat (limited to 'variant/default/new_file_dialog.h')
-rw-r--r-- | variant/default/new_file_dialog.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/variant/default/new_file_dialog.h b/variant/default/new_file_dialog.h new file mode 100644 index 00000000..5669e4a9 --- /dev/null +++ b/variant/default/new_file_dialog.h @@ -0,0 +1,25 @@ +#pragma once + +#include "ui_new_config.h" +#include "options/options.hpp" +#include <QFile> +#include <QRegExp> +#include <QString> +#include <QMessageBox> + +class new_file_dialog : public QDialog +{ + Q_OBJECT +public: + new_file_dialog(QWidget* parent = 0); + bool is_ok(QString& name_); + +private: + Ui::UI_new_config ui; + bool ok = false; + QString name; + +private slots: + void cancel_clicked(); + void ok_clicked(); +}; |