summaryrefslogtreecommitdiffhomepage
path: root/gui/options-dialog.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-30 08:34:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-10-30 08:39:33 +0100
commit2160e39a4f3d5198eafbb483671583a5a0b51eaa (patch)
tree2370dd4e9a7b43c204d175af3ab2a0ff5b33c41d /gui/options-dialog.hpp
parentaa066bdd4622d4f6824fee864f6be6806813f04d (diff)
rename gui directory
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);
+};