diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-02-19 00:17:34 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-02-19 00:17:34 +0000 |
| commit | 688fa9d705a6b23f216f380ac701c6a60e934f70 (patch) | |
| tree | 2d4be6b4b5a09bffaef43651f97c57951662b0e5 /src/wx/timeline.h | |
| parent | c6476088a34079cc2786253d60db56b0dbd74011 (diff) | |
Split up Timeline view classes.
Diffstat (limited to 'src/wx/timeline.h')
| -rw-r--r-- | src/wx/timeline.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/wx/timeline.h b/src/wx/timeline.h index 7595f1067..66f982c4a 100644 --- a/src/wx/timeline.h +++ b/src/wx/timeline.h @@ -24,12 +24,12 @@ #include "lib/util.h" #include "lib/rect.h" #include "content_menu.h" +#include "timeline_content_view.h" class Film; -class View; -class ContentView; class ContentPanel; -class TimeAxisView; +class TimelineView; +class TimelineTimeAxisView; class Timeline : public wxPanel { @@ -85,23 +85,20 @@ private: void set_position_from_event (wxMouseEvent &); void clear_selection (); - typedef std::vector<boost::shared_ptr<View> > ViewList; - typedef std::vector<boost::shared_ptr<ContentView> > ContentViewList; - - boost::shared_ptr<View> event_to_view (wxMouseEvent &); - ContentViewList selected_views () const; + boost::shared_ptr<TimelineView> event_to_view (wxMouseEvent &); + TimelineContentViewList selected_views () const; ContentList selected_content () const; void maybe_snap (DCPTime a, DCPTime b, boost::optional<DCPTime>& nearest_distance) const; ContentPanel* _content_panel; boost::weak_ptr<Film> _film; - ViewList _views; - boost::shared_ptr<TimeAxisView> _time_axis_view; + TimelineViewList _views; + boost::shared_ptr<TimelineTimeAxisView> _time_axis_view; int _tracks; boost::optional<double> _pixels_per_second; bool _left_down; wxPoint _down_point; - boost::shared_ptr<ContentView> _down_view; + boost::shared_ptr<TimelineContentView> _down_view; DCPTime _down_view_position; bool _first_move; ContentMenu _menu; |
