KiCad PCB EDA Suite
|
#include <pcb_fields_grid_table.h>
Public Member Functions | |
PCB_FIELDS_GRID_TABLE (PCB_BASE_FRAME *aFrame, DIALOG_SHIM *aDialog) | |
~PCB_FIELDS_GRID_TABLE () | |
int | GetNumberRows () override |
int | GetNumberCols () override |
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 |
Public Attributes | |
T | elements |
STL member. | |
Protected Member Functions | |
void | onUnitsChanged (wxCommandEvent &aEvent) |
wxGridCellAttr * | enhanceAttr (wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) |
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 | ||
) |
Definition at line 50 of file pcb_fields_grid_table.cpp.
References FRAME_FOOTPRINT_EDITOR, FRAME_PCB_EDITOR, g_menuOrientations, GetBoard(), PCB_BASE_FRAME::GetBoard(), BOARD::GetFirstFootprint(), EDA_BASE_FRAME::GetFrameType(), EDA_UNIT_UTILS::GetText(), UNITS_PROVIDER::GetUserUnits(), FOOTPRINT_EDIT_FRAME::IsCurrentFPFromBoard(), KIWAY_HOLDER::Kiway(), m_boolColAttr, m_dialog, m_eval, m_frame, m_layerColAttr, m_orientationColAttr, m_readOnlyAttr, m_referenceAttr, m_referenceValidator, m_urlAttr, m_urlValidator, m_valueAttr, m_valueValidator, onUnitsChanged(), KIWAY::Player(), and GRID_CELL_TEXT_EDITOR::SetValidator().
PCB_FIELDS_GRID_TABLE::~PCB_FIELDS_GRID_TABLE | ( | ) |
Definition at line 133 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 179 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 210 of file pcb_fields_grid_table.cpp.
References CanGetValueAs().
|
protectedinherited |
Definition at line 45 of file wx_grid.cpp.
Referenced by SCH_PIN_TABLE_DATA_MODEL::GetAttr(), FIELDS_GRID_TABLE::GetAttr(), PRIVATE_LAYERS_GRID_TABLE::GetAttr(), and GetAttr().
|
override |
Definition at line 216 of file pcb_fields_grid_table.cpp.
References DATASHEET_FIELD, WX_GRID_TABLE_BASE::enhanceAttr(), m_boolColAttr, m_layerColAttr, m_orientationColAttr, m_readOnlyAttr, m_referenceAttr, m_urlAttr, m_valueAttr, MANDATORY_FIELDS, 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_FIELD, and VALUE_FIELD.
|
override |
Definition at line 156 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.
|
inlineoverride |
Definition at line 64 of file pcb_fields_grid_table.h.
References PFC_COUNT.
|
inlineoverride |
Definition at line 63 of file pcb_fields_grid_table.h.
Referenced by DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow(), and DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataToWindow().
|
override |
Definition at line 279 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, UNITS_PROVIDER::StringFromValue(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
override |
Definition at line 319 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 338 of file pcb_fields_grid_table.cpp.
References BOARD_ITEM::GetLayer(), and PFC_LAYER.
|
inlineoverride |
Definition at line 68 of file pcb_fields_grid_table.h.
|
protected |
Definition at line 147 of file pcb_fields_grid_table.cpp.
Referenced by PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
override |
Definition at line 353 of file pcb_fields_grid_table.cpp.
References UNITS_PROVIDER::AngleValueFromString(), BOARD_ITEM::GetFPRelativePosition(), FOOTPRINT::GetOrientation(), BOARD_ITEM::GetParentFootprint(), UNITS_PROVIDER::GetUserUnits(), m_dialog, m_eval, m_evalOriginal, m_frame, DIALOG_SHIM::OnModify(), 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(), UNITS_PROVIDER::ValueFromString(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
override |
Definition at line 415 of file pcb_fields_grid_table.cpp.
References m_dialog, DIALOG_SHIM::OnModify(), 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 436 of file pcb_fields_grid_table.cpp.
References BOARD_ITEM::GetLayer(), IsBackLayer(), m_dialog, DIALOG_SHIM::OnModify(), PFC_LAYER, BOARD_ITEM::SetLayer(), EDA_TEXT::SetMirrored(), and ToLAYER_ID().
|
inherited |
STL member.
|
private |
Definition at line 99 of file pcb_fields_grid_table.h.
Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 90 of file pcb_fields_grid_table.h.
Referenced by PCB_FIELDS_GRID_TABLE(), SetValue(), SetValueAsBool(), and SetValueAsLong().
|
private |
Definition at line 106 of file pcb_fields_grid_table.h.
Referenced by PCB_FIELDS_GRID_TABLE(), and SetValue().
|
private |
Definition at line 107 of file pcb_fields_grid_table.h.
Referenced by GetValue(), and SetValue().
|
private |
Definition at line 92 of file pcb_fields_grid_table.h.
|
private |
Definition at line 89 of file pcb_fields_grid_table.h.
Referenced by GetValue(), PCB_FIELDS_GRID_TABLE(), SetValue(), 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 96 of file pcb_fields_grid_table.h.
|
private |
Definition at line 100 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 GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 102 of file pcb_fields_grid_table.h.
Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().
|
private |
Definition at line 93 of file pcb_fields_grid_table.h.
Referenced by 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 95 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 94 of file pcb_fields_grid_table.h.
Referenced by PCB_FIELDS_GRID_TABLE().