]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/gridtbl.tex
Added Reset() to command line parser and called it from Parse(), so
[wxWidgets.git] / docs / latex / wx / gridtbl.tex
1 \section{\class{wxGridTableBase}}\label{wxgridtablebase}
2
3
4 Grid table classes
5
6 \wxheading{Derived from}
7
8 \helpref{wxObject}{wxobject}
9
10 \wxheading{Data structures}
11
12 \latexignore{\rtfignore{\wxheading{Members}}}
13
14
15 \membersection{wxGridTableBase::wxGridTableBase}\label{wxgridtablebasewxgridtablebase}
16
17 \func{}{wxGridTableBase}{\void}
18
19
20 \membersection{wxGridTableBase::\destruct{wxGridTableBase}}\label{wxgridtablebasedtor}
21
22 \func{}{\destruct{wxGridTableBase}}{\void}
23
24
25 \membersection{wxGridTableBase::GetNumberRows}\label{wxgridtablebasegetnumberrows}
26
27 \func{int}{GetNumberRows}{\void}
28
29 You must override these functions in a derived table class
30
31
32 \membersection{wxGridTableBase::GetNumberCols}\label{wxgridtablebasegetnumbercols}
33
34 \func{int}{GetNumberCols}{\void}
35
36
37 \membersection{wxGridTableBase::IsEmptyCell}\label{wxgridtablebaseisemptycell}
38
39 \func{bool}{IsEmptyCell}{\param{int }{row}, \param{int }{col}}
40
41
42 \membersection{wxGridTableBase::GetValue}\label{wxgridtablebasegetvalue}
43
44 \func{wxString}{GetValue}{\param{int }{row}, \param{int }{col}}
45
46
47 \membersection{wxGridTableBase::SetValue}\label{wxgridtablebasesetvalue}
48
49 \func{void}{SetValue}{\param{int }{row}, \param{int }{col}, \param{const wxString\& }{value}}
50
51
52 \membersection{wxGridTableBase::GetTypeName}\label{wxgridtablebasegettypename}
53
54 \func{wxString}{GetTypeName}{\param{int }{row}, \param{int }{col}}
55
56 Data type determination and value access
57
58
59 \membersection{wxGridTableBase::CanGetValueAs}\label{wxgridtablebasecangetvalueas}
60
61 \func{bool}{CanGetValueAs}{\param{int }{row}, \param{int }{col}, \param{const wxString\& }{typeName}}
62
63
64 \membersection{wxGridTableBase::CanSetValueAs}\label{wxgridtablebasecansetvalueas}
65
66 \func{bool}{CanSetValueAs}{\param{int }{row}, \param{int }{col}, \param{const wxString\& }{typeName}}
67
68
69 \membersection{wxGridTableBase::GetValueAsLong}\label{wxgridtablebasegetvalueaslong}
70
71 \func{long}{GetValueAsLong}{\param{int }{row}, \param{int }{col}}
72
73
74 \membersection{wxGridTableBase::GetValueAsDouble}\label{wxgridtablebasegetvalueasdouble}
75
76 \func{double}{GetValueAsDouble}{\param{int }{row}, \param{int }{col}}
77
78
79 \membersection{wxGridTableBase::GetValueAsBool}\label{wxgridtablebasegetvalueasbool}
80
81 \func{bool}{GetValueAsBool}{\param{int }{row}, \param{int }{col}}
82
83
84 \membersection{wxGridTableBase::SetValueAsLong}\label{wxgridtablebasesetvalueaslong}
85
86 \func{void}{SetValueAsLong}{\param{int }{row}, \param{int }{col}, \param{long }{value}}
87
88
89 \membersection{wxGridTableBase::SetValueAsDouble}\label{wxgridtablebasesetvalueasdouble}
90
91 \func{void}{SetValueAsDouble}{\param{int }{row}, \param{int }{col}, \param{double }{value}}
92
93
94 \membersection{wxGridTableBase::SetValueAsBool}\label{wxgridtablebasesetvalueasbool}
95
96 \func{void}{SetValueAsBool}{\param{int }{row}, \param{int }{col}, \param{bool }{value}}
97
98
99 \membersection{wxGridTableBase::GetValueAsCustom}\label{wxgridtablebasegetvalueascustom}
100
101 \func{void*}{GetValueAsCustom}{\param{int }{row}, \param{int }{col}, \param{const wxString\& }{typeName}}
102
103 For user defined types
104
105
106 \membersection{wxGridTableBase::SetValueAsCustom}\label{wxgridtablebasesetvalueascustom}
107
108 \func{void}{SetValueAsCustom}{\param{int }{row}, \param{int }{col}, \param{const wxString\& }{typeName}, \param{void* }{value}}
109
110
111 \membersection{wxGridTableBase::SetView}\label{wxgridtablebasesetview}
112
113 \func{void}{SetView}{\param{wxGrid* }{grid}}
114
115 Overriding these is optional
116
117
118 \membersection{wxGridTableBase::GetView}\label{wxgridtablebasegetview}
119
120 \constfunc{wxGrid *}{GetView}{\void}
121
122
123 \membersection{wxGridTableBase::Clear}\label{wxgridtablebaseclear}
124
125 \func{void}{Clear}{\void}
126
127
128 \membersection{wxGridTableBase::InsertRows}\label{wxgridtablebaseinsertrows}
129
130 \func{bool}{InsertRows}{\param{size\_t }{pos = 0}, \param{size\_t }{numRows = 1}}
131
132
133 \membersection{wxGridTableBase::AppendRows}\label{wxgridtablebaseappendrows}
134
135 \func{bool}{AppendRows}{\param{size\_t }{numRows = 1}}
136
137
138 \membersection{wxGridTableBase::DeleteRows}\label{wxgridtablebasedeleterows}
139
140 \func{bool}{DeleteRows}{\param{size\_t }{pos = 0}, \param{size\_t }{numRows = 1}}
141
142
143 \membersection{wxGridTableBase::InsertCols}\label{wxgridtablebaseinsertcols}
144
145 \func{bool}{InsertCols}{\param{size\_t }{pos = 0}, \param{size\_t }{numCols = 1}}
146
147
148 \membersection{wxGridTableBase::AppendCols}\label{wxgridtablebaseappendcols}
149
150 \func{bool}{AppendCols}{\param{size\_t }{numCols = 1}}
151
152
153 \membersection{wxGridTableBase::DeleteCols}\label{wxgridtablebasedeletecols}
154
155 \func{bool}{DeleteCols}{\param{size\_t }{pos = 0}, \param{size\_t }{numCols = 1}}
156
157
158 \membersection{wxGridTableBase::GetRowLabelValue}\label{wxgridtablebasegetrowlabelvalue}
159
160 \func{wxString}{GetRowLabelValue}{\param{int }{row}}
161
162
163 \membersection{wxGridTableBase::GetColLabelValue}\label{wxgridtablebasegetcollabelvalue}
164
165 \func{wxString}{GetColLabelValue}{\param{int }{col}}
166
167
168 \membersection{wxGridTableBase::SetRowLabelValue}\label{wxgridtablebasesetrowlabelvalue}
169
170 \func{void}{SetRowLabelValue}{\param{int }{WXUNUSED(row)}, \param{const }{wxString\&}}
171
172
173 \membersection{wxGridTableBase::SetColLabelValue}\label{wxgridtablebasesetcollabelvalue}
174
175 \func{void}{SetColLabelValue}{\param{int }{WXUNUSED(col)}, \param{const }{wxString\&}}
176
177
178 \membersection{wxGridTableBase::SetAttrProvider}\label{wxgridtablebasesetattrprovider}
179
180 \func{void}{SetAttrProvider}{\param{wxGridCellAttrProvider* }{attrProvider}}
181
182 Attribute handling
183 give us the attr provider to use - we take ownership of the pointer
184
185
186 \membersection{wxGridTableBase::GetAttrProvider}\label{wxgridtablebasegetattrprovider}
187
188 \constfunc{wxGridCellAttrProvider*}{GetAttrProvider}{\void}
189
190 get the currently used attr provider (may be NULL)
191
192
193 \membersection{wxGridTableBase::CanHaveAttributes}\label{wxgridtablebasecanhaveattributes}
194
195 \func{bool}{CanHaveAttributes}{\void}
196
197 Does this table allow attributes? Default implementation creates
198 a wxGridCellAttrProvider if necessary.
199
200
201 \membersection{wxGridTableBase::UpdateAttrRows}\label{wxgridtablebaseupdateattrrows}
202
203 \func{void}{UpdateAttrRows}{\param{size\_t }{pos}, \param{int }{numRows}}
204
205 change row/col number in attribute if needed
206
207
208 \membersection{wxGridTableBase::UpdateAttrCols}\label{wxgridtablebaseupdateattrcols}
209
210 \func{void}{UpdateAttrCols}{\param{size\_t }{pos}, \param{int }{numCols}}
211
212
213 \membersection{wxGridTableBase::GetAttr}\label{wxgridtablebasegetattr}
214
215 \func{wxGridCellAttr*}{GetAttr}{\param{int }{row}, \param{int }{col}}
216
217 by default forwarded to wxGridCellAttrProvider if any. May be
218 overridden to handle attributes directly in the table.
219
220
221 \membersection{wxGridTableBase::SetAttr}\label{wxgridtablebasesetattr}
222
223 \func{void}{SetAttr}{\param{wxGridCellAttr* }{attr}, \param{int }{row}, \param{int }{col}}
224
225 these functions take ownership of the pointer
226
227
228 \membersection{wxGridTableBase::SetRowAttr}\label{wxgridtablebasesetrowattr}
229
230 \func{void}{SetRowAttr}{\param{wxGridCellAttr* }{attr}, \param{int }{row}}
231
232
233 \membersection{wxGridTableBase::SetColAttr}\label{wxgridtablebasesetcolattr}
234
235 \func{void}{SetColAttr}{\param{wxGridCellAttr* }{attr}, \param{int }{col}}
236