mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-21 21:06:03 +01:00
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
2 changed files with 15 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue