#endif
-FilmEditor::FilmEditor (wxWindow* parent, weak_ptr<FilmViewer> viewer)
+FilmEditor::FilmEditor(wxWindow* parent, FilmViewer& viewer)
: wxPanel (parent)
{
auto s = new wxBoxSizer (wxVERTICAL);
auto notebook = new wxNotebook(this, wxID_ANY);
- s->Add(notebook, 1);
+ s->Add(notebook, 1, wxEXPAND);
_content_panel = new ContentPanel(notebook, _film, viewer);
notebook->AddPage(_content_panel->window(), _("Content"), true);
* @param p Property of the Film that has changed.
*/
void
-FilmEditor::film_change (ChangeType type, Film::Property p)
+FilmEditor::film_change(ChangeType type, FilmProperty p)
{
if (type != ChangeType::DONE) {
return;
_content_panel->film_changed (p);
_dcp_panel->film_changed (p);
- if (p == Film::Property::CONTENT && !_film->content().empty()) {
+ if (p == FilmProperty::CONTENT && !_film->content().empty()) {
/* Select newly-added content */
_content_panel->set_selection (_film->content().back ());
}