X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fkeyeditor.h;h=1fa807ac5b8ad2969c3fb15b50c19a2b320f6cf6;hb=267cfbe731debe3f3be88375bce34644ac7c6323;hp=b200adabf4a59e14997637337a009cf96e6cbc42;hpb=29f0d9732eb68fcaa22219cedddddd47bcaa8c17;p=ardour.git diff --git a/gtk2_ardour/keyeditor.h b/gtk2_ardour/keyeditor.h index b200adabf4..1fa807ac5b 100644 --- a/gtk2_ardour/keyeditor.h +++ b/gtk2_ardour/keyeditor.h @@ -3,10 +3,10 @@ #include +#include #include #include #include -#include #include "ardour_dialog.h" @@ -14,10 +14,11 @@ class KeyEditor : public ArdourDialog { public: KeyEditor (); - + protected: void on_show (); void on_unmap (); + bool on_key_press_event (GdkEventKey*); bool on_key_release_event (GdkEventKey*); private: @@ -26,16 +27,25 @@ class KeyEditor : public ArdourDialog add (action); add (binding); add (path); + add (bindable); } - Gtk::TreeModelColumn action; + Gtk::TreeModelColumn action; Gtk::TreeModelColumn binding; Gtk::TreeModelColumn path; + Gtk::TreeModelColumn bindable; }; Gtk::ScrolledWindow scroller; Gtk::TreeView view; Glib::RefPtr model; KeyEditorColumns columns; + Gtk::Button unbind_button; + Gtk::HButtonBox unbind_box; + + void unbind (); + + bool can_bind; + guint last_state; void action_selected (); void populate ();