KiCad PCB EDA Suite
|
Net inspection panel for pcbnew. More...
#include <pcb_net_inspector_panel.h>
Classes | |
struct | COLUMN_DESC |
Column metadata. More... | |
class | DATA_MODEL |
Data model for display in the Net Inspector panel. More... | |
class | LIST_ITEM |
Primary data item for entries in the Net Inspector list. More... | |
struct | LIST_ITEM_GROUP_NUMBER_CMP_LESS |
struct | LIST_ITEM_NETCODE_CMP_LESS |
Public Member Functions | |
PCB_NET_INSPECTOR_PANEL (wxWindow *parent, PCB_EDIT_FRAME *aFrame) | |
virtual | ~PCB_NET_INSPECTOR_PANEL () |
virtual void | OnParentSetupChanged () override |
Updates the netlist based on global board changes (e.g. | |
virtual void | OnBoardItemAdded (BOARD &aBoard, BOARD_ITEM *aBoardItem) override |
virtual void | OnBoardItemsAdded (BOARD &aBoard, std::vector< BOARD_ITEM * > &aBoardItems) override |
virtual void | OnBoardItemRemoved (BOARD &aBoard, BOARD_ITEM *aBoardItem) override |
virtual void | OnBoardItemsRemoved (BOARD &aBoard, std::vector< BOARD_ITEM * > &aBoardItems) override |
virtual void | OnBoardNetSettingsChanged (BOARD &aBoard) override |
virtual void | OnBoardItemChanged (BOARD &aBoard, BOARD_ITEM *aBoardItem) override |
virtual void | OnBoardItemsChanged (BOARD &aBoard, std::vector< BOARD_ITEM * > &aBoardItems) override |
virtual void | OnBoardHighlightNetChanged (BOARD &aBoard) override |
virtual void | OnBoardCompositeUpdate (BOARD &aBoard, std::vector< BOARD_ITEM * > &aAddedItems, std::vector< BOARD_ITEM * > &aRemovedItems, std::vector< BOARD_ITEM * > &aDeletedItems) override |
virtual void | OnBoardChanged () override |
Update panel when board is changed. | |
virtual void | OnShowPanel () override |
Prepare the panel when shown in the editor. | |
virtual void | SaveSettings () override |
Persist the net inspector configuration to project / global settings. | |
virtual void | OnBoardRatsnestChanged (BOARD &aBoard) |
Protected Member Functions | |
virtual void | OnLanguageChangedImpl () override |
Reloads strings on an application language change. | |
virtual void | OnSearchTextChanged (wxCommandEvent &event) override |
virtual void | OnConfigButton (wxCommandEvent &event) override |
void | OnExpandCollapseRow (wxCommandEvent &event) |
void | OnHeaderContextMenu (wxCommandEvent &event) |
void | OnNetsListContextMenu (wxDataViewEvent &event) |
void | OnNetsListItemActivated (wxDataViewEvent &event) |
void | OnColumnSorted (wxDataViewEvent &event) |
virtual void | OnSetFocus (wxFocusEvent &event) |
virtual void | OnSize (wxSizeEvent &event) |
virtual void | OnLanguageChanged (wxCommandEvent &event) |
Protected Attributes | |
wxGridBagSizer * | m_sizerOuter |
wxSearchCtrl * | m_searchCtrl |
BITMAP_BUTTON * | m_configureBtn |
wxDataViewCtrl * | m_netsList |
Private Types | |
enum class | CSV_COLUMN_DESC : int { CSV_NONE = 0 , CSV_QUOTE = 1 << 0 } |
CSV output control. More... | |
enum | { COLUMN_NAME = 0 , COLUMN_NETCLASS , COLUMN_TOTAL_LENGTH , COLUMN_VIA_COUNT , COLUMN_VIA_LENGTH , COLUMN_BOARD_LENGTH , COLUMN_PAD_DIE_LENGTH , COLUMN_PAD_COUNT , COLUMN_LAST_STATIC_COL = COLUMN_PAD_COUNT } |
enum | POPUP_MENU_OPTIONS { ID_ADD_NET = ID_POPUP_MENU_START , ID_RENAME_NET , ID_DELETE_NET , ID_ADD_GROUP , ID_GROUP_BY_CONSTRAINT , ID_GROUP_BY_NETCLASS , ID_FILTER_BY_NET_NAME , ID_FILTER_BY_NETCLASS , ID_REMOVE_SELECTED_GROUP , ID_REMOVE_GROUPS , ID_SHOW_ZERO_NET_PADS , ID_SHOW_UNCONNECTED_NETS , ID_GENERATE_REPORT , ID_HIGHLIGHT_SELECTED_NETS , ID_CLEAR_HIGHLIGHTING , ID_LAST_STATIC_MENU = ID_CLEAR_HIGHLIGHTING , ID_HIDE_COLUMN } |
using | LIST_ITEM_ITER = std::vector< std::unique_ptr< LIST_ITEM > >::iterator |
using | LIST_ITEM_CONST_ITER = std::vector< std::unique_ptr< LIST_ITEM > >::const_iterator |
Private Member Functions | |
wxString | formatNetCode (const NETINFO_ITEM *aNet) const |
wxString | formatNetName (const NETINFO_ITEM *aNet) const |
wxString | formatCount (unsigned int aValue) const |
wxString | formatLength (int64_t aValue) const |
void | generateShowHideColumnMenu (wxMenu *target) |
Generates a sub-menu for the show / hide columns submenu. | |
std::vector< CN_ITEM * > | relevantConnectivityItems () const |
Filters connectivity items from a board update to remove those not related to net / track metrics. | |
bool | netFilterMatches (NETINFO_ITEM *aNet, PANEL_NET_INSPECTOR_SETTINGS *cfg=nullptr) const |
Filter to determine whether a board net should be included in the net inspector. | |
void | updateNet (NETINFO_ITEM *aNet) |
Updates the stored LIST_ITEMs for a given updated board net item. | |
unsigned int | calculateViaLength (const PCB_TRACK *) const |
Calculates the length of a via from the board stackup. | |
void | buildNetsList (bool rebuildColumns=false) |
void | buildColumns () |
void | setColumnWidths () |
void | adjustListColumnSizes (PANEL_NET_INSPECTOR_SETTINGS *cfg) |
Adjust the sizing of list columns. | |
bool | restoreSortColumn (int sortingColumnId, bool sortOrderAsc) |
Sets the sort column in the grid to that showing the given model ID column. | |
wxDataViewColumn * | getDisplayedColumnForModelField (int columnId) |
Fetches the displayed grid view column for the given model column ID. | |
void | generateReport () |
Generates a CSV report from currently disaplyed data. | |
void | highlightSelectedNets () |
Highlight the currently selected net. | |
void | onUnitsChanged (wxCommandEvent &event) |
void | onSettingsMenu (wxCommandEvent &event) |
void | onItemContextMenu (wxCommandEvent &event) |
void | onAddNet () |
void | onRenameSelectedNet () |
void | onDeleteSelectedNet () |
void | onRemoveSelectedGroup () |
void | onAddGroup () |
void | onClearHighlighting () |
std::unique_ptr< LIST_ITEM > | buildNewItem (NETINFO_ITEM *aNet, unsigned int aPadCount, const std::vector< CN_ITEM * > &aCNItems) |
Constructs a LIST_ITEM for storage in the data model from a board net item. | |
void | updateDisplayedRowValues (const std::optional< LIST_ITEM_ITER > &aRow) |
Private Attributes | |
NETINFO_ITEM * | m_zero_netitem |
BOARD * | m_brd = nullptr |
PCB_EDIT_FRAME * | m_frame = nullptr |
wxObjectDataPtr< DATA_MODEL > | m_data_model |
friend | DATA_MODEL |
bool | m_in_reporting = false |
bool | m_in_build_nets_list = false |
bool | m_board_loaded = false |
bool | m_board_loading = false |
bool | m_row_expanding = false |
bool | m_highlighting_nets = false |
bool | m_filter_by_net_name = true |
bool | m_filter_by_netclass = true |
bool | m_show_zero_pad_nets = false |
bool | m_show_unconnected_nets = false |
bool | m_group_by_netclass = false |
bool | m_group_by_constraint = false |
int | m_num_copper_layers = 0 |
std::vector< std::unique_ptr< EDA_COMBINED_MATCHER > > | m_custom_group_rules |
std::vector< COLUMN_DESC > | m_columns |
All displayed (or hidden) columns. | |
Net inspection panel for pcbnew.
Provides a read-only view of net information, such as routed lengths. Data is updated after every change of board items. Note that there is not always a 1:1 relationship between Nets and displayed items in the inspector.. This can be the case where there is a constraint which selects sub-sections of nets, for example consider a netclass used for a fly-by-routing adddress bus. There could be two constraints, e.g.:
FROM/TO=IC1-IC2, Netclass=DDR_ADDR, Net=ADDR_0 FROM/TO=IC2-IC3, Netclass=DDR_ADDR, Net=ADDR_0
In this instance, a single address net within the DDR_ADDR netclass could have three entries in the inspector, each tracking a different set of net statistics:
In this instance, all sub-nets as a result of a constraint will be grouped by the constraint.
Definition at line 60 of file pcb_net_inspector_panel.h.
|
private |
Definition at line 220 of file pcb_net_inspector_panel.h.
|
private |
Definition at line 219 of file pcb_net_inspector_panel.h.
|
private |
Enumerator | |
---|---|
COLUMN_NAME | |
COLUMN_NETCLASS | |
COLUMN_TOTAL_LENGTH | |
COLUMN_VIA_COUNT | |
COLUMN_VIA_LENGTH | |
COLUMN_BOARD_LENGTH | |
COLUMN_PAD_DIE_LENGTH | |
COLUMN_PAD_COUNT | |
COLUMN_LAST_STATIC_COL |
Definition at line 330 of file pcb_net_inspector_panel.h.
|
strongprivate |
CSV output control.
Enumerator | |
---|---|
CSV_NONE | |
CSV_QUOTE |
Definition at line 293 of file pcb_net_inspector_panel.h.
|
private |
Definition at line 346 of file pcb_net_inspector_panel.h.
PCB_NET_INSPECTOR_PANEL::PCB_NET_INSPECTOR_PANEL | ( | wxWindow * | parent, |
PCB_EDIT_FRAME * | aFrame | ||
) |
Definition at line 45 of file pcb_net_inspector_panel.cpp.
References BOARD::AddListener(), buildNetsList(), PCB_BASE_FRAME::GetBoard(), m_brd, m_data_model, m_frame, NET_INSPECTOR_PANEL::m_netsList, OnBoardHighlightNetChanged(), OnColumnSorted(), OnExpandCollapseRow(), OnHeaderContextMenu(), OnNetsListContextMenu(), OnNetsListItemActivated(), and onUnitsChanged().
|
virtual |
Definition at line 81 of file pcb_net_inspector_panel.cpp.
References m_brd, m_frame, NET_INSPECTOR_PANEL::m_netsList, OnColumnSorted(), OnExpandCollapseRow(), OnHeaderContextMenu(), OnNetsListContextMenu(), OnNetsListItemActivated(), onUnitsChanged(), BOARD::RemoveListener(), and SaveSettings().
|
private |
Adjust the sizing of list columns.
cfg | the PANEL_NET_INSPECTOR_SETTINGS from which to read column widths |
Definition at line 297 of file pcb_net_inspector_panel.cpp.
References PANEL_NET_INSPECTOR_SETTINGS::col_hidden, PANEL_NET_INSPECTOR_SETTINGS::col_order, PANEL_NET_INSPECTOR_SETTINGS::col_widths, COLUMN_NAME, COLUMN_NETCLASS, COLUMN_PAD_COUNT, COLUMN_VIA_COUNT, m_columns, and NET_INSPECTOR_PANEL::m_netsList.
Referenced by buildColumns().
|
private |
Definition at line 116 of file pcb_net_inspector_panel.cpp.
References _, adjustListColumnSizes(), PANEL_NET_INSPECTOR_SETTINGS::col_hidden, PANEL_NET_INSPECTOR_SETTINGS::col_order, COLUMN_BOARD_LENGTH, COLUMN_NAME, COLUMN_NETCLASS, COLUMN_PAD_COUNT, COLUMN_PAD_DIE_LENGTH, COLUMN_TOTAL_LENGTH, COLUMN_VIA_COUNT, COLUMN_VIA_LENGTH, CSV_NONE, CSV_QUOTE, getDisplayedColumnForModelField(), BOARD::GetEnabledLayers(), BOARD::GetLayerName(), PROJECT::GetLocalSettings(), PGM_BASE::GetSettingsManager(), IsCopperLayer(), m_board_loaded, m_brd, m_columns, PROJECT_LOCAL_SETTINGS::m_NetInspectorPanel, NET_INSPECTOR_PANEL::m_netsList, m_num_copper_layers, Pgm(), SETTINGS_MANAGER::Prj(), LSET::Seq(), and UNDEFINED_LAYER.
Referenced by buildNetsList().
|
private |
Definition at line 394 of file pcb_net_inspector_panel.cpp.
References buildColumns(), buildNewItem(), COLUMN_NAME, CTX_NET, PANEL_NET_INSPECTOR_SETTINGS::custom_group_rules, alg::delete_matching(), PANEL_NET_INSPECTOR_SETTINGS::expanded_rows, PANEL_NET_INSPECTOR_SETTINGS::filter_by_net_name, PANEL_NET_INSPECTOR_SETTINGS::filter_by_netclass, BOARD::Footprints(), PROJECT::GetLocalSettings(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetNetCode(), BOARD::GetNetInfo(), PGM_BASE::GetSettingsManager(), PANEL_NET_INSPECTOR_SETTINGS::group_by_constraint, PANEL_NET_INSPECTOR_SETTINGS::group_by_netclass, m_board_loaded, m_board_loading, m_brd, m_custom_group_rules, m_data_model, m_filter_by_net_name, m_filter_by_netclass, m_group_by_constraint, m_group_by_netclass, m_in_build_nets_list, PROJECT_LOCAL_SETTINGS::m_NetInspectorPanel, NET_INSPECTOR_PANEL::m_netsList, m_row_expanding, m_show_zero_pad_nets, m_zero_netitem, netFilterMatches(), NETINFO_LIST::NetsByNetcode(), pad, Pgm(), SETTINGS_MANAGER::Prj(), relevantConnectivityItems(), restoreSortColumn(), PANEL_NET_INSPECTOR_SETTINGS::show_zero_pad_nets, PANEL_NET_INSPECTOR_SETTINGS::sort_order_asc, and PANEL_NET_INSPECTOR_SETTINGS::sorting_column.
Referenced by onAddGroup(), OnBoardChanged(), OnBoardCompositeUpdate(), OnBoardItemChanged(), OnBoardItemsAdded(), OnBoardItemsChanged(), OnBoardItemsRemoved(), OnBoardNetSettingsChanged(), OnLanguageChangedImpl(), OnParentSetupChanged(), onRemoveSelectedGroup(), onRenameSelectedNet(), OnSearchTextChanged(), onSettingsMenu(), OnShowPanel(), and PCB_NET_INSPECTOR_PANEL().
|
private |
Constructs a LIST_ITEM for storage in the data model from a board net item.
Definition at line 630 of file pcb_net_inspector_panel.cpp.
References calculateViaLength(), BOARD::GetCopperLayerCount(), NETINFO_ITEM::GetNetCode(), m_brd, PCB_PAD_T, PCB_VIA_T, and EDA_ITEM::Type().
Referenced by buildNetsList(), and updateNet().
|
private |
Calculates the length of a via from the board stackup.
Definition at line 691 of file pcb_net_inspector_panel.cpp.
References B_Cu, LSET::copper_layers_begin(), LSET::copper_layers_end(), F_Cu, BOARD_DESIGN_SETTINGS::GetBoardThickness(), BOARD::GetConnectivity(), BOARD_DESIGN_SETTINGS::GetCopperLayerCount(), BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::GetEnabledLayers(), BOARD_STACKUP::GetLayerDistance(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), m_brd, BOARD_DESIGN_SETTINGS::m_HasStackup, PCB_ARC_T, PCB_PAD_T, PCB_TRACE_T, UNDEFINED_LAYER, and via.
Referenced by buildNewItem(), OnBoardItemAdded(), and OnBoardItemRemoved().
|
private |
Definition at line 822 of file pcb_net_inspector_panel.cpp.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::GetValue().
|
private |
Definition at line 828 of file pcb_net_inspector_panel.cpp.
References m_frame, m_in_reporting, and UNITS_PROVIDER::MessageTextFromValue().
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::GetValue().
|
private |
Definition at line 810 of file pcb_net_inspector_panel.cpp.
References NETINFO_ITEM::GetNetCode().
|
private |
Definition at line 816 of file pcb_net_inspector_panel.cpp.
References NETINFO_ITEM::GetNetname(), and UnescapeString().
|
private |
Generates a CSV report from currently disaplyed data.
Definition at line 1549 of file pcb_net_inspector_panel.cpp.
References _, AddFileExtListToFilter(), CSV_QUOTE, EDA_UNIT_UTILS::GetLabel(), UNITS_PROVIDER::GetUserUnits(), m_columns, m_data_model, m_frame, and m_in_reporting.
Referenced by OnConfigButton(), and onSettingsMenu().
|
private |
Generates a sub-menu for the show / hide columns submenu.
Definition at line 1410 of file pcb_net_inspector_panel.cpp.
References COLUMN_LAST_STATIC_COL, getDisplayedColumnForModelField(), ID_HIDE_COLUMN, and m_columns.
Referenced by OnConfigButton(), and OnHeaderContextMenu().
|
private |
Fetches the displayed grid view column for the given model column ID.
columnId | The ID (from column static IDs enum) to find |
Definition at line 371 of file pcb_net_inspector_panel.cpp.
References NET_INSPECTOR_PANEL::m_netsList.
Referenced by buildColumns(), generateShowHideColumnMenu(), onSettingsMenu(), and restoreSortColumn().
|
private |
Highlight the currently selected net.
Definition at line 1623 of file pcb_net_inspector_panel.cpp.
References PCB_NET_INSPECTOR_PANEL::LIST_ITEM::ChildrenBegin(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::ChildrenEnd(), PCB_BASE_FRAME::GetCanvas(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetIsGroup(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetNetCode(), KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), PCB_DRAW_PANEL_GAL::GetView(), m_frame, m_highlighting_nets, m_in_build_nets_list, NET_INSPECTOR_PANEL::m_netsList, EDA_DRAW_PANEL_GAL::Refresh(), KIGFX::RENDER_SETTINGS::SetHighlight(), and KIGFX::VIEW::UpdateAllLayersColor().
Referenced by OnNetsListItemActivated(), and onSettingsMenu().
|
private |
Filter to determine whether a board net should be included in the net inspector.
Definition at line 576 of file pcb_net_inspector_panel.cpp.
References PANEL_NET_INSPECTOR_SETTINGS::filter_by_net_name, PANEL_NET_INSPECTOR_SETTINGS::filter_by_netclass, PROJECT::GetLocalSettings(), NETCLASS::GetName(), NETINFO_ITEM::GetNetClass(), NETINFO_ITEM::GetNetCode(), NETINFO_ITEM::GetNetname(), PGM_BASE::GetSettingsManager(), PROJECT_LOCAL_SETTINGS::m_NetInspectorPanel, NET_INSPECTOR_PANEL::m_searchCtrl, m_show_unconnected_nets, Pgm(), SETTINGS_MANAGER::Prj(), and UnescapeString().
Referenced by buildNetsList(), OnBoardItemAdded(), and updateNet().
|
private |
Definition at line 1249 of file pcb_net_inspector_panel.cpp.
References _, buildNetsList(), CTX_NET, KIUI::GetInfoFont(), WX_TEXT_ENTRY_DIALOG::GetValue(), help, WX_TEXT_ENTRY_DIALOG_BASE::m_ContentSizer, m_custom_group_rules, SaveSettings(), WX_TEXT_ENTRY_DIALOG::SetTextValidator(), DIALOG_SHIM::ShowModal(), and UnescapeString().
Referenced by onSettingsMenu().
|
private |
Definition at line 1681 of file pcb_net_inspector_panel.cpp.
References _, BOARD::Add(), DisplayError(), BOARD::FindNet(), WX_TEXT_ENTRY_DIALOG::GetValue(), m_brd, m_frame, PCB_EDIT_FRAME::OnModify(), WX_TEXT_ENTRY_DIALOG::SetTextValidator(), and DIALOG_SHIM::ShowModal().
Referenced by onSettingsMenu().
|
overridevirtual |
Update panel when board is changed.
Reimplemented from NET_INSPECTOR_PANEL.
Definition at line 861 of file pcb_net_inspector_panel.cpp.
References BOARD::AddListener(), buildNetsList(), PCB_BASE_FRAME::GetBoard(), PROJECT::GetLocalSettings(), PGM_BASE::GetSettingsManager(), m_board_loaded, m_board_loading, m_brd, m_frame, PROJECT_LOCAL_SETTINGS::m_NetInspectorPanel, NET_INSPECTOR_PANEL::m_searchCtrl, Pgm(), and SETTINGS_MANAGER::Prj().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1104 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), and NET_INSPECTOR_PANEL::m_netsList.
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1117 of file pcb_net_inspector_panel.cpp.
References BOARD::GetHighLightNetCodes(), BOARD::IsHighLightNetON(), m_brd, m_data_model, m_highlighting_nets, and NET_INSPECTOR_PANEL::m_netsList.
Referenced by OnShowPanel(), and PCB_NET_INSPECTOR_PANEL().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 880 of file pcb_net_inspector_panel.cpp.
References calculateViaLength(), BOARD::GetCopperLayerCount(), BOARD::GetNodesCount(), m_brd, m_data_model, m_show_zero_pad_nets, netFilterMatches(), pad, PCB_VIA_T, updateDisplayedRowValues(), and updateNet().
Referenced by OnBoardItemsAdded().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1079 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), and NET_INSPECTOR_PANEL::m_netsList.
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 987 of file pcb_net_inspector_panel.cpp.
References calculateViaLength(), m_data_model, m_show_zero_pad_nets, pad, PCB_VIA_T, updateDisplayedRowValues(), and updateNet().
Referenced by OnBoardItemsRemoved().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 965 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), NET_INSPECTOR_PANEL::m_netsList, and OnBoardItemAdded().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1093 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), and NET_INSPECTOR_PANEL::m_netsList.
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1048 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), NET_INSPECTOR_PANEL::m_netsList, and OnBoardItemRemoved().
|
overridevirtual |
Reimplemented from BOARD_LISTENER.
Definition at line 1069 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), and NET_INSPECTOR_PANEL::m_netsList.
|
inlinevirtualinherited |
Reimplemented in PCB_SEARCH_PANE.
Definition at line 263 of file board.h.
Referenced by BOARD::OnRatsnestChanged().
|
private |
Definition at line 1285 of file pcb_net_inspector_panel.cpp.
References PCB_BASE_FRAME::GetCanvas(), KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), PCB_DRAW_PANEL_GAL::GetView(), m_frame, m_highlighting_nets, EDA_DRAW_PANEL_GAL::Refresh(), KIGFX::RENDER_SETTINGS::SetHighlight(), and KIGFX::VIEW::UpdateAllLayersColor().
Referenced by onSettingsMenu().
|
protected |
Definition at line 1667 of file pcb_net_inspector_panel.cpp.
References SaveSettings().
Referenced by PCB_NET_INSPECTOR_PANEL(), and ~PCB_NET_INSPECTOR_PANEL().
|
overrideprotectedvirtual |
Reimplemented from NET_INSPECTOR_PANEL.
Definition at line 1313 of file pcb_net_inspector_panel.cpp.
References _, generateReport(), generateShowHideColumnMenu(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetIsGroup(), PROJECT::GetLocalSettings(), PGM_BASE::GetSettingsManager(), ID_ADD_GROUP, ID_FILTER_BY_NET_NAME, ID_FILTER_BY_NETCLASS, ID_GENERATE_REPORT, ID_GROUP_BY_NETCLASS, ID_REMOVE_GROUPS, ID_REMOVE_SELECTED_GROUP, ID_SHOW_UNCONNECTED_NETS, ID_SHOW_ZERO_NET_PADS, m_custom_group_rules, m_group_by_netclass, PROJECT_LOCAL_SETTINGS::m_NetInspectorPanel, NET_INSPECTOR_PANEL::m_netsList, m_show_unconnected_nets, m_show_zero_pad_nets, onSettingsMenu(), Pgm(), and SETTINGS_MANAGER::Prj().
|
private |
Definition at line 1813 of file pcb_net_inspector_panel.cpp.
References _, PCB_NET_INSPECTOR_PANEL::LIST_ITEM::ChildrenBegin(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::ChildrenCount(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::ChildrenEnd(), KIGFX::GEOMETRY, PCB_BASE_FRAME::GetCanvas(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetGroupName(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetIsGroup(), PCB_DRAW_PANEL_GAL::GetView(), IsOK(), m_brd, m_frame, NET_INSPECTOR_PANEL::m_netsList, PCB_EDIT_FRAME::OnModify(), BOARD::Remove(), KIGFX::REPAINT, text, and KIGFX::VIEW::UpdateAllItemsConditionally().
Referenced by onSettingsMenu().
|
protected |
Definition at line 1297 of file pcb_net_inspector_panel.cpp.
References m_row_expanding, and SaveSettings().
Referenced by PCB_NET_INSPECTOR_PANEL(), and ~PCB_NET_INSPECTOR_PANEL().
|
protected |
Definition at line 1304 of file pcb_net_inspector_panel.cpp.
References generateShowHideColumnMenu(), and onSettingsMenu().
Referenced by PCB_NET_INSPECTOR_PANEL(), and ~PCB_NET_INSPECTOR_PANEL().
|
private |
|
protectedvirtualinherited |
Definition at line 93 of file net_inspector_panel.cpp.
References _, NET_INSPECTOR_PANEL::m_configureBtn, NET_INSPECTOR_PANEL::m_searchCtrl, and NET_INSPECTOR_PANEL::OnLanguageChangedImpl().
Referenced by NET_INSPECTOR_PANEL::NET_INSPECTOR_PANEL(), and NET_INSPECTOR_PANEL::~NET_INSPECTOR_PANEL().
|
overrideprotectedvirtual |
Reloads strings on an application language change.
Reimplemented from NET_INSPECTOR_PANEL.
Definition at line 1892 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), m_data_model, and SaveSettings().
|
protected |
Definition at line 1160 of file pcb_net_inspector_panel.cpp.
References _, PCB_BASE_FRAME::GetCanvas(), KIGFX::RENDER_SETTINGS::GetHighlightNetCodes(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetIsGroup(), KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), PCB_DRAW_PANEL_GAL::GetView(), highlightNet(), ID_ADD_NET, ID_CLEAR_HIGHLIGHTING, ID_DELETE_NET, ID_HIGHLIGHT_SELECTED_NETS, ID_REMOVE_SELECTED_GROUP, ID_RENAME_NET, m_frame, NET_INSPECTOR_PANEL::m_netsList, and onSettingsMenu().
Referenced by PCB_NET_INSPECTOR_PANEL(), and ~PCB_NET_INSPECTOR_PANEL().
|
protected |
Definition at line 1617 of file pcb_net_inspector_panel.cpp.
References highlightSelectedNets().
Referenced by PCB_NET_INSPECTOR_PANEL(), and ~PCB_NET_INSPECTOR_PANEL().
|
overridevirtual |
Updates the netlist based on global board changes (e.g.
stackup definition)
Called by PCB_EDIT_FRAME after displaying the Board Setup dialog
Reimplemented from NET_INSPECTOR_PANEL.
Definition at line 1673 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), and NET_INSPECTOR_PANEL::m_netsList.
|
private |
Definition at line 1523 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetGroupName(), m_custom_group_rules, NET_INSPECTOR_PANEL::m_netsList, and SaveSettings().
Referenced by onSettingsMenu().
|
private |
Definition at line 1717 of file pcb_net_inspector_panel.cpp.
References _, BOARD::Add(), BOARD::AllConnectedItems(), buildNetsList(), CANDIDATE, CTX_NETNAME, DisplayError(), EscapeString(), BOARD::FindNet(), PCB_BASE_FRAME::GetBoard(), PCB_BASE_FRAME::GetCanvas(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetIsGroup(), PCB_NET_INSPECTOR_PANEL::LIST_ITEM::GetNet(), NETINFO_ITEM::GetNetname(), WX_TEXT_ENTRY_DIALOG::GetValue(), PCB_DRAW_PANEL_GAL::GetView(), m_brd, m_data_model, m_frame, NET_INSPECTOR_PANEL::m_netsList, PCB_EDIT_FRAME::OnModify(), EDA_DRAW_PANEL_GAL::Refresh(), BOARD::Remove(), KIGFX::REPAINT, NETINFO_ITEM::SetNetname(), WX_TEXT_ENTRY_DIALOG::SetTextValidator(), DIALOG_SHIM::ShowModal(), UnescapeString(), and KIGFX::VIEW::UpdateAllItems().
Referenced by onSettingsMenu().
|
overrideprotectedvirtual |
Reimplemented from NET_INSPECTOR_PANEL.
Definition at line 1242 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), and SaveSettings().
|
inlineprotectedvirtualinherited |
Definition at line 75 of file net_inspector_panel.h.
Referenced by NET_INSPECTOR_PANEL::NET_INSPECTOR_PANEL(), and NET_INSPECTOR_PANEL::~NET_INSPECTOR_PANEL().
|
private |
Definition at line 1434 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), generateReport(), getDisplayedColumnForModelField(), highlightSelectedNets(), ID_ADD_GROUP, ID_ADD_NET, ID_CLEAR_HIGHLIGHTING, ID_DELETE_NET, ID_FILTER_BY_NET_NAME, ID_FILTER_BY_NETCLASS, ID_GENERATE_REPORT, ID_GROUP_BY_CONSTRAINT, ID_GROUP_BY_NETCLASS, ID_HIDE_COLUMN, ID_HIGHLIGHT_SELECTED_NETS, ID_REMOVE_GROUPS, ID_REMOVE_SELECTED_GROUP, ID_RENAME_NET, ID_SHOW_UNCONNECTED_NETS, ID_SHOW_ZERO_NET_PADS, m_custom_group_rules, m_filter_by_net_name, m_filter_by_netclass, m_group_by_constraint, m_group_by_netclass, m_show_unconnected_nets, m_show_zero_pad_nets, onAddGroup(), onAddNet(), onClearHighlighting(), onDeleteSelectedNet(), onRemoveSelectedGroup(), onRenameSelectedNet(), and SaveSettings().
Referenced by OnConfigButton(), OnHeaderContextMenu(), and OnNetsListContextMenu().
|
overridevirtual |
Prepare the panel when shown in the editor.
Reimplemented from NET_INSPECTOR_PANEL.
Definition at line 1153 of file pcb_net_inspector_panel.cpp.
References buildNetsList(), m_brd, and OnBoardHighlightNetChanged().
|
inlineprotectedvirtualinherited |
Definition at line 76 of file net_inspector_panel.h.
Referenced by NET_INSPECTOR_PANEL::NET_INSPECTOR_PANEL(), and NET_INSPECTOR_PANEL::~NET_INSPECTOR_PANEL().
|
private |
Definition at line 1900 of file pcb_net_inspector_panel.cpp.
References m_data_model.
Referenced by PCB_NET_INSPECTOR_PANEL(), and ~PCB_NET_INSPECTOR_PANEL().
|
private |
Filters connectivity items from a board update to remove those not related to net / track metrics.
Definition at line 665 of file pcb_net_inspector_panel.cpp.
References BOARD::GetConnectivity(), m_brd, PCB_ARC_T, PCB_PAD_T, PCB_TRACE_T, and PCB_VIA_T.
Referenced by buildNetsList(), and updateNet().
|
private |
Sets the sort column in the grid to that showing the given model ID column.
sortingColumnId | The model ID of the column to sort by |
sortOrderAsc | True for ascending sort, False for descending sort |
Definition at line 355 of file pcb_net_inspector_panel.cpp.
References getDisplayedColumnForModelField(), and m_data_model.
Referenced by buildNetsList().
|
overridevirtual |
Persist the net inspector configuration to project / global settings.
Reimplemented from NET_INSPECTOR_PANEL.
Definition at line 1914 of file pcb_net_inspector_panel.cpp.
References PANEL_NET_INSPECTOR_SETTINGS::filter_text, PROJECT::GetLocalSettings(), PGM_BASE::GetSettingsManager(), m_board_loaded, m_board_loading, m_custom_group_rules, m_data_model, m_filter_by_net_name, m_filter_by_netclass, m_group_by_constraint, m_group_by_netclass, PROJECT_LOCAL_SETTINGS::m_NetInspectorPanel, NET_INSPECTOR_PANEL::m_netsList, NET_INSPECTOR_PANEL::m_searchCtrl, m_show_unconnected_nets, m_show_zero_pad_nets, Pgm(), and SETTINGS_MANAGER::Prj().
Referenced by onAddGroup(), OnColumnSorted(), OnExpandCollapseRow(), OnLanguageChangedImpl(), onRemoveSelectedGroup(), OnSearchTextChanged(), onSettingsMenu(), and ~PCB_NET_INSPECTOR_PANEL().
|
private |
|
private |
Definition at line 836 of file pcb_net_inspector_panel.cpp.
References m_data_model, and NET_INSPECTOR_PANEL::m_netsList.
Referenced by OnBoardItemAdded(), OnBoardItemRemoved(), and updateNet().
|
private |
Updates the stored LIST_ITEMs for a given updated board net item.
Definition at line 750 of file pcb_net_inspector_panel.cpp.
References buildNewItem(), NETINFO_ITEM::GetNetCode(), BOARD::GetNodesCount(), m_brd, m_data_model, m_show_zero_pad_nets, netFilterMatches(), relevantConnectivityItems(), and updateDisplayedRowValues().
Referenced by OnBoardItemAdded(), and OnBoardItemRemoved().
|
private |
Definition at line 250 of file pcb_net_inspector_panel.h.
|
private |
Definition at line 267 of file pcb_net_inspector_panel.h.
Referenced by buildColumns(), buildNetsList(), OnBoardChanged(), and SaveSettings().
|
private |
Definition at line 268 of file pcb_net_inspector_panel.h.
Referenced by buildNetsList(), OnBoardChanged(), and SaveSettings().
|
private |
Definition at line 238 of file pcb_net_inspector_panel.h.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::addCustomGroups(), buildColumns(), buildNetsList(), buildNewItem(), calculateViaLength(), onAddNet(), OnBoardChanged(), OnBoardHighlightNetChanged(), OnBoardItemAdded(), onDeleteSelectedNet(), onRenameSelectedNet(), OnShowPanel(), PCB_NET_INSPECTOR_PANEL(), relevantConnectivityItems(), updateNet(), and ~PCB_NET_INSPECTOR_PANEL().
|
private |
All displayed (or hidden) columns.
Definition at line 325 of file pcb_net_inspector_panel.h.
Referenced by adjustListColumnSizes(), buildColumns(), PCB_NET_INSPECTOR_PANEL::DATA_MODEL::columnCount(), PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare(), generateReport(), generateShowHideColumnMenu(), PCB_NET_INSPECTOR_PANEL::DATA_MODEL::GetValue(), and PCB_NET_INSPECTOR_PANEL::DATA_MODEL::itemColumnChanged().
|
protectedinherited |
Definition at line 91 of file net_inspector_panel.h.
Referenced by NET_INSPECTOR_PANEL::NET_INSPECTOR_PANEL(), NET_INSPECTOR_PANEL::OnLanguageChanged(), and NET_INSPECTOR_PANEL::~NET_INSPECTOR_PANEL().
|
private |
Definition at line 288 of file pcb_net_inspector_panel.h.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::addCustomGroups(), PCB_NET_INSPECTOR_PANEL::DATA_MODEL::addItem(), buildNetsList(), onAddGroup(), OnConfigButton(), onRemoveSelectedGroup(), onSettingsMenu(), and SaveSettings().
|
private |
Definition at line 249 of file pcb_net_inspector_panel.h.
Referenced by buildNetsList(), generateReport(), OnBoardHighlightNetChanged(), OnBoardItemAdded(), OnBoardItemRemoved(), OnLanguageChangedImpl(), onRenameSelectedNet(), onUnitsChanged(), PCB_NET_INSPECTOR_PANEL(), restoreSortColumn(), SaveSettings(), updateDisplayedRowValues(), and updateNet().
|
private |
Definition at line 279 of file pcb_net_inspector_panel.h.
Referenced by buildNetsList(), onSettingsMenu(), and SaveSettings().
|
private |
Definition at line 280 of file pcb_net_inspector_panel.h.
Referenced by buildNetsList(), onSettingsMenu(), and SaveSettings().
|
private |
Definition at line 239 of file pcb_net_inspector_panel.h.
Referenced by formatLength(), generateReport(), highlightSelectedNets(), onAddNet(), OnBoardChanged(), onClearHighlighting(), onDeleteSelectedNet(), OnNetsListContextMenu(), onRenameSelectedNet(), PCB_NET_INSPECTOR_PANEL(), and ~PCB_NET_INSPECTOR_PANEL().
|
private |
Definition at line 284 of file pcb_net_inspector_panel.h.
Referenced by buildNetsList(), onSettingsMenu(), and SaveSettings().
|
private |
Definition at line 283 of file pcb_net_inspector_panel.h.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::addItem(), buildNetsList(), PCB_NET_INSPECTOR_PANEL::DATA_MODEL::deleteItem(), OnConfigButton(), onSettingsMenu(), and SaveSettings().
|
private |
Definition at line 274 of file pcb_net_inspector_panel.h.
Referenced by highlightSelectedNets(), OnBoardHighlightNetChanged(), and onClearHighlighting().
|
private |
Definition at line 256 of file pcb_net_inspector_panel.h.
Referenced by buildNetsList(), and highlightSelectedNets().
|
private |
Definition at line 255 of file pcb_net_inspector_panel.h.
Referenced by formatLength(), and generateReport().
|
protectedinherited |
Definition at line 92 of file net_inspector_panel.h.
Referenced by adjustListColumnSizes(), buildColumns(), buildNetsList(), getDisplayedColumnForModelField(), highlightSelectedNets(), NET_INSPECTOR_PANEL::NET_INSPECTOR_PANEL(), OnBoardCompositeUpdate(), OnBoardHighlightNetChanged(), OnBoardItemChanged(), OnBoardItemsAdded(), OnBoardItemsChanged(), OnBoardItemsRemoved(), OnBoardNetSettingsChanged(), OnConfigButton(), onDeleteSelectedNet(), OnNetsListContextMenu(), OnParentSetupChanged(), onRemoveSelectedGroup(), onRenameSelectedNet(), PCB_NET_INSPECTOR_PANEL(), PCB_NET_INSPECTOR_PANEL::DATA_MODEL::resortIfChanged(), SaveSettings(), updateDisplayedRowValues(), NET_INSPECTOR_PANEL::~NET_INSPECTOR_PANEL(), and ~PCB_NET_INSPECTOR_PANEL().
|
private |
Definition at line 286 of file pcb_net_inspector_panel.h.
Referenced by buildColumns().
|
private |
Definition at line 273 of file pcb_net_inspector_panel.h.
Referenced by buildNetsList(), and OnExpandCollapseRow().
|
protectedinherited |
Definition at line 90 of file net_inspector_panel.h.
Referenced by NET_INSPECTOR_PANEL::NET_INSPECTOR_PANEL(), netFilterMatches(), OnBoardChanged(), NET_INSPECTOR_PANEL::OnLanguageChanged(), SaveSettings(), and NET_INSPECTOR_PANEL::~NET_INSPECTOR_PANEL().
|
private |
Definition at line 282 of file pcb_net_inspector_panel.h.
Referenced by netFilterMatches(), OnConfigButton(), onSettingsMenu(), and SaveSettings().
|
private |
Definition at line 281 of file pcb_net_inspector_panel.h.
Referenced by buildNetsList(), OnBoardItemAdded(), OnBoardItemRemoved(), OnConfigButton(), onSettingsMenu(), SaveSettings(), and updateNet().
|
protectedinherited |
Definition at line 89 of file net_inspector_panel.h.
Referenced by NET_INSPECTOR_PANEL::NET_INSPECTOR_PANEL().
|
private |
Definition at line 233 of file pcb_net_inspector_panel.h.
Referenced by buildNetsList().