X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontrols.h;h=75bae9bb3877635f50e02f27aa67fdb48baca83f;hb=e83dd04a657865ecb5f8be82b7d36e6e19a5a18e;hp=377960425ba2807e5982ede7f25ffd4ec8e376a5;hpb=0b791ea708dfa1f5cd44522988dd5efdf2a0b94b;p=dcpomatic.git diff --git a/src/wx/controls.h b/src/wx/controls.h index 377960425..75bae9bb3 100644 --- a/src/wx/controls.h +++ b/src/wx/controls.h @@ -23,24 +23,27 @@ #define DCPOMATIC_CONTROLS_H +#include "lib/change_signaller.h" #include "lib/dcpomatic_time.h" -#include "lib/types.h" -#include "lib/film.h" -#include "lib/warnings.h" -DCPOMATIC_DISABLE_WARNINGS +#include "lib/film_property.h" +#include +LIBDCP_DISABLE_WARNINGS #include -DCPOMATIC_ENABLE_WARNINGS +LIBDCP_ENABLE_WARNINGS #include -class FilmViewer; -class Film; +class CheckBox; class ClosedCaptionsDialog; class Content; +class ContentView; +class Film; +class FilmViewer; +class MarkersPanel; class PlayerVideo; -class wxToggleButton; + class wxListCtrl; -class ContentView; +class wxToggleButton; namespace dcp { @@ -53,12 +56,11 @@ class Controls : public wxPanel public: Controls ( wxWindow* parent, - std::shared_ptr, + FilmViewer &, bool editor_controls = true ); - virtual void log (wxString) {} - virtual void set_film (std::shared_ptr film); + void set_film (std::shared_ptr film); virtual void play () {}; virtual void stop () {}; @@ -78,8 +80,9 @@ protected: wxSizer* _v_sizer; wxBoxSizer* _button_sizer; std::shared_ptr _film; + MarkersPanel* _markers; wxSlider* _slider; - std::weak_ptr _viewer; + FilmViewer& _viewer; boost::optional _active_job; private: @@ -100,15 +103,15 @@ private: void outline_content_changed (); void eye_changed (); void update_position (); - void film_change (ChangeType, Film::Property); + void film_change(ChangeType, FilmProperty); typedef std::pair, boost::filesystem::path> CPL; - bool _slider_being_moved; + bool _slider_being_moved = false; - wxCheckBox* _outline_content; - wxChoice* _eye; - wxCheckBox* _jump_to_selected; + CheckBox* _outline_content = nullptr; + wxChoice* _eye = nullptr; + CheckBox* _jump_to_selected = nullptr; wxButton* _rewind_button; wxButton* _back_button; wxButton* _forward_button;