Search Toolkit Book for CGroupTableModel
CGroupTableModel () void SetNumRows (size_t n_rows) void Clear () virtual void SetIcon (int row, const wxString &icon_alias) virtual void SetStringValueAt (int row, int col, const wxString &value) virtual void SetIntValueAt (int row, int col, const int &value) virtual void FireDataChanged () virtual wxString GetColumnType (int col) const Tries to extract actual type from row 0 value if it exists. More...Definition at line 131 of file object_list_widget_sel.cpp.
◆ CGroupTableModel() CGroupTableModel::CGroupTableModel ( ) ◆ Clear() void CGroupTableModel::Clear ( void ) inline ◆ FireDataChanged() void CGroupTableModel::FireDataChanged ( ) virtual ◆ GetColumnName() wxString CGroupTableModel::GetColumnName ( int col_idx ) const virtualReturns a default name for the column using spreadsheet conventions: A, B, C, ...
Z, AA, AB, etc. If column cannot be found, returns an empty name. AnyType has a type of string.
There is one static instance of string inside, so it is refilled every next call. It is enough for drawing purposes, but if someone needs more, (s)he should implement more.
Reimplemented from CwxAbstractTableModel.
Definition at line 252 of file object_list_widget_sel.cpp.
References _ASSERT, and m_ColumnNames.
◆ GetColumnType() wxString CGroupTableModel::GetColumnType ( int col_idx ) const virtual ◆ GetImageAliasAt() wxString CGroupTableModel::GetImageAliasAt ( int row, int col ) const virtual ◆ GetNumColumns() int CGroupTableModel::GetNumColumns ( ) const virtual ◆ GetNumRows() int CGroupTableModel::GetNumRows ( ) const virtualReturns the number of rows in the model.
A CTableControl uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.
Implements CwxAbstractTableModel.
Definition at line 214 of file object_list_widget_sel.cpp.
References m_Rows.
◆ GetValueAt() wxVariant CGroupTableModel::GetValueAt ( int row, int col ) const virtual ◆ SetIcon() void CGroupTableModel::SetIcon ( int row, const wxString & icon_alias ) virtual ◆ SetIntValueAt() void CGroupTableModel::SetIntValueAt ( int row, int col, const int & value ) virtual ◆ SetNumRows() void CGroupTableModel::SetNumRows ( size_t n_rows ) ◆ SetStringValueAt() void CGroupTableModel::SetStringValueAt ( int row, int col, const wxString & value ) virtual ◆ m_ColumnNames vector<wxString> CGroupTableModel::m_ColumnNames protected ◆ m_Icons vector<wxString> CGroupTableModel::m_Icons protected ◆ m_Rows vector<TRow> CGroupTableModel::m_Rows protectedThe documentation for this class was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4