-
Notifications
You must be signed in to change notification settings - Fork 1
/
GuiPreferencesWindow.h
57 lines (40 loc) · 1.47 KB
/
GuiPreferencesWindow.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
54
55
56
57
#ifndef GUIPREFERENCESWINDOW_H
#define GUIPREFERENCESWINDOW_H
#include <QDialog>
#include <QTreeWidget>
#include "GuiMenu.h"
class GuiMainWindow;
namespace Ui {
class GuiPreferencesWindow;
}
class GuiPreferencesWindow : public QDialog
{
Q_OBJECT
GuiMainWindow *mainWindow;
/****** Members for Keyboard Shortcuts Tab *********************/
int shkey_entered[4];
int shkey_len;
bool shkey_changed;
QTreeWidgetItem *shkey_root_custom_saved_session;
/***************************************************************/
void addItemToTree(QTreeWidgetItem *par, qutty_menu_id_t menu_index,
const char *text=NULL, const char *desc=NULL);
void keysh_saveShortcutChange(QTreeWidgetItem *item);
void keyshAddCustomSavedSessionToTree(QString session, int opentypeind, QKeySequence key);
public:
explicit GuiPreferencesWindow(GuiMainWindow *parent);
~GuiPreferencesWindow();
bool eventFilter(QObject *src, QEvent *e);
private slots:
void slot_GuiPreferencesWindow_accepted();
void slot_GuiPreferencesWindow_rejected();
void on_tree_keysh_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
void slot_keysh_custom_saved_session_shortcut_create();
void on_btn_keysh_clear_clicked();
void on_btn_ok_clicked();
void on_btn_cancel_clicked();
void on_menu_cb_sel_currentIndexChanged(int index);
private:
Ui::GuiPreferencesWindow *ui;
};
#endif // GUIPREFERENCESWINDOW_H