X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Fcontent_sub_panel.cc;h=b4ba5517562588f2282b2b8d7c244fff63e26d45;hp=e4adc685b03fa11000bb23b25f1c0cb7cb625916;hb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;hpb=886e0f9d08a241bef5baf328beb08a0d6996ae14 diff --git a/src/wx/content_sub_panel.cc b/src/wx/content_sub_panel.cc index e4adc685b..b4ba55175 100644 --- a/src/wx/content_sub_panel.cc +++ b/src/wx/content_sub_panel.cc @@ -29,7 +29,10 @@ using std::list; using std::string; -using boost::shared_ptr; +using std::shared_ptr; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name) : wxScrolledWindow (p->notebook(), wxID_ANY) @@ -42,19 +45,6 @@ ContentSubPanel::ContentSubPanel (ContentPanel* p, wxString name) _grid = new wxGridBagSizer (DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP); _sizer->Add (_grid, 0, wxALL, 8); - - _config_connection = Config::instance()->Changed.connect (boost::bind (&ContentSubPanel::config_changed, this, _1)); -} - -void -ContentSubPanel::config_changed (Config::Property p) -{ - if (p == Config::INTERFACE_COMPLEXITY) { - _grid->Clear (); - add_to_grid (); - _sizer->Layout (); - _grid->Layout (); - } } void @@ -70,7 +60,7 @@ ContentSubPanel::setup_refer_button (wxCheckBox* button, wxStaticText* note, sha note->Wrap (400); - if (cannot.IsEmpty() || Config::instance()->interface_complexity() == Config::INTERFACE_SIMPLE) { + if (cannot.IsEmpty()) { note->Hide (); } else { note->Show ();