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 auto right_sizer = new wxBoxSizer (wxVERTICAL);
19 right_sizer->Add (_film_viewer->panel(), 2, wxEXPAND | wxALL, 6);
21 wxBoxSizer* main_sizer = new wxBoxSizer (wxHORIZONTAL);
22 main_sizer->Add (right_sizer, 1, wxEXPAND | wxALL, 6);
24 overall_panel->SetSizer (main_sizer);
29 FilmEditor* _film_editor;
30 std::shared_ptr<FilmViewer> _film_viewer;
35 * @brief The magic App class for wxWidgets.
37 class App : public wxApp
41 bool OnInit () override
43 if (!wxApp::OnInit()) {
47 _frame = new DOMFrame (_("DCP-o-matic"));
48 SetTopWindow (_frame);
55 DOMFrame* _frame = nullptr;