mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
remove unused "zoom range clock" from code as part of zoom simplifications
This commit is contained in:
parent
e81dcb6c39
commit
0ba6999b86
2 changed files with 0 additions and 32 deletions
|
|
@ -287,7 +287,6 @@ Editor::Editor ()
|
|||
|
||||
/* tool bar related */
|
||||
|
||||
, zoom_range_clock (new AudioClock (X_("zoomrange"), false, X_("zoom range"), true, false, true))
|
||||
, toolbar_selection_clock_table (2,3)
|
||||
, _mouse_mode_tearoff (0)
|
||||
, automation_mode_button (_("mode"))
|
||||
|
|
@ -425,8 +424,6 @@ Editor::Editor ()
|
|||
|
||||
_scroll_callbacks = 0;
|
||||
|
||||
zoom_range_clock->ValueChanged.connect (sigc::mem_fun(*this, &Editor::zoom_adjustment_changed));
|
||||
|
||||
bbt_label.set_name ("EditorRulerLabel");
|
||||
bbt_label.set_size_request (-1, (int)timebar_height);
|
||||
bbt_label.set_alignment (1.0, 0.5);
|
||||
|
|
@ -928,23 +925,6 @@ Editor::instant_save ()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
Editor::zoom_adjustment_changed ()
|
||||
{
|
||||
if (_session == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
framecnt_t fpu = llrintf (zoom_range_clock->current_duration() / _visible_canvas_width);
|
||||
bool clamped = clamp_samples_per_pixel (fpu);
|
||||
|
||||
if (clamped) {
|
||||
zoom_range_clock->set ((framepos_t) floor (fpu * _visible_canvas_width));
|
||||
}
|
||||
|
||||
temporal_zoom (fpu);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::control_vertical_zoom_in_all ()
|
||||
{
|
||||
|
|
@ -1317,7 +1297,6 @@ Editor::set_session (Session *t)
|
|||
return;
|
||||
}
|
||||
|
||||
zoom_range_clock->set_session (_session);
|
||||
_playlist_selector->set_session (_session);
|
||||
nudge_clock->set_session (_session);
|
||||
_summary->set_session (_session);
|
||||
|
|
@ -4250,14 +4229,6 @@ Editor::set_samples_per_pixel (framecnt_t spp)
|
|||
tempo_lines->tempo_map_changed();
|
||||
}
|
||||
|
||||
/* convert fpu to frame count */
|
||||
|
||||
framepos_t frames = samples_per_pixel * _visible_canvas_width;
|
||||
|
||||
if (samples_per_pixel != zoom_range_clock->current_duration()) {
|
||||
zoom_range_clock->set (frames);
|
||||
}
|
||||
|
||||
bool const showing_time_selection = selection->time.length() > 0;
|
||||
|
||||
if (showing_time_selection && selection->time.start () != selection->time.end_frame ()) {
|
||||
|
|
@ -5378,7 +5349,6 @@ Editor::session_going_away ()
|
|||
}
|
||||
track_views.clear ();
|
||||
|
||||
zoom_range_clock->set_session (0);
|
||||
nudge_clock->set_session (0);
|
||||
|
||||
editor_list_button.set_active(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue