From 29f0d9732eb68fcaa22219cedddddd47bcaa8c17 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 12 Oct 2007 01:54:35 +0000 Subject: add keybinding editor git-svn-id: svn://localhost/ardour2/trunk@2543 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/keyeditor.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 gtk2_ardour/keyeditor.h (limited to 'gtk2_ardour/keyeditor.h') diff --git a/gtk2_ardour/keyeditor.h b/gtk2_ardour/keyeditor.h new file mode 100644 index 0000000000..b200adabf4 --- /dev/null +++ b/gtk2_ardour/keyeditor.h @@ -0,0 +1,44 @@ +#ifndef __ardour_gtk_key_editor_h__ +#define __ardour_gtk_key_editor_h__ + +#include + +#include +#include +#include +#include + +#include "ardour_dialog.h" + +class KeyEditor : public ArdourDialog +{ + public: + KeyEditor (); + + protected: + void on_show (); + void on_unmap (); + bool on_key_release_event (GdkEventKey*); + + private: + struct KeyEditorColumns : public Gtk::TreeModel::ColumnRecord { + KeyEditorColumns () { + add (action); + add (binding); + add (path); + } + Gtk::TreeModelColumn action; + Gtk::TreeModelColumn binding; + Gtk::TreeModelColumn path; + }; + + Gtk::ScrolledWindow scroller; + Gtk::TreeView view; + Glib::RefPtr model; + KeyEditorColumns columns; + + void action_selected (); + void populate (); +}; + +#endif /* __ardour_gtk_key_editor_h__ */ -- cgit v1.2.3