$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 "object_segmentation_frame.h" 00009 00011 00012 ObjectSegmentationFrame::ObjectSegmentationFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxFrame( parent, id, title, pos, size, style, name ) 00013 { 00014 this->SetSizeHints( wxDefaultSize, wxDefaultSize ); 00015 00016 wxBoxSizer* bSizer1; 00017 bSizer1 = new wxBoxSizer( wxVERTICAL ); 00018 00019 wxBoxSizer* bSizer3; 00020 bSizer3 = new wxBoxSizer( wxVERTICAL ); 00021 00022 m_panel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxSize( 640,480 ), wxTAB_TRAVERSAL ); 00023 bSizer3->Add( m_panel, 0, wxEXPAND | wxALL, 5 ); 00024 00025 bSizer1->Add( bSizer3, 0, wxEXPAND, 5 ); 00026 00027 wxBoxSizer* bSizer41; 00028 bSizer41 = new wxBoxSizer( wxHORIZONTAL ); 00029 00030 bottom_label_ = new wxStaticText( this, wxID_ANY, wxT("MyLabel"), wxDefaultPosition, wxDefaultSize, 0 ); 00031 bottom_label_->Wrap( -1 ); 00032 bSizer41->Add( bottom_label_, 0, wxALL, 5 ); 00033 00034 bSizer1->Add( bSizer41, 1, wxEXPAND, 5 ); 00035 00036 wxBoxSizer* bSizer4; 00037 bSizer4 = new wxBoxSizer( wxHORIZONTAL ); 00038 00039 accept_button_ = new wxButton( this, wxID_ANY, wxT("OK"), wxDefaultPosition, wxDefaultSize, 0 ); 00040 bSizer4->Add( accept_button_, 0, wxALL, 5 ); 00041 00042 cancel_button_ = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 ); 00043 bSizer4->Add( cancel_button_, 0, wxALL, 5 ); 00044 00045 00046 bSizer4->Add( 0, 0, 1, wxEXPAND, 5 ); 00047 00048 segment_button_ = new wxButton( this, wxID_ANY, wxT("Segment"), wxDefaultPosition, wxDefaultSize, 0 ); 00049 bSizer4->Add( segment_button_, 0, wxALL, 5 ); 00050 00051 reset_button_ = new wxButton( this, wxID_ANY, wxT("Reset"), wxDefaultPosition, wxDefaultSize, 0 ); 00052 bSizer4->Add( reset_button_, 0, wxALL, 5 ); 00053 00054 bSizer1->Add( bSizer4, 0, wxEXPAND, 5 ); 00055 00056 this->SetSizer( bSizer1 ); 00057 this->Layout(); 00058 00059 // Connect Events 00060 accept_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ObjectSegmentationFrame::acceptButtonClicked ), NULL, this ); 00061 cancel_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ObjectSegmentationFrame::cancelButtonClicked ), NULL, this ); 00062 segment_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ObjectSegmentationFrame::segmentButtonClicked ), NULL, this ); 00063 reset_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ObjectSegmentationFrame::resetButtonClicked ), NULL, this ); 00064 } 00065 00066 ObjectSegmentationFrame::~ObjectSegmentationFrame() 00067 { 00068 // Disconnect Events 00069 accept_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ObjectSegmentationFrame::acceptButtonClicked ), NULL, this ); 00070 cancel_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ObjectSegmentationFrame::cancelButtonClicked ), NULL, this ); 00071 segment_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ObjectSegmentationFrame::segmentButtonClicked ), NULL, this ); 00072 reset_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ObjectSegmentationFrame::resetButtonClicked ), NULL, this ); 00073 }