skill_crane_ui.cpp
Go to the documentation of this file.
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 "skill_crane_ui.h"
00009 
00011 
00012 SkillCraneFrameBase::SkillCraneFrameBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
00013 {
00014         this->SetSizeHints( wxDefaultSize, wxDefaultSize );
00015         
00016         wxBoxSizer* bSizer1;
00017         bSizer1 = new wxBoxSizer( wxVERTICAL );
00018         
00019         wxBoxSizer* bSizer2;
00020         bSizer2 = new wxBoxSizer( wxHORIZONTAL );
00021         
00022         prepare_button_ = new wxButton( this, wxID_ANY, wxT("Prepare"), wxDefaultPosition, wxDefaultSize, 0 );
00023         bSizer2->Add( prepare_button_, 0, wxALL, 5 );
00024         
00025         bSizer1->Add( bSizer2, 0, wxEXPAND, 5 );
00026         
00027         wxBoxSizer* bSizer3;
00028         bSizer3 = new wxBoxSizer( wxHORIZONTAL );
00029         
00030         grasp_button_ = new wxButton( this, wxID_ANY, wxT("Grasp"), wxDefaultPosition, wxDefaultSize, 0 );
00031         bSizer3->Add( grasp_button_, 0, wxALL, 5 );
00032         
00033         m_staticText3 = new wxStaticText( this, wxID_ANY, wxT("with"), wxDefaultPosition, wxDefaultSize, 0 );
00034         m_staticText3->Wrap( -1 );
00035         bSizer3->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
00036         
00037         wxString arm_choice_Choices[] = { wxT("right arm"), wxT("left arm") };
00038         int arm_choice_NChoices = sizeof( arm_choice_Choices ) / sizeof( wxString );
00039         arm_choice_ = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, arm_choice_NChoices, arm_choice_Choices, 0 );
00040         arm_choice_->SetSelection( 0 );
00041         bSizer3->Add( arm_choice_, 0, wxALL, 5 );
00042         
00043         bSizer1->Add( bSizer3, 0, wxEXPAND, 5 );
00044         
00045         wxBoxSizer* bSizer4;
00046         bSizer4 = new wxBoxSizer( wxHORIZONTAL );
00047         
00048         place_button_ = new wxButton( this, wxID_ANY, wxT("Place"), wxDefaultPosition, wxDefaultSize, 0 );
00049         bSizer4->Add( place_button_, 0, wxALL, 5 );
00050         
00051         bSizer1->Add( bSizer4, 0, wxEXPAND, 5 );
00052         
00053         wxBoxSizer* bSizer5;
00054         bSizer5 = new wxBoxSizer( wxHORIZONTAL );
00055         
00056         handoff_button_ = new wxButton( this, wxID_ANY, wxT("Handoff"), wxDefaultPosition, wxDefaultSize, 0 );
00057         bSizer5->Add( handoff_button_, 0, wxALL, 5 );
00058         
00059         bSizer1->Add( bSizer5, 0, wxEXPAND, 5 );
00060         
00061         wxBoxSizer* bSizer6;
00062         bSizer6 = new wxBoxSizer( wxHORIZONTAL );
00063         
00064         m_staticText1 = new wxStaticText( this, wxID_ANY, wxT("Status:"), wxDefaultPosition, wxDefaultSize, 0 );
00065         m_staticText1->Wrap( -1 );
00066         bSizer6->Add( m_staticText1, 0, wxALL, 5 );
00067         
00068         status_label_ = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
00069         status_label_->Wrap( -1 );
00070         bSizer6->Add( status_label_, 0, wxALL, 5 );
00071         
00072         bSizer1->Add( bSizer6, 1, wxEXPAND, 5 );
00073         
00074         wxBoxSizer* bSizer7;
00075         bSizer7 = new wxBoxSizer( wxHORIZONTAL );
00076         
00077         
00078         bSizer7->Add( 0, 5, 0, wxEXPAND, 2 );
00079         
00080         bSizer1->Add( bSizer7, 1, wxEXPAND, 5 );
00081         
00082         this->SetSizer( bSizer1 );
00083         this->Layout();
00084         
00085         // Connect Events
00086         prepare_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( SkillCraneFrameBase::prepareButtonClicked ), NULL, this );
00087         grasp_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( SkillCraneFrameBase::graspButtonClicked ), NULL, this );
00088         place_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( SkillCraneFrameBase::placeButtonClicked ), NULL, this );
00089         handoff_button_->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( SkillCraneFrameBase::handoffButtonClicked ), NULL, this );
00090 }
00091 
00092 SkillCraneFrameBase::~SkillCraneFrameBase()
00093 {
00094         // Disconnect Events
00095         prepare_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( SkillCraneFrameBase::prepareButtonClicked ), NULL, this );
00096         grasp_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( SkillCraneFrameBase::graspButtonClicked ), NULL, this );
00097         place_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( SkillCraneFrameBase::placeButtonClicked ), NULL, this );
00098         handoff_button_->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( SkillCraneFrameBase::handoffButtonClicked ), NULL, this );
00099 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


pr2_skill_crane
Author(s): Matei Ciocarlie
autogenerated on Thu Nov 29 2012 17:17:16