14PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::PANEL_EESCHEMA_DISPLAY_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 )
16 wxBoxSizer* bPanelSizer;
17 bPanelSizer =
new wxBoxSizer( wxHORIZONTAL );
20 bSizer9 =
new wxBoxSizer( wxVERTICAL );
28 bSizer8 =
new wxBoxSizer( wxVERTICAL );
31 bSizer8->Add( 0, 7, 0, wxEXPAND, 5 );
33 m_crossprobeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Cross-probing"), wxDefaultPosition, wxDefaultSize, 0 );
37 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
40 wxBoxSizer* bCrossProbingSizer;
41 bCrossProbingSizer =
new wxBoxSizer( wxVERTICAL );
43 m_checkCrossProbeOnSelection =
new wxCheckBox(
this, wxID_ANY,
_(
"Select/highlight objects corresponding to PCB selection"), wxDefaultPosition, wxDefaultSize, 0 );
49 m_checkCrossProbeCenter =
new wxCheckBox(
this, wxID_ANY,
_(
"Center view on cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_checkCrossProbeZoom =
new wxCheckBox(
this, wxID_ANY,
_(
"Zoom to fit cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_checkCrossProbeFlash =
new wxCheckBox(
this, wxID_ANY,
_(
"Flash cross-probed selection"), wxDefaultPosition, wxDefaultSize, 0 );
70 bSizer8->Add( bCrossProbingSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
73 bSizer9->Add( bSizer8, 0, wxEXPAND, 5 );
76 bPanelSizer->Add( bSizer9, 0, wxEXPAND|wxRIGHT, 5 );
79 bPanelSizer->Add( 20, 0, 0, 0, 5 );
81 wxBoxSizer* bRightColumn;
82 bRightColumn =
new wxBoxSizer( wxVERTICAL );
84 m_appearanceLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Appearance"), wxDefaultPosition, wxDefaultSize, 0 );
88 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
89 bRightColumn->Add(
m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
91 wxBoxSizer* bAppearanceSizer;
92 bAppearanceSizer =
new wxBoxSizer( wxVERTICAL );
94 wxBoxSizer* bSizerDefaultFont;
95 bSizerDefaultFont =
new wxBoxSizer( wxHORIZONTAL );
97 m_defaultFontLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default font:"), wxDefaultPosition, wxDefaultSize, 0 );
99 bSizerDefaultFont->Add(
m_defaultFontLabel, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
101 wxString m_defaultFontCtrlChoices[] = {
_(
"KiCad Font") };
102 int m_defaultFontCtrlNChoices =
sizeof( m_defaultFontCtrlChoices ) /
sizeof( wxString );
103 m_defaultFontCtrl =
new FONT_CHOICE(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_defaultFontCtrlNChoices, m_defaultFontCtrlChoices, 0 );
105 bSizerDefaultFont->Add(
m_defaultFontCtrl, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
108 bAppearanceSizer->Add( bSizerDefaultFont, 1, wxEXPAND|wxTOP, 5 );
110 m_checkShowHiddenPins =
new wxCheckBox(
this, wxID_ANY,
_(
"S&how hidden pins"), wxDefaultPosition, wxDefaultSize, 0 );
113 m_checkShowHiddenFields =
new wxCheckBox(
this, wxID_ANY,
_(
"Show hidden fields"), wxDefaultPosition, wxDefaultSize, 0 );
120 m_checkShowERCErrors =
new wxCheckBox(
this, wxID_ANY,
_(
"Show ERC errors"), wxDefaultPosition, wxDefaultSize, 0 );
124 m_checkShowERCWarnings =
new wxCheckBox(
this, wxID_ANY,
_(
"Show ERC warnings"), wxDefaultPosition, wxDefaultSize, 0 );
128 m_checkShowERCExclusions =
new wxCheckBox(
this, wxID_ANY,
_(
"Show ERC exclusions"), wxDefaultPosition, wxDefaultSize, 0 );
131 m_cbMarkSimExclusions =
new wxCheckBox(
this, wxID_ANY,
_(
"Mark items which are excluded from simulation"), wxDefaultPosition, wxDefaultSize, 0 );
135 m_checkShowOPVoltages =
new wxCheckBox(
this, wxID_ANY,
_(
"Show OP voltages"), wxDefaultPosition, wxDefaultSize, 0 );
139 m_checkShowOPCurrents =
new wxCheckBox(
this, wxID_ANY,
_(
"Show OP currents"), wxDefaultPosition, wxDefaultSize, 0 );
143 m_checkShowPinAltModeIcons =
new wxCheckBox(
this, wxID_ANY,
_(
"Show pin alternate mode indicator icons"), wxDefaultPosition, wxDefaultSize, 0 );
147 m_checkPageLimits =
new wxCheckBox(
this, wxID_ANY,
_(
"Show page limi&ts"), wxDefaultPosition, wxDefaultSize, 0 );
149 bAppearanceSizer->Add(
m_checkPageLimits, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
152 bRightColumn->Add( bAppearanceSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
155 bRightColumn->Add( 0, 7, 0, wxEXPAND, 5 );
157 m_selectionLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Selection && Highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
159 bRightColumn->Add(
m_selectionLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
161 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
162 bRightColumn->Add(
m_staticline2, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
164 wxBoxSizer* bSelectionSizer;
165 bSelectionSizer =
new wxBoxSizer( wxVERTICAL );
167 m_checkSelDrawChildItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Draw selected child items"), wxDefaultPosition, wxDefaultSize, 0 );
171 m_checkSelFillShapes =
new wxCheckBox(
this, wxID_ANY,
_(
"Fill selected shapes"), wxDefaultPosition, wxDefaultSize, 0 );
174 wxGridBagSizer* gbSizer1;
175 gbSizer1 =
new wxGridBagSizer( 2, 5 );
176 gbSizer1->SetFlexibleDirection( wxBOTH );
177 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
178 gbSizer1->SetEmptyCellSize( wxSize( -1,10 ) );
180 m_selWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Selection thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
182 gbSizer1->Add(
m_selWidthLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 );
184 m_selWidthCtrl =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 50, 3.000000, 1 );
186 gbSizer1->Add(
m_selWidthCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
188 m_highlightColorNote =
new wxStaticText(
this, wxID_ANY,
_(
"(selection color can be edited in the \"Colors\" page)"), wxDefaultPosition, wxDefaultSize, 0 );
190 gbSizer1->Add(
m_highlightColorNote, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxRIGHT|wxLEFT, 5 );
192 m_collisionMarkerWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Net collision marker width:"), wxDefaultPosition, wxDefaultSize, 0 );
196 m_collisionMarkerWidthCtrl =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 1, 50, 4.000000, 1 );
200 m_highlightWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Highlight thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
202 gbSizer1->Add(
m_highlightWidthLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT, 5 );
204 m_highlightWidthCtrl =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 50, 2.000000, 1 );
206 gbSizer1->Add(
m_highlightWidthCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 );
209 bSelectionSizer->Add( gbSizer1, 0, wxEXPAND|wxRIGHT, 5 );
211 m_highlightNetclassColors =
new wxCheckBox(
this, wxID_ANY,
_(
"Highlight netclass colors"), wxDefaultPosition, wxDefaultSize, 0 );
214 wxGridBagSizer* gbSizer11;
215 gbSizer11 =
new wxGridBagSizer( 2, 5 );
216 gbSizer11->SetFlexibleDirection( wxBOTH );
217 gbSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
219 m_colorHighlightLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Color highlight thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
221 gbSizer11->Add(
m_colorHighlightLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxLEFT, 5 );
223 m_colHighlightThickness =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 50, 15.000000, 1 );
225 gbSizer11->Add(
m_colHighlightThickness, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP, 5 );
227 m_colHighlightLabel2 =
new wxStaticText(
this, wxID_ANY,
_(
"Color highlight opacity:"), wxDefaultPosition, wxDefaultSize, 0 );
229 gbSizer11->Add(
m_colHighlightLabel2, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
231 m_colHighlightTransparency =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 100, 60.000000, 1 );
236 bSelectionSizer->Add( gbSizer11, 0, wxEXPAND, 5 );
239 bRightColumn->Add( bSelectionSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
242 bPanelSizer->Add( bRightColumn, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
245 this->SetSizer( bPanelSizer );
247 bPanelSizer->Fit(
this );