diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-05-31 22:26:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-31 22:26:42 +0100 |
| commit | 43b5ff1d2dc872f9029a7e59a85af59dbad8536f (patch) | |
| tree | 58756fb095c333a62d9863f3b72c10f46ea96e39 /src/wx/timeline.h | |
| parent | 9b36e81dba949ba29a6cfb89f11072317a0dc7c5 (diff) | |
Add playhead line to timeline (#1563).
Diffstat (limited to 'src/wx/timeline.h')
| -rw-r--r-- | src/wx/timeline.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/timeline.h b/src/wx/timeline.h index 84cb870f2..ef887dab8 100644 --- a/src/wx/timeline.h +++ b/src/wx/timeline.h @@ -34,11 +34,12 @@ class TimelineView; class TimelineTimeAxisView; class TimelineReelsView; class TimelineLabelsView; +class FilmViewer; class Timeline : public wxPanel { public: - Timeline (wxWindow *, ContentPanel *, boost::shared_ptr<Film>); + Timeline (wxWindow *, ContentPanel *, boost::shared_ptr<Film>, boost::weak_ptr<FilmViewer> viewer); boost::shared_ptr<const Film> film () const; @@ -103,6 +104,7 @@ private: void set_pixels_per_second (double pps); void set_pixels_per_track (int h); void zoom_all (); + void position_change (); boost::shared_ptr<TimelineView> event_to_view (wxMouseEvent &); TimelineContentViewList selected_views () const; @@ -113,6 +115,7 @@ private: wxScrolledCanvas* _main_canvas; ContentPanel* _content_panel; boost::weak_ptr<Film> _film; + boost::weak_ptr<FilmViewer> _viewer; TimelineViewList _views; boost::shared_ptr<TimelineTimeAxisView> _time_axis_view; boost::shared_ptr<TimelineReelsView> _reels_view; @@ -140,4 +143,5 @@ private: boost::signals2::scoped_connection _film_changed_connection; boost::signals2::scoped_connection _film_content_change_connection; + boost::signals2::scoped_connection _viewer_position_change_connection; }; |
