KiCad PCB EDA Suite
|
#include <fields_data_model.h>
Public Member Functions | |
VIEW_CONTROLS_GRID_DATA_MODEL (bool aForBOM) | |
~VIEW_CONTROLS_GRID_DATA_MODEL () override=default | |
int | GetNumberRows () override |
int | GetNumberCols () override |
wxString | GetColLabelValue (int aCol) override |
bool | IsEmptyCell (int aRow, int aCol) override |
bool | CanGetValueAs (int aRow, int aCol, const wxString &aTypeName) override |
bool | CanSetValueAs (int aRow, int aCol, const wxString &aTypeName) override |
wxString | GetValue (int aRow, int aCol) override |
bool | GetValueAsBool (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 | AppendRow (const wxString &aFieldName, const wxString &aBOMName, bool aShow, bool aGroupBy) |
void | DeleteRow (int aRow) |
wxString | GetCanonicalFieldName (int aRow) |
void | SetCanonicalFieldName (int aRow, const wxString &aName) |
void | SetColAttr (wxGridCellAttr *aAttr, int aCol) override |
wxGridCellAttr * | GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override |
Protected Member Functions | |
wxGridCellAttr * | enhanceAttr (wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) |
Protected Attributes | |
bool | m_forBOM |
std::vector< BOM_FIELD > | m_fields |
std::map< int, wxGridCellAttr * > | m_colAttrs |
Definition at line 41 of file fields_data_model.h.
|
inline |
Definition at line 44 of file fields_data_model.h.
References m_forBOM.
|
overridedefault |
void VIEW_CONTROLS_GRID_DATA_MODEL::AppendRow | ( | const wxString & | aFieldName, |
const wxString & | aBOMName, | ||
bool | aShow, | ||
bool | aGroupBy ) |
Definition at line 133 of file fields_data_model.cpp.
|
inlineoverride |
Definition at line 60 of file fields_data_model.h.
References DISPLAY_NAME_COLUMN, GROUP_BY_COLUMN, LABEL_COLUMN, and SHOW_FIELD_COLUMN.
Referenced by CanSetValueAs().
|
inlineoverride |
Definition at line 74 of file fields_data_model.h.
References CanGetValueAs().
void VIEW_CONTROLS_GRID_DATA_MODEL::DeleteRow | ( | int | aRow | ) |
Definition at line 146 of file fields_data_model.cpp.
References GetNumberRows(), grid, and m_fields.
|
protectedinherited |
Definition at line 45 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().
|
inlineoverrideinherited |
Definition at line 57 of file wx_grid.h.
References enhanceAttr(), and m_colAttrs.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
wxString VIEW_CONTROLS_GRID_DATA_MODEL::GetCanonicalFieldName | ( | int | aRow | ) |
Definition at line 160 of file fields_data_model.cpp.
References GetNumberRows(), m_fields, and BOM_FIELD::name.
|
override |
Definition at line 33 of file fields_data_model.cpp.
References _, DISPLAY_NAME_COLUMN, GROUP_BY_COLUMN, LABEL_COLUMN, m_forBOM, and SHOW_FIELD_COLUMN.
|
inlineoverride |
Definition at line 51 of file fields_data_model.h.
References VIEW_FIELDS_COL_COUNT.
|
inlineoverride |
Definition at line 50 of file fields_data_model.h.
References m_fields.
Referenced by DeleteRow(), GetCanonicalFieldName(), GetValue(), GetValueAsBool(), SetCanonicalFieldName(), SetValue(), and SetValueAsBool().
|
override |
Definition at line 46 of file fields_data_model.cpp.
References DISPLAY_NAME_COLUMN, DO_TRANSLATE, GetDefaultFieldName(), GetNumberRows(), BOM_FIELD::label, LABEL_COLUMN, m_fields, MANDATORY_FIELDS, and BOM_FIELD::name.
|
override |
Definition at line 74 of file fields_data_model.cpp.
References GetNumberRows(), GROUP_BY_COLUMN, BOM_FIELD::groupBy, m_fields, BOM_FIELD::show, and SHOW_FIELD_COLUMN.
|
inlineoverride |
Definition at line 55 of file fields_data_model.h.
void VIEW_CONTROLS_GRID_DATA_MODEL::SetCanonicalFieldName | ( | int | aRow, |
const wxString & | aName ) |
Definition at line 170 of file fields_data_model.cpp.
References GetNumberRows(), m_fields, and BOM_FIELD::name.
|
inlineoverrideinherited |
Definition at line 51 of file wx_grid.h.
References m_colAttrs.
|
override |
Definition at line 92 of file fields_data_model.cpp.
References DISPLAY_NAME_COLUMN, GetNumberRows(), BOM_FIELD::label, LABEL_COLUMN, and m_fields.
|
override |
Definition at line 116 of file fields_data_model.cpp.
References GetNumberRows(), GROUP_BY_COLUMN, BOM_FIELD::groupBy, m_fields, BOM_FIELD::show, and SHOW_FIELD_COLUMN.
|
protectedinherited |
Definition at line 73 of file wx_grid.h.
Referenced by LIB_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), GetAttr(), SetColAttr(), and ~WX_GRID_TABLE_BASE().
|
protected |
Definition at line 93 of file fields_data_model.h.
Referenced by AppendRow(), DeleteRow(), GetCanonicalFieldName(), GetNumberRows(), GetValue(), GetValueAsBool(), SetCanonicalFieldName(), SetValue(), and SetValueAsBool().
|
protected |
Definition at line 92 of file fields_data_model.h.
Referenced by GetColLabelValue(), and VIEW_CONTROLS_GRID_DATA_MODEL().