KiCad PCB EDA Suite
|
#include <pcb_fields_grid_table.h>
Public Member Functions | |
PCB_FIELDS_GRID_TABLE (PCB_BASE_FRAME *aFrame, DIALOG_SHIM *aDialog, std::vector< EMBEDDED_FILES * > aFilesStack) | |
~PCB_FIELDS_GRID_TABLE () | |
int | GetNumberRows () override |
int | GetNumberCols () override |
int | GetMandatoryRowCount () const |
wxString | GetColLabelValue (int aCol) override |
bool | IsEmptyCell (int row, int col) override |
bool | CanGetValueAs (int aRow, int aCol, const wxString &aTypeName) override |
bool | CanSetValueAs (int aRow, int aCol, const wxString &aTypeName) override |
wxGridCellAttr * | GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override |
wxString | GetValue (int aRow, int aCol) override |
bool | GetValueAsBool (int aRow, int aCol) override |
long | GetValueAsLong (int aRow, int aCol) override |
void | SetValue (int aRow, int aCol, const wxString &aValue) override |
void | SetValueAsBool (int aRow, int aCol, bool aValue) override |
void | SetValueAsLong (int aRow, int aCol, long aValue) override |
void | SetColAttr (wxGridCellAttr *aAttr, int aCol) override |
virtual bool | IsExpanderColumn (int aCol) const |
virtual GROUP_TYPE | GetGroupType (int aRow) const |
Public Attributes | |
T | elements |
STL member. | |
Protected Member Functions | |
void | onUnitsChanged (wxCommandEvent &aEvent) |
wxGridCellAttr * | enhanceAttr (wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) |
Protected Attributes | |
std::map< int, wxGridCellAttr * > | m_colAttrs |
Private Attributes | |
PCB_BASE_FRAME * | m_frame |
DIALOG_SHIM * | m_dialog |
FIELD_VALIDATOR | m_fieldNameValidator |
FIELD_VALIDATOR | m_referenceValidator |
FIELD_VALIDATOR | m_valueValidator |
FIELD_VALIDATOR | m_urlValidator |
FIELD_VALIDATOR | m_nonUrlValidator |
wxGridCellAttr * | m_readOnlyAttr |
wxGridCellAttr * | m_boolColAttr |
wxGridCellAttr * | m_orientationColAttr |
wxGridCellAttr * | m_layerColAttr |
wxGridCellAttr * | m_referenceAttr |
wxGridCellAttr * | m_valueAttr |
wxGridCellAttr * | m_urlAttr |
std::unique_ptr< NUMERIC_EVALUATOR > | m_eval |
std::map< std::pair< int, int >, wxString > | m_evalOriginal |
Definition at line 57 of file pcb_fields_grid_table.h.
PCB_FIELDS_GRID_TABLE::PCB_FIELDS_GRID_TABLE | ( | PCB_BASE_FRAME * | aFrame, |
DIALOG_SHIM * | aDialog, | ||
std::vector< EMBEDDED_FILES * > | aFilesStack ) |
Definition at line 50 of file pcb_fields_grid_table.cpp.
References g_menuOrientations, m_boolColAttr, m_dialog, m_eval, m_fieldNameValidator, m_frame, m_layerColAttr, m_nonUrlValidator, m_orientationColAttr, m_readOnlyAttr, m_referenceAttr, m_referenceValidator, m_urlAttr, m_urlValidator, m_valueAttr, m_valueValidator, onUnitsChanged(), REFERENCE, GRID_CELL_TEXT_EDITOR::SetValidator(), USER, and VALUE.
PCB_FIELDS_GRID_TABLE::~PCB_FIELDS_GRID_TABLE | ( | ) |
Definition at line 106 of file pcb_fields_grid_table.cpp.
References m_boolColAttr, m_frame, m_layerColAttr, m_orientationColAttr, m_readOnlyAttr, m_referenceAttr, m_urlAttr, m_valueAttr, and onUnitsChanged().
|
override |
Definition at line 166 of file pcb_fields_grid_table.cpp.
References PFC_HEIGHT, PFC_ITALIC, PFC_KNOCKOUT, PFC_LAYER, PFC_MIRRORED, PFC_NAME, PFC_ORIENTATION, PFC_SHOWN, PFC_THICKNESS, PFC_UPRIGHT, PFC_VALUE, PFC_WIDTH, PFC_XOFFSET, and PFC_YOFFSET.
Referenced by CanSetValueAs().
|
override |
Definition at line 197 of file pcb_fields_grid_table.cpp.
References CanGetValueAs().
|
protectedinherited |
Definition at line 46 of file wx_grid.cpp.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), FIELDS_GRID_TABLE::GetAttr(), LAYERS_GRID_TABLE::GetAttr(), PCB_FIELDS_GRID_TABLE::GetAttr(), SCH_PIN_TABLE_DATA_MODEL::GetAttr(), and GetAttr().
|
override |
Definition at line 203 of file pcb_fields_grid_table.cpp.
References DATASHEET, WX_GRID_TABLE_BASE::enhanceAttr(), PCB_FIELD::GetId(), PCB_FIELD::IsHypertext(), PCB_FIELD::IsMandatory(), m_boolColAttr, m_layerColAttr, m_orientationColAttr, m_readOnlyAttr, m_referenceAttr, m_urlAttr, m_valueAttr, PFC_HEIGHT, PFC_ITALIC, PFC_KNOCKOUT, PFC_LAYER, PFC_MIRRORED, PFC_NAME, PFC_ORIENTATION, PFC_SHOWN, PFC_THICKNESS, PFC_UPRIGHT, PFC_VALUE, PFC_WIDTH, PFC_XOFFSET, PFC_YOFFSET, REFERENCE, and VALUE.
|
override |
Definition at line 143 of file pcb_fields_grid_table.cpp.
References _, PFC_HEIGHT, PFC_ITALIC, PFC_KNOCKOUT, PFC_LAYER, PFC_MIRRORED, PFC_NAME, PFC_ORIENTATION, PFC_SHOWN, PFC_THICKNESS, PFC_UPRIGHT, PFC_VALUE, PFC_WIDTH, PFC_XOFFSET, and PFC_YOFFSET.
|
inlinevirtualinherited |
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 79 of file wx_grid.h.
References GROUP_SINGLETON.
int PCB_FIELDS_GRID_TABLE::GetMandatoryRowCount | ( | ) | const |
Definition at line 120 of file pcb_fields_grid_table.cpp.
References PCB_FIELD::IsMandatory().
|
inlineoverride |
Definition at line 65 of file pcb_fields_grid_table.h.
References PFC_COUNT.
|
inlineoverride |
Definition at line 64 of file pcb_fields_grid_table.h.
|
override |
Definition at line 268 of file pcb_fields_grid_table.cpp.
References BOARD_ITEM::GetFPRelativePosition(), BOARD_ITEM::GetLayerName(), PCB_FIELD::GetName(), FOOTPRINT::GetOrientation(), BOARD_ITEM::GetParentFootprint(), EDA_TEXT::GetText(), EDA_TEXT::GetTextAngle(), EDA_TEXT::GetTextHeight(), EDA_TEXT::GetTextThickness(), EDA_TEXT::GetTextWidth(), grid, m_evalOriginal, m_frame, PFC_HEIGHT, PFC_LAYER, PFC_NAME, PFC_ORIENTATION, PFC_THICKNESS, PFC_VALUE, PFC_WIDTH, PFC_XOFFSET, PFC_YOFFSET, VECTOR2< T >::x, and VECTOR2< T >::y.
|
override |
Definition at line 308 of file pcb_fields_grid_table.cpp.
References EDA_TEXT::IsItalic(), EDA_TEXT::IsKeepUpright(), BOARD_ITEM::IsKnockout(), EDA_TEXT::IsMirrored(), EDA_TEXT::IsVisible(), PFC_ITALIC, PFC_KNOCKOUT, PFC_MIRRORED, PFC_SHOWN, and PFC_UPRIGHT.
|
override |
Definition at line 327 of file pcb_fields_grid_table.cpp.
References BOARD_ITEM::GetLayer(), and PFC_LAYER.
|
inlineoverride |
Definition at line 71 of file pcb_fields_grid_table.h.
|
inlinevirtualinherited |
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
|
protected |
Definition at line 134 of file pcb_fields_grid_table.cpp.
Referenced by PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
inlineoverrideinherited |
Definition at line 61 of file wx_grid.h.
References m_colAttrs.
|
override |
Definition at line 342 of file pcb_fields_grid_table.cpp.
References BOARD_ITEM::GetFPRelativePosition(), FOOTPRINT::GetOrientation(), BOARD_ITEM::GetParentFootprint(), m_dialog, m_eval, m_evalOriginal, m_frame, PFC_HEIGHT, PFC_NAME, PFC_ORIENTATION, PFC_THICKNESS, PFC_VALUE, PFC_WIDTH, PFC_XOFFSET, PFC_YOFFSET, BOARD_ITEM::SetFPRelativePosition(), PCB_FIELD::SetName(), EDA_TEXT::SetText(), EDA_TEXT::SetTextAngle(), EDA_TEXT::SetTextHeight(), EDA_TEXT::SetTextThickness(), EDA_TEXT::SetTextWidth(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
override |
Definition at line 404 of file pcb_fields_grid_table.cpp.
References m_dialog, PFC_ITALIC, PFC_KNOCKOUT, PFC_MIRRORED, PFC_SHOWN, PFC_UPRIGHT, BOARD_ITEM::SetIsKnockout(), EDA_TEXT::SetItalic(), EDA_TEXT::SetKeepUpright(), EDA_TEXT::SetMirrored(), and EDA_TEXT::SetVisible().
|
override |
Definition at line 425 of file pcb_fields_grid_table.cpp.
References BOARD_ITEM::GetBoard(), BOARD_ITEM::GetLayer(), IsBackLayer(), m_dialog, PFC_LAYER, BOARD_ITEM::SetLayer(), EDA_TEXT::SetMirrored(), and ToLAYER_ID().
|
private |
Definition at line 102 of file pcb_fields_grid_table.h.
Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
protectedinherited |
Definition at line 86 of file wx_grid.h.
Referenced by LIB_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), GetAttr(), SetColAttr(), and ~WX_GRID_TABLE_BASE().
|
private |
Definition at line 93 of file pcb_fields_grid_table.h.
Referenced by PCB_FIELDS_GRID_TABLE(), SetValue(), SetValueAsBool(), and SetValueAsLong().
|
private |
Definition at line 109 of file pcb_fields_grid_table.h.
Referenced by PCB_FIELDS_GRID_TABLE(), and SetValue().
|
private |
Definition at line 110 of file pcb_fields_grid_table.h.
Referenced by GetValue(), and SetValue().
|
private |
Definition at line 95 of file pcb_fields_grid_table.h.
Referenced by PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 92 of file pcb_fields_grid_table.h.
Referenced by GetValue(), PCB_FIELDS_GRID_TABLE(), SetValue(), and ~PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 104 of file pcb_fields_grid_table.h.
Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 99 of file pcb_fields_grid_table.h.
Referenced by PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 103 of file pcb_fields_grid_table.h.
Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 101 of file pcb_fields_grid_table.h.
Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 105 of file pcb_fields_grid_table.h.
Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 96 of file pcb_fields_grid_table.h.
Referenced by PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 107 of file pcb_fields_grid_table.h.
Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 98 of file pcb_fields_grid_table.h.
Referenced by PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 106 of file pcb_fields_grid_table.h.
Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 97 of file pcb_fields_grid_table.h.
Referenced by PCB_FIELDS_GRID_TABLE().