diff options
author | Carl Hetherington <carl@carlh.net> | 2010-02-08 01:25:06 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-02-08 01:25:06 +0000 |
commit | c3b5e572df797fcbe474f99c7ad4f4e499cbb9c7 (patch) | |
tree | 6d92c9e46e25baf08a89ce77dd59736d52a67848 /gtk2_ardour/editor.h | |
parent | 2c16f7aa7f7b78e84399d9ed0d8cf99a84d09eb6 (diff) |
Preserve and restore x and y origin of editor viewport in Editor state.
Clean up Editor's update of various things by:
1. merging Editor's handlers of SuperRapidScreenUpdate.
2. separating out work to be done on this update and work to be done
on a locate.
Hopefully easier to understand this way.
git-svn-id: svn://localhost/ardour2/branches/3.0@6648 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r-- | gtk2_ardour/editor.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 4568a80630..8f50883ea8 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -401,6 +401,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD void restore_editing_space(); void reset_x_origin (nframes64_t); + void reset_x_origin_to_follow_playhead (); void reset_y_origin (double); void reset_zoom (double); void reposition_and_zoom (nframes64_t, double); @@ -987,11 +988,11 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD static void build_cursors (); - sigc::connection scroll_connection; + sigc::connection super_rapid_screen_update_connection; nframes64_t last_update_frame; void center_screen_internal (nframes64_t, float); - void update_current_screen (); + void super_rapid_screen_update (); void session_going_away (); @@ -1253,9 +1254,6 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD void reverse_selection (); void edit_envelope (); - void start_scrolling (); - void stop_scrolling (); - double last_scrub_x; int scrubbing_direction; int scrub_reversals; @@ -1966,10 +1964,8 @@ public: void get_regions_for_action (RegionSelection&, bool allow_entered = false, bool allow_edit_position = true); - sigc::connection fast_screen_update_connection; - gint start_updating (); - gint stop_updating (); - void fast_update_strips (); + void start_updating_meters (); + void stop_updating_meters (); bool meters_running; void select_next_route (); @@ -1999,7 +1995,15 @@ public: void visible_order_range (int*, int*) const; void located (); + + /** true if we've made a locate request that hasn't yet been processed */ bool _pending_locate_request; + + /** if true, there is a pending Session locate which is the initial one when loading a session; + we need to know this so that we don't (necessarily) set the viewport to show the playhead + initially. + */ + bool _pending_initial_locate; Gtk::HBox _summary_hbox; EditorSummary* _summary; |