KiCad PCB EDA Suite
Loading...
Searching...
No Matches
FIELDS_TABLE_DATA_MODEL_BASE Class Referenceabstract

Contains everything completly generic to fields tables data models, as well as column functionality that doesn't touch the internal fields data store. More...

#include <fields_table_data_model.h>

Inheritance diagram for FIELDS_TABLE_DATA_MODEL_BASE:
WX_GRID_TABLE_BASE FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF > FIELDS_TABLE_DATA_MODEL< LIB_SYMBOL * > FIELDS_TABLE_DATA_MODEL< SCH_REFERENCE > FIELDS_TABLE_DATA_MODEL< ITEM_TYPE > FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL LIB_FIELDS_EDITOR_GRID_DATA_MODEL SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL

Public Member Functions

 FIELDS_TABLE_DATA_MODEL_BASE ()
 
 ~FIELDS_TABLE_DATA_MODEL_BASE () override
 
bool IsEdited ()
 
virtual void AddColumn (const wxString &aFieldName, const wxString &aLabel, bool aAddedByUser)=0
 
void MoveColumn (int aCol, int aNewPos)
 
void RemoveColumn (int aCol)
 
void RenameColumn (int aCol, const wxString &newName)
 
int GetNumberCols () override
 
void SetColLabelValue (int aCol, const wxString &aLabel) override
 
wxString GetColLabelValue (int aCol) override
 
wxString GetColFieldName (int aCol)
 
int GetColDataWidth (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
 
bool ColIsReference (int aCol) const
 
bool ColIsQuantity (int aCol) const
 
bool ColIsItemNumber (int aCol) const
 
bool ColIsValue (int aCol) const
 
bool ColIsFootprint (int aCol) const
 
bool ColIsAttribute (int aCol) const
 
bool ColIsItemProperty (int aCol) const
 
bool ColIsComputed (int aCol) const
 
virtual bool ColIsItemIdentifier (int aCol) const
 Reference for symbol/fields tables, lib_id for lib tables.
 
virtual bool ColIsReadOnly (int aCol) const
 
bool IsExpanderColumn (int aCol) const override
 
virtual bool IsCellReadOnly (int aRow, int aCol)
 
void SetSorting (int aCol, bool aAscending)
 
int GetSortCol ()
 
bool GetSortAsc ()
 
void EnableRebuilds ()
 
void DisableRebuilds ()
 
virtual void RebuildRows ()=0
 
void SetFilter (const wxString &aFilter)
 
const wxString & GetFilter ()
 
void SetFilterScope (BOM_FILTER_SCOPE aScope)
 
BOM_FILTER_SCOPE GetFilterScope () const
 
void SetSelectionItems (const std::unordered_set< KIID_PATH > &aItems)
 
void ClearSelectionItems ()
 
void SetGroupingEnabled (bool aGroup)
 
bool GetGroupingEnabled ()
 
void SetIncludeExcludedFromBOM (bool aInclude)
 
bool GetIncludeExcludedFromBOM ()
 
void SetExcludeDNP (bool aExclude)
 
bool GetExcludeDNP ()
 
void SetGroupColumn (int aCol, bool aGroup)
 
bool GetGroupColumn (int aCol)
 
void SetShowColumn (int aCol, bool aShow)
 
bool GetShowColumn (int aCol)
 
void ApplyBomPreset (const BOM_PRESET &aPreset)
 
BOM_PRESET GetBomSettings ()
 
wxString Export (const BOM_FMT_PRESET &aSettings)
 
virtual wxString GetResolvedValue (int aRow, int aCol)=0
 
virtual wxString GetExportValue (int aRow, int aCol, const wxString &aRefDelimiter, const wxString &aRefRangeDelimiter)=0
 
virtual void ClearCell (int aRow, int aCol)=0
 
bool CanClearCell (int aRow, int aCol)
 
virtual bool IsCellClear (int aRow, int aCol)=0
 
virtual bool IsCellEdited (int aRow, int aCol)=0
 
bool IsRowEdited (int aRow)
 Return true if any cell in the row has been edited.
 
virtual void RevertRow (int aRow)=0
 
virtual std::vector< KIID_PATHGetRowItemKeys (int aRow) const =0
 Return the stable data-store keys of every item represented by a row.
 
void SetCurrentVariant (const wxString &aVariantName)
 Set the current variant name for highlighting purposes.
 
const wxString & GetCurrentVariant () const
 
void SetVariantNames (const std::vector< wxString > &aVariantNames)
 
const std::vector< wxString > & GetVariantNames () const
 
bool HasUndoStateSerialization () const override
 Optional identity-based serialization for the host dialog's Ctrl+Z/Ctrl+Y.
 
wxString SerializeUndoState () const override
 
void RestoreUndoState (const wxString &aState) override
 
virtual void ExpandCollapseRow (int aRow)=0
 
void SetColAttr (wxGridCellAttr *aAttr, int aCol) override
 
wxGridCellAttr * GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override
 
virtual ROW_STATE GetRowState (int aRow) const
 
void Clear () override
 

Static Public Attributes

static const wxString QUANTITY_VARIABLE = wxS( "${QUANTITY}" )
 
static const wxString ITEM_NUMBER_VARIABLE = wxS( "${ITEM_NUMBER}" )
 

Protected Member Functions

virtual bool fieldIsAttribute (const wxString &aFieldName) const
 
virtual bool fieldIsItemProperty (const wxString &aFieldName) const
 
virtual wxString getAttributeResolvedValue (const wxString &aFieldName, bool aValue) const
 
bool cellUsesResolvedTextRenderer (int aRow, int aCol)
 
void applyResolvedTextRenderer (wxGridCellAttr *aAttr, bool aApplyTint)
 
bool cellUsesUrlEditor (int aRow, int aCol)
 
wxGridCellAttr * cloneUrlEditorAttr ()
 
wxGridCellAttr * applyCellDecorations (wxGridCellAttr *aAttr, int aRow, int aCol)
 
wxGridCellAttr * applyFieldPresenceRenderer (wxGridCellAttr *aAttr, int aRow, int aCol)
 
void commitPendingGridChanges ()
 
wxGridCellAttr * enhanceAttr (wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind)
 

Protected Attributes

wxGridCellRenderer * m_stripedRenderer
 
wxGridCellRenderer * m_resolvedTextRenderer
 
bool m_edited
 
int m_sortColumn
 
bool m_sortAscending
 
wxString m_filter
 
BOM_FILTER_SCOPE m_filterScope
 
bool m_groupingEnabled
 
bool m_excludeDNP
 
bool m_includeExcluded
 
bool m_rebuildsEnabled
 Items included by the user selection scope.
 
std::unordered_set< KIID_PATHm_selectionItems
 
wxString m_currentVariant
 Current variant name for highlighting.
 
std::vector< wxString > m_variantNames
 Variant names for multi-variant DNP filtering.
 
std::vector< DATA_MODEL_COLm_cols
 
std::map< KIID_PATH, std::map< wxString, wxString > > m_dataStore
 
std::map< int, wxGridCellAttr * > m_colAttrs
 

Detailed Description

Contains everything completly generic to fields tables data models, as well as column functionality that doesn't touch the internal fields data store.

Definition at line 121 of file fields_table_data_model.h.

Constructor & Destructor Documentation

◆ FIELDS_TABLE_DATA_MODEL_BASE()

FIELDS_TABLE_DATA_MODEL_BASE::FIELDS_TABLE_DATA_MODEL_BASE ( )

◆ ~FIELDS_TABLE_DATA_MODEL_BASE()

FIELDS_TABLE_DATA_MODEL_BASE::~FIELDS_TABLE_DATA_MODEL_BASE ( )
override

Definition at line 95 of file fields_table_data_model.cpp.

References m_resolvedTextRenderer, and m_stripedRenderer.

Member Function Documentation

◆ AddColumn()

virtual void FIELDS_TABLE_DATA_MODEL_BASE::AddColumn ( const wxString & aFieldName,
const wxString & aLabel,
bool aAddedByUser )
pure virtual

◆ ApplyBomPreset()

◆ applyCellDecorations()

wxGridCellAttr * FIELDS_TABLE_DATA_MODEL_BASE::applyCellDecorations ( wxGridCellAttr * aAttr,
int aRow,
int aCol )
protected

Definition at line 188 of file fields_table_data_model.cpp.

References applyFieldPresenceRenderer(), and grid.

◆ applyFieldPresenceRenderer()

wxGridCellAttr * FIELDS_TABLE_DATA_MODEL_BASE::applyFieldPresenceRenderer ( wxGridCellAttr * aAttr,
int aRow,
int aCol )
protected

Definition at line 164 of file fields_table_data_model.cpp.

References ColIsAttribute(), and IsCellClear().

Referenced by applyCellDecorations().

◆ applyResolvedTextRenderer()

void FIELDS_TABLE_DATA_MODEL_BASE::applyResolvedTextRenderer ( wxGridCellAttr * aAttr,
bool aApplyTint )
protected

◆ CanClearCell()

bool FIELDS_TABLE_DATA_MODEL_BASE::CanClearCell ( int aRow,
int aCol )

◆ cellUsesResolvedTextRenderer()

bool FIELDS_TABLE_DATA_MODEL_BASE::cellUsesResolvedTextRenderer ( int aRow,
int aCol )
protected

◆ cellUsesUrlEditor()

bool FIELDS_TABLE_DATA_MODEL_BASE::cellUsesUrlEditor ( int aRow,
int aCol )
protected

Definition at line 133 of file fields_table_data_model.cpp.

◆ Clear()

void WX_GRID_TABLE_BASE::Clear ( )
inlineoverrideinherited

Definition at line 97 of file wx_grid.h.

◆ ClearCell()

◆ ClearSelectionItems()

void FIELDS_TABLE_DATA_MODEL_BASE::ClearSelectionItems ( )
inline

Definition at line 195 of file fields_table_data_model.h.

References m_selectionItems.

◆ cloneUrlEditorAttr()

wxGridCellAttr * FIELDS_TABLE_DATA_MODEL_BASE::cloneUrlEditorAttr ( )
protected

Definition at line 152 of file fields_table_data_model.cpp.

◆ ColIsAttribute()

◆ ColIsComputed()

◆ ColIsFootprint()

bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsFootprint ( int aCol) const

Definition at line 431 of file fields_table_data_model.cpp.

References FOOTPRINT, GetDefaultFieldName(), m_cols, and UNTRANSLATED.

◆ ColIsItemIdentifier()

virtual bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsItemIdentifier ( int aCol) const
inlinevirtual

◆ ColIsItemNumber()

bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsItemNumber ( int aCol) const

◆ ColIsItemProperty()

bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsItemProperty ( int aCol) const

Definition at line 446 of file fields_table_data_model.cpp.

References fieldIsItemProperty(), and m_cols.

Referenced by ColIsComputed().

◆ ColIsQuantity()

bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsQuantity ( int aCol) const

◆ ColIsReadOnly()

bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsReadOnly ( int aCol) const
virtual

◆ ColIsReference()

bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsReference ( int aCol) const

◆ ColIsValue()

bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsValue ( int aCol) const

Definition at line 424 of file fields_table_data_model.cpp.

References GetDefaultFieldName(), m_cols, UNTRANSLATED, and VALUE.

◆ commitPendingGridChanges()

void FIELDS_TABLE_DATA_MODEL_BASE::commitPendingGridChanges ( )
protected

◆ DisableRebuilds()

void FIELDS_TABLE_DATA_MODEL_BASE::DisableRebuilds ( )

Definition at line 544 of file fields_table_data_model.cpp.

References m_rebuildsEnabled.

Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().

◆ EnableRebuilds()

void FIELDS_TABLE_DATA_MODEL_BASE::EnableRebuilds ( )

Definition at line 538 of file fields_table_data_model.cpp.

References m_rebuildsEnabled.

Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().

◆ enhanceAttr()

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

◆ ExpandCollapseRow()

virtual void FIELDS_TABLE_DATA_MODEL_BASE::ExpandCollapseRow ( int aRow)
pure virtual

◆ Export()

◆ fieldIsAttribute()

bool FIELDS_TABLE_DATA_MODEL_BASE::fieldIsAttribute ( const wxString & aFieldName) const
protectedvirtual

◆ fieldIsItemProperty()

bool FIELDS_TABLE_DATA_MODEL_BASE::fieldIsItemProperty ( const wxString & aFieldName) const
protectedvirtual

◆ GetAttr()

wxGridCellAttr * WX_GRID_TABLE_BASE::GetAttr ( int aRow,
int aCol,
wxGridCellAttr::wxAttrKind aKind )
inlineoverrideinherited

◆ getAttributeResolvedValue()

wxString FIELDS_TABLE_DATA_MODEL_BASE::getAttributeResolvedValue ( const wxString & aFieldName,
bool aValue ) const
protectedvirtual

◆ GetBomSettings()

◆ GetColDataWidth()

int FIELDS_TABLE_DATA_MODEL_BASE::GetColDataWidth ( int aCol)

◆ GetColFieldName()

wxString FIELDS_TABLE_DATA_MODEL_BASE::GetColFieldName ( int aCol)

Definition at line 338 of file fields_table_data_model.cpp.

References m_cols.

Referenced by GetBomSettings().

◆ GetColLabelValue()

wxString FIELDS_TABLE_DATA_MODEL_BASE::GetColLabelValue ( int aCol)
override

Definition at line 331 of file fields_table_data_model.cpp.

References m_cols.

Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset(), and GetColDataWidth().

◆ GetCurrentVariant()

const wxString & FIELDS_TABLE_DATA_MODEL_BASE::GetCurrentVariant ( ) const
inline

Definition at line 244 of file fields_table_data_model.h.

References m_currentVariant.

◆ GetExcludeDNP()

bool FIELDS_TABLE_DATA_MODEL_BASE::GetExcludeDNP ( )
inline

Definition at line 208 of file fields_table_data_model.h.

References m_excludeDNP.

Referenced by GetBomSettings().

◆ GetExportValue()

virtual wxString FIELDS_TABLE_DATA_MODEL_BASE::GetExportValue ( int aRow,
int aCol,
const wxString & aRefDelimiter,
const wxString & aRefRangeDelimiter )
pure virtual

◆ GetFieldNameCol()

◆ GetFieldsOrdered()

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

◆ GetFilter()

const wxString & FIELDS_TABLE_DATA_MODEL_BASE::GetFilter ( )
inline

Definition at line 190 of file fields_table_data_model.h.

References m_filter.

Referenced by GetBomSettings().

◆ GetFilterScope()

BOM_FILTER_SCOPE FIELDS_TABLE_DATA_MODEL_BASE::GetFilterScope ( ) const
inline

Definition at line 192 of file fields_table_data_model.h.

References m_filterScope.

Referenced by GetBomSettings().

◆ GetGroupColumn()

bool FIELDS_TABLE_DATA_MODEL_BASE::GetGroupColumn ( int aCol)

Definition at line 561 of file fields_table_data_model.cpp.

References m_cols.

Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().

◆ GetGroupingEnabled()

bool FIELDS_TABLE_DATA_MODEL_BASE::GetGroupingEnabled ( )
inline

Definition at line 198 of file fields_table_data_model.h.

References m_groupingEnabled.

Referenced by GetBomSettings().

◆ GetIncludeExcludedFromBOM()

bool FIELDS_TABLE_DATA_MODEL_BASE::GetIncludeExcludedFromBOM ( )
inline

Definition at line 205 of file fields_table_data_model.h.

References m_includeExcluded.

Referenced by GetBomSettings(), and DIALOG_FIELDS_TABLE::PreviewRefresh().

◆ GetNumberCols()

◆ GetResolvedValue()

virtual wxString FIELDS_TABLE_DATA_MODEL_BASE::GetResolvedValue ( int aRow,
int aCol )
pure virtual

◆ GetRowItemKeys()

virtual std::vector< KIID_PATH > FIELDS_TABLE_DATA_MODEL_BASE::GetRowItemKeys ( int aRow) const
pure virtual

◆ GetRowState()

virtual ROW_STATE WX_GRID_TABLE_BASE::GetRowState ( int aRow) const
inlinevirtualinherited

◆ GetShowColumn()

bool FIELDS_TABLE_DATA_MODEL_BASE::GetShowColumn ( int aCol)

Definition at line 575 of file fields_table_data_model.cpp.

References m_cols.

Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().

◆ GetSortAsc()

bool FIELDS_TABLE_DATA_MODEL_BASE::GetSortAsc ( )
inline

◆ GetSortCol()

int FIELDS_TABLE_DATA_MODEL_BASE::GetSortCol ( )
inline

Definition at line 180 of file fields_table_data_model.h.

References m_sortColumn.

Referenced by GetBomSettings().

◆ GetVariantNames()

const std::vector< wxString > & FIELDS_TABLE_DATA_MODEL_BASE::GetVariantNames ( ) const
inline

Definition at line 247 of file fields_table_data_model.h.

References m_variantNames.

◆ HasUndoStateSerialization()

bool FIELDS_TABLE_DATA_MODEL_BASE::HasUndoStateSerialization ( ) const
inlineoverridevirtual

Optional identity-based serialization for the host dialog's Ctrl+Z/Ctrl+Y.

The dialog's generic grid undo snapshots cells by (row, col) position, which is wrong for tables whose rows can regroup/sort/reorder. A table that returns true here is asked to serialize and restore its own state by stable identity instead.

Reimplemented from WX_GRID_TABLE_BASE.

Definition at line 251 of file fields_table_data_model.h.

◆ IsCellClear()

virtual bool FIELDS_TABLE_DATA_MODEL_BASE::IsCellClear ( int aRow,
int aCol )
pure virtual

◆ IsCellEdited()

virtual bool FIELDS_TABLE_DATA_MODEL_BASE::IsCellEdited ( int aRow,
int aCol )
pure virtual

◆ IsCellReadOnly()

◆ IsEdited()

bool FIELDS_TABLE_DATA_MODEL_BASE::IsEdited ( )
inline

Definition at line 130 of file fields_table_data_model.h.

References m_edited.

◆ IsEmptyCell()

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

Definition at line 149 of file fields_table_data_model.h.

◆ IsExpanderColumn()

bool FIELDS_TABLE_DATA_MODEL_BASE::IsExpanderColumn ( int aCol) const
overridevirtual

Reimplemented from WX_GRID_TABLE_BASE.

Definition at line 462 of file fields_table_data_model.cpp.

References m_cols.

Referenced by ColIsReadOnly().

◆ IsRowEdited()

bool FIELDS_TABLE_DATA_MODEL_BASE::IsRowEdited ( int aRow)

Return true if any cell in the row has been edited.

Definition at line 516 of file fields_table_data_model.cpp.

References GetNumberCols(), and IsCellEdited().

◆ MoveColumn()

void FIELDS_TABLE_DATA_MODEL_BASE::MoveColumn ( int aCol,
int aNewPos )

Definition at line 227 of file fields_table_data_model.cpp.

Referenced by DIALOG_FIELDS_TABLE::OnColMove().

◆ RebuildRows()

◆ RemoveColumn()

void FIELDS_TABLE_DATA_MODEL_BASE::RemoveColumn ( int aCol)

Definition at line 260 of file fields_table_data_model.cpp.

Referenced by DIALOG_FIELDS_TABLE::OnRemoveField().

◆ RenameColumn()

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

◆ RestoreUndoState()

void FIELDS_TABLE_DATA_MODEL_BASE::RestoreUndoState ( const wxString & aState)
overridevirtual

Reimplemented from WX_GRID_TABLE_BASE.

Definition at line 798 of file fields_table_data_model.cpp.

References m_dataStore, m_edited, and RebuildRows().

◆ RevertRow()

◆ SerializeUndoState()

wxString FIELDS_TABLE_DATA_MODEL_BASE::SerializeUndoState ( ) const
overridevirtual

Reimplemented from WX_GRID_TABLE_BASE.

Definition at line 778 of file fields_table_data_model.cpp.

References m_dataStore, and name.

◆ SetColAttr()

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

Definition at line 66 of file wx_grid.h.

References m_colAttrs.

Referenced by DIALOG_FIELDS_TABLE::SetupColumnProperties().

◆ SetColLabelValue()

void FIELDS_TABLE_DATA_MODEL_BASE::SetColLabelValue ( int aCol,
const wxString & aLabel )
override

◆ SetCurrentVariant()

void FIELDS_TABLE_DATA_MODEL_BASE::SetCurrentVariant ( const wxString & aVariantName)
inline

Set the current variant name for highlighting purposes.

When a variant is set, cells that differ from the default (non-variant) value will be highlighted.

Parameters
aVariantNameThe name of the current variant, or empty string for default.

Definition at line 243 of file fields_table_data_model.h.

References m_currentVariant.

Referenced by BOOST_FIXTURE_TEST_CASE(), DIALOG_FIELDS_TABLE::doApplyBomPreset(), EESCHEMA_JOBS_HANDLER::JobExportBom(), and PCBNEW_JOBS_HANDLER::JobExportBom().

◆ SetExcludeDNP()

void FIELDS_TABLE_DATA_MODEL_BASE::SetExcludeDNP ( bool aExclude)
inline

Definition at line 207 of file fields_table_data_model.h.

References m_excludeDNP.

Referenced by ApplyBomPreset().

◆ SetFieldsOrder()

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

Definition at line 379 of file fields_table_data_model.cpp.

References commitPendingGridChanges(), and m_cols.

Referenced by ApplyBomPreset().

◆ SetFilter()

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

Definition at line 189 of file fields_table_data_model.h.

References m_filter.

Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnFilterText().

◆ SetFilterScope()

void FIELDS_TABLE_DATA_MODEL_BASE::SetFilterScope ( BOM_FILTER_SCOPE aScope)
inline

Definition at line 191 of file fields_table_data_model.h.

References m_filterScope.

Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnFilterScope().

◆ SetGroupColumn()

void FIELDS_TABLE_DATA_MODEL_BASE::SetGroupColumn ( int aCol,
bool aGroup )

◆ SetGroupingEnabled()

void FIELDS_TABLE_DATA_MODEL_BASE::SetGroupingEnabled ( bool aGroup)
inline

◆ SetIncludeExcludedFromBOM()

void FIELDS_TABLE_DATA_MODEL_BASE::SetIncludeExcludedFromBOM ( bool aInclude)
inline

Definition at line 204 of file fields_table_data_model.h.

References m_includeExcluded.

Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::PreviewRefresh().

◆ SetSelectionItems()

void FIELDS_TABLE_DATA_MODEL_BASE::SetSelectionItems ( const std::unordered_set< KIID_PATH > & aItems)
inline

Definition at line 194 of file fields_table_data_model.h.

References m_selectionItems.

◆ SetShowColumn()

void FIELDS_TABLE_DATA_MODEL_BASE::SetShowColumn ( int aCol,
bool aShow )

◆ SetSorting()

void FIELDS_TABLE_DATA_MODEL_BASE::SetSorting ( int aCol,
bool aAscending )

◆ SetVariantNames()

void FIELDS_TABLE_DATA_MODEL_BASE::SetVariantNames ( const std::vector< wxString > & aVariantNames)
inline

Member Data Documentation

◆ ITEM_NUMBER_VARIABLE

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

◆ m_colAttrs

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

Definition at line 108 of file wx_grid.h.

Referenced by GetAttr(), SetColAttr(), and ~WX_GRID_TABLE_BASE().

◆ m_cols

◆ m_currentVariant

wxString FIELDS_TABLE_DATA_MODEL_BASE::m_currentVariant
protected

Current variant name for highlighting.

Definition at line 300 of file fields_table_data_model.h.

Referenced by GetCurrentVariant(), and SetCurrentVariant().

◆ m_dataStore

◆ m_edited

◆ m_excludeDNP

bool FIELDS_TABLE_DATA_MODEL_BASE::m_excludeDNP
protected

◆ m_filter

wxString FIELDS_TABLE_DATA_MODEL_BASE::m_filter
protected

◆ m_filterScope

BOM_FILTER_SCOPE FIELDS_TABLE_DATA_MODEL_BASE::m_filterScope
protected

◆ m_groupingEnabled

bool FIELDS_TABLE_DATA_MODEL_BASE::m_groupingEnabled
protected

◆ m_includeExcluded

bool FIELDS_TABLE_DATA_MODEL_BASE::m_includeExcluded
protected

◆ m_rebuildsEnabled

bool FIELDS_TABLE_DATA_MODEL_BASE::m_rebuildsEnabled
protected

Items included by the user selection scope.

Definition at line 295 of file fields_table_data_model.h.

Referenced by DisableRebuilds(), EnableRebuilds(), and FIELDS_TABLE_DATA_MODEL_BASE().

◆ m_resolvedTextRenderer

wxGridCellRenderer* FIELDS_TABLE_DATA_MODEL_BASE::m_resolvedTextRenderer
protected

◆ m_selectionItems

std::unordered_set<KIID_PATH> FIELDS_TABLE_DATA_MODEL_BASE::m_selectionItems
protected

Definition at line 298 of file fields_table_data_model.h.

Referenced by ClearSelectionItems(), and SetSelectionItems().

◆ m_sortAscending

bool FIELDS_TABLE_DATA_MODEL_BASE::m_sortAscending
protected

Definition at line 289 of file fields_table_data_model.h.

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

◆ m_sortColumn

int FIELDS_TABLE_DATA_MODEL_BASE::m_sortColumn
protected

Definition at line 288 of file fields_table_data_model.h.

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

◆ m_stripedRenderer

wxGridCellRenderer* FIELDS_TABLE_DATA_MODEL_BASE::m_stripedRenderer
protected

◆ m_variantNames

std::vector<wxString> FIELDS_TABLE_DATA_MODEL_BASE::m_variantNames
protected

Variant names for multi-variant DNP filtering.

Definition at line 301 of file fields_table_data_model.h.

Referenced by GetVariantNames(), and SetVariantNames().

◆ QUANTITY_VARIABLE

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

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