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>
10 #include <glibmm/ustring.h>
12 #include "ardour_dialog.h"
14 class KeyEditor
: public ArdourDialog
22 bool on_key_press_event (GdkEventKey
*);
23 bool on_key_release_event (GdkEventKey
*);
26 struct KeyEditorColumns
: public Gtk::TreeModel::ColumnRecord
{
33 Gtk::TreeModelColumn
<Glib::ustring
> action
;
34 Gtk::TreeModelColumn
<std::string
> binding
;
35 Gtk::TreeModelColumn
<std::string
> path
;
36 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__ */