00001
00002
00003
00004
00005
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,260 ) );
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* bSizer111;
00024 bSizer111 = new wxBoxSizer( wxHORIZONTAL );
00025
00026 seg_button_ = new wxButton( this, wxID_ANY, wxT("Segment"), wxDefaultPosition, wxDefaultSize, 0 );
00027 bSizer111->Add( seg_button_, 0, wxALL, 5 );
00028
00029 seg_interactive_cb_ = new wxCheckBox( this, wxID_ANY, wxT("Interactive"), wxDefaultPosition, wxDefaultSize, 0 );
00030 bSizer111->Add( seg_interactive_cb_, 0, wxALL, 5 );
00031
00032 topSizer_->Add( bSizer111, 0, wxEXPAND, 5 );
00033
00034 wxBoxSizer* bSizer11;
00035 bSizer11 = new wxBoxSizer( wxHORIZONTAL );
00036
00037 t1 = new wxStaticText( this, wxID_ANY, wxT("Status:"), wxDefaultPosition, wxDefaultSize, 0 );
00038 t1->Wrap( -1 );
00039 bSizer11->Add( t1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
00040
00041 seg_status_label_ = new wxStaticText( this, wxID_ANY, wxT("Idle"), wxDefaultPosition, wxDefaultSize, 0 );
00042 seg_status_label_->Wrap( -1 );
00043 bSizer11->Add( seg_status_label_, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
00044
00045 topSizer_->Add( bSizer11, 0, wxEXPAND, 5 );
00046
00047 wxBoxSizer* bSizer1111;
00048 bSizer1111 = new wxBoxSizer( wxHORIZONTAL );
00049
00050 rec_button_ = new wxButton( this, wxID_ANY, wxT("Recognize"), wxDefaultPosition, wxDefaultSize, 0 );
00051 bSizer1111->Add( rec_button_, 0, wxALL, 5 );
00052
00053 rec_interactive_cb_ = new wxCheckBox( this, wxID_ANY, wxT("Interactive"), wxDefaultPosition, wxDefaultSize, 0 );
00054 bSizer1111->Add( rec_interactive_cb_, 0, wxALL, 5 );
00055
00056 topSizer_->Add( bSizer1111, 0, wxEXPAND, 5 );
00057
00058 wxBoxSizer* bSizer112;
00059 bSizer112 = new wxBoxSizer( wxHORIZONTAL );
00060
00061 t11 = new wxStaticText( this, wxID_ANY, wxT("Status:"), wxDefaultPosition, wxDefaultSize, 0 );
00062 t11->Wrap( -1 );
00063 bSizer112->Add( t11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
00064
00065 rec_status_label_ = new wxStaticText( this, wxID_ANY, wxT("Idle"), wxDefaultPosition, wxDefaultSize, 0 );
00066 rec_status_label_->Wrap( -1 );
00067 bSizer112->Add( rec_status_label_, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
00068
00069 topSizer_->Add( bSizer112, 0, wxEXPAND, 5 );
00070
00071 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
00072 topSizer_->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
00073
00074 wxBoxSizer* bSizer8;
00075 bSizer8 = new wxBoxSizer( wxHORIZONTAL );
00076
00077 det_button_ = new wxButton( this, wxID_ANY, wxT("Detect"), wxDefaultPosition, wxDefaultSize, 0 );
00078 bSizer8->Add( det_button_, 0, wxALL, 5 );
00079
00080 det_interactive_cb_ = new wxCheckBox( this, wxID_ANY, wxT("Interactive"), wxDefaultPosition, wxDefaultSize, 0 );
00081 bSizer8->Add( det_interactive_cb_, 0, wxALL, 5 );
00082
00083 topSizer_->Add( bSizer8, 0, wxEXPAND, 5 );
00084
00085 wxBoxSizer* bSizer1121;
00086 bSizer1121 = new wxBoxSizer( wxHORIZONTAL );
00087
00088 t111 = new wxStaticText( this, wxID_ANY, wxT("Status:"), wxDefaultPosition, wxDefaultSize, 0 );
00089 t111->Wrap( -1 );
00090 bSizer1121->Add( t111, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
00091
00092 det_status_label_ = new wxStaticText( this, wxID_ANY, wxT("Idle"), wxDefaultPosition, wxDefaultSize, 0 );
00093 det_status_label_->Wrap( -1 );
00094 bSizer1121->Add( det_status_label_, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
00095
00096 topSizer_->Add( bSizer1121, 0, wxEXPAND, 5 );
00097
00098 m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
00099 topSizer_->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
00100
00101 wxBoxSizer* bSizer21111;
00102 bSizer21111 = new wxBoxSizer( wxVERTICAL );
00103
00104 cancel_button_ = new wxButton( this, wxID_ANY, wxT("Cancel Current Action"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
00105 bSizer21111->Add( cancel_button_, 0, wxALL, 5 );
00106
00107 status_bar_ = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
00108 status_bar_->Wrap( -1 );
00109 bSizer21111->Add( status_bar_, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
00110
00111 topSizer_->Add( bSizer21111, 0, wxEXPAND, 5 );
00112
00113
00114 topSizer_->Add( 0, 0, 1, wxEXPAND, 5 );
00115
00116 bSizer19->Add( topSizer_, 1, wxEXPAND, 5 );
00117
00118 this->SetSizer( bSizer19 );
00119 this->Layout();
00120
00121
00122 seg_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::segButtonClicked ), NULL, this );
00123 rec_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::recButtonClicked ), NULL, this );
00124 det_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::detButtonClicked ), NULL, this );
00125 cancel_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::cancelButtonClicked ), NULL, this );
00126 }
00127
00128 InteractiveObjectDetectionFrameBase::~InteractiveObjectDetectionFrameBase()
00129 {
00130
00131 seg_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::segButtonClicked ), NULL, this );
00132 rec_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::recButtonClicked ), NULL, this );
00133 det_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::detButtonClicked ), NULL, this );
00134 cancel_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( InteractiveObjectDetectionFrameBase::cancelButtonClicked ), NULL, this );
00135 }
00136
00137 MyPanel2::MyPanel2( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
00138 {
00139 }
00140
00141 MyPanel2::~MyPanel2()
00142 {
00143 }