00018 : wxFrame( parent, id, title ),
00019 theScroller( NULL ),
00020 theStatusBarHandler( NULL ),
00021 theController( NULL )
00022 {
00023 wxStatusBar* statusBar = CreateStatusBar();
00024 wxMenuBar* menuBar = new wxMenuBar();
00025 wxMenu* fileMenu = new wxMenu();
00026 wxMenu* miscMenu = new wxMenu();
00027 wxSizer* sizer = new wxBoxSizer( wxVERTICAL );
00028
00029 SetMenuBar( menuBar );
00030
00031 fileMenu->Append( wxID_OPEN, "Open", "Open an image file." );
00032 fileMenu->AppendSeparator();
00033 fileMenu->Append( wxID_EXIT, "Exit", "Exit the program" );
00034 menuBar->Append( fileMenu, "File" );
00035
00036 miscMenu->Append( ROAD_FIND_RESET, "Reset", "Reset the state machine." );
00037 miscMenu->Append( ROAD_FIND_EDIT, "Edit", "Edit Diffgeom parameters." );
00038 menuBar->Append( miscMenu, "Misc" );
00039
00040 theStatusBarHandler = new StatusBarHandler( statusBar );
00041
00042 theScroller = new ScrolledImageSourceWindow( this, -1 );
00043 theScroller->PushEventHandler( theStatusBarHandler );
00044 sizer->Add( theScroller, 1, wxALL | wxEXPAND );
00045
00046 SetSizer( sizer );
00047 SetAutoLayout( TRUE );
00048 sizer->Fit( this );
00049 }