KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_edit_options_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : RESETTABLE_PANEL( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bPanelSizer;
15 bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
16
17 wxBoxSizer* bMargins;
18 bMargins = new wxBoxSizer( wxHORIZONTAL );
19
20 wxBoxSizer* bMiddleLeftSizer;
21 bMiddleLeftSizer = new wxBoxSizer( wxVERTICAL );
22
23 m_staticText31 = new wxStaticText( this, wxID_ANY, _("Editing Options"), wxDefaultPosition, wxDefaultSize, 0 );
24 m_staticText31->Wrap( -1 );
25 bMiddleLeftSizer->Add( m_staticText31, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
26
27 m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
28 bMiddleLeftSizer->Add( m_staticline3, 0, wxEXPAND|wxBOTTOM, 5 );
29
30 wxBoxSizer* bSizerUniversal;
31 bSizerUniversal = new wxBoxSizer( wxVERTICAL );
32
33 m_cbConstrainHV45Mode = new wxCheckBox( this, wxID_ANY, _("Constrain actions to H, V, 45 degrees"), wxDefaultPosition, wxDefaultSize, 0 );
34 bSizerUniversal->Add( m_cbConstrainHV45Mode, 0, wxBOTTOM|wxLEFT, 5 );
35
36 wxBoxSizer* bSizerRotationStep;
37 bSizerRotationStep = new wxBoxSizer( wxHORIZONTAL );
38
39 m_rotationAngleLabel = new wxStaticText( this, wxID_ANY, _("Step for &rotate commands:"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_rotationAngleLabel->Wrap( -1 );
41 bSizerRotationStep->Add( m_rotationAngleLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
42
43 m_rotationAngleCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44 m_rotationAngleCtrl->SetToolTip( _("Set increment (in degrees) for context menu and hotkey rotation.") );
45 m_rotationAngleCtrl->SetMinSize( wxSize( 60,-1 ) );
46
47 bSizerRotationStep->Add( m_rotationAngleCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
48
49 m_rotationAngleUnits = new wxStaticText( this, wxID_ANY, _("deg"), wxDefaultPosition, wxDefaultSize, 0 );
50 m_rotationAngleUnits->Wrap( -1 );
51 bSizerRotationStep->Add( m_rotationAngleUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
52
53
54 bSizerUniversal->Add( bSizerRotationStep, 0, wxEXPAND, 5 );
55
56 m_arcEditModeLabel = new wxStaticText( this, wxID_ANY, _("Arc editing mode:"), wxDefaultPosition, wxDefaultSize, 0 );
57 m_arcEditModeLabel->Wrap( -1 );
58 bSizerUniversal->Add( m_arcEditModeLabel, 0, wxLEFT, 5 );
59
60
61 bSizerUniversal->Add( 0, 3, 0, wxEXPAND, 5 );
62
63 wxString m_arcEditModeChoices[] = { _("Keep center, adjust radius"), _("Keep endpoints or direction of starting point") };
64 int m_arcEditModeNChoices = sizeof( m_arcEditModeChoices ) / sizeof( wxString );
65 m_arcEditMode = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_arcEditModeNChoices, m_arcEditModeChoices, 0 );
66 m_arcEditMode->SetSelection( 0 );
67 bSizerUniversal->Add( m_arcEditMode, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
68
69
70 bMiddleLeftSizer->Add( bSizerUniversal, 0, wxEXPAND|wxALL, 5 );
71
72 m_sizerBoardEdit = new wxBoxSizer( wxVERTICAL );
73
74 m_trackMouseDragLabel = new wxStaticText( this, wxID_ANY, _("Track mouse-drag mode:"), wxDefaultPosition, wxDefaultSize, 0 );
75 m_trackMouseDragLabel->Wrap( -1 );
76 m_sizerBoardEdit->Add( m_trackMouseDragLabel, 0, wxRIGHT|wxLEFT, 5 );
77
78
79 m_sizerBoardEdit->Add( 0, 3, 0, wxEXPAND, 5 );
80
81 wxString m_trackMouseDragCtrlChoices[] = { _("Move"), _("Drag (45 degree mode)"), _("Drag (free angle)") };
82 int m_trackMouseDragCtrlNChoices = sizeof( m_trackMouseDragCtrlChoices ) / sizeof( wxString );
83 m_trackMouseDragCtrl = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_trackMouseDragCtrlNChoices, m_trackMouseDragCtrlChoices, 0 );
84 m_trackMouseDragCtrl->SetSelection( 0 );
85 m_sizerBoardEdit->Add( m_trackMouseDragCtrl, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
86
87 wxBoxSizer* bSizerFlip;
88 bSizerFlip = new wxBoxSizer( wxHORIZONTAL );
89
90 m_staticText33 = new wxStaticText( this, wxID_ANY, _("Flip board items:"), wxDefaultPosition, wxDefaultSize, 0 );
91 m_staticText33->Wrap( -1 );
92 bSizerFlip->Add( m_staticText33, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
93
94 m_rbFlipLeftRight = new wxRadioButton( this, wxID_ANY, _("Left/right"), wxDefaultPosition, wxDefaultSize, 0 );
95 bSizerFlip->Add( m_rbFlipLeftRight, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
96
97 m_rbFlipTopBottom = new wxRadioButton( this, wxID_ANY, _("Top/bottom"), wxDefaultPosition, wxDefaultSize, 0 );
98 bSizerFlip->Add( m_rbFlipTopBottom, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
99
100
101 m_sizerBoardEdit->Add( bSizerFlip, 1, wxEXPAND, 5 );
102
103 m_allowFreePads = new wxCheckBox( this, wxID_ANY, _("Allow free pads"), wxDefaultPosition, wxDefaultSize, 0 );
104 m_allowFreePads->SetToolTip( _("If checked, pads can be moved with respect to the rest of the footprint.") );
105
106 m_sizerBoardEdit->Add( m_allowFreePads, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
107
108 m_overrideLocks = new wxCheckBox( this, wxID_ANY, _("Do not prompt for lock overrides for this session"), wxDefaultPosition, wxDefaultSize, 0 );
109 m_overrideLocks->SetToolTip( _("If checked, no prompt will be shown when attempting to edit locked items. This setting is reset when KiCad restarts.") );
110
111 m_sizerBoardEdit->Add( m_overrideLocks, 0, wxBOTTOM|wxLEFT, 5 );
112
113
114 bMiddleLeftSizer->Add( m_sizerBoardEdit, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
115
116 m_staticText32 = new wxStaticText( this, wxID_ANY, _("Left Click Mouse Commands"), wxDefaultPosition, wxDefaultSize, 0 );
117 m_staticText32->Wrap( -1 );
118 bMiddleLeftSizer->Add( m_staticText32, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
119
120 m_staticline4 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
121 bMiddleLeftSizer->Add( m_staticline4, 0, wxEXPAND|wxBOTTOM, 5 );
122
123 m_mouseCmdsWinLin = new wxBoxSizer( wxVERTICAL );
124
125 m_stHint1 = new wxStaticText( this, wxID_ANY, _("Left click (and drag) actions depend on 2 modifier keys:\nShift and Ctrl"), wxDefaultPosition, wxDefaultSize, 0 );
126 m_stHint1->Wrap( -1 );
127 m_mouseCmdsWinLin->Add( m_stHint1, 0, wxALL, 5 );
128
129 wxFlexGridSizer* fgSizerCmdsWinLin;
130 fgSizerCmdsWinLin = new wxFlexGridSizer( 0, 2, 8, 0 );
131 fgSizerCmdsWinLin->SetFlexibleDirection( wxBOTH );
132 fgSizerCmdsWinLin->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
133
134 wxStaticText* staticText61;
135 staticText61 = new wxStaticText( this, wxID_ANY, _("Click"), wxDefaultPosition, wxDefaultSize, 0 );
136 staticText61->Wrap( -1 );
137 fgSizerCmdsWinLin->Add( staticText61, 0, wxRIGHT|wxLEFT, 5 );
138
139 wxStaticText* staticText71;
140 staticText71 = new wxStaticText( this, wxID_ANY, _("Select item(s)"), wxDefaultPosition, wxDefaultSize, 0 );
141 staticText71->Wrap( -1 );
142 fgSizerCmdsWinLin->Add( staticText71, 0, wxRIGHT|wxLEFT, 5 );
143
144 wxStaticText* staticText611;
145 staticText611 = new wxStaticText( this, wxID_ANY, _("Long Click"), wxDefaultPosition, wxDefaultSize, 0 );
146 staticText611->Wrap( -1 );
147 fgSizerCmdsWinLin->Add( staticText611, 0, wxRIGHT|wxLEFT, 5 );
148
149 wxStaticText* staticText711;
150 staticText711 = new wxStaticText( this, wxID_ANY, _("Clarify selection from menu"), wxDefaultPosition, wxDefaultSize, 0 );
151 staticText711->Wrap( -1 );
152 fgSizerCmdsWinLin->Add( staticText711, 0, wxRIGHT|wxLEFT, 5 );
153
154 wxStaticText* staticText81;
155 staticText81 = new wxStaticText( this, wxID_ANY, _("Shift"), wxDefaultPosition, wxDefaultSize, 0 );
156 staticText81->Wrap( -1 );
157 fgSizerCmdsWinLin->Add( staticText81, 0, wxRIGHT|wxLEFT, 5 );
158
159 wxStaticText* staticText91;
160 staticText91 = new wxStaticText( this, wxID_ANY, _("Add item(s) to selection"), wxDefaultPosition, wxDefaultSize, 0 );
161 staticText91->Wrap( -1 );
162 fgSizerCmdsWinLin->Add( staticText91, 0, wxRIGHT|wxLEFT, 5 );
163
164 wxStaticText* staticText121;
165 staticText121 = new wxStaticText( this, wxID_ANY, _("Ctrl+Shift"), wxDefaultPosition, wxDefaultSize, 0 );
166 staticText121->Wrap( -1 );
167 fgSizerCmdsWinLin->Add( staticText121, 0, wxRIGHT|wxLEFT, 5 );
168
169 wxStaticText* staticText131;
170 staticText131 = new wxStaticText( this, wxID_ANY, _("Remove item(s) from selection"), wxDefaultPosition, wxDefaultSize, 0 );
171 staticText131->Wrap( -1 );
172 fgSizerCmdsWinLin->Add( staticText131, 0, wxRIGHT|wxLEFT, 5 );
173
174 wxStaticText* staticText161;
175 staticText161 = new wxStaticText( this, wxID_ANY, _("Ctrl"), wxDefaultPosition, wxDefaultSize, 0 );
176 staticText161->Wrap( -1 );
177 fgSizerCmdsWinLin->Add( staticText161, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
178
179 wxString m_rbCtrlClickActionChoices[] = { _("Toggle selection"), _("Highlight net (for pads or tracks)") };
180 int m_rbCtrlClickActionNChoices = sizeof( m_rbCtrlClickActionChoices ) / sizeof( wxString );
181 m_rbCtrlClickAction = new wxRadioBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, m_rbCtrlClickActionNChoices, m_rbCtrlClickActionChoices, 1, wxRA_SPECIFY_COLS );
182 m_rbCtrlClickAction->SetSelection( 1 );
183 fgSizerCmdsWinLin->Add( m_rbCtrlClickAction, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
184
185
186 m_mouseCmdsWinLin->Add( fgSizerCmdsWinLin, 1, wxEXPAND|wxTOP, 5 );
187
188
189 bMiddleLeftSizer->Add( m_mouseCmdsWinLin, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
190
191 m_mouseCmdsOSX = new wxBoxSizer( wxVERTICAL );
192
193 m_stHint2 = new wxStaticText( this, wxID_ANY, _("Left click (and drag) actions depend on 3 modifier keys:\nOption, Shift and Cmd"), wxDefaultPosition, wxDefaultSize, 0 );
194 m_stHint2->Wrap( -1 );
195 m_mouseCmdsOSX->Add( m_stHint2, 0, wxALL, 5 );
196
197 wxFlexGridSizer* fgSizerCmdsOSX;
198 fgSizerCmdsOSX = new wxFlexGridSizer( 0, 2, 8, 0 );
199 fgSizerCmdsOSX->SetFlexibleDirection( wxBOTH );
200 fgSizerCmdsOSX->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
201
202 wxStaticText* staticText62;
203 staticText62 = new wxStaticText( this, wxID_ANY, _("Click"), wxDefaultPosition, wxDefaultSize, 0 );
204 staticText62->Wrap( -1 );
205 fgSizerCmdsOSX->Add( staticText62, 0, wxRIGHT|wxLEFT, 5 );
206
207 wxStaticText* staticText72;
208 staticText72 = new wxStaticText( this, wxID_ANY, _("Select item(s)"), wxDefaultPosition, wxDefaultSize, 0 );
209 staticText72->Wrap( -1 );
210 fgSizerCmdsOSX->Add( staticText72, 0, wxRIGHT|wxLEFT, 5 );
211
212 wxStaticText* staticText162;
213 staticText162 = new wxStaticText( this, wxID_ANY, _("Long Click"), wxDefaultPosition, wxDefaultSize, 0 );
214 staticText162->Wrap( -1 );
215 fgSizerCmdsOSX->Add( staticText162, 0, wxRIGHT|wxLEFT, 5 );
216
217 wxStaticText* staticText172;
218 staticText172 = new wxStaticText( this, wxID_ANY, _("Clarify selection from menu"), wxDefaultPosition, wxDefaultSize, 0 );
219 staticText172->Wrap( -1 );
220 fgSizerCmdsOSX->Add( staticText172, 0, wxRIGHT|wxLEFT, 5 );
221
222 wxStaticText* staticText82;
223 staticText82 = new wxStaticText( this, wxID_ANY, _("Shift"), wxDefaultPosition, wxDefaultSize, 0 );
224 staticText82->Wrap( -1 );
225 fgSizerCmdsOSX->Add( staticText82, 0, wxRIGHT|wxLEFT, 5 );
226
227 wxStaticText* staticText92;
228 staticText92 = new wxStaticText( this, wxID_ANY, _("Add item(s) to selection"), wxDefaultPosition, wxDefaultSize, 0 );
229 staticText92->Wrap( -1 );
230 fgSizerCmdsOSX->Add( staticText92, 0, wxRIGHT|wxLEFT, 5 );
231
232 wxStaticText* staticText122;
233 staticText122 = new wxStaticText( this, wxID_ANY, _("Shift+Cmd"), wxDefaultPosition, wxDefaultSize, 0 );
234 staticText122->Wrap( -1 );
235 fgSizerCmdsOSX->Add( staticText122, 0, wxRIGHT|wxLEFT, 5 );
236
237 wxStaticText* staticText132;
238 staticText132 = new wxStaticText( this, wxID_ANY, _("Remove item(s) from selection"), wxDefaultPosition, wxDefaultSize, 0 );
239 staticText132->Wrap( -1 );
240 fgSizerCmdsOSX->Add( staticText132, 0, wxRIGHT|wxLEFT, 5 );
241
242 wxStaticText* staticText142;
243 staticText142 = new wxStaticText( this, wxID_ANY, _("Cmd"), wxDefaultPosition, wxDefaultSize, 0 );
244 staticText142->Wrap( -1 );
245 fgSizerCmdsOSX->Add( staticText142, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
246
247 wxString m_rbCtrlClickActionMacChoices[] = { _("Toggle selection"), _("Highlight net (for pads or tracks)") };
248 int m_rbCtrlClickActionMacNChoices = sizeof( m_rbCtrlClickActionMacChoices ) / sizeof( wxString );
249 m_rbCtrlClickActionMac = new wxRadioBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, m_rbCtrlClickActionMacNChoices, m_rbCtrlClickActionMacChoices, 1, wxRA_SPECIFY_COLS );
250 m_rbCtrlClickActionMac->SetSelection( 0 );
251 fgSizerCmdsOSX->Add( m_rbCtrlClickActionMac, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
252
253 wxStaticText* staticText102;
254 staticText102 = new wxStaticText( this, wxID_ANY, _("Option"), wxDefaultPosition, wxDefaultSize, 0 );
255 staticText102->Wrap( -1 );
256 fgSizerCmdsOSX->Add( staticText102, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
257
258 wxStaticText* staticText112;
259 staticText112 = new wxStaticText( this, wxID_ANY, _("Clarify selection from menu"), wxDefaultPosition, wxDefaultSize, 0 );
260 staticText112->Wrap( -1 );
261 fgSizerCmdsOSX->Add( staticText112, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
262
263
264 m_mouseCmdsOSX->Add( fgSizerCmdsOSX, 1, wxEXPAND|wxTOP, 5 );
265
266
267 bMiddleLeftSizer->Add( m_mouseCmdsOSX, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
268
269
270 bMargins->Add( bMiddleLeftSizer, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
271
272
273 bMargins->Add( 10, 0, 1, wxEXPAND, 5 );
274
275 m_optionsBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
276 wxPanel* fpPage;
277 fpPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
278 wxBoxSizer* fpOptionsSizer;
279 fpOptionsSizer = new wxBoxSizer( wxVERTICAL );
280
281 m_staticText34 = new wxStaticText( fpPage, wxID_ANY, _("Magnetic Points"), wxDefaultPosition, wxDefaultSize, 0 );
282 m_staticText34->Wrap( -1 );
283 fpOptionsSizer->Add( m_staticText34, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
284
285 m_staticline5 = new wxStaticLine( fpPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
286 fpOptionsSizer->Add( m_staticline5, 0, wxEXPAND|wxBOTTOM, 5 );
287
288 wxBoxSizer* bSizer13;
289 bSizer13 = new wxBoxSizer( wxVERTICAL );
290
291 m_magneticPads = new wxCheckBox( fpPage, wxID_ANY, _("Magnetic pads"), wxDefaultPosition, wxDefaultSize, 0 );
292 m_magneticPads->SetValue(true);
293 bSizer13->Add( m_magneticPads, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
294
295 m_magneticGraphics = new wxCheckBox( fpPage, wxID_ANY, _("Magnetic graphics"), wxDefaultPosition, wxDefaultSize, 0 );
296 bSizer13->Add( m_magneticGraphics, 0, wxBOTTOM|wxLEFT, 5 );
297
298
299 fpOptionsSizer->Add( bSizer13, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
300
301
302 fpPage->SetSizer( fpOptionsSizer );
303 fpPage->Layout();
304 fpOptionsSizer->Fit( fpPage );
305 m_optionsBook->AddPage( fpPage, _("a page"), false );
306 wxPanel* pcbPage;
307 pcbPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
308 wxBoxSizer* pcbOptionsSizer;
309 pcbOptionsSizer = new wxBoxSizer( wxVERTICAL );
310
311 stMagneticPtsLabel1 = new wxStaticText( pcbPage, wxID_ANY, _("Magnetic Points"), wxDefaultPosition, wxDefaultSize, 0 );
312 stMagneticPtsLabel1->Wrap( -1 );
313 pcbOptionsSizer->Add( stMagneticPtsLabel1, 0, wxTOP|wxLEFT, 13 );
314
315 m_staticline6 = new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
316 pcbOptionsSizer->Add( m_staticline6, 0, wxEXPAND|wxBOTTOM, 5 );
317
318 wxFlexGridSizer* fgMagneticPoints;
319 fgMagneticPoints = new wxFlexGridSizer( 0, 2, 5, 0 );
320 fgMagneticPoints->SetFlexibleDirection( wxVERTICAL );
321 fgMagneticPoints->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
322
323 m_staticText2 = new wxStaticText( pcbPage, wxID_ANY, _("Snap to pads:"), wxDefaultPosition, wxDefaultSize, 0 );
324 m_staticText2->Wrap( -1 );
325 m_staticText2->SetToolTip( _("Capture cursor when the mouse enters a pad area") );
326
327 fgMagneticPoints->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
328
329 wxString m_magneticPadChoiceChoices[] = { _("Never"), _("When routing tracks"), _("Always") };
330 int m_magneticPadChoiceNChoices = sizeof( m_magneticPadChoiceChoices ) / sizeof( wxString );
331 m_magneticPadChoice = new wxChoice( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_magneticPadChoiceNChoices, m_magneticPadChoiceChoices, 0 );
332 m_magneticPadChoice->SetSelection( 1 );
333 m_magneticPadChoice->SetToolTip( _("Capture cursor when the mouse enters a pad area") );
334
335 fgMagneticPoints->Add( m_magneticPadChoice, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
336
337 m_staticText21 = new wxStaticText( pcbPage, wxID_ANY, _("Snap to tracks and vias:"), wxDefaultPosition, wxDefaultSize, 0 );
338 m_staticText21->Wrap( -1 );
339 m_staticText21->SetToolTip( _("Capture cursor when the mouse approaches a track") );
340
341 fgMagneticPoints->Add( m_staticText21, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
342
343 wxString m_magneticTrackChoiceChoices[] = { _("Never"), _("When routing tracks"), _("Always") };
344 int m_magneticTrackChoiceNChoices = sizeof( m_magneticTrackChoiceChoices ) / sizeof( wxString );
345 m_magneticTrackChoice = new wxChoice( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_magneticTrackChoiceNChoices, m_magneticTrackChoiceChoices, 0 );
346 m_magneticTrackChoice->SetSelection( 1 );
347 m_magneticTrackChoice->SetToolTip( _("Capture cursor when the mouse approaches a track") );
348
349 fgMagneticPoints->Add( m_magneticTrackChoice, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
350
351 m_staticText211 = new wxStaticText( pcbPage, wxID_ANY, _("Snap to graphics:"), wxDefaultPosition, wxDefaultSize, 0 );
352 m_staticText211->Wrap( -1 );
353 m_staticText211->SetToolTip( _("Capture cursor when the mouse approaches graphical control points") );
354
355 fgMagneticPoints->Add( m_staticText211, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
356
357 wxString m_magneticGraphicsChoiceChoices[] = { _("Always"), _("Never") };
358 int m_magneticGraphicsChoiceNChoices = sizeof( m_magneticGraphicsChoiceChoices ) / sizeof( wxString );
359 m_magneticGraphicsChoice = new wxChoice( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_magneticGraphicsChoiceNChoices, m_magneticGraphicsChoiceChoices, 0 );
360 m_magneticGraphicsChoice->SetSelection( 0 );
361 m_magneticGraphicsChoice->SetToolTip( _("Capture cursor when the mouse approaches graphical control points") );
362
363 fgMagneticPoints->Add( m_magneticGraphicsChoice, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
364
365
366 pcbOptionsSizer->Add( fgMagneticPoints, 0, wxEXPAND|wxALL, 5 );
367
368
369 pcbOptionsSizer->Add( 0, 5, 0, wxEXPAND, 5 );
370
371 stRatsnestLabel = new wxStaticText( pcbPage, wxID_ANY, _("Ratsnest"), wxDefaultPosition, wxDefaultSize, 0 );
372 stRatsnestLabel->Wrap( -1 );
373 pcbOptionsSizer->Add( stRatsnestLabel, 0, wxTOP|wxLEFT, 13 );
374
375 m_staticline7 = new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
376 pcbOptionsSizer->Add( m_staticline7, 0, wxEXPAND|wxBOTTOM, 5 );
377
378 wxBoxSizer* bRatsnest;
379 bRatsnest = new wxBoxSizer( wxVERTICAL );
380
381 m_showSelectedRatsnest = new wxCheckBox( pcbPage, wxID_ANY, _("Always show selected ratsnest"), wxDefaultPosition, wxDefaultSize, 0 );
382 bRatsnest->Add( m_showSelectedRatsnest, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
383
384 m_OptDisplayCurvedRatsnestLines = new wxCheckBox( pcbPage, wxID_ANY, _("Show ratsnest with curved lines"), wxDefaultPosition, wxDefaultSize, 0 );
385 bRatsnest->Add( m_OptDisplayCurvedRatsnestLines, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
386
387 wxBoxSizer* bRatsnestLineThickness;
388 bRatsnestLineThickness = new wxBoxSizer( wxHORIZONTAL );
389
390 m_ratsnestThicknessLabel = new wxStaticText( pcbPage, wxID_ANY, _("Ratsnest line thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
391 m_ratsnestThicknessLabel->Wrap( -1 );
392 bRatsnestLineThickness->Add( m_ratsnestThicknessLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
393
394 m_ratsnestThickness = new wxSpinCtrlDouble( pcbPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0.5, 10, 0.5, 0.5 );
395 m_ratsnestThickness->SetDigits( 1 );
396 bRatsnestLineThickness->Add( m_ratsnestThickness, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
397
398
399 bRatsnest->Add( bRatsnestLineThickness, 1, wxEXPAND, 5 );
400
401
402 pcbOptionsSizer->Add( bRatsnest, 0, wxEXPAND|wxALL, 5 );
403
404 stMiscellaneousLabel = new wxStaticText( pcbPage, wxID_ANY, _("Miscellaneous"), wxDefaultPosition, wxDefaultSize, 0 );
405 stMiscellaneousLabel->Wrap( -1 );
406 pcbOptionsSizer->Add( stMiscellaneousLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
407
408 m_staticline8 = new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
409 pcbOptionsSizer->Add( m_staticline8, 0, wxEXPAND|wxBOTTOM, 5 );
410
411 wxBoxSizer* bMiscellaneous;
412 bMiscellaneous = new wxBoxSizer( wxVERTICAL );
413
414 m_escClearsNetHighlight = new wxCheckBox( pcbPage, wxID_ANY, _("<ESC> clears net highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
415 m_escClearsNetHighlight->SetValue(true);
416 bMiscellaneous->Add( m_escClearsNetHighlight, 0, wxBOTTOM|wxLEFT, 5 );
417
418 m_showPageLimits = new wxCheckBox( pcbPage, wxID_ANY, _("Show page limits"), wxDefaultPosition, wxDefaultSize, 0 );
419 m_showPageLimits->SetValue(true);
420 m_showPageLimits->SetToolTip( _("Draw an outline to show the sheet size.") );
421
422 bMiscellaneous->Add( m_showPageLimits, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
423
424 m_cbCourtyardCollisions = new wxCheckBox( pcbPage, wxID_ANY, _("Show courtyard collisions when moving/dragging"), wxDefaultPosition, wxDefaultSize, 0 );
425 m_cbCourtyardCollisions->SetValue(true);
426 bMiscellaneous->Add( m_cbCourtyardCollisions, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
427
428 m_autoRefillZones = new wxCheckBox( pcbPage, wxID_ANY, _("Automatically refill zones"), wxDefaultPosition, wxDefaultSize, 0 );
429 m_autoRefillZones->SetValue(true);
430 m_autoRefillZones->SetToolTip( _("If checked, zones will be re-filled after each edit operation") );
431
432 bMiscellaneous->Add( m_autoRefillZones, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
433
434
435 pcbOptionsSizer->Add( bMiscellaneous, 1, wxEXPAND|wxALL, 5 );
436
437
438 pcbPage->SetSizer( pcbOptionsSizer );
439 pcbPage->Layout();
440 pcbOptionsSizer->Fit( pcbPage );
441 m_optionsBook->AddPage( pcbPage, _("a page"), false );
442
443 bMargins->Add( m_optionsBook, 0, wxEXPAND | wxALL, 5 );
444
445
446 bPanelSizer->Add( bMargins, 1, wxRIGHT, 5 );
447
448
449 this->SetSizer( bPanelSizer );
450 this->Layout();
451 bPanelSizer->Fit( this );
452}
453
455{
456}
const char * name
Definition: DXF_plotter.cpp:59
PANEL_EDIT_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxCheckBox * m_OptDisplayCurvedRatsnestLines
wxSpinCtrlDouble * m_ratsnestThickness
A wxPanel that is designed to be reset in a standard manner.
#define _(s)