summaryrefslogtreecommitdiffhomepage
path: root/gui/mapping-dialog.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-22 11:10:34 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-27 16:42:57 +0200
commit0a0000a6c4ca5ebfffd33d70f7b7963473be1471 (patch)
tree90e31f30303b4b4d4f4e83086ff4ee70d915fe77 /gui/mapping-dialog.hpp
parentd20e3d4a3ac6114b296f0284f336b59c178b4e72 (diff)
gui: rename source files only
Diffstat (limited to 'gui/mapping-dialog.hpp')
-rw-r--r--gui/mapping-dialog.hpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/gui/mapping-dialog.hpp b/gui/mapping-dialog.hpp
new file mode 100644
index 00000000..ba5d1867
--- /dev/null
+++ b/gui/mapping-dialog.hpp
@@ -0,0 +1,35 @@
+#pragma once
+
+#include "logic/mappings.hpp"
+#include "ui_mapping-dialog.h"
+
+#include <QWidget>
+#include <QDialog>
+#include <QShowEvent>
+#include <QCloseEvent>
+#include <QCheckBox>
+
+class MapWidget final : public QDialog
+{
+ Q_OBJECT
+public:
+ MapWidget(Mappings& m);
+ void refresh_tab();
+private:
+ Ui::mapping_window ui;
+ Mappings& m;
+ main_settings s;
+
+ spline_widget* widgets[6][2];
+
+ void closeEvent(QCloseEvent*) override;
+
+ void load();
+
+ void save_dialog();
+ void invalidate_dialog();
+
+private slots:
+ void doOK();
+ void doCancel();
+};