4 #include "film_viewer.h"
5 #include "film_editor.h"
11 class Frame : public wxFrame
14 Frame (wxString const & title, wxPoint const & pos, wxSize const & size)
15 : wxFrame (NULL, -1, title, pos, size)
17 wxMenuBar* bar = new wxMenuBar;
19 wxMenu *menu_file = new wxMenu;
20 menu_file->Append (ID_Quit, _("&Quit"));
22 bar->Append (menu_file, _("&File"));
27 SetStatusText (_("Welcome to DVD-o-matic!"));
30 void OnQuit (wxCommandEvent& event)
36 class App : public wxApp
40 if (!wxApp::OnInit ()) {
44 wxInitAllImageHandlers ();
48 Film* film = new Film ("/home/carl/DCP/BitHarvest");
50 Frame* frame = new Frame (_("DVD-o-matic"), wxPoint (50, 50), wxSize(450, 350));
54 ID_Quit, wxEVT_COMMAND_MENU_SELECTED,
55 (wxObjectEventFunction) &Frame::OnQuit
58 FilmEditor* editor = new FilmEditor (film, frame);
60 FilmViewer* viewer = new FilmViewer (film, frame);
61 viewer->load_thumbnail (22);
63 wxBoxSizer* main_sizer = new wxBoxSizer (wxHORIZONTAL);
64 main_sizer->Add (editor, 0);
65 main_sizer->Add (viewer->get_widget (), 1, wxEXPAND);
66 frame->SetSizer (main_sizer);
68 // frame->Add (viewer->get_widget ());