NCBI C++ ToolKit
Public Member Functions | List of all members
IwxTableModel Class Referenceabstract

Search Toolkit Book for IwxTableModel

#include <gui/widgets/wx/table_model.hpp>

+ Inheritance diagram for IwxTableModel:

Public Member Functions

virtual ~IwxTableModel ()
 
virtual int GetNumRows () const =0
 Returns the number of rows in the model. More...
 
virtual int GetNumColumns () const =0
 Returns the number of columns in the model. More...
 
virtual wxString GetColumnName (int col_idx) const =0
 Returns the name of the column at aColIx. More...
 
virtual wxString GetColumnType (int col_idx) const =0
 
virtual wxString GetTypeAt (int, int col) const
 
virtual wxVariant GetValueAt (int row, int col) const =0
 
virtual bool IsEditableAt (int, int) const
 
virtual void SetValueAt (int, int, const wxVariant &)
 
virtual void AddTMListener (IwxTableModelListener &aTMEar)=0
 
virtual void RemoveTMListener (IwxTableModelListener &aTMEar)=0
 

Detailed Description

Definition at line 46 of file table_model.hpp.

Constructor & Destructor Documentation

◆ ~IwxTableModel()

virtual IwxTableModel::~IwxTableModel ( )
inlinevirtual

Definition at line 50 of file table_model.hpp.

Member Function Documentation

◆ AddTMListener()

virtual void IwxTableModel::AddTMListener ( IwxTableModelListener aTMEar)
pure virtual

Implemented in CwxAbstractTableModel.

Referenced by CwxTableListCtrl::SetModel().

◆ GetColumnName()

virtual wxString IwxTableModel::GetColumnName ( int  col_idx) const
pure virtual

Returns the name of the column at aColIx.

This is used to initialize the table's column header name. This name does not need to be unique.

Implemented in CAnnotCompareDS, CAlignSeqTableModel, CwxAbstractTableModel, CGroupTableModel, CTextTableModel, CObjectListTableModel, CTaskViewModel, CEventViewModel, CProteinModel, CFeatTableDS, CAlnSpanVertModel, and CAlnTableDS.

Referenced by CwxTableListCtrl::GetColumnNameByModel(), IwxDecoratedTableModel::GetColumnTitle(), and CwxTableListCtrl::GetModelIndexByName().

◆ GetColumnType()

virtual wxString IwxTableModel::GetColumnType ( int  col_idx) const
pure virtual

◆ GetNumColumns()

virtual int IwxTableModel::GetNumColumns ( ) const
pure virtual

◆ GetNumRows()

virtual int IwxTableModel::GetNumRows ( ) const
pure virtual

Returns 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.

Implemented in CwxAbstractTableModel, CGroupTableModel, CProteinModel, CTextTableModel, CObjectListTableModel, CAlignSeqTableModel, CFeatTableDS, CAnnotCompareDS, CAlnSpanVertModel, CAlnTableDS, CTaskViewModel, and CEventViewModel.

Referenced by CwxTableListCtrl::ApplyFiltering(), and CwxTableListCtrl::TableChanged().

◆ GetTypeAt()

virtual wxString IwxTableModel::GetTypeAt ( int  ,
int  col 
) const
inlinevirtual

Definition at line 69 of file table_model.hpp.

References GetColumnType().

Referenced by CwxTableListCtrl::GetTypeVisibleAt().

◆ GetValueAt()

virtual wxVariant IwxTableModel::GetValueAt ( int  row,
int  col 
) const
pure virtual

◆ IsEditableAt()

virtual bool IwxTableModel::IsEditableAt ( int  ,
int   
) const
inlinevirtual

Definition at line 75 of file table_model.hpp.

◆ RemoveTMListener()

virtual void IwxTableModel::RemoveTMListener ( IwxTableModelListener aTMEar)
pure virtual

Implemented in CwxAbstractTableModel.

Referenced by CwxTableListCtrl::SetModel().

◆ SetValueAt()

virtual void IwxTableModel::SetValueAt ( int  ,
int  ,
const wxVariant &   
)
inlinevirtual

Definition at line 76 of file table_model.hpp.


The documentation for this class was generated from the following file:
Modified on Wed May 15 15:08:25 2024 by modify_doxy.py rev. 669887