summaryrefslogtreecommitdiff
path: root/gtk2_ardour/keyeditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/keyeditor.h')
-rw-r--r--gtk2_ardour/keyeditor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/keyeditor.h b/gtk2_ardour/keyeditor.h
index b200adabf4..9fd129ca31 100644
--- a/gtk2_ardour/keyeditor.h
+++ b/gtk2_ardour/keyeditor.h
@@ -18,6 +18,7 @@ class KeyEditor : public ArdourDialog
protected:
void on_show ();
void on_unmap ();
+ bool on_key_press_event (GdkEventKey*);
bool on_key_release_event (GdkEventKey*);
private:
@@ -26,10 +27,12 @@ class KeyEditor : public ArdourDialog
add (action);
add (binding);
add (path);
+ add (bindable);
}
Gtk::TreeModelColumn<Glib::ustring> action;
Gtk::TreeModelColumn<std::string> binding;
Gtk::TreeModelColumn<std::string> path;
+ Gtk::TreeModelColumn<bool> bindable;
};
Gtk::ScrolledWindow scroller;
@@ -37,6 +40,9 @@ class KeyEditor : public ArdourDialog
Glib::RefPtr<Gtk::TreeStore> model;
KeyEditorColumns columns;
+ bool can_bind;
+ guint last_state;
+
void action_selected ();
void populate ();
};