mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 08:27:43 +01:00
new global fade in/out toggle
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3898 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b2802bac25
commit
ba3acd2cb0
2 changed files with 12 additions and 1 deletions
|
|
@ -325,8 +325,9 @@ class Editor : public PublicEditor
|
|||
void update_smpte_mode();
|
||||
void update_video_pullup();
|
||||
void update_subframes_per_frame ();
|
||||
/* xfades */
|
||||
/* fades & xfades */
|
||||
|
||||
void toggle_region_fades ();
|
||||
void toggle_auto_xfade ();
|
||||
void toggle_xfades_active ();
|
||||
void toggle_xfade_visibility ();
|
||||
|
|
|
|||
|
|
@ -114,6 +114,8 @@ Editor::register_actions ()
|
|||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (editor_actions, "toggle-auto-xfades", _("Created Automatically"), mem_fun(*this, &Editor::toggle_auto_xfade));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
act = ActionManager::register_toggle_action (editor_actions, "toggle-region-fades", _("Active Region Fades"), mem_fun(*this, &Editor::toggle_region_fades));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (editor_actions, "playhead-to-next-region-boundary", _("Playhead to Next Region Boundary"), bind (mem_fun(*this, &Editor::cursor_to_next_region_boundary), playhead_cursor));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
|
@ -1649,6 +1651,12 @@ Editor::subframes_per_frame_chosen (uint32_t sfpf)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
Editor::toggle_region_fades ()
|
||||
{
|
||||
ActionManager::toggle_config_state ("Editor", "toggle-region-fades", &Configuration::set_use_region_fades, &Configuration::get_use_region_fades);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::toggle_auto_xfade ()
|
||||
{
|
||||
|
|
@ -1701,6 +1709,8 @@ Editor::parameter_changed (const char* parameter_name)
|
|||
} else if (PARAM_IS ("xfades-visible")) {
|
||||
ActionManager::map_some_state ("Editor", "toggle-xfades-visible", &Configuration::get_xfades_visible);
|
||||
update_xfade_visibility ();
|
||||
} else if (PARAM_IS ("use-region-fades")) {
|
||||
ActionManager::map_some_state ("Editor", "toggle-region-fades", &Configuration::get_use_region_fades);
|
||||
} else if (PARAM_IS ("auto-xfade")) {
|
||||
ActionManager::map_some_state ("Editor", "toggle-auto-xfades", &Configuration::get_auto_xfade);
|
||||
} else if (PARAM_IS ("xfade-model")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue