KiCad PCB EDA Suite
|
#include <appearance_controls.h>
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 () | |
APPEARANCE_CONTROLS (const APPEARANCE_CONTROLS &)=delete | |
APPEARANCE_CONTROLS & | operator= (const APPEARANCE_CONTROLS &)=delete |
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 * > &aChangedItems) 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_PRESET > | GetUserLayerPresets () 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< VIEWPORT > | GetUserViewports () 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_BUTTON * | m_btnNetInspector |
WX_GRID * | m_netsGrid |
wxPanel * | m_panelNetclasses |
wxStaticText * | m_staticTextNetClasses |
BITMAP_BUTTON * | m_btnConfigureNetClasses |
wxScrolledWindow * | m_netclassScrolledWindow |
wxBoxSizer * | m_netclassOuterSizer |
wxStaticText * | m_presetsLabel |
wxChoice * | m_cbLayerPresets |
wxStaticText * | m_viewportsLabel |
wxChoice * | m_cbViewports |
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 (bool aReset) |
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 (const LSET &aLayers) |
bool | isLayerEnabled (PCB_LAYER_ID aLayer) const |
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) |
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 |
Definition at line 142 of file appearance_controls.h.
|
private |
Definition at line 485 of file appearance_controls.h.
APPEARANCE_CONTROLS::APPEARANCE_CONTROLS | ( | PCB_BASE_FRAME * | aParent, |
wxWindow * | aFocusOwner, | ||
bool | aFpEditor = false ) |
Definition at line 406 of file appearance_controls.cpp.
References _, APPEARANCE_CONTROLS_BASE::APPEARANCE_CONTROLS_BASE(), KIUI::c_IndicatorSizeDIP, NET_GRID_TABLE::COL_COLOR, NET_GRID_TABLE::COL_VISIBILITY, createControls(), DIMMED, PCB_ACTIONS::flipBoard, KIUI::GetInfoFont(), HIDDEN, ID_CHANGE_COLOR, ID_LAST_VALUE, KeyNameFromKeyCode(), KiBitmapBundle(), LAYER_GRID, list_nets_16, loadDefaultLayerPresets(), m_board, 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_currentPreset, m_focusOwner, m_frame, m_iconProvider, m_isFpEditor, m_lastSelectedUserPreset, m_layerContextMenu, m_layerPanelColour, m_layersOuterSizer, APPEARANCE_CONTROLS_BASE::m_netclassScrolledWindow, APPEARANCE_CONTROLS_BASE::m_netsGrid, m_netsTable, APPEARANCE_CONTROLS_BASE::m_notebook, m_notVisibileBitmapBundle, 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, m_togglingNetclassRatsnestVisibility, APPEARANCE_CONTROLS_BASE::m_txtNetFilter, APPEARANCE_CONTROLS_BASE::m_viewportsLabel, m_visibleBitmapBundle, APPEARANCE_CONTROLS_BASE::m_windowLayers, APPEARANCE_CONTROLS_BASE::m_windowObjects, NORMAL, OnBoardChanged(), OnLanguageChanged(), OnLayerContextMenu(), onLayerPresetChanged(), OnNetGridMouseEvent(), OnSetFocus(), options_generic_16, passOnFocus(), PRESET_SWITCH_KEY, rebuildLayerPresetsWidget(), rebuildObjects(), WX_PANEL::SetBorders(), SetObjectVisible(), PCB_ACTIONS::showNetInspector, SWATCH_SIZE_SMALL_DU(), SWATCH_SMALL, syncLayerPresetSelection(), VIEWPORT_SWITCH_KEY, visibility, and visibility_off.
Referenced by APPEARANCE_CONTROLS(), and operator=().
APPEARANCE_CONTROLS::~APPEARANCE_CONTROLS | ( | ) |
Definition at line 606 of file appearance_controls.cpp.
References m_frame, m_iconProvider, and OnLanguageChanged().
|
delete |
References APPEARANCE_CONTROLS().
void APPEARANCE_CONTROLS::ApplyLayerPreset | ( | const LAYER_PRESET & | aPreset | ) |
Definition at line 1509 of file appearance_controls.cpp.
References doApplyLayerPreset(), m_currentPreset, m_lastSelectedUserPreset, m_layerPresets, LAYER_PRESET::name, and updateLayerPresetSelection().
void APPEARANCE_CONTROLS::ApplyLayerPreset | ( | const wxString & | aPresetName | ) |
Definition at line 1500 of file appearance_controls.cpp.
References dummy, onLayerPresetChanged(), and updateLayerPresetSelection().
Referenced by OnLayerContextMenu().
void APPEARANCE_CONTROLS::ApplyViewport | ( | const VIEWPORT & | aPreset | ) |
Definition at line 1562 of file appearance_controls.cpp.
References doApplyViewport(), VIEWPORT::name, and updateViewportSelection().
void APPEARANCE_CONTROLS::ApplyViewport | ( | const wxString & | aPresetName | ) |
Definition at line 1553 of file appearance_controls.cpp.
References dummy, onViewportChanged(), and updateViewportSelection().
|
private |
Definition at line 2424 of file appearance_controls.cpp.
References _, BOARD::GetDesignSettings(), ID_CLEAR_NET_COLOR, ID_DESELECT_NET, ID_HIDE_OTHER_NETS, ID_HIGHLIGHT_NET, ID_SELECT_NET, ID_SET_NET_COLOR, ID_SHOW_ALL_NETS, ID_USE_SCHEMATIC_NET_COLOR, m_frame, BOARD_DESIGN_SETTINGS::m_NetSettings, name, onNetclassContextMenu(), UnescapeString(), and KIGFX::COLOR4D::UNSPECIFIED.
Referenced by rebuildNets().
|
private |
Definition at line 614 of file appearance_controls.cpp.
References _, KIUI::GetInfoFont(), ACTIONS::highContrastModeCycle, KeyNameFromKeyCode(), m_cbFlipBoard, m_inactiveLayersLabel, m_layerDisplaySeparator, APPEARANCE_CONTROLS_BASE::m_netsTabOuterSizer, APPEARANCE_CONTROLS_BASE::m_notebook, m_paneLayerDisplayOptions, APPEARANCE_CONTROLS_BASE::m_panelLayers, APPEARANCE_CONTROLS_BASE::m_panelLayersSizer, APPEARANCE_CONTROLS_BASE::m_panelNetsAndClasses, m_paneNetDisplayOptions, m_rbHighContrastDim, m_rbHighContrastNormal, m_rbHighContrastOff, m_rbNetColorAll, m_rbNetColorOff, m_rbNetColorRatsnest, m_rbRatsnestAllLayers, m_rbRatsnestNone, m_rbRatsnestVisLayers, APPEARANCE_CONTROLS_BASE::m_sizerOuter, m_txtNetDisplayTitle, m_txtRatsnestVisibility, PCB_ACTIONS::netColorModeCycle, onNetColorMode(), onRatsnestMode(), passOnFocus(), and PCB_ACTIONS::ratsnestModeCycle.
Referenced by APPEARANCE_CONTROLS().
|
private |
Definition at line 2928 of file appearance_controls.cpp.
References LAYER_PRESET::activeLayer, LSET::Contains(), LAYER_PRESET::flipBoard, BOARD::GetLayerSet(), KIGFX::VIEW::IsMirroredX(), KIGFX::VIEW::IsMirroredY(), LAYER_PRESET::layers, m_frame, m_isFpEditor, KIGFX::VIEW::RecacheAllItems(), LAYER_PRESET::renderLayers, LSET::Seq(), KIGFX::VIEW::SetMirror(), setVisibleLayers(), setVisibleObjects(), syncColorsAndVisibility(), UNSELECTED_LAYER, and UpdateDisplayOptions().
Referenced by ApplyLayerPreset(), and onLayerPresetChanged().
|
private |
Definition at line 3108 of file appearance_controls.cpp.
References m_frame, and VIEWPORT::rect.
Referenced by ApplyViewport(), and onViewportChanged().
|
private |
Definition at line 1105 of file appearance_controls.cpp.
References PCB_NETINFO_T, and EDA_ITEM::Type().
Referenced by OnBoardCompositeUpdate(), OnBoardItemAdded(), OnBoardItemChanged(), OnBoardItemRemoved(), OnBoardItemsAdded(), OnBoardItemsChanged(), and OnBoardItemsRemoved().
|
private |
Definition at line 1111 of file appearance_controls.cpp.
|
inline |
Definition at line 255 of file appearance_controls.h.
References m_currentPreset.
wxSize APPEARANCE_CONTROLS::GetBestSize | ( | ) | const |
Update the panel contents from the application and board models.
Definition at line 816 of file appearance_controls.cpp.
References DPI_SCALING_COMMON::GetScaleFactor(), and m_frame.
|
inline |
Return a list of viewports created by the user.
Definition at line 263 of file appearance_controls.h.
References m_presetMRU.
int APPEARANCE_CONTROLS::GetTabIndex | ( | ) | const |
Set the current notebook tab.
Definition at line 2038 of file appearance_controls.cpp.
References APPEARANCE_CONTROLS_BASE::m_notebook.
std::vector< LAYER_PRESET > APPEARANCE_CONTROLS::GetUserLayerPresets | ( | ) | const |
Update the current layer presets from those saved in the project file.
Definition at line 1447 of file appearance_controls.cpp.
References m_layerPresets.
std::vector< VIEWPORT > APPEARANCE_CONTROLS::GetUserViewports | ( | ) | const |
Update the current viewports from those saved in the project file.
Definition at line 1524 of file appearance_controls.cpp.
References m_viewports.
|
inline |
Definition at line 275 of file appearance_controls.h.
References m_viewportMRU.
|
private |
Definition at line 1369 of file appearance_controls.cpp.
References LSET::AllLayersMask(), KIGFX::VIEW::IsLayerVisible(), m_frame, m_isFpEditor, and BASE_SET::set().
Referenced by OnLayerContextMenu(), onLayerPresetChanged(), onLayerVisibilityToggled(), rebuildLayers(), SetLayerVisible(), syncColorsAndVisibility(), and syncLayerPresetSelection().
|
private |
Definition at line 1388 of file appearance_controls.cpp.
References GAL_LAYER_ID_START, KIGFX::VIEW::IsLayerVisible(), m_frame, m_isFpEditor, and GAL_SET::set().
Referenced by OnLayerContextMenu(), onLayerPresetChanged(), onObjectVisibilityChanged(), rebuildObjects(), syncColorsAndVisibility(), syncLayerPresetSelection(), and syncObjectSettings().
|
private |
Definition at line 1178 of file appearance_controls.cpp.
References APPEARANCE_CONTROLS_BASE::m_netsGrid, and rebuildNets().
Referenced by OnBoardCompositeUpdate(), OnBoardItemAdded(), OnBoardItemChanged(), OnBoardItemRemoved(), OnBoardItemsAdded(), OnBoardItemsChanged(), OnBoardItemsRemoved(), and OnBoardNetSettingsChanged().
|
private |
Definition at line 860 of file appearance_controls.cpp.
References idleFocusHandler(), and passOnFocus().
Referenced by idleFocusHandler(), and OnNotebookPageChanged().
|
private |
Definition at line 1336 of file appearance_controls.cpp.
Referenced by onLayerLeftClick(), and rebuildLayers().
bool APPEARANCE_CONTROLS::IsLayerOptionsExpanded | ( | ) |
Definition at line 824 of file appearance_controls.cpp.
References m_paneLayerDisplayOptions.
bool APPEARANCE_CONTROLS::IsNetOptionsExpanded | ( | ) |
Definition at line 830 of file appearance_controls.cpp.
References m_paneNetDisplayOptions.
bool APPEARANCE_CONTROLS::IsTogglingNetclassRatsnestVisibility | ( | ) |
Definition at line 3558 of file appearance_controls.cpp.
References m_togglingNetclassRatsnestVisibility.
bool APPEARANCE_CONTROLS::IsTogglingNetRatsnestVisibility | ( | ) |
|
private |
Definition at line 1480 of file appearance_controls.cpp.
References m_layerPresets, presetAllCopper, presetAllLayers, presetBack, presetBackAssembly, presetFront, presetFrontAssembly, presetInnerCopper, and presetNoLayers.
Referenced by APPEARANCE_CONTROLS(), and SetUserLayerPresets().
|
inlineinherited |
Definition at line 89 of file appearance_controls_base.h.
References m_netsTabSplitter, and m_netsTabSplitterOnIdle().
Referenced by APPEARANCE_CONTROLS_BASE(), and m_netsTabSplitterOnIdle().
|
private |
Definition at line 3286 of file appearance_controls.cpp.
References m_netclassIdMap.
Referenced by onNetclassColorChanged(), and onNetclassVisibilityChanged().
void APPEARANCE_CONTROLS::OnBoardChanged | ( | ) |
Definition at line 1058 of file appearance_controls.cpp.
References m_board, m_frame, APPEARANCE_CONTROLS_BASE::m_netsGrid, rebuildLayerContextMenu(), rebuildLayerPresetsWidget(), rebuildLayers(), rebuildNets(), rebuildViewportsWidget(), Refresh(), syncColorsAndVisibility(), syncLayerPresetSelection(), syncObjectSettings(), and UpdateDisplayOptions().
Referenced by APPEARANCE_CONTROLS(), PCB_CONTROL::AppendBoard(), and API_HANDLER_PCB::handleSetVisibleLayers().
|
overridevirtual |
Update the colors on all the widgets from the new chosen color theme.
Reimplemented from BOARD_LISTENER.
Definition at line 1165 of file appearance_controls.cpp.
References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().
|
inlinevirtualinherited |
Reimplemented in PCB_NET_INSPECTOR_PANEL, and PCB_SEARCH_PANE.
Definition at line 289 of file board.h.
Referenced by BOARD::HighLightON(), BOARD::ResetNetHighLight(), and BOARD::SetHighLightNet().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1123 of file appearance_controls.cpp.
References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1151 of file appearance_controls.cpp.
References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1137 of file appearance_controls.cpp.
References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1130 of file appearance_controls.cpp.
References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1158 of file appearance_controls.cpp.
References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1144 of file appearance_controls.cpp.
References doesBoardItemNeedRebuild(), and handleBoardItemsChanged().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1084 of file appearance_controls.cpp.
References handleBoardItemsChanged().
|
inlinevirtualinherited |
Reimplemented in PCB_SEARCH_PANE.
Definition at line 290 of file board.h.
Referenced by BOARD::OnRatsnestChanged().
void APPEARANCE_CONTROLS::OnColorSwatchChanged | ( | wxCommandEvent & | aEvent | ) |
Definition at line 3115 of file appearance_controls.cpp.
References CLEARANCE_LAYER_FOR, FRAME_PCB_EDITOR, GetNetnameLayer(), COLOR_SWATCH::GetSwatchColor(), IsCopperLayer(), LAYER_PCB_BACKGROUND, m_frame, PAD_COPPER_LAYER_FOR, passOnFocus(), COLOR_SETTINGS::SetColor(), KIGFX::VIEW::UpdateLayerColor(), VIA_COPPER_LAYER_FOR, and ZONE_LAYER_FOR.
Referenced by rebuildLayers(), and rebuildObjects().
void APPEARANCE_CONTROLS::OnColorThemeChanged | ( | ) |
Respond to change in OS's DarkMode.
Definition at line 1188 of file appearance_controls.cpp.
References syncColorsAndVisibility(), and syncObjectSettings().
Referenced by PCB_EDIT_FRAME::CommonSettingsChanged().
void APPEARANCE_CONTROLS::OnDarkModeToggle | ( | ) |
Update the widget when the active board layer is changed.
Definition at line 1195 of file appearance_controls.cpp.
References m_frame, m_layerPanelColour, m_layersOuterSizer, m_netclassSettingsMap, APPEARANCE_CONTROLS_BASE::m_netsGrid, APPEARANCE_CONTROLS_BASE::m_panelLayers, APPEARANCE_CONTROLS_BASE::m_windowLayers, OnLayerChanged(), and SWATCH_SMALL.
|
protected |
Definition at line 1027 of file appearance_controls.cpp.
References _, APPEARANCE_CONTROLS_BASE::m_netsGrid, APPEARANCE_CONTROLS_BASE::m_notebook, rebuildLayerContextMenu(), rebuildLayerPresetsWidget(), rebuildLayers(), rebuildNets(), rebuildObjects(), rebuildViewportsWidget(), Refresh(), syncColorsAndVisibility(), syncLayerPresetSelection(), syncObjectSettings(), and UpdateDisplayOptions().
Referenced by APPEARANCE_CONTROLS(), and ~APPEARANCE_CONTROLS().
void APPEARANCE_CONTROLS::OnLayerChanged | ( | ) |
Definition at line 1229 of file appearance_controls.cpp.
References APPEARANCE_CONTROLS::APPEARANCE_SETTING::ctl_indicator, APPEARANCE_CONTROLS::APPEARANCE_SETTING::ctl_panel, F_Cu, m_frame, m_layerPanelColour, m_layerSettings, m_layerSettingsMap, ROW_ICON_PROVIDER::OFF, ROW_ICON_PROVIDER::ON, Refresh(), and INDICATOR_ICON::SetIndicatorState().
Referenced by OnDarkModeToggle(), and syncColorsAndVisibility().
void APPEARANCE_CONTROLS::OnLayerContextMenu | ( | wxCommandEvent & | aEvent | ) |
Return the index of the current tab (0-2).
Definition at line 1945 of file appearance_controls.cpp.
References ApplyLayerPreset(), getVisibleLayers(), getVisibleObjects(), ID_HIDE_ALL_BUT_ACTIVE, ID_HIDE_ALL_COPPER_LAYERS, ID_HIDE_ALL_NON_COPPER, ID_PRESET_ALL_LAYERS, ID_PRESET_BACK, ID_PRESET_BACK_ASSEMBLY, ID_PRESET_FRONT, ID_PRESET_FRONT_ASSEMBLY, ID_PRESET_INNER_COPPER, ID_PRESET_NO_LAYERS, ID_SHOW_ALL_COPPER_LAYERS, ID_SHOW_ALL_NON_COPPER, LAYER_PRESET::layers, m_frame, m_isFpEditor, presetAllCopper, presetAllLayers, presetBack, presetBackAssembly, presetFront, presetFrontAssembly, presetInnerCopper, presetNoLayers, LAYER_PRESET::renderLayers, LSET::Seq(), setVisibleLayers(), syncColorsAndVisibility(), and syncLayerPresetSelection().
Referenced by APPEARANCE_CONTROLS().
|
private |
Definition at line 2101 of file appearance_controls.cpp.
References isLayerEnabled(), m_frame, passOnFocus(), and ToLAYER_ID().
Referenced by rebuildLayers().
|
overrideprivatevirtual |
Reimplemented from APPEARANCE_CONTROLS_BASE.
Definition at line 2761 of file appearance_controls.cpp.
References _, doApplyLayerPreset(), LAYER_PRESET::flipBoard, EDA_LIST_DIALOG::GetTextSelection(), getVisibleLayers(), getVisibleObjects(), IsOK(), LAYER_PRESET::layers, m_cbFlipBoard, APPEARANCE_CONTROLS_BASE::m_cbLayerPresets, m_currentPreset, m_frame, m_lastBuiltinPreset, m_lastSelectedUserPreset, m_layerPresets, m_presetMRU, name, passOnFocus(), LAYER_PRESET::readOnly, rebuildLayerPresetsWidget(), LAYER_PRESET::renderLayers, EDA_LIST_DIALOG::SetListLabel(), DIALOG_SHIM::ShowModal(), and UNSELECTED_LAYER.
Referenced by APPEARANCE_CONTROLS(), and ApplyLayerPreset().
|
private |
Definition at line 2123 of file appearance_controls.cpp.
References getVisibleLayers(), m_frame, BASE_SET::set(), setVisibleLayers(), and syncLayerPresetSelection().
Referenced by rebuildLayers().
|
private |
Definition at line 3268 of file appearance_controls.cpp.
References BOARD::GetDesignSettings(), COLOR_SWATCH::GetSwatchColor(), m_frame, BOARD_DESIGN_SETTINGS::m_NetSettings, and netclassNameFromEvent().
Referenced by rebuildNets().
|
private |
Definition at line 3347 of file appearance_controls.cpp.
References color, APPEARANCE_CONTROLS::APPEARANCE_SETTING::ctl_color, NETCLASS::Default, PCB_ACTIONS::deselectNet, BOARD::GetDesignSettings(), NETINFO_ITEM::GetNetCode(), BOARD::GetNetInfo(), COLOR_SWATCH::GetNewSwatchColor(), KIGFX::VIEW::GetPainter(), COLOR_SWATCH::GetSwatchColor(), BOARD::HighLightON(), ID_CLEAR_NET_COLOR, ID_DESELECT_NET, ID_HIDE_OTHER_NETS, ID_HIGHLIGHT_NET, ID_SELECT_NET, ID_SET_NET_COLOR, ID_SHOW_ALL_NETS, ID_USE_SCHEMATIC_NET_COLOR, m_contextMenuNetclass, m_frame, m_netclassSettingsMap, BOARD_DESIGN_SETTINGS::m_NetSettings, name, TOOL_MANAGER::RunAction(), PCB_ACTIONS::selectNet, KIGFX::RENDER_SETTINGS::SetHighlight(), BOARD::SetHighLightNet(), COLOR_SWATCH::SetSwatchColor(), showNetclass(), COLOR4D::UNSPECIFIED, and KIGFX::VIEW::UpdateAllLayersColor().
Referenced by buildNetClassMenu().
|
private |
Definition at line 3226 of file appearance_controls.cpp.
References netclassNameFromEvent(), passOnFocus(), and showNetclass().
Referenced by rebuildNets().
|
private |
Definition at line 3296 of file appearance_controls.cpp.
References ALL, m_frame, PCB_DISPLAY_OPTIONS::m_NetColorMode, m_rbNetColorAll, m_rbNetColorRatsnest, OFF, passOnFocus(), and RATSNEST.
Referenced by createControls().
|
private |
Definition at line 3173 of file appearance_controls.cpp.
References NET_GRID_ENTRY::code, NET_GRID_TABLE::COL_COLOR, PCB_ACTIONS::deselectNet, editor, PCB_ACTIONS::highlightNet, ID_CLEAR_NET_COLOR, ID_DESELECT_NET, ID_HIDE_OTHER_NETS, ID_HIGHLIGHT_NET, ID_SELECT_NET, ID_SET_NET_COLOR, ID_SHOW_ALL_NETS, m_frame, APPEARANCE_CONTROLS_BASE::m_netsGrid, m_netsTable, passOnFocus(), and PCB_ACTIONS::selectNet.
Referenced by OnNetGridRightClick().
|
overrideprotectedvirtual |
Reimplemented from APPEARANCE_CONTROLS_BASE.
Definition at line 890 of file appearance_controls.cpp.
References NET_GRID_TABLE::COL_VISIBILITY, APPEARANCE_CONTROLS_BASE::m_netsGrid, and m_netsTable.
|
overrideprotectedvirtual |
Reimplemented from APPEARANCE_CONTROLS_BASE.
Definition at line 908 of file appearance_controls.cpp.
References NET_GRID_TABLE::COL_COLOR, and APPEARANCE_CONTROLS_BASE::m_netsGrid.
|
protected |
Definition at line 963 of file appearance_controls.cpp.
References _, NET_GRID_TABLE::COL_COLOR, NET_GRID_TABLE::COL_VISIBILITY, m_hoveredCell, APPEARANCE_CONTROLS_BASE::m_netsGrid, m_netsTable, name, NET_GRID_ENTRY::name, and NET_GRID_ENTRY::visible.
Referenced by APPEARANCE_CONTROLS().
|
overrideprotectedvirtual |
Reimplemented from APPEARANCE_CONTROLS_BASE.
Definition at line 925 of file appearance_controls.cpp.
References _, NET_GRID_TABLE::COL_LABEL, ID_CLEAR_NET_COLOR, ID_DESELECT_NET, ID_HIDE_OTHER_NETS, ID_HIGHLIGHT_NET, ID_SELECT_NET, ID_SET_NET_COLOR, ID_SHOW_ALL_NETS, APPEARANCE_CONTROLS_BASE::m_netsGrid, onNetContextMenu(), and UnescapeString().
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 1090 of file appearance_controls.cpp.
References NET_GRID_TABLE::COL_VISIBILITY, APPEARANCE_CONTROLS_BASE::m_netsGrid, m_netsTable, and m_togglingNetclassRatsnestVisibility.
|
overrideprotectedvirtual |
Reimplemented from APPEARANCE_CONTROLS_BASE.
Definition at line 836 of file appearance_controls.cpp.
References idleFocusHandler(), APPEARANCE_CONTROLS_BASE::m_notebook, APPEARANCE_CONTROLS_BASE::m_panelLayers, APPEARANCE_CONTROLS_BASE::m_panelNetsAndClasses, and APPEARANCE_CONTROLS_BASE::m_sizerOuter.
|
private |
Definition at line 3153 of file appearance_controls.cpp.
References LAYER_DRAW_BITMAPS, LAYER_FILLED_SHAPES, LAYER_PADS, LAYER_TRACKS, LAYER_VIAS, LAYER_ZONES, PCB_DISPLAY_OPTIONS::m_FilledShapeOpacity, m_frame, PCB_DISPLAY_OPTIONS::m_ImageOpacity, PCB_DISPLAY_OPTIONS::m_PadOpacity, PCB_DISPLAY_OPTIONS::m_TrackOpacity, PCB_DISPLAY_OPTIONS::m_ViaOpacity, PCB_DISPLAY_OPTIONS::m_ZoneOpacity, and passOnFocus().
Referenced by rebuildObjects().
|
private |
Definition at line 2136 of file appearance_controls.cpp.
References GAL_SET::Contains(), FRAME_PCB_EDITOR, getVisibleObjects(), LAYER_FP_REFERENCES, LAYER_FP_TEXT, LAYER_FP_VALUES, LAYER_GRID, LAYER_RATSNEST, m_frame, m_objectSettingsMap, onObjectVisibilityChanged(), passOnFocus(), GAL_SET::set(), setVisibleObjects(), syncLayerPresetSelection(), and KIGFX::TARGET_NONCACHED.
Referenced by onObjectVisibilityChanged(), and rebuildObjects().
|
privateinherited |
Definition at line 47 of file wx_panel.cpp.
References m_borderColor, m_bottomBorder, m_leftBorder, m_rightBorder, m_topBorder, KIGFX::COLOR4D::Mix(), KIGFX::COLOR4D::ToColour(), and KIGFX::COLOR4D::UNSPECIFIED.
Referenced by WX_PANEL(), and ~WX_PANEL().
|
private |
Definition at line 3313 of file appearance_controls.cpp.
References ALL, LAYER_RATSNEST, m_frame, m_rbRatsnestAllLayers, m_rbRatsnestVisLayers, passOnFocus(), and VISIBLE.
Referenced by createControls().
|
private |
Definition at line 3530 of file appearance_controls.cpp.
References _, WX_INFOBAR::AddButton(), WX_INFOBAR::AddCloseButton(), m_frame, WX_INFOBAR::RemoveAllButtons(), and WX_INFOBAR::ShowMessageFor().
Referenced by rebuildLayers(), and rebuildObjects().
|
overrideprotectedvirtual |
Reimplemented from APPEARANCE_CONTROLS_BASE.
Definition at line 867 of file appearance_controls.cpp.
References passOnFocus().
Referenced by APPEARANCE_CONTROLS(), and rebuildObjects().
|
overrideprotectedvirtual |
Reimplemented from APPEARANCE_CONTROLS_BASE.
Definition at line 884 of file appearance_controls.cpp.
|
overrideprivatevirtual |
Reimplemented from APPEARANCE_CONTROLS_BASE.
Definition at line 3002 of file appearance_controls.cpp.
References _, doApplyViewport(), EDA_LIST_DIALOG::GetTextSelection(), APPEARANCE_CONTROLS_BASE::m_cbViewports, m_frame, m_lastSelectedViewport, m_viewportMRU, m_viewports, name, VIEWPORT::name, passOnFocus(), EDA_LIST_DIALOG::SetListLabel(), and DIALOG_SHIM::ShowModal().
Referenced by ApplyViewport().
|
delete |
References APPEARANCE_CONTROLS().
|
private |
Definition at line 3524 of file appearance_controls.cpp.
References m_focusOwner.
Referenced by APPEARANCE_CONTROLS(), createControls(), idleFocusHandler(), OnColorSwatchChanged(), onLayerLeftClick(), onLayerPresetChanged(), onNetclassVisibilityChanged(), onNetColorMode(), onNetContextMenu(), onObjectOpacitySlider(), onObjectVisibilityChanged(), onRatsnestMode(), OnSetFocus(), onViewportChanged(), and rightClickHandler().
|
private |
Definition at line 1891 of file appearance_controls.cpp.
References _, KIUI::AddMenuItem(), ID_HIDE_ALL_BUT_ACTIVE, ID_HIDE_ALL_COPPER_LAYERS, ID_HIDE_ALL_NON_COPPER, ID_PRESET_ALL_LAYERS, ID_PRESET_BACK, ID_PRESET_BACK_ASSEMBLY, ID_PRESET_FRONT, ID_PRESET_FRONT_ASSEMBLY, ID_PRESET_INNER_COPPER, ID_PRESET_NO_LAYERS, ID_SHOW_ALL_COPPER_LAYERS, ID_SHOW_ALL_NON_COPPER, KiBitmap(), m_frame, m_layerContextMenu, select_w_layer, show_all_back_layers, show_all_copper_layers, show_all_front_layers, show_all_layers, show_back_assembly_layers, show_front_assembly_layers, show_no_copper_layers, and show_no_layers.
Referenced by OnBoardChanged(), and OnLanguageChanged().
|
private |
Definition at line 2635 of file appearance_controls.cpp.
References _, KeyNameFromKeyCode(), APPEARANCE_CONTROLS_BASE::m_cbLayerPresets, m_currentPreset, m_layerPresets, m_presetMRU, APPEARANCE_CONTROLS_BASE::m_viewportsLabel, name, PRESET_SWITCH_KEY, and presetAllLayers.
Referenced by APPEARANCE_CONTROLS(), OnBoardChanged(), OnLanguageChanged(), onLayerPresetChanged(), and SetUserLayerPresets().
|
private |
Definition at line 1569 of file appearance_controls.cpp.
References _, _HKI, B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, LSET::CuStack(), Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, GetAppSettings(), COLOR_SETTINGS::GetColor(), BOARD::GetEnabledLayers(), BOARD::GetLayerName(), BOARD::GetStandardLayerName(), getVisibleLayers(), ACTIONS::highContrastModeCycle, isLayerEnabled(), JSON_SETTINGS::IsReadOnly(), KeyNameFromKeyCode(), LAYER_PCB_BACKGROUND, m_cbFlipBoard, FOOTPRINT_EDITOR_SETTINGS::m_DesignSettings, m_frame, m_iconProvider, m_inactiveLayersLabel, m_isFpEditor, m_layerPanelColour, m_layerSettings, m_layerSettingsMap, m_layersOuterSizer, m_notVisibileBitmapBundle, m_paneLayerDisplayOptions, APPEARANCE_CONTROLS_BASE::m_panelLayersSizer, m_rbHighContrastDim, m_rbHighContrastNormal, m_rbHighContrastOff, BOARD_DESIGN_SETTINGS::m_UserLayerNames, m_visibleBitmapBundle, APPEARANCE_CONTROLS_BASE::m_windowLayers, Margin, LSET::Name(), ROW_ICON_PROVIDER::OFF, OnColorSwatchChanged(), onLayerLeftClick(), onLayerVisibilityToggled(), onReadOnlySwatch(), rightClickHandler(), COLOR_SWATCH::SetReadOnly(), COLOR_SWATCH::SetReadOnlyCallback(), SWATCH_SMALL, COLOR4D::UNSPECIFIED, User_1, User_10, User_11, User_12, User_13, User_14, User_15, User_16, User_17, User_18, User_19, User_2, User_20, User_21, User_22, User_23, User_24, User_25, User_26, User_27, User_28, User_29, User_3, User_30, User_31, User_32, User_33, User_34, User_35, User_36, User_37, User_38, User_39, User_4, User_40, User_41, User_42, User_43, User_44, User_45, User_5, User_6, User_7, User_8, and User_9.
Referenced by OnBoardChanged(), and OnLanguageChanged().
|
private |
Definition at line 2474 of file appearance_controls.cpp.
References _, buildNetClassMenu(), color, APPEARANCE_CONTROLS::APPEARANCE_SETTING::ctl_color, APPEARANCE_CONTROLS::APPEARANCE_SETTING::ctl_panel, APPEARANCE_CONTROLS::APPEARANCE_SETTING::ctl_text, APPEARANCE_CONTROLS::APPEARANCE_SETTING::ctl_visibility, COLOR_SETTINGS::GetColor(), BOARD::GetDesignSettings(), BOARD::GetProject(), KeyNameFromKeyCode(), LAYER_PCB_BACKGROUND, m_contextMenuNetclass, m_frame, m_netclassIdMap, APPEARANCE_CONTROLS_BASE::m_netclassOuterSizer, APPEARANCE_CONTROLS_BASE::m_netclassScrolledWindow, m_netclassSettings, m_netclassSettingsMap, BOARD_DESIGN_SETTINGS::m_NetSettings, m_netsTable, m_notVisibileBitmapBundle, APPEARANCE_CONTROLS_BASE::m_panelNets, m_paneNetDisplayOptions, m_rbNetColorAll, m_rbNetColorOff, m_rbNetColorRatsnest, m_rbRatsnestAllLayers, m_rbRatsnestNone, m_rbRatsnestVisLayers, APPEARANCE_CONTROLS_BASE::m_staticTextNetClasses, APPEARANCE_CONTROLS_BASE::m_staticTextNets, m_txtNetDisplayTitle, m_txtRatsnestVisibility, m_visibleBitmapBundle, name, PCB_ACTIONS::netColorModeCycle, onNetclassColorChanged(), onNetclassVisibilityChanged(), PCB_ACTIONS::ratsnestModeCycle, SWATCH_SMALL, and COLOR4D::UNSPECIFIED.
Referenced by handleBoardItemsChanged(), OnBoardChanged(), and OnLanguageChanged().
|
private |
Definition at line 2211 of file appearance_controls.cpp.
References _, color, GAL_SET::Contains(), COLOR_SETTINGS::GetColor(), COLOR_SETTINGS::GetDefaultColor(), getVisibleObjects(), LAYER_PCB_BACKGROUND, m_frame, m_isFpEditor, m_notVisibileBitmapBundle, m_objectSettings, m_objectSettingsMap, m_objectsOuterSizer, m_pointSize, m_visibleBitmapBundle, APPEARANCE_CONTROLS_BASE::m_windowObjects, OnColorSwatchChanged(), onObjectOpacitySlider(), onObjectVisibilityChanged(), onReadOnlySwatch(), OnSetFocus(), s_allowedInFpEditor, s_objectSettings, COLOR_SWATCH::SetReadOnlyCallback(), SWATCH_SMALL, ToGalLayer(), and COLOR4D::UNSPECIFIED.
Referenced by APPEARANCE_CONTROLS(), and OnLanguageChanged().
|
private |
Definition at line 2966 of file appearance_controls.cpp.
References _, KeyNameFromKeyCode(), APPEARANCE_CONTROLS_BASE::m_cbViewports, m_lastSelectedViewport, m_viewports, APPEARANCE_CONTROLS_BASE::m_viewportsLabel, and VIEWPORT_SWITCH_KEY.
Referenced by OnBoardChanged(), OnLanguageChanged(), and SetUserViewports().
void APPEARANCE_CONTROLS::RefreshCollapsiblePanes | ( | ) |
Function to force a redraw of the collapsible panes in this control.
Definition at line 3552 of file appearance_controls.cpp.
References m_paneLayerDisplayOptions.
|
private |
Definition at line 2115 of file appearance_controls.cpp.
References m_layerContextMenu, and passOnFocus().
Referenced by rebuildLayers().
|
inlineinherited |
Definition at line 47 of file wx_panel.h.
References m_borderColor.
Referenced by SYMBOL_TREE_SYNCHRONIZING_ADAPTER::ShowPreview().
|
inlineinherited |
Definition at line 39 of file wx_panel.h.
References m_bottomBorder, m_leftBorder, m_rightBorder, and m_topBorder.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_3D::APPEARANCE_CONTROLS_3D(), PAGED_DIALOG::PAGED_DIALOG(), PANEL_SCH_SELECTION_FILTER::PANEL_SCH_SELECTION_FILTER(), PANEL_SELECTION_FILTER::PANEL_SELECTION_FILTER(), and SYMBOL_TREE_SYNCHRONIZING_ADAPTER::ShowPreview().
void APPEARANCE_CONTROLS::SetLayerVisible | ( | int | aLayer, |
bool | isVisible ) |
Definition at line 1271 of file appearance_controls.cpp.
References getVisibleLayers(), m_frame, BASE_SET::set(), setVisibleLayers(), syncColorsAndVisibility(), and ToLAYER_ID().
Referenced by ROUTER_TOOL::performRouting(), and ROUTER_TOOL::prepareInteractive().
void APPEARANCE_CONTROLS::SetObjectVisible | ( | GAL_LAYER_ID | aLayer, |
bool | isVisible = true ) |
Definition at line 1288 of file appearance_controls.cpp.
References APPEARANCE_CONTROLS::APPEARANCE_SETTING::can_control_visibility, APPEARANCE_CONTROLS::APPEARANCE_SETTING::ctl_visibility, m_frame, m_objectSettingsMap, and BITMAP_TOGGLE::SetValue().
Referenced by APPEARANCE_CONTROLS().
void APPEARANCE_CONTROLS::SetTabIndex | ( | int | aTab | ) |
Definition at line 2044 of file appearance_controls.cpp.
References APPEARANCE_CONTROLS_BASE::m_notebook.
void APPEARANCE_CONTROLS::SetUserLayerPresets | ( | std::vector< LAYER_PRESET > & | aPresetList | ) |
Definition at line 1461 of file appearance_controls.cpp.
References loadDefaultLayerPresets(), m_layerPresets, m_presetMRU, and rebuildLayerPresetsWidget().
void APPEARANCE_CONTROLS::SetUserViewports | ( | std::vector< VIEWPORT > & | aPresetList | ) |
Definition at line 1535 of file appearance_controls.cpp.
References m_viewportMRU, m_viewports, and rebuildViewportsWidget().
|
private |
Definition at line 1307 of file appearance_controls.cpp.
References KIGFX::ALL, LSET::AllLayersMask(), LSET::Contains(), m_frame, m_isFpEditor, KIGFX::VIEW::SetLayerVisible(), and KIGFX::VIEW::UpdateAllItemsConditionally().
Referenced by doApplyLayerPreset(), OnLayerContextMenu(), onLayerVisibilityToggled(), and SetLayerVisible().
|
private |
Definition at line 1346 of file appearance_controls.cpp.
References FRAME_PCB_EDITOR, GAL_LAYER_ID_START, GAL_LAYER_INDEX, LAYER_GRID, LAYER_RATSNEST, LAYER_ZONE_START, m_frame, m_isFpEditor, GAL_SET::set(), and KIGFX::VIEW::SetLayerVisible().
Referenced by doApplyLayerPreset(), and onObjectVisibilityChanged().
|
private |
Definition at line 3235 of file appearance_controls.cpp.
References NET_GRID_TABLE::COL_VISIBILITY, PCB_ACTIONS::hideNetInRatsnest, m_frame, PROJECT_LOCAL_SETTINGS::m_HiddenNetclasses, APPEARANCE_CONTROLS_BASE::m_netsGrid, m_netsTable, m_togglingNetclassRatsnestVisibility, and PCB_ACTIONS::showNetInRatsnest.
Referenced by onNetclassContextMenu(), and onNetclassVisibilityChanged().
|
private |
Definition at line 2053 of file appearance_controls.cpp.
References color, GAL_SET::Contains(), COLOR_SETTINGS::GetColor(), getVisibleLayers(), getVisibleObjects(), JSON_SETTINGS::IsReadOnly(), m_frame, m_layerSettings, m_objectSettings, APPEARANCE_CONTROLS_BASE::m_windowLayers, and OnLayerChanged().
Referenced by doApplyLayerPreset(), OnBoardChanged(), OnColorThemeChanged(), OnLanguageChanged(), OnLayerContextMenu(), and SetLayerVisible().
|
private |
Definition at line 2696 of file appearance_controls.cpp.
References getVisibleLayers(), getVisibleObjects(), m_cbFlipBoard, APPEARANCE_CONTROLS_BASE::m_cbLayerPresets, m_currentPreset, m_layerPresets, and text.
Referenced by APPEARANCE_CONTROLS(), OnBoardChanged(), OnLanguageChanged(), OnLayerContextMenu(), onLayerVisibilityToggled(), and onObjectVisibilityChanged().
|
private |
Definition at line 2385 of file appearance_controls.cpp.
References color, GAL_SET::Contains(), getVisibleObjects(), LAYER_DRAW_BITMAPS, LAYER_FILLED_SHAPES, LAYER_PADS, LAYER_TRACKS, LAYER_VIAS, LAYER_ZONES, PCB_DISPLAY_OPTIONS::m_FilledShapeOpacity, m_frame, PCB_DISPLAY_OPTIONS::m_ImageOpacity, m_objectSettings, m_objectSettingsMap, PCB_DISPLAY_OPTIONS::m_PadOpacity, PCB_DISPLAY_OPTIONS::m_TrackOpacity, PCB_DISPLAY_OPTIONS::m_ViaOpacity, PCB_DISPLAY_OPTIONS::m_ZoneOpacity, and ToGalLayer().
Referenced by OnBoardChanged(), OnColorThemeChanged(), and OnLanguageChanged().
void APPEARANCE_CONTROLS::UpdateDisplayOptions | ( | ) |
Return a list of the layer presets created by the user.
Definition at line 1408 of file appearance_controls.cpp.
References ALL, APPEARANCE_CONTROLS::APPEARANCE_SETTING::ctl_visibility, DIMMED, HIDDEN, LAYER_RATSNEST, m_cbFlipBoard, PCB_DISPLAY_OPTIONS::m_ContrastModeDisplay, m_frame, m_isFpEditor, PCB_DISPLAY_OPTIONS::m_NetColorMode, m_objectSettingsMap, m_rbHighContrastDim, m_rbHighContrastNormal, m_rbHighContrastOff, m_rbNetColorAll, m_rbNetColorOff, m_rbNetColorRatsnest, m_rbRatsnestAllLayers, m_rbRatsnestNone, m_rbRatsnestVisLayers, NORMAL, OFF, RATSNEST, and BITMAP_TOGGLE::SetValue().
Referenced by doApplyLayerPreset(), OnBoardChanged(), and OnLanguageChanged().
|
private |
Definition at line 2728 of file appearance_controls.cpp.
References APPEARANCE_CONTROLS_BASE::m_cbLayerPresets, m_currentPreset, and m_layerPresets.
Referenced by ApplyLayerPreset(), and ApplyLayerPreset().
|
private |
Definition at line 2985 of file appearance_controls.cpp.
References APPEARANCE_CONTROLS_BASE::m_cbViewports, and m_lastSelectedViewport.
Referenced by ApplyViewport(), and ApplyViewport().
|
private |
Definition at line 401 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), and OnBoardChanged().
|
privateinherited |
Definition at line 61 of file wx_panel.h.
Referenced by OnPaint(), SetBorderColor(), and WX_PANEL().
|
privateinherited |
Definition at line 59 of file wx_panel.h.
Referenced by OnPaint(), SetBorders(), and WX_PANEL().
|
protectedinherited |
Definition at line 64 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), and APPEARANCE_CONTROLS_BASE().
|
protectedinherited |
Definition at line 60 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), and APPEARANCE_CONTROLS_BASE().
|
private |
Definition at line 468 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), createControls(), onLayerPresetChanged(), rebuildLayers(), syncLayerPresetSelection(), and UpdateDisplayOptions().
|
protectedinherited |
Definition at line 68 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::onLayerPresetChanged(), APPEARANCE_CONTROLS::rebuildLayerPresetsWidget(), APPEARANCE_CONTROLS::syncLayerPresetSelection(), APPEARANCE_CONTROLS::updateLayerPresetSelection(), and ~APPEARANCE_CONTROLS_BASE().
|
protectedinherited |
Definition at line 70 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::onViewportChanged(), APPEARANCE_CONTROLS::rebuildViewportsWidget(), APPEARANCE_CONTROLS::updateViewportSelection(), and ~APPEARANCE_CONTROLS_BASE().
|
private |
The name of the netclass that was right-clicked.
Definition at line 439 of file appearance_controls.h.
Referenced by onNetclassContextMenu(), and rebuildNets().
|
private |
Definition at line 425 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), ApplyLayerPreset(), GetActiveLayerPreset(), onLayerPresetChanged(), rebuildLayerPresetsWidget(), syncLayerPresetSelection(), and updateLayerPresetSelection().
|
private |
Definition at line 395 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), and passOnFocus().
|
private |
Definition at line 393 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), buildNetClassMenu(), doApplyLayerPreset(), doApplyViewport(), GetBestSize(), getVisibleLayers(), getVisibleObjects(), OnBoardChanged(), OnColorSwatchChanged(), OnDarkModeToggle(), OnLayerChanged(), OnLayerContextMenu(), onLayerLeftClick(), onLayerPresetChanged(), onLayerVisibilityToggled(), onNetclassColorChanged(), onNetclassContextMenu(), onNetColorMode(), onNetContextMenu(), onObjectOpacitySlider(), onObjectVisibilityChanged(), onRatsnestMode(), onReadOnlySwatch(), onViewportChanged(), rebuildLayerContextMenu(), rebuildLayers(), rebuildNets(), rebuildObjects(), SetLayerVisible(), SetObjectVisible(), setVisibleLayers(), setVisibleObjects(), showNetclass(), syncColorsAndVisibility(), syncObjectSettings(), UpdateDisplayOptions(), and ~APPEARANCE_CONTROLS().
|
private |
Grid cell that is being hovered over, for tooltips.
Definition at line 411 of file appearance_controls.h.
Referenced by OnNetGridMouseEvent().
|
private |
Definition at line 399 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), rebuildLayers(), and ~APPEARANCE_CONTROLS().
|
private |
Definition at line 463 of file appearance_controls.h.
Referenced by createControls(), and rebuildLayers().
|
private |
Definition at line 403 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), doApplyLayerPreset(), getVisibleLayers(), getVisibleObjects(), OnLayerContextMenu(), rebuildLayers(), rebuildObjects(), setVisibleLayers(), setVisibleObjects(), and UpdateDisplayOptions().
|
staticprivate |
Definition at line 455 of file appearance_controls.h.
Referenced by onLayerPresetChanged().
|
private |
Definition at line 426 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), ApplyLayerPreset(), and onLayerPresetChanged().
|
private |
Definition at line 430 of file appearance_controls.h.
Referenced by onViewportChanged(), rebuildViewportsWidget(), and updateViewportSelection().
|
private |
Definition at line 433 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), rebuildLayerContextMenu(), and rightClickHandler().
|
private |
Definition at line 467 of file appearance_controls.h.
Referenced by createControls().
|
private |
Definition at line 459 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), OnDarkModeToggle(), OnLayerChanged(), and rebuildLayers().
|
private |
Definition at line 424 of file appearance_controls.h.
Referenced by ApplyLayerPreset(), GetUserLayerPresets(), loadDefaultLayerPresets(), onLayerPresetChanged(), rebuildLayerPresetsWidget(), SetUserLayerPresets(), syncLayerPresetSelection(), and updateLayerPresetSelection().
|
private |
Definition at line 413 of file appearance_controls.h.
Referenced by OnLayerChanged(), rebuildLayers(), and syncColorsAndVisibility().
|
private |
Definition at line 414 of file appearance_controls.h.
Referenced by OnLayerChanged(), and rebuildLayers().
|
private |
Definition at line 441 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), OnDarkModeToggle(), and rebuildLayers().
|
privateinherited |
Definition at line 56 of file wx_panel.h.
Referenced by OnPaint(), SetBorders(), and WX_PANEL().
|
private |
Stores wxIDs for each netclass for control event mapping.
Definition at line 436 of file appearance_controls.h.
Referenced by netclassNameFromEvent(), and rebuildNets().
|
protectedinherited |
Definition at line 66 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS_BASE(), and APPEARANCE_CONTROLS::rebuildNets().
|
protectedinherited |
Definition at line 65 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), and APPEARANCE_CONTROLS::rebuildNets().
|
private |
Definition at line 419 of file appearance_controls.h.
Referenced by rebuildNets().
|
private |
Definition at line 420 of file appearance_controls.h.
Referenced by OnDarkModeToggle(), onNetclassContextMenu(), and rebuildNets().
|
protectedinherited |
Definition at line 61 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::handleBoardItemsChanged(), APPEARANCE_CONTROLS::OnBoardChanged(), APPEARANCE_CONTROLS::OnDarkModeToggle(), APPEARANCE_CONTROLS::OnLanguageChanged(), APPEARANCE_CONTROLS::onNetContextMenu(), APPEARANCE_CONTROLS::OnNetGridClick(), APPEARANCE_CONTROLS::OnNetGridDoubleClick(), APPEARANCE_CONTROLS::OnNetGridMouseEvent(), APPEARANCE_CONTROLS::OnNetGridRightClick(), APPEARANCE_CONTROLS::OnNetVisibilityChanged(), APPEARANCE_CONTROLS::showNetclass(), and ~APPEARANCE_CONTROLS_BASE().
|
private |
Definition at line 406 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), onNetContextMenu(), OnNetGridClick(), OnNetGridMouseEvent(), OnNetVisibilityChanged(), rebuildNets(), and showNetclass().
|
protectedinherited |
Definition at line 55 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS_BASE(), and APPEARANCE_CONTROLS::createControls().
|
protectedinherited |
Definition at line 56 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS_BASE(), and m_netsTabSplitterOnIdle().
|
protectedinherited |
Definition at line 47 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::createControls(), APPEARANCE_CONTROLS::GetTabIndex(), APPEARANCE_CONTROLS::OnLanguageChanged(), APPEARANCE_CONTROLS::OnNotebookPageChanged(), APPEARANCE_CONTROLS::SetTabIndex(), and ~APPEARANCE_CONTROLS_BASE().
|
private |
Definition at line 483 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), rebuildLayers(), rebuildNets(), and rebuildObjects().
|
private |
Definition at line 416 of file appearance_controls.h.
Referenced by rebuildObjects(), syncColorsAndVisibility(), and syncObjectSettings().
|
private |
Definition at line 417 of file appearance_controls.h.
Referenced by onObjectVisibilityChanged(), rebuildObjects(), SetObjectVisible(), syncObjectSettings(), and UpdateDisplayOptions().
|
private |
Definition at line 442 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), and rebuildObjects().
|
protectedinherited |
Definition at line 52 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS_BASE().
|
private |
Definition at line 462 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), createControls(), IsLayerOptionsExpanded(), rebuildLayers(), and RefreshCollapsiblePanes().
|
protectedinherited |
Definition at line 48 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::createControls(), APPEARANCE_CONTROLS::OnDarkModeToggle(), APPEARANCE_CONTROLS::OnNotebookPageChanged(), and ~APPEARANCE_CONTROLS_BASE().
|
protectedinherited |
Definition at line 49 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::createControls(), and APPEARANCE_CONTROLS::rebuildLayers().
|
protectedinherited |
Definition at line 62 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS_BASE(), and ~APPEARANCE_CONTROLS_BASE().
|
protectedinherited |
Definition at line 57 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::rebuildNets(), and ~APPEARANCE_CONTROLS_BASE().
|
protectedinherited |
Definition at line 54 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::createControls(), APPEARANCE_CONTROLS::OnNotebookPageChanged(), and ~APPEARANCE_CONTROLS_BASE().
|
protectedinherited |
Definition at line 51 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS_BASE(), and ~APPEARANCE_CONTROLS_BASE().
|
private |
Definition at line 471 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), createControls(), IsNetOptionsExpanded(), and rebuildNets().
|
private |
Definition at line 457 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), and rebuildObjects().
|
private |
Definition at line 427 of file appearance_controls.h.
Referenced by GetLayerPresetsMRU(), onLayerPresetChanged(), rebuildLayerPresetsWidget(), and SetUserLayerPresets().
|
protectedinherited |
Definition at line 67 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), and APPEARANCE_CONTROLS_BASE().
|
private |
Definition at line 465 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), createControls(), rebuildLayers(), and UpdateDisplayOptions().
|
private |
Definition at line 464 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), createControls(), rebuildLayers(), and UpdateDisplayOptions().
|
private |
Definition at line 466 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), createControls(), rebuildLayers(), and UpdateDisplayOptions().
|
private |
Definition at line 473 of file appearance_controls.h.
Referenced by createControls(), onNetColorMode(), rebuildNets(), and UpdateDisplayOptions().
|
private |
Definition at line 475 of file appearance_controls.h.
Referenced by createControls(), rebuildNets(), and UpdateDisplayOptions().
|
private |
Definition at line 474 of file appearance_controls.h.
Referenced by createControls(), onNetColorMode(), rebuildNets(), and UpdateDisplayOptions().
|
private |
Definition at line 477 of file appearance_controls.h.
Referenced by createControls(), onRatsnestMode(), rebuildNets(), and UpdateDisplayOptions().
|
private |
Definition at line 479 of file appearance_controls.h.
Referenced by createControls(), rebuildNets(), and UpdateDisplayOptions().
|
private |
Definition at line 478 of file appearance_controls.h.
Referenced by createControls(), onRatsnestMode(), rebuildNets(), and UpdateDisplayOptions().
|
privateinherited |
Definition at line 57 of file wx_panel.h.
Referenced by OnPaint(), SetBorders(), and WX_PANEL().
|
protectedinherited |
Definition at line 46 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::createControls(), and APPEARANCE_CONTROLS::OnNotebookPageChanged().
|
protectedinherited |
Definition at line 63 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), and APPEARANCE_CONTROLS::rebuildNets().
|
protectedinherited |
Definition at line 58 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), and APPEARANCE_CONTROLS::rebuildNets().
|
private |
Definition at line 408 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS().
|
private |
Definition at line 511 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), IsTogglingNetclassRatsnestVisibility(), OnNetVisibilityChanged(), and showNetclass().
|
privateinherited |
Definition at line 58 of file wx_panel.h.
Referenced by OnPaint(), SetBorders(), and WX_PANEL().
|
private |
Definition at line 472 of file appearance_controls.h.
Referenced by createControls(), and rebuildNets().
|
protectedinherited |
Definition at line 59 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), and APPEARANCE_CONTROLS_BASE().
|
private |
Definition at line 476 of file appearance_controls.h.
Referenced by createControls(), and rebuildNets().
|
private |
Definition at line 431 of file appearance_controls.h.
Referenced by GetViewportsMRU(), onViewportChanged(), and SetUserViewports().
|
private |
Definition at line 429 of file appearance_controls.h.
Referenced by GetUserViewports(), onViewportChanged(), rebuildViewportsWidget(), and SetUserViewports().
|
protectedinherited |
Definition at line 69 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::rebuildLayerPresetsWidget(), and APPEARANCE_CONTROLS::rebuildViewportsWidget().
|
private |
Definition at line 482 of file appearance_controls.h.
Referenced by APPEARANCE_CONTROLS(), rebuildLayers(), rebuildNets(), and rebuildObjects().
|
protectedinherited |
Definition at line 50 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), APPEARANCE_CONTROLS::OnDarkModeToggle(), APPEARANCE_CONTROLS::rebuildLayers(), and APPEARANCE_CONTROLS::syncColorsAndVisibility().
|
protectedinherited |
Definition at line 53 of file appearance_controls_base.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_BASE(), and APPEARANCE_CONTROLS::rebuildObjects().
|
staticprivate |
Definition at line 447 of file appearance_controls.h.
Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().
|
staticprivate |
Definition at line 446 of file appearance_controls.h.
Referenced by loadDefaultLayerPresets(), OnLayerContextMenu(), and rebuildLayerPresetsWidget().
|
staticprivate |
Definition at line 451 of file appearance_controls.h.
Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().
|
staticprivate |
Definition at line 452 of file appearance_controls.h.
Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().
|
staticprivate |
Definition at line 449 of file appearance_controls.h.
Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().
|
staticprivate |
Definition at line 450 of file appearance_controls.h.
Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().
|
staticprivate |
Definition at line 448 of file appearance_controls.h.
Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().
|
staticprivate |
Definition at line 445 of file appearance_controls.h.
Referenced by loadDefaultLayerPresets(), and OnLayerContextMenu().
|
staticprivate |
Template for object appearance settings.
Definition at line 325 of file appearance_controls.h.
Referenced by rebuildObjects().