KiCad PCB EDA Suite
dialog_target_properties_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Dec 21 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 TARGET_PROPERTIES_DIALOG_EDITOR_BASE::TARGET_PROPERTIES_DIALOG_EDITOR_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bSizerUpper;
20  bSizerUpper = new wxBoxSizer( wxVERTICAL );
21 
22  wxFlexGridSizer* fgSizer;
23  fgSizer = new wxFlexGridSizer( 0, 3, 0, 0 );
24  fgSizer->AddGrowableCol( 1 );
25  fgSizer->SetFlexibleDirection( wxBOTH );
26  fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27 
28  m_staticTextSize = new wxStaticText( this, wxID_ANY, _("Size:"), wxDefaultPosition, wxDefaultSize, 0 );
29  m_staticTextSize->Wrap( -1 );
30  fgSizer->Add( m_staticTextSize, 0, wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
31 
32  m_TargetSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
33  fgSizer->Add( m_TargetSizeCtrl, 0, wxALL|wxEXPAND, 5 );
34 
35  m_staticTextSizeUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
36  m_staticTextSizeUnits->Wrap( -1 );
37  fgSizer->Add( m_staticTextSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
38 
39  m_staticTextThickness = new wxStaticText( this, wxID_ANY, _("Thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
40  m_staticTextThickness->Wrap( -1 );
41  fgSizer->Add( m_staticTextThickness, 0, wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
42 
43  m_TargetThicknessCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44  fgSizer->Add( m_TargetThicknessCtrl, 0, wxEXPAND|wxALL, 5 );
45 
46  m_staticTextThicknessUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
47  m_staticTextThicknessUnits->Wrap( -1 );
48  fgSizer->Add( m_staticTextThicknessUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
49 
50  m_staticTextShape = new wxStaticText( this, wxID_ANY, _("Shape:"), wxDefaultPosition, wxDefaultSize, 0 );
51  m_staticTextShape->Wrap( -1 );
52  fgSizer->Add( m_staticTextShape, 0, wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
53 
54  wxString m_TargetShapeChoices[] = { _("+"), _("X") };
55  int m_TargetShapeNChoices = sizeof( m_TargetShapeChoices ) / sizeof( wxString );
56  m_TargetShape = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_TargetShapeNChoices, m_TargetShapeChoices, 0 );
57  m_TargetShape->SetSelection( 0 );
58  fgSizer->Add( m_TargetShape, 0, wxALL|wxEXPAND, 5 );
59 
60 
61  fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
62 
63 
64  bSizerUpper->Add( fgSizer, 1, wxEXPAND, 5 );
65 
66 
67  bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
68 
69  m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
70  bSizerMain->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
71 
72  m_sdbSizerButts = new wxStdDialogButtonSizer();
73  m_sdbSizerButtsOK = new wxButton( this, wxID_OK );
74  m_sdbSizerButts->AddButton( m_sdbSizerButtsOK );
75  m_sdbSizerButtsCancel = new wxButton( this, wxID_CANCEL );
77  m_sdbSizerButts->Realize();
78 
79  bSizerMain->Add( m_sdbSizerButts, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
80 
81 
82  this->SetSizer( bSizerMain );
83  this->Layout();
84  bSizerMain->Fit( this );
85 
86  this->Centre( wxBOTH );
87 
88  // Connect Events
89  m_sdbSizerButtsCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TARGET_PROPERTIES_DIALOG_EDITOR_BASE::OnCancelClick ), NULL, this );
90  m_sdbSizerButtsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TARGET_PROPERTIES_DIALOG_EDITOR_BASE::OnOkClick ), NULL, this );
91 }
92 
94 {
95  // Disconnect Events
96  m_sdbSizerButtsCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TARGET_PROPERTIES_DIALOG_EDITOR_BASE::OnCancelClick ), NULL, this );
97  m_sdbSizerButtsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TARGET_PROPERTIES_DIALOG_EDITOR_BASE::OnOkClick ), NULL, this );
98 
99 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
virtual void OnOkClick(wxCommandEvent &event)
virtual void OnCancelClick(wxCommandEvent &event)
TARGET_PROPERTIES_DIALOG_EDITOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Target Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)