KiCad PCB EDA Suite
PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE Class Referenceabstract

Class PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE. More...

#include <panel_eeschema_display_options_base.h>

Inheritance diagram for PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE:
RESETTABLE_PANEL PANEL_EESCHEMA_DISPLAY_OPTIONS

Public Member Functions

 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)
 
 ~PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE ()
 
virtual void ResetPanel ()=0
 Reset the contents of this panel. More...
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel. More...
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. More...
 

Protected Attributes

wxBoxSizer * m_galOptionsSizer
 
wxStaticText * m_appearanceLabel
 
wxStaticLine * m_staticline1
 
wxStaticText * m_defaultFontLabel
 
FONT_CHOICEm_defaultFontCtrl
 
wxCheckBox * m_checkShowHiddenPins
 
wxCheckBox * m_checkShowHiddenFields
 
wxCheckBox * m_checkShowERCErrors
 
wxCheckBox * m_checkShowERCWarnings
 
wxCheckBox * m_checkShowERCExclusions
 
wxCheckBox * m_checkShowOPVoltages
 
wxCheckBox * m_checkShowOPCurrents
 
wxCheckBox * m_checkPageLimits
 
wxStaticText * m_selectionLabel
 
wxStaticLine * m_staticline2
 
wxCheckBox * m_checkSelDrawChildItems
 
wxCheckBox * m_checkSelFillShapes
 
wxStaticText * m_selWidthLabel
 
wxSpinCtrlDouble * m_selWidthCtrl
 
wxStaticText * m_highlightColorNote
 
wxStaticText * m_highlightWidthLabel
 
wxSpinCtrlDouble * m_highlightWidthCtrl
 
wxStaticText * m_crossprobeLabel
 
wxStaticLine * m_staticline3
 
wxCheckBox * m_checkCrossProbeOnSelection
 
wxCheckBox * m_checkCrossProbeCenter
 
wxCheckBox * m_checkCrossProbeZoom
 
wxCheckBox * m_checkCrossProbeAutoHighlight
 

Detailed Description

Constructor & Destructor Documentation

◆ PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE()

PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::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 
)

Definition at line 14 of file panel_eeschema_display_options_base.cpp.

14 : RESETTABLE_PANEL( parent, id, pos, size, style, name )
15{
16 wxBoxSizer* bPanelSizer;
17 bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
18
19 m_galOptionsSizer = new wxBoxSizer( wxVERTICAL );
20
21
22 bPanelSizer->Add( m_galOptionsSizer, 0, wxEXPAND|wxRIGHT, 15 );
23
24 wxBoxSizer* bRightColumn;
25 bRightColumn = new wxBoxSizer( wxVERTICAL );
26
27 m_appearanceLabel = new wxStaticText( this, wxID_ANY, _("Appearance"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_appearanceLabel->Wrap( -1 );
29 bRightColumn->Add( m_appearanceLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
30
31 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
32 bRightColumn->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
33
34 wxBoxSizer* bAppearanceSizer;
35 bAppearanceSizer = new wxBoxSizer( wxVERTICAL );
36
37 wxBoxSizer* bSizer4;
38 bSizer4 = new wxBoxSizer( wxHORIZONTAL );
39
40 m_defaultFontLabel = new wxStaticText( this, wxID_ANY, _("Default font:"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_defaultFontLabel->Wrap( -1 );
42 bSizer4->Add( m_defaultFontLabel, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
43
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 );
47 m_defaultFontCtrl->SetSelection( 0 );
48 bSizer4->Add( m_defaultFontCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
49
50
51 bAppearanceSizer->Add( bSizer4, 1, wxEXPAND|wxTOP, 5 );
52
53 m_checkShowHiddenPins = new wxCheckBox( this, wxID_ANY, _("S&how hidden pins"), wxDefaultPosition, wxDefaultSize, 0 );
54 bAppearanceSizer->Add( m_checkShowHiddenPins, 0, wxEXPAND|wxALL, 5 );
55
56 m_checkShowHiddenFields = new wxCheckBox( this, wxID_ANY, _("Show hidden fields"), wxDefaultPosition, wxDefaultSize, 0 );
57 bAppearanceSizer->Add( m_checkShowHiddenFields, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
58
59 m_checkShowERCErrors = new wxCheckBox( this, wxID_ANY, _("Show ERC errors"), wxDefaultPosition, wxDefaultSize, 0 );
60 bAppearanceSizer->Add( m_checkShowERCErrors, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
61
62 m_checkShowERCWarnings = new wxCheckBox( this, wxID_ANY, _("Show ERC warnings"), wxDefaultPosition, wxDefaultSize, 0 );
63 bAppearanceSizer->Add( m_checkShowERCWarnings, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
64
65 m_checkShowERCExclusions = new wxCheckBox( this, wxID_ANY, _("Show ERC exclusions"), wxDefaultPosition, wxDefaultSize, 0 );
66 bAppearanceSizer->Add( m_checkShowERCExclusions, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
67
68 m_checkShowOPVoltages = new wxCheckBox( this, wxID_ANY, _("Show OP voltages"), wxDefaultPosition, wxDefaultSize, 0 );
69 bAppearanceSizer->Add( m_checkShowOPVoltages, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
70
71 m_checkShowOPCurrents = new wxCheckBox( this, wxID_ANY, _("Show OP currents"), wxDefaultPosition, wxDefaultSize, 0 );
72 bAppearanceSizer->Add( m_checkShowOPCurrents, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
73
74 m_checkPageLimits = new wxCheckBox( this, wxID_ANY, _("Show page limi&ts"), wxDefaultPosition, wxDefaultSize, 0 );
75 m_checkPageLimits->SetValue(true);
76 bAppearanceSizer->Add( m_checkPageLimits, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
77
78
79 bRightColumn->Add( bAppearanceSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
80
81
82 bRightColumn->Add( 0, 15, 0, wxEXPAND, 5 );
83
84 m_selectionLabel = new wxStaticText( this, wxID_ANY, _("Selection && Highlighting"), wxDefaultPosition, wxDefaultSize, 0 );
85 m_selectionLabel->Wrap( -1 );
86 bRightColumn->Add( m_selectionLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
87
88 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
89 bRightColumn->Add( m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
90
91 wxBoxSizer* bSelectionSizer;
92 bSelectionSizer = new wxBoxSizer( wxVERTICAL );
93
94 m_checkSelDrawChildItems = new wxCheckBox( this, wxID_ANY, _("Draw selected child items"), wxDefaultPosition, wxDefaultSize, 0 );
95 bSelectionSizer->Add( m_checkSelDrawChildItems, 0, wxEXPAND|wxALL, 5 );
96
97 m_checkSelFillShapes = new wxCheckBox( this, wxID_ANY, _("Fill selected shapes"), wxDefaultPosition, wxDefaultSize, 0 );
98 bSelectionSizer->Add( m_checkSelFillShapes, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
99
100 wxGridBagSizer* gbSizer1;
101 gbSizer1 = new wxGridBagSizer( 0, 0 );
102 gbSizer1->SetFlexibleDirection( wxBOTH );
103 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
104 gbSizer1->SetEmptyCellSize( wxSize( -1,10 ) );
105
106 m_selWidthLabel = new wxStaticText( this, wxID_ANY, _("Selection thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
107 m_selWidthLabel->Wrap( -1 );
108 gbSizer1->Add( m_selWidthLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
109
110 m_selWidthCtrl = new wxSpinCtrlDouble( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 50, 0, 1 );
111 m_selWidthCtrl->SetDigits( 0 );
112 gbSizer1->Add( m_selWidthCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxTOP|wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
113
114 m_highlightColorNote = new wxStaticText( this, wxID_ANY, _("(selection color can be edited in the \"Colors\" page)"), wxDefaultPosition, wxDefaultSize, 0 );
115 m_highlightColorNote->Wrap( -1 );
116 gbSizer1->Add( m_highlightColorNote, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxTOP|wxRIGHT|wxLEFT, 5 );
117
118 m_highlightWidthLabel = new wxStaticText( this, wxID_ANY, _("Highlight thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
119 m_highlightWidthLabel->Wrap( -1 );
120 gbSizer1->Add( m_highlightWidthLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_VERTICAL, 5 );
121
122 m_highlightWidthCtrl = new wxSpinCtrlDouble( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT|wxSP_ARROW_KEYS, 0, 50, 0, 1 );
123 m_highlightWidthCtrl->SetDigits( 0 );
124 gbSizer1->Add( m_highlightWidthCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALL|wxALIGN_CENTER_VERTICAL, 5 );
125
126
127 bSelectionSizer->Add( gbSizer1, 1, wxEXPAND|wxRIGHT, 5 );
128
129
130 bRightColumn->Add( bSelectionSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
131
132
133 bRightColumn->Add( 0, 15, 0, wxEXPAND, 5 );
134
135 m_crossprobeLabel = new wxStaticText( this, wxID_ANY, _("Cross-probing"), wxDefaultPosition, wxDefaultSize, 0 );
136 m_crossprobeLabel->Wrap( -1 );
137 bRightColumn->Add( m_crossprobeLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 13 );
138
139 m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
140 bRightColumn->Add( m_staticline3, 0, wxEXPAND|wxBOTTOM, 5 );
141
142 wxBoxSizer* bCrossProbingSizer;
143 bCrossProbingSizer = new wxBoxSizer( wxVERTICAL );
144
145 m_checkCrossProbeOnSelection = new wxCheckBox( this, wxID_ANY, _("Highlight symbols when footprints selected"), wxDefaultPosition, wxDefaultSize, 0 );
146 m_checkCrossProbeOnSelection->SetValue(true);
147 m_checkCrossProbeOnSelection->SetToolTip( _("Highlight symbols corresponding to selected footprints") );
148
149 bCrossProbingSizer->Add( m_checkCrossProbeOnSelection, 0, wxALL, 5 );
150
151 m_checkCrossProbeCenter = new wxCheckBox( this, wxID_ANY, _("Center view on cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
152 m_checkCrossProbeCenter->SetValue(true);
153 m_checkCrossProbeCenter->SetToolTip( _("Ensures that cross-probed symbols are visible in the current view") );
154
155 bCrossProbingSizer->Add( m_checkCrossProbeCenter, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
156
157 m_checkCrossProbeZoom = new wxCheckBox( this, wxID_ANY, _("Zoom to fit cross-probed items"), wxDefaultPosition, wxDefaultSize, 0 );
158 m_checkCrossProbeZoom->SetValue(true);
159 bCrossProbingSizer->Add( m_checkCrossProbeZoom, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
160
161 m_checkCrossProbeAutoHighlight = new wxCheckBox( this, wxID_ANY, _("Highlight cross-probed nets"), wxDefaultPosition, wxDefaultSize, 0 );
162 m_checkCrossProbeAutoHighlight->SetValue(true);
163 m_checkCrossProbeAutoHighlight->SetToolTip( _("Highlight nets when they are highlighted in the PCB editor") );
164
165 bCrossProbingSizer->Add( m_checkCrossProbeAutoHighlight, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
166
167
168 bRightColumn->Add( bCrossProbingSizer, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
169
170
171 bPanelSizer->Add( bRightColumn, 0, wxEXPAND|wxBOTTOM|wxLEFT, 10 );
172
173
174 this->SetSizer( bPanelSizer );
175 this->Layout();
176 bPanelSizer->Fit( this );
177}
const char * name
Definition: DXF_plotter.cpp:56
RESETTABLE_PANEL(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
#define _(s)

References _, m_appearanceLabel, m_checkCrossProbeAutoHighlight, m_checkCrossProbeCenter, m_checkCrossProbeOnSelection, m_checkCrossProbeZoom, m_checkPageLimits, m_checkSelDrawChildItems, m_checkSelFillShapes, m_checkShowERCErrors, m_checkShowERCExclusions, m_checkShowERCWarnings, m_checkShowHiddenFields, m_checkShowHiddenPins, m_checkShowOPCurrents, m_checkShowOPVoltages, m_crossprobeLabel, m_defaultFontCtrl, m_defaultFontLabel, m_galOptionsSizer, m_highlightColorNote, m_highlightWidthCtrl, m_highlightWidthLabel, m_selectionLabel, m_selWidthCtrl, m_selWidthLabel, m_staticline1, m_staticline2, and m_staticline3.

◆ ~PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE()

PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::~PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE ( )

Definition at line 179 of file panel_eeschema_display_options_base.cpp.

180{
181}

Member Function Documentation

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
inlineoverrideinherited

Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.

Definition at line 72 of file resettable_panel.h.

73 {
74 if( aPt == wxPoint( -INT_MAX, INT_MAX ) )
75 return GetResetTooltip();
76 else
77 return wxPanel::GetHelpTextAtPoint( aPt, aOrigin );
78 }
virtual wxString GetResetTooltip() const
Get the tooltip the reset button should display when showing this panel.

References RESETTABLE_PANEL::GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

65 {
66 return _( "Reset all settings on this page to their default" );
67 }

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ ResetPanel()

Member Data Documentation

◆ m_appearanceLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_appearanceLabel
protected

◆ m_checkCrossProbeAutoHighlight

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeAutoHighlight
protected

◆ m_checkCrossProbeCenter

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeCenter
protected

◆ m_checkCrossProbeOnSelection

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeOnSelection
protected

◆ m_checkCrossProbeZoom

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeZoom
protected

◆ m_checkPageLimits

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkPageLimits
protected

◆ m_checkSelDrawChildItems

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelDrawChildItems
protected

◆ m_checkSelFillShapes

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelFillShapes
protected

◆ m_checkShowERCErrors

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCErrors
protected

◆ m_checkShowERCExclusions

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCExclusions
protected

◆ m_checkShowERCWarnings

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCWarnings
protected

◆ m_checkShowHiddenFields

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowHiddenFields
protected

◆ m_checkShowHiddenPins

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowHiddenPins
protected

◆ m_checkShowOPCurrents

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowOPCurrents
protected

◆ m_checkShowOPVoltages

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowOPVoltages
protected

◆ m_crossprobeLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_crossprobeLabel
protected

◆ m_defaultFontCtrl

◆ m_defaultFontLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_defaultFontLabel
protected

◆ m_galOptionsSizer

wxBoxSizer* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_galOptionsSizer
protected

◆ m_highlightColorNote

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_highlightColorNote
protected

◆ m_highlightWidthCtrl

wxSpinCtrlDouble* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_highlightWidthCtrl
protected

◆ m_highlightWidthLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_highlightWidthLabel
protected

◆ m_selectionLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_selectionLabel
protected

◆ m_selWidthCtrl

wxSpinCtrlDouble* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_selWidthCtrl
protected

◆ m_selWidthLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_selWidthLabel
protected

◆ m_staticline1

wxStaticLine* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_staticline1
protected

◆ m_staticline2

wxStaticLine* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_staticline2
protected

◆ m_staticline3

wxStaticLine* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_staticline3
protected

The documentation for this class was generated from the following files: