KiCad PCB EDA Suite
panel_edit_options_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( 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* bSizeFPEdit;
27  bSizeFPEdit = new wxBoxSizer( wxVERTICAL );
28 
29  m_magneticPads = new wxCheckBox( bOptionsSizer->GetStaticBox(), wxID_ANY, _("Magnetic pads"), wxDefaultPosition, wxDefaultSize, 0 );
30  bSizeFPEdit->Add( m_magneticPads, 0, wxBOTTOM, 3 );
31 
32  m_magneticGraphics = new wxCheckBox( bOptionsSizer->GetStaticBox(), wxID_ANY, _("Magnetic graphics"), wxDefaultPosition, wxDefaultSize, 0 );
33  bSizeFPEdit->Add( m_magneticGraphics, 0, wxBOTTOM, 10 );
34 
35 
36  bOptionsSizer->Add( bSizeFPEdit, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
37 
38  wxBoxSizer* bSizerBoardEdit;
39  bSizerBoardEdit = new wxBoxSizer( wxVERTICAL );
40 
41  m_flipLeftRight = new wxCheckBox( bOptionsSizer->GetStaticBox(), wxID_ANY, _("Flip board items L/R (default is T/B)"), wxDefaultPosition, wxDefaultSize, 0 );
42  bSizerBoardEdit->Add( m_flipLeftRight, 0, wxBOTTOM, 10 );
43 
44 
45  bOptionsSizer->Add( bSizerBoardEdit, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
46 
47  wxBoxSizer* bSizerUniversal;
48  bSizerUniversal = new wxBoxSizer( wxVERTICAL );
49 
50  wxBoxSizer* bSizerRotationStep;
51  bSizerRotationStep = new wxBoxSizer( wxHORIZONTAL );
52 
53  m_staticTextRotationAngle = new wxStaticText( bOptionsSizer->GetStaticBox(), wxID_ANY, _("Step for &rotate commands:"), wxDefaultPosition, wxDefaultSize, 0 );
54  m_staticTextRotationAngle->Wrap( -1 );
55  bSizerRotationStep->Add( m_staticTextRotationAngle, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
56 
57  m_rotationAngle = new wxTextCtrl( bOptionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
58  m_rotationAngle->SetToolTip( _("Set increment (in degrees) for context menu and hotkey rotation.") );
59  m_rotationAngle->SetMinSize( wxSize( 60,-1 ) );
60 
61  bSizerRotationStep->Add( m_rotationAngle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
62 
63  m_staticText32 = new wxStaticText( bOptionsSizer->GetStaticBox(), wxID_ANY, _("deg"), wxDefaultPosition, wxDefaultSize, 0 );
64  m_staticText32->Wrap( -1 );
65  bSizerRotationStep->Add( m_staticText32, 0, wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
66 
67 
68  bSizerUniversal->Add( bSizerRotationStep, 0, wxEXPAND, 5 );
69 
70  m_allowFreePads = new wxCheckBox( bOptionsSizer->GetStaticBox(), wxID_ANY, _("Allow free pads"), wxDefaultPosition, wxDefaultSize, 0 );
71  m_allowFreePads->SetToolTip( _("If checked, pads can be moved with respect to the rest of the footprint.") );
72 
73  bSizerUniversal->Add( m_allowFreePads, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
74 
75 
76  bOptionsSizer->Add( bSizerUniversal, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
77 
78 
79  bMiddleLeftSizer->Add( bOptionsSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
80 
81  m_mouseCmdsWinLin = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Left Click Mouse Commands") ), wxVERTICAL );
82 
83  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 );
84  m_staticText181->Wrap( -1 );
85  m_mouseCmdsWinLin->Add( m_staticText181, 0, wxALL, 5 );
86 
87  wxStaticLine* staticline11;
88  staticline11 = new wxStaticLine( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
89  m_mouseCmdsWinLin->Add( staticline11, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
90 
91  wxFlexGridSizer* fgSizerCmdsWinLin;
92  fgSizerCmdsWinLin = new wxFlexGridSizer( 0, 2, 0, 0 );
93  fgSizerCmdsWinLin->SetFlexibleDirection( wxBOTH );
94  fgSizerCmdsWinLin->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
95 
96  wxStaticText* staticText61;
97  staticText61 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("No modifier"), wxDefaultPosition, wxDefaultSize, 0 );
98  staticText61->Wrap( -1 );
99  fgSizerCmdsWinLin->Add( staticText61, 0, wxALL, 5 );
100 
101  wxStaticText* staticText71;
102  staticText71 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Select item(s)."), wxDefaultPosition, wxDefaultSize, 0 );
103  staticText71->Wrap( -1 );
104  fgSizerCmdsWinLin->Add( staticText71, 0, wxALL, 5 );
105 
106  wxStaticText* staticText611;
107  staticText611 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Long Click"), wxDefaultPosition, wxDefaultSize, 0 );
108  staticText611->Wrap( -1 );
109  fgSizerCmdsWinLin->Add( staticText611, 0, wxALL, 5 );
110 
111  wxStaticText* staticText711;
112  staticText711 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Clarify selection from menu."), wxDefaultPosition, wxDefaultSize, 0 );
113  staticText711->Wrap( -1 );
114  fgSizerCmdsWinLin->Add( staticText711, 0, wxALL, 5 );
115 
116  wxStaticText* staticText81;
117  staticText81 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Shift"), wxDefaultPosition, wxDefaultSize, 0 );
118  staticText81->Wrap( -1 );
119  fgSizerCmdsWinLin->Add( staticText81, 0, wxALL, 5 );
120 
121  wxStaticText* staticText91;
122  staticText91 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Add item(s) to selection."), wxDefaultPosition, wxDefaultSize, 0 );
123  staticText91->Wrap( -1 );
124  fgSizerCmdsWinLin->Add( staticText91, 0, wxALL, 5 );
125 
126  wxStaticText* staticText121;
127  staticText121 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Ctrl+Shift"), wxDefaultPosition, wxDefaultSize, 0 );
128  staticText121->Wrap( -1 );
129  fgSizerCmdsWinLin->Add( staticText121, 0, wxALL, 5 );
130 
131  wxStaticText* staticText131;
132  staticText131 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Remove item(s) from selection."), wxDefaultPosition, wxDefaultSize, 0 );
133  staticText131->Wrap( -1 );
134  fgSizerCmdsWinLin->Add( staticText131, 0, wxALL, 5 );
135 
136  wxStaticText* staticText161;
137  staticText161 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Ctrl"), wxDefaultPosition, wxDefaultSize, 0 );
138  staticText161->Wrap( -1 );
139  fgSizerCmdsWinLin->Add( staticText161, 0, wxALL, 5 );
140 
141  wxStaticText* staticText171;
142  staticText171 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Highlight net (for pads or tracks)."), wxDefaultPosition, wxDefaultSize, 0 );
143  staticText171->Wrap( -1 );
144  fgSizerCmdsWinLin->Add( staticText171, 0, wxALL, 5 );
145 
146 
147  m_mouseCmdsWinLin->Add( fgSizerCmdsWinLin, 1, wxEXPAND, 5 );
148 
149 
150  bMiddleLeftSizer->Add( m_mouseCmdsWinLin, 1, wxEXPAND|wxALL, 5 );
151 
152  m_mouseCmdsOSX = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Left Click Mouse Commands") ), wxVERTICAL );
153 
154  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 );
155  m_staticText1811->Wrap( -1 );
156  m_mouseCmdsOSX->Add( m_staticText1811, 0, wxALL, 5 );
157 
158  wxStaticLine* staticline111;
159  staticline111 = new wxStaticLine( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
160  m_mouseCmdsOSX->Add( staticline111, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
161 
162  wxFlexGridSizer* fgSizerCmdsOSX;
163  fgSizerCmdsOSX = new wxFlexGridSizer( 0, 2, 0, 0 );
164  fgSizerCmdsOSX->SetFlexibleDirection( wxBOTH );
165  fgSizerCmdsOSX->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
166 
167  wxStaticText* staticText62;
168  staticText62 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("No modifier"), wxDefaultPosition, wxDefaultSize, 0 );
169  staticText62->Wrap( -1 );
170  fgSizerCmdsOSX->Add( staticText62, 0, wxALL, 5 );
171 
172  wxStaticText* staticText72;
173  staticText72 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Select item(s)."), wxDefaultPosition, wxDefaultSize, 0 );
174  staticText72->Wrap( -1 );
175  fgSizerCmdsOSX->Add( staticText72, 0, wxALL, 5 );
176 
177  wxStaticText* staticText162;
178  staticText162 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Long Click"), wxDefaultPosition, wxDefaultSize, 0 );
179  staticText162->Wrap( -1 );
180  fgSizerCmdsOSX->Add( staticText162, 0, wxALL, 5 );
181 
182  wxStaticText* staticText172;
183  staticText172 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Clarify selection from menu."), wxDefaultPosition, wxDefaultSize, 0 );
184  staticText172->Wrap( -1 );
185  fgSizerCmdsOSX->Add( staticText172, 0, wxALL, 5 );
186 
187  wxStaticText* staticText82;
188  staticText82 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Shift"), wxDefaultPosition, wxDefaultSize, 0 );
189  staticText82->Wrap( -1 );
190  fgSizerCmdsOSX->Add( staticText82, 0, wxALL, 5 );
191 
192  wxStaticText* staticText92;
193  staticText92 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Add item(s) to selection."), wxDefaultPosition, wxDefaultSize, 0 );
194  staticText92->Wrap( -1 );
195  fgSizerCmdsOSX->Add( staticText92, 0, wxALL, 5 );
196 
197  wxStaticText* staticText122;
198  staticText122 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Shift+Cmd"), wxDefaultPosition, wxDefaultSize, 0 );
199  staticText122->Wrap( -1 );
200  fgSizerCmdsOSX->Add( staticText122, 0, wxALL, 5 );
201 
202  wxStaticText* staticText132;
203  staticText132 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Remove item(s) from selection."), wxDefaultPosition, wxDefaultSize, 0 );
204  staticText132->Wrap( -1 );
205  fgSizerCmdsOSX->Add( staticText132, 0, wxALL, 5 );
206 
207  wxStaticText* staticText142;
208  staticText142 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Cmd"), wxDefaultPosition, wxDefaultSize, 0 );
209  staticText142->Wrap( -1 );
210  fgSizerCmdsOSX->Add( staticText142, 0, wxALL, 5 );
211 
212  wxStaticText* staticText152;
213  staticText152 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Highlight net (for pads or tracks)."), wxDefaultPosition, wxDefaultSize, 0 );
214  staticText152->Wrap( -1 );
215  fgSizerCmdsOSX->Add( staticText152, 0, wxALL, 5 );
216 
217  wxStaticText* staticText102;
218  staticText102 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Option"), wxDefaultPosition, wxDefaultSize, 0 );
219  staticText102->Wrap( -1 );
220  fgSizerCmdsOSX->Add( staticText102, 0, wxALL, 5 );
221 
222  wxStaticText* staticText112;
223  staticText112 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Clarify selection from menu."), wxDefaultPosition, wxDefaultSize, 0 );
224  staticText112->Wrap( -1 );
225  fgSizerCmdsOSX->Add( staticText112, 0, wxALL, 5 );
226 
227 
228  m_mouseCmdsOSX->Add( fgSizerCmdsOSX, 1, wxEXPAND, 5 );
229 
230 
231  bMiddleLeftSizer->Add( m_mouseCmdsOSX, 1, wxEXPAND|wxALL, 5 );
232 
233 
234  bMargins->Add( bMiddleLeftSizer, 1, wxEXPAND|wxRIGHT, 5 );
235 
236  m_optionsBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
237  wxPanel* fpPage;
238  fpPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
239  wxBoxSizer* bSizer10;
240  bSizer10 = new wxBoxSizer( wxVERTICAL );
241 
242  wxStaticBoxSizer* sbSizerFpGraphics;
243  sbSizerFpGraphics = new wxStaticBoxSizer( new wxStaticBox( fpPage, wxID_ANY, _("Graphics Editing") ), wxVERTICAL );
244 
245  m_cbFpGraphic45Mode = new wxCheckBox( sbSizerFpGraphics->GetStaticBox(), wxID_ANY, _("Constrain to H, V, 45 degrees"), wxDefaultPosition, wxDefaultSize, 0 );
246  sbSizerFpGraphics->Add( m_cbFpGraphic45Mode, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
247 
248 
249  bSizer10->Add( sbSizerFpGraphics, 1, wxEXPAND, 5 );
250 
251 
252  fpPage->SetSizer( bSizer10 );
253  fpPage->Layout();
254  bSizer10->Fit( fpPage );
255  m_optionsBook->AddPage( fpPage, _("a page"), false );
256  wxPanel* pcbPage;
257  pcbPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
258  wxBoxSizer* pcbOptionsSizer;
259  pcbOptionsSizer = new wxBoxSizer( wxVERTICAL );
260 
261  wxStaticBoxSizer* sbMagnets;
262  sbMagnets = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Magnetic Points") ), wxVERTICAL );
263 
264  wxFlexGridSizer* fgSizer2;
265  fgSizer2 = new wxFlexGridSizer( 0, 2, 3, 0 );
266  fgSizer2->SetFlexibleDirection( wxBOTH );
267  fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
268 
269  m_staticText2 = new wxStaticText( sbMagnets->GetStaticBox(), wxID_ANY, _("Snap to pads:"), wxDefaultPosition, wxDefaultSize, 0 );
270  m_staticText2->Wrap( -1 );
271  m_staticText2->SetToolTip( _("Capture cursor when the mouse enters a pad area") );
272 
273  fgSizer2->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
274 
275  wxString m_magneticPadChoiceChoices[] = { _("Never"), _("When creating tracks"), _("Always") };
276  int m_magneticPadChoiceNChoices = sizeof( m_magneticPadChoiceChoices ) / sizeof( wxString );
277  m_magneticPadChoice = new wxChoice( sbMagnets->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_magneticPadChoiceNChoices, m_magneticPadChoiceChoices, 0 );
278  m_magneticPadChoice->SetSelection( 1 );
279  m_magneticPadChoice->SetToolTip( _("Capture cursor when the mouse enters a pad area") );
280 
281  fgSizer2->Add( m_magneticPadChoice, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
282 
283  m_staticText21 = new wxStaticText( sbMagnets->GetStaticBox(), wxID_ANY, _("Snap to tracks:"), wxDefaultPosition, wxDefaultSize, 0 );
284  m_staticText21->Wrap( -1 );
285  m_staticText21->SetToolTip( _("Capture cursor when the mouse approaches a track") );
286 
287  fgSizer2->Add( m_staticText21, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
288 
289  wxString m_magneticTrackChoiceChoices[] = { _("Never"), _("When creating tracks"), _("Always") };
290  int m_magneticTrackChoiceNChoices = sizeof( m_magneticTrackChoiceChoices ) / sizeof( wxString );
291  m_magneticTrackChoice = new wxChoice( sbMagnets->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_magneticTrackChoiceNChoices, m_magneticTrackChoiceChoices, 0 );
292  m_magneticTrackChoice->SetSelection( 1 );
293  m_magneticTrackChoice->SetToolTip( _("Capture cursor when the mouse approaches a track") );
294 
295  fgSizer2->Add( m_magneticTrackChoice, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
296 
297  m_staticText211 = new wxStaticText( sbMagnets->GetStaticBox(), wxID_ANY, _("Snap to graphics:"), wxDefaultPosition, wxDefaultSize, 0 );
298  m_staticText211->Wrap( -1 );
299  m_staticText211->SetToolTip( _("Capture cursor when the mouse approaches graphical control points") );
300 
301  fgSizer2->Add( m_staticText211, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
302 
303  wxString m_magneticGraphicsChoiceChoices[] = { _("Always"), _("Never") };
304  int m_magneticGraphicsChoiceNChoices = sizeof( m_magneticGraphicsChoiceChoices ) / sizeof( wxString );
305  m_magneticGraphicsChoice = new wxChoice( sbMagnets->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_magneticGraphicsChoiceNChoices, m_magneticGraphicsChoiceChoices, 0 );
306  m_magneticGraphicsChoice->SetSelection( 0 );
307  m_magneticGraphicsChoice->SetToolTip( _("Capture cursor when the mouse approaches graphical control points") );
308 
309  fgSizer2->Add( m_magneticGraphicsChoice, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxLEFT|wxRIGHT, 5 );
310 
311 
312  sbMagnets->Add( fgSizer2, 1, wxEXPAND|wxBOTTOM, 5 );
313 
314 
315  pcbOptionsSizer->Add( sbMagnets, 0, wxEXPAND, 5 );
316 
317  wxStaticBoxSizer* sbSizer3;
318  sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Ratsnest") ), wxVERTICAL );
319 
320  m_showSelectedRatsnest = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Always show selected ratsnest"), wxDefaultPosition, wxDefaultSize, 0 );
321  sbSizer3->Add( m_showSelectedRatsnest, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
322 
323  m_OptDisplayCurvedRatsnestLines = new wxCheckBox( sbSizer3->GetStaticBox(), wxID_ANY, _("Show ratsnest with curved lines"), wxDefaultPosition, wxDefaultSize, 0 );
324  sbSizer3->Add( m_OptDisplayCurvedRatsnestLines, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
325 
326 
327  pcbOptionsSizer->Add( sbSizer3, 0, wxEXPAND|wxTOP, 5 );
328 
329  wxStaticBoxSizer* sbSizer41;
330  sbSizer41 = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Track Editing") ), wxVERTICAL );
331 
332  m_staticText5 = new wxStaticText( sbSizer41->GetStaticBox(), wxID_ANY, _("Mouse drag track behavior:"), wxDefaultPosition, wxDefaultSize, 0 );
333  m_staticText5->Wrap( -1 );
334  m_staticText5->SetToolTip( _("Choose the action to perform when dragging a track segment with the mouse") );
335 
336  sbSizer41->Add( m_staticText5, 0, wxBOTTOM|wxRIGHT|wxLEFT, 3 );
337 
338  wxBoxSizer* bSizer8;
339  bSizer8 = new wxBoxSizer( wxVERTICAL );
340 
341  m_rbTrackDragMove = new wxRadioButton( sbSizer41->GetStaticBox(), wxID_ANY, _("Move"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
342  m_rbTrackDragMove->SetToolTip( _("Moves the track segment without moving connected tracks") );
343 
344  bSizer8->Add( m_rbTrackDragMove, 0, wxBOTTOM, 3 );
345 
346  m_rbTrackDrag45 = new wxRadioButton( sbSizer41->GetStaticBox(), wxID_ANY, _("Drag (45 degree mode)"), wxDefaultPosition, wxDefaultSize, 0 );
347  m_rbTrackDrag45->SetToolTip( _("Drags the track segment while keeping connected tracks at 45 degrees.") );
348 
349  bSizer8->Add( m_rbTrackDrag45, 0, wxBOTTOM, 3 );
350 
351  m_rbTrackDragFree = new wxRadioButton( sbSizer41->GetStaticBox(), wxID_ANY, _("Drag (free angle)"), wxDefaultPosition, wxDefaultSize, 0 );
352  m_rbTrackDragFree->SetToolTip( _("Drags the nearest joint in the track without restricting the track angle.") );
353 
354  bSizer8->Add( m_rbTrackDragFree, 0, 0, 3 );
355 
356 
357  sbSizer41->Add( bSizer8, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
358 
359 
360  pcbOptionsSizer->Add( sbSizer41, 0, wxEXPAND|wxTOP, 5 );
361 
362  wxStaticBoxSizer* sbSizerPcbGraphics;
363  sbSizerPcbGraphics = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Graphics Editing") ), wxVERTICAL );
364 
365  m_cbPcbGraphic45Mode = new wxCheckBox( sbSizerPcbGraphics->GetStaticBox(), wxID_ANY, _("Limit actions to 45 degrees from start"), wxDefaultPosition, wxDefaultSize, 0 );
366  sbSizerPcbGraphics->Add( m_cbPcbGraphic45Mode, 0, wxALL, 5 );
367 
368 
369  pcbOptionsSizer->Add( sbSizerPcbGraphics, 0, wxEXPAND|wxTOP, 5 );
370 
371  wxStaticBoxSizer* sbSizer4;
372  sbSizer4 = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Miscellaneous") ), wxVERTICAL );
373 
374  m_showPageLimits = new wxCheckBox( sbSizer4->GetStaticBox(), wxID_ANY, _("Show page limits"), wxDefaultPosition, wxDefaultSize, 0 );
375  m_showPageLimits->SetValue(true);
376  m_showPageLimits->SetToolTip( _("Draw an outline to show the sheet size.") );
377 
378  sbSizer4->Add( m_showPageLimits, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
379 
380  m_autoRefillZones = new wxCheckBox( sbSizer4->GetStaticBox(), wxID_ANY, _("Refill zones after Zone Properties dialog"), wxDefaultPosition, wxDefaultSize, 0 );
381  m_autoRefillZones->SetValue(true);
382  m_autoRefillZones->SetToolTip( _("If checked, zones will be re-filled after editing the properties of the zone using the Zone Properties dialog") );
383 
384  sbSizer4->Add( m_autoRefillZones, 0, wxALL, 5 );
385 
386 
387  pcbOptionsSizer->Add( sbSizer4, 1, wxEXPAND|wxTOP, 5 );
388 
389 
390  pcbPage->SetSizer( pcbOptionsSizer );
391  pcbPage->Layout();
392  pcbOptionsSizer->Fit( pcbPage );
393  m_optionsBook->AddPage( pcbPage, _("a page"), false );
394 
395  bMargins->Add( m_optionsBook, 1, wxEXPAND | wxALL, 5 );
396 
397 
398  bPanelSizer->Add( bMargins, 1, wxRIGHT, 5 );
399 
400 
401  this->SetSizer( bPanelSizer );
402  this->Layout();
403  bPanelSizer->Fit( this );
404 }
405 
407 {
408 }
wxCheckBox * m_OptDisplayCurvedRatsnestLines
#define _(s)
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)
const char * name
Definition: DXF_plotter.cpp:56
wxStaticText * m_staticTextRotationAngle
wxStaticBoxSizer * m_mouseCmdsWinLin
wxStaticBoxSizer * m_mouseCmdsOSX