X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fcontent_sub_panel.h;h=d5f502eeaf2a59608be487a9ccfb520feabb8d85;hb=c3cf916c147f91f5952cba77a293aa989d6e0af7;hp=fb22b3a22970c243c506ca8a29959f3f5835db2e;hpb=47c34c6c7c82396b62e101283cb25b8726dbaefd;p=dcpomatic.git diff --git a/src/wx/content_sub_panel.h b/src/wx/content_sub_panel.h index fb22b3a22..d5f502eea 100644 --- a/src/wx/content_sub_panel.h +++ b/src/wx/content_sub_panel.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2014 Carl Hetherington + Copyright (C) 2012-2020 Carl Hetherington This file is part of DCP-o-matic. @@ -24,10 +24,12 @@ #include #include #include "lib/film.h" +#include "lib/config.h" class ContentPanel; class Content; class DCPContent; +class wxGridBagSizer; class ContentSubPanel : public wxScrolledWindow { @@ -40,12 +42,23 @@ public: /** Called when the list of selected Contents changes */ virtual void content_selection_changed () = 0; + wxString name () const { + return _name; + } + protected: - void setup_refer_button (wxCheckBox* button, boost::shared_ptr dcp, bool can_reference, std::string why_not) const; + void setup_refer_button (wxCheckBox* button, wxStaticText* note, boost::shared_ptr dcp, bool can_reference, wxString cannot) const; + 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