mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 00:17:49 +01:00
Reinstate ZoomFocusMenu and KeyMouseActions, fix odd horizontal scroller behaviour (thanks dooooomi).
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4000 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e5cfd1924a
commit
12ffa28390
2 changed files with 10 additions and 11 deletions
|
|
@ -4331,6 +4331,7 @@ Editor::set_frames_per_unit (double fpu)
|
|||
void
|
||||
Editor::post_zoom ()
|
||||
{
|
||||
nframes64_t cef=0;
|
||||
/*
|
||||
// convert fpu to frame count
|
||||
|
||||
|
|
@ -4361,6 +4362,12 @@ Editor::post_zoom ()
|
|||
ZoomChanged (); /* EMIT_SIGNAL */
|
||||
|
||||
reset_hscrollbar_stepping ();
|
||||
|
||||
if (session) {
|
||||
cef = session->current_end_frame() + (current_page_frames() / 10);// Add a little extra so we can see the end marker
|
||||
}
|
||||
horizontal_adjustment.set_upper (cef / frames_per_unit);
|
||||
|
||||
//reset_scrolling_region ();
|
||||
|
||||
instant_save ();
|
||||
|
|
@ -4409,21 +4416,11 @@ Editor::idle_visual_changer ()
|
|||
|
||||
if (p & VisualChange::TimeOrigin) {
|
||||
|
||||
nframes64_t csf=0, cef=0;
|
||||
nframes64_t current_time_origin = (nframes64_t) floor (horizontal_adjustment.get_value() * frames_per_unit);
|
||||
|
||||
if (session) {
|
||||
csf = session->current_start_frame();
|
||||
cef = session->current_end_frame();
|
||||
}
|
||||
|
||||
/* if we seek beyond the current end of the canvas, move the end */
|
||||
horizontal_adjustment.set_value (pending_visual_change.time_origin / frames_per_unit);
|
||||
|
||||
if (current_time_origin != pending_visual_change.time_origin) {
|
||||
cef += current_page_frames() / 10; // Add a little extra so we can see the end marker
|
||||
horizontal_adjustment.set_upper (cef / frames_per_unit);
|
||||
horizontal_adjustment.set_value (pending_visual_change.time_origin / frames_per_unit);
|
||||
} else {
|
||||
update_fixed_rulers();
|
||||
redisplay_tempo (true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ Editor::register_actions ()
|
|||
ActionManager::register_action (editor_actions, X_("LatchMenu"), _("Latch"));
|
||||
ActionManager::register_action (editor_actions, X_("Layering"), _("Layering"));
|
||||
ActionManager::register_action (editor_actions, X_("Link"), _("Link"));
|
||||
ActionManager::register_action (editor_actions, X_("ZoomFocusMenu"), _("Zoom Focus"));
|
||||
ActionManager::register_action (editor_actions, X_("KeyMouseActions"), _("Key Mouse"));
|
||||
ActionManager::register_action (editor_actions, X_("LocateToMarker"), _("Locate To Markers"));
|
||||
ActionManager::register_action (editor_actions, X_("MarkerMenu"), _("Markers"));
|
||||
ActionManager::register_action (editor_actions, X_("MeterFalloff"), _("Meter falloff"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue