diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-16 08:36:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-16 08:36:47 +0100 |
| commit | 21ce34c2cd04a2e7e133ff693b84c054182f4f91 (patch) | |
| tree | 5bda50a34b2fa7526dcd682578247f75a85d26b1 /src/wx/timeline.h | |
| parent | 0db016f90ae722fc8b72d465e21d9f153f72b340 (diff) | |
Compiles; strange hang on adding content to a film.
Diffstat (limited to 'src/wx/timeline.h')
| -rw-r--r-- | src/wx/timeline.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/wx/timeline.h b/src/wx/timeline.h index 59800e7ad..4214ee3a8 100644 --- a/src/wx/timeline.h +++ b/src/wx/timeline.h @@ -22,13 +22,15 @@ #include <wx/wx.h> #include "util.h" -class Playlist; +class Film; class View; class Timeline : public wxPanel { public: - Timeline (wxWindow *, boost::shared_ptr<Playlist>); + Timeline (wxWindow *, boost::shared_ptr<const Film>); + + boost::shared_ptr<const Film> film () const; void force_redraw (Rect const &); @@ -44,8 +46,8 @@ public: return 64; } - double pixels_per_second () const { - return _pixels_per_second; + double pixels_per_time_unit () const { + return _pixels_per_time_unit; } Position tracks_position () const { @@ -58,9 +60,9 @@ private: void paint (wxPaintEvent &); void left_down (wxMouseEvent &); void playlist_changed (); - void setup_pixels_per_second (); + void setup_pixels_per_time_unit (); - boost::weak_ptr<Playlist> _playlist; + boost::weak_ptr<const Film> _film; std::list<boost::shared_ptr<View> > _views; - double _pixels_per_second; + double _pixels_per_time_unit; }; |
