///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "gui.h"

///////////////////////////////////////////////////////////////////////////

MainFrameView::MainFrameView( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	menubar = new wxMenuBar( 0 );
	file = new wxMenu();
	wxMenuItem* openCamera;
	openCamera = new wxMenuItem( file, ID_OPEN_CAMERA, wxString( _("Open Ca&mera") ) + wxT('\t') + wxT("Ctrl+M"), _("Open a video from a webcam"), wxITEM_NORMAL );
	file->Append( openCamera );
	
	wxMenuItem* openVideoFile;
	openVideoFile = new wxMenuItem( file, ID_OPEN_VIDEO_FILE, wxString( _("Open V&ideo File") ) + wxT('\t') + wxT("Ctrl+I"), _("Open a video from a file"), wxITEM_NORMAL );
	file->Append( openVideoFile );
	
	file->AppendSeparator();
	
	wxMenuItem* quitMenuItem;
	quitMenuItem = new wxMenuItem( file, wxID_EXIT, wxString( _("&Exit") ) + wxT('\t') + wxT("Alt+F4"), _("Close program"), wxITEM_NORMAL );
	file->Append( quitMenuItem );
	
	menubar->Append( file, _("&File") );
	
	sceneMenu = new wxMenu();
	wxMenuItem* drawAxisMenuItem;
	drawAxisMenuItem = new wxMenuItem( sceneMenu, ID_DRAW_AXIS, wxString( _("Draw &Axis") ) , _("Desligar processors"), wxITEM_CHECK );
	sceneMenu->Append( drawAxisMenuItem );
	
	wxMenuItem* drawOcclusionWireframe;
	drawOcclusionWireframe = new wxMenuItem( sceneMenu, ID_DRAW_OCCLUSION_WIREFRAME, wxString( _("Occlusion &Wireframe") ) , _("Enable chessboard tracker"), wxITEM_CHECK );
	sceneMenu->Append( drawOcclusionWireframe );
	
	menubar->Append( sceneMenu, _("&Scene") );
	
	this->SetMenuBar( menubar );
	
	statusBar = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY );
	wxBoxSizer* bSizer1;
	bSizer1 = new wxBoxSizer( wxVERTICAL );
	
	this->SetSizer( bSizer1 );
	this->Layout();
	bSizer1->Fit( this );
	
	this->Centre( wxBOTH );
	
	// Connect Events
	this->Connect( openCamera->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameView::onOpenCameraMenuSelected ) );
	this->Connect( openVideoFile->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameView::onOpenVideoFileMenuSelected ) );
	this->Connect( quitMenuItem->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameView::onQuitMenuSelected ) );
	this->Connect( drawAxisMenuItem->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameView::onDrawAxisMenuItemClicked ) );
	this->Connect( drawOcclusionWireframe->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameView::onDrawOcclusionWireframeMenuItemClicked ) );
}

MainFrameView::~MainFrameView()
{
	// Disconnect Events
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameView::onOpenCameraMenuSelected ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameView::onOpenVideoFileMenuSelected ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameView::onQuitMenuSelected ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameView::onDrawAxisMenuItemClicked ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameView::onDrawOcclusionWireframeMenuItemClicked ) );
}
