summaryrefslogtreecommitdiffhomepage
path: root/gui/options-dialog.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/options-dialog.hpp')
-rw-r--r--gui/options-dialog.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/gui/options-dialog.hpp b/gui/options-dialog.hpp
new file mode 100644
index 00000000..3ef99d06
--- /dev/null
+++ b/gui/options-dialog.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <QObject>
+#include <QWidget>
+#include "ui_settings.h"
+#include "opentrack/shortcuts.h"
+
+class OptionsDialog: public QWidget
+{
+ Q_OBJECT
+signals:
+ void reload();
+public:
+ OptionsDialog();
+private:
+ Ui::UI_Settings ui;
+ Shortcuts::settings s;
+ void closeEvent(QCloseEvent *) override { doCancel(); }
+private slots:
+ void doOK();
+ void doCancel();
+ void bind_key(value<QString>& ret, QLabel* label);
+};