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 )
14 wxBoxSizer* bPanelSizer;
15 bPanelSizer =
new wxBoxSizer( wxHORIZONTAL );
18 bMargins =
new wxBoxSizer( wxHORIZONTAL );
20 wxBoxSizer* bMiddleLeftSizer;
21 bMiddleLeftSizer =
new wxBoxSizer( wxVERTICAL );
23 m_staticText31 =
new wxStaticText(
this, wxID_ANY,
_(
"Editing Options"), wxDefaultPosition, wxDefaultSize, 0 );
25 bMiddleLeftSizer->Add(
m_staticText31, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
27 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
28 bMiddleLeftSizer->Add(
m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
30 wxBoxSizer* bSizerUniversal;
31 bSizerUniversal =
new wxBoxSizer( wxVERTICAL );
33 m_cbConstrainHV45Mode =
new wxCheckBox(
this, wxID_ANY,
_(
"Constrain actions to H, V, 45 degrees"), wxDefaultPosition, wxDefaultSize, 0 );
36 wxBoxSizer* bSizerRotationStep;
37 bSizerRotationStep =
new wxBoxSizer( wxHORIZONTAL );
39 m_rotationAngleLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Step for &rotate commands:"), wxDefaultPosition, wxDefaultSize, 0 );
41 bSizerRotationStep->Add(
m_rotationAngleLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
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.") );
47 bSizerRotationStep->Add(
m_rotationAngleCtrl, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
49 m_rotationAngleUnits =
new wxStaticText(
this, wxID_ANY,
_(
"deg"), wxDefaultPosition, wxDefaultSize, 0 );
54 bSizerUniversal->Add( bSizerRotationStep, 0, wxEXPAND, 5 );
57 bSizerUniversal->Add( 0, 3, 0, 0, 5 );
59 m_arcEditModeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Arc editing mode:"), wxDefaultPosition, wxDefaultSize, 0 );
64 bSizerUniversal->Add( 0, 3, 0, wxEXPAND, 5 );
66 wxString m_arcEditModeChoices[] = {
_(
"Keep center, adjust radius"),
_(
"Keep endpoints or direction of starting point"),
_(
"Keep center and radius, adjust endpoints") };
67 int m_arcEditModeNChoices =
sizeof( m_arcEditModeChoices ) /
sizeof( wxString );
68 m_arcEditMode =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_arcEditModeNChoices, m_arcEditModeChoices, 0 );
70 bSizerUniversal->Add(
m_arcEditMode, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
72 m_cbAreaAnchorPick =
new wxCheckBox(
this, wxID_ANY,
_(
"Show and edit anchor points on multi-selections"), wxDefaultPosition, wxDefaultSize, 0 );
73 m_cbAreaAnchorPick->SetToolTip(
_(
"If checked, selecting multiple items shows their anchor points. Anchor points can be picked by click, box, or lasso, and dragging a picked point moves all picked points as one block.") );
78 bMiddleLeftSizer->Add( bSizerUniversal, 0, wxEXPAND|wxALL, 5 );
85 m_trackMouseDragLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Track mouse-drag mode:"), wxDefaultPosition, wxDefaultSize, 0 );
92 wxString m_trackMouseDragCtrlChoices[] = {
_(
"Move"),
_(
"Drag (45 degree mode)"),
_(
"Drag (free angle)") };
93 int m_trackMouseDragCtrlNChoices =
sizeof( m_trackMouseDragCtrlChoices ) /
sizeof( wxString );
94 m_trackMouseDragCtrl =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_trackMouseDragCtrlNChoices, m_trackMouseDragCtrlChoices, 0 );
98 wxBoxSizer* bSizerFlip;
99 bSizerFlip =
new wxBoxSizer( wxHORIZONTAL );
101 m_staticText33 =
new wxStaticText(
this, wxID_ANY,
_(
"Flip board items:"), wxDefaultPosition, wxDefaultSize, 0 );
103 bSizerFlip->Add(
m_staticText33, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
105 m_rbFlipLeftRight =
new wxRadioButton(
this, wxID_ANY,
_(
"Left/right"), wxDefaultPosition, wxDefaultSize, 0 );
106 bSizerFlip->Add(
m_rbFlipLeftRight, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
108 m_rbFlipTopBottom =
new wxRadioButton(
this, wxID_ANY,
_(
"Top/bottom"), wxDefaultPosition, wxDefaultSize, 0 );
109 bSizerFlip->Add(
m_rbFlipTopBottom, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
114 m_allowFreePads =
new wxCheckBox(
this, wxID_ANY,
_(
"Allow free pads"), wxDefaultPosition, wxDefaultSize, 0 );
115 m_allowFreePads->SetToolTip(
_(
"If checked, pads can be moved with respect to the rest of the footprint.") );
120 bMiddleLeftSizer->Add(
m_sizerBoardEdit, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
122 m_staticText32 =
new wxStaticText(
this, wxID_ANY,
_(
"Left Click Mouse Commands"), wxDefaultPosition, wxDefaultSize, 0 );
124 bMiddleLeftSizer->Add(
m_staticText32, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
126 m_staticline4 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
127 bMiddleLeftSizer->Add(
m_staticline4, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
131 m_stHint1 =
new wxStaticText(
this, wxID_ANY,
_(
"Left click (and drag) actions depend on 2 modifier keys:\nShift and Ctrl"), wxDefaultPosition, wxDefaultSize, 0 );
135 wxFlexGridSizer* fgSizerCmdsWinLin;
136 fgSizerCmdsWinLin =
new wxFlexGridSizer( 0, 2, 8, 0 );
137 fgSizerCmdsWinLin->SetFlexibleDirection( wxBOTH );
138 fgSizerCmdsWinLin->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
140 wxStaticText* staticText61;
141 staticText61 =
new wxStaticText(
this, wxID_ANY,
_(
"Click:"), wxDefaultPosition, wxDefaultSize, 0 );
142 staticText61->Wrap( -1 );
143 fgSizerCmdsWinLin->Add( staticText61, 0, wxRIGHT|wxLEFT, 5 );
145 wxStaticText* staticText71;
146 staticText71 =
new wxStaticText(
this, wxID_ANY,
_(
"Select item(s)"), wxDefaultPosition, wxDefaultSize, 0 );
147 staticText71->Wrap( -1 );
148 fgSizerCmdsWinLin->Add( staticText71, 0, wxRIGHT|wxLEFT, 5 );
150 wxStaticText* staticText611;
151 staticText611 =
new wxStaticText(
this, wxID_ANY,
_(
"Long Click:"), wxDefaultPosition, wxDefaultSize, 0 );
152 staticText611->Wrap( -1 );
153 fgSizerCmdsWinLin->Add( staticText611, 0, wxRIGHT|wxLEFT, 5 );
155 wxStaticText* staticText711;
156 staticText711 =
new wxStaticText(
this, wxID_ANY,
_(
"Clarify selection from menu"), wxDefaultPosition, wxDefaultSize, 0 );
157 staticText711->Wrap( -1 );
158 fgSizerCmdsWinLin->Add( staticText711, 0, wxRIGHT|wxLEFT, 5 );
160 wxStaticText* staticText81;
161 staticText81 =
new wxStaticText(
this, wxID_ANY,
_(
"Shift:"), wxDefaultPosition, wxDefaultSize, 0 );
162 staticText81->Wrap( -1 );
163 fgSizerCmdsWinLin->Add( staticText81, 0, wxRIGHT|wxLEFT, 5 );
165 wxStaticText* staticText91;
166 staticText91 =
new wxStaticText(
this, wxID_ANY,
_(
"Add item(s) to selection"), wxDefaultPosition, wxDefaultSize, 0 );
167 staticText91->Wrap( -1 );
168 fgSizerCmdsWinLin->Add( staticText91, 0, wxRIGHT|wxLEFT, 5 );
170 wxStaticText* staticText121;
171 staticText121 =
new wxStaticText(
this, wxID_ANY,
_(
"Ctrl+Shift:"), wxDefaultPosition, wxDefaultSize, 0 );
172 staticText121->Wrap( -1 );
173 fgSizerCmdsWinLin->Add( staticText121, 0, wxRIGHT|wxLEFT, 5 );
175 wxStaticText* staticText131;
176 staticText131 =
new wxStaticText(
this, wxID_ANY,
_(
"Remove item(s) from selection"), wxDefaultPosition, wxDefaultSize, 0 );
177 staticText131->Wrap( -1 );
178 fgSizerCmdsWinLin->Add( staticText131, 0, wxRIGHT|wxLEFT, 5 );
180 wxStaticText* staticText161;
181 staticText161 =
new wxStaticText(
this, wxID_ANY,
_(
"Ctrl:"), wxDefaultPosition, wxDefaultSize, 0 );
182 staticText161->Wrap( -1 );
183 fgSizerCmdsWinLin->Add( staticText161, 0, wxRIGHT|wxLEFT, 5 );
185 wxBoxSizer* bSizer16;
186 bSizer16 =
new wxBoxSizer( wxVERTICAL );
188 m_rbToggleSel =
new wxRadioButton(
this, wxID_ANY,
_(
"Toggle selection"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
191 m_rbHighlightNet =
new wxRadioButton(
this, wxID_ANY,
_(
"Highlight net (for pads/tracks)"), wxDefaultPosition, wxDefaultSize, 0 );
195 fgSizerCmdsWinLin->Add( bSizer16, 1, wxEXPAND|wxLEFT, 5 );
205 m_stHint2 =
new wxStaticText(
this, wxID_ANY,
_(
"Left click (and drag) actions depend on 3 modifier keys:\nOption, Shift and Cmd"), wxDefaultPosition, wxDefaultSize, 0 );
209 wxFlexGridSizer* fgSizerCmdsOSX;
210 fgSizerCmdsOSX =
new wxFlexGridSizer( 0, 2, 8, 0 );
211 fgSizerCmdsOSX->SetFlexibleDirection( wxBOTH );
212 fgSizerCmdsOSX->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
214 wxStaticText* staticText62;
215 staticText62 =
new wxStaticText(
this, wxID_ANY,
_(
"Click:"), wxDefaultPosition, wxDefaultSize, 0 );
216 staticText62->Wrap( -1 );
217 fgSizerCmdsOSX->Add( staticText62, 0, wxRIGHT|wxLEFT, 5 );
219 wxStaticText* staticText72;
220 staticText72 =
new wxStaticText(
this, wxID_ANY,
_(
"Select item(s)"), wxDefaultPosition, wxDefaultSize, 0 );
221 staticText72->Wrap( -1 );
222 fgSizerCmdsOSX->Add( staticText72, 0, wxRIGHT|wxLEFT, 5 );
224 wxStaticText* staticText162;
225 staticText162 =
new wxStaticText(
this, wxID_ANY,
_(
"Long Click:"), wxDefaultPosition, wxDefaultSize, 0 );
226 staticText162->Wrap( -1 );
227 fgSizerCmdsOSX->Add( staticText162, 0, wxRIGHT|wxLEFT, 5 );
229 wxStaticText* staticText172;
230 staticText172 =
new wxStaticText(
this, wxID_ANY,
_(
"Clarify selection from menu"), wxDefaultPosition, wxDefaultSize, 0 );
231 staticText172->Wrap( -1 );
232 fgSizerCmdsOSX->Add( staticText172, 0, wxRIGHT|wxLEFT, 5 );
234 wxStaticText* staticText82;
235 staticText82 =
new wxStaticText(
this, wxID_ANY,
_(
"Shift:"), wxDefaultPosition, wxDefaultSize, 0 );
236 staticText82->Wrap( -1 );
237 fgSizerCmdsOSX->Add( staticText82, 0, wxRIGHT|wxLEFT, 5 );
239 wxStaticText* staticText92;
240 staticText92 =
new wxStaticText(
this, wxID_ANY,
_(
"Add item(s) to selection"), wxDefaultPosition, wxDefaultSize, 0 );
241 staticText92->Wrap( -1 );
242 fgSizerCmdsOSX->Add( staticText92, 0, wxRIGHT|wxLEFT, 5 );
244 wxStaticText* staticText122;
245 staticText122 =
new wxStaticText(
this, wxID_ANY,
_(
"Shift+Cmd:"), wxDefaultPosition, wxDefaultSize, 0 );
246 staticText122->Wrap( -1 );
247 fgSizerCmdsOSX->Add( staticText122, 0, wxRIGHT|wxLEFT, 5 );
249 wxStaticText* staticText132;
250 staticText132 =
new wxStaticText(
this, wxID_ANY,
_(
"Remove item(s) from selection"), wxDefaultPosition, wxDefaultSize, 0 );
251 staticText132->Wrap( -1 );
252 fgSizerCmdsOSX->Add( staticText132, 0, wxRIGHT|wxLEFT, 5 );
254 wxStaticText* staticText142;
255 staticText142 =
new wxStaticText(
this, wxID_ANY,
_(
"Cmd:"), wxDefaultPosition, wxDefaultSize, 0 );
256 staticText142->Wrap( -1 );
257 fgSizerCmdsOSX->Add( staticText142, 0, wxRIGHT|wxLEFT, 5 );
259 wxBoxSizer* bSizer161;
260 bSizer161 =
new wxBoxSizer( wxVERTICAL );
262 m_rbToggleSelMac =
new wxRadioButton(
this, wxID_ANY,
_(
"Toggle selection"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
265 m_rbHighlightNetMac =
new wxRadioButton(
this, wxID_ANY,
_(
"Highlight net (for pads/tracks)"), wxDefaultPosition, wxDefaultSize, 0 );
269 fgSizerCmdsOSX->Add( bSizer161, 1, wxEXPAND|wxLEFT, 5 );
271 wxStaticText* staticText102;
272 staticText102 =
new wxStaticText(
this, wxID_ANY,
_(
"Option:"), wxDefaultPosition, wxDefaultSize, 0 );
273 staticText102->Wrap( -1 );
274 fgSizerCmdsOSX->Add( staticText102, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
276 wxStaticText* staticText112;
277 staticText112 =
new wxStaticText(
this, wxID_ANY,
_(
"Clarify selection from menu"), wxDefaultPosition, wxDefaultSize, 0 );
278 staticText112->Wrap( -1 );
279 fgSizerCmdsOSX->Add( staticText112, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
288 bMargins->Add( bMiddleLeftSizer, 0, wxEXPAND|wxRIGHT, 10 );
291 bMargins->Add( 20, 0, 0, wxEXPAND, 5 );
293 m_optionsBook =
new wxSimplebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
295 fpPage =
new wxPanel(
m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
296 wxBoxSizer* fpOptionsSizer;
297 fpOptionsSizer =
new wxBoxSizer( wxVERTICAL );
300 fpPage->SetSizer( fpOptionsSizer );
302 fpOptionsSizer->Fit( fpPage );
305 pcbPage =
new wxPanel(
m_optionsBook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
306 wxBoxSizer* pcbOptionsSizer;
307 pcbOptionsSizer =
new wxBoxSizer( wxVERTICAL );
310 pcbOptionsSizer->Add( 0, 5, 0, wxEXPAND, 5 );
312 stRatsnestLabel =
new wxStaticText( pcbPage, wxID_ANY,
_(
"Ratsnest"), wxDefaultPosition, wxDefaultSize, 0 );
316 m_staticline7 =
new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
317 pcbOptionsSizer->Add(
m_staticline7, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
319 wxBoxSizer* bRatsnest;
320 bRatsnest =
new wxBoxSizer( wxVERTICAL );
322 m_showSelectedRatsnest =
new wxCheckBox( pcbPage, wxID_ANY,
_(
"Always show selected ratsnest"), wxDefaultPosition, wxDefaultSize, 0 );
328 wxBoxSizer* bRatsnestLineThickness;
329 bRatsnestLineThickness =
new wxBoxSizer( wxHORIZONTAL );
331 m_ratsnestThicknessLabel =
new wxStaticText( pcbPage, wxID_ANY,
_(
"Ratsnest line thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
335 m_ratsnestThickness =
new wxSpinCtrlDouble( pcbPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0.5, 10, 0.5, 0.5 );
337 bRatsnestLineThickness->Add(
m_ratsnestThickness, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
340 bRatsnest->Add( bRatsnestLineThickness, 1, wxEXPAND|wxBOTTOM, 5 );
343 pcbOptionsSizer->Add( bRatsnest, 0, wxEXPAND|wxALL, 5 );
345 stMiscellaneousLabel =
new wxStaticText( pcbPage, wxID_ANY,
_(
"Miscellaneous"), wxDefaultPosition, wxDefaultSize, 0 );
349 m_staticline8 =
new wxStaticLine( pcbPage, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
350 pcbOptionsSizer->Add(
m_staticline8, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
352 wxBoxSizer* bMiscellaneous;
353 bMiscellaneous =
new wxBoxSizer( wxVERTICAL );
355 m_escClearsNetHighlight =
new wxCheckBox( pcbPage, wxID_ANY,
_(
"<ESC> clears net highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
359 m_showPageLimits =
new wxCheckBox( pcbPage, wxID_ANY,
_(
"Show page limits"), wxDefaultPosition, wxDefaultSize, 0 );
365 m_cbCourtyardCollisions =
new wxCheckBox( pcbPage, wxID_ANY,
_(
"Show courtyard collisions when moving/dragging"), wxDefaultPosition, wxDefaultSize, 0 );
369 m_autoRefillZones =
new wxCheckBox( pcbPage, wxID_ANY,
_(
"Automatically refill zones"), wxDefaultPosition, wxDefaultSize, 0 );
371 m_autoRefillZones->SetToolTip(
_(
"If checked, zones will be re-filled after each edit operation") );
376 pcbOptionsSizer->Add( bMiscellaneous, 1, wxEXPAND|wxALL, 5 );
379 pcbPage->SetSizer( pcbOptionsSizer );
381 pcbOptionsSizer->Fit( pcbPage );
384 bMargins->Add(
m_optionsBook, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
387 bPanelSizer->Add( bMargins, 1, wxRIGHT, 5 );
390 this->SetSizer( bPanelSizer );
392 bPanelSizer->Fit(
this );