A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCwxAbstractTableModel.html below:

NCBI C++ ToolKit: CwxAbstractTableModel Class Reference

Search Toolkit Book for CwxAbstractTableModel

CwxAbstractTableModel - simple TableModel implementation. More...

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

  CwxAbstractTableModel ()   CwxAbstractTableModel. More...
  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 wxVariant  GetValueAt (int row, int col) const =0   virtual wxString  GetColumnName (int col_idx) const   Returns a default name for the column using spreadsheet conventions: A, B, C, ... More...
  virtual wxString  GetColumnType (int col_idx) const   Tries to extract actual type from row 0 value if it exists. More...
  virtual void  AddTMListener (IwxTableModelListener &aTMEar)   virtual void  RemoveTMListener (IwxTableModelListener &aTMEar)   virtual  ~IwxDecoratedTableModel ()   virtual wxString  GetColumnTitle (int col_idx) const   All the same methods of IwxTableModel, plus. More...
  virtual CIRef< IwxStringFormatGetColumnFormat (int) const   virtual wxString  GetImageAliasAt (int, int) const   virtual wxString  GetTooltipTextAt (int, int) const   virtual wxColor  GetBackgroundColor (int) const   virtual  ~IwxTableModel ()   virtual wxString  GetTypeAt (int, int col) const   virtual bool  IsEditableAt (int, int) const   virtual void  SetValueAt (int, int, const wxVariant &)  

CwxAbstractTableModel - simple TableModel implementation.

In order to use it one should implement just three methods: int GetNumRows(); int GetNumColumns(); wxVariant GetValueAt(int row, int col);

Definition at line 162 of file table_model.hpp.

◆ CwxAbstractTableModel() CwxAbstractTableModel::CwxAbstractTableModel ( ) ◆ AddTMListener() ◆ GetColumnName() wxString CwxAbstractTableModel::GetColumnName ( int  col_idx ) const virtual

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

Implements IwxTableModel.

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

Definition at line 82 of file table_model.cpp.

References wxT.

Referenced by CFeatTableDS::GetColumnName().

◆ GetColumnType() wxString CwxAbstractTableModel::GetColumnType ( int  col_idx ) const virtual

Tries to extract actual type from row 0 value if it exists.

Otherwise returns typeid(int) [anyway it is of no use in abcence of data]

Implements IwxTableModel.

Reimplemented in CAnnotCompareDS, CAlignSeqTableModel, CGroupTableModel, CObjectListTableModel, CTaskViewModel, CEventViewModel, CProteinModel, CFeatTableDS, CAlnSpanVertModel, and CAlnTableDS.

Definition at line 92 of file table_model.cpp.

References GetNumRows(), and GetValueAt().

◆ GetNumColumns() virtual int CwxAbstractTableModel::GetNumColumns ( ) const pure virtual

Returns the number of columns in the model.

A CTableControl uses this method to determine how many columns it should create and display by default.

Implements IwxTableModel.

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

◆ GetNumRows() virtual int CwxAbstractTableModel::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.

Implements IwxTableModel.

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

Referenced by GetColumnType().

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

Implements IwxTableModel.

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

Referenced by GetColumnType().

◆ RemoveTMListener() ◆ x_FireCellUpdated() void CwxAbstractTableModel::x_FireCellUpdated ( int  row, int  col  ) protectedvirtual ◆ x_FireDataChanged() void CwxAbstractTableModel::x_FireDataChanged ( ) protectedvirtual ◆ x_FireRowsDeleted() void CwxAbstractTableModel::x_FireRowsDeleted ( int  first_row, int  last_row = -1  ) protectedvirtual ◆ x_FireRowsInserted() void CwxAbstractTableModel::x_FireRowsInserted ( int  first_row, int  last_row = -1  ) protectedvirtual ◆ x_FireRowsUpdated() void CwxAbstractTableModel::x_FireRowsUpdated ( int  first_row, int  last_row = -1  ) protectedvirtual ◆ x_FireStructureChanged() void CwxAbstractTableModel::x_FireStructureChanged ( ) protectedvirtual ◆ x_FireTableChanged() ◆ m_ListenerList

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


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