std::shared_ptr
[dcpomatic.git] / src / wx / content_sub_panel.cc
index e4adc685b03fa11000bb23b25f1c0cb7cb625916..b4ba5517562588f2282b2b8d7c244fff63e26d45 100644 (file)
 
 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 ();