]>
git.saurik.com Git - wxWidgets.git/blob - samples/newgrid/griddemo.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Grid control wxWindows sample
4 // Author: Michael Bedward
7 // Copyright: (c) Michael Bedward, Julian Smart
8 // Licence: wxWindows license
9 /////////////////////////////////////////////////////////////////////////////
18 class GridApp
: public wxApp
25 class GridFrame
: public wxFrame
29 wxLogTextCtrl
*logger
;
33 void ToggleRowLabels( wxCommandEvent
& );
34 void ToggleColLabels( wxCommandEvent
& );
35 void ToggleControlPanel( wxCommandEvent
& );
36 void ToggleCellEdit( wxCommandEvent
& );
37 void SetLabelColour( wxCommandEvent
& );
38 void SetLabelTextColour( wxCommandEvent
& );
39 void SetRowLabelHorizAlignment( wxCommandEvent
& );
40 void SetRowLabelVertAlignment( wxCommandEvent
& );
41 void SetColLabelHorizAlignment( wxCommandEvent
& );
42 void SetColLabelVertAlignment( wxCommandEvent
& );
43 void SetGridLineColour( wxCommandEvent
& );
45 void InsertRow( wxCommandEvent
& );
46 void InsertCol( wxCommandEvent
& );
47 void DeleteRow( wxCommandEvent
& );
48 void DeleteCol( wxCommandEvent
& );
49 void ClearGrid( wxCommandEvent
& );
51 void About( wxCommandEvent
& );
53 void OnLabelLeftClick( wxGridEvent
& );
54 void OnCellLeftClick( wxGridEvent
& );
55 void OnRowSize( wxGridSizeEvent
& );
56 void OnColSize( wxGridSizeEvent
& );
57 void OnSelectCell( wxGridEvent
& );
58 void OnRangeSelected( wxGridRangeSelectEvent
& );
59 void OnCellValueChanged( wxGridEvent
& );
65 void OnSize( wxSizeEvent
& );
66 void OnQuit( wxCommandEvent
& );
68 enum { ID_TOGGLEROWLABELS
= 100,
70 ID_TOGGLECONTROLPANEL
,
73 ID_SETLABELTEXTCOLOUR
,
75 ID_ROWLABELHORIZALIGN
,
78 ID_COLLABELHORIZALIGN
,