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

#include <panel_display_options.h>

Inheritance diagram for PANEL_DISPLAY_OPTIONS:
PANEL_DISPLAY_OPTIONS_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_DISPLAY_OPTIONS (wxWindow *aParent, APP_SETTINGS_BASE *aAppSettings)
 
 ~PANEL_DISPLAY_OPTIONS () override
 
bool Show (bool aShow) override
 
bool TransferDataFromWindow () override
 
bool TransferDataToWindow () 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 Member Functions

virtual void OnGridSize (wxSizeEvent &event)
 

Protected Attributes

wxBoxSizer * m_galOptionsSizer
 
wxStaticText * m_padsLabel
 
wxStaticLine * m_staticlinePads
 
wxCheckBox * m_OptUseViaColorForNormalTHPadstacks
 
wxStaticText * m_clearanceLabel
 
wxStaticLine * m_staticline2
 
wxStaticText * m_trackClearancesLabel
 
wxChoice * m_OptDisplayTracksClearance
 
wxCheckBox * m_OptDisplayPadClearence
 
wxSimplebook * m_optionsBook
 
wxStaticText * m_layerNamesLabel
 
WX_GRIDm_layerNameitemsGrid
 
STD_BITMAP_BUTTONm_bpAddLayer
 
STD_BITMAP_BUTTONm_bpDeleteLayer
 
wxStaticText * m_annotationsLabel
 
wxStaticLine * m_staticline1
 
wxStaticText * m_netNamesLabel
 
wxChoice * m_ShowNetNamesOption
 
wxCheckBox * m_OptDisplayPadNumber
 
wxStaticText * m_staticText4
 
wxStaticLine * m_staticline4
 
wxCheckBox * m_checkForceShowFieldsWhenFPSelected
 
wxStaticText * m_crossProbingLabel
 
wxStaticLine * m_staticline3
 
wxCheckBox * m_checkCrossProbeOnSelection
 
wxCheckBox * m_checkCrossProbeCenter
 
wxCheckBox * m_checkCrossProbeZoom
 
wxCheckBox * m_checkCrossProbeAutoHighlight
 
wxCheckBox * m_checkCrossProbeFlash
 
wxCheckBox * m_live3Drefresh
 

Private Member Functions

void OnAddLayerItem (wxCommandEvent &event) override
 
void OnDeleteLayerItem (wxCommandEvent &event) override
 
void onLayerChange (wxGridEvent &event) override
 
void loadPCBSettings (PCBNEW_SETTINGS *aCfg)
 
void loadFPSettings (const FOOTPRINT_EDITOR_SETTINGS *aCfg)
 
int getNextAvailableLayer () const
 

Private Attributes

bool m_isPCBEdit
 
PANEL_GAL_OPTIONSm_galOptsPanel
 

Detailed Description

Definition at line 29 of file panel_display_options.h.

Constructor & Destructor Documentation

◆ PANEL_DISPLAY_OPTIONS()

◆ ~PANEL_DISPLAY_OPTIONS()

PANEL_DISPLAY_OPTIONS::~PANEL_DISPLAY_OPTIONS ( )
override

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 GetResetTooltip().

◆ getNextAvailableLayer()

int PANEL_DISPLAY_OPTIONS::getNextAvailableLayer ( ) const
private

◆ 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 GetHelpTextAtPoint().

◆ loadFPSettings()

◆ loadPCBSettings()

void PANEL_DISPLAY_OPTIONS::loadPCBSettings ( PCBNEW_SETTINGS * aCfg)
private

Definition at line 210 of file panel_display_options.cpp.

References CROSS_PROBING_SETTINGS::auto_highlight, CROSS_PROBING_SETTINGS::center_on_items, clearanceModeMap, CROSS_PROBING_SETTINGS::flash_selection, UTIL::GetConfigForVal(), PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeAutoHighlight, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeCenter, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeFlash, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeOnSelection, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeZoom, PANEL_DISPLAY_OPTIONS_BASE::m_checkForceShowFieldsWhenFPSelected, APP_SETTINGS_BASE::m_CrossProbing, PCBNEW_SETTINGS::m_Display, PCB_VIEWERS_SETTINGS_BASE::VIEWERS_DISPLAY_OPTIONS::m_DisplayPadNumbers, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_ForceShowFieldsWhenFPSelected, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_Live3DRefresh, PANEL_DISPLAY_OPTIONS_BASE::m_live3Drefresh, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_NetNames, PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadClearence, PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadNumber, PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayTracksClearance, PANEL_DISPLAY_OPTIONS_BASE::m_OptUseViaColorForNormalTHPadstacks, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_PadClearance, PANEL_DISPLAY_OPTIONS_BASE::m_ShowNetNamesOption, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_TrackClearance, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_UseViaColorForNormalTHPadstacks, PCB_VIEWERS_SETTINGS_BASE::m_ViewersDisplay, CROSS_PROBING_SETTINGS::on_selection, and CROSS_PROBING_SETTINGS::zoom_to_fit.

Referenced by ResetPanel(), and TransferDataToWindow().

◆ OnAddLayerItem()

void PANEL_DISPLAY_OPTIONS::OnAddLayerItem ( wxCommandEvent & event)
overrideprivatevirtual

◆ OnDeleteLayerItem()

void PANEL_DISPLAY_OPTIONS::OnDeleteLayerItem ( wxCommandEvent & event)
overrideprivatevirtual

◆ OnGridSize()

virtual void PANEL_DISPLAY_OPTIONS_BASE::OnGridSize ( wxSizeEvent & event)
inlineprotectedvirtualinherited

◆ onLayerChange()

void PANEL_DISPLAY_OPTIONS::onLayerChange ( wxGridEvent & event)
overrideprivatevirtual

◆ ResetPanel()

void PANEL_DISPLAY_OPTIONS::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 383 of file panel_display_options.cpp.

References JSON_SETTINGS::Load(), loadFPSettings(), loadPCBSettings(), m_galOptsPanel, and m_isPCBEdit.

◆ Show()

bool PANEL_DISPLAY_OPTIONS::Show ( bool aShow)
override

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_DISPLAY_OPTIONS::TransferDataToWindow ( )
override

Member Data Documentation

◆ m_annotationsLabel

wxStaticText* PANEL_DISPLAY_OPTIONS_BASE::m_annotationsLabel
protectedinherited

Definition at line 61 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_bpAddLayer

◆ m_bpDeleteLayer

STD_BITMAP_BUTTON* PANEL_DISPLAY_OPTIONS_BASE::m_bpDeleteLayer
protectedinherited

◆ m_checkCrossProbeAutoHighlight

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeAutoHighlight
protectedinherited

◆ m_checkCrossProbeCenter

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeCenter
protectedinherited

◆ m_checkCrossProbeFlash

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeFlash
protectedinherited

◆ m_checkCrossProbeOnSelection

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeOnSelection
protectedinherited

◆ m_checkCrossProbeZoom

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeZoom
protectedinherited

◆ m_checkForceShowFieldsWhenFPSelected

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_checkForceShowFieldsWhenFPSelected
protectedinherited

◆ m_clearanceLabel

wxStaticText* PANEL_DISPLAY_OPTIONS_BASE::m_clearanceLabel
protectedinherited

Definition at line 51 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_crossProbingLabel

wxStaticText* PANEL_DISPLAY_OPTIONS_BASE::m_crossProbingLabel
protectedinherited

Definition at line 69 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_galOptionsSizer

wxBoxSizer* PANEL_DISPLAY_OPTIONS_BASE::m_galOptionsSizer
protectedinherited

◆ m_galOptsPanel

PANEL_GAL_OPTIONS* PANEL_DISPLAY_OPTIONS::m_galOptsPanel
private

◆ m_isPCBEdit

bool PANEL_DISPLAY_OPTIONS::m_isPCBEdit
private

◆ m_layerNameitemsGrid

◆ m_layerNamesLabel

wxStaticText* PANEL_DISPLAY_OPTIONS_BASE::m_layerNamesLabel
protectedinherited

Definition at line 57 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_live3Drefresh

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_live3Drefresh
protectedinherited

◆ m_netNamesLabel

wxStaticText* PANEL_DISPLAY_OPTIONS_BASE::m_netNamesLabel
protectedinherited

Definition at line 63 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_OptDisplayPadClearence

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadClearence
protectedinherited

◆ m_OptDisplayPadNumber

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadNumber
protectedinherited

◆ m_OptDisplayTracksClearance

wxChoice* PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayTracksClearance
protectedinherited

◆ m_optionsBook

wxSimplebook* PANEL_DISPLAY_OPTIONS_BASE::m_optionsBook
protectedinherited

◆ m_OptUseViaColorForNormalTHPadstacks

wxCheckBox* PANEL_DISPLAY_OPTIONS_BASE::m_OptUseViaColorForNormalTHPadstacks
protectedinherited

◆ m_padsLabel

wxStaticText* PANEL_DISPLAY_OPTIONS_BASE::m_padsLabel
protectedinherited

Definition at line 48 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_ShowNetNamesOption

wxChoice* PANEL_DISPLAY_OPTIONS_BASE::m_ShowNetNamesOption
protectedinherited

◆ m_staticline1

wxStaticLine* PANEL_DISPLAY_OPTIONS_BASE::m_staticline1
protectedinherited

Definition at line 62 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_staticline2

wxStaticLine* PANEL_DISPLAY_OPTIONS_BASE::m_staticline2
protectedinherited

Definition at line 52 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_staticline3

wxStaticLine* PANEL_DISPLAY_OPTIONS_BASE::m_staticline3
protectedinherited

Definition at line 70 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_staticline4

wxStaticLine* PANEL_DISPLAY_OPTIONS_BASE::m_staticline4
protectedinherited

Definition at line 67 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_staticlinePads

wxStaticLine* PANEL_DISPLAY_OPTIONS_BASE::m_staticlinePads
protectedinherited

Definition at line 49 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_staticText4

wxStaticText* PANEL_DISPLAY_OPTIONS_BASE::m_staticText4
protectedinherited

Definition at line 66 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().

◆ m_trackClearancesLabel

wxStaticText* PANEL_DISPLAY_OPTIONS_BASE::m_trackClearancesLabel
protectedinherited

Definition at line 53 of file panel_display_options_base.h.

Referenced by PANEL_DISPLAY_OPTIONS_BASE().


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