13
0

add new API to ARDOUR_UI to allow dynamic add/remove of keyboard bindings to key binding editor

This commit is contained in:
Paul Davis 2016-03-15 16:41:15 -04:00
parent 08f9a439a7
commit 58f259e4f7
2 changed files with 15 additions and 0 deletions

View File

@ -231,6 +231,9 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
XMLNode* keyboard_settings () const;
XMLNode* tearoff_settings (const char*) const;
void add_keyboard_binding_tab (std::string const & name, Gtkmm2ext::Bindings&);
void remove_keyboard_binding_tab (std::string const & name);
void save_ardour_state ();
gboolean configure_handler (GdkEventConfigure* conf);

View File

@ -817,6 +817,18 @@ ARDOUR_UI::create_key_editor ()
return kedit;
}
void
ARDOUR_UI::add_keyboard_binding_tab (std::string const& name, Gtkmm2ext::Bindings& b)
{
key_editor->add_tab (name, b);
}
void
ARDOUR_UI::remove_keyboard_binding_tab (std::string const& name)
{
key_editor->remove_tab (name);
}
BundleManager*
ARDOUR_UI::create_bundle_manager ()
{