X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontent_sub_panel.h;h=2817fab6e939c39f4653ef957ce8cbe4322692b6;hb=439b5d7a315daf2422cb6c995110d628a91d9389;hp=d5f502eeaf2a59608be487a9ccfb520feabb8d85;hpb=886e0f9d08a241bef5baf328beb08a0d6996ae14;p=dcpomatic.git diff --git a/src/wx/content_sub_panel.h b/src/wx/content_sub_panel.h index d5f502eea..2817fab6e 100644 --- a/src/wx/content_sub_panel.h +++ b/src/wx/content_sub_panel.h @@ -18,24 +18,30 @@ */ + #ifndef DCPOMATIC_CONTENT_SUB_PANEL_H #define DCPOMATIC_CONTENT_SUB_PANEL_H -#include -#include + #include "lib/film.h" -#include "lib/config.h" +#include +LIBDCP_DISABLE_WARNINGS +#include +LIBDCP_ENABLE_WARNINGS class ContentPanel; class Content; class DCPContent; class wxGridBagSizer; + class ContentSubPanel : public wxScrolledWindow { public: ContentSubPanel (ContentPanel *, wxString); + virtual void create () = 0; + virtual void film_changed (Film::Property) {} /** Called when a given property of one of the selected Contents changes */ virtual void film_content_changed (int) = 0; @@ -48,17 +54,14 @@ public: protected: - void setup_refer_button (wxCheckBox* button, wxStaticText* note, boost::shared_ptr dcp, bool can_reference, wxString cannot) const; + void setup_refer_button (wxCheckBox* button, wxStaticText* note, std::shared_ptr dcp, bool can_reference, wxString cannot); + void layout (); virtual void add_to_grid () = 0; ContentPanel* _parent; wxSizer* _sizer; wxGridBagSizer* _grid; wxString _name; - -private: - void config_changed (Config::Property); - boost::signals2::scoped_connection _config_connection; }; #endif