mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Clean up some confusion about zoom focus and the edit point.
git-svn-id: svn://localhost/ardour2/branches/3.0@6261 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
798b5a7d6e
commit
8b9b4308e0
3 changed files with 7 additions and 31 deletions
|
|
@ -304,8 +304,8 @@
|
||||||
<menuitem action='zoom-focus-right'/>
|
<menuitem action='zoom-focus-right'/>
|
||||||
<menuitem action='zoom-focus-center'/>
|
<menuitem action='zoom-focus-center'/>
|
||||||
<menuitem action='zoom-focus-playhead'/>
|
<menuitem action='zoom-focus-playhead'/>
|
||||||
<menuitem action='zoom-focus-edit'/>
|
|
||||||
<menuitem action='zoom-focus-mouse'/>
|
<menuitem action='zoom-focus-mouse'/>
|
||||||
|
<menuitem action='zoom-focus-edit'/>
|
||||||
</menu>
|
</menu>
|
||||||
<menu name='SnapMode' action='SnapMode'>
|
<menu name='SnapMode' action='SnapMode'>
|
||||||
<menuitem action='snap-off'/>
|
<menuitem action='snap-off'/>
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ static const gchar *_zoom_focus_strings[] = {
|
||||||
N_("Center"),
|
N_("Center"),
|
||||||
N_("Playhead"),
|
N_("Playhead"),
|
||||||
N_("Mouse"),
|
N_("Mouse"),
|
||||||
N_("Active Mark"),
|
N_("Edit point"),
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -2162,26 +2162,6 @@ Editor::set_edit_point_preference (EditPoint ep, bool force)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (zoom_focus) {
|
|
||||||
case ZoomFocusMouse:
|
|
||||||
case ZoomFocusPlayhead:
|
|
||||||
case ZoomFocusEdit:
|
|
||||||
switch (_edit_point) {
|
|
||||||
case EditAtMouse:
|
|
||||||
set_zoom_focus (ZoomFocusMouse);
|
|
||||||
break;
|
|
||||||
case EditAtPlayhead:
|
|
||||||
set_zoom_focus (ZoomFocusPlayhead);
|
|
||||||
break;
|
|
||||||
case EditAtSelectedMarker:
|
|
||||||
set_zoom_focus (ZoomFocusEdit);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char* action=NULL;
|
const char* action=NULL;
|
||||||
|
|
||||||
switch (_edit_point) {
|
switch (_edit_point) {
|
||||||
|
|
@ -3548,16 +3528,12 @@ Editor::zoom_focus_selection_done ()
|
||||||
focus_type = ZoomFocusRight;
|
focus_type = ZoomFocusRight;
|
||||||
} else if (choice == _("Center")) {
|
} else if (choice == _("Center")) {
|
||||||
focus_type = ZoomFocusCenter;
|
focus_type = ZoomFocusCenter;
|
||||||
} else if (choice == _("Play")) {
|
} else if (choice == _("Playhead")) {
|
||||||
focus_type = ZoomFocusPlayhead;
|
focus_type = ZoomFocusPlayhead;
|
||||||
} else if (choice == _("Edit")) {
|
} else if (choice == _("Mouse")) {
|
||||||
focus_type = ZoomFocusEdit;
|
|
||||||
} else if (choice == _("Active Mark")) {
|
|
||||||
focus_type = ZoomFocusEdit;
|
|
||||||
} else if (choice == _("Active Mark")) {
|
|
||||||
focus_type = ZoomFocusEdit;
|
|
||||||
} else {
|
|
||||||
focus_type = ZoomFocusMouse;
|
focus_type = ZoomFocusMouse;
|
||||||
|
} else if (choice == _("Edit point")) {
|
||||||
|
focus_type = ZoomFocusEdit;
|
||||||
}
|
}
|
||||||
|
|
||||||
RefPtr<RadioAction> ract = zoom_focus_action (focus_type);
|
RefPtr<RadioAction> ract = zoom_focus_action (focus_type);
|
||||||
|
|
|
||||||
|
|
@ -655,7 +655,7 @@ Editor::register_actions ()
|
||||||
ActionManager::session_sensitive_actions.push_back (act);
|
ActionManager::session_sensitive_actions.push_back (act);
|
||||||
ActionManager::register_radio_action (zoom_actions, zoom_group, "zoom-focus-mouse", _("Zoom Focus Mouse"), bind (mem_fun(*this, &Editor::zoom_focus_chosen), Editing::ZoomFocusMouse));
|
ActionManager::register_radio_action (zoom_actions, zoom_group, "zoom-focus-mouse", _("Zoom Focus Mouse"), bind (mem_fun(*this, &Editor::zoom_focus_chosen), Editing::ZoomFocusMouse));
|
||||||
ActionManager::session_sensitive_actions.push_back (act);
|
ActionManager::session_sensitive_actions.push_back (act);
|
||||||
ActionManager::register_radio_action (zoom_actions, zoom_group, "zoom-focus-edit", _("Zoom Focus Edit"), bind (mem_fun(*this, &Editor::zoom_focus_chosen), Editing::ZoomFocusEdit));
|
ActionManager::register_radio_action (zoom_actions, zoom_group, "zoom-focus-edit", _("Zoom Focus Edit Point"), bind (mem_fun(*this, &Editor::zoom_focus_chosen), Editing::ZoomFocusEdit));
|
||||||
ActionManager::session_sensitive_actions.push_back (act);
|
ActionManager::session_sensitive_actions.push_back (act);
|
||||||
|
|
||||||
Glib::RefPtr<ActionGroup> mouse_mode_actions = ActionGroup::create (X_("MouseMode"));
|
Glib::RefPtr<ActionGroup> mouse_mode_actions = ActionGroup::create (X_("MouseMode"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue