Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
table.h
Go to the documentation of this file.
1// This program is free software; you can redistribute it and/or
2// modify it under the terms of the GNU General Public License
3// as published by the Free Software Foundation; either version 2
4// of the License, or (at your option) any later version.
5
6// This program is distributed in the hope that it will be useful,
7// but WITHOUT ANY WARRANTY; without even the implied warranty of
8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9// GNU General Public License for more details.
10
11// You should have received a copy of the GNU General Public License
12// along with this program; if not, write to the Free Software
13// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14
20
21#ifndef _TABLE_H
22#define _TABLE_H
23
24#include "../stf.h"
25
29
32public:
34
36 wxStfTable(const stfnum::Table& table_) : table(table_) {}
37
39
41 virtual int GetNumberRows() {return (int)table.nRows()+1;}
42
44
46 virtual int GetNumberCols() {return (int)table.nCols()+1;}
47
49
53 virtual bool IsEmptyCell(int row,int col);
54
56
60 virtual wxString GetValue( int row, int col );
61
63
67 virtual void SetValue( int row, int col, const wxString& value );
68
70
74
75private:
76 stfnum::Table table;
77};
78
80
81#endif
82
A table used for printing information.
Definition stfnum.h:152
See http://www.wxwidgets.org/manuals/stable/wx_wxgridcellcoordsarray.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxgridtablebase.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxstring.html (wxWidgets documentation)
wxStfTable(const stfnum::Table &table_)
Constructor.
Definition table.h:36
virtual int GetNumberCols()
Get the number of columns.
Definition table.h:46
virtual int GetNumberRows()
Get the number of rows.
Definition table.h:41
virtual void SetValue(int row, int col, const wxString &value)
Set a cell entry.
virtual bool IsEmptyCell(int row, int col)
Check whether a cell is empty.
virtual wxString GetValue(int row, int col)
Retrieve a cell entry.
wxString GetSelection(const wxGridCellCoordsArray &selection)
Retrieve values from selected cells.