$search
00001 00002 // C++ code generated with wxFormBuilder (version Dec 21 2009) 00003 // http://www.wxformbuilder.org/ 00004 // 00005 // PLEASE DO "NOT" EDIT THIS FILE! 00007 00008 #include "interactive_object_detection_ui.h" 00009 00011 00012 InteractiveObjectDetectionFrameBase::InteractiveObjectDetectionFrameBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) 00013 { 00014 this->SetMinSize( wxSize( 300,220 ) ); 00015 00016 wxBoxSizer* bSizer19; 00017 bSizer19 = new wxBoxSizer( wxHORIZONTAL ); 00018 00019 wxBoxSizer* topSizer_; 00020 topSizer_ = new wxBoxSizer( wxVERTICAL ); 00021 00022 topSizer_->SetMinSize( wxSize( 250,-1 ) ); 00023 wxBoxSizer* bSizer10; 00024 bSizer10 = new wxBoxSizer( wxHORIZONTAL ); 00025 00026 interactive_cb_ = new wxCheckBox( this, wxID_ANY, wxT("Interactive"), wxDefaultPosition, wxDefaultSize, 0 ); 00027 bSizer10->Add( interactive_cb_, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 00028 00029 00030 bSizer10->Add( 0, 0, 1, wxEXPAND, 5 ); 00031 00032 cancel_button_ = new wxButton( this, wxID_ANY, wxT("Cancel Current Action"), wxDefaultPosition, wxSize( -1,-1 ), 0 ); 00033 bSizer10->Add( cancel_button_, 0, wxALL, 5 ); 00034 00035 reset_button_ = new wxButton( this, wxID_ANY, wxT("Reset"), wxDefaultPosition, wxSize( -1,-1 ), 0 ); 00036 bSizer10->Add( reset_button_, 0, wxALL, 5 ); 00037 00038 topSizer_->Add( bSizer10, 1, wxEXPAND, 5 ); 00039 00040 wxBoxSizer* bSizer111; 00041 bSizer111 = new wxBoxSizer( wxHORIZONTAL ); 00042 00043 seg_button_ = new wxButton( this, wxID_ANY, wxT("Segment"), wxDefaultPosition, wxDefaultSize, 0 ); 00044 bSizer111->Add( seg_button_, 0, wxALL, 5 ); 00045 00046 seg_status_label_ = new wxStaticText( this, wxID_ANY, wxT("Idle"), wxDefaultPosition, wxDefaultSize, 0 ); 00047 seg_status_label_->Wrap( -1 ); 00048 bSizer111->Add( seg_status_label_, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 00049 00050 topSizer_->Add( bSizer111, 0, wxEXPAND, 5 ); 00051 00052 wxBoxSizer* bSizer1111; 00053 bSizer1111 = new wxBoxSizer( wxHORIZONTAL ); 00054 00055 rec_button_ = new wxButton( this, wxID_ANY, wxT("Recognize"), wxDefaultPosition, wxDefaultSize, 0 ); 00056 bSizer1111->Add( rec_button_, 0, wxALL, 5 ); 00057 00058 rec_status_label_ = new wxStaticText( this, wxID_ANY, wxT("Idle"), wxDefaultPosition, wxDefaultSize, 0 ); 00059 rec_status_label_->Wrap( -1 ); 00060 bSizer1111->Add( rec_status_label_, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 00061 00062 topSizer_->Add( bSizer1111, 0, wxEXPAND, 5 ); 00063 00064 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); 00065 topSizer_->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 ); 00066 00067 wxBoxSizer* bSizer8; 00068 bSizer8 = new wxBoxSizer( wxHORIZONTAL ); 00069 00070 det_button_ = new wxButton( this, wxID_ANY, wxT("Detect"), wxDefaultPosition, wxDefaultSize, 0 ); 00071 bSizer8->Add( det_button_, 0, wxALL, 5 ); 00072 00073 det_status_label_ = new wxStaticText( this, wxID_ANY, wxT("Idle"), wxDefaultPosition, wxDefaultSize, 0 ); 00074 det_status_label_->Wrap( -1 ); 00075 bSizer8->Add( det_status_label_, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); 00076 00077 topSizer_->Add( bSizer8, 0, wxEXPAND, 5 ); 00078 00079 m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); 00080 topSizer_->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 ); 00081 00082 wxBoxSizer* bSizer21111; 00083 bSizer21111 = new wxBoxSizer( wxVERTICAL ); 00084 00085 status_bar_ = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); 00086 status_bar_->Wrap( -1 ); 00087 bSizer21111->Add( status_bar_, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 ); 00088 00089 topSizer_->Add( bSizer21111, 0, wxEXPAND, 5 ); 00090 00091 00092 topSizer_->Add( 0, 0, 1, wxEXPAND, 5 ); 00093 00094 bSizer19->Add( topSizer_, 1, wxEXPAND, 5 ); 00095 00096 this->SetSizer( bSizer19 ); 00097 this->Layout(); 00098 00099 // Connect Events 00100 cancel_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::cancelButtonClicked ), NULL, this ); 00101 reset_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::resetButtonClicked ), NULL, this ); 00102 seg_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::segButtonClicked ), NULL, this ); 00103 rec_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::recButtonClicked ), NULL, this ); 00104 det_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::detButtonClicked ), NULL, this ); 00105 } 00106 00107 InteractiveObjectDetectionFrameBase::~InteractiveObjectDetectionFrameBase() 00108 { 00109 // Disconnect Events 00110 cancel_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::cancelButtonClicked ), NULL, this ); 00111 reset_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::resetButtonClicked ), NULL, this ); 00112 seg_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::segButtonClicked ), NULL, this ); 00113 rec_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::recButtonClicked ), NULL, this ); 00114 det_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::detButtonClicked ), NULL, this ); 00115 } 00116 00117 MyPanel2::MyPanel2( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) 00118 { 00119 } 00120 00121 MyPanel2::~MyPanel2() 00122 { 00123 }