blob: 72ae3c30b87dec6dfcfebb790f74a0245956be91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include "ui_settings.h"
#include "opentrack/shortcuts.h"
#include <QObject>
#include <QWidget>
#include <functional>
class OptionsDialog: public QWidget
{
Q_OBJECT
signals:
void reload();
public:
OptionsDialog(main_settings& main, std::function<void()> register_global_keys);
private:
main_settings& main;
std::function<void()> register_global_keys;
Ui::UI_Settings ui;
void closeEvent(QCloseEvent *) override { doCancel(); }
private slots:
void doOK();
void doCancel();
void bind_key(key_opts &kopts, QLabel* label);
};
|