|
KiCad PCB EDA Suite
|
Public Member Functions | |
| PIN_TABLE_DATA_MODEL (SYMBOL_EDIT_FRAME *aFrame, DIALOG_LIB_EDIT_PIN_TABLE *aPinTable, LIB_SYMBOL *aSymbol, const std::vector< SCH_PIN * > &aOrigSelectedPins) | |
| ~PIN_TABLE_DATA_MODEL () | |
| void | onUnitsChanged (wxCommandEvent &aEvent) |
| void | SetUnitFilter (int aFilter) |
| void | SetBodyStyleFilter (int aFilter) |
| void | SetFilterBySelection (bool aFilter) |
| int | GetNumberRows () override |
| int | GetNumberCols () override |
| wxString | GetColLabelValue (int aCol) override |
| bool | IsEmptyCell (int row, int col) override |
| wxString | GetValue (int aRow, int aCol) override |
| void | SetValue (int aRow, int aCol, const wxString &aValue) override |
| void | RebuildRows (const std::vector< SCH_PIN * > &aPins, bool groupByName, bool groupBySelection) |
| void | SortRows (int aSortCol, bool ascending) |
| void | SortPins (std::vector< SCH_PIN * > &aRow) |
| void | AppendRow (SCH_PIN *aPin) |
| std::vector< SCH_PIN * > | RemoveRow (int aRow) |
| std::vector< SCH_PIN * > | GetRowPins (int aRow) |
| bool | IsEdited () |
| void | SetColAttr (wxGridCellAttr *aAttr, int aCol) override |
| wxGridCellAttr * | GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override |
| virtual bool | IsExpanderColumn (int aCol) const |
| virtual GROUP_TYPE | GetGroupType (int aRow) const |
| virtual bool | HasUndoStateSerialization () const |
| Optional identity-based serialization for the host dialog's Ctrl+Z/Ctrl+Y. | |
| virtual wxString | SerializeUndoState () const |
| virtual void | RestoreUndoState (const wxString &aState) |
| void | Clear () override |
Static Public Member Functions | |
| static wxString | GetValue (const std::vector< SCH_PIN * > &pins, int aCol, EDA_DRAW_FRAME *aParentFrame) |
| static int | findRow (const std::vector< std::vector< SCH_PIN * > > &aRowSet, const wxString &aName) |
| static bool | compare (const std::vector< SCH_PIN * > &lhs, const std::vector< SCH_PIN * > &rhs, int sortCol, bool ascending, EDA_DRAW_FRAME *parentFrame) |
Protected Member Functions | |
| wxGridCellAttr * | enhanceAttr (wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) |
Protected Attributes | |
| std::map< int, wxGridCellAttr * > | m_colAttrs |
Private Attributes | |
| SYMBOL_EDIT_FRAME * | m_frame |
| std::vector< std::vector< SCH_PIN * > > | m_rows |
| int | m_unitFilter |
| int | m_bodyStyleFilter |
| bool | m_filterBySelection |
| bool | m_edited |
| DIALOG_LIB_EDIT_PIN_TABLE * | m_pinTable |
| LIB_SYMBOL * | m_symbol |
| const std::vector< SCH_PIN * > & | m_origSelectedPins |
| The pins in the symbol that are selected at dialog start. | |
| std::unique_ptr< NUMERIC_EVALUATOR > | m_eval |
| std::map< std::pair< std::vector< SCH_PIN * >, int >, wxString > | m_evalOriginal |
Definition at line 389 of file dialog_lib_edit_pin_table.cpp.
|
inline |
Definition at line 392 of file dialog_lib_edit_pin_table.cpp.
References m_bodyStyleFilter, m_edited, m_eval, m_filterBySelection, m_frame, m_origSelectedPins, m_pinTable, m_symbol, m_unitFilter, and onUnitsChanged().
|
inline |
Definition at line 410 of file dialog_lib_edit_pin_table.cpp.
References m_frame, and onUnitsChanged().
|
inline |
Definition at line 815 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
|
inlinestatic |
Definition at line 615 of file dialog_lib_edit_pin_table.cpp.
References COL_BODY_STYLE, COL_LENGTH, COL_NAME, COL_NAME_SIZE, COL_NUMBER, COL_NUMBER_SIZE, COL_POSX, COL_POSY, COL_UNIT, COL_VISIBLE, PIN_NUMBERS::Compare(), GetValue(), res, StrNumCmp(), and UNITS_PROVIDER::ValueFromString().
|
protectedinherited |
Definition at line 47 of file wx_grid.cpp.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), 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().
|
inlinestatic |
Definition at line 604 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows().
|
inlineoverrideinherited |
Definition at line 68 of file wx_grid.h.
References enhanceAttr(), and m_colAttrs.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inlineoverride |
Definition at line 430 of file dialog_lib_edit_pin_table.cpp.
References GetPinTableColLabel().
|
inlinevirtualinherited |
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 80 of file wx_grid.h.
References GROUP_SINGLETON, and GROUP_TYPE.
|
inlineoverride |
Definition at line 428 of file dialog_lib_edit_pin_table.cpp.
References COL_COUNT.
|
inlineoverride |
Definition at line 427 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
|
inline |
Definition at line 843 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
|
inlinestatic |
Definition at line 455 of file dialog_lib_edit_pin_table.cpp.
References COL_NUMBER, COL_PIN_COUNT, PIN_INFO_FORMATTER::Format(), INDETERMINATE_STATE, pin, reporter, and PIN_INFO_FORMATTER::ZERO_ONE.
|
inlineoverride |
Definition at line 440 of file dialog_lib_edit_pin_table.cpp.
References GetValue(), grid, m_evalOriginal, m_frame, and m_rows.
Referenced by compare(), and GetValue().
|
inlinevirtualinherited |
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 in FIELDS_EDITOR_GRID_DATA_MODEL.
|
inline |
Definition at line 848 of file dialog_lib_edit_pin_table.cpp.
References m_edited.
|
inlineoverride |
Definition at line 435 of file dialog_lib_edit_pin_table.cpp.
|
inlinevirtualinherited |
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
|
inline |
Definition at line 415 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), and ~PIN_TABLE_DATA_MODEL().
|
inline |
Definition at line 671 of file dialog_lib_edit_pin_table.cpp.
References CANDIDATE, findRow(), getSelectedArea(), grid, m_bodyStyleFilter, m_filterBySelection, m_origSelectedPins, m_rows, m_unitFilter, pin, SortPins(), and SortRows().
|
inline |
Definition at line 828 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
|
inlinevirtualinherited |
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL.
|
inlinevirtualinherited |
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL.
|
inline |
Definition at line 424 of file dialog_lib_edit_pin_table.cpp.
References m_bodyStyleFilter.
|
inlineoverrideinherited |
Definition at line 62 of file wx_grid.h.
References m_colAttrs.
|
inline |
Definition at line 425 of file dialog_lib_edit_pin_table.cpp.
References m_filterBySelection.
|
inline |
Definition at line 423 of file dialog_lib_edit_pin_table.cpp.
References m_unitFilter.
|
inlineoverride |
Definition at line 497 of file dialog_lib_edit_pin_table.cpp.
References COL_LENGTH, COL_NAME_SIZE, COL_NUMBER, COL_NUMBER_SIZE, COL_POSX, COL_POSY, GetAppSettings(), SCH_PIN::GetName(), SCH_PIN::GetOrientation(), SCH_PIN::GetPosition(), SCH_PIN::GetShape(), SCH_PIN::GetType(), SCH_ITEM::GetUnit(), INDETERMINATE_STATE, m_edited, m_eval, m_evalOriginal, m_frame, m_pinTable, m_rows, m_symbol, pin, PIN_LEFT, PIN_RIGHT, reporter, schIUScale, SCH_PIN::SetName(), SCH_PIN::SetNumber(), SCH_PIN::SetOrientation(), SCH_PIN::SetPosition(), SCH_PIN::SetShape(), SCH_PIN::SetType(), SCH_ITEM::SetUnit(), PIN_INFO_FORMATTER::UpdatePin(), VECTOR2< T >::x, VECTOR2< T >::y, and PIN_INFO_FORMATTER::ZERO_ONE.
|
inline |
Definition at line 806 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows().
|
inline |
Definition at line 796 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by RebuildRows().
|
private |
Definition at line 861 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), RebuildRows(), and SetBodyStyleFilter().
|
protectedinherited |
Definition at line 104 of file wx_grid.h.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), GetAttr(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::RemoveColumn(), SetColAttr(), and ~WX_GRID_TABLE_BASE().
|
private |
Definition at line 864 of file dialog_lib_edit_pin_table.cpp.
Referenced by IsEdited(), PIN_TABLE_DATA_MODEL(), and SetValue().
|
private |
Definition at line 872 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), and SetValue().
|
private |
Definition at line 873 of file dialog_lib_edit_pin_table.cpp.
Referenced by GetValue(), and SetValue().
|
private |
Definition at line 862 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), RebuildRows(), and SetFilterBySelection().
|
private |
Definition at line 854 of file dialog_lib_edit_pin_table.cpp.
Referenced by GetValue(), PIN_TABLE_DATA_MODEL(), SetValue(), and ~PIN_TABLE_DATA_MODEL().
|
private |
The pins in the symbol that are selected at dialog start.
Definition at line 870 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), and RebuildRows().
|
private |
Definition at line 866 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), and SetValue().
|
private |
Definition at line 859 of file dialog_lib_edit_pin_table.cpp.
Referenced by AppendRow(), GetNumberRows(), GetRowPins(), GetValue(), RebuildRows(), RemoveRow(), SetValue(), and SortRows().
|
private |
Definition at line 867 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), and SetValue().
|
private |
Definition at line 860 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), RebuildRows(), and SetUnitFilter().