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_leftClickCmdsBook =
new wxSimplebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
104 bSizer8 =
new wxBoxSizer( wxVERTICAL );
114 bSizer9 =
new wxBoxSizer( wxVERTICAL );
116 m_hint1 =
new wxStaticText(
m_pageWinLin, wxID_ANY,
_(
"Left click (and drag) actions depend on 2 modifier keys:\nShift and Ctrl"), wxDefaultPosition, wxDefaultSize, 0 );
118 bSizer9->Add(
m_hint1, 0, wxALL, 5 );
120 wxFlexGridSizer* fgSizerCmdsWinLin;
121 fgSizerCmdsWinLin =
new wxFlexGridSizer( 0, 2, 0, 5 );
122 fgSizerCmdsWinLin->SetFlexibleDirection( wxBOTH );
123 fgSizerCmdsWinLin->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
150 bSizer9->Add( fgSizerCmdsWinLin, 0, wxEXPAND|wxTOP, 5 );
153 bSizer8->Add( bSizer9, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
161 wxBoxSizer* bSizer10;
162 bSizer10 =
new wxBoxSizer( wxVERTICAL );
168 m_staticline7 =
new wxStaticLine(
m_pageMac, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
171 wxBoxSizer* bSizer11;
172 bSizer11 =
new wxBoxSizer( wxVERTICAL );
174 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 );
176 bSizer11->Add(
m_hint2, 0, wxALL, 5 );
178 wxFlexGridSizer* fgSizerCmdsWinMac;
179 fgSizerCmdsWinMac =
new wxFlexGridSizer( 0, 2, 0, 5 );
180 fgSizerCmdsWinMac->SetFlexibleDirection( wxBOTH );
181 fgSizerCmdsWinMac->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
187 m_staticText12 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Clarify selection from menu"), wxDefaultPosition, wxDefaultSize, 0 );
195 m_staticText10 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Add item(s) to selection"), wxDefaultPosition, wxDefaultSize, 0 );
203 m_staticText16 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Remove item(s) from selection"), wxDefaultPosition, wxDefaultSize, 0 );
211 m_staticText14 =
new wxStaticText(
m_pageMac, wxID_ANY,
_(
"Clarify selection from menu"), wxDefaultPosition, wxDefaultSize, 0 );
216 bSizer11->Add( fgSizerCmdsWinMac, 1, wxEXPAND|wxTOP, 5 );
219 bSizer10->Add( bSizer11, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
230 bPanelSizer->Add( bLeftColumn, 0, wxEXPAND|wxRIGHT, 20 );
232 wxBoxSizer* bRightColumn;
233 bRightColumn =
new wxBoxSizer( wxVERTICAL );
235 m_staticText32 =
new wxStaticText(
this, wxID_ANY,
_(
"Symbol Field Automatic Placement"), wxDefaultPosition, wxDefaultSize, 0 );
237 bRightColumn->Add(
m_staticText32, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
239 m_staticline10 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
242 wxBoxSizer* bSizer12;
243 bSizer12 =
new wxBoxSizer( wxVERTICAL );
245 m_checkAutoplaceFields =
new wxCheckBox(
this, wxID_ANY,
_(
"A&utomatically place symbol fields"), wxDefaultPosition, wxDefaultSize, 0 );
248 m_checkAutoplaceJustify =
new wxCheckBox(
this, wxID_ANY,
_(
"A&llow field autoplace to change justification"), wxDefaultPosition, wxDefaultSize, 0 );
251 m_checkAutoplaceAlign =
new wxCheckBox(
this, wxID_ANY,
_(
"Al&ways align autoplaced fields to the 50 mil grid"), wxDefaultPosition, wxDefaultSize, 0 );
255 bRightColumn->Add( bSizer12, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
258 bRightColumn->Add( 0, 15, 0, wxEXPAND, 5 );
260 m_staticText321 =
new wxStaticText(
this, wxID_ANY,
_(
"Repeated Items"), wxDefaultPosition, wxDefaultSize, 0 );
262 bRightColumn->Add(
m_staticText321, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
264 m_staticline9 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
267 wxBoxSizer* bSizer13;
268 bSizer13 =
new wxBoxSizer( wxVERTICAL );
270 wxFlexGridSizer* fgSizerRepeatOpt1;
271 fgSizerRepeatOpt1 =
new wxFlexGridSizer( 0, 3, 5, 5 );
272 fgSizerRepeatOpt1->SetFlexibleDirection( wxBOTH );
273 fgSizerRepeatOpt1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
275 m_hPitchLabel =
new wxStaticText(
this, wxID_ANY,
_(
"&Horizontal pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
277 fgSizerRepeatOpt1->Add(
m_hPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
279 m_hPitchCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
280 fgSizerRepeatOpt1->Add(
m_hPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
282 m_hPitchUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
284 fgSizerRepeatOpt1->Add(
m_hPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
286 m_vPitchLabel =
new wxStaticText(
this, wxID_ANY,
_(
"&Vertical pitch:"), wxDefaultPosition, wxDefaultSize, 0 );
288 fgSizerRepeatOpt1->Add(
m_vPitchLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
290 m_vPitchCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
291 fgSizerRepeatOpt1->Add(
m_vPitchCtrl, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
293 m_vPitchUnits =
new wxStaticText(
this, wxID_ANY,
_(
"mils"), wxDefaultPosition, wxDefaultSize, 0 );
295 fgSizerRepeatOpt1->Add(
m_vPitchUnits, 0, wxALIGN_CENTER_VERTICAL, 5 );
297 m_labelIncrementLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Label increment:"), wxDefaultPosition, wxDefaultSize, 0 );
301 m_spinLabelRepeatStep =
new wxSpinCtrl(
this, wxID_ANY, wxT(
"1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, -1000000, 1000000, 1 );
305 fgSizerRepeatOpt1->Add( 0, 0, 1, wxEXPAND, 3 );
308 bSizer13->Add( fgSizerRepeatOpt1, 0, wxEXPAND|wxTOP, 5 );
311 bRightColumn->Add( bSizer13, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
314 bRightColumn->Add( 0, 15, 0, wxEXPAND, 5 );
316 m_staticText322 =
new wxStaticText(
this, wxID_ANY,
_(
"Dialog Preferences"), wxDefaultPosition, wxDefaultSize, 0 );
318 bRightColumn->Add(
m_staticText322, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
320 m_staticline8 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
323 wxBoxSizer* bSizer14;
324 bSizer14 =
new wxBoxSizer( wxVERTICAL );
326 m_footprintPreview =
new wxCheckBox(
this, wxID_ANY,
_(
"Show footprint previews in Symbol Chooser"), wxDefaultPosition, wxDefaultSize, 0 );
329 m_neverShowRescue =
new wxCheckBox(
this, wxID_ANY,
_(
"Never show Rescue Symbols tool"), wxDefaultPosition, wxDefaultSize, 0 );
333 bRightColumn->Add( bSizer14, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
336 bPanelSizer->Add( bRightColumn, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
339 this->SetSizer( bPanelSizer );
341 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
~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
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
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.