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