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)
 

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

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
 

Detailed Description

Definition at line 68 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 71 of file dialog_symbol_properties.cpp.

◆ ~SCH_PIN_TABLE_DATA_MODEL()

SCH_PIN_TABLE_DATA_MODEL::~SCH_PIN_TABLE_DATA_MODEL ( )
inline

Definition at line 78 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 165 of file dialog_symbol_properties.cpp.

◆ 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 147 of file dialog_symbol_properties.cpp.

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

◆ GetNumberCols()

int SCH_PIN_TABLE_DATA_MODEL::GetNumberCols ( )
inlineoverride

Definition at line 145 of file dialog_symbol_properties.cpp.

References COL_COUNT.

◆ GetNumberRows()

int SCH_PIN_TABLE_DATA_MODEL::GetNumberRows ( )
inlineoverride

Definition at line 144 of file dialog_symbol_properties.cpp.

◆ GetValue() [1/2]

static wxString SCH_PIN_TABLE_DATA_MODEL::GetValue ( const SCH_PIN aPin,
int  aCol 
)
inlinestatic

◆ GetValue() [2/2]

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

◆ IsEmptyCell()

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

Definition at line 160 of file dialog_symbol_properties.cpp.

◆ SetValue()

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

◆ SortRows()

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

Member Data Documentation

◆ elements

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

STL member.

◆ m_nameAttrs

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

Definition at line 303 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

Definition at line 304 of file dialog_symbol_properties.cpp.

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

◆ m_shapeAttr

wxGridCellAttr* SCH_PIN_TABLE_DATA_MODEL::m_shapeAttr
protected

Definition at line 306 of file dialog_symbol_properties.cpp.

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

◆ m_typeAttr

wxGridCellAttr* SCH_PIN_TABLE_DATA_MODEL::m_typeAttr
protected

Definition at line 305 of file dialog_symbol_properties.cpp.

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


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