From 0a0000a6c4ca5ebfffd33d70f7b7963473be1471 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 22 Oct 2017 11:10:34 +0200 Subject: gui: rename source files only --- gui/settings.hpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 gui/settings.hpp (limited to 'gui/settings.hpp') diff --git a/gui/settings.hpp b/gui/settings.hpp new file mode 100644 index 00000000..67c0ee54 --- /dev/null +++ b/gui/settings.hpp @@ -0,0 +1,29 @@ +#pragma once + +#include "ui_settings-dialog.h" +#include "logic/shortcuts.h" +#include +#include +#include +#include + +class OptionsDialog : public QDialog +{ + Q_OBJECT +signals: + void closing(); +public: + OptionsDialog(std::function pause_keybindings); +private: + main_settings main; + std::function pause_keybindings; + Ui::options_dialog ui; + void closeEvent(QCloseEvent *) override; + static QString kopts_to_string(const key_opts& opts); +private slots: + void doOK(); + void doCancel(); + void done(int res) override; + void bind_key(key_opts &kopts, QLabel* label); + void set_disable_translation_state(bool value); +}; -- cgit v1.2.3