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 );
25 bLeftColumn->Add(
m_staticline3, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
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_staticTextArcEdit =
new wxStaticText(
this, wxID_ANY,
_(
"Arc editing mode:"), wxDefaultPosition, wxDefaultSize, 0 );
50 wxString m_choiceArcModeChoices[] = {
_(
"Keep center, adjust radius"),
_(
"Keep endpoints or direction of starting point"),
_(
"Keep center and radius, adjust endpoints") };
51 int m_choiceArcModeNChoices =
sizeof( m_choiceArcModeChoices ) /
sizeof( wxString );
52 m_choiceArcMode =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceArcModeNChoices, m_choiceArcModeChoices, 0 );
56 m_mouseDragIsDrag =
new wxCheckBox(
this, wxID_ANY,
_(
"Mouse drag performs Drag (G) operation"), wxDefaultPosition, wxDefaultSize, 0 );
57 m_mouseDragIsDrag->SetToolTip(
_(
"If unchecked, mouse drag will perform move (M) operation") );
61 m_cbAutoStartWires =
new wxCheckBox(
this, wxID_ANY,
_(
"Automatically start wires on unconnected pins"), wxDefaultPosition, wxDefaultSize, 0 );
62 m_cbAutoStartWires->SetToolTip(
_(
"When enabled, you can start wiring by clicking on unconnected pins even when the wire tool is not active") );
66 m_escClearsNetHighlight =
new wxCheckBox(
this, wxID_ANY,
_(
"<ESC> clears net highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_escClearsNetHighlight->SetToolTip(
_(
"First <ESC> in selection tool clears selection, next clears net highlighting") );
72 bLeftColumn->Add( bSizer5, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
75 bLeftColumn->Add( 0, 15, 0, wxEXPAND, 5 );
77 m_staticText26 =
new wxStaticText(
this, wxID_ANY,
_(
"Defaults for New Objects"), wxDefaultPosition, wxDefaultSize, 0 );
79 bLeftColumn->Add(
m_staticText26, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
81 m_staticline4 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
82 bLeftColumn->Add(
m_staticline4, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
84 wxGridBagSizer* gbSizer1;
85 gbSizer1 =
new wxGridBagSizer( 0, 0 );
86 gbSizer1->SetFlexibleDirection( wxBOTH );
87 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
89 m_borderColorLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Sheet border:"), wxDefaultPosition, wxDefaultSize, 0 );
94 m_borderColorSwatch->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
98 m_backgroundColorLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Sheet background:"), wxDefaultPosition, wxDefaultSize, 0 );
107 m_powerSymbolLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Power Symbols:"), wxDefaultPosition, wxDefaultSize, 0 );
109 gbSizer1->Add(
m_powerSymbolLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
111 wxString m_choicePowerChoices[] = {
_(
"Default"),
_(
"Global"),
_(
"Local") };
112 int m_choicePowerNChoices =
sizeof( m_choicePowerChoices ) /
sizeof( wxString );
113 m_choicePower =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePowerNChoices, m_choicePowerChoices, 0 );
115 m_choicePower->SetToolTip(
_(
"Select the assigned type of new power symbol.\nDefault will follow the symbol definition.\nGlobal will convert new power symbols to global power symbols.\nLocal will convert new power symbols to a local power symbols.") );
117 gbSizer1->Add(
m_choicePower, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
120 bLeftColumn->Add( gbSizer1, 0, wxEXPAND|wxLEFT|wxTOP, 10 );
122 wxFlexGridSizer* fgSizer4;
123 fgSizer4 =
new wxFlexGridSizer( 2, 4, 0, 0 );
124 fgSizer4->SetFlexibleDirection( wxBOTH );
125 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
128 bLeftColumn->Add( fgSizer4, 1, wxEXPAND, 5 );
131 bSizer6 =
new wxBoxSizer( wxHORIZONTAL );
134 bLeftColumn->Add( bSizer6, 0, wxEXPAND|wxTOP|wxLEFT, 10 );
137 bLeftColumn->Add( 0, 15, 0, wxEXPAND, 5 );
139 m_leftClickCmdsBook =
new wxSimplebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
142 bSizer8 =
new wxBoxSizer( wxVERTICAL );
149 bSizer8->Add(
m_staticline6, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
152 bSizer9 =
new wxBoxSizer( wxVERTICAL );
154 m_hint1 =
new wxStaticText(
m_pageWinLin, wxID_ANY,
_(
"Left click (and drag) actions depend on 2 modifier keys:\nShift and Ctrl"), wxDefaultPosition, wxDefaultSize, 0 );
156 bSizer9->Add(
m_hint1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
158 wxFlexGridSizer* fgSizerCmdsWinLin;
159 fgSizerCmdsWinLin =
new wxFlexGridSizer( 0, 2, 0, 5 );
160 fgSizerCmdsWinLin->SetFlexibleDirection( wxBOTH );
161 fgSizerCmdsWinLin->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
188 bSizer9->Add( fgSizerCmdsWinLin, 0, wxEXPAND|wxTOP, 5 );
191 bSizer8->Add( bSizer9, 0, wxEXPAND|wxLEFT, 5 );
199 wxBoxSizer* bSizer10;
200 bSizer10 =
new wxBoxSizer( wxVERTICAL );
206 m_staticline7 =
new wxStaticLine(
m_pageMac, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
209 wxBoxSizer* bSizer11;
210 bSizer11 =
new wxBoxSizer( wxVERTICAL );
212 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 );
214 bSizer11->Add(
m_hint2, 0, wxALL, 5 );
216 wxFlexGridSizer* fgSizerCmdsWinMac;
217 fgSizerCmdsWinMac =
new wxFlexGridSizer( 0, 2, 0, 5 );
218 fgSizerCmdsWinMac->SetFlexibleDirection( wxBOTH );
219 fgSizerCmdsWinMac->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
225 m_staticText12 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Clarify selection from menu"), wxDefaultPosition, wxDefaultSize, 0 );
233 m_staticText10 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Add item(s) to selection"), wxDefaultPosition, wxDefaultSize, 0 );
241 m_staticText16 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Remove item(s) from selection"), wxDefaultPosition, wxDefaultSize, 0 );
249 m_staticText14 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Clarify selection from menu"), wxDefaultPosition, wxDefaultSize, 0 );
254 bSizer11->Add( fgSizerCmdsWinMac, 1, wxEXPAND|wxTOP, 5 );
257 bSizer10->Add( bSizer11, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
268 bPanelSizer->Add( bLeftColumn, 0, wxEXPAND|wxRIGHT, 35 );
270 wxBoxSizer* bRightColumn;
271 bRightColumn =
new wxBoxSizer( wxVERTICAL );
273 m_staticText32 =
new wxStaticText(
this, wxID_ANY,
_(
"Symbol Field Automatic Placement"), wxDefaultPosition, wxDefaultSize, 0 );
275 bRightColumn->Add(
m_staticText32, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
277 m_staticline10 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
278 bRightColumn->Add(
m_staticline10, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
280 wxBoxSizer* bSizer12;
281 bSizer12 =
new wxBoxSizer( wxVERTICAL );
283 m_checkAutoplaceFields =
new wxCheckBox(
this, wxID_ANY,
_(
"A&utomatically place symbol fields"), wxDefaultPosition, wxDefaultSize, 0 );
286 m_checkAutoplaceJustify =
new wxCheckBox(
this, wxID_ANY,
_(
"A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
289 m_checkAutoplaceAlign =
new wxCheckBox(
this, wxID_ANY,
_(
"Al&ways align autoplaced fields to the 50 mil grid"), wxDefaultPosition, wxDefaultSize, 0 );
293 bRightColumn->Add( bSizer12, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
296 bRightColumn->Add( 0, 15, 0, wxEXPAND, 5 );
298 m_staticText321 =
new wxStaticText(
this, wxID_ANY,
_(
"Repeated Items"), wxDefaultPosition, wxDefaultSize, 0 );
300 bRightColumn->Add(
m_staticText321, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
302 m_staticline9 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
303 bRightColumn->Add(
m_staticline9, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
305 wxBoxSizer* bSizer13;
306 bSizer13 =
new wxBoxSizer( wxVERTICAL );
308 wxFlexGridSizer* fgSizerRepeatOpt1;
309 fgSizerRepeatOpt1 =
new wxFlexGridSizer( 0, 3, 5, 5 );
310 fgSizerRepeatOpt1->SetFlexibleDirection( wxBOTH );
311 fgSizerRepeatOpt1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
313 m_hPitchLabel =
new wxStaticText(
this, wxID_ANY,
_(
"&Horizontal pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
315 fgSizerRepeatOpt1->Add(
m_hPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
317 m_hPitchCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
318 fgSizerRepeatOpt1->Add(
m_hPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
320 m_hPitchUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
322 fgSizerRepeatOpt1->Add(
m_hPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
324 m_vPitchLabel =
new wxStaticText(
this, wxID_ANY,
_(
"&Vertical pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
326 fgSizerRepeatOpt1->Add(
m_vPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
328 m_vPitchCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
329 fgSizerRepeatOpt1->Add(
m_vPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
331 m_vPitchUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
333 fgSizerRepeatOpt1->Add(
m_vPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
335 m_labelIncrementLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Label increment:"), wxDefaultPosition, wxDefaultSize, 0 );
339 m_spinLabelRepeatStep =
new wxSpinCtrl(
this, wxID_ANY, wxT(
"1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -1000000, 1000000, 1 );
343 fgSizerRepeatOpt1->Add( 0, 0, 1, wxEXPAND, 3 );
346 bSizer13->Add( fgSizerRepeatOpt1, 0, wxEXPAND|wxTOP, 5 );
349 bRightColumn->Add( bSizer13, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
352 bRightColumn->Add( 0, 15, 0, wxEXPAND, 5 );
354 m_staticText322 =
new wxStaticText(
this, wxID_ANY,
_(
"Dialog Preferences"), wxDefaultPosition, wxDefaultSize, 0 );
356 bRightColumn->Add(
m_staticText322, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
358 m_staticline8 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
359 bRightColumn->Add(
m_staticline8, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
361 wxBoxSizer* bSizer14;
362 bSizer14 =
new wxBoxSizer( wxVERTICAL );
364 m_footprintPreview =
new wxCheckBox(
this, wxID_ANY,
_(
"Show footprint previews in Symbol Chooser"), wxDefaultPosition, wxDefaultSize, 0 );
367 m_neverShowRescue =
new wxCheckBox(
this, wxID_ANY,
_(
"Never show Rescue Symbols tool"), wxDefaultPosition, wxDefaultSize, 0 );
371 bRightColumn->Add( bSizer14, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
374 bPanelSizer->Add( bRightColumn, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
377 this->SetSizer( bPanelSizer );
379 bPanelSizer->Fit(
this );
A simple color swatch of the kind used to set layer colors.
wxStaticText * m_staticTextArcEdit
wxStaticText * m_backgroundColorLabel
wxStaticText * m_staticText15
wxCheckBox * m_escClearsNetHighlight
wxStaticText * m_staticText151
wxStaticText * m_borderColorLabel
wxStaticText * m_staticText11
wxStaticText * m_staticText24
~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
wxStaticLine * m_staticline4
wxStaticText * m_hPitchUnits
wxStaticText * m_staticText26
wxStaticText * m_hPitchLabel
wxStaticText * m_vPitchLabel
wxStaticText * m_staticText161
wxChoice * m_choiceArcMode
wxStaticLine * m_staticline10
wxTextCtrl * m_vPitchCtrl
wxStaticLine * m_staticline3
wxStaticText * m_staticText322
wxStaticText * m_staticText16
wxStaticText * m_staticText12
wxStaticText * m_leftClickLabel1
wxCheckBox * m_checkAutoplaceFields
wxSimplebook * m_leftClickCmdsBook
wxStaticLine * m_staticline8
wxCheckBox * m_neverShowRescue
wxStaticText * m_staticText141
wxCheckBox * m_footprintPreview
wxStaticText * m_staticText13
wxStaticText * m_powerSymbolLabel
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.