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 );
24 wxBoxSizer* bRightColumn;
25 bRightColumn =
new wxBoxSizer( wxVERTICAL );
27 m_appearanceLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Appearance"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
34 wxBoxSizer* bAppearanceSizer;
35 bAppearanceSizer =
new wxBoxSizer( wxVERTICAL );
38 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
40 m_defaultFontLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Default font:"), wxDefaultPosition, wxDefaultSize, 0 );
44 wxString m_defaultFontCtrlChoices[] = {
_(
"KiCad Font") };
45 int m_defaultFontCtrlNChoices =
sizeof( m_defaultFontCtrlChoices ) /
sizeof( wxString );
46 m_defaultFontCtrl =
new FONT_CHOICE(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_defaultFontCtrlNChoices, m_defaultFontCtrlChoices, 0 );
51 bAppearanceSizer->Add( bSizer4, 1, wxEXPAND, 5 );
53 m_checkShowHiddenPins =
new wxCheckBox(
this, wxID_ANY,
_(
"S&how hidden pins"), wxDefaultPosition, wxDefaultSize, 0 );
56 m_checkShowHiddenFields =
new wxCheckBox(
this, wxID_ANY,
_(
"Show hidden fields"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_checkShowERCErrors =
new wxCheckBox(
this, wxID_ANY,
_(
"Show ERC errors"), wxDefaultPosition, wxDefaultSize, 0 );
62 m_checkShowERCWarnings =
new wxCheckBox(
this, wxID_ANY,
_(
"Show ERC warnings"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_checkShowERCExclusions =
new wxCheckBox(
this, wxID_ANY,
_(
"Show ERC exclusions"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_cbMarkSimExclusions =
new wxCheckBox(
this, wxID_ANY,
_(
"Mark items which are excluded from simulation"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_checkShowOPVoltages =
new wxCheckBox(
this, wxID_ANY,
_(
"Show OP voltages"), wxDefaultPosition, wxDefaultSize, 0 );
75 m_checkShowOPCurrents =
new wxCheckBox(
this, wxID_ANY,
_(
"Show OP currents"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_checkShowPinAltModeIcons =
new wxCheckBox(
this, wxID_ANY,
_(
"Show pin alternate mode indicator icons"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_checkPageLimits =
new wxCheckBox(
this, wxID_ANY,
_(
"Show page limi&ts"), wxDefaultPosition, wxDefaultSize, 0 );
83 bAppearanceSizer->Add(
m_checkPageLimits, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
86 bRightColumn->Add( bAppearanceSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
89 bRightColumn->Add( 0, 7, 0, wxEXPAND, 5 );
91 m_selectionLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Selection && Highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
95 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
98 wxBoxSizer* bSelectionSizer;
99 bSelectionSizer =
new wxBoxSizer( wxVERTICAL );
101 m_checkSelDrawChildItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Draw selected child items"), wxDefaultPosition, wxDefaultSize, 0 );
104 m_checkSelFillShapes =
new wxCheckBox(
this, wxID_ANY,
_(
"Fill selected shapes"), wxDefaultPosition, wxDefaultSize, 0 );
107 wxGridBagSizer* gbSizer1;
108 gbSizer1 =
new wxGridBagSizer( 0, 0 );
109 gbSizer1->SetFlexibleDirection( wxBOTH );
110 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
111 gbSizer1->SetEmptyCellSize( wxSize( -1,10 ) );
113 m_selWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Selection thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
115 gbSizer1->Add(
m_selWidthLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
117 m_selWidthCtrl =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 50, 0.000000, 1 );
119 gbSizer1->Add(
m_selWidthCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
121 m_highlightColorNote =
new wxStaticText(
this, wxID_ANY,
_(
"(selection color can be edited in the \"Colors\" page)"), wxDefaultPosition, wxDefaultSize, 0 );
123 gbSizer1->Add(
m_highlightColorNote, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxTOP|wxRIGHT|wxLEFT, 5 );
125 m_highlightWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Highlight thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
127 gbSizer1->Add(
m_highlightWidthLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_VERTICAL, 5 );
129 m_highlightWidthCtrl =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 50, 0, 1 );
131 gbSizer1->Add(
m_highlightWidthCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_VERTICAL, 5 );
134 bSelectionSizer->Add( gbSizer1, 0, wxEXPAND|wxRIGHT, 5 );
136 m_highlightNetclassColors =
new wxCheckBox(
this, wxID_ANY,
_(
"Highlight netclass colors"), wxDefaultPosition, wxDefaultSize, 0 );
139 wxGridBagSizer* gbSizer11;
140 gbSizer11 =
new wxGridBagSizer( 0, 0 );
141 gbSizer11->SetFlexibleDirection( wxBOTH );
142 gbSizer11->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
144 m_colorHighlightLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Color highlight thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
146 gbSizer11->Add(
m_colorHighlightLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
148 m_colHighlightThickness =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 50, 0, 1 );
150 gbSizer11->Add(
m_colHighlightThickness, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
152 m_colHighlightLabel2 =
new wxStaticText(
this, wxID_ANY,
_(
"Color highlight opacity:"), wxDefaultPosition, wxDefaultSize, 0 );
154 gbSizer11->Add(
m_colHighlightLabel2, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_VERTICAL, 5 );
156 m_colHighlightTransparency =
new wxSpinCtrlDouble(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 100, 0, 1 );
161 bSelectionSizer->Add( gbSizer11, 0, wxEXPAND, 5 );
164 bRightColumn->Add( bSelectionSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
167 bRightColumn->Add( 0, 7, 0, wxEXPAND, 5 );
169 m_crossprobeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Cross-probing"), wxDefaultPosition, wxDefaultSize, 0 );
173 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
176 wxBoxSizer* bCrossProbingSizer;
177 bCrossProbingSizer =
new wxBoxSizer( wxVERTICAL );
179 m_checkCrossProbeOnSelection =
new wxCheckBox(
this, wxID_ANY,
_(
"Select/highlight objects corresponding to PCB selection"), wxDefaultPosition, wxDefaultSize, 0 );
185 m_checkCrossProbeCenter =
new wxCheckBox(
this, wxID_ANY,
_(
"Center view on cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
191 m_checkCrossProbeZoom =
new wxCheckBox(
this, wxID_ANY,
_(
"Zoom to fit cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
202 bRightColumn->Add( bCrossProbingSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
205 bPanelSizer->Add( bRightColumn, 0, wxEXPAND|wxBOTTOM|wxLEFT, 10 );
208 this->SetSizer( bPanelSizer );
210 bPanelSizer->Fit(
this );
wxCheckBox * m_checkCrossProbeCenter
wxCheckBox * m_checkCrossProbeZoom
~PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE()
wxStaticText * m_highlightWidthLabel
wxSpinCtrlDouble * m_highlightWidthCtrl
wxStaticText * m_appearanceLabel
wxCheckBox * m_cbMarkSimExclusions
PANEL_EESCHEMA_DISPLAY_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)
wxCheckBox * m_checkShowHiddenPins
wxSpinCtrlDouble * m_colHighlightThickness
wxCheckBox * m_checkShowOPCurrents
wxCheckBox * m_checkShowOPVoltages
wxCheckBox * m_checkSelDrawChildItems
wxStaticText * m_colorHighlightLabel
wxCheckBox * m_checkShowERCExclusions
wxStaticText * m_crossprobeLabel
FONT_CHOICE * m_defaultFontCtrl
wxCheckBox * m_checkShowERCWarnings
wxStaticText * m_defaultFontLabel
wxCheckBox * m_checkShowERCErrors
wxStaticText * m_highlightColorNote
wxStaticLine * m_staticline2
wxCheckBox * m_checkShowHiddenFields
wxStaticText * m_selectionLabel
wxCheckBox * m_checkPageLimits
wxCheckBox * m_checkCrossProbeAutoHighlight
wxSpinCtrlDouble * m_colHighlightTransparency
wxStaticText * m_selWidthLabel
wxCheckBox * m_checkShowPinAltModeIcons
wxCheckBox * m_highlightNetclassColors
wxSpinCtrlDouble * m_selWidthCtrl
wxStaticLine * m_staticline1
wxCheckBox * m_checkCrossProbeOnSelection
wxStaticText * m_colHighlightLabel2
wxCheckBox * m_checkSelFillShapes
wxStaticLine * m_staticline3
wxBoxSizer * m_galOptionsSizer
A wxPanel that is designed to be reset in a standard manner.