summaryrefslogtreecommitdiff
path: root/src/wx/timeline.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-19 15:22:26 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-19 15:22:26 +0100
commit56506a1993f402fe889a650faa3de2e265632498 (patch)
treeea8b0f404dbfaf3def2592e6192280ab37338049 /src/wx/timeline.h
parent3857b8b178d94873a6ffc6f51cdb4c241fd54f90 (diff)
Add remove option; resize timeline after drags.
Diffstat (limited to 'src/wx/timeline.h')
-rw-r--r--src/wx/timeline.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/wx/timeline.h b/src/wx/timeline.h
index 99094788f..48eaa9d76 100644
--- a/src/wx/timeline.h
+++ b/src/wx/timeline.h
@@ -61,6 +61,8 @@ public:
int tracks () const;
+ void setup_pixels_per_time_unit ();
+
private:
void paint (wxPaintEvent &);
void left_down (wxMouseEvent &);
@@ -68,19 +70,24 @@ private:
void right_down (wxMouseEvent &);
void mouse_moved (wxMouseEvent &);
void playlist_changed ();
- void setup_pixels_per_time_unit ();
void resized (wxSizeEvent &);
void assign_tracks ();
void set_start_from_event (wxMouseEvent &);
void clear_selection ();
+
void repeat (wxCommandEvent &);
+ void remove (wxCommandEvent &);
+
+ typedef std::vector<boost::shared_ptr<View> > ViewList;
+ typedef std::vector<boost::shared_ptr<ContentView> > ContentViewList;
boost::shared_ptr<View> event_to_view (wxMouseEvent &);
- std::list<boost::shared_ptr<ContentView> > selected () const;
+ ContentViewList selected_views () const;
+ ContentList selected_content () const;
FilmEditor* _film_editor;
boost::weak_ptr<Film> _film;
- std::list<boost::shared_ptr<View> > _views;
+ ViewList _views;
boost::shared_ptr<TimeAxisView> _time_axis_view;
int _tracks;
double _pixels_per_time_unit;