summaryrefslogtreecommitdiffhomepage
path: root/opentrack/new_file_dialog.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-28 13:40:33 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-28 13:44:59 +0100
commit47d4b25bd0583b1fd65ae885950efd34c9df256b (patch)
treef3a155717092c436e9211e1dc244edc9c9d62fa9 /opentrack/new_file_dialog.h
parent79d56147198dc873e30ae0ca8d554d37106db56f (diff)
cmake: move around variant directories
Diffstat (limited to 'opentrack/new_file_dialog.h')
-rw-r--r--opentrack/new_file_dialog.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/opentrack/new_file_dialog.h b/opentrack/new_file_dialog.h
new file mode 100644
index 00000000..7244e524
--- /dev/null
+++ b/opentrack/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 = nullptr);
+ bool is_ok(QString& name_);
+
+private:
+ Ui::UI_new_config ui;
+ bool ok = false;
+ QString name;
+
+private slots:
+ void cancel_clicked();
+ void ok_clicked();
+};