add new API to ARDOUR_UI to allow dynamic add/remove of keyboard bindings to key binding editor
This commit is contained in:
parent
08f9a439a7
commit
58f259e4f7
@ -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);
|
||||
|
||||
|
@ -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 ()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user