X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftimeline.h;h=2485e835fa8e4faa235d605d53371d5a09d8d5e7;hb=7a301e22de2a3c47a81ebc4c9f19b68131b482aa;hp=041970d1639f2ce66dabe54c0ad8cf23e40b7718;hpb=313319ba2d8544bc25524e02e634804a503b54f1;p=dcpomatic.git diff --git a/src/wx/timeline.h b/src/wx/timeline.h index 041970d16..2485e835f 100644 --- a/src/wx/timeline.h +++ b/src/wx/timeline.h @@ -18,15 +18,15 @@ */ + #include "content_menu.h" #include "timeline_content_view.h" -#include "lib/film.h" +#include "lib/film_property.h" #include "lib/rect.h" -#include "lib/util.h" -#include "lib/warnings.h" -DCPOMATIC_DISABLE_WARNINGS +#include +LIBDCP_DISABLE_WARNINGS #include -DCPOMATIC_ENABLE_WARNINGS +LIBDCP_ENABLE_WARNINGS #include @@ -42,7 +42,7 @@ class TimelineView; class Timeline : public wxPanel { public: - Timeline (wxWindow *, ContentPanel *, std::shared_ptr, std::weak_ptr viewer); + Timeline (wxWindow *, ContentPanel *, std::shared_ptr, FilmViewer& viewer); std::shared_ptr film () const; @@ -82,6 +82,8 @@ public: int tracks_y_offset () const; + void keypress(wxKeyEvent const &); + private: void paint_labels (); void paint_main (); @@ -95,7 +97,7 @@ private: void mouse_moved (wxMouseEvent &); void mouse_moved_select (wxMouseEvent &); void mouse_moved_zoom (wxMouseEvent &); - void film_change (ChangeType type, Film::Property); + void film_change(ChangeType type, FilmProperty); void film_content_change (ChangeType type, int, bool frequent); void resized (); void assign_tracks (); @@ -118,7 +120,7 @@ private: wxScrolledCanvas* _main_canvas; ContentPanel* _content_panel; std::weak_ptr _film; - std::weak_ptr _viewer; + FilmViewer& _viewer; TimelineViewList _views; std::shared_ptr _time_axis_view; std::shared_ptr _reels_view;