define actions for changing tempo edit behavior and expand menu
This commit is contained in:
parent
8fbf2c3f52
commit
a37d4dbacf
@ -313,6 +313,8 @@
|
||||
<menu action="TempoMenu">
|
||||
<menuitem action='set-tempo-from-region'/>
|
||||
<menuitem action='set-tempo-from-edit-range'/>
|
||||
<menuitem action='tempo-edit-is-mapping'/>
|
||||
<menuitem action='tempo-edit-is-changing'/>
|
||||
</menu>
|
||||
<menuitem action='set-mouse-mode-object-range'/>
|
||||
<menuitem action='show-touched-automation'/>
|
||||
|
@ -128,6 +128,7 @@ Editor::register_actions ()
|
||||
ActionManager::register_action (editor_menu_actions, X_("AutomationMenu"), _("Automation"));
|
||||
ActionManager::register_action (editor_menu_actions, X_("Crossfades"), _("Crossfades"));
|
||||
ActionManager::register_action (editor_menu_actions, X_("Edit"), _("Edit"));
|
||||
ActionManager::register_action (editor_menu_actions, X_("Tempo"), _("Tempo"));
|
||||
ActionManager::register_action (editor_menu_actions, X_("EditCursorMovementOptions"), _("Move Selected Marker"));
|
||||
ActionManager::register_action (editor_menu_actions, X_("EditSelectRangeOptions"), _("Select Range Operations"));
|
||||
ActionManager::register_action (editor_menu_actions, X_("EditSelectRegionOptions"), _("Select Regions"));
|
||||
@ -205,6 +206,10 @@ Editor::register_actions ()
|
||||
*/
|
||||
ActionManager::register_action (editor_actions, "lock", S_("Session|Lock"), sigc::mem_fun (*this, &Editor::lock));
|
||||
|
||||
RadioAction::Group tempo_edit_group;
|
||||
ActionManager::register_radio_action (editor_actions, tempo_edit_group, "tempo-edit-is-mapping", _("Map Tempo"), sigc::bind (sigc::mem_fun (*this, &Editor::set_tempo_edit_behavior), Editing::TempoMapping));
|
||||
ActionManager::register_radio_action (editor_actions, tempo_edit_group, "tempo-edit-is-change", _("Change Tempo"), sigc::bind (sigc::mem_fun (*this, &Editor::set_tempo_edit_behavior), Editing::TempoChanging));
|
||||
|
||||
toggle_reg_sens (editor_actions, "show-editor-mixer", _("Show Editor Mixer"), sigc::mem_fun (*this, &Editor::editor_mixer_button_toggled));
|
||||
toggle_reg_sens (editor_actions, "show-editor-list", _("Show Editor List"), sigc::mem_fun (*this, &Editor::editor_list_button_toggled));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user