KiCad PCB EDA Suite
PANEL_EDIT_OPTIONS_BASE Class Referenceabstract

Class PANEL_EDIT_OPTIONS_BASE. More...

#include <panel_edit_options_base.h>

Inheritance diagram for PANEL_EDIT_OPTIONS_BASE:
RESETTABLE_PANEL PANEL_EDIT_OPTIONS

Public Member Functions

 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)
 
 ~PANEL_EDIT_OPTIONS_BASE ()
 
virtual void ResetPanel ()=0
 Reset the contents of this panel. More...
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel. More...
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. More...
 

Protected Attributes

wxCheckBox * m_flipLeftRight
 
wxCheckBox * m_allowFreePads
 
wxStaticLine * m_staticline3
 
wxCheckBox * m_cbConstrainHV45Mode
 
wxStaticText * m_rotationAngleLabel
 
wxTextCtrl * m_rotationAngleCtrl
 
wxStaticText * m_rotationAngleUnits
 
wxStaticBoxSizer * m_mouseCmdsWinLin
 
wxStaticText * m_staticText181
 
wxRadioBox * m_rbCtrlClickAction
 
wxStaticBoxSizer * m_mouseCmdsOSX
 
wxStaticText * m_staticText1811
 
wxRadioBox * m_rbCtrlClickActionMac
 
wxSimplebook * m_optionsBook
 
wxCheckBox * m_magneticPads
 
wxCheckBox * m_magneticGraphics
 
wxStaticText * m_staticText2
 
wxChoice * m_magneticPadChoice
 
wxStaticText * m_staticText21
 
wxChoice * m_magneticTrackChoice
 
wxStaticText * m_staticText211
 
wxChoice * m_magneticGraphicsChoice
 
wxCheckBox * m_showSelectedRatsnest
 
wxCheckBox * m_OptDisplayCurvedRatsnestLines
 
wxStaticText * m_staticText5
 
wxRadioButton * m_rbTrackDragMove
 
wxRadioButton * m_rbTrackDrag45
 
wxRadioButton * m_rbTrackDragFree
 
wxCheckBox * m_escClearsNetHighlight
 
wxCheckBox * m_showPageLimits
 
wxCheckBox * m_cbCourtyardCollisions
 
wxCheckBox * m_autoRefillZones
 

Detailed Description

Class PANEL_EDIT_OPTIONS_BASE.

Definition at line 36 of file panel_edit_options_base.h.

Constructor & Destructor Documentation

◆ PANEL_EDIT_OPTIONS_BASE()

PANEL_EDIT_OPTIONS_BASE::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 
)

Definition at line 12 of file panel_edit_options_base.cpp.

12 : 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* bSizerBoardEdit;
27 bSizerBoardEdit = new wxBoxSizer( wxVERTICAL );
28
29 m_flipLeftRight = new wxCheckBox( bOptionsSizer->GetStaticBox(), wxID_ANY, _("Flip board items L/R (default is T/B)"), wxDefaultPosition, wxDefaultSize, 0 );
30 bSizerBoardEdit->Add( m_flipLeftRight, 0, wxBOTTOM|wxLEFT, 5 );
31
32 m_allowFreePads = new wxCheckBox( bOptionsSizer->GetStaticBox(), wxID_ANY, _("Allow free pads"), wxDefaultPosition, wxDefaultSize, 0 );
33 m_allowFreePads->SetToolTip( _("If checked, pads can be moved with respect to the rest of the footprint.") );
34
35 bSizerBoardEdit->Add( m_allowFreePads, 0, wxBOTTOM|wxLEFT, 5 );
36
37 m_staticline3 = new wxStaticLine( bOptionsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
38 bSizerBoardEdit->Add( m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 4 );
39
40
41 bOptionsSizer->Add( bSizerBoardEdit, 0, wxEXPAND, 5 );
42
43 wxBoxSizer* bSizerUniversal;
44 bSizerUniversal = new wxBoxSizer( wxVERTICAL );
45
46 m_cbConstrainHV45Mode = new wxCheckBox( bOptionsSizer->GetStaticBox(), wxID_ANY, _("Constrain actions to H, V, 45 degrees"), wxDefaultPosition, wxDefaultSize, 0 );
47 bSizerUniversal->Add( m_cbConstrainHV45Mode, 0, wxTOP|wxBOTTOM, 5 );
48
49 wxBoxSizer* bSizerRotationStep;
50 bSizerRotationStep = new wxBoxSizer( wxHORIZONTAL );
51
52 m_rotationAngleLabel = new wxStaticText( bOptionsSizer->GetStaticBox(), wxID_ANY, _("Step for &rotate commands:"), wxDefaultPosition, wxDefaultSize, 0 );
53 m_rotationAngleLabel->Wrap( -1 );
54 bSizerRotationStep->Add( m_rotationAngleLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
55
56 m_rotationAngleCtrl = new wxTextCtrl( bOptionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
57 m_rotationAngleCtrl->SetToolTip( _("Set increment (in degrees) for context menu and hotkey rotation.") );
58 m_rotationAngleCtrl->SetMinSize( wxSize( 60,-1 ) );
59
60 bSizerRotationStep->Add( m_rotationAngleCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
61
62 m_rotationAngleUnits = new wxStaticText( bOptionsSizer->GetStaticBox(), wxID_ANY, _("deg"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_rotationAngleUnits->Wrap( -1 );
64 bSizerRotationStep->Add( m_rotationAngleUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
65
66
67 bSizerUniversal->Add( bSizerRotationStep, 0, wxEXPAND, 5 );
68
69
70 bOptionsSizer->Add( bSizerUniversal, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
71
72
73 bMiddleLeftSizer->Add( bOptionsSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
74
75 m_mouseCmdsWinLin = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Left Click Mouse Commands") ), wxVERTICAL );
76
77 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 );
78 m_staticText181->Wrap( -1 );
79 m_mouseCmdsWinLin->Add( m_staticText181, 0, wxALL, 5 );
80
81 wxStaticLine* staticline11;
82 staticline11 = new wxStaticLine( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
83 m_mouseCmdsWinLin->Add( staticline11, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
84
85 wxFlexGridSizer* fgSizerCmdsWinLin;
86 fgSizerCmdsWinLin = new wxFlexGridSizer( 0, 2, 0, 0 );
87 fgSizerCmdsWinLin->SetFlexibleDirection( wxBOTH );
88 fgSizerCmdsWinLin->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
89
90 wxStaticText* staticText61;
91 staticText61 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("No modifier"), wxDefaultPosition, wxDefaultSize, 0 );
92 staticText61->Wrap( -1 );
93 fgSizerCmdsWinLin->Add( staticText61, 0, wxALL, 5 );
94
95 wxStaticText* staticText71;
96 staticText71 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Select item(s)."), wxDefaultPosition, wxDefaultSize, 0 );
97 staticText71->Wrap( -1 );
98 fgSizerCmdsWinLin->Add( staticText71, 0, wxALL, 5 );
99
100 wxStaticText* staticText611;
101 staticText611 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Long Click"), wxDefaultPosition, wxDefaultSize, 0 );
102 staticText611->Wrap( -1 );
103 fgSizerCmdsWinLin->Add( staticText611, 0, wxALL, 5 );
104
105 wxStaticText* staticText711;
106 staticText711 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Clarify selection from menu."), wxDefaultPosition, wxDefaultSize, 0 );
107 staticText711->Wrap( -1 );
108 fgSizerCmdsWinLin->Add( staticText711, 0, wxALL, 5 );
109
110 wxStaticText* staticText81;
111 staticText81 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Shift"), wxDefaultPosition, wxDefaultSize, 0 );
112 staticText81->Wrap( -1 );
113 fgSizerCmdsWinLin->Add( staticText81, 0, wxALL, 5 );
114
115 wxStaticText* staticText91;
116 staticText91 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Add item(s) to selection."), wxDefaultPosition, wxDefaultSize, 0 );
117 staticText91->Wrap( -1 );
118 fgSizerCmdsWinLin->Add( staticText91, 0, wxALL, 5 );
119
120 wxStaticText* staticText121;
121 staticText121 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Ctrl+Shift"), wxDefaultPosition, wxDefaultSize, 0 );
122 staticText121->Wrap( -1 );
123 fgSizerCmdsWinLin->Add( staticText121, 0, wxALL, 5 );
124
125 wxStaticText* staticText131;
126 staticText131 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Remove item(s) from selection."), wxDefaultPosition, wxDefaultSize, 0 );
127 staticText131->Wrap( -1 );
128 fgSizerCmdsWinLin->Add( staticText131, 0, wxALL, 5 );
129
130 wxStaticText* staticText161;
131 staticText161 = new wxStaticText( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Ctrl"), wxDefaultPosition, wxDefaultSize, 0 );
132 staticText161->Wrap( -1 );
133 fgSizerCmdsWinLin->Add( staticText161, 0, wxALL, 5 );
134
135 wxString m_rbCtrlClickActionChoices[] = { _("Toggle selection."), _("Highlight net (for pads or tracks).") };
136 int m_rbCtrlClickActionNChoices = sizeof( m_rbCtrlClickActionChoices ) / sizeof( wxString );
137 m_rbCtrlClickAction = new wxRadioBox( m_mouseCmdsWinLin->GetStaticBox(), wxID_ANY, _("Action"), wxDefaultPosition, wxDefaultSize, m_rbCtrlClickActionNChoices, m_rbCtrlClickActionChoices, 1, wxRA_SPECIFY_COLS );
138 m_rbCtrlClickAction->SetSelection( 0 );
139 fgSizerCmdsWinLin->Add( m_rbCtrlClickAction, 0, wxALL, 5 );
140
141
142 m_mouseCmdsWinLin->Add( fgSizerCmdsWinLin, 1, wxEXPAND, 5 );
143
144
145 bMiddleLeftSizer->Add( m_mouseCmdsWinLin, 1, wxEXPAND|wxALL, 5 );
146
147 m_mouseCmdsOSX = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Left Click Mouse Commands") ), wxVERTICAL );
148
149 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 );
150 m_staticText1811->Wrap( -1 );
151 m_mouseCmdsOSX->Add( m_staticText1811, 0, wxALL, 5 );
152
153 wxStaticLine* staticline111;
154 staticline111 = new wxStaticLine( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
155 m_mouseCmdsOSX->Add( staticline111, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
156
157 wxFlexGridSizer* fgSizerCmdsOSX;
158 fgSizerCmdsOSX = new wxFlexGridSizer( 0, 2, 0, 0 );
159 fgSizerCmdsOSX->SetFlexibleDirection( wxBOTH );
160 fgSizerCmdsOSX->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
161
162 wxStaticText* staticText62;
163 staticText62 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("No modifier"), wxDefaultPosition, wxDefaultSize, 0 );
164 staticText62->Wrap( -1 );
165 fgSizerCmdsOSX->Add( staticText62, 0, wxALL, 5 );
166
167 wxStaticText* staticText72;
168 staticText72 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Select item(s)."), wxDefaultPosition, wxDefaultSize, 0 );
169 staticText72->Wrap( -1 );
170 fgSizerCmdsOSX->Add( staticText72, 0, wxALL, 5 );
171
172 wxStaticText* staticText162;
173 staticText162 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Long Click"), wxDefaultPosition, wxDefaultSize, 0 );
174 staticText162->Wrap( -1 );
175 fgSizerCmdsOSX->Add( staticText162, 0, wxALL, 5 );
176
177 wxStaticText* staticText172;
178 staticText172 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Clarify selection from menu."), wxDefaultPosition, wxDefaultSize, 0 );
179 staticText172->Wrap( -1 );
180 fgSizerCmdsOSX->Add( staticText172, 0, wxALL, 5 );
181
182 wxStaticText* staticText82;
183 staticText82 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Shift"), wxDefaultPosition, wxDefaultSize, 0 );
184 staticText82->Wrap( -1 );
185 fgSizerCmdsOSX->Add( staticText82, 0, wxALL, 5 );
186
187 wxStaticText* staticText92;
188 staticText92 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Add item(s) to selection."), wxDefaultPosition, wxDefaultSize, 0 );
189 staticText92->Wrap( -1 );
190 fgSizerCmdsOSX->Add( staticText92, 0, wxALL, 5 );
191
192 wxStaticText* staticText122;
193 staticText122 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Shift+Cmd"), wxDefaultPosition, wxDefaultSize, 0 );
194 staticText122->Wrap( -1 );
195 fgSizerCmdsOSX->Add( staticText122, 0, wxALL, 5 );
196
197 wxStaticText* staticText132;
198 staticText132 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Remove item(s) from selection."), wxDefaultPosition, wxDefaultSize, 0 );
199 staticText132->Wrap( -1 );
200 fgSizerCmdsOSX->Add( staticText132, 0, wxALL, 5 );
201
202 wxStaticText* staticText142;
203 staticText142 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Cmd"), wxDefaultPosition, wxDefaultSize, 0 );
204 staticText142->Wrap( -1 );
205 fgSizerCmdsOSX->Add( staticText142, 0, wxALL, 5 );
206
207 wxString m_rbCtrlClickActionMacChoices[] = { _("Toggle selection."), _("Highlight net (for pads or tracks).") };
208 int m_rbCtrlClickActionMacNChoices = sizeof( m_rbCtrlClickActionMacChoices ) / sizeof( wxString );
209 m_rbCtrlClickActionMac = new wxRadioBox( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Action"), wxDefaultPosition, wxDefaultSize, m_rbCtrlClickActionMacNChoices, m_rbCtrlClickActionMacChoices, 1, wxRA_SPECIFY_COLS );
210 m_rbCtrlClickActionMac->SetSelection( 0 );
211 fgSizerCmdsOSX->Add( m_rbCtrlClickActionMac, 0, wxALL, 5 );
212
213 wxStaticText* staticText102;
214 staticText102 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Option"), wxDefaultPosition, wxDefaultSize, 0 );
215 staticText102->Wrap( -1 );
216 fgSizerCmdsOSX->Add( staticText102, 0, wxALL, 5 );
217
218 wxStaticText* staticText112;
219 staticText112 = new wxStaticText( m_mouseCmdsOSX->GetStaticBox(), wxID_ANY, _("Clarify selection from menu."), wxDefaultPosition, wxDefaultSize, 0 );
220 staticText112->Wrap( -1 );
221 fgSizerCmdsOSX->Add( staticText112, 0, wxALL, 5 );
222
223
224 m_mouseCmdsOSX->Add( fgSizerCmdsOSX, 1, wxEXPAND, 5 );
225
226
227 bMiddleLeftSizer->Add( m_mouseCmdsOSX, 1, wxEXPAND|wxALL, 5 );
228
229
230 bMargins->Add( bMiddleLeftSizer, 1, wxEXPAND|wxRIGHT, 5 );
231
232 m_optionsBook = new wxSimplebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
233 wxPanel* fpPage;
234 fpPage = new wxPanel( m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
235 wxBoxSizer* bSizer10;
236 bSizer10 = new wxBoxSizer( wxVERTICAL );
237
238 wxStaticBoxSizer* sbFPMagnets;
239 sbFPMagnets = new wxStaticBoxSizer( new wxStaticBox( fpPage, wxID_ANY, _("Magnetic Points") ), wxVERTICAL );
240
241 m_magneticPads = new wxCheckBox( sbFPMagnets->GetStaticBox(), wxID_ANY, _("Magnetic pads"), wxDefaultPosition, wxDefaultSize, 0 );
242 m_magneticPads->SetValue(true);
243 sbFPMagnets->Add( m_magneticPads, 0, wxBOTTOM|wxLEFT, 5 );
244
245 m_magneticGraphics = new wxCheckBox( sbFPMagnets->GetStaticBox(), wxID_ANY, _("Magnetic graphics"), wxDefaultPosition, wxDefaultSize, 0 );
246 sbFPMagnets->Add( m_magneticGraphics, 0, wxBOTTOM|wxLEFT, 5 );
247
248
249 bSizer10->Add( sbFPMagnets, 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* sbSizerMisc;
363 sbSizerMisc = new wxStaticBoxSizer( new wxStaticBox( pcbPage, wxID_ANY, _("Miscellaneous") ), wxVERTICAL );
364
365 m_escClearsNetHighlight = new wxCheckBox( sbSizerMisc->GetStaticBox(), wxID_ANY, _("<ESC> clears net highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
366 m_escClearsNetHighlight->SetValue(true);
367 sbSizerMisc->Add( m_escClearsNetHighlight, 0, wxBOTTOM|wxLEFT, 5 );
368
369 m_showPageLimits = new wxCheckBox( sbSizerMisc->GetStaticBox(), wxID_ANY, _("Show page limits"), wxDefaultPosition, wxDefaultSize, 0 );
370 m_showPageLimits->SetValue(true);
371 m_showPageLimits->SetToolTip( _("Draw an outline to show the sheet size.") );
372
373 sbSizerMisc->Add( m_showPageLimits, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
374
375 m_cbCourtyardCollisions = new wxCheckBox( sbSizerMisc->GetStaticBox(), wxID_ANY, _("Show courtyard collisions when moving/dragging"), wxDefaultPosition, wxDefaultSize, 0 );
376 m_cbCourtyardCollisions->SetValue(true);
377 sbSizerMisc->Add( m_cbCourtyardCollisions, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
378
379 m_autoRefillZones = new wxCheckBox( sbSizerMisc->GetStaticBox(), wxID_ANY, _("Auto-refill zones"), wxDefaultPosition, wxDefaultSize, 0 );
380 m_autoRefillZones->SetValue(true);
381 m_autoRefillZones->SetToolTip( _("If checked, zones will be re-filled after each edit operation") );
382
383 sbSizerMisc->Add( m_autoRefillZones, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
384
385
386 pcbOptionsSizer->Add( sbSizerMisc, 1, wxEXPAND|wxTOP, 5 );
387
388
389 pcbPage->SetSizer( pcbOptionsSizer );
390 pcbPage->Layout();
391 pcbOptionsSizer->Fit( pcbPage );
392 m_optionsBook->AddPage( pcbPage, _("a page"), false );
393
394 bMargins->Add( m_optionsBook, 1, wxEXPAND | wxALL, 5 );
395
396
397 bPanelSizer->Add( bMargins, 1, wxRIGHT, 5 );
398
399
400 this->SetSizer( bPanelSizer );
401 this->Layout();
402 bPanelSizer->Fit( this );
403}
const char * name
Definition: DXF_plotter.cpp:56
wxStaticBoxSizer * m_mouseCmdsWinLin
wxCheckBox * m_OptDisplayCurvedRatsnestLines
wxStaticBoxSizer * m_mouseCmdsOSX
RESETTABLE_PANEL(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
#define _(s)

References _, m_allowFreePads, m_autoRefillZones, m_cbConstrainHV45Mode, m_cbCourtyardCollisions, m_escClearsNetHighlight, m_flipLeftRight, m_magneticGraphics, m_magneticGraphicsChoice, m_magneticPadChoice, m_magneticPads, m_magneticTrackChoice, m_mouseCmdsOSX, m_mouseCmdsWinLin, m_OptDisplayCurvedRatsnestLines, m_optionsBook, m_rbCtrlClickAction, m_rbCtrlClickActionMac, m_rbTrackDrag45, m_rbTrackDragFree, m_rbTrackDragMove, m_rotationAngleCtrl, m_rotationAngleLabel, m_rotationAngleUnits, m_showPageLimits, m_showSelectedRatsnest, m_staticline3, m_staticText181, m_staticText1811, m_staticText2, m_staticText21, m_staticText211, and m_staticText5.

◆ ~PANEL_EDIT_OPTIONS_BASE()

PANEL_EDIT_OPTIONS_BASE::~PANEL_EDIT_OPTIONS_BASE ( )

Definition at line 405 of file panel_edit_options_base.cpp.

406{
407}

Member Function Documentation

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
inlineoverrideinherited

Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.

Definition at line 72 of file resettable_panel.h.

73 {
74 if( aPt == wxPoint( -INT_MAX, INT_MAX ) )
75 return GetResetTooltip();
76 else
77 return wxPanel::GetHelpTextAtPoint( aPt, aOrigin );
78 }
virtual wxString GetResetTooltip() const
Get the tooltip the reset button should display when showing this panel.

References RESETTABLE_PANEL::GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

65 {
66 return _( "Reset all settings on this page to their default" );
67 }

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ ResetPanel()

Member Data Documentation

◆ m_allowFreePads

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_allowFreePads
protected

◆ m_autoRefillZones

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_autoRefillZones
protected

◆ m_cbConstrainHV45Mode

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_cbConstrainHV45Mode
protected

◆ m_cbCourtyardCollisions

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_cbCourtyardCollisions
protected

◆ m_escClearsNetHighlight

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_escClearsNetHighlight
protected

◆ m_flipLeftRight

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_flipLeftRight
protected

◆ m_magneticGraphics

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_magneticGraphics
protected

◆ m_magneticGraphicsChoice

wxChoice* PANEL_EDIT_OPTIONS_BASE::m_magneticGraphicsChoice
protected

◆ m_magneticPadChoice

wxChoice* PANEL_EDIT_OPTIONS_BASE::m_magneticPadChoice
protected

◆ m_magneticPads

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_magneticPads
protected

◆ m_magneticTrackChoice

wxChoice* PANEL_EDIT_OPTIONS_BASE::m_magneticTrackChoice
protected

◆ m_mouseCmdsOSX

wxStaticBoxSizer* PANEL_EDIT_OPTIONS_BASE::m_mouseCmdsOSX
protected

◆ m_mouseCmdsWinLin

wxStaticBoxSizer* PANEL_EDIT_OPTIONS_BASE::m_mouseCmdsWinLin
protected

◆ m_OptDisplayCurvedRatsnestLines

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_OptDisplayCurvedRatsnestLines
protected

◆ m_optionsBook

wxSimplebook* PANEL_EDIT_OPTIONS_BASE::m_optionsBook
protected

◆ m_rbCtrlClickAction

wxRadioBox* PANEL_EDIT_OPTIONS_BASE::m_rbCtrlClickAction
protected

◆ m_rbCtrlClickActionMac

wxRadioBox* PANEL_EDIT_OPTIONS_BASE::m_rbCtrlClickActionMac
protected

◆ m_rbTrackDrag45

wxRadioButton* PANEL_EDIT_OPTIONS_BASE::m_rbTrackDrag45
protected

◆ m_rbTrackDragFree

wxRadioButton* PANEL_EDIT_OPTIONS_BASE::m_rbTrackDragFree
protected

◆ m_rbTrackDragMove

wxRadioButton* PANEL_EDIT_OPTIONS_BASE::m_rbTrackDragMove
protected

◆ m_rotationAngleCtrl

wxTextCtrl* PANEL_EDIT_OPTIONS_BASE::m_rotationAngleCtrl
protected

Definition at line 46 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_rotationAngleLabel

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_rotationAngleLabel
protected

Definition at line 45 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_rotationAngleUnits

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_rotationAngleUnits
protected

Definition at line 47 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_showPageLimits

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_showPageLimits
protected

◆ m_showSelectedRatsnest

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_showSelectedRatsnest
protected

◆ m_staticline3

wxStaticLine* PANEL_EDIT_OPTIONS_BASE::m_staticline3
protected

Definition at line 43 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText181

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText181
protected

Definition at line 49 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText1811

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText1811
protected

Definition at line 52 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText2

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText2
protected

Definition at line 57 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText21

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText21
protected

Definition at line 59 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText211

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText211
protected

Definition at line 61 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText5

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText5
protected

Definition at line 65 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().


The documentation for this class was generated from the following files: