Stimfit 0.12.7
Public Member Functions

Adapts stf::Table to be used by wxStfGrid. More...

#include <table.h>

Inheritance diagram for wxStfTable:
Inheritance graph
[legend]
Collaboration diagram for wxStfTable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 wxStfTable (const stf::Table &table_)
 Constructor.
virtual int GetNumberRows ()
 Get the number of rows.
virtual int GetNumberCols ()
 Get the number of columns.
virtual bool IsEmptyCell (int row, int col)
 Check whether a cell is empty.
virtual wxString GetValue (int row, int col)
 Retrieve a cell entry.
virtual void SetValue (int row, int col, const wxString &value)
 Set a cell entry.
wxString GetSelection (const wxGridCellCoordsArray &selection)
 Retrieve values from selected cells.

Detailed Description

Adapts stf::Table to be used by wxStfGrid.


Constructor & Destructor Documentation

wxStfTable::wxStfTable ( const stf::Table table_) [inline]

Constructor.

Parameters:
table_The associated stf::Table

Member Function Documentation

virtual int wxStfTable::GetNumberCols ( ) [inline, virtual]

Get the number of columns.

Returns:
The number of columns.

References stf::Table::nCols().

virtual int wxStfTable::GetNumberRows ( ) [inline, virtual]

Get the number of rows.

Returns:
The number of rows.

References stf::Table::nRows().

wxString wxStfTable::GetSelection ( const wxGridCellCoordsArray selection)

Retrieve values from selected cells.

Parameters:
selectionThe selected cells.
Returns:
The selection as a single string.
virtual wxString wxStfTable::GetValue ( int  row,
int  col 
) [virtual]

Retrieve a cell entry.

Parameters:
rowThe row number of the cell.
colThe column number of the cell.
Returns:
The cell entry as a string.
virtual bool wxStfTable::IsEmptyCell ( int  row,
int  col 
) [virtual]

Check whether a cell is empty.

Parameters:
rowThe row number of the cell.
colThe column number of the cell.
Returns:
true if the cell is empty, false otherwise.
virtual void wxStfTable::SetValue ( int  row,
int  col,
const wxString value 
) [virtual]

Set a cell entry.

Parameters:
rowThe row number of the cell.
colThe column number of the cell.
valueThe new cell entry.

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