KiCad PCB EDA Suite
|
#include <fields_data_model.h>
Public Types | |
enum | SCOPE : int { SCOPE_ALL = 0 , SCOPE_SHEET = 1 , SCOPE_SHEET_RECURSIVE = 2 } |
Public Member Functions | |
FIELDS_EDITOR_GRID_DATA_MODEL (SCH_REFERENCE_LIST &aSymbolsList, wxGridCellAttr *aURLEditor) | |
~FIELDS_EDITOR_GRID_DATA_MODEL () override | |
void | AddColumn (const wxString &aFieldName, const wxString &aLabel, bool aAddedByUser) |
void | RemoveColumn (int aCol) |
void | RenameColumn (int aCol, const wxString &newName) |
void | MoveColumn (int aCol, int aNewPos) |
int | GetNumberRows () override |
int | GetNumberCols () override |
void | SetColLabelValue (int aCol, const wxString &aLabel) override |
wxString | GetColLabelValue (int aCol) override |
wxString | GetColFieldName (int aCol) |
int | GetFieldNameCol (const wxString &aFieldName) |
const std::vector< BOM_FIELD > | GetFieldsOrdered () |
void | SetFieldsOrder (const std::vector< wxString > &aNewOrder) |
bool | IsEmptyCell (int aRow, int aCol) override |
wxString | GetValue (int aRow, int aCol) override |
wxGridCellAttr * | GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override |
wxString | GetValue (const DATA_MODEL_ROW &group, int aCol, const wxString &refDelimiter=wxT(", "), const wxString &refRangDelimiter=wxT("-"), bool resolveVars=false, bool listMixedValues=false) |
wxString | GetExportValue (int aRow, int aCol, const wxString &refDelimiter, const wxString &refRangeDelimiter) |
void | SetValue (int aRow, int aCol, const wxString &aValue) override |
GROUP_TYPE | GetRowFlags (int aRow) |
std::vector< SCH_REFERENCE > | GetRowReferences (int aRow) const |
bool | ColIsReference (int aCol) |
bool | ColIsValue (int aCol) |
bool | ColIsQuantity (int aCol) |
bool | ColIsItemNumber (int aCol) |
bool | ColIsAttribute (int aCol) |
void | SetSorting (int aCol, bool ascending) |
int | GetSortCol () |
bool | GetSortAsc () |
void | EnableRebuilds () |
void | DisableRebuilds () |
void | RebuildRows () |
void | ExpandRow (int aRow) |
void | CollapseRow (int aRow) |
void | ExpandCollapseRow (int aRow) |
void | CollapseForSort () |
void | ExpandAfterSort () |
void | ApplyData (SCH_COMMIT &aCommit) |
bool | IsEdited () |
int | GetDataWidth (int aCol) |
void | SetFilter (const wxString &aFilter) |
const wxString & | GetFilter () |
void | SetScope (SCOPE aScope) |
SCOPE | GetScope () |
void | SetPath (const SCH_SHEET_PATH &aPath) |
const SCH_SHEET_PATH & | GetPath () |
void | SetGroupingEnabled (bool group) |
bool | GetGroupingEnabled () |
void | SetIncludeExcludedFromBOM (bool include) |
bool | GetIncludeExcludedFromBOM () |
void | SetExcludeDNP (bool exclude) |
bool | GetExcludeDNP () |
void | SetGroupColumn (int aCol, bool group) |
bool | GetGroupColumn (int aCol) |
void | SetShowColumn (int aCol, bool show) |
bool | GetShowColumn (int aCol) |
void | ApplyBomPreset (const BOM_PRESET &preset) |
BOM_PRESET | GetBomSettings () |
wxString | Export (const BOM_FMT_PRESET &settings) |
void | AddReferences (const SCH_REFERENCE_LIST &aRefs) |
void | RemoveReferences (const SCH_REFERENCE_LIST &aRefs) |
void | RemoveSymbol (const SCH_SYMBOL &aSymbol) |
void | UpdateReferences (const SCH_REFERENCE_LIST &aRefs) |
void | SetColAttr (wxGridCellAttr *aAttr, int aCol) override |
Static Public Attributes | |
static const wxString | QUANTITY_VARIABLE = wxS( "${QUANTITY}" ) |
static const wxString | ITEM_NUMBER_VARIABLE = wxS( "${ITEM_NUMBER}" ) |
Protected Member Functions | |
wxGridCellAttr * | enhanceAttr (wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) |
Protected Attributes | |
SCH_REFERENCE_LIST | m_symbolsList |
bool | m_edited |
int | m_sortColumn |
bool | m_sortAscending |
wxString | m_filter |
enum SCOPE | m_scope |
SCH_SHEET_PATH | m_path |
bool | m_groupingEnabled |
bool | m_excludeDNP |
bool | m_includeExcluded |
bool | m_rebuildsEnabled |
wxGridCellAttr * | m_urlEditor |
std::map< int, wxGridCellAttr * > | m_colAttrs |
std::vector< DATA_MODEL_COL > | m_cols |
std::vector< DATA_MODEL_ROW > | m_rows |
std::map< KIID, std::map< wxString, wxString > > | m_dataStore |
Private Member Functions | |
bool | unitMatch (const SCH_REFERENCE &lhRef, const SCH_REFERENCE &rhRef) |
bool | groupMatch (const SCH_REFERENCE &lhRef, const SCH_REFERENCE &rhRef) |
bool | isAttribute (const wxString &aFieldName) |
wxString | getAttributeValue (const SCH_SYMBOL &, const wxString &aAttributeName) |
void | setAttributeValue (SCH_SYMBOL &aSymbol, const wxString &aAttributeName, const wxString &aValue) |
wxString | getFieldShownText (const SCH_REFERENCE &aRef, const wxString &aFieldName) |
void | Sort () |
SCH_REFERENCE_LIST | getSymbolReferences (SCH_SYMBOL *aSymbol) |
void | storeReferenceFields (SCH_REFERENCE &aRef) |
void | updateDataStoreSymbolField (const SCH_SYMBOL &aSymbol, const wxString &aFieldName) |
Static Private Member Functions | |
static bool | cmp (const DATA_MODEL_ROW &lhGroup, const DATA_MODEL_ROW &rhGroup, FIELDS_EDITOR_GRID_DATA_MODEL *dataModel, int sortCol, bool ascending) |
Definition at line 73 of file fields_data_model.h.
enum FIELDS_EDITOR_GRID_DATA_MODEL::SCOPE : int |
Enumerator | |
---|---|
SCOPE_ALL | |
SCOPE_SHEET | |
SCOPE_SHEET_RECURSIVE |
Definition at line 76 of file fields_data_model.h.
|
inline |
Definition at line 83 of file fields_data_model.h.
References m_symbolsList, and SCH_REFERENCE_LIST::SplitReferences().
|
inlineoverride |
Definition at line 98 of file fields_data_model.h.
References m_colAttrs, and m_urlEditor.
void FIELDS_EDITOR_GRID_DATA_MODEL::AddColumn | ( | const wxString & | aFieldName, |
const wxString & | aLabel, | ||
bool | aAddedByUser | ||
) |
Definition at line 37 of file fields_data_model.cpp.
References SCH_REFERENCE_LIST::GetCount(), GetFieldNameCol(), m_cols, m_symbolsList, and updateDataStoreSymbolField().
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::AddField(), ApplyBomPreset(), and EESCHEMA_JOBS_HANDLER::JobExportBom().
void FIELDS_EDITOR_GRID_DATA_MODEL::AddReferences | ( | const SCH_REFERENCE_LIST & | aRefs | ) |
Definition at line 1035 of file fields_data_model.cpp.
References SCH_REFERENCE_LIST::AddItem(), SCH_REFERENCE_LIST::Contains(), SCHEMATIC::ConvertKIIDsToRefs(), SCH_SYMBOL::GetFields(), m_dataStore, m_symbolsList, EDA_ITEM::m_Uuid, name, and SCH_ITEM::Schematic().
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsAdded().
void FIELDS_EDITOR_GRID_DATA_MODEL::ApplyBomPreset | ( | const BOM_PRESET & | preset | ) |
Definition at line 886 of file fields_data_model.cpp.
References AddColumn(), BOM_PRESET::excludeDNP, BOM_PRESET::fieldsOrdered, BOM_PRESET::filterString, GetCanonicalFieldName(), GetFieldNameCol(), BOM_FIELD::groupBy, BOM_PRESET::groupSymbols, BOM_PRESET::includeExcludedFromBOM, BOM_FIELD::label, m_cols, BOM_FIELD::name, RebuildRows(), REFERENCE_FIELD, SetColLabelValue(), SetExcludeDNP(), SetFieldsOrder(), SetFilter(), SetGroupColumn(), SetGroupingEnabled(), SetIncludeExcludedFromBOM(), SetShowColumn(), SetSorting(), BOM_FIELD::show, BOM_PRESET::sortAsc, and BOM_PRESET::sortField.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), and EESCHEMA_JOBS_HANDLER::JobExportBom().
void FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData | ( | SCH_COMMIT & | aCommit | ) |
Definition at line 788 of file fields_data_model.cpp.
References SCH_SYMBOL::AddField(), SCHEMATIC::ConvertRefsToKIIDs(), SCH_SYMBOL::FindField(), SCH_REFERENCE_LIST::GetCount(), GetFieldNameCol(), SCH_SYMBOL::GetFields(), SCH_FIELD::GetId(), SCH_SYMBOL::GetPosition(), isAttribute(), SCH_ITEM::IsPrivate(), IsTextVar(), m_cols, m_dataStore, m_edited, m_symbolsList, EDA_ITEM::m_Uuid, COMMIT::Modify(), REFERENCE_FIELD, SCH_ITEM::Schematic(), setAttributeValue(), SCH_ITEM::SetPrivate(), and SCH_FIELD::SetText().
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::TransferDataFromWindow().
|
staticprivate |
Definition at line 359 of file fields_data_model.cpp.
References GetValue(), DATA_MODEL_ROW::m_Refs, REFERENCE_FIELD, StrNumCmp(), and ValueStringCompare().
bool FIELDS_EDITOR_GRID_DATA_MODEL::ColIsAttribute | ( | int | aCol | ) |
Definition at line 352 of file fields_data_model.cpp.
References isAttribute(), and m_cols.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties(), and SetValue().
bool FIELDS_EDITOR_GRID_DATA_MODEL::ColIsItemNumber | ( | int | aCol | ) |
Definition at line 345 of file fields_data_model.cpp.
References ITEM_NUMBER_VARIABLE, and m_cols.
Referenced by GetValue(), DIALOG_SYMBOL_FIELDS_TABLE::OnColSort(), DIALOG_SYMBOL_FIELDS_TABLE::OnColumnItemToggled(), and DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties().
bool FIELDS_EDITOR_GRID_DATA_MODEL::ColIsQuantity | ( | int | aCol | ) |
Definition at line 338 of file fields_data_model.cpp.
References m_cols, and QUANTITY_VARIABLE.
Referenced by GetValue(), DIALOG_SYMBOL_FIELDS_TABLE::OnColumnItemToggled(), and DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties().
bool FIELDS_EDITOR_GRID_DATA_MODEL::ColIsReference | ( | int | aCol | ) |
Definition at line 324 of file fields_data_model.cpp.
References GetCanonicalFieldName(), m_cols, and REFERENCE_FIELD.
Referenced by GetDataWidth(), GetValue(), DIALOG_SYMBOL_FIELDS_TABLE::OnTableCellClick(), DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties(), SetValue(), and DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow().
bool FIELDS_EDITOR_GRID_DATA_MODEL::ColIsValue | ( | int | aCol | ) |
Definition at line 331 of file fields_data_model.cpp.
References GetCanonicalFieldName(), m_cols, and VALUE_FIELD.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow().
void FIELDS_EDITOR_GRID_DATA_MODEL::CollapseForSort | ( | ) |
Definition at line 765 of file fields_data_model.cpp.
References CollapseRow(), GROUP_COLLAPSED_DURING_SORT, GROUP_EXPANDED, and m_rows.
Referenced by Sort().
void FIELDS_EDITOR_GRID_DATA_MODEL::CollapseRow | ( | int | aRow | ) |
Definition at line 734 of file fields_data_model.cpp.
References CHILD_ITEM, GROUP_COLLAPSED, and m_rows.
Referenced by CollapseForSort(), and ExpandCollapseRow().
void FIELDS_EDITOR_GRID_DATA_MODEL::DisableRebuilds | ( | ) |
Definition at line 597 of file fields_data_model.cpp.
References m_rebuildsEnabled.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset().
void FIELDS_EDITOR_GRID_DATA_MODEL::EnableRebuilds | ( | ) |
Definition at line 591 of file fields_data_model.cpp.
References m_rebuildsEnabled.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset().
|
protectedinherited |
Definition at line 45 of file wx_grid.cpp.
Referenced by SCH_PIN_TABLE_DATA_MODEL::GetAttr(), GetAttr(), FIELDS_GRID_TABLE::GetAttr(), PRIVATE_LAYERS_GRID_TABLE::GetAttr(), and PCB_FIELDS_GRID_TABLE::GetAttr().
void FIELDS_EDITOR_GRID_DATA_MODEL::ExpandAfterSort | ( | ) |
Definition at line 778 of file fields_data_model.cpp.
References ExpandRow(), GROUP_COLLAPSED_DURING_SORT, and m_rows.
Referenced by Sort().
void FIELDS_EDITOR_GRID_DATA_MODEL::ExpandCollapseRow | ( | int | aRow | ) |
Definition at line 754 of file fields_data_model.cpp.
References CollapseRow(), ExpandRow(), group, GROUP_COLLAPSED, GROUP_EXPANDED, and m_rows.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnTableCellClick().
void FIELDS_EDITOR_GRID_DATA_MODEL::ExpandRow | ( | int | aRow | ) |
Definition at line 692 of file fields_data_model.cpp.
References CHILD_ITEM, GROUP_EXPANDED, m_rows, and unitMatch().
Referenced by ExpandAfterSort(), and ExpandCollapseRow().
wxString FIELDS_EDITOR_GRID_DATA_MODEL::Export | ( | const BOM_FMT_PRESET & | settings | ) |
Definition at line 959 of file fields_data_model.cpp.
References CHILD_ITEM, BOM_FMT_PRESET::fieldDelimiter, GetExportValue(), GetRowFlags(), BOM_FMT_PRESET::keepLineBreaks, BOM_FMT_PRESET::keepTabs, m_cols, m_rows, BOM_FMT_PRESET::refDelimiter, BOM_FMT_PRESET::refRangeDelimiter, and BOM_FMT_PRESET::stringDelimiter.
Referenced by EESCHEMA_JOBS_HANDLER::JobExportBom(), and DIALOG_SYMBOL_FIELDS_TABLE::PreviewRefresh().
|
override |
Definition at line 178 of file fields_data_model.cpp.
References DATASHEET_FIELD, WX_GRID_TABLE_BASE::enhanceAttr(), GetCanonicalFieldName(), GetColFieldName(), GetValue(), IsURL(), m_colAttrs, m_rows, and m_urlEditor.
|
private |
Definition at line 558 of file fields_data_model.cpp.
References SYMBOL::GetDNP(), SYMBOL::GetExcludedFromBoard(), SYMBOL::GetExcludedFromBOM(), and SYMBOL::GetExcludedFromSim().
Referenced by updateDataStoreSymbolField().
BOM_PRESET FIELDS_EDITOR_GRID_DATA_MODEL::GetBomSettings | ( | ) |
Definition at line 943 of file fields_data_model.cpp.
References BOM_PRESET::excludeDNP, BOM_PRESET::fieldsOrdered, BOM_PRESET::filterString, GetColFieldName(), GetExcludeDNP(), GetFieldsOrdered(), GetFilter(), GetGroupingEnabled(), GetIncludeExcludedFromBOM(), GetSortAsc(), GetSortCol(), BOM_PRESET::groupSymbols, BOM_PRESET::includeExcludedFromBOM, BOM_PRESET::readOnly, BOM_PRESET::sortAsc, and BOM_PRESET::sortField.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::onBomPresetChanged(), DIALOG_SYMBOL_FIELDS_TABLE::OnOk(), DIALOG_SYMBOL_FIELDS_TABLE::savePresetsToSchematic(), and DIALOG_SYMBOL_FIELDS_TABLE::syncBomPresetSelection().
|
inline |
Definition at line 150 of file fields_data_model.h.
References m_cols.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), GetAttr(), GetBomSettings(), GetDataWidth(), DIALOG_SYMBOL_FIELDS_TABLE::OnAddField(), DIALOG_SYMBOL_FIELDS_TABLE::OnClose(), DIALOG_SYMBOL_FIELDS_TABLE::OnColMove(), DIALOG_SYMBOL_FIELDS_TABLE::OnColSort(), DIALOG_SYMBOL_FIELDS_TABLE::OnRemoveField(), DIALOG_SYMBOL_FIELDS_TABLE::OnTableColSize(), DIALOG_SYMBOL_FIELDS_TABLE::SetupAllColumnProperties(), and DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties().
|
inlineoverride |
Definition at line 144 of file fields_data_model.h.
References m_cols.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset().
int FIELDS_EDITOR_GRID_DATA_MODEL::GetDataWidth | ( | int | aCol | ) |
Definition at line 860 of file fields_data_model.cpp.
References ColIsReference(), GetColFieldName(), SCH_REFERENCE_LIST::GetCount(), GetNumberRows(), KIUI::GetTextSize(), GetValue(), m_dataStore, m_symbolsList, and text.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::SetupAllColumnProperties().
|
inline |
Definition at line 245 of file fields_data_model.h.
References m_excludeDNP.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), and GetBomSettings().
|
inline |
Definition at line 175 of file fields_data_model.h.
References GetValue(), and m_rows.
Referenced by Export().
int FIELDS_EDITOR_GRID_DATA_MODEL::GetFieldNameCol | ( | const wxString & | aFieldName | ) |
Definition at line 116 of file fields_data_model.cpp.
References m_cols.
Referenced by AddColumn(), ApplyBomPreset(), ApplyData(), DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), groupMatch(), DIALOG_SYMBOL_FIELDS_TABLE::OnColLabelChange(), DIALOG_SYMBOL_FIELDS_TABLE::OnColumnItemToggled(), DIALOG_SYMBOL_FIELDS_TABLE::OnRenameField(), and DIALOG_SYMBOL_FIELDS_TABLE::SetupAllColumnProperties().
|
private |
Definition at line 516 of file fields_data_model.cpp.
References ExpandTextVars(), SCH_SYMBOL::GetFieldByName(), SCH_REFERENCE::GetSheetPath(), SCH_FIELD::GetShownText(), SCH_REFERENCE::GetSymbol(), SCH_ITEM::IsPrivate(), IsTextVar(), path, and SCH_SYMBOL::ResolveTextVar().
Referenced by GetValue(), and groupMatch().
const std::vector< BOM_FIELD > FIELDS_EDITOR_GRID_DATA_MODEL::GetFieldsOrdered | ( | ) |
Definition at line 128 of file fields_data_model.cpp.
References m_cols.
Referenced by GetBomSettings(), EESCHEMA_JOBS_HANDLER::JobExportBom(), and DIALOG_SYMBOL_FIELDS_TABLE::OnOk().
|
inline |
Definition at line 226 of file fields_data_model.h.
References m_filter.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), and GetBomSettings().
|
inline |
Definition at line 253 of file fields_data_model.h.
References m_cols.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset().
|
inline |
Definition at line 235 of file fields_data_model.h.
References m_groupingEnabled.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), and GetBomSettings().
|
inline |
Definition at line 242 of file fields_data_model.h.
References m_includeExcluded.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), and GetBomSettings().
|
inlineoverride |
Definition at line 135 of file fields_data_model.h.
References m_cols.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnAddField(), DIALOG_SYMBOL_FIELDS_TABLE::OnRemoveField(), and DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow().
|
inlineoverride |
Definition at line 134 of file fields_data_model.h.
References m_rows.
Referenced by GetDataWidth(), and DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow().
|
inline |
Definition at line 232 of file fields_data_model.h.
References m_path.
|
inline |
|
inline |
Definition at line 185 of file fields_data_model.h.
References m_rows.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnTableRangeSelected(), and DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow().
|
inline |
Definition at line 229 of file fields_data_model.h.
References m_scope.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnSchSheetChanged().
|
inline |
Definition at line 265 of file fields_data_model.h.
References m_cols.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), and DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow().
|
inline |
Definition at line 205 of file fields_data_model.h.
References m_sortAscending.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), GetBomSettings(), and DIALOG_SYMBOL_FIELDS_TABLE::SetupAllColumnProperties().
|
inline |
Definition at line 204 of file fields_data_model.h.
References m_sortColumn.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), GetBomSettings(), and DIALOG_SYMBOL_FIELDS_TABLE::SetupAllColumnProperties().
|
private |
wxString FIELDS_EDITOR_GRID_DATA_MODEL::GetValue | ( | const DATA_MODEL_ROW & | group, |
int | aCol, | ||
const wxString & | refDelimiter = wxT( ", " ) , |
||
const wxString & | refRangDelimiter = wxT( "-" ) , |
||
bool | resolveVars = false , |
||
bool | listMixedValues = false |
||
) |
Definition at line 201 of file fields_data_model.cpp.
References CHILD_ITEM, ColIsItemNumber(), ColIsQuantity(), ColIsReference(), getFieldShownText(), SCH_REFERENCE::GetSymbol(), group, INDETERMINATE_STATE, IsTextVar(), m_cols, m_dataStore, EDA_ITEM::m_Uuid, and SCH_REFERENCE_LIST::Shorthand().
|
override |
Definition at line 157 of file fields_data_model.cpp.
References CHILD_ITEM, ColIsReference(), GetValue(), GROUP_COLLAPSED, GROUP_EXPANDED, and m_rows.
Referenced by cmp(), GetAttr(), GetDataWidth(), GetExportValue(), and GetValue().
|
private |
Definition at line 444 of file fields_data_model.cpp.
References GetCanonicalFieldName(), GetFieldNameCol(), getFieldShownText(), SCH_REFERENCE::GetRef(), SCH_REFERENCE::GetSymbol(), IsTextVar(), m_cols, m_dataStore, EDA_ITEM::m_Uuid, and REFERENCE_FIELD.
Referenced by RebuildRows().
|
private |
Definition at line 549 of file fields_data_model.cpp.
Referenced by ApplyData(), ColIsAttribute(), and updateDataStoreSymbolField().
|
inline |
Definition at line 221 of file fields_data_model.h.
References m_edited.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnClose(), and DIALOG_SYMBOL_FIELDS_TABLE::OnExport().
|
inlineoverride |
Definition at line 161 of file fields_data_model.h.
|
inline |
Definition at line 114 of file fields_data_model.h.
References m_cols.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnColMove().
void FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows | ( | ) |
Definition at line 603 of file fields_data_model.cpp.
References SCH_REFERENCE_LIST::GetCount(), SCH_SHEET_PATH::GetDNP(), SYMBOL::GetDNP(), SCH_SHEET_PATH::GetExcludedFromBOM(), SYMBOL::GetExcludedFromBOM(), SCH_REFERENCE::GetFullRef(), SCH_REFERENCE::GetSheetPath(), SCH_REFERENCE::GetSymbol(), GROUP_COLLAPSED, GROUP_SINGLETON, groupMatch(), SCH_SHEET_PATH::IsContainedWithin(), SCH_REFERENCE::IsMultiUnit(), m_excludeDNP, m_filter, m_groupingEnabled, m_includeExcluded, m_path, m_rebuildsEnabled, m_rows, m_scope, m_symbolsList, Sort(), unitMatch(), and WildCompareString().
Referenced by ApplyBomPreset(), DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), DIALOG_SYMBOL_FIELDS_TABLE::OnColSort(), DIALOG_SYMBOL_FIELDS_TABLE::OnColumnItemToggled(), DIALOG_SYMBOL_FIELDS_TABLE::OnExcludeDNPToggled(), DIALOG_SYMBOL_FIELDS_TABLE::OnFilterText(), DIALOG_SYMBOL_FIELDS_TABLE::OnGroupSymbolsToggled(), DIALOG_SYMBOL_FIELDS_TABLE::OnRegroupSymbols(), DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsAdded(), DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsChanged(), DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsRemoved(), DIALOG_SYMBOL_FIELDS_TABLE::OnSchSheetChanged(), DIALOG_SYMBOL_FIELDS_TABLE::OnShowExcludedToggled(), DIALOG_SYMBOL_FIELDS_TABLE::PreviewRefresh(), and DIALOG_SYMBOL_FIELDS_TABLE::UpdateScope().
void FIELDS_EDITOR_GRID_DATA_MODEL::RemoveColumn | ( | int | aCol | ) |
Definition at line 85 of file fields_data_model.cpp.
References SCH_REFERENCE_LIST::GetCount(), m_cols, m_dataStore, and m_symbolsList.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnRemoveField().
void FIELDS_EDITOR_GRID_DATA_MODEL::RemoveReferences | ( | const SCH_REFERENCE_LIST & | aRefs | ) |
Definition at line 1078 of file fields_data_model.cpp.
References SCH_REFERENCE_LIST::FindRefByFullPath(), m_dataStore, m_symbolsList, and SCH_REFERENCE_LIST::RemoveItem().
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsRemoved().
void FIELDS_EDITOR_GRID_DATA_MODEL::RemoveSymbol | ( | const SCH_SYMBOL & | aSymbol | ) |
Definition at line 1061 of file fields_data_model.cpp.
References SCH_REFERENCE_LIST::begin(), SCH_REFERENCE_LIST::end(), SCH_REFERENCE_LIST::erase(), m_dataStore, m_symbolsList, and EDA_ITEM::m_Uuid.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsRemoved().
void FIELDS_EDITOR_GRID_DATA_MODEL::RenameColumn | ( | int | aCol, |
const wxString & | newName | ||
) |
Definition at line 97 of file fields_data_model.cpp.
References SCH_REFERENCE_LIST::GetCount(), m_cols, m_dataStore, m_symbolsList, and EDA_ITEM::m_Uuid.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnRenameField().
|
private |
Definition at line 576 of file fields_data_model.cpp.
References SYMBOL::SetDNP(), SYMBOL::SetExcludedFromBoard(), SYMBOL::SetExcludedFromBOM(), and SYMBOL::SetExcludedFromSim().
Referenced by ApplyData().
|
inlineoverride |
Definition at line 280 of file fields_data_model.h.
References m_colAttrs.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::SetupColumnProperties().
|
inlineoverride |
Definition at line 137 of file fields_data_model.h.
References m_cols.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnColLabelChange().
|
inline |
Definition at line 244 of file fields_data_model.h.
References m_excludeDNP.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnExcludeDNPToggled().
void FIELDS_EDITOR_GRID_DATA_MODEL::SetFieldsOrder | ( | const std::vector< wxString > & | aNewOrder | ) |
Definition at line 139 of file fields_data_model.cpp.
References m_cols.
Referenced by ApplyBomPreset().
|
inline |
Definition at line 225 of file fields_data_model.h.
References m_filter.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnFilterText().
|
inline |
Definition at line 247 of file fields_data_model.h.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnColumnItemToggled().
|
inline |
Definition at line 234 of file fields_data_model.h.
References group, and m_groupingEnabled.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnGroupSymbolsToggled().
|
inline |
Definition at line 241 of file fields_data_model.h.
References m_includeExcluded.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnShowExcludedToggled().
|
inline |
Definition at line 231 of file fields_data_model.h.
References m_path.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnSchSheetChanged(), and DIALOG_SYMBOL_FIELDS_TABLE::UpdateScope().
|
inline |
Definition at line 228 of file fields_data_model.h.
References m_scope.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::UpdateScope().
|
inline |
Definition at line 259 of file fields_data_model.h.
References m_cols.
Referenced by ApplyBomPreset(), DIALOG_SYMBOL_FIELDS_TABLE::OnColumnItemToggled(), and DIALOG_SYMBOL_FIELDS_TABLE::SetupAllColumnProperties().
|
inline |
Definition at line 197 of file fields_data_model.h.
References m_cols, m_sortAscending, and m_sortColumn.
Referenced by ApplyBomPreset(), DIALOG_SYMBOL_FIELDS_TABLE::OnColSort(), and DIALOG_SYMBOL_FIELDS_TABLE::SetupAllColumnProperties().
|
override |
Definition at line 304 of file fields_data_model.cpp.
References ColIsAttribute(), ColIsReference(), SCH_REFERENCE::GetSymbol(), IsTextVar(), m_cols, m_dataStore, m_edited, DATA_MODEL_ROW::m_Refs, m_rows, and EDA_ITEM::m_Uuid.
|
private |
Definition at line 399 of file fields_data_model.cpp.
References CollapseForSort(), ExpandAfterSort(), and m_rows.
Referenced by RebuildRows().
|
private |
|
private |
Definition at line 433 of file fields_data_model.cpp.
References SCH_REFERENCE::GetRef(), and SCH_REFERENCE::GetRefNumber().
Referenced by ExpandRow(), and RebuildRows().
|
private |
Definition at line 54 of file fields_data_model.cpp.
References SCHEMATIC::ConvertKIIDsToRefs(), getAttributeValue(), SCH_SYMBOL::GetFieldByName(), isAttribute(), IsTextVar(), m_dataStore, EDA_ITEM::m_Uuid, and SCH_ITEM::Schematic().
Referenced by AddColumn(), and UpdateReferences().
void FIELDS_EDITOR_GRID_DATA_MODEL::UpdateReferences | ( | const SCH_REFERENCE_LIST & | aRefs | ) |
Definition at line 1096 of file fields_data_model.cpp.
References SCH_REFERENCE_LIST::AddItem(), SCH_REFERENCE_LIST::Contains(), m_cols, m_symbolsList, and updateDataStoreSymbolField().
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsChanged().
|
static |
Definition at line 108 of file fields_data_model.h.
Referenced by ColIsItemNumber(), and DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames().
|
protected |
Definition at line 325 of file fields_data_model.h.
Referenced by GetAttr(), SetColAttr(), and ~FIELDS_EDITOR_GRID_DATA_MODEL().
|
protected |
Definition at line 327 of file fields_data_model.h.
Referenced by AddColumn(), ApplyBomPreset(), ApplyData(), ColIsAttribute(), ColIsItemNumber(), ColIsQuantity(), ColIsReference(), ColIsValue(), Export(), GetColFieldName(), GetColLabelValue(), GetFieldNameCol(), GetFieldsOrdered(), GetGroupColumn(), GetNumberCols(), GetShowColumn(), GetValue(), groupMatch(), MoveColumn(), RemoveColumn(), RenameColumn(), SetColLabelValue(), SetFieldsOrder(), SetGroupColumn(), SetShowColumn(), SetSorting(), SetValue(), and UpdateReferences().
|
protected |
Definition at line 333 of file fields_data_model.h.
Referenced by AddReferences(), ApplyData(), GetDataWidth(), GetValue(), groupMatch(), RemoveColumn(), RemoveReferences(), RemoveSymbol(), RenameColumn(), SetValue(), and updateDataStoreSymbolField().
|
protected |
Definition at line 313 of file fields_data_model.h.
Referenced by ApplyData(), IsEdited(), and SetValue().
|
protected |
Definition at line 320 of file fields_data_model.h.
Referenced by GetExcludeDNP(), RebuildRows(), and SetExcludeDNP().
|
protected |
Definition at line 316 of file fields_data_model.h.
Referenced by GetFilter(), RebuildRows(), and SetFilter().
|
protected |
Definition at line 319 of file fields_data_model.h.
Referenced by GetGroupingEnabled(), RebuildRows(), and SetGroupingEnabled().
|
protected |
Definition at line 321 of file fields_data_model.h.
Referenced by GetIncludeExcludedFromBOM(), RebuildRows(), and SetIncludeExcludedFromBOM().
|
protected |
Definition at line 318 of file fields_data_model.h.
Referenced by GetPath(), RebuildRows(), and SetPath().
|
protected |
Definition at line 322 of file fields_data_model.h.
Referenced by DisableRebuilds(), EnableRebuilds(), and RebuildRows().
|
protected |
Definition at line 328 of file fields_data_model.h.
Referenced by CollapseForSort(), CollapseRow(), ExpandAfterSort(), ExpandCollapseRow(), ExpandRow(), Export(), GetAttr(), GetExportValue(), GetNumberRows(), GetRowFlags(), GetRowReferences(), GetValue(), RebuildRows(), SetValue(), and Sort().
|
protected |
Definition at line 317 of file fields_data_model.h.
Referenced by GetScope(), RebuildRows(), and SetScope().
|
protected |
Definition at line 315 of file fields_data_model.h.
Referenced by GetSortAsc(), and SetSorting().
|
protected |
Definition at line 314 of file fields_data_model.h.
Referenced by GetSortCol(), and SetSorting().
|
protected |
Definition at line 312 of file fields_data_model.h.
Referenced by AddColumn(), AddReferences(), ApplyData(), FIELDS_EDITOR_GRID_DATA_MODEL(), GetDataWidth(), RebuildRows(), RemoveColumn(), RemoveReferences(), RemoveSymbol(), RenameColumn(), and UpdateReferences().
|
protected |
Definition at line 324 of file fields_data_model.h.
Referenced by GetAttr(), and ~FIELDS_EDITOR_GRID_DATA_MODEL().
|
static |
Definition at line 107 of file fields_data_model.h.
Referenced by ColIsQuantity(), and DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames().