KiCad PCB EDA Suite
|
Public Member Functions | |
PIN_TABLE_DATA_MODEL (SYMBOL_EDIT_FRAME *aFrame, DIALOG_LIB_EDIT_PIN_TABLE *aPinTable, LIB_SYMBOL *aSymbol) | |
~PIN_TABLE_DATA_MODEL () | |
void | onUnitsChanged (wxCommandEvent &aEvent) |
void | SetUnitFilter (int 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) |
Static Private Member Functions | |
static wxString | StringFromBool (bool aValue) |
static bool | BoolFromString (wxString aValue) |
Private Attributes | |
SYMBOL_EDIT_FRAME * | m_frame |
std::vector< std::vector< SCH_PIN * > > | m_rows |
int | m_unitFilter |
bool | m_edited |
DIALOG_LIB_EDIT_PIN_TABLE * | m_pinTable |
LIB_SYMBOL * | m_symbol |
std::unique_ptr< NUMERIC_EVALUATOR > | m_eval |
std::map< std::pair< std::vector< SCH_PIN * >, int >, wxString > | m_evalOriginal |
Definition at line 81 of file dialog_lib_edit_pin_table.cpp.
|
inline |
Definition at line 84 of file dialog_lib_edit_pin_table.cpp.
References UNITS_PROVIDER::GetUserUnits(), m_eval, m_frame, and onUnitsChanged().
|
inline |
Definition at line 97 of file dialog_lib_edit_pin_table.cpp.
References m_frame, and onUnitsChanged().
|
inline |
Definition at line 632 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnAddRow().
|
inlinestaticprivate |
Definition at line 679 of file dialog_lib_edit_pin_table.cpp.
Referenced by SetValue().
|
inlinestatic |
Definition at line 469 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().
|
inlinestatic |
Definition at line 458 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows().
|
inlineoverride |
Definition at line 115 of file dialog_lib_edit_pin_table.cpp.
References _, COL_DEMORGAN, COL_LENGTH, COL_NAME, COL_NAME_SIZE, COL_NUMBER, COL_NUMBER_SIZE, COL_ORIENTATION, COL_PIN_COUNT, COL_POSX, COL_POSY, COL_SHAPE, COL_TYPE, COL_UNIT, and COL_VISIBLE.
|
inlineoverride |
Definition at line 113 of file dialog_lib_edit_pin_table.cpp.
References COL_COUNT.
|
inlineoverride |
Definition at line 112 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnCellSelected().
|
inline |
Definition at line 660 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnCellSelected().
|
inlinestatic |
Definition at line 158 of file dialog_lib_edit_pin_table.cpp.
References COL_DEMORGAN, COL_LENGTH, COL_NAME, COL_NAME_SIZE, COL_NUMBER, COL_NUMBER_SIZE, COL_ORIENTATION, COL_PIN_COUNT, COL_POSX, COL_POSY, COL_SHAPE, COL_TYPE, COL_UNIT, COL_VISIBLE, DEMORGAN_ALL, DEMORGAN_ALT, DEMORGAN_STD, INDETERMINATE_STATE, LIB_SYMBOL::LetterSubReference(), pin, PinOrientationIndex(), PinOrientationNames(), PinShapeNames(), PinTypeNames(), StringFromBool(), UNITS_PROVIDER::StringFromValue(), and UNITS_ALL.
|
inlineoverride |
Definition at line 142 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 665 of file dialog_lib_edit_pin_table.cpp.
References m_edited.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnClose().
|
inlineoverride |
Definition at line 137 of file dialog_lib_edit_pin_table.cpp.
|
inline |
Definition at line 102 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), and ~PIN_TABLE_DATA_MODEL().
|
inline |
Definition at line 522 of file dialog_lib_edit_pin_table.cpp.
References CANDIDATE, findRow(), getSelectedArea(), grid, m_rows, m_unitFilter, pin, SortPins(), and SortRows().
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnGroupSelected(), DIALOG_LIB_EDIT_PIN_TABLE::OnRebuildRows(), and DIALOG_LIB_EDIT_PIN_TABLE::TransferDataToWindow().
|
inline |
Definition at line 645 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnDeleteRow().
|
inline |
Definition at line 110 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 267 of file dialog_lib_edit_pin_table.cpp.
References DIALOG_LIB_EDIT_PIN_TABLE::AddPin(), BoolFromString(), COL_DEMORGAN, COL_LENGTH, COL_NAME, COL_NAME_SIZE, COL_NUMBER, COL_NUMBER_SIZE, COL_ORIENTATION, COL_POSX, COL_POSY, COL_SHAPE, COL_TYPE, COL_UNIT, COL_VISIBLE, DEMORGAN_ALT, DEMORGAN_STD, SETTINGS_MANAGER::GetAppSettings(), SCH_PIN::GetName(), SCH_PIN::GetOrientation(), SCH_PIN::GetPosition(), PGM_BASE::GetSettingsManager(), SCH_PIN::GetShape(), SCH_PIN::GetType(), SCH_ITEM::GetUnit(), LIB_SYMBOL::GetUnitCount(), UNITS_PROVIDER::GetUserUnits(), INDETERMINATE_STATE, DIALOG_LIB_EDIT_PIN_TABLE::IsDisplayGrouped(), LIB_SYMBOL::LetterSubReference(), m_edited, m_eval, m_evalOriginal, m_frame, m_pinTable, SYMBOL_EDITOR_SETTINGS::m_Repeat, m_rows, m_symbol, EDA_IU_SCALE::MilsToIU(), Pgm(), pin, SYMBOL_EDITOR_SETTINGS::REPEAT::pin_step, PinOrientationCode(), PinOrientationNames(), PinShapeNames(), PinTypeNames(), 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(), UNITS_ALL, UNITS_PROVIDER::ValueFromString(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
inline |
Definition at line 623 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows().
|
inline |
Definition at line 613 of file dialog_lib_edit_pin_table.cpp.
References m_rows.
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::OnColSort(), and RebuildRows().
|
inlinestaticprivate |
Definition at line 671 of file dialog_lib_edit_pin_table.cpp.
Referenced by GetValue().
|
private |
Definition at line 707 of file dialog_lib_edit_pin_table.cpp.
Referenced by IsEdited(), and SetValue().
|
private |
Definition at line 712 of file dialog_lib_edit_pin_table.cpp.
Referenced by PIN_TABLE_DATA_MODEL(), and SetValue().
|
private |
Definition at line 713 of file dialog_lib_edit_pin_table.cpp.
Referenced by GetValue(), and SetValue().
|
private |
Definition at line 699 of file dialog_lib_edit_pin_table.cpp.
Referenced by GetValue(), PIN_TABLE_DATA_MODEL(), SetValue(), and ~PIN_TABLE_DATA_MODEL().
|
private |
Definition at line 709 of file dialog_lib_edit_pin_table.cpp.
Referenced by SetValue().
|
private |
Definition at line 704 of file dialog_lib_edit_pin_table.cpp.
Referenced by AppendRow(), GetNumberRows(), GetRowPins(), GetValue(), RebuildRows(), RemoveRow(), SetValue(), and SortRows().
|
private |
Definition at line 710 of file dialog_lib_edit_pin_table.cpp.
Referenced by SetValue().
|
private |
Definition at line 705 of file dialog_lib_edit_pin_table.cpp.
Referenced by RebuildRows(), and SetUnitFilter().