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_dialog.h"
13 class KeyEditor
: public ArdourDialog
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
;
38 Gtk::ScrolledWindow scroller
;
40 Glib::RefPtr
<Gtk::TreeStore
> model
;
41 KeyEditorColumns columns
;
42 Gtk::Button unbind_button
;
43 Gtk::HButtonBox unbind_box
;
50 void action_selected ();
54 #endif /* __ardour_gtk_key_editor_h__ */