KiCad PCB EDA Suite
Loading...
Searching...
No Matches
FIELDS_EDITOR_GRID_DATA_MODEL Class Reference

#include <fields_data_model.h>

Inheritance diagram for FIELDS_EDITOR_GRID_DATA_MODEL:
WX_GRID_TABLE_BASE

Public Types

enum  SCOPE : int { SCOPE_ALL = 0 , SCOPE_SHEET , SCOPE_SHEET_RECURSIVE }
 

Public Member Functions

 FIELDS_EDITOR_GRID_DATA_MODEL (const 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_FIELDGetFieldsOrdered ()
 
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_REFERENCEGetRowReferences (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, TEMPLATES &aTemplateFieldnames)
 
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_PATHGetPath ()
 
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
 The flattened by hierarchy list of symbols.
 
bool m_edited
 
int m_sortColumn
 
bool m_sortAscending
 
wxString m_filter
 
SCOPE m_scope
 
SCH_SHEET_PATH m_path
 
bool m_groupingEnabled
 
bool m_excludeDNP
 
bool m_includeExcluded
 
bool m_rebuildsEnabled
 
wxGridCellAttr * m_urlEditor
 
std::vector< DATA_MODEL_COLm_cols
 
std::vector< DATA_MODEL_ROWm_rows
 
std::map< KIID, std::map< wxString, wxString > > m_dataStore
 
std::map< int, wxGridCellAttr * > m_colAttrs
 

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)
 
bool setAttributeValue (SCH_SYMBOL &aSymbol, const wxString &aAttributeName, const wxString &aValue)
 Set the attribute value.
 
wxString getFieldShownText (const SCH_REFERENCE &aRef, const wxString &aFieldName)
 
void Sort ()
 
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)
 

Detailed Description

Definition at line 132 of file fields_data_model.h.

Member Enumeration Documentation

◆ SCOPE

Enumerator
SCOPE_ALL 
SCOPE_SHEET 
SCOPE_SHEET_RECURSIVE 

Definition at line 135 of file fields_data_model.h.

Constructor & Destructor Documentation

◆ FIELDS_EDITOR_GRID_DATA_MODEL()

FIELDS_EDITOR_GRID_DATA_MODEL::FIELDS_EDITOR_GRID_DATA_MODEL ( const SCH_REFERENCE_LIST & aSymbolsList,
wxGridCellAttr * aURLEditor )
inline

◆ ~FIELDS_EDITOR_GRID_DATA_MODEL()

FIELDS_EDITOR_GRID_DATA_MODEL::~FIELDS_EDITOR_GRID_DATA_MODEL ( )
inlineoverride

Definition at line 157 of file fields_data_model.h.

References m_urlEditor.

Member Function Documentation

◆ AddColumn()

void FIELDS_EDITOR_GRID_DATA_MODEL::AddColumn ( const wxString & aFieldName,
const wxString & aLabel,
bool aAddedByUser )

◆ AddReferences()

void FIELDS_EDITOR_GRID_DATA_MODEL::AddReferences ( const SCH_REFERENCE_LIST & aRefs)

◆ ApplyBomPreset()

◆ ApplyData()

◆ cmp()

bool FIELDS_EDITOR_GRID_DATA_MODEL::cmp ( const DATA_MODEL_ROW & lhGroup,
const DATA_MODEL_ROW & rhGroup,
FIELDS_EDITOR_GRID_DATA_MODEL * dataModel,
int sortCol,
bool ascending )
staticprivate

◆ ColIsAttribute()

bool FIELDS_EDITOR_GRID_DATA_MODEL::ColIsAttribute ( int aCol)

Definition at line 502 of file fields_data_model.cpp.

References isAttribute(), and m_cols.

Referenced by SetValue().

◆ ColIsItemNumber()

bool FIELDS_EDITOR_GRID_DATA_MODEL::ColIsItemNumber ( int aCol)

Definition at line 495 of file fields_data_model.cpp.

References ITEM_NUMBER_VARIABLE, and m_cols.

Referenced by GetValue().

◆ ColIsQuantity()

bool FIELDS_EDITOR_GRID_DATA_MODEL::ColIsQuantity ( int aCol)

Definition at line 488 of file fields_data_model.cpp.

References m_cols, and QUANTITY_VARIABLE.

Referenced by GetValue().

◆ ColIsReference()

bool FIELDS_EDITOR_GRID_DATA_MODEL::ColIsReference ( int aCol)

Definition at line 474 of file fields_data_model.cpp.

References GetCanonicalFieldName(), m_cols, and REFERENCE.

Referenced by cmp(), GetDataWidth(), GetValue(), GetValue(), and SetValue().

◆ ColIsValue()

bool FIELDS_EDITOR_GRID_DATA_MODEL::ColIsValue ( int aCol)

Definition at line 481 of file fields_data_model.cpp.

References GetCanonicalFieldName(), m_cols, and VALUE.

◆ CollapseForSort()

void FIELDS_EDITOR_GRID_DATA_MODEL::CollapseForSort ( )

Definition at line 932 of file fields_data_model.cpp.

References CollapseRow(), GROUP_COLLAPSED_DURING_SORT, GROUP_EXPANDED, and m_rows.

Referenced by Sort().

◆ CollapseRow()

void FIELDS_EDITOR_GRID_DATA_MODEL::CollapseRow ( int aRow)

Definition at line 901 of file fields_data_model.cpp.

References CHILD_ITEM, GROUP_COLLAPSED, and m_rows.

Referenced by CollapseForSort(), and ExpandCollapseRow().

◆ DisableRebuilds()

void FIELDS_EDITOR_GRID_DATA_MODEL::DisableRebuilds ( )

Definition at line 762 of file fields_data_model.cpp.

References m_rebuildsEnabled.

◆ EnableRebuilds()

void FIELDS_EDITOR_GRID_DATA_MODEL::EnableRebuilds ( )

Definition at line 756 of file fields_data_model.cpp.

References m_rebuildsEnabled.

◆ enhanceAttr()

wxGridCellAttr * WX_GRID_TABLE_BASE::enhanceAttr ( wxGridCellAttr * aInputAttr,
int aRow,
int aCol,
wxGridCellAttr::wxAttrKind aKind )
protectedinherited

◆ ExpandAfterSort()

void FIELDS_EDITOR_GRID_DATA_MODEL::ExpandAfterSort ( )

Definition at line 945 of file fields_data_model.cpp.

References ExpandRow(), GROUP_COLLAPSED_DURING_SORT, and m_rows.

Referenced by Sort().

◆ ExpandCollapseRow()

void FIELDS_EDITOR_GRID_DATA_MODEL::ExpandCollapseRow ( int aRow)

◆ ExpandRow()

void FIELDS_EDITOR_GRID_DATA_MODEL::ExpandRow ( int aRow)

Definition at line 859 of file fields_data_model.cpp.

References CHILD_ITEM, GROUP_EXPANDED, m_rows, and unitMatch().

Referenced by ExpandAfterSort(), and ExpandCollapseRow().

◆ Export()

◆ GetAttr()

wxGridCellAttr * FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr ( int aRow,
int aCol,
wxGridCellAttr::wxAttrKind aKind )
override

◆ getAttributeValue()

wxString FIELDS_EDITOR_GRID_DATA_MODEL::getAttributeValue ( const SCH_SYMBOL & aSymbol,
const wxString & aAttributeName )
private

◆ GetBomSettings()

◆ GetColFieldName()

wxString FIELDS_EDITOR_GRID_DATA_MODEL::GetColFieldName ( int aCol)
inline

Definition at line 204 of file fields_data_model.h.

References m_cols.

Referenced by GetAttr(), GetBomSettings(), and GetDataWidth().

◆ GetColLabelValue()

wxString FIELDS_EDITOR_GRID_DATA_MODEL::GetColLabelValue ( int aCol)
inlineoverride

Definition at line 198 of file fields_data_model.h.

References m_cols.

◆ GetDataWidth()

int FIELDS_EDITOR_GRID_DATA_MODEL::GetDataWidth ( int aCol)

◆ GetExcludeDNP()

bool FIELDS_EDITOR_GRID_DATA_MODEL::GetExcludeDNP ( )
inline

Definition at line 299 of file fields_data_model.h.

References m_excludeDNP.

Referenced by GetBomSettings().

◆ GetExportValue()

wxString FIELDS_EDITOR_GRID_DATA_MODEL::GetExportValue ( int aRow,
int aCol,
const wxString & refDelimiter,
const wxString & refRangeDelimiter )
inline

Definition at line 229 of file fields_data_model.h.

References GetValue(), and m_rows.

Referenced by Export().

◆ GetFieldNameCol()

int FIELDS_EDITOR_GRID_DATA_MODEL::GetFieldNameCol ( const wxString & aFieldName) const

Definition at line 263 of file fields_data_model.cpp.

References m_cols.

Referenced by AddColumn(), ApplyBomPreset(), ApplyData(), and groupMatch().

◆ getFieldShownText()

wxString FIELDS_EDITOR_GRID_DATA_MODEL::getFieldShownText ( const SCH_REFERENCE & aRef,
const wxString & aFieldName )
private

◆ GetFieldsOrdered()

std::vector< BOM_FIELD > FIELDS_EDITOR_GRID_DATA_MODEL::GetFieldsOrdered ( )

Definition at line 275 of file fields_data_model.cpp.

References m_cols.

Referenced by GetBomSettings(), and EESCHEMA_JOBS_HANDLER::JobExportBom().

◆ GetFilter()

const wxString & FIELDS_EDITOR_GRID_DATA_MODEL::GetFilter ( )
inline

Definition at line 280 of file fields_data_model.h.

References m_filter.

Referenced by GetBomSettings().

◆ GetGroupColumn()

bool FIELDS_EDITOR_GRID_DATA_MODEL::GetGroupColumn ( int aCol)
inline

Definition at line 307 of file fields_data_model.h.

References m_cols.

◆ GetGroupingEnabled()

bool FIELDS_EDITOR_GRID_DATA_MODEL::GetGroupingEnabled ( )
inline

Definition at line 289 of file fields_data_model.h.

References m_groupingEnabled.

Referenced by GetBomSettings().

◆ GetIncludeExcludedFromBOM()

bool FIELDS_EDITOR_GRID_DATA_MODEL::GetIncludeExcludedFromBOM ( )
inline

Definition at line 296 of file fields_data_model.h.

References m_includeExcluded.

Referenced by GetBomSettings().

◆ GetNumberCols()

int FIELDS_EDITOR_GRID_DATA_MODEL::GetNumberCols ( )
inlineoverride

Definition at line 190 of file fields_data_model.h.

References m_cols.

Referenced by cmp(), and GetBomSettings().

◆ GetNumberRows()

int FIELDS_EDITOR_GRID_DATA_MODEL::GetNumberRows ( )
inlineoverride

Definition at line 189 of file fields_data_model.h.

References m_rows.

Referenced by GetDataWidth().

◆ GetPath()

const SCH_SHEET_PATH & FIELDS_EDITOR_GRID_DATA_MODEL::GetPath ( )
inline

Definition at line 286 of file fields_data_model.h.

References m_path.

◆ GetRowFlags()

GROUP_TYPE FIELDS_EDITOR_GRID_DATA_MODEL::GetRowFlags ( int aRow)
inline

Definition at line 237 of file fields_data_model.h.

References m_rows.

Referenced by Export().

◆ GetRowReferences()

std::vector< SCH_REFERENCE > FIELDS_EDITOR_GRID_DATA_MODEL::GetRowReferences ( int aRow) const
inline

Definition at line 239 of file fields_data_model.h.

References m_rows.

◆ GetScope()

SCOPE FIELDS_EDITOR_GRID_DATA_MODEL::GetScope ( )
inline

Definition at line 283 of file fields_data_model.h.

References m_scope.

◆ GetShowColumn()

bool FIELDS_EDITOR_GRID_DATA_MODEL::GetShowColumn ( int aCol)
inline

Definition at line 319 of file fields_data_model.h.

References m_cols.

◆ GetSortAsc()

bool FIELDS_EDITOR_GRID_DATA_MODEL::GetSortAsc ( )
inline

Definition at line 259 of file fields_data_model.h.

References m_sortAscending.

Referenced by GetBomSettings().

◆ GetSortCol()

int FIELDS_EDITOR_GRID_DATA_MODEL::GetSortCol ( )
inline

Definition at line 258 of file fields_data_model.h.

References m_sortColumn.

Referenced by GetBomSettings().

◆ GetValue() [1/2]

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 )

◆ GetValue() [2/2]

wxString FIELDS_EDITOR_GRID_DATA_MODEL::GetValue ( int aRow,
int aCol )
override

◆ groupMatch()

bool FIELDS_EDITOR_GRID_DATA_MODEL::groupMatch ( const SCH_REFERENCE & lhRef,
const SCH_REFERENCE & rhRef )
private

◆ isAttribute()

bool FIELDS_EDITOR_GRID_DATA_MODEL::isAttribute ( const wxString & aFieldName)
private

Definition at line 697 of file fields_data_model.cpp.

Referenced by ApplyData(), ColIsAttribute(), and updateDataStoreSymbolField().

◆ IsEdited()

bool FIELDS_EDITOR_GRID_DATA_MODEL::IsEdited ( )
inline

Definition at line 275 of file fields_data_model.h.

References m_edited.

◆ IsEmptyCell()

bool FIELDS_EDITOR_GRID_DATA_MODEL::IsEmptyCell ( int aRow,
int aCol )
inlineoverride

Definition at line 215 of file fields_data_model.h.

◆ MoveColumn()

void FIELDS_EDITOR_GRID_DATA_MODEL::MoveColumn ( int aCol,
int aNewPos )
inline

Definition at line 169 of file fields_data_model.h.

References m_cols.

◆ RebuildRows()

◆ RemoveColumn()

void FIELDS_EDITOR_GRID_DATA_MODEL::RemoveColumn ( int aCol)

Definition at line 232 of file fields_data_model.cpp.

References m_cols, m_dataStore, and m_symbolsList.

◆ RemoveReferences()

void FIELDS_EDITOR_GRID_DATA_MODEL::RemoveReferences ( const SCH_REFERENCE_LIST & aRefs)

Definition at line 1297 of file fields_data_model.cpp.

References m_dataStore, and m_symbolsList.

◆ RemoveSymbol()

void FIELDS_EDITOR_GRID_DATA_MODEL::RemoveSymbol ( const SCH_SYMBOL & aSymbol)

Definition at line 1280 of file fields_data_model.cpp.

References m_dataStore, m_symbolsList, and EDA_ITEM::m_Uuid.

◆ RenameColumn()

void FIELDS_EDITOR_GRID_DATA_MODEL::RenameColumn ( int aCol,
const wxString & newName )

Definition at line 244 of file fields_data_model.cpp.

References m_cols, m_dataStore, m_symbolsList, and EDA_ITEM::m_Uuid.

◆ setAttributeValue()

bool FIELDS_EDITOR_GRID_DATA_MODEL::setAttributeValue ( SCH_SYMBOL & aSymbol,
const wxString & aAttributeName,
const wxString & aValue )
private

Set the attribute value.

Parameters
aSymbolis the symbol to set the attribute.
aAttributeNameis the name of the symbol attribute.
aValueis the value to set the attribute.
Return values
trueif the symbol attribute value has changed.
falseif the symbol attribute has not changed.

Definition at line 724 of file fields_data_model.cpp.

References SYMBOL::GetDNP(), SYMBOL::GetExcludedFromBoard(), SYMBOL::GetExcludedFromBOM(), SYMBOL::GetExcludedFromSim(), SYMBOL::SetDNP(), SYMBOL::SetExcludedFromBoard(), SYMBOL::SetExcludedFromBOM(), and SYMBOL::SetExcludedFromSim().

Referenced by ApplyData().

◆ SetColAttr()

void WX_GRID_TABLE_BASE::SetColAttr ( wxGridCellAttr * aAttr,
int aCol )
inlineoverrideinherited

Definition at line 51 of file wx_grid.h.

References m_colAttrs.

◆ SetColLabelValue()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetColLabelValue ( int aCol,
const wxString & aLabel )
inlineoverride

Definition at line 192 of file fields_data_model.h.

References m_cols.

Referenced by ApplyBomPreset().

◆ SetExcludeDNP()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetExcludeDNP ( bool exclude)
inline

Definition at line 298 of file fields_data_model.h.

References m_excludeDNP.

Referenced by ApplyBomPreset().

◆ SetFieldsOrder()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetFieldsOrder ( const std::vector< wxString > & aNewOrder)

Definition at line 286 of file fields_data_model.cpp.

References m_cols.

Referenced by ApplyBomPreset().

◆ SetFilter()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetFilter ( const wxString & aFilter)
inline

Definition at line 279 of file fields_data_model.h.

References m_filter.

Referenced by ApplyBomPreset().

◆ SetGroupColumn()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetGroupColumn ( int aCol,
bool group )
inline

Definition at line 301 of file fields_data_model.h.

References group, and m_cols.

Referenced by ApplyBomPreset().

◆ SetGroupingEnabled()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetGroupingEnabled ( bool group)
inline

Definition at line 288 of file fields_data_model.h.

References group, and m_groupingEnabled.

Referenced by ApplyBomPreset().

◆ SetIncludeExcludedFromBOM()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetIncludeExcludedFromBOM ( bool include)
inline

Definition at line 295 of file fields_data_model.h.

References m_includeExcluded.

Referenced by ApplyBomPreset().

◆ SetPath()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetPath ( const SCH_SHEET_PATH & aPath)
inline

Definition at line 285 of file fields_data_model.h.

References m_path.

◆ SetScope()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetScope ( SCOPE aScope)
inline

Definition at line 282 of file fields_data_model.h.

References m_scope.

◆ SetShowColumn()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetShowColumn ( int aCol,
bool show )
inline

Definition at line 313 of file fields_data_model.h.

References m_cols.

Referenced by ApplyBomPreset().

◆ SetSorting()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetSorting ( int aCol,
bool ascending )
inline

Definition at line 251 of file fields_data_model.h.

References m_cols, m_sortAscending, and m_sortColumn.

Referenced by ApplyBomPreset().

◆ SetValue()

void FIELDS_EDITOR_GRID_DATA_MODEL::SetValue ( int aRow,
int aCol,
const wxString & aValue )
override

◆ Sort()

void FIELDS_EDITOR_GRID_DATA_MODEL::Sort ( )
private

Definition at line 551 of file fields_data_model.cpp.

References CollapseForSort(), ExpandAfterSort(), and m_rows.

Referenced by RebuildRows().

◆ unitMatch()

bool FIELDS_EDITOR_GRID_DATA_MODEL::unitMatch ( const SCH_REFERENCE & lhRef,
const SCH_REFERENCE & rhRef )
private

Definition at line 585 of file fields_data_model.cpp.

References SCH_REFERENCE::GetRef(), and SCH_REFERENCE::GetRefNumber().

Referenced by ExpandRow(), and RebuildRows().

◆ updateDataStoreSymbolField()

void FIELDS_EDITOR_GRID_DATA_MODEL::updateDataStoreSymbolField ( const SCH_SYMBOL & aSymbol,
const wxString & aFieldName )
private

◆ UpdateReferences()

void FIELDS_EDITOR_GRID_DATA_MODEL::UpdateReferences ( const SCH_REFERENCE_LIST & aRefs)

Definition at line 1315 of file fields_data_model.cpp.

References m_cols, m_symbolsList, and updateDataStoreSymbolField().

Member Data Documentation

◆ ITEM_NUMBER_VARIABLE

const wxString FIELDS_EDITOR_GRID_DATA_MODEL::ITEM_NUMBER_VARIABLE = wxS( "${ITEM_NUMBER}" )
static

◆ m_colAttrs

std::map<int, wxGridCellAttr*> WX_GRID_TABLE_BASE::m_colAttrs
protectedinherited

◆ m_cols

◆ m_dataStore

std::map<KIID, std::map<wxString, wxString> > FIELDS_EDITOR_GRID_DATA_MODEL::m_dataStore
protected

◆ m_edited

bool FIELDS_EDITOR_GRID_DATA_MODEL::m_edited
protected

Definition at line 375 of file fields_data_model.h.

Referenced by ApplyData(), FIELDS_EDITOR_GRID_DATA_MODEL(), IsEdited(), and SetValue().

◆ m_excludeDNP

bool FIELDS_EDITOR_GRID_DATA_MODEL::m_excludeDNP
protected

◆ m_filter

wxString FIELDS_EDITOR_GRID_DATA_MODEL::m_filter
protected

Definition at line 378 of file fields_data_model.h.

Referenced by GetFilter(), RebuildRows(), and SetFilter().

◆ m_groupingEnabled

bool FIELDS_EDITOR_GRID_DATA_MODEL::m_groupingEnabled
protected

◆ m_includeExcluded

bool FIELDS_EDITOR_GRID_DATA_MODEL::m_includeExcluded
protected

◆ m_path

SCH_SHEET_PATH FIELDS_EDITOR_GRID_DATA_MODEL::m_path
protected

Definition at line 380 of file fields_data_model.h.

Referenced by GetPath(), RebuildRows(), and SetPath().

◆ m_rebuildsEnabled

bool FIELDS_EDITOR_GRID_DATA_MODEL::m_rebuildsEnabled
protected

◆ m_rows

◆ m_scope

SCOPE FIELDS_EDITOR_GRID_DATA_MODEL::m_scope
protected

◆ m_sortAscending

bool FIELDS_EDITOR_GRID_DATA_MODEL::m_sortAscending
protected

Definition at line 377 of file fields_data_model.h.

Referenced by FIELDS_EDITOR_GRID_DATA_MODEL(), GetSortAsc(), and SetSorting().

◆ m_sortColumn

int FIELDS_EDITOR_GRID_DATA_MODEL::m_sortColumn
protected

Definition at line 376 of file fields_data_model.h.

Referenced by FIELDS_EDITOR_GRID_DATA_MODEL(), GetSortCol(), and SetSorting().

◆ m_symbolsList

SCH_REFERENCE_LIST FIELDS_EDITOR_GRID_DATA_MODEL::m_symbolsList
protected

The flattened by hierarchy list of symbols.

Warning
This list must be kept sorted by symbol pointer. Otherwise, the undo/redo commit actions will be broken.

Definition at line 374 of file fields_data_model.h.

Referenced by AddColumn(), AddReferences(), ApplyData(), FIELDS_EDITOR_GRID_DATA_MODEL(), GetDataWidth(), RebuildRows(), RemoveColumn(), RemoveReferences(), RemoveSymbol(), RenameColumn(), and UpdateReferences().

◆ m_urlEditor

wxGridCellAttr* FIELDS_EDITOR_GRID_DATA_MODEL::m_urlEditor
protected

◆ QUANTITY_VARIABLE

const wxString FIELDS_EDITOR_GRID_DATA_MODEL::QUANTITY_VARIABLE = wxS( "${QUANTITY}" )
static

The documentation for this class was generated from the following files: