KiCad PCB EDA Suite
dialog_target_properties_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Dec 30 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_TARGET_PROPERTIES_BASE::DIALOG_TARGET_PROPERTIES_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_sizeLabel = new wxStaticText( this, wxID_ANY, _("Size:"), wxDefaultPosition, wxDefaultSize, 0 );
29  m_sizeLabel->Wrap( -1 );
30  fgSizer->Add( m_sizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
31 
32  m_sizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
33  fgSizer->Add( m_sizeCtrl, 0, wxALL|wxEXPAND, 5 );
34 
35  m_sizeUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
36  m_sizeUnits->Wrap( -1 );
37  fgSizer->Add( m_sizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
38 
39  m_thicknessLabel = new wxStaticText( this, wxID_ANY, _("Thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
40  m_thicknessLabel->Wrap( -1 );
41  fgSizer->Add( m_thicknessLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
42 
43  m_thicknessCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44  fgSizer->Add( m_thicknessCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
45 
46  m_thicknessUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
47  m_thicknessUnits->Wrap( -1 );
48  fgSizer->Add( m_thicknessUnits, 0, wxALIGN_CENTER_VERTICAL|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, wxALL|wxEXPAND, 5 );
68 
69  m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
70  bSizerMain->Add( m_staticline, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
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, wxEXPAND|wxALL, 5 );
80 
81 
82  this->SetSizer( bSizerMain );
83  this->Layout();
84  bSizerMain->Fit( this );
85 
86  this->Centre( wxBOTH );
87 }
88 
90 {
91 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:82
DIALOG_TARGET_PROPERTIES_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)