|
KiCad PCB EDA Suite
|
#include <footprint_fields_data_model.h>
Public Types | |
| enum | SCOPE : int { SCOPE_ALL = 0 , SCOPE_SHEET , SCOPE_SHEET_RECURSIVE , SCOPE_SELECTION } |
Public Member Functions | |
| LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL (const FOOTPRINT_REFERENCE_LIST &aFootprints) | |
| bool | ColIsItemIdentifier (int aCol) const override |
| Reference for symbol/fields tables, lib_id for lib tables. | |
| bool | ApplyData (std::function< bool(FOOTPRINT &)> aChangeHandler) |
| wxGridCellAttr * | GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override |
| void | SetValue (int aRow, int aCol, const wxString &aValue) override |
| void | RebuildRows () override |
| void | ApplyData (BOARD_COMMIT &aCommit, TEMPLATES &aTemplateFieldnames) |
| void | SetScope (SCOPE aScope) |
| SCOPE | GetScope () |
| void | SetPath (const KIID_PATH &aPath) |
| const KIID_PATH & | GetPath () |
| void | AddReferences (const FOOTPRINT_REFERENCE_LIST &aRefs) |
| void | RemoveReferences (const FOOTPRINT_REFERENCE_LIST &aRefs) |
| void | RemoveFootprint (const FOOTPRINT_REF &aRef) |
| void | UpdateReferences (const FOOTPRINT_REFERENCE_LIST &aRefs) |
| bool | DeleteRows (size_t aPosition=0, size_t aNumRows=1) override |
| const FOOTPRINT_REFERENCE_LIST & | GetReferenceList () const |
| bool | ColIsReadOnly (int aCol) const override |
| 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< FOOTPRINT_REF > | 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< FOOTPRINT_REF > &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 |
| 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 |
| 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 () |
| 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 |
| void | Clear () override |
Static Public Attributes | |
| static const wxString | FOOTPRINT_NAME = wxS( "${FOOTPRINT_NAME}" ) |
| static const wxString | FOOTPRINT_KEYWORDS = wxS( "${FOOTPRINT_KEYWORDS}" ) |
| static const wxString | FOOTPRINT_LIBRARY_DESCRIPTION |
| static const wxString | QUANTITY_VARIABLE |
| static const wxString | ITEM_NUMBER_VARIABLE |
Protected Member Functions | |
| bool | attributeForcedOnBySheet (const FOOTPRINT_REF &aItem, const wxString &aAttributeName) const |
| Sheets can force all the symbols in them to have certain attributes on, like DNP. | |
| bool | applyDataToFootprint (const FOOTPRINT_REF &aSourceRef, FOOTPRINT &aDestFootprint, TEMPLATES *aTemplateFieldnames, const wxString &aVariantName) |
| Returns whether or the the aDestFootprint was changed by applying the data from aSourceRef. | |
| bool | setAttributeValue (const FOOTPRINT_REF &aReference, const wxString &aAttributeName, const wxString &aValue, const wxString &aVariantName=wxEmptyString) |
| Set the attribute value. | |
| bool | MatchesFilter (const FOOTPRINT_REF &aItem, const wxString &aReference, EDA_COMBINED_MATCHER &aMatcher) |
| bool | allRowItemsHaveAttributeForcedOnBySheet (const DATA_MODEL_ROW< FOOTPRINT_REF > &aRow, int aCol) |
| bool | cmpRows (const DATA_MODEL_ROW< FOOTPRINT_REF > &lhRow, const DATA_MODEL_ROW< FOOTPRINT_REF > &rhRow, int aSortCol, bool aAscending) |
| virtual bool | cmpRowItems (const FOOTPRINT_REF &lhItem, const FOOTPRINT_REF &rhItem) |
| bool | groupMatch (const FOOTPRINT_REF &lhItem, const FOOTPRINT_REF &rhItem) |
| void | Sort () |
| std::map< wxString, wxString > | getStoredFields (const FOOTPRINT_REF &aItem, const wxString &aVariant) const |
| Returns the edited, present fields belonging to a variant without creating entries. | |
| bool | getStoredFieldValue (const FOOTPRINT_REF &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 FOOTPRINT_REF &aItem, wxString *aToken, bool aCaseSensitive=false) const |
| Resolve an ordinary field token from the current variant's staged values. | |
| void | setStoredFieldValue (const FOOTPRINT_REF &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 FOOTPRINT_REF &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 FOOTPRINT_REF &aItem, const wxString &aFieldName) |
| Clears a field, e.g. | |
| bool | fieldIsModified (const FOOTPRINT_REF &aItem, const wxString &aFieldName) |
| Compares the live value of the field to the stored value in the data store. | |
| void | updateDataStoreItemFieldFromLive (const FOOTPRINT_REF &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 FOOTPRINT_REF &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 FOOTPRINT_REF &aItem) |
| Initializes every column in the data store for a newly added (or refreshed) item. | |
| FIELD_STORE_VALUE & | storedField (const FOOTPRINT_REF &aItem, const wxString &aFieldName) |
| FIELD_STORE_VALUE & | storedField (const FOOTPRINT_REF &aItem, const wxString &aFieldName, const wxString &aVariantName) |
| void | refreshDataStoreItem (const FOOTPRINT_REF &aItem) |
| bool | storedFieldIsRemoved (const FOOTPRINT_REF &aItem, const wxString &aName) const |
| std::set< wxString > | storedVariants (const FOOTPRINT_REF &aItem) const |
| void | acceptDataStoreItem (const FOOTPRINT_REF &aItem) |
| virtual void | getEffectiveFieldValue (const FOOTPRINT_REF &aItem, const wxString &aFieldName, wxString &aValue) const |
| virtual bool | fieldIsAttribute (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 | |
| FOOTPRINT_REFERENCE_LIST | m_footprintsList |
| SCOPE | m_scope |
| KIID_PATH | m_path |
| std::vector< DATA_MODEL_ROW< FOOTPRINT_REF > > | 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 |
Private Member Functions | |
| bool | fieldSupportsVariants (const wxString &aFieldName) const override |
| bool | fieldIsItemProperty (const wxString &aFieldName) const override |
| bool | getLiveFieldValueForVariant (const FOOTPRINT_REF &aRef, const wxString &aFieldName, const wxString &aVariant, wxString &aValue) override |
| bool | getLiveFieldValue (const FOOTPRINT_REF &aRef, const wxString &aFieldName, wxString &aValue) override |
| Gets the current value of the field from the live item, e.g. | |
| wxString | getItemIdentifier (const FOOTPRINT_REF &aRef) const override |
| bool | applyDataToFootprint (const FOOTPRINT_REF &aRef, FOOTPRINT &aFootprint) |
| bool | unitMatch (const FOOTPRINT_REF &lhItem, const FOOTPRINT_REF &rhItem) override |
| bool | attributeForcedOnBySheet (const FOOTPRINT_REF &aRef, const wxString &aAttributeName, const wxString &aVariantName) const override |
| Footprint attributes are don't currently track when they are inherited from the sheet, so this function always returns false. | |
| wxString | getAttributeValue (const FOOTPRINT_REF &aRef, const wxString &aAttributeName, const wxString &aVariantNames) |
| wxString | getDefaultFieldValue (const FOOTPRINT_REF &aRef, const wxString &aFieldName) |
| Get the default (non-variant) value for a field. | |
| std::vector< FOOTPRINT_REF > | getAllItems () const override |
| wxString | getFieldResolvedLiveValue (const FOOTPRINT_REF &aRef, const wxString &aFieldName) override |
| Explicitly bypasses the data store's field values and retries them from the item's current field value on the editing canvas. | |
| wxString | resolveTextVars (const FOOTPRINT_REF &aRef, const wxString &aText) override |
| KIID_PATH | getDataStoreKey (const FOOTPRINT_REF &aItem) const override |
| Data store UUID for a footprint is just the footprint's UUID, since footprints are unique across the board. | |
Definition at line 165 of file footprint_fields_data_model.h.
|
inherited |
| Enumerator | |
|---|---|
| SCOPE_ALL | |
| SCOPE_SHEET | |
| SCOPE_SHEET_RECURSIVE | |
| SCOPE_SELECTION | |
Definition at line 59 of file footprint_fields_data_model.h.
|
explicit |
Definition at line 832 of file footprint_fields_data_model.cpp.
References FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL(), and FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_includeExcluded.
|
inlineprotectedinherited |
Definition at line 1402 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), and LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData().
|
inlineoverridevirtualinherited |
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 406 of file fields_table_data_model.h.
|
inherited |
Definition at line 727 of file footprint_fields_data_model.cpp.
References alg::contains(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::initializeDataStoreItem(), and m_footprintsList.
|
inlineprotectedinherited |
Definition at line 903 of file fields_table_data_model.h.
|
inherited |
Definition at line 241 of file fields_table_data_model.cpp.
References m_sortColumn.
|
protectedinherited |
Definition at line 312 of file fields_table_data_model.cpp.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inherited |
Definition at line 697 of file footprint_fields_data_model.cpp.
References FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::acceptDataStoreItem(), applyDataToFootprint(), LIB_TREE_ITEM::GetFootprint(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_edited, m_footprintsList, COMMIT::Modified(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::refreshDataStoreItem(), and FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::storedVariants().
| bool LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData | ( | std::function< bool(FOOTPRINT &)> | aChangeHandler | ) |
|
protectedinherited |
Returns whether or the the aDestFootprint was changed by applying the data from aSourceRef.
Definition at line 563 of file footprint_fields_data_model.cpp.
References FOOTPRINT::Add(), FOOTPRINT::AddVariant(), B_Fab, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::ColIsItemIdentifier(), F_Cu, F_Fab, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::fieldIsAttribute(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::fieldIsItemProperty(), FOOTPRINT, BOARD_ITEM::GetBoard(), GetDefaultFieldName(), GetDefaultVariantName(), FOOTPRINT::GetField(), TEMPLATES::GetFieldName(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::GetFieldNameCol(), FOOTPRINT::GetFields(), FOOTPRINT::GetFieldValueForVariant(), FOOTPRINT::GetLayer(), EDA_ITEM::GetParentGroup(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::getStoredFields(), PCB_FIELD::GetUntranslatedName(), IsGeneratedField(), PCB_FIELD::IsMandatory(), PCB_FIELD::IsPrivate(), FOOTPRINT::Remove(), setAttributeValue(), BOARD_ITEM::SetFPRelativePosition(), BOARD_ITEM::SetLayer(), PCB_FIELD::SetPrivate(), EDA_TEXT::SetText(), EDA_TEXT::SetVisible(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::storedFieldIsRemoved(), PCB_TEXT::StyleFromSettings(), UNTRANSLATED, and USER.
Referenced by ApplyData(), and LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint().
|
private |
Definition at line 886 of file footprint_fields_data_model.cpp.
References FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), FOOTPRINT_KEYWORDS, FOOTPRINT_LIBRARY_DESCRIPTION, FOOTPRINT::GetKeywords(), FOOTPRINT::GetLibDescription(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::getStoredFieldValue(), FOOTPRINT::SetKeywords(), and FOOTPRINT::SetLibDescription().
Referenced by ApplyData().
|
protectedinherited |
Definition at line 313 of file fields_table_data_model.cpp.
References m_dataStore.
|
protectedinherited |
Definition at line 307 of file fields_table_data_model.cpp.
References m_cols.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inlineprotectedinherited |
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.
|
overrideprivatevirtualinherited |
Footprint attributes are don't currently track when they are inherited from the sheet, so this function always returns false.
That probably needs to change.
Reimplemented from FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >.
Definition at line 281 of file footprint_fields_data_model.cpp.
|
inherited |
Definition at line 250 of file fields_table_data_model.cpp.
References m_sortColumn.
|
inherited |
Definition at line 251 of file fields_table_data_model.cpp.
References m_cols, and m_sortColumn.
|
protectedinherited |
Definition at line 306 of file fields_table_data_model.cpp.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
protectedinherited |
Definition at line 309 of file fields_table_data_model.cpp.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inlineoverrideinherited |
|
inlineoverridevirtualinherited |
Clears the field from the data store, rather than setting its value to an empty string.
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 435 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 220 of file fields_table_data_model.h.
|
inlineprotectedinherited |
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.
|
protectedinherited |
Definition at line 310 of file fields_table_data_model.cpp.
References m_cols.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inlineprotectedvirtualinherited |
Definition at line 964 of file fields_table_data_model.h.
|
inlineprotectedinherited |
Definition at line 919 of file fields_table_data_model.h.
|
inherited |
Definition at line 186 of file fields_table_data_model.cpp.
|
inherited |
Definition at line 192 of file fields_table_data_model.cpp.
References grid.
|
inherited |
Definition at line 183 of file fields_table_data_model.cpp.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ColIsReadOnly().
|
overridevirtual |
Reference for symbol/fields tables, lib_id for lib tables.
Reimplemented from FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 840 of file footprint_fields_data_model.cpp.
References FOOTPRINT_NAME, and FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_cols.
|
inherited |
Definition at line 181 of file fields_table_data_model.cpp.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inherited |
Definition at line 188 of file fields_table_data_model.cpp.
|
inherited |
Definition at line 180 of file fields_table_data_model.cpp.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
overridevirtualinherited |
Reimplemented from FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 162 of file footprint_fields_data_model.cpp.
References FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::ColIsFootprint(), FIELDS_TABLE_DATA_MODEL_BASE::ColIsReadOnly(), and FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_cols.
|
inherited |
Definition at line 179 of file fields_table_data_model.cpp.
References m_stripedRenderer.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inherited |
Definition at line 182 of file fields_table_data_model.cpp.
|
inlineinherited |
Definition at line 643 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 610 of file fields_table_data_model.h.
|
protectedinherited |
Definition at line 316 of file fields_table_data_model.cpp.
References FIELD_STORE_VALUE::m_present, and FIELD_STORE_VALUE::m_variants.
|
inlineoverridevirtualinherited |
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.
|
overrideinherited |
Definition at line 778 of file footprint_fields_data_model.cpp.
References FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_dataStore, m_footprintsList, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_rows, RebuildRows(), and RemoveReferences().
|
inherited |
Definition at line 275 of file fields_table_data_model.cpp.
References m_colAttrs, m_cols, and m_sortColumn.
|
inherited |
Definition at line 211 of file fields_table_data_model.cpp.
|
inherited |
Definition at line 210 of file fields_table_data_model.cpp.
|
protectedinherited |
Definition at line 129 of file wx_grid.cpp.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inlineprotectedinherited |
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.
|
inlineinherited |
Definition at line 657 of file fields_table_data_model.h.
|
inlineoverridevirtualinherited |
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 634 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 562 of file fields_table_data_model.h.
|
inherited |
Definition at line 243 of file fields_table_data_model.cpp.
References m_cols, and m_sortColumn.
|
protectedvirtualinherited |
Definition at line 292 of file fields_table_data_model.cpp.
References grid, and m_colAttrs.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValueForVariant().
|
overrideprivatevirtual |
Reimplemented from FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 847 of file footprint_fields_data_model.cpp.
References FIELDS_TABLE_DATA_MODEL_BASE::fieldIsItemProperty(), FOOTPRINT_KEYWORDS, FOOTPRINT_LIBRARY_DESCRIPTION, and FOOTPRINT_NAME.
|
inlineprotectedinherited |
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.
|
inlineoverrideprivatevirtual |
Reimplemented from FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 179 of file footprint_fields_data_model.h.
|
protectedinherited |
Definition at line 300 of file fields_table_data_model.cpp.
|
overrideprivatevirtualinherited |
Implements FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >.
Definition at line 195 of file footprint_fields_data_model.cpp.
References m_footprintsList.
|
overrideinherited |
Definition at line 65 of file footprint_fields_data_model.cpp.
References FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::applyCellDecorations(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::applyResolvedTextRenderer(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::cellUsesResolvedTextRenderer(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::cellUsesUrlEditor(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::cloneUrlEditorAttr(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::ColIsItemNumber(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::ColIsQuantity(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::ColIsReference(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::enhanceAttr(), WX_GRID_TABLE_BASE::GetAttr(), getDefaultFieldValue(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::getStoredFieldValue(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::IsCellReadOnly(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_colAttrs, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_cols, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_currentVariant, DATA_MODEL_ROW< ITEM_TYPE >::m_items, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_rows, FIELDS_TABLE_COLOR::VARIANT_FIELD_OVERRIDE_DARK_YELLOW(), and FIELDS_TABLE_COLOR::VARIANT_FIELD_OVERRIDE_LIGHT_YELLOW().
|
protectedvirtualinherited |
Definition at line 304 of file fields_table_data_model.cpp.
|
privateinherited |
Definition at line 258 of file footprint_fields_data_model.cpp.
References FOOTPRINT::GetDNPForVariant(), FOOTPRINT::GetExcludedFromBOMForVariant(), FOOTPRINT::GetExcludedFromPosFilesForVariant(), FOOTPRINT::GetExcludedFromSimForVariant(), and FOOTPRINT_REF::GetFootprint().
Referenced by getLiveFieldValueForVariant().
|
inherited |
Definition at line 242 of file fields_table_data_model.cpp.
References m_sortColumn.
|
inherited |
Definition at line 168 of file fields_table_data_model.cpp.
|
inherited |
Definition at line 167 of file fields_table_data_model.cpp.
|
overrideinherited |
Definition at line 166 of file fields_table_data_model.cpp.
|
inlineinherited |
Definition at line 272 of file fields_table_data_model.h.
|
overrideprivatevirtualinherited |
Data store UUID for a footprint is just the footprint's UUID, since footprints are unique across the board.
Implements FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >.
Definition at line 51 of file footprint_fields_data_model.cpp.
References FOOTPRINT_REF::GetFootprint(), and EDA_ITEM::m_Uuid.
Referenced by RebuildRows(), and RemoveFootprint().
|
privateinherited |
Get the default (non-variant) value for a field.
This retrieves the field value as it would appear without any variant override.
| aRef | The footprint reference. |
| aFieldName | The name of the field. |
Definition at line 347 of file footprint_fields_data_model.cpp.
References getLiveFieldValueForVariant().
Referenced by GetAttr().
|
inlineprotectedvirtualinherited |
Definition at line 1409 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 233 of file fields_table_data_model.h.
|
inlineoverridevirtualinherited |
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 813 of file fields_table_data_model.h.
|
inherited |
Definition at line 169 of file fields_table_data_model.cpp.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint().
|
overrideprivatevirtualinherited |
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.
Implements FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >.
Definition at line 201 of file footprint_fields_data_model.cpp.
References FOOTPRINT::GetField(), FOOTPRINT_REF::GetFootprint(), PCB_FIELD::GetShownText(), INTERNAL, IsGeneratedField(), PCB_FIELD::IsPrivate(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_currentVariant, FOOTPRINT::ResolveTextVar(), and ResolveTextVars().
|
inherited |
Definition at line 171 of file fields_table_data_model.cpp.
|
inlineinherited |
Definition at line 215 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 217 of file fields_table_data_model.h.
|
inherited |
Definition at line 236 of file fields_table_data_model.cpp.
|
inlineinherited |
Definition at line 667 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 223 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 230 of file fields_table_data_model.h.
|
overrideprivatevirtual |
Reimplemented from FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 880 of file footprint_fields_data_model.cpp.
References FOOTPRINT_REF::GetFootprint(), and FOOTPRINT::GetName().
|
overrideprivatevirtual |
Gets the current value of the field from the live item, e.g.
from the symbol on the schematic.
Reimplemented from FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 855 of file footprint_fields_data_model.cpp.
References FOOTPRINT_KEYWORDS, FOOTPRINT_LIBRARY_DESCRIPTION, FOOTPRINT_NAME, FOOTPRINT_REF::GetFootprint(), FOOTPRINT::GetKeywords(), FOOTPRINT::GetLibDescription(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValue(), and FOOTPRINT::GetName().
Referenced by getLiveFieldValueForVariant().
|
inlineoverrideprivatevirtual |
Reimplemented from FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 182 of file footprint_fields_data_model.h.
References getLiveFieldValue().
|
inlineoverrideinherited |
Definition at line 163 of file fields_table_data_model.h.
|
inlineoverrideinherited |
Definition at line 518 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 85 of file footprint_fields_data_model.h.
References m_path.
|
inlineinherited |
Definition at line 94 of file footprint_fields_data_model.h.
References m_footprintsList.
Referenced by PCBNEW_JOBS_HANDLER::JobExportBom().
|
inlineoverridevirtualinherited |
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 808 of file fields_table_data_model.h.
|
inlineoverridevirtualinherited |
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.
|
inlineinherited |
Definition at line 535 of file fields_table_data_model.h.
|
inlineoverridevirtualinherited |
Reimplemented from WX_GRID_TABLE_BASE.
Definition at line 519 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 82 of file footprint_fields_data_model.h.
References m_scope.
|
inherited |
Definition at line 239 of file fields_table_data_model.cpp.
|
inlineinherited |
Definition at line 206 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 205 of file fields_table_data_model.h.
|
inlineprotectedinherited |
Returns the edited, present fields belonging to a variant without creating entries.
Definition at line 1092 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint().
|
inlineprotectedinherited |
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.
Referenced by LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inlineoverrideinherited |
Definition at line 800 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 278 of file fields_table_data_model.h.
|
inlineprotectedinherited |
Definition at line 971 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
inlineoverrideinherited |
Show grouping controls in the row headers instead of row numbers.
Definition at line 201 of file fields_table_data_model.h.
|
inlineoverrideinherited |
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.
Definition at line 282 of file fields_table_data_model.h.
|
inlineprotectedinherited |
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.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::AddReferences().
|
inlineprotectedinherited |
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.
|
inlineoverridevirtualinherited |
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.
|
inlineoverridevirtualinherited |
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.
|
inlineoverridevirtualinherited |
Reimplemented from FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 819 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::SetValue().
|
inlineinherited |
Definition at line 155 of file fields_table_data_model.h.
|
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 257 of file fields_table_data_model.cpp.
|
inlineprotectedinherited |
Definition at line 827 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
inherited |
Definition at line 159 of file fields_table_data_model.cpp.
|
overridevirtualinherited |
Implements FIELDS_TABLE_DATA_MODEL_BASE.
Definition at line 427 of file footprint_fields_data_model.cpp.
References CTX_SEARCH, getDataStoreKey(), FOOTPRINT::GetDNPForVariant(), FOOTPRINT::GetExcludedFromBOMForVariant(), LIB_TREE_ITEM::GetFootprint(), getItemIdentifier(), FOOTPRINT::GetPath(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::groupMatch(), KIID_PATH::IsContainedWithin(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_currentVariant, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_excludeDNP, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_filter, m_footprintsList, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_groupingEnabled, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_includeExcluded, m_path, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_rebuildsEnabled, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_rows, m_scope, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_selectionItems, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_variantNames, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::MatchesFilter(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::Sort(), and unitMatch().
Referenced by DeleteRows().
|
inlineprotectedinherited |
Definition at line 1334 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::UpdateReferences().
|
inherited |
Definition at line 160 of file fields_table_data_model.cpp.
|
inherited |
Definition at line 741 of file footprint_fields_data_model.cpp.
References getDataStoreKey(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_dataStore, and m_footprintsList.
Referenced by RemoveReferences().
|
inherited |
Definition at line 754 of file footprint_fields_data_model.cpp.
References RemoveFootprint().
Referenced by DeleteRows().
|
inherited |
Definition at line 161 of file fields_table_data_model.cpp.
|
inherited |
Definition at line 274 of file fields_table_data_model.cpp.
|
inlineprotectedinherited |
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.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::resolveTextVars().
|
overrideprivatevirtualinherited |
Implements FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >.
Definition at line 234 of file footprint_fields_data_model.cpp.
References GetDefaultFieldName(), FOOTPRINT_REF::GetFootprint(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_currentVariant, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::resolveStoredTextVar(), FOOTPRINT::ResolveTextVar(), ResolveTextVars(), UNTRANSLATED, and VALUE.
|
overrideinherited |
Definition at line 284 of file fields_table_data_model.cpp.
References m_colAttrs.
|
inlineoverridevirtualinherited |
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.
Definition at line 548 of file fields_table_data_model.h.
|
overrideinherited |
Definition at line 283 of file fields_table_data_model.cpp.
|
protectedinherited |
Set the attribute value.
| aReference | is a reference to the footprint to set the attribute. |
| aAttributeName | is the name of the footprint attribute. |
| aValue | is the value to set the attribute. |
| aVariantName | is an optional variant name to set the variant attribute. |
| true | if the footprint attribute value has changed. |
| false | if the footprint attribute has not changed. |
Definition at line 356 of file footprint_fields_data_model.cpp.
References FOOTPRINT::AddVariant(), GetDefaultVariantName(), FOOTPRINT::GetDNPForVariant(), FOOTPRINT::GetExcludedFromBOMForVariant(), FOOTPRINT::GetExcludedFromPosFilesForVariant(), FOOTPRINT::GetExcludedFromSimForVariant(), FOOTPRINT_REF::GetFootprint(), FOOTPRINT::SetDNP(), FOOTPRINT::SetExcludedFromBOM(), FOOTPRINT::SetExcludedFromPosFiles(), and FOOTPRINT::SetExcludedFromSim().
Referenced by applyDataToFootprint().
|
inlineprotectedvirtualinherited |
Write one value per item represented by the cell. Models may propagate shared storage.
Definition at line 1208 of file fields_table_data_model.h.
|
inlineoverrideinherited |
|
overrideinherited |
Definition at line 165 of file fields_table_data_model.cpp.
|
inlineoverridevirtualinherited |
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.
|
inlineinherited |
Definition at line 232 of file fields_table_data_model.h.
|
inherited |
Definition at line 172 of file fields_table_data_model.cpp.
References FIELDS_TABLE_COLOR::CLEARED_FIELD_STRIPE_ON_DARK_LIGHT_RED(), FIELDS_TABLE_COLOR::CLEARED_FIELD_STRIPE_ON_LIGHT_DARK_RED(), and m_stripedRenderer.
|
inlineinherited |
Definition at line 214 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 216 of file fields_table_data_model.h.
|
inherited |
Definition at line 235 of file fields_table_data_model.cpp.
|
inlineinherited |
Definition at line 222 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 229 of file fields_table_data_model.h.
|
inlineinherited |
Definition at line 84 of file footprint_fields_data_model.h.
References m_path.
|
inlineinherited |
Definition at line 81 of file footprint_fields_data_model.h.
References m_scope.
|
inlineinherited |
Definition at line 219 of file fields_table_data_model.h.
|
inherited |
Definition at line 238 of file fields_table_data_model.cpp.
|
inherited |
Definition at line 204 of file fields_table_data_model.cpp.
References grid.
|
inlineprotectedinherited |
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.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::SetValue().
|
overrideinherited |
Definition at line 142 of file footprint_fields_data_model.cpp.
References INDETERMINATE_STATE, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::IsCellReadOnly(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_cols, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_edited, DATA_MODEL_ROW< ITEM_TYPE >::m_items, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::m_rows, and FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::setStoredFieldValue().
|
inlineinherited |
Definition at line 277 of file fields_table_data_model.h.
|
inlineprotectedinherited |
Definition at line 1043 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
inlineprotectedinherited |
Definition at line 1308 of file fields_table_data_model.h.
|
inlineprotectedinherited |
Definition at line 1313 of file fields_table_data_model.h.
|
inlineprotectedinherited |
Definition at line 1374 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::applyDataToFootprint().
|
inlineprotectedinherited |
Definition at line 1385 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData().
|
overrideprivatevirtualinherited |
Implements FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >.
Definition at line 178 of file footprint_fields_data_model.cpp.
Referenced by RebuildRows().
|
inlineprotectedinherited |
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.
|
protectedinherited |
Definition at line 301 of file fields_table_data_model.cpp.
References m_edited.
Referenced by LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::UpdateReferences().
|
inherited |
Definition at line 761 of file footprint_fields_data_model.cpp.
References alg::contains(), m_footprintsList, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::refreshDataStoreItem(), and FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::updateEditedState().
Referenced by PCBNEW_JOBS_HANDLER::JobExportBom().
|
static |
Definition at line 169 of file footprint_fields_data_model.h.
Referenced by applyDataToFootprint(), fieldIsItemProperty(), DIALOG_LIB_FOOTPRINT_FIELDS_TABLE::getBuiltInBomPresets(), getLiveFieldValue(), and DIALOG_LIB_FOOTPRINT_FIELDS_TABLE::LoadFieldNames().
|
static |
Definition at line 170 of file footprint_fields_data_model.h.
Referenced by applyDataToFootprint(), fieldIsItemProperty(), and getLiveFieldValue().
|
static |
Definition at line 168 of file footprint_fields_data_model.h.
Referenced by ColIsItemIdentifier(), fieldIsItemProperty(), DIALOG_LIB_FOOTPRINT_FIELDS_TABLE::getBuiltInBomPresets(), and getLiveFieldValue().
|
staticinherited |
Definition at line 153 of file fields_table_data_model.h.
|
protectedinherited |
Definition at line 133 of file wx_grid.h.
Referenced by DeleteStoredVariant(), fieldIsAttribute(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), and RestoreUndoState().
|
protectedinherited |
Definition at line 339 of file fields_table_data_model.h.
Referenced by applyResolvedTextRenderer(), CanCopyCellFromVariant(), cloneUrlEditorAttr(), LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ColIsItemIdentifier(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ColIsReadOnly(), DeleteStoredVariant(), Export(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::SetValue().
|
protectedinherited |
Current variant name for highlighting.
Definition at line 335 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getFieldResolvedLiveValue(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::getLiveFieldValue(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::resolveTextVars().
|
protectedinherited |
Definition at line 363 of file fields_table_data_model.h.
Referenced by applyFieldPresenceRenderer(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::DeleteRows(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RemoveFootprint().
|
protectedinherited |
Definition at line 322 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::SetValue(), and updateEditedState().
|
protectedinherited |
Definition at line 328 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
protectedinherited |
Definition at line 325 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
protectedinherited |
Definition at line 326 of file fields_table_data_model.h.
|
protectedinherited |
Definition at line 159 of file footprint_fields_data_model.h.
Referenced by AddReferences(), ApplyData(), LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ApplyData(), DeleteRows(), FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL(), getAllItems(), GetReferenceList(), RebuildRows(), RemoveFootprint(), and UpdateReferences().
|
protectedinherited |
Definition at line 327 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
protectedinherited |
Definition at line 329 of file fields_table_data_model.h.
Referenced by LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL(), and FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
protectedinherited |
Definition at line 161 of file footprint_fields_data_model.h.
Referenced by GetPath(), RebuildRows(), and SetPath().
|
protectedinherited |
Definition at line 330 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
protectedinherited |
Definition at line 320 of file fields_table_data_model.h.
|
protectedinherited |
|
protectedinherited |
Definition at line 160 of file footprint_fields_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL(), GetScope(), RebuildRows(), and SetScope().
|
protectedinherited |
Items included by the user selection scope.
Definition at line 333 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
protectedinherited |
Definition at line 324 of file fields_table_data_model.h.
|
protectedinherited |
Definition at line 323 of file fields_table_data_model.h.
Referenced by ApplyBomPreset(), CanClearCell(), CanCopyCellFromVariant(), DeleteStoredVariant(), Export(), and GetBomSettings().
|
protectedinherited |
Definition at line 319 of file fields_table_data_model.h.
Referenced by ColIsReference(), and SetFieldsOrder().
|
protectedinherited |
Variant names for multi-variant DNP filtering.
Definition at line 336 of file fields_table_data_model.h.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::RebuildRows().
|
staticinherited |
Definition at line 152 of file fields_table_data_model.h.