12PANEL_EESCHEMA_EDITING_OPTIONS_BASE::PANEL_EESCHEMA_EDITING_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 );
17 wxBoxSizer* bLeftColumn;
18 bLeftColumn =
new wxBoxSizer( wxVERTICAL );
20 m_editingLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Editing"), wxDefaultPosition, wxDefaultSize, 0 );
22 bLeftColumn->Add(
m_editingLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
24 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
28 bSizer5 =
new wxBoxSizer( wxVERTICAL );
31 bSizer61 =
new wxBoxSizer( wxHORIZONTAL );
33 m_staticText24 =
new wxStaticText(
this, wxID_ANY,
_(
"Line Drawing Mode:"), wxDefaultPosition, wxDefaultSize, 0 );
35 bSizer61->Add(
m_staticText24, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
37 wxString m_choiceLineModeChoices[] = {
_(
"Free Angle"),
_(
"90 deg Angle"),
_(
"45 deg Angle") };
38 int m_choiceLineModeNChoices =
sizeof( m_choiceLineModeChoices ) /
sizeof( wxString );
39 m_choiceLineMode =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceLineModeNChoices, m_choiceLineModeChoices, 0 );
44 bSizer5->Add( bSizer61, 1, wxEXPAND, 5 );
46 m_mouseDragIsDrag =
new wxCheckBox(
this, wxID_ANY,
_(
"Mouse drag performs Drag (G) operation"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_mouseDragIsDrag->SetToolTip(
_(
"If unchecked, mouse drag will perform move (M) operation") );
51 m_cbAutoStartWires =
new wxCheckBox(
this, wxID_ANY,
_(
"Automatically start wires on unconnected pins"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_cbAutoStartWires->SetToolTip(
_(
"When enabled, you can start wiring by clicking on unconnected pins even when the wire tool is not active") );
56 m_escClearsNetHighlight =
new wxCheckBox(
this, wxID_ANY,
_(
"<ESC> clears net highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
57 m_escClearsNetHighlight->SetToolTip(
_(
"First <ESC> in selection tool clears selection, next clears net highlighting") );
62 bLeftColumn->Add( bSizer5, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
65 bLeftColumn->Add( 0, 15, 0, wxEXPAND, 5 );
67 m_staticText26 =
new wxStaticText(
this, wxID_ANY,
_(
"Defaults for New Objects"), wxDefaultPosition, wxDefaultSize, 0 );
69 bLeftColumn->Add(
m_staticText26, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
71 m_staticline4 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
75 bSizer6 =
new wxBoxSizer( wxHORIZONTAL );
77 m_borderColorLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Sheet border:"), wxDefaultPosition, wxDefaultSize, 0 );
82 m_borderColorSwatch->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
86 m_backgroundColorLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Sheet background:"), wxDefaultPosition, wxDefaultSize, 0 );
96 bLeftColumn->Add( bSizer6, 0, wxEXPAND|wxTOP|wxLEFT, 10 );
99 bLeftColumn->Add( 0, 15, 0, wxEXPAND, 5 );
101 m_selectionLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Selection"), wxDefaultPosition, wxDefaultSize, 0 );
105 m_staticline5 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
109 bSizer7 =
new wxBoxSizer( wxVERTICAL );
111 m_cbPinSelectionOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Clicking on a pin selects the symbol"), wxDefaultPosition, wxDefaultSize, 0 );
112 m_cbPinSelectionOpt->SetToolTip(
_(
"In schematic editor:\nIf enabled, clicking on a pin select the parent symbol.\nIf disabled, clicking on a pin select only the pin.") );
117 bLeftColumn->Add( bSizer7, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
120 bLeftColumn->Add( 0, 15, 0, wxEXPAND, 5 );
122 m_leftClickCmdsBook =
new wxSimplebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
125 bSizer8 =
new wxBoxSizer( wxVERTICAL );
135 bSizer9 =
new wxBoxSizer( wxVERTICAL );
137 m_hint1 =
new wxStaticText(
m_pageWinLin, wxID_ANY,
_(
"Left click (and drag) actions depend on 2 modifier keys:\nShift and Ctrl."), wxDefaultPosition, wxDefaultSize, 0 );
139 bSizer9->Add(
m_hint1, 0, wxALL, 5 );
141 wxFlexGridSizer* fgSizerCmdsWinLin;
142 fgSizerCmdsWinLin =
new wxFlexGridSizer( 0, 2, 0, 5 );
143 fgSizerCmdsWinLin->SetFlexibleDirection( wxBOTH );
144 fgSizerCmdsWinLin->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
171 bSizer9->Add( fgSizerCmdsWinLin, 0, wxEXPAND|wxTOP, 5 );
174 bSizer8->Add( bSizer9, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
182 wxBoxSizer* bSizer10;
183 bSizer10 =
new wxBoxSizer( wxVERTICAL );
189 m_staticline7 =
new wxStaticLine(
m_pageMac, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
192 wxBoxSizer* bSizer11;
193 bSizer11 =
new wxBoxSizer( wxVERTICAL );
195 m_hint2 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Left click (and drag) actions depend on 3 modifier keys:\nOption, Shift and Cmd."), wxDefaultPosition, wxDefaultSize, 0 );
197 bSizer11->Add(
m_hint2, 0, wxALL, 5 );
199 wxFlexGridSizer* fgSizerCmdsWinMac;
200 fgSizerCmdsWinMac =
new wxFlexGridSizer( 0, 2, 0, 5 );
201 fgSizerCmdsWinMac->SetFlexibleDirection( wxBOTH );
202 fgSizerCmdsWinMac->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
208 m_staticText12 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Clarify selection from menu."), wxDefaultPosition, wxDefaultSize, 0 );
216 m_staticText10 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Add item(s) to selection."), wxDefaultPosition, wxDefaultSize, 0 );
224 m_staticText16 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Remove item(s) from selection."), wxDefaultPosition, wxDefaultSize, 0 );
232 m_staticText14 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Clarify selection from menu."), wxDefaultPosition, wxDefaultSize, 0 );
237 bSizer11->Add( fgSizerCmdsWinMac, 1, wxEXPAND|wxTOP, 5 );
240 bSizer10->Add( bSizer11, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
251 bPanelSizer->Add( bLeftColumn, 0, wxEXPAND|wxRIGHT, 20 );
253 wxBoxSizer* bRightColumn;
254 bRightColumn =
new wxBoxSizer( wxVERTICAL );
256 m_staticText32 =
new wxStaticText(
this, wxID_ANY,
_(
"Symbol Field Automatic Placement"), wxDefaultPosition, wxDefaultSize, 0 );
258 bRightColumn->Add(
m_staticText32, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
260 m_staticline10 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
263 wxBoxSizer* bSizer12;
264 bSizer12 =
new wxBoxSizer( wxVERTICAL );
266 m_checkAutoplaceFields =
new wxCheckBox(
this, wxID_ANY,
_(
"A&utomatically place symbol fields"), wxDefaultPosition, wxDefaultSize, 0 );
269 m_checkAutoplaceJustify =
new wxCheckBox(
this, wxID_ANY,
_(
"A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
272 m_checkAutoplaceAlign =
new wxCheckBox(
this, wxID_ANY,
_(
"Al&ways align autoplaced fields to the 50 mil grid"), wxDefaultPosition, wxDefaultSize, 0 );
276 bRightColumn->Add( bSizer12, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
279 bRightColumn->Add( 0, 15, 0, wxEXPAND, 5 );
281 m_staticText321 =
new wxStaticText(
this, wxID_ANY,
_(
"Repeated Items"), wxDefaultPosition, wxDefaultSize, 0 );
283 bRightColumn->Add(
m_staticText321, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
285 m_staticline9 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
288 wxBoxSizer* bSizer13;
289 bSizer13 =
new wxBoxSizer( wxVERTICAL );
291 wxFlexGridSizer* fgSizerRepeatOpt1;
292 fgSizerRepeatOpt1 =
new wxFlexGridSizer( 0, 3, 5, 5 );
293 fgSizerRepeatOpt1->SetFlexibleDirection( wxBOTH );
294 fgSizerRepeatOpt1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
296 m_hPitchLabel =
new wxStaticText(
this, wxID_ANY,
_(
"&Horizontal pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
298 fgSizerRepeatOpt1->Add(
m_hPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
300 m_hPitchCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
301 fgSizerRepeatOpt1->Add(
m_hPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
303 m_hPitchUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
305 fgSizerRepeatOpt1->Add(
m_hPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
307 m_vPitchLabel =
new wxStaticText(
this, wxID_ANY,
_(
"&Vertical pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
309 fgSizerRepeatOpt1->Add(
m_vPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
311 m_vPitchCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
312 fgSizerRepeatOpt1->Add(
m_vPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
314 m_vPitchUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
316 fgSizerRepeatOpt1->Add(
m_vPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
318 m_labelIncrementLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Label increment:"), wxDefaultPosition, wxDefaultSize, 0 );
322 m_spinLabelRepeatStep =
new wxSpinCtrl(
this, wxID_ANY, wxT(
"1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -1000000, 1000000, 1 );
326 fgSizerRepeatOpt1->Add( 0, 0, 1, wxEXPAND, 3 );
329 bSizer13->Add( fgSizerRepeatOpt1, 0, wxEXPAND|wxTOP, 5 );
332 bRightColumn->Add( bSizer13, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
335 bRightColumn->Add( 0, 15, 0, wxEXPAND, 5 );
337 m_staticText322 =
new wxStaticText(
this, wxID_ANY,
_(
"Dialog Preferences"), wxDefaultPosition, wxDefaultSize, 0 );
339 bRightColumn->Add(
m_staticText322, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
341 m_staticline8 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
344 wxBoxSizer* bSizer14;
345 bSizer14 =
new wxBoxSizer( wxVERTICAL );
347 m_footprintPreview =
new wxCheckBox(
this, wxID_ANY,
_(
"Show footprint previews in Symbol Chooser"), wxDefaultPosition, wxDefaultSize, 0 );
350 m_neverShowRescue =
new wxCheckBox(
this, wxID_ANY,
_(
"Never show Rescue Symbols tool"), wxDefaultPosition, wxDefaultSize, 0 );
354 bRightColumn->Add( bSizer14, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
357 bPanelSizer->Add( bRightColumn, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
360 this->SetSizer( bPanelSizer );
362 bPanelSizer->Fit(
this );
A simple color swatch of the kind used to set layer colors.
wxStaticText * m_backgroundColorLabel
wxStaticText * m_staticText15
wxCheckBox * m_escClearsNetHighlight
wxStaticText * m_staticText151
wxStaticText * m_borderColorLabel
wxStaticText * m_staticText11
wxStaticText * m_staticText24
wxStaticLine * m_staticline5
~PANEL_EESCHEMA_EDITING_OPTIONS_BASE()
wxCheckBox * m_checkAutoplaceAlign
wxCheckBox * m_mouseDragIsDrag
wxStaticText * m_staticText91
wxStaticText * m_staticText14
wxStaticText * m_staticText32
wxStaticText * m_leftClickLabel
wxStaticText * m_staticText131
COLOR_SWATCH * m_borderColorSwatch
wxChoice * m_choiceLineMode
wxStaticText * m_editingLabel
PANEL_EESCHEMA_EDITING_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)
wxStaticText * m_staticText10
wxSpinCtrl * m_spinLabelRepeatStep
wxTextCtrl * m_hPitchCtrl
wxStaticText * m_vPitchUnits
wxStaticText * m_selectionLabel
wxStaticLine * m_staticline4
wxStaticText * m_hPitchUnits
wxStaticText * m_staticText26
wxStaticText * m_hPitchLabel
wxStaticText * m_vPitchLabel
wxStaticText * m_staticText161
wxStaticLine * m_staticline10
wxTextCtrl * m_vPitchCtrl
wxStaticLine * m_staticline3
wxStaticText * m_staticText322
wxStaticText * m_staticText16
wxStaticText * m_staticText12
wxCheckBox * m_cbPinSelectionOpt
wxStaticText * m_leftClickLabel1
wxCheckBox * m_checkAutoplaceFields
wxSimplebook * m_leftClickCmdsBook
wxStaticLine * m_staticline8
wxCheckBox * m_neverShowRescue
wxStaticText * m_staticText141
wxCheckBox * m_footprintPreview
wxStaticText * m_staticText13
wxCheckBox * m_cbAutoStartWires
wxStaticText * m_staticText9
wxCheckBox * m_checkAutoplaceJustify
wxStaticText * m_staticText101
wxStaticLine * m_staticline9
COLOR_SWATCH * m_backgroundColorSwatch
wxStaticLine * m_staticline6
wxStaticLine * m_staticline7
wxStaticText * m_staticText321
wxStaticText * m_labelIncrementLabel
A wxPanel that is designed to be reset in a standard manner.