diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-02-14 01:59:28 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-02-14 01:59:28 +0000 |
commit | 26bffbce44cfb10286aa5bc353c4e02e95f6f839 (patch) | |
tree | c1945974bea592cc03a1dab2efbc52dfebd826d4 /gtk2_ardour/keyboard.h | |
parent | 3e50efd13323a000af70bb2639927685fc4f1ba9 (diff) |
dynamic discovery & loading of keybindings
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3055 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyboard.h')
-rw-r--r-- | gtk2_ardour/keyboard.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/keyboard.h b/gtk2_ardour/keyboard.h index a785edbfc0..39e8e4f78e 100644 --- a/gtk2_ardour/keyboard.h +++ b/gtk2_ardour/keyboard.h @@ -110,6 +110,13 @@ class Keyboard : public sigc::trackable, Stateful static void magic_widget_grab_focus (); static void magic_widget_drop_focus (); + static void setup_keybindings (); + static void save_keybindings (); + static bool load_keybindings (std::string path); + static void set_can_save_keybindings (bool yn); + static std::string current_binding_name () { return _current_binding_name; } + static std::map<std::string,std::string> binding_files; + private: static Keyboard* _the_keyboard; @@ -122,6 +129,9 @@ class Keyboard : public sigc::trackable, Stateful static guint delete_mod; static guint snap_mod; static Gtk::Window* current_window; + static std::string user_keybindings_path; + static bool can_save_keybindings; + static std::string _current_binding_name; static gint _snooper (GtkWidget*, GdkEventKey*, gpointer); gint snooper (GtkWidget*, GdkEventKey*); |