| 1 |
/////////////////////////////////////////////////////////////////////////// |
| 2 |
// C++ code generated with wxFormBuilder (version Nov 29 2010) |
| 3 |
// http://www.wxformbuilder.org/ |
| 4 |
// |
| 5 |
// PLEASE DO "NOT" EDIT THIS FILE! |
| 6 |
/////////////////////////////////////////////////////////////////////////// |
| 7 |
|
| 8 |
#include "codedesignersettingsbasedlg.h" |
| 9 |
|
| 10 |
/////////////////////////////////////////////////////////////////////////// |
| 11 |
|
| 12 |
CodeDesignerBaseDlg::CodeDesignerBaseDlg( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
| 13 |
{ |
| 14 |
this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
| 15 |
|
| 16 |
wxBoxSizer* mainSizer; |
| 17 |
mainSizer = new wxBoxSizer( wxVERTICAL ); |
| 18 |
|
| 19 |
m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); |
| 20 |
wxFlexGridSizer* fgSizer1; |
| 21 |
fgSizer1 = new wxFlexGridSizer( 2, 3, 0, 0 ); |
| 22 |
fgSizer1->AddGrowableCol( 1 ); |
| 23 |
fgSizer1->SetFlexibleDirection( wxBOTH ); |
| 24 |
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
| 25 |
|
| 26 |
m_staticText1 = new wxStaticText( m_panel1, wxID_ANY, _("CodeDesigner path:"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 27 |
m_staticText1->Wrap( -1 ); |
| 28 |
fgSizer1->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
| 29 |
|
| 30 |
m_textCtrlCDPath = new wxTextCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
| 31 |
m_textCtrlCDPath->SetMinSize( wxSize( 400,-1 ) ); |
| 32 |
|
| 33 |
fgSizer1->Add( m_textCtrlCDPath, 1, wxALL|wxEXPAND, 5 ); |
| 34 |
|
| 35 |
m_buttonBrowse = new wxButton( m_panel1, wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, 0 ); |
| 36 |
fgSizer1->Add( m_buttonBrowse, 0, wxALL, 5 ); |
| 37 |
|
| 38 |
m_staticText3 = new wxStaticText( m_panel1, wxID_ANY, _("Communication port:"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 39 |
m_staticText3->Wrap( -1 ); |
| 40 |
fgSizer1->Add( m_staticText3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
| 41 |
|
| 42 |
m_textCtrlComPort = new wxTextCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
| 43 |
fgSizer1->Add( m_textCtrlComPort, 1, wxALL, 5 ); |
| 44 |
|
| 45 |
|
| 46 |
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 ); |
| 47 |
|
| 48 |
m_panel1->SetSizer( fgSizer1 ); |
| 49 |
m_panel1->Layout(); |
| 50 |
fgSizer1->Fit( m_panel1 ); |
| 51 |
mainSizer->Add( m_panel1, 0, wxEXPAND | wxALL, 5 ); |
| 52 |
|
| 53 |
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); |
| 54 |
mainSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 ); |
| 55 |
|
| 56 |
wxBoxSizer* bSizer2; |
| 57 |
bSizer2 = new wxBoxSizer( wxHORIZONTAL ); |
| 58 |
|
| 59 |
m_buttonOk = new wxButton( this, wxID_ANY, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 60 |
m_buttonOk->SetDefault(); |
| 61 |
bSizer2->Add( m_buttonOk, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
| 62 |
|
| 63 |
m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 64 |
bSizer2->Add( m_buttonCancel, 0, wxALL, 5 ); |
| 65 |
|
| 66 |
mainSizer->Add( bSizer2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); |
| 67 |
|
| 68 |
this->SetSizer( mainSizer ); |
| 69 |
this->Layout(); |
| 70 |
mainSizer->Fit( this ); |
| 71 |
|
| 72 |
this->Centre( wxBOTH ); |
| 73 |
|
| 74 |
// Connect Events |
| 75 |
this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( CodeDesignerBaseDlg::OnInit ) ); |
| 76 |
m_buttonBrowse->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CodeDesignerBaseDlg::OnButtonBrowse ), NULL, this ); |
| 77 |
m_buttonOk->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CodeDesignerBaseDlg::OnButtonOK ), NULL, this ); |
| 78 |
m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CodeDesignerBaseDlg::OnButtonCancel ), NULL, this ); |
| 79 |
} |
| 80 |
|
| 81 |
CodeDesignerBaseDlg::~CodeDesignerBaseDlg() |
| 82 |
{ |
| 83 |
// Disconnect Events |
| 84 |
this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( CodeDesignerBaseDlg::OnInit ) ); |
| 85 |
m_buttonBrowse->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CodeDesignerBaseDlg::OnButtonBrowse ), NULL, this ); |
| 86 |
m_buttonOk->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CodeDesignerBaseDlg::OnButtonOK ), NULL, this ); |
| 87 |
m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CodeDesignerBaseDlg::OnButtonCancel ), NULL, this ); |
| 88 |
|
| 89 |
} |