KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DESIGN_BLOCK_LIB_TABLE_GRID Class Reference

This class builds a wxGridTableBase by wrapping an #DESIGN_BLOCK_LIB_TABLE object. More...

Inheritance diagram for DESIGN_BLOCK_LIB_TABLE_GRID:
LIB_TABLE_GRID

Public Member Functions

 DESIGN_BLOCK_LIB_TABLE_GRID (const LIBRARY_TABLE &aTableToEdit)
 
void SetValue (int aRow, int aCol, const wxString &aValue) override
 
int GetNumberRows () override
 
int GetNumberCols () override
 
wxString GetValue (int aRow, int aCol) override
 
bool CanGetValueAs (int aRow, int aCol, const wxString &aTypeName) override
 
bool GetValueAsBool (int aRow, int aCol) 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)
 
LIBRARY_TABLE_ROWAt (size_t aIndex)
 
LIBRARY_TABLETable ()
 
LIBRARY_MANAGER_ADAPTERAdapter () const
 

Protected Member Functions

virtual LIBRARY_TABLE_ROWat (size_t aIndex)
 
virtual size_t size () const
 
virtual LIBRARY_TABLE_ROW makeNewRow ()
 
virtual LIBRARY_TABLE_ROWS_ITER begin ()
 
virtual LIBRARY_TABLE_ROWS_ITER insert (LIBRARY_TABLE_ROWS_ITER aIterator, const LIBRARY_TABLE_ROW &aRow)
 
virtual void push_back (const LIBRARY_TABLE_ROW &aRow)
 
virtual LIBRARY_TABLE_ROWS_ITER erase (LIBRARY_TABLE_ROWS_ITER aFirst, LIBRARY_TABLE_ROWS_ITER aLast)
 

Protected Attributes

LIBRARY_TABLE m_table
 Working copy of a table.
 
LIBRARY_MANAGER_ADAPTERm_adapter
 Handle to the adapter for the type of table this grid represents (may be null)
 

Friends

class PANEL_DESIGN_BLOCK_LIB_TABLE
 
class DESIGN_BLOCK_GRID_TRICKS
 

Detailed Description

This class builds a wxGridTableBase by wrapping an #DESIGN_BLOCK_LIB_TABLE object.

Definition at line 148 of file panel_design_block_lib_table.cpp.

Constructor & Destructor Documentation

◆ DESIGN_BLOCK_LIB_TABLE_GRID()

DESIGN_BLOCK_LIB_TABLE_GRID::DESIGN_BLOCK_LIB_TABLE_GRID ( const LIBRARY_TABLE & aTableToEdit)
inline

Member Function Documentation

◆ Adapter()

LIBRARY_MANAGER_ADAPTER * LIB_TABLE_GRID::Adapter ( ) const
inlineinherited

Definition at line 96 of file lib_table_grid.h.

References m_adapter.

Referenced by LIB_TABLE_GRID_TRICKS::showPopupMenu().

◆ AppendRows()

bool LIB_TABLE_GRID::AppendRows ( size_t aNumRows = 1)
overrideinherited

Definition at line 140 of file lib_table_grid.cpp.

References makeNewRow(), and push_back().

◆ At()

LIBRARY_TABLE_ROW & LIB_TABLE_GRID::At ( size_t aIndex)
inlineinherited

Definition at line 89 of file lib_table_grid.h.

References at().

Referenced by LIB_TABLE_GRID_TRICKS::doPopupSelection().

◆ at()

◆ begin()

LIBRARY_TABLE_ROWS_ITER LIB_TABLE_GRID::begin ( )
protectedvirtualinherited

Definition at line 229 of file lib_table_grid.cpp.

References m_table.

Referenced by DeleteRows(), and InsertRows().

◆ CanGetValueAs()

bool LIB_TABLE_GRID::CanGetValueAs ( int aRow,
int aCol,
const wxString & aTypeName )
overrideinherited

Definition at line 51 of file lib_table_grid.cpp.

References COL_ENABLED, COL_VISIBLE, and size().

◆ ContainsNickname()

bool LIB_TABLE_GRID::ContainsNickname ( const wxString & aNickname)
inherited

Definition at line 198 of file lib_table_grid.cpp.

References at(), LIBRARY_TABLE_ROW::Nickname(), and size().

◆ DeleteRows()

bool LIB_TABLE_GRID::DeleteRows ( size_t aPos,
size_t aNumRows )
overrideinherited

Definition at line 156 of file lib_table_grid.cpp.

References begin(), erase(), and size().

◆ erase()

LIBRARY_TABLE_ROWS_ITER LIB_TABLE_GRID::erase ( LIBRARY_TABLE_ROWS_ITER aFirst,
LIBRARY_TABLE_ROWS_ITER aLast )
protectedvirtualinherited

Definition at line 247 of file lib_table_grid.cpp.

References m_table.

Referenced by DeleteRows().

◆ GetColLabelValue()

wxString LIB_TABLE_GRID::GetColLabelValue ( int aCol)
overrideinherited

◆ GetNumberCols()

int LIB_TABLE_GRID::GetNumberCols ( )
inlineoverrideinherited

Definition at line 62 of file lib_table_grid.h.

References COL_COUNT.

◆ GetNumberRows()

int LIB_TABLE_GRID::GetNumberRows ( )
inlineoverrideinherited

Definition at line 60 of file lib_table_grid.h.

References size().

Referenced by FP_GRID_TRICKS::optionsEditor().

◆ GetValue()

◆ GetValueAsBool()

bool LIB_TABLE_GRID::GetValueAsBool ( int aRow,
int aCol )
overrideinherited

◆ insert()

LIBRARY_TABLE_ROWS_ITER LIB_TABLE_GRID::insert ( LIBRARY_TABLE_ROWS_ITER aIterator,
const LIBRARY_TABLE_ROW & aRow )
protectedvirtualinherited

Definition at line 235 of file lib_table_grid.cpp.

References m_table.

Referenced by InsertRows().

◆ InsertRows()

bool LIB_TABLE_GRID::InsertRows ( size_t aPos = 0,
size_t aNumRows = 1 )
overrideinherited

Definition at line 119 of file lib_table_grid.cpp.

References begin(), insert(), makeNewRow(), and size().

◆ IsEmptyCell()

bool LIB_TABLE_GRID::IsEmptyCell ( int aRow,
int aCol )
inlineoverrideinherited

Definition at line 74 of file lib_table_grid.h.

References GetValue().

◆ makeNewRow()

LIBRARY_TABLE_ROW LIB_TABLE_GRID::makeNewRow ( )
protectedvirtualinherited

Definition at line 223 of file lib_table_grid.cpp.

References m_table.

Referenced by AppendRows(), and InsertRows().

◆ push_back()

void LIB_TABLE_GRID::push_back ( const LIBRARY_TABLE_ROW & aRow)
protectedvirtualinherited

Definition at line 241 of file lib_table_grid.cpp.

References m_table.

Referenced by AppendRows().

◆ SetValue()

◆ SetValueAsBool()

void LIB_TABLE_GRID::SetValueAsBool ( int aRow,
int aCol,
bool aValue )
overrideinherited

◆ size()

◆ Table()

Friends And Related Symbol Documentation

◆ DESIGN_BLOCK_GRID_TRICKS

friend class DESIGN_BLOCK_GRID_TRICKS
friend

Definition at line 151 of file panel_design_block_lib_table.cpp.

References DESIGN_BLOCK_GRID_TRICKS.

Referenced by DESIGN_BLOCK_GRID_TRICKS.

◆ PANEL_DESIGN_BLOCK_LIB_TABLE

friend class PANEL_DESIGN_BLOCK_LIB_TABLE
friend

Member Data Documentation

◆ m_adapter

LIBRARY_MANAGER_ADAPTER* LIB_TABLE_GRID::m_adapter
protectedinherited

Handle to the adapter for the type of table this grid represents (may be null)

Definition at line 118 of file lib_table_grid.h.

Referenced by Adapter(), and LIB_TABLE_GRID().

◆ m_table

LIBRARY_TABLE LIB_TABLE_GRID::m_table
protectedinherited

Working copy of a table.

Definition at line 115 of file lib_table_grid.h.

Referenced by at(), begin(), erase(), insert(), LIB_TABLE_GRID(), makeNewRow(), push_back(), size(), and Table().


The documentation for this class was generated from the following file: