void ToggleRowLabels( wxCommandEvent& );
void ToggleColLabels( wxCommandEvent& );
void ToggleEditing( wxCommandEvent& );
+ void ToggleRowSizing( wxCommandEvent& );
+ void ToggleColSizing( wxCommandEvent& );
void SetLabelColour( wxCommandEvent& );
void SetLabelTextColour( wxCommandEvent& );
void SetRowLabelHorizAlignment( wxCommandEvent& );
ID_TOGGLEROWLABELS = 100,
ID_TOGGLECOLLABELS,
ID_TOGGLEEDIT,
+ ID_TOGGLEROWSIZING,
+ ID_TOGGLECOLSIZING,
ID_SETLABELCOLOUR,
ID_SETLABELTEXTCOLOUR,
ID_ROWLABELALIGN,
// memory
// ----------------------------------------------------------------------------
+class SimpleTable : public wxGridStringTable {
+public:
+ SimpleTable( int numRows, int numCols )
+ : wxGridStringTable( numRows, numCols ) {}
+
+ // override this to fake a row as all bools
+ wxString GetTypeName( int row, int col )
+ {
+ if (row == 8)
+ return wxT("bool");
+ else if (row == 9 && col == 1)
+ return wxT("unknown type"); // to test fallback
+ else
+ return wxGridStringTable::GetTypeName(row, col);
+ }
+
+};
+
class BigGridTable : public wxGridTableBase
{
public:
long GetNumberRows() { return m_sizeGrid; }
long GetNumberCols() { return m_sizeGrid; }
-
wxString GetValue( int row, int col )
{
return wxString::Format("(%d, %d)", row, col);