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) | |
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 (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 |
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 (std::function< void(SCH_SYMBOL &, SCH_SHEET_PATH &)> symbolChangeHandler) |
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) |
Static Public Attributes | |
static const wxString | QUANTITY_VARIABLE = wxS( "${QUANTITY}" ) |
static const wxString | ITEM_NUMBER_VARIABLE = wxS( "${ITEM_NUMBER}" ) |
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 |
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().
void FIELDS_EDITOR_GRID_DATA_MODEL::AddColumn | ( | const wxString & | aFieldName, |
const wxString & | aLabel, | ||
bool | aAddedByUser | ||
) |
Definition at line 36 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 1020 of file fields_data_model.cpp.
References SCH_REFERENCE_LIST::AddItem(), SCH_REFERENCE_LIST::Contains(), m_dataStore, and m_symbolsList.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnSchItemsAdded().
void FIELDS_EDITOR_GRID_DATA_MODEL::ApplyBomPreset | ( | const BOM_PRESET & | preset | ) |
Definition at line 873 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 | ( | std::function< void(SCH_SYMBOL &, SCH_SHEET_PATH &)> | symbolChangeHandler | ) |
Definition at line 760 of file fields_data_model.cpp.
References SCH_SYMBOL::AddField(), SCH_SYMBOL::FindField(), FOOTPRINT_FIELD, 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, MANDATORY_FIELDS, REFERENCE_FIELD, setAttributeValue(), SCH_SYMBOL::SetFootprintFieldText(), SCH_ITEM::SetPrivate(), SCH_FIELD::SetText(), SCH_SYMBOL::SetValueFieldText(), and VALUE_FIELD.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::TransferDataFromWindow().
|
staticprivate |
Definition at line 331 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 324 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 317 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 310 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 296 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 303 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 737 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 706 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 569 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 563 of file fields_data_model.cpp.
References m_rebuildsEnabled.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset().
void FIELDS_EDITOR_GRID_DATA_MODEL::ExpandAfterSort | ( | ) |
Definition at line 750 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 726 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 664 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 946 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().
|
private |
Definition at line 530 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 930 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 140 of file fields_data_model.h.
References m_cols.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), 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 134 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 847 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 233 of file fields_data_model.h.
References m_excludeDNP.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), and GetBomSettings().
|
inline |
Definition at line 163 of file fields_data_model.h.
References GetValue(), and m_rows.
Referenced by Export().
int FIELDS_EDITOR_GRID_DATA_MODEL::GetFieldNameCol | ( | wxString | aFieldName | ) |
Definition at line 111 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 488 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 123 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 214 of file fields_data_model.h.
References m_filter.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), and GetBomSettings().
|
inline |
Definition at line 241 of file fields_data_model.h.
References m_cols.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset().
|
inline |
Definition at line 223 of file fields_data_model.h.
References m_groupingEnabled.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), and GetBomSettings().
|
inline |
Definition at line 230 of file fields_data_model.h.
References m_includeExcluded.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::doApplyBomPreset(), and GetBomSettings().
|
inlineoverride |
Definition at line 125 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 124 of file fields_data_model.h.
References m_rows.
Referenced by GetDataWidth(), and DIALOG_SYMBOL_FIELDS_TABLE::TransferDataToWindow().
|
inline |
Definition at line 220 of file fields_data_model.h.
References m_path.
|
inline |
|
inline |
Definition at line 173 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 217 of file fields_data_model.h.
References m_scope.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::OnSchSheetChanged().
|
inline |
Definition at line 253 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 193 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 192 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 173 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 152 of file fields_data_model.cpp.
References CHILD_ITEM, ColIsReference(), GetValue(), GROUP_COLLAPSED, GROUP_EXPANDED, and m_rows.
Referenced by cmp(), GetDataWidth(), GetExportValue(), and GetValue().
|
private |
Definition at line 416 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 521 of file fields_data_model.cpp.
Referenced by ApplyData(), ColIsAttribute(), and updateDataStoreSymbolField().
|
inline |
Definition at line 209 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 151 of file fields_data_model.h.
|
inline |
Definition at line 104 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 575 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 80 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 1056 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 1039 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 92 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 548 of file fields_data_model.cpp.
References SYMBOL::SetDNP(), SYMBOL::SetExcludedFromBoard(), SYMBOL::SetExcludedFromBOM(), and SYMBOL::SetExcludedFromSim().
Referenced by ApplyData().
|
inlineoverride |
Definition at line 127 of file fields_data_model.h.
References m_cols.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnColLabelChange().
|
inline |
Definition at line 232 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 134 of file fields_data_model.cpp.
References m_cols.
Referenced by ApplyBomPreset().
|
inline |
Definition at line 213 of file fields_data_model.h.
References m_filter.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnFilterText().
|
inline |
Definition at line 235 of file fields_data_model.h.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnColumnItemToggled().
|
inline |
Definition at line 222 of file fields_data_model.h.
References group, and m_groupingEnabled.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnGroupSymbolsToggled().
|
inline |
Definition at line 229 of file fields_data_model.h.
References m_includeExcluded.
Referenced by ApplyBomPreset(), and DIALOG_SYMBOL_FIELDS_TABLE::OnShowExcludedToggled().
|
inline |
Definition at line 219 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 216 of file fields_data_model.h.
References m_scope.
Referenced by DIALOG_SYMBOL_FIELDS_TABLE::UpdateScope().
|
inline |
Definition at line 247 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 185 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 276 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 371 of file fields_data_model.cpp.
References CollapseForSort(), ExpandAfterSort(), and m_rows.
Referenced by RebuildRows().
|
private |
|
private |
Definition at line 405 of file fields_data_model.cpp.
References SCH_REFERENCE::GetRef(), and SCH_REFERENCE::GetRefNumber().
Referenced by ExpandRow(), and RebuildRows().
|
private |
Definition at line 53 of file fields_data_model.cpp.
References getAttributeValue(), SCH_SYMBOL::GetFieldByName(), isAttribute(), IsTextVar(), m_dataStore, and EDA_ITEM::m_Uuid.
Referenced by AddColumn(), and UpdateReferences().
void FIELDS_EDITOR_GRID_DATA_MODEL::UpdateReferences | ( | const SCH_REFERENCE_LIST & | aRefs | ) |
Definition at line 1074 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 98 of file fields_data_model.h.
Referenced by ColIsItemNumber(), and DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames().
|
protected |
Definition at line 307 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 313 of file fields_data_model.h.
Referenced by AddReferences(), ApplyData(), GetDataWidth(), GetValue(), groupMatch(), RemoveColumn(), RemoveReferences(), RemoveSymbol(), RenameColumn(), SetValue(), and updateDataStoreSymbolField().
|
protected |
Definition at line 296 of file fields_data_model.h.
Referenced by ApplyData(), IsEdited(), and SetValue().
|
protected |
Definition at line 303 of file fields_data_model.h.
Referenced by GetExcludeDNP(), RebuildRows(), and SetExcludeDNP().
|
protected |
Definition at line 299 of file fields_data_model.h.
Referenced by GetFilter(), RebuildRows(), and SetFilter().
|
protected |
Definition at line 302 of file fields_data_model.h.
Referenced by GetGroupingEnabled(), RebuildRows(), and SetGroupingEnabled().
|
protected |
Definition at line 304 of file fields_data_model.h.
Referenced by GetIncludeExcludedFromBOM(), RebuildRows(), and SetIncludeExcludedFromBOM().
|
protected |
Definition at line 301 of file fields_data_model.h.
Referenced by GetPath(), RebuildRows(), and SetPath().
|
protected |
Definition at line 305 of file fields_data_model.h.
Referenced by DisableRebuilds(), EnableRebuilds(), and RebuildRows().
|
protected |
Definition at line 308 of file fields_data_model.h.
Referenced by CollapseForSort(), CollapseRow(), ExpandAfterSort(), ExpandCollapseRow(), ExpandRow(), Export(), GetExportValue(), GetNumberRows(), GetRowFlags(), GetRowReferences(), GetValue(), RebuildRows(), SetValue(), and Sort().
|
protected |
Definition at line 300 of file fields_data_model.h.
Referenced by GetScope(), RebuildRows(), and SetScope().
|
protected |
Definition at line 298 of file fields_data_model.h.
Referenced by GetSortAsc(), and SetSorting().
|
protected |
Definition at line 297 of file fields_data_model.h.
Referenced by GetSortCol(), and SetSorting().
|
protected |
Definition at line 295 of file fields_data_model.h.
Referenced by AddColumn(), AddReferences(), ApplyData(), FIELDS_EDITOR_GRID_DATA_MODEL(), GetDataWidth(), RebuildRows(), RemoveColumn(), RemoveReferences(), RemoveSymbol(), RenameColumn(), and UpdateReferences().
|
static |
Definition at line 97 of file fields_data_model.h.
Referenced by ColIsQuantity(), and DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames().