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 () |
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) |
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 370 of file dialog_lib_edit_pin_table.cpp.
|
inline |
Definition at line 373 of file dialog_lib_edit_pin_table.cpp.
References UNITS_PROVIDER::GetUserUnits(), m_eval, m_frame, and onUnitsChanged().
|
inline |
Definition at line 391 of file dialog_lib_edit_pin_table.cpp.
References m_frame, and onUnitsChanged().
|
inline |
Definition at line 803 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnAddRow().
|
inlinestatic |
Definition at line 600 of file dialog_lib_edit_pin_table.cpp.
References COL_DEMORGAN, COL_LENGTH, COL_NAME, COL_NAME_SIZE, COL_NUMBER, COL_NUMBER_SIZE, COL_POSX, COL_POSY, COL_VISIBLE, PIN_NUMBERS::Compare(), GetValue(), res, StrNumCmp(), and UNITS_PROVIDER::ValueFromString().
|
protectedinherited |
Definition at line 45 of file wx_grid.cpp.
Referenced by SCH_PIN_TABLE_DATA_MODEL::GetAttr(), FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), FIELDS_GRID_TABLE::GetAttr(), PRIVATE_LAYERS_GRID_TABLE::GetAttr(), and PCB_FIELDS_GRID_TABLE::GetAttr().
|
inlinestatic |
Definition at line 589 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows().
|
inlineoverride |
Definition at line 411 of file dialog_lib_edit_pin_table.cpp.
References GetPinTableColLabel().
|
inlineoverride |
Definition at line 409 of file dialog_lib_edit_pin_table.cpp.
References COL_COUNT.
|
inlineoverride |
Definition at line 408 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnAddRow(), DIALOG_LIB_EDIT_PIN_TABLE::OnCellSelected(), and DIALOG_LIB_EDIT_PIN_TABLE::OnExportButtonClick().
|
inline |
Definition at line 831 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnCellSelected(), and DIALOG_LIB_EDIT_PIN_TABLE::OnExportButtonClick().
|
inlinestatic |
Definition at line 437 of file dialog_lib_edit_pin_table.cpp.
References COL_NUMBER, COL_PIN_COUNT, PIN_INFO_FORMATTER::Format(), INDETERMINATE_STATE, pin, and PIN_INFO_FORMATTER::ZERO_ONE.
|
inlineoverride |
Definition at line 421 of file dialog_lib_edit_pin_table.cpp.
References GetValue(), grid, m_evalOriginal, m_frame, and m_rows.
Referenced by compare(), and GetValue().
|
inline |
Definition at line 836 of file dialog_lib_edit_pin_table.cpp.
References m_edited.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnClose().
|
inlineoverride |
Definition at line 416 of file dialog_lib_edit_pin_table.cpp.
|
inline |
Definition at line 396 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), and ~PIN_TABLE_DATA_MODEL().
|
inline |
Definition at line 653 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().
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnGroupSelected(), DIALOG_LIB_EDIT_PIN_TABLE::OnImportButtonClick(), DIALOG_LIB_EDIT_PIN_TABLE::OnRebuildRows(), and DIALOG_LIB_EDIT_PIN_TABLE::TransferDataToWindow().
|
inline |
Definition at line 816 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnDeleteRow().
|
inline |
Definition at line 405 of file dialog_lib_edit_pin_table.cpp.
References m_bodyStyleFilter.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnFilterCheckBox(), and DIALOG_LIB_EDIT_PIN_TABLE::OnFilterChoice().
|
inline |
Definition at line 406 of file dialog_lib_edit_pin_table.cpp.
References m_filterBySelection.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnFilterCheckBox().
|
inline |
Definition at line 404 of file dialog_lib_edit_pin_table.cpp.
References m_unitFilter.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnFilterCheckBox(), and DIALOG_LIB_EDIT_PIN_TABLE::OnFilterChoice().
|
inlineoverride |
Definition at line 480 of file dialog_lib_edit_pin_table.cpp.
References DIALOG_LIB_EDIT_PIN_TABLE::AddPin(), COL_LENGTH, COL_NAME_SIZE, COL_NUMBER, COL_NUMBER_SIZE, COL_POSX, COL_POSY, SCH_PIN::GetName(), SCH_PIN::GetOrientation(), SCH_PIN::GetPosition(), SCH_PIN::GetShape(), SCH_PIN::GetType(), SCH_ITEM::GetUnit(), UNITS_PROVIDER::GetUserUnits(), INDETERMINATE_STATE, DIALOG_LIB_EDIT_PIN_TABLE::IsDisplayGrouped(), m_edited, m_eval, m_evalOriginal, m_frame, m_pinTable, m_rows, m_symbol, EDA_IU_SCALE::MilsToIU(), pin, DIALOG_LIB_EDIT_PIN_TABLE::RemovePin(), 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 794 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows().
|
inline |
Definition at line 784 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnColSort(), and RebuildRows().
|
private |
Definition at line 849 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows(), and SetBodyStyleFilter().
|
private |
Definition at line 852 of file dialog_lib_edit_pin_table.cpp.
Referenced by IsEdited(), and SetValue().
|
private |
Definition at line 860 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), and SetValue().
|
private |
Definition at line 861 of file dialog_lib_edit_pin_table.cpp.
Referenced by GetValue(), and SetValue().
|
private |
Definition at line 850 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows(), and SetFilterBySelection().
|
private |
Definition at line 842 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 858 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows().
|
private |
Definition at line 854 of file dialog_lib_edit_pin_table.cpp.
Referenced by SetValue().
|
private |
Definition at line 847 of file dialog_lib_edit_pin_table.cpp.
Referenced by AppendRow(), GetNumberRows(), GetRowPins(), GetValue(), RebuildRows(), RemoveRow(), SetValue(), and SortRows().
|
private |
Definition at line 855 of file dialog_lib_edit_pin_table.cpp.
Referenced by SetValue().
|
private |
Definition at line 848 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows(), and SetUnitFilter().