X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ffilm_editor.cc;h=881317f3aa74cfd94128651a909a4c5ec79a5bdd;hb=b6c780d3107557d452c6612d715d01e2be52dbda;hp=37a8c880847391eb68d29bdbe7063c5940c4a7cc;hpb=19b94af9524a953827ed4e202bfa986e717fd99a;p=dcpomatic.git diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc index 37a8c8808..881317f3a 100644 --- a/src/wx/film_editor.cc +++ b/src/wx/film_editor.cc @@ -45,6 +45,7 @@ #include "lib/content.h" #include "lib/content_factory.h" #include "lib/dcp_content.h" +#include "lib/safe_stringstream.h" #include "timecode.h" #include "wx_util.h" #include "film_editor.h" @@ -58,7 +59,6 @@ using std::string; using std::cout; -using std::stringstream; using std::pair; using std::fixed; using std::setprecision; @@ -71,7 +71,7 @@ using boost::dynamic_pointer_cast; using boost::lexical_cast; /** @param f Film to edit */ -FilmEditor::FilmEditor (shared_ptr f, wxWindow* parent) +FilmEditor::FilmEditor (wxWindow* parent) : wxPanel (parent) { wxBoxSizer* s = new wxBoxSizer (wxVERTICAL); @@ -84,13 +84,11 @@ FilmEditor::FilmEditor (shared_ptr f, wxWindow* parent) _dcp_panel = new DCPPanel (_main_notebook, _film); _main_notebook->AddPage (_dcp_panel->panel (), _("DCP"), false); - set_film (f); - JobManager::instance()->ActiveJobsChanged.connect ( bind (&FilmEditor::active_jobs_changed, this, _1) ); - SetSizerAndFit (s); + set_film (shared_ptr ()); } @@ -109,7 +107,6 @@ FilmEditor::film_changed (Film::Property p) _content_panel->film_changed (p); _dcp_panel->film_changed (p); - } void @@ -171,4 +168,3 @@ FilmEditor::active_jobs_changed (bool a) { set_general_sensitivity (!a); } -