mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
switch all action registration/binding code over to new API.
This removes the ability to change bindings via menus. Still to come: saving modified bindings, and reworking the key editor
This commit is contained in:
parent
d0fc12bd22
commit
a13a8da8ac
18 changed files with 586 additions and 698 deletions
|
|
@ -550,6 +550,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
void color_handler ();
|
||||
|
||||
bool constructed;
|
||||
Gtkmm2ext::ActionMap myactions;
|
||||
Gtkmm2ext::Bindings key_bindings;
|
||||
|
||||
// to keep track of the playhead position for control_scroll
|
||||
|
|
@ -1174,7 +1175,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
void register_region_actions ();
|
||||
|
||||
void load_bindings ();
|
||||
Gtkmm2ext::ActionMap editor_action_map;
|
||||
|
||||
/* CUT/COPY/PASTE */
|
||||
|
||||
|
|
@ -2233,6 +2233,12 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
|||
QuantizeDialog* quantize_dialog;
|
||||
MainMenuDisabler* _main_menu_disabler;
|
||||
|
||||
/* private helper functions to help with registering axis */
|
||||
|
||||
Glib::RefPtr<Gtk::Action> reg_sens (Glib::RefPtr<Gtk::ActionGroup> group, char const * name, char const * label, sigc::slot<void> slot);
|
||||
void toggle_reg_sens (Glib::RefPtr<Gtk::ActionGroup> group, char const * name, char const * label, sigc::slot<void> slot);
|
||||
void radio_reg_sens (Glib::RefPtr<Gtk::ActionGroup> action_group, Gtk::RadioAction::Group& radio_group, char const * name, char const * label, sigc::slot<void> slot);
|
||||
|
||||
friend class Drag;
|
||||
friend class RegionDrag;
|
||||
friend class RegionMoveDrag;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue