KiCad PCB EDA Suite
dialog_libedit_options_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Sep 8 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_LIBEDIT_OPTIONS_BASE::DIALOG_LIBEDIT_OPTIONS_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* mainSizer;
17  mainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bOptionsSizer;
20  bOptionsSizer = new wxBoxSizer( wxVERTICAL );
21 
22  wxBoxSizer* p1mainSizer;
23  p1mainSizer = new wxBoxSizer( wxHORIZONTAL );
24 
25  wxBoxSizer* bSizer3;
26  bSizer3 = new wxBoxSizer( wxVERTICAL );
27 
28  wxFlexGridSizer* fgSizer;
29  fgSizer = new wxFlexGridSizer( 0, 3, 0, 0 );
30  fgSizer->AddGrowableCol( 0 );
31  fgSizer->AddGrowableCol( 1 );
32  fgSizer->AddGrowableCol( 2 );
33  fgSizer->SetFlexibleDirection( wxBOTH );
34  fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
35 
36  m_staticText3 = new wxStaticText( this, wxID_ANY, _("&Grid size:"), wxDefaultPosition, wxDefaultSize, 0 );
37  m_staticText3->Wrap( -1 );
38  fgSizer->Add( m_staticText3, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
39 
40  wxArrayString m_choiceGridSizeChoices;
41  m_choiceGridSize = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceGridSizeChoices, 0 );
42  m_choiceGridSize->SetSelection( 0 );
43  fgSizer->Add( m_choiceGridSize, 0, wxEXPAND|wxALL, 3 );
44 
45  m_staticGridUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
46  m_staticGridUnits->Wrap( -1 );
47  fgSizer->Add( m_staticGridUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
48 
49  m_staticText5 = new wxStaticText( this, wxID_ANY, _("&Default line width:"), wxDefaultPosition, wxDefaultSize, 0 );
50  m_staticText5->Wrap( -1 );
51  fgSizer->Add( m_staticText5, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
52 
53  m_spinLineWidth = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 1, 100, 6 );
54  fgSizer->Add( m_spinLineWidth, 0, wxALL|wxEXPAND, 3 );
55 
56  m_staticLineWidthUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
57  m_staticLineWidthUnits->Wrap( -1 );
58  fgSizer->Add( m_staticLineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
59 
60  m_staticText52 = new wxStaticText( this, wxID_ANY, _("D&efault pin length:"), wxDefaultPosition, wxDefaultSize, 0 );
61  m_staticText52->Wrap( -1 );
62  fgSizer->Add( m_staticText52, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
63 
64  m_spinPinLength = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 50, 1000, 200 );
65  fgSizer->Add( m_spinPinLength, 0, wxALL|wxEXPAND, 3 );
66 
67  m_staticPinLengthUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
68  m_staticPinLengthUnits->Wrap( -1 );
69  fgSizer->Add( m_staticPinLengthUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 3 );
70 
71  m_staticText7 = new wxStaticText( this, wxID_ANY, _("De&fault pin number size:"), wxDefaultPosition, wxDefaultSize, 0 );
72  m_staticText7->Wrap( -1 );
73  fgSizer->Add( m_staticText7, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
74 
75  m_spinPinNumSize = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 0, 1000, 0 );
76  fgSizer->Add( m_spinPinNumSize, 0, wxALL|wxEXPAND, 3 );
77 
78  m_staticTextSizeUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
79  m_staticTextSizeUnits->Wrap( -1 );
80  fgSizer->Add( m_staticTextSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
81 
82  m_staticText9 = new wxStaticText( this, wxID_ANY, _("Def&ault pin name size:"), wxDefaultPosition, wxDefaultSize, 0 );
83  m_staticText9->Wrap( -1 );
84  fgSizer->Add( m_staticText9, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
85 
86  m_spinPinNameSize = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -5000, 5000, 0 );
87  fgSizer->Add( m_spinPinNameSize, 0, wxALL|wxEXPAND, 3 );
88 
89  m_staticRepeatXUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
90  m_staticRepeatXUnits->Wrap( -1 );
91  fgSizer->Add( m_staticRepeatXUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 );
92 
93  m_staticText11 = new wxStaticText( this, wxID_ANY, _("&Horizontal pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
94  m_staticText11->Wrap( -1 );
95  fgSizer->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
96 
97  m_spinRepeatHorizontal = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -1000, 1000, 0 );
98  fgSizer->Add( m_spinRepeatHorizontal, 0, wxALL|wxEXPAND, 5 );
99 
100  m_staticText12 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
101  m_staticText12->Wrap( -1 );
102  fgSizer->Add( m_staticText12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
103 
104  m_staticText13 = new wxStaticText( this, wxID_ANY, _("&Vertical pitch of repeated items:"), wxDefaultPosition, wxDefaultSize, 0 );
105  m_staticText13->Wrap( -1 );
106  fgSizer->Add( m_staticText13, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
107 
108  m_spinRepeatVertical = new wxSpinCtrl( this, wxID_ANY, wxT("100"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -1000, 1000, 0 );
109  fgSizer->Add( m_spinRepeatVertical, 0, wxALL|wxEXPAND, 5 );
110 
111  m_staticText14 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
112  m_staticText14->Wrap( -1 );
113  fgSizer->Add( m_staticText14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
114 
115  m_staticText15 = new wxStaticText( this, wxID_ANY, _("&Pitch of repeated pins:"), wxDefaultPosition, wxDefaultSize, 0 );
116  m_staticText15->Wrap( -1 );
117  fgSizer->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
118 
119  wxString m_choicePinDisplacementChoices[] = { _("100"), _("50") };
120  int m_choicePinDisplacementNChoices = sizeof( m_choicePinDisplacementChoices ) / sizeof( wxString );
121  m_choicePinDisplacement = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePinDisplacementNChoices, m_choicePinDisplacementChoices, 0 );
122  m_choicePinDisplacement->SetSelection( 0 );
123  fgSizer->Add( m_choicePinDisplacement, 0, wxALL|wxEXPAND, 5 );
124 
125  m_staticText16 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
126  m_staticText16->Wrap( -1 );
127  fgSizer->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
128 
129  m_staticText17 = new wxStaticText( this, wxID_ANY, _("&Increment of repeated labels:"), wxDefaultPosition, wxDefaultSize, 0 );
130  m_staticText17->Wrap( -1 );
131  fgSizer->Add( m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
132 
133  m_spinRepeatLabel = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -10, 10, 1 );
134  fgSizer->Add( m_spinRepeatLabel, 0, wxALL|wxEXPAND, 5 );
135 
136 
137  fgSizer->Add( 0, 0, 0, 0, 5 );
138 
139 
140  bSizer3->Add( fgSizer, 0, wxEXPAND, 0 );
141 
142  wxBoxSizer* bSizer2;
143  bSizer2 = new wxBoxSizer( wxVERTICAL );
144 
145  m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
146  bSizer2->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
147 
148  m_checkShowGrid = new wxCheckBox( this, wxID_ANY, _("&Show grid"), wxDefaultPosition, wxDefaultSize, 0 );
149  bSizer2->Add( m_checkShowGrid, 0, wxEXPAND|wxALL, 3 );
150 
151  m_checkShowPinElectricalType = new wxCheckBox( this, wxID_ANY, _("Show pin &electrical type"), wxDefaultPosition, wxDefaultSize, 0 );
152  bSizer2->Add( m_checkShowPinElectricalType, 0, wxALL, 3 );
153 
154 
155  bSizer3->Add( bSizer2, 0, wxEXPAND, 0 );
156 
157 
158  p1mainSizer->Add( bSizer3, 1, wxALL|wxEXPAND, 6 );
159 
160 
161  bOptionsSizer->Add( p1mainSizer, 1, wxEXPAND, 5 );
162 
163  m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
164  bOptionsSizer->Add( m_staticline2, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
165 
166  m_sdbSizer = new wxStdDialogButtonSizer();
167  m_sdbSizerOK = new wxButton( this, wxID_OK );
168  m_sdbSizer->AddButton( m_sdbSizerOK );
169  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
170  m_sdbSizer->AddButton( m_sdbSizerCancel );
171  m_sdbSizer->Realize();
172 
173  bOptionsSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
174 
175 
176  mainSizer->Add( bOptionsSizer, 1, wxEXPAND, 12 );
177 
178 
179  this->SetSizer( mainSizer );
180  this->Layout();
181 
182  this->Centre( wxBOTH );
183 }
184 
186 {
187 }
DIALOG_LIBEDIT_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Library Editor Options"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(499, 393), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60