summaryrefslogtreecommitdiff
path: root/tools/editor/settings_config_dialog.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-04 21:31:29 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-04 21:31:47 -0300
commit007efb6a20dcaa9230f1cfdc1cda92db24c5510f (patch)
treedb29be67ba32768ba96037d06c82cb8f1ac7f1c2 /tools/editor/settings_config_dialog.h
parent279b7921e8dc8feb44a7650b983f6b3878a01d14 (diff)
-customizable shortcuts in editor
-editor settings now save to .tres instead of .xml -buttons can now hold a shortcut
Diffstat (limited to 'tools/editor/settings_config_dialog.h')
-rw-r--r--tools/editor/settings_config_dialog.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/editor/settings_config_dialog.h b/tools/editor/settings_config_dialog.h
index 5085132108..c930de6a77 100644
--- a/tools/editor/settings_config_dialog.h
+++ b/tools/editor/settings_config_dialog.h
@@ -50,6 +50,13 @@ class EditorSettingsDialog : public AcceptDialog {
Timer *timer;
+ Tree *shortcuts;
+
+ ConfirmationDialog *press_a_key;
+ Label *press_a_key_label;
+ InputEvent last_wait_for_key;
+ String shortcut_configured;
+
virtual void cancel_pressed();
virtual void ok_pressed();
@@ -59,8 +66,14 @@ class EditorSettingsDialog : public AcceptDialog {
void _notification(int p_what);
+ void _press_a_key_confirm();
+ void _wait_for_key(const InputEvent& p_event);
+
void _clear_search_box();
+ void _update_shortcuts();
+ void _shortcut_button_pressed(Object* p_item,int p_column,int p_idx);
+
protected:
static void _bind_methods();