summaryrefslogtreecommitdiffhomepage
path: root/gui/mapping-dialog.hpp
diff options
context:
space:
mode:
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();
+};