KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_PIN_TABLE_DATA_MODEL Class Reference
Inheritance diagram for SCH_PIN_TABLE_DATA_MODEL:
WX_GRID_TABLE_BASE

Public Member Functions

 SCH_PIN_TABLE_DATA_MODEL ()
 
 ~SCH_PIN_TABLE_DATA_MODEL ()
 
void BuildAttrs ()
 
int GetNumberRows () override
 
int GetNumberCols () override
 
wxString GetColLabelValue (int aCol) override
 
bool IsEmptyCell (int row, int col) override
 
bool CanSetValueAs (int aRow, int aCol, const wxString &aTypeName) override
 
wxString GetValue (int aRow, int aCol) override
 
wxGridCellAttr * GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override
 
void SetValue (int aRow, int aCol, const wxString &aValue) override
 
void SortRows (int aSortCol, bool ascending)
 
void SetColAttr (wxGridCellAttr *aAttr, int aCol) 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 SCH_PIN &aPin, int aCol)
 
static bool compare (const SCH_PIN &lhs, const SCH_PIN &rhs, int sortCol, bool ascending)
 

Public Attributes

T elements
 STL member.
 

Protected Member Functions

wxGridCellAttr * enhanceAttr (wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind)
 

Protected Attributes

std::vector< wxGridCellAttr * > m_nameAttrs
 
wxGridCellAttr * m_readOnlyAttr
 
wxGridCellAttr * m_typeAttr
 
wxGridCellAttr * m_shapeAttr
 
std::map< int, wxGridCellAttr * > m_colAttrs
 

Detailed Description

Definition at line 66 of file dialog_symbol_properties.cpp.

Constructor & Destructor Documentation

◆ SCH_PIN_TABLE_DATA_MODEL()

SCH_PIN_TABLE_DATA_MODEL::SCH_PIN_TABLE_DATA_MODEL ( )
inline

Definition at line 69 of file dialog_symbol_properties.cpp.

References m_readOnlyAttr, m_shapeAttr, and m_typeAttr.

◆ ~SCH_PIN_TABLE_DATA_MODEL()

SCH_PIN_TABLE_DATA_MODEL::~SCH_PIN_TABLE_DATA_MODEL ( )
inline

Definition at line 76 of file dialog_symbol_properties.cpp.

References m_nameAttrs, m_readOnlyAttr, m_shapeAttr, and m_typeAttr.

Member Function Documentation

◆ BuildAttrs()

◆ CanSetValueAs()

bool SCH_PIN_TABLE_DATA_MODEL::CanSetValueAs ( int aRow,
int aCol,
const wxString & aTypeName )
inlineoverride

Definition at line 161 of file dialog_symbol_properties.cpp.

◆ Clear()

void WX_GRID_TABLE_BASE::Clear ( )
inlineoverrideinherited

Definition at line 89 of file wx_grid.h.

◆ compare()

static bool SCH_PIN_TABLE_DATA_MODEL::compare ( const SCH_PIN & lhs,
const SCH_PIN & rhs,
int sortCol,
bool ascending )
inlinestatic

◆ enhanceAttr()

wxGridCellAttr * WX_GRID_TABLE_BASE::enhanceAttr ( wxGridCellAttr * aInputAttr,
int aRow,
int aCol,
wxGridCellAttr::wxAttrKind aKind )
protectedinherited

◆ GetAttr()

wxGridCellAttr * SCH_PIN_TABLE_DATA_MODEL::GetAttr ( int aRow,
int aCol,
wxGridCellAttr::wxAttrKind aKind )
inlineoverride

◆ GetColLabelValue()

wxString SCH_PIN_TABLE_DATA_MODEL::GetColLabelValue ( int aCol)
inlineoverride

Definition at line 143 of file dialog_symbol_properties.cpp.

References _, COL_ALT_NAME, COL_BASE_NAME, COL_NUMBER, COL_SHAPE, and COL_TYPE.

◆ GetGroupType()

virtual GROUP_TYPE WX_GRID_TABLE_BASE::GetGroupType ( int aRow) const
inlinevirtualinherited

Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.

Definition at line 76 of file wx_grid.h.

References GROUP_SINGLETON, and GROUP_TYPE.

◆ GetNumberCols()

int SCH_PIN_TABLE_DATA_MODEL::GetNumberCols ( )
inlineoverride

Definition at line 141 of file dialog_symbol_properties.cpp.

References COL_COUNT.

◆ GetNumberRows()

int SCH_PIN_TABLE_DATA_MODEL::GetNumberRows ( )
inlineoverride

Definition at line 140 of file dialog_symbol_properties.cpp.

◆ GetValue() [1/2]

◆ GetValue() [2/2]

wxString SCH_PIN_TABLE_DATA_MODEL::GetValue ( int aRow,
int aCol )
inlineoverride

Definition at line 167 of file dialog_symbol_properties.cpp.

References GetValue().

Referenced by compare(), and GetValue().

◆ HasUndoStateSerialization()

virtual bool WX_GRID_TABLE_BASE::HasUndoStateSerialization ( ) const
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.

Definition at line 85 of file wx_grid.h.

◆ IsEmptyCell()

bool SCH_PIN_TABLE_DATA_MODEL::IsEmptyCell ( int row,
int col )
inlineoverride

Definition at line 156 of file dialog_symbol_properties.cpp.

◆ IsExpanderColumn()

virtual bool WX_GRID_TABLE_BASE::IsExpanderColumn ( int aCol) const
inlinevirtualinherited

Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.

Definition at line 75 of file wx_grid.h.

◆ RestoreUndoState()

virtual void WX_GRID_TABLE_BASE::RestoreUndoState ( const wxString & aState)
inlinevirtualinherited

Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL.

Definition at line 87 of file wx_grid.h.

◆ SerializeUndoState()

virtual wxString WX_GRID_TABLE_BASE::SerializeUndoState ( ) const
inlinevirtualinherited

Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL.

Definition at line 86 of file wx_grid.h.

◆ SetColAttr()

void WX_GRID_TABLE_BASE::SetColAttr ( wxGridCellAttr * aAttr,
int aCol )
inlineoverrideinherited

Definition at line 58 of file wx_grid.h.

References m_colAttrs.

◆ SetValue()

void SCH_PIN_TABLE_DATA_MODEL::SetValue ( int aRow,
int aCol,
const wxString & aValue )
inlineoverride

Definition at line 221 of file dialog_symbol_properties.cpp.

References COL_ALT_NAME, COL_BASE_NAME, COL_NUMBER, COL_SHAPE, COL_TYPE, and pin.

◆ SortRows()

void SCH_PIN_TABLE_DATA_MODEL::SortRows ( int aSortCol,
bool ascending )
inline

Definition at line 291 of file dialog_symbol_properties.cpp.

References compare(), and end.

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.

◆ m_colAttrs

std::map<int, wxGridCellAttr*> WX_GRID_TABLE_BASE::m_colAttrs
protectedinherited

◆ m_nameAttrs

std::vector<wxGridCellAttr*> SCH_PIN_TABLE_DATA_MODEL::m_nameAttrs
protected

Definition at line 301 of file dialog_symbol_properties.cpp.

Referenced by BuildAttrs(), GetAttr(), and ~SCH_PIN_TABLE_DATA_MODEL().

◆ m_readOnlyAttr

wxGridCellAttr* SCH_PIN_TABLE_DATA_MODEL::m_readOnlyAttr
protected

◆ m_shapeAttr

wxGridCellAttr* SCH_PIN_TABLE_DATA_MODEL::m_shapeAttr
protected

◆ m_typeAttr

wxGridCellAttr* SCH_PIN_TABLE_DATA_MODEL::m_typeAttr
protected

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