if (session) {
session->goto_start();
-
/* force displayed area in editor to start no matter
what "follow playhead" setting is.
*/
if (editor) {
- editor->reset_x_origin (session->current_start_frame());
+ editor->center_screen (session->current_start_frame ());
}
}
}
*/
if (editor) {
- editor->reset_x_origin (frames - (editor->current_page_frames()/2));
+ editor->center_screen (frames);
}
}
}
ARDOUR_UI::transport_goto_end ()
{
if (session) {
- nframes_t frame = session->current_end_frame();
+ nframes_t const frame = session->current_end_frame();
session->request_locate (frame);
/* force displayed area in editor to start no matter
*/
if (editor) {
- editor->reset_x_origin (frame);
+ editor->center_screen (frame);
}
}
}
void show_verbose_canvas_cursor_with (const std::string& txt);
void hide_verbose_canvas_cursor();
+ void center_screen (nframes64_t);
+
protected:
void map_transport_state ();
void map_position_change (nframes64_t);
sigc::connection scroll_connection;
nframes64_t last_update_frame;
- void center_screen (nframes64_t);
void center_screen_internal (nframes64_t, float);
void update_current_screen ();
virtual void show_verbose_canvas_cursor_with (const std::string& txt) = 0;
virtual void hide_verbose_canvas_cursor() = 0;
+ virtual void center_screen (nframes64_t) = 0;
+
/// Singleton instance, set up by Editor::Editor()
static PublicEditor* _instance;