KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_EESCHEMA_DISPLAY_OPTIONS Class Reference

#include <panel_eeschema_display_options.h>

Inheritance diagram for PANEL_EESCHEMA_DISPLAY_OPTIONS:
PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_EESCHEMA_DISPLAY_OPTIONS (wxWindow *aParent, APP_SETTINGS_BASE *aAppSettings)
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
void ResetPanel () override
 Reset the contents of this panel.
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel.
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.
 

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
 

Private Member Functions

void loadEEschemaSettings (EESCHEMA_SETTINGS *aCfg)
 

Private Attributes

GAL_OPTIONS_PANELm_galOptsPanel
 

Detailed Description

Definition at line 30 of file panel_eeschema_display_options.h.

Constructor & Destructor Documentation

◆ PANEL_EESCHEMA_DISPLAY_OPTIONS()

PANEL_EESCHEMA_DISPLAY_OPTIONS::PANEL_EESCHEMA_DISPLAY_OPTIONS ( wxWindow *  aParent,
APP_SETTINGS_BASE aAppSettings 
)

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.

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.

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ loadEEschemaSettings()

void PANEL_EESCHEMA_DISPLAY_OPTIONS::loadEEschemaSettings ( EESCHEMA_SETTINGS aCfg)
private

Definition at line 49 of file panel_eeschema_display_options.cpp.

References CROSS_PROBING_SETTINGS::auto_highlight, CROSS_PROBING_SETTINGS::center_on_items, EESCHEMA_SETTINGS::APPEARANCE::default_font, EESCHEMA_SETTINGS::SELECTION::draw_selected_children, EESCHEMA_SETTINGS::SELECTION::fill_shapes, EESCHEMA_SETTINGS::SELECTION::highlight_thickness, EESCHEMA_SETTINGS::m_Appearance, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeAutoHighlight, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeCenter, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeOnSelection, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeZoom, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkPageLimits, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelDrawChildItems, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelFillShapes, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCErrors, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCExclusions, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCWarnings, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowHiddenFields, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowHiddenPins, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowOPCurrents, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowOPVoltages, APP_SETTINGS_BASE::m_CrossProbing, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_defaultFontCtrl, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_highlightWidthCtrl, EESCHEMA_SETTINGS::m_Selection, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_selWidthCtrl, CROSS_PROBING_SETTINGS::on_selection, EESCHEMA_SETTINGS::SELECTION::selection_thickness, EESCHEMA_SETTINGS::APPEARANCE::show_erc_errors, EESCHEMA_SETTINGS::APPEARANCE::show_erc_exclusions, EESCHEMA_SETTINGS::APPEARANCE::show_erc_warnings, EESCHEMA_SETTINGS::APPEARANCE::show_hidden_fields, EESCHEMA_SETTINGS::APPEARANCE::show_hidden_pins, EESCHEMA_SETTINGS::APPEARANCE::show_op_currents, EESCHEMA_SETTINGS::APPEARANCE::show_op_voltages, EESCHEMA_SETTINGS::APPEARANCE::show_page_limits, and CROSS_PROBING_SETTINGS::zoom_to_fit.

Referenced by ResetPanel(), and TransferDataToWindow().

◆ ResetPanel()

void PANEL_EESCHEMA_DISPLAY_OPTIONS::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 123 of file panel_eeschema_display_options.cpp.

References JSON_SETTINGS::Load(), loadEEschemaSettings(), m_galOptsPanel, and GAL_OPTIONS_PANEL::ResetPanel().

◆ TransferDataFromWindow()

bool PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataFromWindow ( )
override

Definition at line 90 of file panel_eeschema_display_options.cpp.

References CROSS_PROBING_SETTINGS::auto_highlight, CROSS_PROBING_SETTINGS::center_on_items, EESCHEMA_SETTINGS::APPEARANCE::default_font, EESCHEMA_SETTINGS::SELECTION::draw_selected_children, EESCHEMA_SETTINGS::SELECTION::fill_shapes, SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), EESCHEMA_SETTINGS::SELECTION::highlight_thickness, KICAD_FONT_NAME, KiROUND(), EESCHEMA_SETTINGS::m_Appearance, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeAutoHighlight, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeCenter, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeOnSelection, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeZoom, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkPageLimits, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelDrawChildItems, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelFillShapes, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCErrors, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCExclusions, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCWarnings, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowHiddenFields, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowHiddenPins, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowOPCurrents, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowOPVoltages, APP_SETTINGS_BASE::m_CrossProbing, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_defaultFontCtrl, m_galOptsPanel, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_highlightWidthCtrl, EESCHEMA_SETTINGS::m_Selection, PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_selWidthCtrl, CROSS_PROBING_SETTINGS::on_selection, Pgm(), EESCHEMA_SETTINGS::SELECTION::selection_thickness, EESCHEMA_SETTINGS::APPEARANCE::show_erc_errors, EESCHEMA_SETTINGS::APPEARANCE::show_erc_exclusions, EESCHEMA_SETTINGS::APPEARANCE::show_erc_warnings, EESCHEMA_SETTINGS::APPEARANCE::show_hidden_fields, EESCHEMA_SETTINGS::APPEARANCE::show_hidden_pins, EESCHEMA_SETTINGS::APPEARANCE::show_op_currents, EESCHEMA_SETTINGS::APPEARANCE::show_op_voltages, EESCHEMA_SETTINGS::APPEARANCE::show_page_limits, GAL_OPTIONS_PANEL::TransferDataFromWindow(), and CROSS_PROBING_SETTINGS::zoom_to_fit.

◆ TransferDataToWindow()

bool PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataToWindow ( )
override

Member Data Documentation

◆ m_appearanceLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_appearanceLabel
protectedinherited

◆ m_checkCrossProbeAutoHighlight

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeAutoHighlight
protectedinherited

◆ m_checkCrossProbeCenter

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeCenter
protectedinherited

◆ m_checkCrossProbeOnSelection

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeOnSelection
protectedinherited

◆ m_checkCrossProbeZoom

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkCrossProbeZoom
protectedinherited

◆ m_checkPageLimits

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkPageLimits
protectedinherited

◆ m_checkSelDrawChildItems

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelDrawChildItems
protectedinherited

◆ m_checkSelFillShapes

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkSelFillShapes
protectedinherited

◆ m_checkShowERCErrors

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCErrors
protectedinherited

◆ m_checkShowERCExclusions

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCExclusions
protectedinherited

◆ m_checkShowERCWarnings

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowERCWarnings
protectedinherited

◆ m_checkShowHiddenFields

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowHiddenFields
protectedinherited

◆ m_checkShowHiddenPins

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowHiddenPins
protectedinherited

◆ m_checkShowOPCurrents

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowOPCurrents
protectedinherited

◆ m_checkShowOPVoltages

wxCheckBox* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_checkShowOPVoltages
protectedinherited

◆ m_crossprobeLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_crossprobeLabel
protectedinherited

◆ m_defaultFontCtrl

FONT_CHOICE* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_defaultFontCtrl
protectedinherited

◆ m_defaultFontLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_defaultFontLabel
protectedinherited

◆ m_galOptionsSizer

wxBoxSizer* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_galOptionsSizer
protectedinherited

◆ m_galOptsPanel

GAL_OPTIONS_PANEL* PANEL_EESCHEMA_DISPLAY_OPTIONS::m_galOptsPanel
private

◆ m_highlightColorNote

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_highlightColorNote
protectedinherited

◆ m_highlightWidthCtrl

wxSpinCtrlDouble* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_highlightWidthCtrl
protectedinherited

◆ m_highlightWidthLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_highlightWidthLabel
protectedinherited

◆ m_selectionLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_selectionLabel
protectedinherited

◆ m_selWidthCtrl

wxSpinCtrlDouble* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_selWidthCtrl
protectedinherited

◆ m_selWidthLabel

wxStaticText* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_selWidthLabel
protectedinherited

◆ m_staticline1

wxStaticLine* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_staticline1
protectedinherited

◆ m_staticline2

wxStaticLine* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_staticline2
protectedinherited

◆ m_staticline3

wxStaticLine* PANEL_EESCHEMA_DISPLAY_OPTIONS_BASE::m_staticline3
protectedinherited

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