X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ffilm_editor.cc;h=bb40dad9f3693eccf70a944bdcaba8dfc4d87853;hb=a5d004b0773f633401528392fc28e66d70e13ac8;hp=a017175f522106d4663f1b98d37087d9e2304d19;hpb=d9c2cf78e6c5e465e7f76020f78f7ed1e71c3bc0;p=dcpomatic.git diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index a017175f5..bb40dad9f 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -32,15 +32,17 @@ #include "lib/dcp_content.h" #include #include -#include #include using std::cout; using std::string; using std::list; -using boost::shared_ptr; -using boost::weak_ptr; +using std::shared_ptr; +using std::weak_ptr; using boost::optional; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif FilmEditor::FilmEditor (wxWindow* parent, weak_ptr viewer) : wxPanel (parent) @@ -52,7 +54,7 @@ FilmEditor::FilmEditor (wxWindow* parent, weak_ptr viewer) _content_panel = new ContentPanel (_main_notebook, _film, viewer); _main_notebook->AddPage (_content_panel->window(), _("Content"), true); - _dcp_panel = new DCPPanel (_main_notebook, _film); + _dcp_panel = new DCPPanel (_main_notebook, _film, viewer); _main_notebook->AddPage (_dcp_panel->panel (), _("DCP"), false); JobManager::instance()->ActiveJobsChanged.connect ( @@ -156,3 +158,11 @@ FilmEditor::active_jobs_changed (optional j) { set_general_sensitivity (!j); } + + +void +FilmEditor::first_shown () +{ + _content_panel->first_shown (); +} +