KiCad PCB EDA Suite
|
This abstract base class mixes any object derived from LIB_TABLE into wxGridTableBase so the result can be used as any type of library table within wxGrid. More...
#include <lib_table_grid.h>
Public Member Functions | |
int | GetNumberRows () override |
int | GetNumberCols () override |
wxString | GetValue (int aRow, int aCol) override |
bool | GetValueAsBool (int aRow, int aCol) override |
void | SetValue (int aRow, int aCol, const wxString &aValue) override |
void | SetValueAsBool (int aRow, int aCol, bool aValue) override |
bool | IsEmptyCell (int aRow, int aCol) override |
bool | InsertRows (size_t aPos=0, size_t aNumRows=1) override |
bool | AppendRows (size_t aNumRows=1) override |
bool | DeleteRows (size_t aPos, size_t aNumRows) override |
wxString | GetColLabelValue (int aCol) override |
bool | ContainsNickname (const wxString &aNickname) |
LIB_TABLE_ROW * | At (size_t aIndex) |
Protected Member Functions | |
virtual LIB_TABLE_ROW * | at (size_t aIndex)=0 |
virtual size_t | size () const =0 |
virtual LIB_TABLE_ROW * | makeNewRow ()=0 |
virtual LIB_TABLE_ROWS_ITER | begin ()=0 |
virtual LIB_TABLE_ROWS_ITER | insert (LIB_TABLE_ROWS_ITER aIterator, LIB_TABLE_ROW *aRow)=0 |
virtual void | push_back (LIB_TABLE_ROW *aRow)=0 |
virtual LIB_TABLE_ROWS_ITER | erase (LIB_TABLE_ROWS_ITER aFirst, LIB_TABLE_ROWS_ITER aLast)=0 |
Friends | |
class | LIB_TABLE_GRID_TRICKS |
This abstract base class mixes any object derived from LIB_TABLE into wxGridTableBase so the result can be used as any type of library table within wxGrid.
Definition at line 50 of file lib_table_grid.h.
|
inlineoverride |
Definition at line 152 of file lib_table_grid.h.
References makeNewRow(), and push_back().
Referenced by DESIGN_BLOCK_GRID_TRICKS::paste_text(), SYMBOL_GRID_TRICKS::paste_text(), and FP_GRID_TRICKS::paste_text().
|
inline |
Definition at line 216 of file lib_table_grid.h.
References at().
Referenced by LIB_TABLE_GRID_TRICKS::doPopupSelection(), and LIB_TABLE_GRID_TRICKS::showPopupMenu().
|
protectedpure virtual |
Implemented in DESIGN_BLOCK_LIB_TABLE_GRID, SYMBOL_LIB_TABLE_GRID, and FP_LIB_TABLE_GRID.
Referenced by At(), ContainsNickname(), GetValue(), GetValueAsBool(), SetValue(), and SetValueAsBool().
|
protectedpure virtual |
Implemented in DESIGN_BLOCK_LIB_TABLE_GRID, SYMBOL_LIB_TABLE_GRID, and FP_LIB_TABLE_GRID.
Referenced by DeleteRows(), and InsertRows().
|
inline |
Definition at line 204 of file lib_table_grid.h.
References at(), LIB_TABLE_ROW::GetNickName(), and size().
|
inlineoverride |
Definition at line 167 of file lib_table_grid.h.
|
protectedpure virtual |
Implemented in DESIGN_BLOCK_LIB_TABLE_GRID, SYMBOL_LIB_TABLE_GRID, and FP_LIB_TABLE_GRID.
Referenced by DeleteRows().
|
inlineoverride |
Definition at line 186 of file lib_table_grid.h.
References _, COL_DESCR, COL_ENABLED, COL_NICKNAME, COL_OPTIONS, COL_TYPE, COL_URI, and COL_VISIBLE.
|
inlineoverride |
Definition at line 60 of file lib_table_grid.h.
References COL_COUNT.
|
inlineoverride |
Definition at line 58 of file lib_table_grid.h.
References size().
Referenced by DESIGN_BLOCK_GRID_TRICKS::optionsEditor(), SYMBOL_GRID_TRICKS::optionsEditor(), FP_GRID_TRICKS::optionsEditor(), DESIGN_BLOCK_GRID_TRICKS::paste_text(), SYMBOL_GRID_TRICKS::paste_text(), and FP_GRID_TRICKS::paste_text().
|
inlineoverride |
Definition at line 62 of file lib_table_grid.h.
References at(), COL_DESCR, COL_ENABLED, COL_NICKNAME, COL_OPTIONS, COL_TYPE, COL_URI, COL_VISIBLE, LIB_TABLE_ROW::GetDescr(), LIB_TABLE_ROW::GetFullURI(), LIB_TABLE_ROW::GetIsEnabled(), LIB_TABLE_ROW::GetIsVisible(), LIB_TABLE_ROW::GetNickName(), LIB_TABLE_ROW::GetOptions(), LIB_TABLE_ROW::GetType(), size(), and UnescapeString().
Referenced by IsEmptyCell(), and LIB_TABLE_GRID_TRICKS::showPopupMenu().
|
inlineoverride |
Definition at line 84 of file lib_table_grid.h.
References at(), COL_ENABLED, COL_VISIBLE, LIB_TABLE_ROW::GetIsEnabled(), LIB_TABLE_ROW::GetIsVisible(), and size().
Referenced by LIB_TABLE_GRID_TRICKS::showPopupMenu().
|
protectedpure virtual |
Implemented in DESIGN_BLOCK_LIB_TABLE_GRID, SYMBOL_LIB_TABLE_GRID, and FP_LIB_TABLE_GRID.
Referenced by InsertRows().
|
inlineoverride |
Definition at line 126 of file lib_table_grid.h.
References begin(), insert(), makeNewRow(), and size().
|
inlineoverride |
Definition at line 121 of file lib_table_grid.h.
References GetValue().
|
protectedpure virtual |
Implemented in DESIGN_BLOCK_LIB_TABLE_GRID, SYMBOL_LIB_TABLE_GRID, and FP_LIB_TABLE_GRID.
Referenced by AppendRows(), and InsertRows().
|
protectedpure virtual |
Implemented in DESIGN_BLOCK_LIB_TABLE_GRID, SYMBOL_LIB_TABLE_GRID, and FP_LIB_TABLE_GRID.
Referenced by AppendRows().
|
inlineoverride |
Definition at line 94 of file lib_table_grid.h.
References at(), COL_DESCR, COL_ENABLED, COL_NICKNAME, COL_OPTIONS, COL_TYPE, COL_URI, COL_VISIBLE, CTX_LIBID, EscapeString(), LIB_TABLE_ROW::SetDescr(), LIB_TABLE_ROW::SetEnabled(), LIB_TABLE_ROW::SetFullURI(), LIB_TABLE_ROW::SetNickName(), LIB_TABLE_ROW::SetOptions(), LIB_TABLE_ROW::SetType(), LIB_TABLE_ROW::SetVisible(), and size().
Referenced by DESIGN_BLOCK_LIB_TABLE_GRID::SetValue(), SYMBOL_LIB_TABLE_GRID::SetValue(), and FP_LIB_TABLE_GRID::SetValue().
|
inlineoverride |
Definition at line 113 of file lib_table_grid.h.
References at(), COL_ENABLED, COL_VISIBLE, LIB_TABLE_ROW::SetEnabled(), LIB_TABLE_ROW::SetVisible(), and size().
Referenced by LIB_TABLE_GRID_TRICKS::doPopupSelection().
|
protectedpure virtual |
Implemented in DESIGN_BLOCK_LIB_TABLE_GRID, SYMBOL_LIB_TABLE_GRID, and FP_LIB_TABLE_GRID.
Referenced by ContainsNickname(), DeleteRows(), GetNumberRows(), GetValue(), GetValueAsBool(), InsertRows(), SetValue(), and SetValueAsBool().
|
friend |
Definition at line 52 of file lib_table_grid.h.