1 #ifndef __ardour_gtk_key_editor_h__
2 #define __ardour_gtk_key_editor_h__
6 #include <gtkmm/buttonbox.h>
7 #include <gtkmm/treeview.h>
8 #include <gtkmm/treestore.h>
9 #include <gtkmm/scrolledwindow.h>
11 #include "ardour_window.h"
13 class KeyEditor : public ArdourWindow
21 bool on_key_press_event (GdkEventKey*);
22 bool on_key_release_event (GdkEventKey*);
25 struct KeyEditorColumns : public Gtk::TreeModel::ColumnRecord {
32 Gtk::TreeModelColumn<std::string> action;
33 Gtk::TreeModelColumn<std::string> binding;
34 Gtk::TreeModelColumn<std::string> path;
35 Gtk::TreeModelColumn<bool> bindable;
39 Gtk::ScrolledWindow scroller;
41 Glib::RefPtr<Gtk::TreeStore> model;
42 KeyEditorColumns columns;
43 Gtk::Button unbind_button;
44 Gtk::HButtonBox unbind_box;
51 void action_selected ();
55 #endif /* __ardour_gtk_key_editor_h__ */