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

Public Member Functions

 ALT_PIN_DATA_MODEL (EDA_UNITS aUserUnits)
 
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 AppendRow (const SCH_PIN::ALT &aAlt)
 
void RemoveRow (int aRow)
 
void SetColAttr (wxGridCellAttr *aAttr, int aCol) override
 
wxGridCellAttr * GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override
 
virtual bool IsExpanderColumn (int aCol) const
 
virtual ROW_STATE GetRowState (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
 

Public Attributes

T elements
 STL member.
 

Protected Member Functions

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

Protected Attributes

std::map< int, wxGridCellAttr * > m_colAttrs
 

Detailed Description

Definition at line 40 of file dialog_pin_properties.cpp.

Constructor & Destructor Documentation

◆ ALT_PIN_DATA_MODEL()

ALT_PIN_DATA_MODEL::ALT_PIN_DATA_MODEL ( EDA_UNITS aUserUnits)
inline

Definition at line 43 of file dialog_pin_properties.cpp.

Member Function Documentation

◆ AppendRow()

void ALT_PIN_DATA_MODEL::AppendRow ( const SCH_PIN::ALT & aAlt)
inline

Definition at line 103 of file dialog_pin_properties.cpp.

◆ Clear()

void WX_GRID_TABLE_BASE::Clear ( )
inlineoverrideinherited

Definition at line 97 of file wx_grid.h.

◆ enhanceAttr()

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

◆ GetAttr()

wxGridCellAttr * WX_GRID_TABLE_BASE::GetAttr ( int aRow,
int aCol,
wxGridCellAttr::wxAttrKind aKind )
inlineoverrideinherited

◆ GetColLabelValue()

wxString ALT_PIN_DATA_MODEL::GetColLabelValue ( int aCol)
inlineoverride

Definition at line 50 of file dialog_pin_properties.cpp.

References _, COL_NAME, COL_SHAPE, and COL_TYPE.

◆ GetNumberCols()

int ALT_PIN_DATA_MODEL::GetNumberCols ( )
inlineoverride

Definition at line 48 of file dialog_pin_properties.cpp.

References COL_COUNT.

◆ GetNumberRows()

int ALT_PIN_DATA_MODEL::GetNumberRows ( )
inlineoverride

Definition at line 47 of file dialog_pin_properties.cpp.

◆ GetRowState()

virtual ROW_STATE WX_GRID_TABLE_BASE::GetRowState ( int aRow) const
inlinevirtualinherited

◆ GetValue()

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

Definition at line 66 of file dialog_pin_properties.cpp.

References COL_NAME, COL_SHAPE, COL_TYPE, PinShapeNames(), and PinTypeNames().

◆ 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_TABLE_DATA_MODEL_BASE.

Definition at line 93 of file wx_grid.h.

◆ IsEmptyCell()

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

Definition at line 61 of file dialog_pin_properties.cpp.

◆ IsExpanderColumn()

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

Reimplemented in FIELDS_TABLE_DATA_MODEL_BASE.

Definition at line 83 of file wx_grid.h.

◆ RemoveRow()

void ALT_PIN_DATA_MODEL::RemoveRow ( int aRow)
inline

Definition at line 114 of file dialog_pin_properties.cpp.

◆ RestoreUndoState()

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

Reimplemented in FIELDS_TABLE_DATA_MODEL_BASE.

Definition at line 95 of file wx_grid.h.

◆ SerializeUndoState()

virtual wxString WX_GRID_TABLE_BASE::SerializeUndoState ( ) const
inlinevirtualinherited

Reimplemented in FIELDS_TABLE_DATA_MODEL_BASE.

Definition at line 94 of file wx_grid.h.

◆ SetColAttr()

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

Definition at line 66 of file wx_grid.h.

References m_colAttrs.

Referenced by DIALOG_FIELDS_TABLE::SetupColumnProperties().

◆ SetValue()

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

Definition at line 77 of file dialog_pin_properties.cpp.

References COL_NAME, COL_SHAPE, COL_TYPE, PinShapeNames(), and PinTypeNames().

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

Definition at line 108 of file wx_grid.h.

Referenced by GetAttr(), SetColAttr(), and ~WX_GRID_TABLE_BASE().


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