Try a draggable splitter in the LHS.
[dcpomatic.git] / src / wx / film_editor.cc
index 965497234aa4ff202da50ca1b82528cf589bd048..59b44cd8c0e3ab53949352a6ac312fb672b1ed2c 100644 (file)
@@ -39,9 +39,10 @@ using std::cout;
 using std::string;
 using std::list;
 using boost::shared_ptr;
+using boost::weak_ptr;
 using boost::optional;
 
-FilmEditor::FilmEditor (wxWindow* parent, ControlFilmViewer* viewer)
+FilmEditor::FilmEditor (wxWindow* parent, weak_ptr<FilmViewer> viewer)
        : wxPanel (parent)
 {
        wxBoxSizer* s = new wxBoxSizer (wxVERTICAL);
@@ -50,7 +51,7 @@ FilmEditor::FilmEditor (wxWindow* parent, ControlFilmViewer* viewer)
        s->Add (_main_notebook, 1);
 
        _content_panel = new ContentPanel (_main_notebook, _film, viewer);
-       _main_notebook->AddPage (_content_panel->panel (), _("Content"), true);
+       _main_notebook->AddPage (_content_panel->window(), _("Content"), true);
        _dcp_panel = new DCPPanel (_main_notebook, _film);
        _main_notebook->AddPage (_dcp_panel->panel (), _("DCP"), false);