|
KiCad PCB EDA Suite
|
The rest of the generic fields data model stuff, primarily around row functionality. More...
#include <fields_table_data_model.h>
Public Member Functions | |
| void | SetCurrentVariant (const wxString &aVariantName) override |
| Select the displayed variant, retaining un-applied edits in every variant. | |
| void | AddColumn (const wxString &aFieldName, const wxString &aLabel, bool aAddedByUser) override |
| void | ClearCell (int aRow, int aCol) override |
| Clears the field from the data store, rather than setting its value to an empty string. | |
| void | CopyCellFromVariant (int aRow, int aCol, const wxString &aVariantName) override |
| Copy each item's raw source value into the displayed variant, retaining staged edits. | |
| bool | IsCellClear (int aRow, int aCol) override |
| Returns true if the cell is not present in the data store for any item in the row, not just empty. | |
| bool | IsCellEdited (int aRow, int aCol) override |
| Returns true if the cell has been modified from the live value in any item in the row (symbol/footprint/etc). | |
| int | GetNumberRows () override |
| ROW_STATE | GetRowState (int aRow) const override |
| std::vector< KIID_PATH > | GetRowItemKeys (int aRow) const override |
| Return the stable data-store keys of every item represented by a row. | |
| std::vector< ITEM_TYPE > | GetRowReferences (int aRow) const |
| void | RevertRow (int aRow) override |
| Go through and revert all the fields in the row to their live values from the item (symbol/footprint/etc). | |
| void | ExpandRow (int aRow) |
| void | CollapseRow (int aRow) |
| void | ExpandCollapseRow (int aRow) override |
| void | CollapseForSort () |
| void | ExpandAfterSort () |
| wxString | GetGroupedValue (const DATA_MODEL_ROW< ITEM_TYPE > &aRow, int aCol, const wxString &refDelimiter=wxT(", "), const wxString &refRangeDelimiter=wxT("-"), bool resolveVars=false, bool forExport=false) |
| wxString | GetValue (int aRow, int aCol) override |
| wxString | GetResolvedValue (int aRow, int aCol) override |
| wxString | GetExportValue (int aRow, int aCol, const wxString &refDelimiter, const wxString &refRangeDelimiter) override |
| bool | IsCellReadOnly (int aRow, int aCol) override |
| virtual KIID_PATH | getDataStoreKey (const ITEM_TYPE &aItem) const =0 |
| virtual wxString | getItemIdentifier (const ITEM_TYPE &aItem) const =0 |
| virtual wxString | getFieldResolvedLiveValue (const ITEM_TYPE &aItem, const wxString &aFieldName)=0 |
| Explicitly bypasses the data store's field values and retries them from the item's current field value on the editing canvas. | |
| virtual wxString | resolveTextVars (const ITEM_TYPE &aItem, const wxString &aText)=0 |
| bool | IsEdited () |
| 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_FIELD > | GetFieldsOrdered () |
| 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 | HasRowLabelExpanders () const override |
| Show grouping controls in the row headers instead of row numbers. | |
| 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) |
| bool | CanClearCell (int aRow, int aCol) |
| bool | CanCopyCellFromVariant (int aRow, int aCol) |
| bool | IsRowEdited (int aRow) |
| Return true if any cell in the row has been edited. | |
| const wxString & | GetCurrentVariant () const |
| void | RenameStoredVariant (const wxString &aOldName, const wxString &aNewName) |
| void | DeleteStoredVariant (const wxString &aName) |
| 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 |
| void | SetColAttr (wxGridCellAttr *aAttr, int aCol) override |
| wxGridCellAttr * | GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override |
| 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 | |
| bool | MatchesFilter (const ITEM_TYPE &aItem, const wxString &aReference, EDA_COMBINED_MATCHER &aMatcher) |
| bool | attributeForcedOnBySheet (const ITEM_TYPE &aItem, const wxString &aAttributeName) const |
| Sheets can force all the symbols in them to have certain attributes on, like DNP. | |
| virtual bool | attributeForcedOnBySheet (const ITEM_TYPE &aItem, const wxString &aAttributeName, const wxString &aVariantName) const |
| bool | allRowItemsHaveAttributeForcedOnBySheet (const DATA_MODEL_ROW< ITEM_TYPE > &aRow, int aCol) |
| bool | cmpRows (const DATA_MODEL_ROW< ITEM_TYPE > &lhRow, const DATA_MODEL_ROW< ITEM_TYPE > &rhRow, int aSortCol, bool aAscending) |
| virtual bool | cmpRowItems (const ITEM_TYPE &lhItem, const ITEM_TYPE &rhItem) |
| virtual bool | unitMatch (const ITEM_TYPE &lhItem, const ITEM_TYPE &rhItem)=0 |
| bool | groupMatch (const ITEM_TYPE &lhItem, const ITEM_TYPE &rhItem) |
| void | Sort () |
| virtual bool | getLiveFieldValue (const ITEM_TYPE &aItem, const wxString &aFieldName, wxString &aValue)=0 |
| Gets the current value of the field from the live item, e.g. | |
| virtual bool | getLiveFieldValueForVariant (const ITEM_TYPE &aItem, const wxString &aFieldName, const wxString &aVariant, wxString &aValue) |
| std::map< wxString, wxString > | getStoredFields (const ITEM_TYPE &aItem, const wxString &aVariant) const |
| Returns the edited, present fields belonging to a variant without creating entries. | |
| bool | getStoredFieldValue (const ITEM_TYPE &aItem, const wxString &aFieldName, wxString &aValue) const |
| Gets the stored value of the field from the data store, not from the live item, e.g. | |
| bool | resolveStoredTextVar (const ITEM_TYPE &aItem, wxString *aToken, bool aCaseSensitive=false) const |
| Resolve an ordinary field token from the current variant's staged values. | |
| void | setStoredFieldValue (const ITEM_TYPE &aItem, const wxString &aFieldName, const wxString &aValue) |
| Creates or updates a field in the data store. | |
| virtual void | setCellValues (int aRow, int aCol, const std::vector< wxString > &aValues) |
| Write one value per item represented by the cell. Models may propagate shared storage. | |
| void | ensureStoredFieldPresent (const ITEM_TYPE &aItem, const wxString &aFieldName) |
| Makes sure a field is at least marked present-but-empty without changing its value if it has one already. | |
| void | clearStoredField (const ITEM_TYPE &aItem, const wxString &aFieldName) |
| Clears a field, e.g. | |
| bool | fieldIsModified (const ITEM_TYPE &aItem, const wxString &aFieldName) |
| Compares the live value of the field to the stored value in the data store. | |
| void | updateDataStoreItemFieldFromLive (const ITEM_TYPE &aItem, const wxString &aFieldName, bool aAllVariants=false) |
| Updates the data store with the current value of the field from the live item. | |
| void | initializeDataStoreItemField (const ITEM_TYPE &aItem, const DATA_MODEL_COL &aCol) |
| Puts the live value of the field in the data store, correctly handling a missing field in the souce item as empty or not-present based on whether the col was added by the user. | |
| void | initializeDataStoreItem (const ITEM_TYPE &aItem) |
| Initializes every column in the data store for a newly added (or refreshed) item. | |
| FIELD_STORE_VALUE & | storedField (const ITEM_TYPE &aItem, const wxString &aFieldName) |
| FIELD_STORE_VALUE & | storedField (const ITEM_TYPE &aItem, const wxString &aFieldName, const wxString &aVariantName) |
| void | refreshDataStoreItem (const ITEM_TYPE &aItem) |
| bool | storedFieldIsRemoved (const ITEM_TYPE &aItem, const wxString &aName) const |
| std::set< wxString > | storedVariants (const ITEM_TYPE &aItem) const |
| void | acceptDataStoreItem (const ITEM_TYPE &aItem) |
| virtual void | getEffectiveFieldValue (const ITEM_TYPE &aItem, const wxString &aFieldName, wxString &aValue) const |
| virtual std::vector< ITEM_TYPE > | getAllItems () const =0 |
| virtual bool | fieldIsAttribute (const wxString &aFieldName) const |
| virtual bool | fieldIsItemProperty (const wxString &aFieldName) const |
| virtual bool | fieldSupportsVariants (const wxString &aFieldName) const |
| wxString | fieldVariant (const wxString &aFieldName, const wxString &aVariantName) const |
| void | updateEditedState () |
| 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 | |
| std::vector< DATA_MODEL_ROW< ITEM_TYPE > > | m_rows |
| 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 |
| std::unordered_set< KIID_PATH > | m_selectionItems |
| Items included by the user selection scope. | |
| wxString | m_currentVariant |
| Current variant name for highlighting. | |
| std::vector< wxString > | m_variantNames |
| Variant names for multi-variant DNP filtering. | |
| std::vector< DATA_MODEL_COL > | m_cols |
| std::map< KIID_PATH, std::map< wxString, FIELD_STORE_VALUE > > | m_dataStore |
| std::map< int, wxGridCellAttr * > | m_colAttrs |
The rest of the generic fields data model stuff, primarily around row functionality.
Templated because rows differ per model, e.g. SCH_REFERENCE for the schematic fields table.
Definition at line 392 of file fields_table_data_model.h.
|
inlineprotected |
Definition at line 1402 of file fields_table_data_model.h.
References getDataStoreKey(), FIELDS_TABLE_DATA_MODEL_BASE::m_dataStore, name, and updateDataStoreItemFieldFromLive().
|
inlineoverridevirtual |
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 406 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::commitPendingGridChanges(), FinalizeTextVarExpansion(), FOR_GUI, getAllItems(), FIELDS_TABLE_DATA_MODEL_BASE::GetFieldNameCol(), grid, initializeDataStoreItemField(), FIELDS_TABLE_DATA_MODEL_BASE::m_cols, and FIELDS_TABLE_DATA_MODEL_BASE::m_edited.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), EESCHEMA_JOBS_HANDLER::JobExportBom(), and PCBNEW_JOBS_HANDLER::JobExportBom().
|
inlineprotected |
Definition at line 903 of file fields_table_data_model.h.
References attributeForcedOnBySheet(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsAttribute(), DATA_MODEL_ROW< ITEM_TYPE >::GetCellItems(), FIELDS_TABLE_DATA_MODEL_BASE::m_cols, and DATA_MODEL_ROW< ITEM_TYPE >::m_items.
Referenced by IsCellReadOnly().
|
inherited |
Definition at line 595 of file fields_table_data_model.cpp.
References AddColumn(), ColIsItemIdentifier(), GetFieldNameCol(), GetNumberCols(), BOM_FIELD::groupBy, BOM_FIELD::label, m_cols, BOM_FIELD::name, RebuildRows(), SetColLabelValue(), SetExcludeDNP(), SetFieldsOrder(), SetFilter(), SetFilterScope(), SetGroupColumn(), SetGroupingEnabled(), SetIncludeExcludedFromBOM(), SetShowColumn(), SetSorting(), and BOM_FIELD::show.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset(), EESCHEMA_JOBS_HANDLER::JobExportBom(), and PCBNEW_JOBS_HANDLER::JobExportBom().
|
protectedinherited |
Definition at line 188 of file fields_table_data_model.cpp.
|
protectedinherited |
Definition at line 164 of file fields_table_data_model.cpp.
|
protectedinherited |
Definition at line 112 of file fields_table_data_model.cpp.
References m_resolvedTextRenderer, FIELDS_TABLE_COLOR::TEXT_VARIABLE_DARK_AMBER(), and FIELDS_TABLE_COLOR::TEXT_VARIABLE_LIGHT_YELLOW().
|
inlineprotected |
Sheets can force all the symbols in them to have certain attributes on, like DNP.
They can't force them off.
Returns true if the attribute is forced on by a sheet
Definition at line 891 of file fields_table_data_model.h.
References attributeForcedOnBySheet(), and FIELDS_TABLE_DATA_MODEL_BASE::m_currentVariant.
Referenced by allRowItemsHaveAttributeForcedOnBySheet(), attributeForcedOnBySheet(), CopyCellFromVariant(), GetGroupedValue(), groupMatch(), and MatchesFilter().
|
inlineprotectedvirtual |
Reimplemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 896 of file fields_table_data_model.h.
|
inherited |
Definition at line 505 of file fields_table_data_model.cpp.
References GetDefaultFieldName(), IsCellClear(), IsCellReadOnly(), IsGeneratedField(), m_cols, MANDATORY_FIELDS, and UNTRANSLATED.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::ClearCell().
|
inherited |
Definition at line 499 of file fields_table_data_model.cpp.
References fieldSupportsVariants(), IsCellReadOnly(), and m_cols.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::CopyCellFromVariant().
|
protectedinherited |
Definition at line 102 of file fields_table_data_model.cpp.
References ColIsComputed(), ColIsItemIdentifier(), ColIsItemNumber(), ColIsQuantity(), GetNumberCols(), and IsGeneratedValue().
|
protectedinherited |
Definition at line 133 of file fields_table_data_model.cpp.
References DATASHEET, GetDefaultFieldName(), GetFieldNameCol(), GetNumberCols(), IsURL(), WX_GRID_TABLE_BASE::m_colAttrs, and UNTRANSLATED.
|
inlineoverrideinherited |
|
inlineoverridevirtual |
Clears the field from the data store, rather than setting its value to an empty string.
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Reimplemented in SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 435 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::CanClearCell(), clearStoredField(), FIELDS_TABLE_DATA_MODEL_BASE::m_cols, FIELDS_TABLE_DATA_MODEL_BASE::m_edited, and m_rows.
|
inlineinherited |
Definition at line 220 of file fields_table_data_model.h.
References m_selectionItems.
|
inlineprotected |
Clears a field, e.g.
marks in not-present (as opposed to an empty string)
Definition at line 1228 of file fields_table_data_model.h.
References FIELD_STORE_VALUE::m_present, FIELD_STORE_VALUE::m_variants, and storedField().
Referenced by ClearCell().
|
protectedinherited |
Definition at line 152 of file fields_table_data_model.cpp.
References DATASHEET, GetDefaultFieldName(), GetFieldNameCol(), WX_GRID_TABLE_BASE::m_colAttrs, and UNTRANSLATED.
|
inlineprotectedvirtual |
Definition at line 964 of file fields_table_data_model.h.
References getItemIdentifier(), and StrNumCmp().
Referenced by cmpRows().
|
inlineprotected |
Definition at line 919 of file fields_table_data_model.h.
References cmpRowItems(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsItemIdentifier(), GetGroupedValue(), FIELDS_TABLE_DATA_MODEL_BASE::GetNumberCols(), DATA_MODEL_ROW< ITEM_TYPE >::m_items, and ValueStringCompare().
|
inherited |
Definition at line 458 of file fields_table_data_model.cpp.
References fieldIsAttribute(), and m_cols.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::allRowItemsHaveAttributeForcedOnBySheet(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::CopyCellFromVariant(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetGroupedValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::groupMatch(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter().
|
inherited |
Definition at line 474 of file fields_table_data_model.cpp.
References ColIsItemProperty(), IsGeneratedField(), and m_cols.
Referenced by cellUsesResolvedTextRenderer(), ColIsReadOnly(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetGroupedValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::groupMatch(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter().
|
inherited |
Definition at line 451 of file fields_table_data_model.cpp.
References FOOTPRINT, GetDefaultFieldName(), m_cols, and UNTRANSLATED.
|
inlinevirtualinherited |
Reference for symbol/fields tables, lib_id for lib tables.
Reimplemented in LIB_FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 198 of file fields_table_data_model.h.
References ColIsReference().
Referenced by ApplyBomPreset(), cellUsesResolvedTextRenderer(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::cmpRows(), ColIsReadOnly(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetGroupedValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::groupMatch(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::resolveStoredTextVar().
|
inherited |
Definition at line 437 of file fields_table_data_model.cpp.
References ITEM_NUMBER_VARIABLE, and m_cols.
Referenced by cellUsesResolvedTextRenderer(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetGroupedValue(), and SetGroupColumn().
|
inherited |
Definition at line 466 of file fields_table_data_model.cpp.
References fieldIsItemProperty(), and m_cols.
Referenced by ColIsComputed().
|
inherited |
Definition at line 430 of file fields_table_data_model.cpp.
References m_cols, and QUANTITY_VARIABLE.
Referenced by cellUsesResolvedTextRenderer(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetGroupedValue(), and SetGroupColumn().
|
virtualinherited |
Reimplemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 482 of file fields_table_data_model.cpp.
References ColIsComputed(), ColIsItemIdentifier(), and m_cols.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ColIsReadOnly(), and IsCellReadOnly().
|
inherited |
Definition at line 423 of file fields_table_data_model.cpp.
References GetDefaultFieldName(), m_cols, REFERENCE, and UNTRANSLATED.
Referenced by ColIsItemIdentifier(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetGroupedValue(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::groupMatch().
|
inherited |
Definition at line 444 of file fields_table_data_model.cpp.
References GetDefaultFieldName(), m_cols, UNTRANSLATED, and VALUE.
|
inline |
Definition at line 643 of file fields_table_data_model.h.
References CollapseRow(), IsParentRow(), IsRowExpanded(), and m_rows.
Referenced by Sort().
|
inline |
Definition at line 610 of file fields_table_data_model.h.
References IsParentRow(), and m_rows.
Referenced by CollapseForSort(), and ExpandCollapseRow().
|
protectedinherited |
Definition at line 220 of file fields_table_data_model.cpp.
References grid.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::AddColumn(), DeleteStoredVariant(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::refreshDataStoreItem(), RemoveColumn(), RenameStoredVariant(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::SetCurrentVariant(), and SetFieldsOrder().
|
inlineoverridevirtual |
Copy each item's raw source value into the displayed variant, retaining staged edits.
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 452 of file fields_table_data_model.h.
References attributeForcedOnBySheet(), FIELDS_TABLE_DATA_MODEL_BASE::CanCopyCellFromVariant(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsAttribute(), GetDefaultVariantName(), FIELDS_TABLE_DATA_MODEL_BASE::m_cols, FIELD_STORE_VALUE::m_present, m_rows, FIELD_STORE_VALUE::m_variants, setCellValues(), storedField(), and FIELDS_TABLE_DATA_MODEL_BASE::updateEditedState().
|
inherited |
Definition at line 848 of file fields_table_data_model.cpp.
References commitPendingGridChanges(), m_dataStore, name, and updateEditedState().
|
inherited |
Definition at line 557 of file fields_table_data_model.cpp.
References m_rebuildsEnabled.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().
|
inherited |
Definition at line 551 of file fields_table_data_model.cpp.
References m_rebuildsEnabled.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().
|
protectedinherited |
Definition at line 43 of file wx_grid.cpp.
Referenced by FIELDS_GRID_TABLE::GetAttr(), LAYERS_GRID_TABLE::GetAttr(), LIB_TABLE_GRID_DATA_MODEL::GetAttr(), PCB_FIELDS_GRID_TABLE::GetAttr(), SCH_PIN_TABLE_DATA_MODEL::GetAttr(), and GetAttr().
|
inlineprotected |
Makes sure a field is at least marked present-but-empty without changing its value if it has one already.
Definition at line 1220 of file fields_table_data_model.h.
References FIELD_STORE_VALUE::m_present, and storedField().
|
inline |
Definition at line 657 of file fields_table_data_model.h.
References ExpandRow(), and m_rows.
Referenced by Sort().
|
inlineoverridevirtual |
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 634 of file fields_table_data_model.h.
References CollapseRow(), ExpandRow(), IsRowCollapsed(), IsRowExpanded(), and m_rows.
|
inline |
Definition at line 562 of file fields_table_data_model.h.
References IsParentRow(), m_rows, and unitMatch().
Referenced by ExpandAfterSort(), and ExpandCollapseRow().
|
inherited |
Definition at line 683 of file fields_table_data_model.cpp.
References BOM_FMT_PRESET::fieldDelimiter, GetExportValue(), WX_GRID_TABLE_BASE::GetRowState(), BOM_FMT_PRESET::includeByteOrderMark, BOM_FMT_PRESET::keepLineBreaks, BOM_FMT_PRESET::keepTabs, m_cols, BOM_FMT_PRESET::refDelimiter, BOM_FMT_PRESET::refRangeDelimiter, and BOM_FMT_PRESET::stringDelimiter.
Referenced by EESCHEMA_JOBS_HANDLER::JobExportBom(), and PCBNEW_JOBS_HANDLER::JobExportBom().
|
protectedvirtualinherited |
Reimplemented in LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 757 of file fields_table_data_model.cpp.
Referenced by ColIsAttribute(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::fieldIsAttribute(), and fieldIsItemProperty().
|
protectedvirtualinherited |
Reimplemented in LIB_FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 765 of file fields_table_data_model.cpp.
References fieldIsAttribute().
Referenced by ColIsItemProperty(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::fieldIsItemProperty(), and LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::fieldIsItemProperty().
|
inlineprotected |
Compares the live value of the field to the stored value in the data store.
If they differ in presence or value then the field has been modified
Definition at line 1242 of file fields_table_data_model.h.
References getLiveFieldValue(), and getStoredFieldValue().
Referenced by IsCellEdited().
|
inlineprotectedvirtualinherited |
Reimplemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 299 of file fields_table_data_model.h.
Referenced by CanCopyCellFromVariant(), and fieldVariant().
|
protectedinherited |
Definition at line 791 of file fields_table_data_model.cpp.
References fieldSupportsVariants().
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::getStoredFieldValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::setStoredFieldValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::storedField(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::updateDataStoreItemFieldFromLive().
|
protectedpure virtual |
Implemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Referenced by AddColumn(), and SetCurrentVariant().
|
inlineoverrideinherited |
Definition at line 96 of file wx_grid.h.
References enhanceAttr(), and m_colAttrs.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
protectedvirtualinherited |
Reimplemented in LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 771 of file fields_table_data_model.cpp.
Referenced by LIB_FIELDS_EDITOR_GRID_DATA_MODEL::getAttributeResolvedValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetGroupedValue(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter().
|
inherited |
Definition at line 663 of file fields_table_data_model.cpp.
References GetColFieldName(), GetExcludeDNP(), GetFieldsOrdered(), GetFilter(), GetFilterScope(), GetGroupingEnabled(), GetIncludeExcludedFromBOM(), GetNumberCols(), GetSortAsc(), and GetSortCol().
Referenced by DIALOG_FIELDS_TABLE::getDataModelBomPreset(), DIALOG_FIELDS_TABLE::saveJobSettings(), and DIALOG_FIELDS_TABLE::savePresets().
|
inherited |
Definition at line 365 of file fields_table_data_model.cpp.
References GetColLabelValue(), GetResolvedValue(), and KIUI::GetTextSize().
Referenced by DIALOG_FIELDS_TABLE::SetupAllColumnProperties().
|
inherited |
Definition at line 358 of file fields_table_data_model.cpp.
References m_cols.
Referenced by GetBomSettings().
|
overrideinherited |
Definition at line 351 of file fields_table_data_model.cpp.
References m_cols.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset(), and GetColDataWidth().
|
inlineinherited |
Definition at line 272 of file fields_table_data_model.h.
References m_currentVariant.
|
pure virtual |
Implemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Referenced by acceptDataStoreItem(), GetRowItemKeys(), getStoredFields(), getStoredFieldValue(), refreshDataStoreItem(), resolveStoredTextVar(), storedField(), storedFieldIsRemoved(), and storedVariants().
|
inlineprotectedvirtual |
Reimplemented in LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 1409 of file fields_table_data_model.h.
References getStoredFieldValue().
Referenced by GetGroupedValue().
|
inlineinherited |
Definition at line 233 of file fields_table_data_model.h.
References m_excludeDNP.
Referenced by GetBomSettings().
|
inlineoverridevirtual |
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 813 of file fields_table_data_model.h.
References GetGroupedValue(), and m_rows.
|
inherited |
Definition at line 376 of file fields_table_data_model.cpp.
References FieldNamesAreDuplicates(), and m_cols.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::AddColumn(), ApplyBomPreset(), cellUsesUrlEditor(), cloneUrlEditorAttr(), DIALOG_FIELDS_TABLE::doApplyBomPreset(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportBom(), DIALOG_FIELDS_TABLE::OnRemoveField(), DIALOG_FIELDS_TABLE::OnRenameField(), DIALOG_FIELDS_TABLE::OnViewControlsCellChanged(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::resolveStoredTextVar(), and DIALOG_FIELDS_TABLE::SetupAllColumnProperties().
|
pure virtual |
Explicitly bypasses the data store's field values and retries them from the item's current field value on the editing canvas.
Will also handle generated fields as necessary. Returns empty string for private/missing fields.
Example: BOM template provides ${DNP} as a field, but they symbol doesn't have the field.
Implemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Referenced by GetGroupedValue(), groupMatch(), and MatchesFilter().
|
inherited |
Definition at line 388 of file fields_table_data_model.cpp.
References m_cols.
Referenced by GetBomSettings(), EESCHEMA_JOBS_HANDLER::JobExportBom(), and PCBNEW_JOBS_HANDLER::JobExportBom().
|
inlineinherited |
Definition at line 215 of file fields_table_data_model.h.
References m_filter.
Referenced by GetBomSettings().
|
inlineinherited |
Definition at line 217 of file fields_table_data_model.h.
References m_filterScope.
Referenced by GetBomSettings().
|
inherited |
Definition at line 574 of file fields_table_data_model.cpp.
References m_cols.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().
|
inline |
Definition at line 667 of file fields_table_data_model.h.
References attributeForcedOnBySheet(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsAttribute(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsComputed(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsItemIdentifier(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsItemNumber(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsQuantity(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsReference(), UTIL::FormatRefDesRanges(), FIELDS_TABLE_DATA_MODEL_BASE::getAttributeResolvedValue(), DATA_MODEL_ROW< ITEM_TYPE >::GetCellItems(), getEffectiveFieldValue(), getFieldResolvedLiveValue(), getItemIdentifier(), getStoredFieldValue(), INDETERMINATE_STATE, IsGeneratedValue(), FIELDS_TABLE_DATA_MODEL_BASE::m_cols, DATA_MODEL_ROW< ITEM_TYPE >::m_itemNumber, DATA_MODEL_ROW< ITEM_TYPE >::m_items, DATA_MODEL_ROW< ITEM_TYPE >::m_state, and resolveTextVars().
Referenced by cmpRows(), GetExportValue(), GetResolvedValue(), and GetValue().
|
inlineinherited |
Definition at line 223 of file fields_table_data_model.h.
References m_groupingEnabled.
Referenced by GetBomSettings().
|
inlineinherited |
Definition at line 230 of file fields_table_data_model.h.
References m_includeExcluded.
Referenced by GetBomSettings(), and DIALOG_FIELDS_TABLE::PreviewRefresh().
|
pure virtual |
Implemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Referenced by cmpRowItems(), GetGroupedValue(), and groupMatch().
|
protectedpure virtual |
Gets the current value of the field from the live item, e.g.
from the symbol on the schematic.
Implemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Referenced by fieldIsModified(), and getLiveFieldValueForVariant().
|
inlineprotectedvirtual |
Reimplemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 1083 of file fields_table_data_model.h.
References getLiveFieldValue().
Referenced by refreshDataStoreItem(), storedField(), and updateDataStoreItemFieldFromLive().
|
inlineoverrideinherited |
Definition at line 163 of file fields_table_data_model.h.
References m_cols.
Referenced by ApplyBomPreset(), cellUsesResolvedTextRenderer(), cellUsesUrlEditor(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::cmpRows(), GetBomSettings(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetValue(), IsCellReadOnly(), IsRowEdited(), and DIALOG_FIELDS_TABLE::OnAddField().
|
inlineoverride |
Definition at line 518 of file fields_table_data_model.h.
References m_rows.
Referenced by GetValue().
|
inlineoverridevirtual |
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 808 of file fields_table_data_model.h.
References GetGroupedValue(), and m_rows.
|
inlineoverridevirtual |
Return the stable data-store keys of every item represented by a row.
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 522 of file fields_table_data_model.h.
References getDataStoreKey(), and m_rows.
|
inline |
Definition at line 535 of file fields_table_data_model.h.
References m_rows.
|
inlineoverridevirtual |
Reimplemented from WX_GRID_TABLE_BASE.
Definition at line 519 of file fields_table_data_model.h.
References m_rows, and ROW_STATE::ROW_STATE.
|
inherited |
Definition at line 588 of file fields_table_data_model.cpp.
References m_cols.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().
|
inlineinherited |
Definition at line 206 of file fields_table_data_model.h.
References m_sortAscending.
Referenced by GetBomSettings(), and DIALOG_FIELDS_TABLE::SetupAllColumnProperties().
|
inlineinherited |
Definition at line 205 of file fields_table_data_model.h.
References m_sortColumn.
Referenced by GetBomSettings().
|
inlineprotected |
Returns the edited, present fields belonging to a variant without creating entries.
Definition at line 1092 of file fields_table_data_model.h.
References getDataStoreKey(), FIELD_VALUE_STATE::m_baseline, FIELDS_TABLE_DATA_MODEL_BASE::m_dataStore, FIELD_VALUE_STATE::m_value, and name.
|
inlineprotected |
Gets the stored value of the field from the data store, not from the live item, e.g.
from the symbol on the schematic.
Definition at line 1122 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::fieldVariant(), getDataStoreKey(), FIELDS_TABLE_DATA_MODEL_BASE::m_currentVariant, and FIELDS_TABLE_DATA_MODEL_BASE::m_dataStore.
Referenced by fieldIsModified(), getEffectiveFieldValue(), GetGroupedValue(), groupMatch(), IsCellClear(), MatchesFilter(), and resolveStoredTextVar().
|
inlineoverride |
Definition at line 800 of file fields_table_data_model.h.
References GetGroupedValue(), FIELDS_TABLE_DATA_MODEL_BASE::GetNumberCols(), GetNumberRows(), and m_rows.
|
inlineinherited |
Definition at line 278 of file fields_table_data_model.h.
References m_variantNames.
|
inlineprotected |
Definition at line 971 of file fields_table_data_model.h.
References attributeForcedOnBySheet(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsAttribute(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsComputed(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsItemIdentifier(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsReference(), getFieldResolvedLiveValue(), getItemIdentifier(), UTIL::GetRefDesPrefix(), getStoredFieldValue(), IsGeneratedValue(), FIELDS_TABLE_DATA_MODEL_BASE::m_cols, and resolveTextVars().
|
inlineoverridevirtualinherited |
Show grouping controls in the row headers instead of row numbers.
Reimplemented from WX_GRID_TABLE_BASE.
Definition at line 201 of file fields_table_data_model.h.
|
inlineoverridevirtualinherited |
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 282 of file fields_table_data_model.h.
|
inlineprotected |
Initializes every column in the data store for a newly added (or refreshed) item.
Like the field initializer, this will correctly handle missing fields in the source item as empty or not-present based on the column user-added status
Definition at line 1302 of file fields_table_data_model.h.
References initializeDataStoreItemField(), and FIELDS_TABLE_DATA_MODEL_BASE::m_cols.
|
inlineprotected |
Puts the live value of the field in the data store, correctly handling a missing field in the souce item as empty or not-present based on whether the col was added by the user.
Definition at line 1288 of file fields_table_data_model.h.
References DATA_MODEL_COL::m_fieldName, FIELD_STORE_VALUE::m_present, DATA_MODEL_COL::m_userAdded, and storedField().
Referenced by AddColumn(), initializeDataStoreItem(), and refreshDataStoreItem().
|
inlineoverridevirtual |
Returns true if the cell is not present in the data store for any item in the row, not just empty.
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 482 of file fields_table_data_model.h.
References getStoredFieldValue(), FIELDS_TABLE_DATA_MODEL_BASE::m_cols, and m_rows.
|
inlineoverridevirtual |
Returns true if the cell has been modified from the live value in any item in the row (symbol/footprint/etc).
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 503 of file fields_table_data_model.h.
References fieldIsModified(), FIELDS_TABLE_DATA_MODEL_BASE::m_cols, and m_rows.
|
inlineoverridevirtual |
Reimplemented from FIELDS_TABLE_DATA_MODEL_BASE.
Reimplemented in LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 819 of file fields_table_data_model.h.
References allRowItemsHaveAttributeForcedOnBySheet(), FIELDS_TABLE_DATA_MODEL_BASE::IsCellReadOnly(), and m_rows.
Referenced by LIB_FIELDS_EDITOR_GRID_DATA_MODEL::IsCellReadOnly().
|
inlineinherited |
Definition at line 155 of file fields_table_data_model.h.
References m_edited.
|
inlineoverrideinherited |
Definition at line 174 of file fields_table_data_model.h.
|
inherited |
Return true if any cell in the row has been edited.
Definition at line 529 of file fields_table_data_model.cpp.
References GetNumberCols(), and IsCellEdited().
|
inlineprotected |
Definition at line 827 of file fields_table_data_model.h.
References attributeForcedOnBySheet(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsAttribute(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsComputed(), EDA_COMBINED_MATCHER::Find(), FIELDS_TABLE_DATA_MODEL_BASE::getAttributeResolvedValue(), getFieldResolvedLiveValue(), getStoredFieldValue(), IsGeneratedValue(), FIELDS_TABLE_DATA_MODEL_BASE::m_cols, DATA_MODEL_COL::m_fieldName, FIELDS_TABLE_DATA_MODEL_BASE::m_filter, FIELDS_TABLE_DATA_MODEL_BASE::m_filterScope, DATA_MODEL_COL::m_show, REFERENCE, resolveTextVars(), and VISIBLE.
|
inherited |
Definition at line 227 of file fields_table_data_model.cpp.
References m_cols.
Referenced by DIALOG_FIELDS_TABLE::OnColMove().
|
pure virtualinherited |
Implemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Referenced by ApplyBomPreset(), DIALOG_FIELDS_TABLE::doApplyBomPreset(), DIALOG_FIELDS_TABLE::OnColSort(), DIALOG_FIELDS_TABLE::OnFilterScope(), DIALOG_FIELDS_TABLE::OnFilterText(), DIALOG_FIELDS_TABLE::OnGroupSymbolsToggled(), DIALOG_FIELDS_TABLE::OnRegroupSymbols(), DIALOG_FIELDS_TABLE::OnRenameField(), DIALOG_FIELDS_TABLE::OnViewControlsCellChanged(), DIALOG_FIELDS_TABLE::PreviewRefresh(), RestoreUndoState(), and DIALOG_FIELDS_TABLE::ShowHideColumn().
|
inlineprotected |
Definition at line 1334 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::commitPendingGridChanges(), getDataStoreKey(), getLiveFieldValueForVariant(), initializeDataStoreItemField(), FIELDS_TABLE_DATA_MODEL_BASE::m_cols, FIELDS_TABLE_DATA_MODEL_BASE::m_dataStore, name, and storedField().
Referenced by SetCurrentVariant().
|
inherited |
Definition at line 260 of file fields_table_data_model.cpp.
References commitPendingGridChanges(), m_cols, m_dataStore, FIELD_STORE_VALUE::m_present, and FIELD_STORE_VALUE::m_variants.
Referenced by DIALOG_FIELDS_TABLE::OnRemoveField().
|
inherited |
Definition at line 305 of file fields_table_data_model.cpp.
Referenced by DIALOG_FIELDS_TABLE::OnRenameField().
|
inherited |
Definition at line 827 of file fields_table_data_model.cpp.
References commitPendingGridChanges(), m_currentVariant, m_dataStore, and name.
|
inlineprotected |
Resolve an ordinary field token from the current variant's staged values.
Return raw variable references so ResolveTextVars can expand nested fields with its depth limit. Tokens not tracked by the table must still be offered to the live item's resolver.
Definition at line 1149 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::ColIsItemIdentifier(), getDataStoreKey(), FIELDS_TABLE_DATA_MODEL_BASE::GetFieldNameCol(), getStoredFieldValue(), IsGeneratedField(), FIELD_STORE_VALUE::m_baselinePresent, FIELDS_TABLE_DATA_MODEL_BASE::m_dataStore, FIELD_STORE_VALUE::m_present, name, and UnescapeString().
|
pure virtual |
Implemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Referenced by GetGroupedValue(), groupMatch(), and MatchesFilter().
|
overridevirtualinherited |
Reimplemented from WX_GRID_TABLE_BASE.
Definition at line 893 of file fields_table_data_model.cpp.
References FIELD_STORE_VALUE::m_baselinePresent, m_currentVariant, m_dataStore, FIELD_STORE_VALUE::m_present, FIELD_STORE_VALUE::m_variants, RebuildRows(), and SetCurrentVariant().
|
inlineoverridevirtual |
Go through and revert all the fields in the row to their live values from the item (symbol/footprint/etc).
Then recheck if any fields in the entire table are modified, and set edited state accordingly.
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Reimplemented in SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 548 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::m_cols, m_rows, updateDataStoreItemFieldFromLive(), and FIELDS_TABLE_DATA_MODEL_BASE::updateEditedState().
Referenced by SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL::RevertRow().
|
overridevirtualinherited |
Reimplemented from WX_GRID_TABLE_BASE.
Definition at line 862 of file fields_table_data_model.cpp.
References m_dataStore, and name.
|
inlineprotectedvirtual |
Write one value per item represented by the cell. Models may propagate shared storage.
Reimplemented in SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 1208 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::m_cols, m_rows, and setStoredFieldValue().
Referenced by CopyCellFromVariant().
|
inlineoverrideinherited |
Definition at line 90 of file wx_grid.h.
References m_colAttrs.
Referenced by DIALOG_FIELDS_TABLE::SetupColumnProperties().
|
overrideinherited |
Definition at line 342 of file fields_table_data_model.cpp.
References FinalizeTextVarExpansion(), FOR_GUI, and m_cols.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnViewControlsCellChanged().
|
inlineoverridevirtual |
Select the displayed variant, retaining un-applied edits in every variant.
Refresh live baselines without replacing staged edits to unchanged fields. Cells that differ from the default (non-variant) value will be highlighted.
| aVariantName | The name of the current variant, or empty string for default. |
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 395 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::commitPendingGridChanges(), getAllItems(), GetDefaultVariantName(), FIELDS_TABLE_DATA_MODEL_BASE::m_currentVariant, refreshDataStoreItem(), and FIELDS_TABLE_DATA_MODEL_BASE::updateEditedState().
Referenced by BOOST_FIXTURE_TEST_CASE(), EESCHEMA_JOBS_HANDLER::JobExportBom(), and PCBNEW_JOBS_HANDLER::JobExportBom().
|
inlineinherited |
Definition at line 232 of file fields_table_data_model.h.
References m_excludeDNP.
Referenced by ApplyBomPreset().
|
inherited |
Definition at line 399 of file fields_table_data_model.cpp.
References commitPendingGridChanges(), and m_cols.
Referenced by ApplyBomPreset().
|
inlineinherited |
Definition at line 214 of file fields_table_data_model.h.
References m_filter.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnFilterText().
|
inlineinherited |
Definition at line 216 of file fields_table_data_model.h.
References m_filterScope.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnFilterScope().
|
inherited |
Definition at line 563 of file fields_table_data_model.cpp.
References ColIsItemNumber(), ColIsQuantity(), and m_cols.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnViewControlsCellChanged().
|
inlineinherited |
Definition at line 222 of file fields_table_data_model.h.
References m_groupingEnabled.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnGroupSymbolsToggled().
|
inlineinherited |
Definition at line 229 of file fields_table_data_model.h.
References m_includeExcluded.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::PreviewRefresh().
|
inlineinherited |
Definition at line 219 of file fields_table_data_model.h.
References m_selectionItems.
|
inherited |
Definition at line 581 of file fields_table_data_model.cpp.
References m_cols.
Referenced by ApplyBomPreset(), DIALOG_FIELDS_TABLE::SetupAllColumnProperties(), and DIALOG_FIELDS_TABLE::ShowHideColumn().
|
inherited |
Definition at line 543 of file fields_table_data_model.cpp.
References m_cols, m_sortAscending, and m_sortColumn.
Referenced by ApplyBomPreset(), DIALOG_FIELDS_TABLE::OnColSort(), and DIALOG_FIELDS_TABLE::SetupAllColumnProperties().
|
inlineprotected |
Creates or updates a field in the data store.
Always marks the field present as a result.
Definition at line 1199 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::fieldVariant(), FIELDS_TABLE_DATA_MODEL_BASE::m_currentVariant, FIELD_STORE_VALUE::m_present, FIELD_STORE_VALUE::m_variants, and storedField().
Referenced by setCellValues().
|
inlineinherited |
Definition at line 277 of file fields_table_data_model.h.
References m_variantNames.
Referenced by EESCHEMA_JOBS_HANDLER::JobExportBom(), and PCBNEW_JOBS_HANDLER::JobExportBom().
|
inlineprotected |
Definition at line 1043 of file fields_table_data_model.h.
References CollapseForSort(), ExpandAfterSort(), IsParentRow(), and m_rows.
|
inlineprotected |
Definition at line 1308 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::m_currentVariant, and storedField().
Referenced by clearStoredField(), CopyCellFromVariant(), ensureStoredFieldPresent(), initializeDataStoreItemField(), refreshDataStoreItem(), setStoredFieldValue(), storedField(), and updateDataStoreItemFieldFromLive().
|
inlineprotected |
Definition at line 1313 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::fieldVariant(), getDataStoreKey(), getLiveFieldValueForVariant(), FIELD_VALUE_STATE::m_baseline, FIELD_STORE_VALUE::m_baselinePresent, FIELDS_TABLE_DATA_MODEL_BASE::m_dataStore, FIELD_STORE_VALUE::m_present, FIELD_VALUE_STATE::m_value, and FIELD_STORE_VALUE::m_variants.
|
inlineprotected |
Definition at line 1374 of file fields_table_data_model.h.
References getDataStoreKey(), and FIELDS_TABLE_DATA_MODEL_BASE::m_dataStore.
|
inlineprotected |
Definition at line 1385 of file fields_table_data_model.h.
References getDataStoreKey(), FIELDS_TABLE_DATA_MODEL_BASE::m_dataStore, and name.
|
protectedpure virtual |
Implemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL, LIB_FIELDS_EDITOR_GRID_DATA_MODEL, and SYMBOL_FIELDS_EDITOR_GRID_DATA_MODEL.
Referenced by ExpandRow().
|
inlineprotected |
Updates the data store with the current value of the field from the live item.
If the field is not present on the item, it will be cleared from the data store rather than set to empty.
Definition at line 1259 of file fields_table_data_model.h.
References FIELDS_TABLE_DATA_MODEL_BASE::fieldVariant(), getLiveFieldValueForVariant(), FIELD_STORE_VALUE::m_baselinePresent, FIELDS_TABLE_DATA_MODEL_BASE::m_currentVariant, FIELD_STORE_VALUE::m_present, FIELD_STORE_VALUE::m_variants, and storedField().
Referenced by acceptDataStoreItem(), and RevertRow().
|
protectedinherited |
Definition at line 797 of file fields_table_data_model.cpp.
References m_dataStore, m_edited, and name.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::CopyCellFromVariant(), DeleteStoredVariant(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::RevertRow(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::SetCurrentVariant().
|
staticinherited |
Definition at line 153 of file fields_table_data_model.h.
Referenced by ColIsItemNumber(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportBom(), DIALOG_FOOTPRINT_FIELDS_TABLE::LoadFieldNames(), and DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames().
|
protectedinherited |
Definition at line 133 of file wx_grid.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE::cellUsesUrlEditor(), FIELDS_TABLE_DATA_MODEL_BASE::cloneUrlEditorAttr(), GetAttr(), SetColAttr(), and ~WX_GRID_TABLE_BASE().
|
protectedinherited |
Definition at line 339 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::AddColumn(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::allRowItemsHaveAttributeForcedOnBySheet(), ApplyBomPreset(), CanClearCell(), CanCopyCellFromVariant(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::ClearCell(), ColIsAttribute(), ColIsComputed(), ColIsFootprint(), ColIsItemNumber(), ColIsItemProperty(), ColIsQuantity(), ColIsReadOnly(), ColIsReference(), ColIsValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::CopyCellFromVariant(), Export(), GetColFieldName(), GetColLabelValue(), GetFieldNameCol(), GetFieldsOrdered(), GetGroupColumn(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetGroupedValue(), GetNumberCols(), GetShowColumn(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::groupMatch(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::initializeDataStoreItem(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::IsCellClear(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::IsCellEdited(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter(), MoveColumn(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::refreshDataStoreItem(), RemoveColumn(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::RevertRow(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::setCellValues(), SetColLabelValue(), SetFieldsOrder(), SetGroupColumn(), SetShowColumn(), and SetSorting().
|
protectedinherited |
Current variant name for highlighting.
Definition at line 335 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::attributeForcedOnBySheet(), GetCurrentVariant(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::getStoredFieldValue(), RenameStoredVariant(), RestoreUndoState(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::SetCurrentVariant(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::setStoredFieldValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::storedField(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::updateDataStoreItemFieldFromLive().
|
protectedinherited |
Definition at line 363 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::acceptDataStoreItem(), DeleteStoredVariant(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::getStoredFields(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::getStoredFieldValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::refreshDataStoreItem(), RemoveColumn(), RenameStoredVariant(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::resolveStoredTextVar(), RestoreUndoState(), SerializeUndoState(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::storedField(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::storedFieldIsRemoved(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::storedVariants(), and updateEditedState().
|
protectedinherited |
Definition at line 322 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::AddColumn(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::ClearCell(), FIELDS_TABLE_DATA_MODEL_BASE(), IsEdited(), and updateEditedState().
|
protectedinherited |
Definition at line 328 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetExcludeDNP(), and SetExcludeDNP().
|
protectedinherited |
Definition at line 325 of file fields_table_data_model.h.
Referenced by GetFilter(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter(), and SetFilter().
|
protectedinherited |
Definition at line 326 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetFilterScope(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter(), and SetFilterScope().
|
protectedinherited |
Definition at line 327 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetGroupingEnabled(), and SetGroupingEnabled().
|
protectedinherited |
Definition at line 329 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetIncludeExcludedFromBOM(), and SetIncludeExcludedFromBOM().
|
protectedinherited |
Definition at line 330 of file fields_table_data_model.h.
Referenced by DisableRebuilds(), EnableRebuilds(), and FIELDS_TABLE_DATA_MODEL_BASE().
|
protectedinherited |
Definition at line 320 of file fields_table_data_model.h.
Referenced by applyResolvedTextRenderer(), FIELDS_TABLE_DATA_MODEL_BASE(), and ~FIELDS_TABLE_DATA_MODEL_BASE().
|
protected |
Definition at line 1435 of file fields_table_data_model.h.
Referenced by ClearCell(), CollapseForSort(), CollapseRow(), CopyCellFromVariant(), ExpandAfterSort(), ExpandCollapseRow(), ExpandRow(), GetExportValue(), GetNumberRows(), GetResolvedValue(), GetRowItemKeys(), GetRowReferences(), GetRowState(), GetValue(), IsCellClear(), IsCellEdited(), IsCellReadOnly(), RevertRow(), setCellValues(), and Sort().
|
protectedinherited |
Items included by the user selection scope.
Definition at line 333 of file fields_table_data_model.h.
Referenced by ClearSelectionItems(), and SetSelectionItems().
|
protectedinherited |
Definition at line 324 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetSortAsc(), and SetSorting().
|
protectedinherited |
Definition at line 323 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetSortCol(), and SetSorting().
|
protectedinherited |
Definition at line 319 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), and ~FIELDS_TABLE_DATA_MODEL_BASE().
|
protectedinherited |
Variant names for multi-variant DNP filtering.
Definition at line 336 of file fields_table_data_model.h.
Referenced by GetVariantNames(), and SetVariantNames().
|
staticinherited |
Definition at line 152 of file fields_table_data_model.h.
Referenced by ColIsQuantity(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportBom(), DIALOG_FOOTPRINT_FIELDS_TABLE::LoadFieldNames(), and DIALOG_SYMBOL_FIELDS_TABLE::LoadFieldNames().