-
Notifications
You must be signed in to change notification settings - Fork 0
/
prefsdialog.h
53 lines (44 loc) · 1.14 KB
/
prefsdialog.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef PREFSDIALOG_H
#define PREFSDIALOG_H
#include <QDialog>
#include <QKeySequence>
#include "actionids.h"
namespace Ui {
class PrefsDialog;
}
class PreferencesModel;
class IUiManager;
class PrefsDialog : public QDialog
{
Q_OBJECT
public:
explicit PrefsDialog(QWidget *parent, PreferencesModel *model, IUiManager *manager);
~PrefsDialog();
public:
void loadShortcuts();
private slots:
void saveOnExitChanged(int state);
void saveOnMinimizeChanged(int state);
void onTopChanged(int state);
void currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn);
void assigned(QKeySequence sequence);
void onAssign();
void onReset();
void stopAssigning();
void gsAssigned(QKeySequence sequence);
void onGSAssign();
void onGSReset();
void stopGSAssigning();
private:
void updateState();
void updateGSState();
Actions::Actions getCurrentAction() const;
private:
Ui::PrefsDialog *ui;
PreferencesModel *m_model;
IUiManager *m_uiManager;
int m_selectedRow;
QKeySequence m_storedGSK;
bool m_afterAssign;
};
#endif // PREFSDIALOG_H