KiCad PCB EDA Suite
|
#include <appearance_controls.h>
Public Types | |
enum | COLUMNS { COL_COLOR , COL_VISIBILITY , COL_LABEL , COL_SIZE } |
Public Member Functions | |
NET_GRID_TABLE (PCB_BASE_FRAME *aFrame, wxColor aBackgroundColor) | |
~NET_GRID_TABLE () | |
int | GetNumberRows () override |
int | GetNumberCols () override |
wxGridCellAttr * | GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind) override |
wxString | GetValue (int aRow, int aCol) override |
void | SetValue (int aRow, int aCol, const wxString &aValue) override |
wxString | GetTypeName (int aRow, int aCol) override |
bool | GetValueAsBool (int aRow, int aCol) override |
void | SetValueAsBool (int aRow, int aCol, bool aValue) override |
void * | GetValueAsCustom (int aRow, int aCol, const wxString &aTypeName) override |
void | SetValueAsCustom (int aRow, int aCol, const wxString &aTypeName, void *aValue) override |
NET_GRID_ENTRY & | GetEntry (int aRow) |
int | GetRowByNetcode (int aCode) const |
void | Rebuild () |
void | ShowAllNets () |
void | HideOtherNets (const NET_GRID_ENTRY &aNet) |
Static Public Member Functions | |
static void * | ColorToVoid (COLOR4D &aColor) |
static COLOR4D | VoidToColor (void *aColor) |
Private Member Functions | |
void | updateNetVisibility (const NET_GRID_ENTRY &aNet) |
void | updateNetColor (const NET_GRID_ENTRY &aNet) |
Private Attributes | |
PCB_BASE_FRAME * | m_frame |
std::vector< NET_GRID_ENTRY > | m_nets |
wxGridCellAttr * | m_defaultAttr |
wxGridCellAttr * | m_labelAttr |
Definition at line 65 of file appearance_controls.h.
Enumerator | |
---|---|
COL_COLOR | |
COL_VISIBILITY | |
COL_LABEL | |
COL_SIZE |
Definition at line 68 of file appearance_controls.h.
NET_GRID_TABLE::NET_GRID_TABLE | ( | PCB_BASE_FRAME * | aFrame, |
wxColor | aBackgroundColor ) |
Definition at line 67 of file appearance_controls.cpp.
References m_defaultAttr, m_frame, and m_labelAttr.
NET_GRID_TABLE::~NET_GRID_TABLE | ( | ) |
Definition at line 80 of file appearance_controls.cpp.
References m_defaultAttr, and m_labelAttr.
|
inlinestatic |
Definition at line 76 of file appearance_controls.h.
Referenced by GetValueAsCustom().
|
override |
Definition at line 87 of file appearance_controls.cpp.
References COL_COLOR, COL_LABEL, COL_VISIBILITY, m_defaultAttr, and m_labelAttr.
NET_GRID_ENTRY & NET_GRID_TABLE::GetEntry | ( | int | aRow | ) |
Definition at line 200 of file appearance_controls.cpp.
References m_nets.
|
inlineoverride |
Definition at line 95 of file appearance_controls.h.
References COL_SIZE.
|
inlineoverride |
Definition at line 90 of file appearance_controls.h.
References m_nets.
int NET_GRID_TABLE::GetRowByNetcode | ( | int | aCode | ) | const |
Definition at line 207 of file appearance_controls.cpp.
References m_nets.
|
override |
Definition at line 148 of file appearance_controls.cpp.
References COL_COLOR, COL_LABEL, and COL_VISIBILITY.
|
override |
Definition at line 106 of file appearance_controls.cpp.
References COL_COLOR, COL_LABEL, COL_VISIBILITY, and m_nets.
|
override |
Definition at line 160 of file appearance_controls.cpp.
References COL_VISIBILITY, and m_nets.
|
override |
Definition at line 179 of file appearance_controls.cpp.
References COL_COLOR, color, ColorToVoid(), and m_nets.
void NET_GRID_TABLE::HideOtherNets | ( | const NET_GRID_ENTRY & | aNet | ) |
Definition at line 284 of file appearance_controls.cpp.
References NET_GRID_ENTRY::code, m_nets, and updateNetVisibility().
void NET_GRID_TABLE::Rebuild | ( | ) |
Definition at line 222 of file appearance_controls.cpp.
References color, KIGFX::PCB_RENDER_SETTINGS::GetHiddenNets(), KIGFX::PCB_RENDER_SETTINGS::GetNetColorMap(), BOARD::GetNetInfo(), m_frame, m_nets, NETINFO_LIST::NetsByName(), and COLOR4D::UNSPECIFIED.
|
override |
Definition at line 120 of file appearance_controls.cpp.
References COL_COLOR, COL_LABEL, COL_VISIBILITY, NET_GRID_ENTRY::color, m_nets, NET_GRID_ENTRY::name, KIGFX::COLOR4D::SetFromWxString(), updateNetColor(), updateNetVisibility(), and NET_GRID_ENTRY::visible.
|
override |
Definition at line 169 of file appearance_controls.cpp.
References COL_VISIBILITY, m_nets, and updateNetVisibility().
|
override |
Definition at line 189 of file appearance_controls.cpp.
References COL_COLOR, m_nets, updateNetColor(), and VoidToColor().
void NET_GRID_TABLE::ShowAllNets | ( | ) |
Definition at line 271 of file appearance_controls.cpp.
References m_nets, and updateNetVisibility().
|
private |
Definition at line 306 of file appearance_controls.cpp.
References NET_GRID_ENTRY::code, NET_GRID_ENTRY::color, KIGFX::PCB_RENDER_SETTINGS::GetNetColorMap(), m_frame, and COLOR4D::UNSPECIFIED.
Referenced by SetValue(), and SetValueAsCustom().
|
private |
Definition at line 297 of file appearance_controls.cpp.
References NET_GRID_ENTRY::code, PCB_ACTIONS::hideNetInRatsnest, m_frame, PCB_ACTIONS::showNetInRatsnest, and NET_GRID_ENTRY::visible.
Referenced by HideOtherNets(), SetValue(), SetValueAsBool(), and ShowAllNets().
|
inlinestatic |
Definition at line 81 of file appearance_controls.h.
Referenced by SetValueAsCustom().
|
private |
Definition at line 136 of file appearance_controls.h.
Referenced by GetAttr(), NET_GRID_TABLE(), and ~NET_GRID_TABLE().
|
private |
Definition at line 132 of file appearance_controls.h.
Referenced by NET_GRID_TABLE(), Rebuild(), updateNetColor(), and updateNetVisibility().
|
private |
Definition at line 137 of file appearance_controls.h.
Referenced by GetAttr(), NET_GRID_TABLE(), and ~NET_GRID_TABLE().
|
private |
Definition at line 134 of file appearance_controls.h.
Referenced by GetEntry(), GetNumberRows(), GetRowByNetcode(), GetValue(), GetValueAsBool(), GetValueAsCustom(), HideOtherNets(), Rebuild(), SetValue(), SetValueAsBool(), SetValueAsCustom(), and ShowAllNets().