|
KiCad PCB EDA Suite
|
Contains everything completly generic to fields tables data models, as well as column functionality that doesn't touch the internal fields data store. More...
#include <fields_table_data_model.h>
Public Member Functions | |
| FIELDS_TABLE_DATA_MODEL_BASE () | |
| ~FIELDS_TABLE_DATA_MODEL_BASE () override | |
| bool | IsEdited () |
| virtual void | AddColumn (const wxString &aFieldName, const wxString &aLabel, bool aAddedByUser)=0 |
| void | MoveColumn (int aCol, int aNewPos) |
| void | RemoveColumn (int aCol) |
| void | RenameColumn (int aCol, const wxString &newName) |
| int | GetNumberCols () override |
| void | SetColLabelValue (int aCol, const wxString &aLabel) override |
| wxString | GetColLabelValue (int aCol) override |
| wxString | GetColFieldName (int aCol) |
| int | GetColDataWidth (int aCol) |
| int | GetFieldNameCol (const wxString &aFieldName) const |
| std::vector< BOM_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 | IsExpanderColumn (int aCol) const override |
| virtual bool | IsCellReadOnly (int aRow, int aCol) |
| void | SetSorting (int aCol, bool aAscending) |
| int | GetSortCol () |
| bool | GetSortAsc () |
| void | EnableRebuilds () |
| void | DisableRebuilds () |
| virtual void | RebuildRows ()=0 |
| void | SetFilter (const wxString &aFilter) |
| const wxString & | GetFilter () |
| void | SetFilterScope (BOM_FILTER_SCOPE aScope) |
| BOM_FILTER_SCOPE | GetFilterScope () const |
| void | SetSelectionItems (const std::unordered_set< KIID_PATH > &aItems) |
| void | ClearSelectionItems () |
| void | SetGroupingEnabled (bool aGroup) |
| bool | GetGroupingEnabled () |
| void | SetIncludeExcludedFromBOM (bool aInclude) |
| bool | GetIncludeExcludedFromBOM () |
| void | SetExcludeDNP (bool aExclude) |
| bool | GetExcludeDNP () |
| void | SetGroupColumn (int aCol, bool aGroup) |
| bool | GetGroupColumn (int aCol) |
| void | SetShowColumn (int aCol, bool aShow) |
| bool | GetShowColumn (int aCol) |
| void | ApplyBomPreset (const BOM_PRESET &aPreset) |
| BOM_PRESET | GetBomSettings () |
| wxString | Export (const BOM_FMT_PRESET &aSettings) |
| virtual wxString | GetResolvedValue (int aRow, int aCol)=0 |
| virtual wxString | GetExportValue (int aRow, int aCol, const wxString &aRefDelimiter, const wxString &aRefRangeDelimiter)=0 |
| virtual void | ClearCell (int aRow, int aCol)=0 |
| bool | CanClearCell (int aRow, int aCol) |
| virtual bool | IsCellClear (int aRow, int aCol)=0 |
| virtual bool | IsCellEdited (int aRow, int aCol)=0 |
| bool | IsRowEdited (int aRow) |
| Return true if any cell in the row has been edited. | |
| virtual void | RevertRow (int aRow)=0 |
| virtual std::vector< KIID_PATH > | GetRowItemKeys (int aRow) const =0 |
| Return the stable data-store keys of every item represented by a row. | |
| void | SetCurrentVariant (const wxString &aVariantName) |
| Set the current variant name for highlighting purposes. | |
| const wxString & | GetCurrentVariant () const |
| void | SetVariantNames (const std::vector< wxString > &aVariantNames) |
| const std::vector< wxString > & | GetVariantNames () const |
| bool | HasUndoStateSerialization () const override |
| Optional identity-based serialization for the host dialog's Ctrl+Z/Ctrl+Y. | |
| wxString | SerializeUndoState () const override |
| void | RestoreUndoState (const wxString &aState) override |
| virtual void | ExpandCollapseRow (int aRow)=0 |
| void | SetColAttr (wxGridCellAttr *aAttr, int aCol) override |
| wxGridCellAttr * | GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override |
| virtual ROW_STATE | GetRowState (int aRow) const |
| void | Clear () override |
Static Public Attributes | |
| static const wxString | QUANTITY_VARIABLE = wxS( "${QUANTITY}" ) |
| static const wxString | ITEM_NUMBER_VARIABLE = wxS( "${ITEM_NUMBER}" ) |
Protected Member Functions | |
| virtual bool | fieldIsAttribute (const wxString &aFieldName) const |
| virtual bool | fieldIsItemProperty (const wxString &aFieldName) const |
| virtual wxString | getAttributeResolvedValue (const wxString &aFieldName, bool aValue) const |
| bool | cellUsesResolvedTextRenderer (int aRow, int aCol) |
| void | applyResolvedTextRenderer (wxGridCellAttr *aAttr, bool aApplyTint) |
| bool | cellUsesUrlEditor (int aRow, int aCol) |
| wxGridCellAttr * | cloneUrlEditorAttr () |
| wxGridCellAttr * | applyCellDecorations (wxGridCellAttr *aAttr, int aRow, int aCol) |
| wxGridCellAttr * | applyFieldPresenceRenderer (wxGridCellAttr *aAttr, int aRow, int aCol) |
| void | commitPendingGridChanges () |
| wxGridCellAttr * | enhanceAttr (wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) |
Protected Attributes | |
| wxGridCellRenderer * | m_stripedRenderer |
| wxGridCellRenderer * | m_resolvedTextRenderer |
| bool | m_edited |
| int | m_sortColumn |
| bool | m_sortAscending |
| wxString | m_filter |
| BOM_FILTER_SCOPE | m_filterScope |
| bool | m_groupingEnabled |
| bool | m_excludeDNP |
| bool | m_includeExcluded |
| bool | m_rebuildsEnabled |
| Items included by the user selection scope. | |
| std::unordered_set< KIID_PATH > | m_selectionItems |
| wxString | m_currentVariant |
| Current variant name for highlighting. | |
| std::vector< wxString > | m_variantNames |
| Variant names for multi-variant DNP filtering. | |
| std::vector< DATA_MODEL_COL > | m_cols |
| std::map< KIID_PATH, std::map< wxString, wxString > > | m_dataStore |
| std::map< int, wxGridCellAttr * > | m_colAttrs |
Contains everything completly generic to fields tables data models, as well as column functionality that doesn't touch the internal fields data store.
Definition at line 121 of file fields_table_data_model.h.
| FIELDS_TABLE_DATA_MODEL_BASE::FIELDS_TABLE_DATA_MODEL_BASE | ( | ) |
Definition at line 80 of file fields_table_data_model.cpp.
References m_edited, m_excludeDNP, m_filterScope, m_groupingEnabled, m_includeExcluded, m_rebuildsEnabled, m_resolvedTextRenderer, m_sortAscending, m_sortColumn, m_stripedRenderer, and REFERENCE.
|
override |
Definition at line 95 of file fields_table_data_model.cpp.
References m_resolvedTextRenderer, and m_stripedRenderer.
|
pure virtual |
| void FIELDS_TABLE_DATA_MODEL_BASE::ApplyBomPreset | ( | const BOM_PRESET & | aPreset | ) |
Definition at line 582 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().
|
protected |
Definition at line 188 of file fields_table_data_model.cpp.
References applyFieldPresenceRenderer(), and grid.
|
protected |
Definition at line 164 of file fields_table_data_model.cpp.
References ColIsAttribute(), and IsCellClear().
Referenced by applyCellDecorations().
|
protected |
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().
| bool FIELDS_TABLE_DATA_MODEL_BASE::CanClearCell | ( | int | aRow, |
| int | aCol ) |
Definition at line 492 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().
|
protected |
Definition at line 102 of file fields_table_data_model.cpp.
References ColIsItemIdentifier(), ColIsItemNumber(), ColIsQuantity(), GetNumberCols(), and IsGeneratedValue().
|
protected |
Definition at line 133 of file fields_table_data_model.cpp.
|
pure virtual |
|
inline |
Definition at line 195 of file fields_table_data_model.h.
References m_selectionItems.
|
protected |
Definition at line 152 of file fields_table_data_model.cpp.
| bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsAttribute | ( | int | aCol | ) | const |
Definition at line 438 of file fields_table_data_model.cpp.
References fieldIsAttribute(), and m_cols.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::allRowItemsHaveAttributeForcedOnBySheet(), applyFieldPresenceRenderer(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetGroupedValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::groupMatch(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter().
| bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsComputed | ( | int | aCol | ) | const |
Definition at line 454 of file fields_table_data_model.cpp.
References ColIsItemProperty(), IsGeneratedField(), and m_cols.
Referenced by ColIsReadOnly(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetGroupedValue(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::groupMatch(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter().
| bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsFootprint | ( | int | aCol | ) | const |
Definition at line 431 of file fields_table_data_model.cpp.
References FOOTPRINT, GetDefaultFieldName(), m_cols, and UNTRANSLATED.
|
inlinevirtual |
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 173 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(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::groupMatch().
| bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsItemNumber | ( | int | aCol | ) | const |
Definition at line 417 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().
| bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsItemProperty | ( | int | aCol | ) | const |
Definition at line 446 of file fields_table_data_model.cpp.
References fieldIsItemProperty(), and m_cols.
Referenced by ColIsComputed().
| bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsQuantity | ( | int | aCol | ) | const |
Definition at line 410 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().
|
virtual |
Reimplemented in FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 475 of file fields_table_data_model.cpp.
References ColIsComputed(), ColIsItemIdentifier(), IsExpanderColumn(), and m_cols.
Referenced by FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL::ColIsReadOnly(), and IsCellReadOnly().
| bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsReference | ( | int | aCol | ) | const |
Definition at line 403 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().
| bool FIELDS_TABLE_DATA_MODEL_BASE::ColIsValue | ( | int | aCol | ) | const |
Definition at line 424 of file fields_table_data_model.cpp.
References GetDefaultFieldName(), m_cols, UNTRANSLATED, and VALUE.
|
protected |
Definition at line 220 of file fields_table_data_model.cpp.
References grid.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::AddColumn(), FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >::fieldIsAttribute(), RenameColumn(), and SetFieldsOrder().
| void FIELDS_TABLE_DATA_MODEL_BASE::DisableRebuilds | ( | ) |
Definition at line 544 of file fields_table_data_model.cpp.
References m_rebuildsEnabled.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().
| void FIELDS_TABLE_DATA_MODEL_BASE::EnableRebuilds | ( | ) |
Definition at line 538 of file fields_table_data_model.cpp.
References m_rebuildsEnabled.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().
|
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().
|
pure virtual |
| wxString FIELDS_TABLE_DATA_MODEL_BASE::Export | ( | const BOM_FMT_PRESET & | aSettings | ) |
Definition at line 670 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().
|
protectedvirtual |
Reimplemented in LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 744 of file fields_table_data_model.cpp.
Referenced by ColIsAttribute(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::fieldIsAttribute(), and fieldIsItemProperty().
|
protectedvirtual |
Reimplemented in LIB_FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FOOTPRINT_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 752 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().
|
inlineoverrideinherited |
Definition at line 72 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().
|
protectedvirtual |
Reimplemented in LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 758 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().
| BOM_PRESET FIELDS_TABLE_DATA_MODEL_BASE::GetBomSettings | ( | ) |
Definition at line 650 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().
| int FIELDS_TABLE_DATA_MODEL_BASE::GetColDataWidth | ( | int | aCol | ) |
Definition at line 345 of file fields_table_data_model.cpp.
References GetColLabelValue(), GetResolvedValue(), and KIUI::GetTextSize().
Referenced by DIALOG_FIELDS_TABLE::SetupAllColumnProperties().
| wxString FIELDS_TABLE_DATA_MODEL_BASE::GetColFieldName | ( | int | aCol | ) |
Definition at line 338 of file fields_table_data_model.cpp.
References m_cols.
Referenced by GetBomSettings().
|
override |
Definition at line 331 of file fields_table_data_model.cpp.
References m_cols.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset(), and GetColDataWidth().
|
inline |
Definition at line 244 of file fields_table_data_model.h.
References m_currentVariant.
|
inline |
Definition at line 208 of file fields_table_data_model.h.
References m_excludeDNP.
Referenced by GetBomSettings().
|
pure virtual |
Implemented in FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >, FIELDS_TABLE_DATA_MODEL< LIB_SYMBOL * >, and FIELDS_TABLE_DATA_MODEL< SCH_REFERENCE >.
Referenced by Export().
| int FIELDS_TABLE_DATA_MODEL_BASE::GetFieldNameCol | ( | const wxString & | aFieldName | ) | const |
Definition at line 356 of file fields_table_data_model.cpp.
References FieldNamesAreDuplicates(), and m_cols.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::AddColumn(), ApplyBomPreset(), DIALOG_FIELDS_TABLE::doApplyBomPreset(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportBom(), DIALOG_FIELDS_TABLE::OnRemoveField(), DIALOG_FIELDS_TABLE::OnRenameField(), DIALOG_FIELDS_TABLE::OnViewControlsCellChanged(), and DIALOG_FIELDS_TABLE::SetupAllColumnProperties().
| std::vector< BOM_FIELD > FIELDS_TABLE_DATA_MODEL_BASE::GetFieldsOrdered | ( | ) |
Definition at line 368 of file fields_table_data_model.cpp.
References m_cols.
Referenced by GetBomSettings(), EESCHEMA_JOBS_HANDLER::JobExportBom(), and PCBNEW_JOBS_HANDLER::JobExportBom().
|
inline |
Definition at line 190 of file fields_table_data_model.h.
References m_filter.
Referenced by GetBomSettings().
|
inline |
Definition at line 192 of file fields_table_data_model.h.
References m_filterScope.
Referenced by GetBomSettings().
| bool FIELDS_TABLE_DATA_MODEL_BASE::GetGroupColumn | ( | int | aCol | ) |
Definition at line 561 of file fields_table_data_model.cpp.
References m_cols.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().
|
inline |
Definition at line 198 of file fields_table_data_model.h.
References m_groupingEnabled.
Referenced by GetBomSettings().
|
inline |
Definition at line 205 of file fields_table_data_model.h.
References m_includeExcluded.
Referenced by GetBomSettings(), and DIALOG_FIELDS_TABLE::PreviewRefresh().
|
inlineoverride |
Definition at line 138 of file fields_table_data_model.h.
References m_cols.
Referenced by ApplyBomPreset(), cellUsesResolvedTextRenderer(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::cmpRows(), GetBomSettings(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::GetValue(), IsCellReadOnly(), IsRowEdited(), and DIALOG_FIELDS_TABLE::OnAddField().
|
pure virtual |
|
pure virtual |
Return the stable data-store keys of every item represented by a row.
Implemented in FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >, FIELDS_TABLE_DATA_MODEL< LIB_SYMBOL * >, and FIELDS_TABLE_DATA_MODEL< SCH_REFERENCE >.
|
inlinevirtualinherited |
Reimplemented in FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >, FIELDS_TABLE_DATA_MODEL< LIB_SYMBOL * >, and FIELDS_TABLE_DATA_MODEL< SCH_REFERENCE >.
Definition at line 84 of file wx_grid.h.
References ROW_STATE::ROW_STATE.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE::Export().
| bool FIELDS_TABLE_DATA_MODEL_BASE::GetShowColumn | ( | int | aCol | ) |
Definition at line 575 of file fields_table_data_model.cpp.
References m_cols.
Referenced by DIALOG_FIELDS_TABLE::doApplyBomPreset().
|
inline |
Definition at line 181 of file fields_table_data_model.h.
References m_sortAscending.
Referenced by GetBomSettings(), and DIALOG_FIELDS_TABLE::SetupAllColumnProperties().
|
inline |
Definition at line 180 of file fields_table_data_model.h.
References m_sortColumn.
Referenced by GetBomSettings().
|
inline |
Definition at line 247 of file fields_table_data_model.h.
References m_variantNames.
|
inlineoverridevirtual |
Optional identity-based serialization for the host dialog's Ctrl+Z/Ctrl+Y.
The dialog's generic grid undo snapshots cells by (row, col) position, which is wrong for tables whose rows can regroup/sort/reorder. A table that returns true here is asked to serialize and restore its own state by stable identity instead.
Reimplemented from WX_GRID_TABLE_BASE.
Definition at line 251 of file fields_table_data_model.h.
|
pure virtual |
|
pure virtual |
Implemented in FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >, FIELDS_TABLE_DATA_MODEL< LIB_SYMBOL * >, and FIELDS_TABLE_DATA_MODEL< SCH_REFERENCE >.
Referenced by IsRowEdited().
|
virtual |
Reimplemented in FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >, FIELDS_TABLE_DATA_MODEL< FOOTPRINT_REF >, FIELDS_TABLE_DATA_MODEL< LIB_SYMBOL * >, FIELDS_TABLE_DATA_MODEL< SCH_REFERENCE >, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 483 of file fields_table_data_model.cpp.
References ColIsReadOnly(), and GetNumberCols().
Referenced by CanClearCell(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::IsCellReadOnly().
|
inline |
Definition at line 130 of file fields_table_data_model.h.
References m_edited.
|
inlineoverride |
Definition at line 149 of file fields_table_data_model.h.
|
overridevirtual |
Reimplemented from WX_GRID_TABLE_BASE.
Definition at line 462 of file fields_table_data_model.cpp.
References m_cols.
Referenced by ColIsReadOnly().
| bool FIELDS_TABLE_DATA_MODEL_BASE::IsRowEdited | ( | int | aRow | ) |
Return true if any cell in the row has been edited.
Definition at line 516 of file fields_table_data_model.cpp.
References GetNumberCols(), and IsCellEdited().
| void FIELDS_TABLE_DATA_MODEL_BASE::MoveColumn | ( | int | aCol, |
| int | aNewPos ) |
Definition at line 227 of file fields_table_data_model.cpp.
Referenced by DIALOG_FIELDS_TABLE::OnColMove().
|
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 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().
| void FIELDS_TABLE_DATA_MODEL_BASE::RemoveColumn | ( | int | aCol | ) |
Definition at line 260 of file fields_table_data_model.cpp.
Referenced by DIALOG_FIELDS_TABLE::OnRemoveField().
| void FIELDS_TABLE_DATA_MODEL_BASE::RenameColumn | ( | int | aCol, |
| const wxString & | newName ) |
Definition at line 301 of file fields_table_data_model.cpp.
References commitPendingGridChanges(), m_cols, m_dataStore, and m_edited.
Referenced by DIALOG_FIELDS_TABLE::OnRenameField().
|
overridevirtual |
Reimplemented from WX_GRID_TABLE_BASE.
Definition at line 798 of file fields_table_data_model.cpp.
References m_dataStore, m_edited, and RebuildRows().
|
pure virtual |
|
overridevirtual |
Reimplemented from WX_GRID_TABLE_BASE.
Definition at line 778 of file fields_table_data_model.cpp.
References m_dataStore, and name.
|
inlineoverrideinherited |
Definition at line 66 of file wx_grid.h.
References m_colAttrs.
Referenced by DIALOG_FIELDS_TABLE::SetupColumnProperties().
|
override |
Definition at line 324 of file fields_table_data_model.cpp.
References m_cols.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnViewControlsCellChanged().
|
inline |
Set the current variant name for highlighting purposes.
When a variant is set, cells that differ from the default (non-variant) value will be highlighted.
| aVariantName | The name of the current variant, or empty string for default. |
Definition at line 243 of file fields_table_data_model.h.
References m_currentVariant.
Referenced by BOOST_FIXTURE_TEST_CASE(), DIALOG_FIELDS_TABLE::doApplyBomPreset(), EESCHEMA_JOBS_HANDLER::JobExportBom(), and PCBNEW_JOBS_HANDLER::JobExportBom().
|
inline |
Definition at line 207 of file fields_table_data_model.h.
References m_excludeDNP.
Referenced by ApplyBomPreset().
| void FIELDS_TABLE_DATA_MODEL_BASE::SetFieldsOrder | ( | const std::vector< wxString > & | aNewOrder | ) |
Definition at line 379 of file fields_table_data_model.cpp.
References commitPendingGridChanges(), and m_cols.
Referenced by ApplyBomPreset().
|
inline |
Definition at line 189 of file fields_table_data_model.h.
References m_filter.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnFilterText().
|
inline |
Definition at line 191 of file fields_table_data_model.h.
References m_filterScope.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnFilterScope().
| void FIELDS_TABLE_DATA_MODEL_BASE::SetGroupColumn | ( | int | aCol, |
| bool | aGroup ) |
Definition at line 550 of file fields_table_data_model.cpp.
References ColIsItemNumber(), ColIsQuantity(), and m_cols.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnViewControlsCellChanged().
|
inline |
Definition at line 197 of file fields_table_data_model.h.
References m_groupingEnabled.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::OnGroupSymbolsToggled().
|
inline |
Definition at line 204 of file fields_table_data_model.h.
References m_includeExcluded.
Referenced by ApplyBomPreset(), and DIALOG_FIELDS_TABLE::PreviewRefresh().
|
inline |
Definition at line 194 of file fields_table_data_model.h.
References m_selectionItems.
| void FIELDS_TABLE_DATA_MODEL_BASE::SetShowColumn | ( | int | aCol, |
| bool | aShow ) |
Definition at line 568 of file fields_table_data_model.cpp.
References m_cols.
Referenced by ApplyBomPreset(), DIALOG_FIELDS_TABLE::SetupAllColumnProperties(), and DIALOG_FIELDS_TABLE::ShowHideColumn().
| void FIELDS_TABLE_DATA_MODEL_BASE::SetSorting | ( | int | aCol, |
| bool | aAscending ) |
Definition at line 530 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().
|
inline |
Definition at line 246 of file fields_table_data_model.h.
References m_variantNames.
Referenced by EESCHEMA_JOBS_HANDLER::JobExportBom(), and PCBNEW_JOBS_HANDLER::JobExportBom().
|
static |
Definition at line 128 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 108 of file wx_grid.h.
Referenced by GetAttr(), SetColAttr(), and ~WX_GRID_TABLE_BASE().
|
protected |
Definition at line 304 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(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::ClearCell(), ColIsAttribute(), ColIsComputed(), ColIsFootprint(), ColIsItemNumber(), ColIsItemProperty(), ColIsQuantity(), ColIsReadOnly(), ColIsReference(), ColIsValue(), 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(), IsExpanderColumn(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter(), RenameColumn(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::RevertRow(), SetColLabelValue(), SetFieldsOrder(), SetGroupColumn(), SetShowColumn(), and SetSorting().
|
protected |
Current variant name for highlighting.
Definition at line 300 of file fields_table_data_model.h.
Referenced by GetCurrentVariant(), and SetCurrentVariant().
|
protected |
Definition at line 328 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::clearStoredField(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::ensureStoredFieldPresent(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::getStoredFields(), RenameColumn(), RestoreUndoState(), SerializeUndoState(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::setStoredFieldValue().
|
protected |
Definition at line 287 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(), RenameColumn(), RestoreUndoState(), and FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::RevertRow().
|
protected |
Definition at line 293 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetExcludeDNP(), and SetExcludeDNP().
|
protected |
Definition at line 290 of file fields_table_data_model.h.
Referenced by GetFilter(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter(), and SetFilter().
|
protected |
Definition at line 291 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetFilterScope(), FIELDS_TABLE_DATA_MODEL< ITEM_TYPE >::MatchesFilter(), and SetFilterScope().
|
protected |
Definition at line 292 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetGroupingEnabled(), and SetGroupingEnabled().
|
protected |
Definition at line 294 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetIncludeExcludedFromBOM(), and SetIncludeExcludedFromBOM().
|
protected |
Items included by the user selection scope.
Definition at line 295 of file fields_table_data_model.h.
Referenced by DisableRebuilds(), EnableRebuilds(), and FIELDS_TABLE_DATA_MODEL_BASE().
|
protected |
Definition at line 285 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 298 of file fields_table_data_model.h.
Referenced by ClearSelectionItems(), and SetSelectionItems().
|
protected |
Definition at line 289 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetSortAsc(), and SetSorting().
|
protected |
Definition at line 288 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), GetSortCol(), and SetSorting().
|
protected |
Definition at line 284 of file fields_table_data_model.h.
Referenced by FIELDS_TABLE_DATA_MODEL_BASE(), and ~FIELDS_TABLE_DATA_MODEL_BASE().
|
protected |
Variant names for multi-variant DNP filtering.
Definition at line 301 of file fields_table_data_model.h.
Referenced by GetVariantNames(), and SetVariantNames().
|
static |
Definition at line 127 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().