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

#include <appearance_controls.h>

Inheritance diagram for APPEARANCE_CONTROLS:
APPEARANCE_CONTROLS_BASE BOARD_LISTENER WX_PANEL

Classes

struct  APPEARANCE_SETTING
 Container for an appearance setting (can control a single board layer, or GAL layer, etc) More...
 

Public Member Functions

 APPEARANCE_CONTROLS (PCB_BASE_FRAME *aParent, wxWindow *aFocusOwner, bool aFpEditor=false)
 
 ~APPEARANCE_CONTROLS ()
 
wxSize GetBestSize () const
 Update the panel contents from the application and board models.
 
void OnBoardChanged ()
 
void OnBoardNetSettingsChanged (BOARD &aBoard) override
 
void OnBoardItemAdded (BOARD &aBoard, BOARD_ITEM *aItem) override
 
void OnBoardItemsAdded (BOARD &aBoard, std::vector< BOARD_ITEM * > &aItems) override
 
void OnBoardItemRemoved (BOARD &aBoard, BOARD_ITEM *aItem) override
 
void OnBoardItemsRemoved (BOARD &aBoard, std::vector< BOARD_ITEM * > &aItems) override
 
void OnBoardItemChanged (BOARD &aBoard, BOARD_ITEM *aItem) override
 
void OnBoardItemsChanged (BOARD &aBoard, std::vector< BOARD_ITEM * > &aItems) override
 
void OnBoardCompositeUpdate (BOARD &aBoard, std::vector< BOARD_ITEM * > &aAddedItems, std::vector< BOARD_ITEM * > &aRemovedItems, std::vector< BOARD_ITEM * > &aDeletedItems) override
 Update the colors on all the widgets from the new chosen color theme.
 
void OnColorThemeChanged ()
 Respond to change in OS's DarkMode.
 
void OnDarkModeToggle ()
 Update the widget when the active board layer is changed.
 
void OnLayerChanged ()
 
void OnNetVisibilityChanged (int aNetCode, bool aVisibility)
 Notifies the panel when a net has been hidden or shown via the external tool.
 
void SetLayerVisible (int aLayer, bool isVisible)
 
void SetObjectVisible (GAL_LAYER_ID aLayer, bool isVisible=true)
 
void UpdateDisplayOptions ()
 Return a list of the layer presets created by the user.
 
std::vector< LAYER_PRESETGetUserLayerPresets () const
 Update the current layer presets from those saved in the project file.
 
void SetUserLayerPresets (std::vector< LAYER_PRESET > &aPresetList)
 
void ApplyLayerPreset (const wxString &aPresetName)
 
void ApplyLayerPreset (const LAYER_PRESET &aPreset)
 
wxString GetActiveLayerPreset () const
 
const wxArrayString & GetLayerPresetsMRU ()
 Return a list of viewports created by the user.
 
std::vector< VIEWPORTGetUserViewports () const
 Update the current viewports from those saved in the project file.
 
void SetUserViewports (std::vector< VIEWPORT > &aPresetList)
 
void ApplyViewport (const wxString &aPresetName)
 
void ApplyViewport (const VIEWPORT &aPreset)
 
const wxArrayString & GetViewportsMRU ()
 
void OnColorSwatchChanged (wxCommandEvent &aEvent)
 
void OnLayerContextMenu (wxCommandEvent &aEvent)
 Return the index of the current tab (0-2).
 
int GetTabIndex () const
 Set the current notebook tab.
 
void SetTabIndex (int aTab)
 
void RefreshCollapsiblePanes ()
 Function to force a redraw of the collapsible panes in this control.
 
bool IsLayerOptionsExpanded ()
 
bool IsNetOptionsExpanded ()
 
bool IsTogglingNetclassRatsnestVisibility ()
 
bool IsTogglingNetRatsnestVisibility ()
 
void m_netsTabSplitterOnIdle (wxIdleEvent &)
 
void SetBorders (bool aLeft, bool aRight, bool aTop, bool aBottom)
 
void SetBorderColor (const KIGFX::COLOR4D &aColor)
 
virtual void OnBoardHighlightNetChanged (BOARD &aBoard)
 
virtual void OnBoardRatsnestChanged (BOARD &aBoard)
 

Protected Member Functions

void OnNotebookPageChanged (wxNotebookEvent &event) override
 
void OnSetFocus (wxFocusEvent &aEvent) override
 
void OnSize (wxSizeEvent &aEvent) override
 
void OnNetGridClick (wxGridEvent &event) override
 
void OnNetGridDoubleClick (wxGridEvent &event) override
 
void OnNetGridRightClick (wxGridEvent &event) override
 
void OnNetGridMouseEvent (wxMouseEvent &aEvent)
 
void OnLanguageChanged (wxCommandEvent &aEvent)
 

Protected Attributes

wxBoxSizer * m_sizerOuter
 
wxNotebook * m_notebook
 
wxPanel * m_panelLayers
 
wxBoxSizer * m_panelLayersSizer
 
wxScrolledCanvas * m_windowLayers
 
wxPanel * m_panelObjects
 
wxBoxSizer * m_objectsPanelSizer
 
wxScrolledCanvas * m_windowObjects
 
wxPanel * m_panelNetsAndClasses
 
wxBoxSizer * m_netsTabOuterSizer
 
wxSplitterWindow * m_netsTabSplitter
 
wxPanel * m_panelNets
 
wxStaticText * m_staticTextNets
 
wxTextCtrl * m_txtNetFilter
 
BITMAP_BUTTONm_btnNetInspector
 
WX_GRIDm_netsGrid
 
wxPanel * m_panelNetclasses
 
wxStaticText * m_staticTextNetClasses
 
BITMAP_BUTTONm_btnConfigureNetClasses
 
wxScrolledWindow * m_netclassScrolledWindow
 
wxBoxSizer * m_netclassOuterSizer
 
wxStaticText * m_presetsLabel
 
wxChoice * m_cbLayerPresets
 
wxStaticText * m_viewportsLabel
 
wxChoice * m_cbViewports
 

Private Types

enum  POPUP_ID {
  ID_CHANGE_COLOR = wxID_HIGHEST , ID_SET_NET_COLOR , ID_CLEAR_NET_COLOR , ID_USE_SCHEMATIC_NET_COLOR ,
  ID_SHOW_ALL_NETS , ID_HIDE_OTHER_NETS , ID_HIGHLIGHT_NET , ID_SELECT_NET ,
  ID_DESELECT_NET , ID_SHOW_ALL_COPPER_LAYERS , ID_HIDE_ALL_COPPER_LAYERS , ID_HIDE_ALL_BUT_ACTIVE ,
  ID_PRESET_NO_LAYERS , ID_PRESET_ALL_LAYERS , ID_PRESET_FRONT , ID_PRESET_FRONT_ASSEMBLY ,
  ID_PRESET_INNER_COPPER , ID_PRESET_BACK , ID_PRESET_BACK_ASSEMBLY , ID_HIDE_ALL_NON_COPPER ,
  ID_SHOW_ALL_NON_COPPER , ID_LAST_VALUE
}
 

Private Member Functions

void createControls ()
 
void rebuildLayers ()
 
void rebuildLayerContextMenu ()
 
void syncColorsAndVisibility ()
 
void rebuildObjects ()
 
void syncObjectSettings ()
 
void buildNetClassMenu (wxMenu &aMenu, bool isDefaultClass, const wxString &aName)
 
void rebuildNets ()
 
void loadDefaultLayerPresets ()
 
void rebuildLayerPresetsWidget ()
 
void syncLayerPresetSelection ()
 
void rebuildViewportsWidget ()
 
void onLayerLeftClick (wxMouseEvent &aEvent)
 
void rightClickHandler (wxMouseEvent &aEvent)
 
void onLayerVisibilityToggled (PCB_LAYER_ID aLayer)
 
void onObjectVisibilityChanged (GAL_LAYER_ID aLayer, bool isVisible, bool isFinal)
 
void setVisibleLayers (LSET aLayers)
 
void setVisibleObjects (GAL_SET aObjects)
 
LSET getVisibleLayers ()
 
GAL_SET getVisibleObjects ()
 
void onObjectOpacitySlider (int aLayer, float aOpacity)
 
void updateLayerPresetSelection (const wxString &aName)
 
void onLayerPresetChanged (wxCommandEvent &aEvent) override
 
void doApplyLayerPreset (const LAYER_PRESET &aPreset)
 
void updateViewportSelection (const wxString &aName)
 
void onViewportChanged (wxCommandEvent &aEvent) override
 
void doApplyViewport (const VIEWPORT &aViewport)
 
void onNetclassVisibilityChanged (wxCommandEvent &aEvent)
 
void showNetclass (const wxString &aClassName, bool aShow=true)
 
void onNetContextMenu (wxCommandEvent &aEvent)
 
void onNetclassColorChanged (wxCommandEvent &aEvent)
 
wxString netclassNameFromEvent (wxEvent &aEvent)
 
void onNetColorMode (wxCommandEvent &aEvent)
 
void onRatsnestMode (wxCommandEvent &aEvent)
 
void onNetclassContextMenu (wxCommandEvent &aEvent)
 
void handleBoardItemsChanged ()
 
void passOnFocus ()
 
void idleFocusHandler (wxIdleEvent &aEvent)
 
void onReadOnlySwatch ()
 
bool doesBoardItemNeedRebuild (BOARD_ITEM *aBoardItem)
 
bool doesBoardItemNeedRebuild (std::vector< BOARD_ITEM * > &aBoardItems)
 
void OnPaint (wxPaintEvent &event)
 

Private Attributes

PCB_BASE_FRAMEm_frame
 
wxWindow * m_focusOwner
 
ROW_ICON_PROVIDERm_iconProvider
 
BOARDm_board
 
bool m_isFpEditor
 
NET_GRID_TABLEm_netsTable
 
GRID_BITMAP_TOGGLE_RENDERERm_toggleGridRenderer
 
wxGridCellCoords m_hoveredCell
 Grid cell that is being hovered over, for tooltips.
 
std::vector< std::unique_ptr< APPEARANCE_SETTING > > m_layerSettings
 
std::map< PCB_LAYER_ID, APPEARANCE_SETTING * > m_layerSettingsMap
 
std::vector< std::unique_ptr< APPEARANCE_SETTING > > m_objectSettings
 
std::map< GAL_LAYER_ID, APPEARANCE_SETTING * > m_objectSettingsMap
 
std::vector< std::unique_ptr< APPEARANCE_SETTING > > m_netclassSettings
 
std::map< wxString, APPEARANCE_SETTING * > m_netclassSettingsMap
 
std::map< wxString, LAYER_PRESETm_layerPresets
 
LAYER_PRESETm_currentPreset
 
LAYER_PRESETm_lastSelectedUserPreset
 
wxArrayString m_presetMRU
 
std::map< wxString, VIEWPORTm_viewports
 
VIEWPORTm_lastSelectedViewport
 
wxArrayString m_viewportMRU
 
wxMenu * m_layerContextMenu
 
std::map< int, wxString > m_netclassIdMap
 Stores wxIDs for each netclass for control event mapping.
 
wxString m_contextMenuNetclass
 The name of the netclass that was right-clicked.
 
wxBoxSizer * m_layersOuterSizer
 
wxBoxSizer * m_objectsOuterSizer
 
int m_pointSize
 
wxColour m_layerPanelColour
 
WX_COLLAPSIBLE_PANEm_paneLayerDisplayOptions
 
wxStaticText * m_inactiveLayersLabel
 
wxRadioButton * m_rbHighContrastNormal
 
wxRadioButton * m_rbHighContrastDim
 
wxRadioButton * m_rbHighContrastOff
 
wxStaticLine * m_layerDisplaySeparator
 
wxCheckBox * m_cbFlipBoard
 
WX_COLLAPSIBLE_PANEm_paneNetDisplayOptions
 
wxStaticText * m_txtNetDisplayTitle
 
wxRadioButton * m_rbNetColorAll
 
wxRadioButton * m_rbNetColorRatsnest
 
wxRadioButton * m_rbNetColorOff
 
wxStaticText * m_txtRatsnestVisibility
 
wxRadioButton * m_rbRatsnestAllLayers
 
wxRadioButton * m_rbRatsnestVisLayers
 
wxRadioButton * m_rbRatsnestNone
 
bool m_togglingNetclassRatsnestVisibility
 
bool m_leftBorder
 
bool m_rightBorder
 
bool m_topBorder
 
bool m_bottomBorder
 
KIGFX::COLOR4D m_borderColor
 

Static Private Attributes

static const APPEARANCE_SETTING s_objectSettings []
 Template for object appearance settings.
 
static LAYER_PRESET presetNoLayers
 
static LAYER_PRESET presetAllLayers
 
static LAYER_PRESET presetAllCopper
 
static LAYER_PRESET presetInnerCopper
 
static LAYER_PRESET presetFront
 
static LAYER_PRESET presetFrontAssembly
 
static LAYER_PRESET presetBack
 
static LAYER_PRESET presetBackAssembly
 
static LAYER_PRESET m_lastBuiltinPreset
 

Detailed Description

Definition at line 142 of file appearance_controls.h.

Member Enumeration Documentation

◆ POPUP_ID

Enumerator
ID_CHANGE_COLOR 
ID_SET_NET_COLOR 
ID_CLEAR_NET_COLOR 
ID_USE_SCHEMATIC_NET_COLOR 
ID_SHOW_ALL_NETS 
ID_HIDE_OTHER_NETS 
ID_HIGHLIGHT_NET 
ID_SELECT_NET 
ID_DESELECT_NET 
ID_SHOW_ALL_COPPER_LAYERS 
ID_HIDE_ALL_COPPER_LAYERS 
ID_HIDE_ALL_BUT_ACTIVE 
ID_PRESET_NO_LAYERS 
ID_PRESET_ALL_LAYERS 
ID_PRESET_FRONT 
ID_PRESET_FRONT_ASSEMBLY 
ID_PRESET_INNER_COPPER 
ID_PRESET_BACK 
ID_PRESET_BACK_ASSEMBLY 
ID_HIDE_ALL_NON_COPPER 
ID_SHOW_ALL_NON_COPPER 
ID_LAST_VALUE 

Definition at line 474 of file appearance_controls.h.

Constructor & Destructor Documentation

◆ APPEARANCE_CONTROLS()

APPEARANCE_CONTROLS::APPEARANCE_CONTROLS ( PCB_BASE_FRAME aParent,
wxWindow *  aFocusOwner,
bool  aFpEditor = false 
)

Definition at line 399 of file appearance_controls.cpp.

References _, PCBNEW_SETTINGS::AUI_PANELS::appearance_expand_layer_display, PCBNEW_SETTINGS::AUI_PANELS::appearance_expand_net_display, KIUI::c_IndicatorSizeDIP, NET_GRID_TABLE::COL_COLOR, NET_GRID_TABLE::COL_VISIBILITY, createControls(), WX_COLLAPSIBLE_PANE::Expand(), PCB_ACTIONS::flipBoard, PCB_BASE_FRAME::GetCanvas(), PCB_BASE_FRAME::GetDisplayOptions(), KIUI::GetInfoFont(), PCB_BASE_FRAME::GetPcbNewSettings(), TOOLS_HOLDER::GetToolManager(), PCB_DRAW_PANEL_GAL::GetView(), ID_CHANGE_COLOR, ID_LAST_VALUE, EDA_DRAW_FRAME::IsGridVisible(), KIGFX::VIEW::IsMirroredX(), KeyNameFromKeyCode(), KiBitmapBundle(), LAYER_GRID, loadDefaultLayerPresets(), PCBNEW_SETTINGS::m_AuiPanels, APPEARANCE_CONTROLS_BASE::m_btnConfigureNetClasses, APPEARANCE_CONTROLS_BASE::m_btnNetInspector, m_cbFlipBoard, APPEARANCE_CONTROLS_BASE::m_cbLayerPresets, APPEARANCE_CONTROLS_BASE::m_cbViewports, PCB_DISPLAY_OPTIONS::m_ContrastModeDisplay, m_frame, m_iconProvider, m_isFpEditor, m_layerPanelColour, m_layersOuterSizer, APPEARANCE_CONTROLS_BASE::m_netclassScrolledWindow, APPEARANCE_CONTROLS_BASE::m_netsGrid, m_netsTable, APPEARANCE_CONTROLS_BASE::m_notebook, m_objectsOuterSizer, m_paneLayerDisplayOptions, APPEARANCE_CONTROLS_BASE::m_panelLayers, APPEARANCE_CONTROLS_BASE::m_panelNets, m_paneNetDisplayOptions, m_pointSize, APPEARANCE_CONTROLS_BASE::m_presetsLabel, m_rbHighContrastDim, m_rbHighContrastNormal, m_rbHighContrastOff, APPEARANCE_CONTROLS_BASE::m_staticTextNetClasses, APPEARANCE_CONTROLS_BASE::m_staticTextNets, m_toggleGridRenderer, APPEARANCE_CONTROLS_BASE::m_txtNetFilter, APPEARANCE_CONTROLS_BASE::m_viewportsLabel, APPEARANCE_CONTROLS_BASE::m_windowLayers, APPEARANCE_CONTROLS_BASE::m_windowObjects, OnBoardChanged(), OnLanguageChanged(), OnLayerContextMenu(), onLayerPresetChanged(), OnNetGridMouseEvent(), OnSetFocus(), passOnFocus(), PRESET_SWITCH_KEY, rebuildObjects(), TOOL_MANAGER::RunAction(), BITMAP_BUTTON::SetBitmap(), WX_PANEL::SetBorders(), WX_GRID::SetColLabelSize(), PCB_BASE_FRAME::SetDisplayOptions(), SetObjectVisible(), BITMAP_BUTTON::SetPadding(), WX_GRID::SetTable(), PCB_ACTIONS::showNetInspector, SWATCH_SIZE_SMALL_DU(), SWATCH_SMALL, syncLayerPresetSelection(), and VIEWPORT_SWITCH_KEY.

◆ ~APPEARANCE_CONTROLS()

APPEARANCE_CONTROLS::~APPEARANCE_CONTROLS ( )

Definition at line 596 of file appearance_controls.cpp.

References m_frame, m_iconProvider, and OnLanguageChanged().

Member Function Documentation

◆ ApplyLayerPreset() [1/2]

void APPEARANCE_CONTROLS::ApplyLayerPreset ( const LAYER_PRESET aPreset)

◆ ApplyLayerPreset() [2/2]

void APPEARANCE_CONTROLS::ApplyLayerPreset ( const wxString &  aPresetName)

◆ ApplyViewport() [1/2]

void APPEARANCE_CONTROLS::ApplyViewport ( const VIEWPORT aPreset)

◆ ApplyViewport() [2/2]

void APPEARANCE_CONTROLS::ApplyViewport ( const wxString &  aPresetName)

◆ buildNetClassMenu()

◆ createControls()

◆ doApplyLayerPreset()

◆ doApplyViewport()

void APPEARANCE_CONTROLS::doApplyViewport ( const VIEWPORT aViewport)
private

◆ doesBoardItemNeedRebuild() [1/2]

bool APPEARANCE_CONTROLS::doesBoardItemNeedRebuild ( BOARD_ITEM aBoardItem)
private

◆ doesBoardItemNeedRebuild() [2/2]

bool APPEARANCE_CONTROLS::doesBoardItemNeedRebuild ( std::vector< BOARD_ITEM * > &  aBoardItems)
private

Definition at line 1102 of file appearance_controls.cpp.

◆ GetActiveLayerPreset()

wxString APPEARANCE_CONTROLS::GetActiveLayerPreset ( ) const
inline

◆ GetBestSize()

wxSize APPEARANCE_CONTROLS::GetBestSize ( ) const

Update the panel contents from the application and board models.

Definition at line 806 of file appearance_controls.cpp.

References DPI_SCALING_COMMON::GetScaleFactor(), and m_frame.

◆ GetLayerPresetsMRU()

const wxArrayString & APPEARANCE_CONTROLS::GetLayerPresetsMRU ( )
inline

Return a list of viewports created by the user.

Definition at line 258 of file appearance_controls.h.

References m_presetMRU.

Referenced by PCB_BASE_EDIT_FRAME::TryBefore().

◆ GetTabIndex()

int APPEARANCE_CONTROLS::GetTabIndex ( ) const

Set the current notebook tab.

Definition at line 1971 of file appearance_controls.cpp.

References APPEARANCE_CONTROLS_BASE::m_notebook.

Referenced by FOOTPRINT_EDIT_FRAME::SaveSettings(), and PCB_EDIT_FRAME::SaveSettings().

◆ GetUserLayerPresets()

std::vector< LAYER_PRESET > APPEARANCE_CONTROLS::GetUserLayerPresets ( ) const

Update the current layer presets from those saved in the project file.

Definition at line 1424 of file appearance_controls.cpp.

References m_layerPresets.

Referenced by PCB_EDIT_FRAME::SaveProjectLocalSettings(), and FOOTPRINT_EDIT_FRAME::SaveSettings().

◆ GetUserViewports()

std::vector< VIEWPORT > APPEARANCE_CONTROLS::GetUserViewports ( ) const

Update the current viewports from those saved in the project file.

Definition at line 1499 of file appearance_controls.cpp.

References m_viewports.

Referenced by PCB_EDIT_FRAME::SaveProjectLocalSettings().

◆ GetViewportsMRU()

const wxArrayString & APPEARANCE_CONTROLS::GetViewportsMRU ( )
inline

Definition at line 270 of file appearance_controls.h.

References m_viewportMRU.

Referenced by PCB_BASE_EDIT_FRAME::TryBefore().

◆ getVisibleLayers()

◆ getVisibleObjects()

◆ handleBoardItemsChanged()

void APPEARANCE_CONTROLS::handleBoardItemsChanged ( )
private

◆ idleFocusHandler()

void APPEARANCE_CONTROLS::idleFocusHandler ( wxIdleEvent &  aEvent)
private

Definition at line 850 of file appearance_controls.cpp.

References idleFocusHandler(), and passOnFocus().

Referenced by idleFocusHandler(), and OnNotebookPageChanged().

◆ IsLayerOptionsExpanded()

bool APPEARANCE_CONTROLS::IsLayerOptionsExpanded ( )

◆ IsNetOptionsExpanded()

bool APPEARANCE_CONTROLS::IsNetOptionsExpanded ( )

◆ IsTogglingNetclassRatsnestVisibility()

bool APPEARANCE_CONTROLS::IsTogglingNetclassRatsnestVisibility ( )

◆ IsTogglingNetRatsnestVisibility()

bool APPEARANCE_CONTROLS::IsTogglingNetRatsnestVisibility ( )

◆ loadDefaultLayerPresets()

void APPEARANCE_CONTROLS::loadDefaultLayerPresets ( )
private

◆ m_netsTabSplitterOnIdle()

void APPEARANCE_CONTROLS_BASE::m_netsTabSplitterOnIdle ( wxIdleEvent &  )
inlineinherited

◆ netclassNameFromEvent()

wxString APPEARANCE_CONTROLS::netclassNameFromEvent ( wxEvent &  aEvent)
private

Definition at line 3180 of file appearance_controls.cpp.

References m_netclassIdMap.

Referenced by onNetclassColorChanged(), and onNetclassVisibilityChanged().

◆ OnBoardChanged()

◆ OnBoardCompositeUpdate()

void APPEARANCE_CONTROLS::OnBoardCompositeUpdate ( BOARD aBoard,
std::vector< BOARD_ITEM * > &  aAddedItems,
std::vector< BOARD_ITEM * > &  aRemovedItems,
std::vector< BOARD_ITEM * > &  aDeletedItems 
)
overridevirtual

Update the colors on all the widgets from the new chosen color theme.

Reimplemented from BOARD_LISTENER.

Definition at line 1156 of file appearance_controls.cpp.

References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().

◆ OnBoardHighlightNetChanged()

virtual void BOARD_LISTENER::OnBoardHighlightNetChanged ( BOARD aBoard)
inlinevirtualinherited

Reimplemented in PCB_NET_INSPECTOR_PANEL, and PCB_SEARCH_PANE.

Definition at line 262 of file board.h.

Referenced by BOARD::HighLightON(), BOARD::ResetNetHighLight(), and BOARD::SetHighLightNet().

◆ OnBoardItemAdded()

void APPEARANCE_CONTROLS::OnBoardItemAdded ( BOARD aBoard,
BOARD_ITEM aItem 
)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1114 of file appearance_controls.cpp.

References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().

◆ OnBoardItemChanged()

void APPEARANCE_CONTROLS::OnBoardItemChanged ( BOARD aBoard,
BOARD_ITEM aItem 
)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1142 of file appearance_controls.cpp.

References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().

◆ OnBoardItemRemoved()

void APPEARANCE_CONTROLS::OnBoardItemRemoved ( BOARD aBoard,
BOARD_ITEM aItem 
)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1128 of file appearance_controls.cpp.

References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().

◆ OnBoardItemsAdded()

void APPEARANCE_CONTROLS::OnBoardItemsAdded ( BOARD aBoard,
std::vector< BOARD_ITEM * > &  aItems 
)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1121 of file appearance_controls.cpp.

References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().

◆ OnBoardItemsChanged()

void APPEARANCE_CONTROLS::OnBoardItemsChanged ( BOARD aBoard,
std::vector< BOARD_ITEM * > &  aItems 
)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1149 of file appearance_controls.cpp.

References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().

◆ OnBoardItemsRemoved()

void APPEARANCE_CONTROLS::OnBoardItemsRemoved ( BOARD aBoard,
std::vector< BOARD_ITEM * > &  aItems 
)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1135 of file appearance_controls.cpp.

References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().

◆ OnBoardNetSettingsChanged()

void APPEARANCE_CONTROLS::OnBoardNetSettingsChanged ( BOARD aBoard)
overridevirtual

Reimplemented from BOARD_LISTENER.

Definition at line 1075 of file appearance_controls.cpp.

References handleBoardItemsChanged().

◆ OnBoardRatsnestChanged()

virtual void BOARD_LISTENER::OnBoardRatsnestChanged ( BOARD aBoard)
inlinevirtualinherited

Reimplemented in PCB_SEARCH_PANE.

Definition at line 263 of file board.h.

Referenced by BOARD::OnRatsnestChanged().

◆ OnColorSwatchChanged()

◆ OnColorThemeChanged()

void APPEARANCE_CONTROLS::OnColorThemeChanged ( )

Respond to change in OS's DarkMode.

Definition at line 1177 of file appearance_controls.cpp.

References syncColorsAndVisibility(), and syncObjectSettings().

Referenced by PCB_EDIT_FRAME::CommonSettingsChanged().

◆ OnDarkModeToggle()

void APPEARANCE_CONTROLS::OnDarkModeToggle ( )

◆ OnLanguageChanged()

◆ OnLayerChanged()

◆ OnLayerContextMenu()

◆ onLayerLeftClick()

void APPEARANCE_CONTROLS::onLayerLeftClick ( wxMouseEvent &  aEvent)
private

◆ onLayerPresetChanged()

◆ onLayerVisibilityToggled()

◆ onNetclassColorChanged()

◆ onNetclassContextMenu()

◆ onNetclassVisibilityChanged()

void APPEARANCE_CONTROLS::onNetclassVisibilityChanged ( wxCommandEvent &  aEvent)
private

Definition at line 3120 of file appearance_controls.cpp.

References netclassNameFromEvent(), passOnFocus(), and showNetclass().

Referenced by rebuildNets().

◆ onNetColorMode()

◆ onNetContextMenu()

◆ OnNetGridClick()

void APPEARANCE_CONTROLS::OnNetGridClick ( wxGridEvent &  event)
overrideprotectedvirtual

◆ OnNetGridDoubleClick()

void APPEARANCE_CONTROLS::OnNetGridDoubleClick ( wxGridEvent &  event)
overrideprotectedvirtual

◆ OnNetGridMouseEvent()

void APPEARANCE_CONTROLS::OnNetGridMouseEvent ( wxMouseEvent &  aEvent)
protected

◆ OnNetGridRightClick()

void APPEARANCE_CONTROLS::OnNetGridRightClick ( wxGridEvent &  event)
overrideprotectedvirtual

◆ OnNetVisibilityChanged()

void APPEARANCE_CONTROLS::OnNetVisibilityChanged ( int  aNetCode,
bool  aVisibility 
)

Notifies the panel when a net has been hidden or shown via the external tool.

Manually update visibility for a given layer

Definition at line 1081 of file appearance_controls.cpp.

References NET_GRID_TABLE::COL_VISIBILITY, NET_GRID_TABLE::GetRowByNetcode(), APPEARANCE_CONTROLS_BASE::m_netsGrid, m_netsTable, m_togglingNetclassRatsnestVisibility, and NET_GRID_TABLE::SetValueAsBool().

Referenced by BOARD_INSPECTION_TOOL::doHideRatsnestNet().

◆ OnNotebookPageChanged()

void APPEARANCE_CONTROLS::OnNotebookPageChanged ( wxNotebookEvent &  event)
overrideprotectedvirtual

◆ onObjectOpacitySlider()

◆ onObjectVisibilityChanged()

◆ OnPaint()

◆ onRatsnestMode()

◆ onReadOnlySwatch()

◆ OnSetFocus()

void APPEARANCE_CONTROLS::OnSetFocus ( wxFocusEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from APPEARANCE_CONTROLS_BASE.

Definition at line 857 of file appearance_controls.cpp.

References passOnFocus().

Referenced by APPEARANCE_CONTROLS(), and rebuildObjects().

◆ OnSize()

void APPEARANCE_CONTROLS::OnSize ( wxSizeEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from APPEARANCE_CONTROLS_BASE.

Definition at line 874 of file appearance_controls.cpp.

◆ onViewportChanged()

◆ passOnFocus()

◆ rebuildLayerContextMenu()

◆ rebuildLayerPresetsWidget()

◆ rebuildLayers()

◆ rebuildNets()

void APPEARANCE_CONTROLS::rebuildNets ( )
private

◆ rebuildObjects()

◆ rebuildViewportsWidget()

◆ RefreshCollapsiblePanes()

void APPEARANCE_CONTROLS::RefreshCollapsiblePanes ( )

Function to force a redraw of the collapsible panes in this control.

Definition at line 3445 of file appearance_controls.cpp.

References m_paneLayerDisplayOptions.

Referenced by PCB_BASE_EDIT_FRAME::handleActivateEvent().

◆ rightClickHandler()

void APPEARANCE_CONTROLS::rightClickHandler ( wxMouseEvent &  aEvent)
private

Definition at line 2048 of file appearance_controls.cpp.

References m_layerContextMenu, and passOnFocus().

Referenced by rebuildLayers().

◆ SetBorderColor()

void WX_PANEL::SetBorderColor ( const KIGFX::COLOR4D aColor)
inlineinherited

Definition at line 47 of file wx_panel.h.

References WX_PANEL::m_borderColor.

Referenced by SYMBOL_TREE_SYNCHRONIZING_ADAPTER::ShowPreview().

◆ SetBorders()

◆ SetLayerVisible()

◆ SetObjectVisible()

◆ SetTabIndex()

void APPEARANCE_CONTROLS::SetTabIndex ( int  aTab)

Definition at line 1977 of file appearance_controls.cpp.

References APPEARANCE_CONTROLS_BASE::m_notebook.

◆ SetUserLayerPresets()

void APPEARANCE_CONTROLS::SetUserLayerPresets ( std::vector< LAYER_PRESET > &  aPresetList)

◆ SetUserViewports()

void APPEARANCE_CONTROLS::SetUserViewports ( std::vector< VIEWPORT > &  aPresetList)

◆ setVisibleLayers()

◆ setVisibleObjects()

◆ showNetclass()

◆ syncColorsAndVisibility()

◆ syncLayerPresetSelection()

◆ syncObjectSettings()

◆ UpdateDisplayOptions()

◆ updateLayerPresetSelection()

void APPEARANCE_CONTROLS::updateLayerPresetSelection ( const wxString &  aName)
private

◆ updateViewportSelection()

void APPEARANCE_CONTROLS::updateViewportSelection ( const wxString &  aName)
private

Member Data Documentation

◆ m_board

BOARD* APPEARANCE_CONTROLS::m_board
private

Definition at line 394 of file appearance_controls.h.

Referenced by OnBoardChanged().

◆ m_borderColor

KIGFX::COLOR4D WX_PANEL::m_borderColor
privateinherited

Definition at line 61 of file wx_panel.h.

Referenced by WX_PANEL::OnPaint(), and WX_PANEL::SetBorderColor().

◆ m_bottomBorder

bool WX_PANEL::m_bottomBorder
privateinherited

Definition at line 59 of file wx_panel.h.

Referenced by WX_PANEL::OnPaint(), and WX_PANEL::SetBorders().

◆ m_btnConfigureNetClasses

BITMAP_BUTTON* APPEARANCE_CONTROLS_BASE::m_btnConfigureNetClasses
protectedinherited

◆ m_btnNetInspector

BITMAP_BUTTON* APPEARANCE_CONTROLS_BASE::m_btnNetInspector
protectedinherited

◆ m_cbFlipBoard

wxCheckBox* APPEARANCE_CONTROLS::m_cbFlipBoard
private

◆ m_cbLayerPresets

◆ m_cbViewports

◆ m_contextMenuNetclass

wxString APPEARANCE_CONTROLS::m_contextMenuNetclass
private

The name of the netclass that was right-clicked.

Definition at line 432 of file appearance_controls.h.

Referenced by onNetclassContextMenu(), and rebuildNets().

◆ m_currentPreset

◆ m_focusOwner

wxWindow* APPEARANCE_CONTROLS::m_focusOwner
private

Definition at line 388 of file appearance_controls.h.

Referenced by passOnFocus().

◆ m_frame

◆ m_hoveredCell

wxGridCellCoords APPEARANCE_CONTROLS::m_hoveredCell
private

Grid cell that is being hovered over, for tooltips.

Definition at line 404 of file appearance_controls.h.

Referenced by OnNetGridMouseEvent().

◆ m_iconProvider

ROW_ICON_PROVIDER* APPEARANCE_CONTROLS::m_iconProvider
private

Definition at line 392 of file appearance_controls.h.

Referenced by APPEARANCE_CONTROLS(), rebuildLayers(), and ~APPEARANCE_CONTROLS().

◆ m_inactiveLayersLabel

wxStaticText* APPEARANCE_CONTROLS::m_inactiveLayersLabel
private

Definition at line 456 of file appearance_controls.h.

Referenced by createControls(), and rebuildLayers().

◆ m_isFpEditor

◆ m_lastBuiltinPreset

LAYER_PRESET APPEARANCE_CONTROLS::m_lastBuiltinPreset
staticprivate

Definition at line 448 of file appearance_controls.h.

Referenced by onLayerPresetChanged().

◆ m_lastSelectedUserPreset

LAYER_PRESET* APPEARANCE_CONTROLS::m_lastSelectedUserPreset
private

Definition at line 419 of file appearance_controls.h.

Referenced by ApplyLayerPreset(), and onLayerPresetChanged().

◆ m_lastSelectedViewport

VIEWPORT* APPEARANCE_CONTROLS::m_lastSelectedViewport
private

◆ m_layerContextMenu

wxMenu* APPEARANCE_CONTROLS::m_layerContextMenu
private

Definition at line 426 of file appearance_controls.h.

Referenced by rebuildLayerContextMenu(), and rightClickHandler().

◆ m_layerDisplaySeparator

wxStaticLine* APPEARANCE_CONTROLS::m_layerDisplaySeparator
private

Definition at line 460 of file appearance_controls.h.

Referenced by createControls().

◆ m_layerPanelColour

wxColour APPEARANCE_CONTROLS::m_layerPanelColour
private

◆ m_layerPresets

◆ m_layerSettings

std::vector<std::unique_ptr<APPEARANCE_SETTING> > APPEARANCE_CONTROLS::m_layerSettings
private

Definition at line 406 of file appearance_controls.h.

Referenced by OnLayerChanged(), rebuildLayers(), and syncColorsAndVisibility().

◆ m_layerSettingsMap

std::map<PCB_LAYER_ID, APPEARANCE_SETTING*> APPEARANCE_CONTROLS::m_layerSettingsMap
private

Definition at line 407 of file appearance_controls.h.

Referenced by OnLayerChanged(), and rebuildLayers().

◆ m_layersOuterSizer

wxBoxSizer* APPEARANCE_CONTROLS::m_layersOuterSizer
private

Definition at line 434 of file appearance_controls.h.

Referenced by APPEARANCE_CONTROLS(), OnDarkModeToggle(), and rebuildLayers().

◆ m_leftBorder

bool WX_PANEL::m_leftBorder
privateinherited

Definition at line 56 of file wx_panel.h.

Referenced by WX_PANEL::OnPaint(), and WX_PANEL::SetBorders().

◆ m_netclassIdMap

std::map<int, wxString> APPEARANCE_CONTROLS::m_netclassIdMap
private

Stores wxIDs for each netclass for control event mapping.

Definition at line 429 of file appearance_controls.h.

Referenced by netclassNameFromEvent(), and rebuildNets().

◆ m_netclassOuterSizer

wxBoxSizer* APPEARANCE_CONTROLS_BASE::m_netclassOuterSizer
protectedinherited

◆ m_netclassScrolledWindow

wxScrolledWindow* APPEARANCE_CONTROLS_BASE::m_netclassScrolledWindow
protectedinherited

◆ m_netclassSettings

std::vector<std::unique_ptr<APPEARANCE_SETTING> > APPEARANCE_CONTROLS::m_netclassSettings
private

Definition at line 412 of file appearance_controls.h.

Referenced by rebuildNets().

◆ m_netclassSettingsMap

std::map<wxString, APPEARANCE_SETTING*> APPEARANCE_CONTROLS::m_netclassSettingsMap
private

Definition at line 413 of file appearance_controls.h.

Referenced by OnDarkModeToggle(), onNetclassContextMenu(), and rebuildNets().

◆ m_netsGrid

◆ m_netsTable

◆ m_netsTabOuterSizer

wxBoxSizer* APPEARANCE_CONTROLS_BASE::m_netsTabOuterSizer
protectedinherited

◆ m_netsTabSplitter

wxSplitterWindow* APPEARANCE_CONTROLS_BASE::m_netsTabSplitter
protectedinherited

◆ m_notebook

◆ m_objectSettings

std::vector<std::unique_ptr<APPEARANCE_SETTING> > APPEARANCE_CONTROLS::m_objectSettings
private

◆ m_objectSettingsMap

std::map<GAL_LAYER_ID, APPEARANCE_SETTING*> APPEARANCE_CONTROLS::m_objectSettingsMap
private

◆ m_objectsOuterSizer

wxBoxSizer* APPEARANCE_CONTROLS::m_objectsOuterSizer
private

Definition at line 435 of file appearance_controls.h.

Referenced by APPEARANCE_CONTROLS(), and rebuildObjects().

◆ m_objectsPanelSizer

wxBoxSizer* APPEARANCE_CONTROLS_BASE::m_objectsPanelSizer
protectedinherited

◆ m_paneLayerDisplayOptions

WX_COLLAPSIBLE_PANE* APPEARANCE_CONTROLS::m_paneLayerDisplayOptions
private

◆ m_panelLayers

◆ m_panelLayersSizer

wxBoxSizer* APPEARANCE_CONTROLS_BASE::m_panelLayersSizer
protectedinherited

◆ m_panelNetclasses

wxPanel* APPEARANCE_CONTROLS_BASE::m_panelNetclasses
protectedinherited

◆ m_panelNets

wxPanel* APPEARANCE_CONTROLS_BASE::m_panelNets
protectedinherited

◆ m_panelNetsAndClasses

wxPanel* APPEARANCE_CONTROLS_BASE::m_panelNetsAndClasses
protectedinherited

◆ m_panelObjects

wxPanel* APPEARANCE_CONTROLS_BASE::m_panelObjects
protectedinherited

◆ m_paneNetDisplayOptions

WX_COLLAPSIBLE_PANE* APPEARANCE_CONTROLS::m_paneNetDisplayOptions
private

◆ m_pointSize

int APPEARANCE_CONTROLS::m_pointSize
private

Definition at line 450 of file appearance_controls.h.

Referenced by APPEARANCE_CONTROLS(), and rebuildObjects().

◆ m_presetMRU

wxArrayString APPEARANCE_CONTROLS::m_presetMRU
private

◆ m_presetsLabel

wxStaticText* APPEARANCE_CONTROLS_BASE::m_presetsLabel
protectedinherited

◆ m_rbHighContrastDim

wxRadioButton* APPEARANCE_CONTROLS::m_rbHighContrastDim
private

◆ m_rbHighContrastNormal

wxRadioButton* APPEARANCE_CONTROLS::m_rbHighContrastNormal
private

◆ m_rbHighContrastOff

wxRadioButton* APPEARANCE_CONTROLS::m_rbHighContrastOff
private

◆ m_rbNetColorAll

wxRadioButton* APPEARANCE_CONTROLS::m_rbNetColorAll
private

◆ m_rbNetColorOff

wxRadioButton* APPEARANCE_CONTROLS::m_rbNetColorOff
private

Definition at line 468 of file appearance_controls.h.

Referenced by createControls(), rebuildNets(), and UpdateDisplayOptions().

◆ m_rbNetColorRatsnest

wxRadioButton* APPEARANCE_CONTROLS::m_rbNetColorRatsnest
private

◆ m_rbRatsnestAllLayers

wxRadioButton* APPEARANCE_CONTROLS::m_rbRatsnestAllLayers
private

◆ m_rbRatsnestNone

wxRadioButton* APPEARANCE_CONTROLS::m_rbRatsnestNone
private

Definition at line 472 of file appearance_controls.h.

Referenced by createControls(), rebuildNets(), and UpdateDisplayOptions().

◆ m_rbRatsnestVisLayers

wxRadioButton* APPEARANCE_CONTROLS::m_rbRatsnestVisLayers
private

◆ m_rightBorder

bool WX_PANEL::m_rightBorder
privateinherited

Definition at line 57 of file wx_panel.h.

Referenced by WX_PANEL::OnPaint(), and WX_PANEL::SetBorders().

◆ m_sizerOuter

wxBoxSizer* APPEARANCE_CONTROLS_BASE::m_sizerOuter
protectedinherited

◆ m_staticTextNetClasses

wxStaticText* APPEARANCE_CONTROLS_BASE::m_staticTextNetClasses
protectedinherited

◆ m_staticTextNets

wxStaticText* APPEARANCE_CONTROLS_BASE::m_staticTextNets
protectedinherited

◆ m_toggleGridRenderer

GRID_BITMAP_TOGGLE_RENDERER* APPEARANCE_CONTROLS::m_toggleGridRenderer
private

Definition at line 401 of file appearance_controls.h.

Referenced by APPEARANCE_CONTROLS().

◆ m_togglingNetclassRatsnestVisibility

bool APPEARANCE_CONTROLS::m_togglingNetclassRatsnestVisibility
private

◆ m_topBorder

bool WX_PANEL::m_topBorder
privateinherited

Definition at line 58 of file wx_panel.h.

Referenced by WX_PANEL::OnPaint(), and WX_PANEL::SetBorders().

◆ m_txtNetDisplayTitle

wxStaticText* APPEARANCE_CONTROLS::m_txtNetDisplayTitle
private

Definition at line 465 of file appearance_controls.h.

Referenced by createControls(), and rebuildNets().

◆ m_txtNetFilter

wxTextCtrl* APPEARANCE_CONTROLS_BASE::m_txtNetFilter
protectedinherited

◆ m_txtRatsnestVisibility

wxStaticText* APPEARANCE_CONTROLS::m_txtRatsnestVisibility
private

Definition at line 469 of file appearance_controls.h.

Referenced by createControls(), and rebuildNets().

◆ m_viewportMRU

wxArrayString APPEARANCE_CONTROLS::m_viewportMRU
private

Definition at line 424 of file appearance_controls.h.

Referenced by GetViewportsMRU(), onViewportChanged(), and SetUserViewports().

◆ m_viewports

std::map<wxString, VIEWPORT> APPEARANCE_CONTROLS::m_viewports
private

◆ m_viewportsLabel

wxStaticText* APPEARANCE_CONTROLS_BASE::m_viewportsLabel
protectedinherited

◆ m_windowLayers

wxScrolledCanvas* APPEARANCE_CONTROLS_BASE::m_windowLayers
protectedinherited

◆ m_windowObjects

wxScrolledCanvas* APPEARANCE_CONTROLS_BASE::m_windowObjects
protectedinherited

◆ presetAllCopper

LAYER_PRESET APPEARANCE_CONTROLS::presetAllCopper
staticprivate

Definition at line 440 of file appearance_controls.h.

Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().

◆ presetAllLayers

LAYER_PRESET APPEARANCE_CONTROLS::presetAllLayers
staticprivate

◆ presetBack

LAYER_PRESET APPEARANCE_CONTROLS::presetBack
staticprivate

Definition at line 444 of file appearance_controls.h.

Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().

◆ presetBackAssembly

LAYER_PRESET APPEARANCE_CONTROLS::presetBackAssembly
staticprivate

Definition at line 445 of file appearance_controls.h.

Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().

◆ presetFront

LAYER_PRESET APPEARANCE_CONTROLS::presetFront
staticprivate

Definition at line 442 of file appearance_controls.h.

Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().

◆ presetFrontAssembly

LAYER_PRESET APPEARANCE_CONTROLS::presetFrontAssembly
staticprivate

Definition at line 443 of file appearance_controls.h.

Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().

◆ presetInnerCopper

LAYER_PRESET APPEARANCE_CONTROLS::presetInnerCopper
staticprivate

Definition at line 441 of file appearance_controls.h.

Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().

◆ presetNoLayers

LAYER_PRESET APPEARANCE_CONTROLS::presetNoLayers
staticprivate

Definition at line 438 of file appearance_controls.h.

Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().

◆ s_objectSettings

const APPEARANCE_CONTROLS::APPEARANCE_SETTING APPEARANCE_CONTROLS::s_objectSettings
staticprivate
Initial value:
= {
#define RR
RR( _HKI( "Tracks" ), LAYER_TRACKS, _HKI( "Show tracks" ), true ),
RR( _HKI( "Vias" ), LAYER_VIAS, _HKI( "Show all vias" ), true ),
RR( _HKI( "Pads" ), LAYER_PADS, _HKI( "Show all pads" ), true ),
RR( _HKI( "Zones" ), LAYER_ZONES, _HKI( "Show copper zones" ), true ),
RR( _HKI( "Filled Shapes" ), LAYER_SHAPES, _HKI( "Opacity of filled shapes" ), true, false ),
RR( _HKI( "Images" ), LAYER_DRAW_BITMAPS, _HKI( "Show user images" ), true ),
RR(),
RR( _HKI( "Footprints Front" ), LAYER_FOOTPRINTS_FR, _HKI( "Show footprints that are on board's front" ) ),
RR( _HKI( "Footprints Back" ), LAYER_FOOTPRINTS_BK, _HKI( "Show footprints that are on board's back" ) ),
RR( _HKI( "Values" ), LAYER_FP_VALUES, _HKI( "Show footprint values" ) ),
RR( _HKI( "References" ), LAYER_FP_REFERENCES, _HKI( "Show footprint references" ) ),
RR( _HKI( "Footprint Text" ), LAYER_FP_TEXT, _HKI( "Show all footprint text" ) ),
RR(),
RR(),
RR( _HKI( "Ratsnest" ), LAYER_RATSNEST, _HKI( "Show unconnected nets as a ratsnest") ),
RR( _HKI( "DRC Warnings" ), LAYER_DRC_WARNING, _HKI( "DRC violations with a Warning severity" ) ),
RR( _HKI( "DRC Errors" ), LAYER_DRC_ERROR, _HKI( "DRC violations with an Error severity" ) ),
RR( _HKI( "DRC Exclusions" ), LAYER_DRC_EXCLUSION, _HKI( "DRC violations which have been individually excluded" ) ),
RR( _HKI( "Anchors" ), LAYER_ANCHOR, _HKI( "Show footprint and text origins as a cross" ) ),
RR( _HKI( "Locked Item Shadow" ), LAYER_LOCKED_ITEM_SHADOW, _HKI( "Show a shadow marker on locked items" ) ),
RR( _HKI( "Conflict Footprint Shadow" ), LAYER_CONFLICTS_SHADOW, _HKI( "Show a shadow marker on conflicting footprints" ) ),
RR( _HKI( "Drawing Sheet" ), LAYER_DRAWINGSHEET, _HKI( "Show drawing sheet borders and title block" ) ),
RR( _HKI( "Grid" ), LAYER_GRID, _HKI( "Show the (x,y) grid dots" ) )
}
#define RR
#define _HKI(x)
@ LAYER_GRID
Definition: layer_ids.h:206
@ LAYER_LOCKED_ITEM_SHADOW
shadow layer for locked items
Definition: layer_ids.h:240
@ LAYER_CONFLICTS_SHADOW
shadow layer for items flagged conficting
Definition: layer_ids.h:242
@ LAYER_FOOTPRINTS_FR
show footprints on front
Definition: layer_ids.h:209
@ LAYER_DRAWINGSHEET
drawingsheet frame and titleblock
Definition: layer_ids.h:218
@ LAYER_DRAW_BITMAPS
to handle and draw images bitmaps
Definition: layer_ids.h:224
@ LAYER_FP_REFERENCES
show footprints references (when texts are visible)
Definition: layer_ids.h:212
@ LAYER_DRC_EXCLUSION
layer for drc markers which have been individually excluded
Definition: layer_ids.h:237
@ LAYER_ZONES
Control for copper zone opacity/visibility (color ignored)
Definition: layer_ids.h:232
@ LAYER_SHAPES
Copper graphic shape opacity/visibility (color ignored)
Definition: layer_ids.h:243
@ LAYER_PADS
Meta control for all pads opacity/visibility (color ignored)
Definition: layer_ids.h:231
@ LAYER_DRC_WARNING
layer for drc markers with SEVERITY_WARNING
Definition: layer_ids.h:236
@ LAYER_TRACKS
Definition: layer_ids.h:213
@ LAYER_RATSNEST
Definition: layer_ids.h:205
@ LAYER_FP_TEXT
Definition: layer_ids.h:199
@ LAYER_FOOTPRINTS_BK
show footprints on back
Definition: layer_ids.h:210
@ LAYER_ANCHOR
anchor of items having an anchor point (texts, footprints)
Definition: layer_ids.h:202
@ LAYER_FP_VALUES
show footprints values (when texts are visible)
Definition: layer_ids.h:211
@ LAYER_DRC_ERROR
layer for drc markers with SEVERITY_ERROR
Definition: layer_ids.h:217
@ LAYER_VIAS
Meta control for all vias opacity/visibility.
Definition: layer_ids.h:194

Template for object appearance settings.

Definition at line 390 of file appearance_controls.h.

Referenced by rebuildObjects().


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