#include <wx/grid.h>
Simplest type of data table for a grid for small tables of strings that are stored in memory.
The number of rows and columns in the table can be specified initially but may also be changed later dynamically.
Public Member Functions | |
wxGridStringTable () | |
Default constructor creates an empty table. More... | |
wxGridStringTable (int numRows, int numCols) | |
Constructor taking number of rows and columns. More... | |
virtual int | GetNumberRows () |
virtual int | GetNumberCols () |
virtual wxString | GetValue (int row, int col) |
virtual void | SetValue (int row, int col, const wxString &s) |
void | Clear () |
bool | InsertRows (size_t pos=0, size_t numRows=1) |
bool | AppendRows (size_t numRows=1) |
bool | DeleteRows (size_t pos=0, size_t numRows=1) |
bool | InsertCols (size_t pos=0, size_t numCols=1) |
bool | AppendCols (size_t numCols=1) |
bool | DeleteCols (size_t pos=0, size_t numCols=1) |
void | SetRowLabelValue (int row, const wxString &) |
void | SetColLabelValue (int col, const wxString &) |
void | SetCornerLabelValue (const wxString &) |
wxString | GetRowLabelValue (int row) |
wxString | GetColLabelValue (int col) |
wxString | GetCornerLabelValue () const |
wxGridStringTable::wxGridStringTable | ( | ) |
Default constructor creates an empty table.
wxGridStringTable::wxGridStringTable | ( | int | numRows, |
int | numCols | ||
) |
Constructor taking number of rows and columns.
bool wxGridStringTable::AppendCols | ( | size_t | numCols = 1 | ) |
bool wxGridStringTable::AppendRows | ( | size_t | numRows = 1 | ) |
void wxGridStringTable::Clear | ( | ) |
bool wxGridStringTable::DeleteCols | ( | size_t | pos = 0 , |
size_t | numCols = 1 |
||
) |
bool wxGridStringTable::DeleteRows | ( | size_t | pos = 0 , |
size_t | numRows = 1 |
||
) |
wxString wxGridStringTable::GetColLabelValue | ( | int | col | ) |
wxString wxGridStringTable::GetCornerLabelValue | ( | ) | const |
|
virtual |
|
virtual |
wxString wxGridStringTable::GetRowLabelValue | ( | int | row | ) |
|
virtual |
bool wxGridStringTable::InsertCols | ( | size_t | pos = 0 , |
size_t | numCols = 1 |
||
) |
bool wxGridStringTable::InsertRows | ( | size_t | pos = 0 , |
size_t | numRows = 1 |
||
) |
void wxGridStringTable::SetColLabelValue | ( | int | col, |
const wxString & | |||
) |
void wxGridStringTable::SetCornerLabelValue | ( | const wxString & | ) |
void wxGridStringTable::SetRowLabelValue | ( | int | row, |
const wxString & | |||
) |
|
virtual |