1 #include "wx/film_editor.h"
2 #include "wx/film_viewer.h"
5 class DOMFrame : public wxFrame
8 explicit DOMFrame (wxString const& title)
9 : wxFrame (nullptr, -1, title)
11 /* Use a panel as the only child of the Frame so that we avoid
12 the dark-grey background on Windows.
14 auto overall_panel = new wxPanel (this, wxID_ANY);
16 _film_viewer.reset (new FilmViewer (overall_panel));
18 wxBoxSizer* main_sizer = new wxBoxSizer (wxHORIZONTAL);
19 main_sizer->Add (_film_viewer->panel(), 1, wxEXPAND);
21 overall_panel->SetSizer (main_sizer);
26 FilmEditor* _film_editor;
27 std::shared_ptr<FilmViewer> _film_viewer;
32 * @brief The magic App class for wxWidgets.
34 class App : public wxApp
38 bool OnInit () override
40 if (!wxApp::OnInit()) {
44 _frame = new DOMFrame (_("DCP-o-matic"));
45 SetTopWindow (_frame);
52 DOMFrame* _frame = nullptr;