1 /*
2  * Interface wrapper code.
3  *
4  * Generated by SIP 4.19.16
5  *
6  *     Copyright: (c) 2018 by Total Control Software
7  *     License:   wxWindows License
8  */
9 
10 #include "sipAPI_grid.h"
11 
12         #include <wx/grid.h>
13 
14         #include <wx/grid.h>
15         #include <wx/grid.h>
16         #include <wx/grid.h>
17         #include <wx/grid.h>
18         #include <wx/object.h>
19         #include <wx/object.h>
20         #include <wx/object.h>
21 
22 
23 class sipwxGridStringTable : public  ::wxGridStringTable
24 {
25 public:
26     sipwxGridStringTable();
27     sipwxGridStringTable(int,int);
28     virtual ~sipwxGridStringTable();
29 
30     /*
31      * There is a protected method for every virtual method visible from
32      * this class.
33      */
34 protected:
35     bool IsEmptyCell(int,int) SIP_OVERRIDE;
36      ::wxString GetValue(int,int) SIP_OVERRIDE;
37     void SetValue(int,int,const  ::wxString&) SIP_OVERRIDE;
38      ::wxString GetTypeName(int,int) SIP_OVERRIDE;
39     bool CanGetValueAs(int,int,const  ::wxString&) SIP_OVERRIDE;
40     bool CanSetValueAs(int,int,const  ::wxString&) SIP_OVERRIDE;
41     long GetValueAsLong(int,int) SIP_OVERRIDE;
42     double GetValueAsDouble(int,int) SIP_OVERRIDE;
43     bool GetValueAsBool(int,int) SIP_OVERRIDE;
44     void SetValueAsLong(int,int,long) SIP_OVERRIDE;
45     void SetValueAsDouble(int,int,double) SIP_OVERRIDE;
46     void SetValueAsBool(int,int,bool) SIP_OVERRIDE;
47     void Clear() SIP_OVERRIDE;
48     bool InsertRows(size_t,size_t) SIP_OVERRIDE;
49     bool AppendRows(size_t) SIP_OVERRIDE;
50     bool DeleteRows(size_t,size_t) SIP_OVERRIDE;
51     bool InsertCols(size_t,size_t) SIP_OVERRIDE;
52     bool AppendCols(size_t) SIP_OVERRIDE;
53     bool DeleteCols(size_t,size_t) SIP_OVERRIDE;
54      ::wxString GetRowLabelValue(int) SIP_OVERRIDE;
55      ::wxString GetColLabelValue(int) SIP_OVERRIDE;
56     void SetRowLabelValue(int,const  ::wxString&) SIP_OVERRIDE;
57     void SetColLabelValue(int,const  ::wxString&) SIP_OVERRIDE;
58      ::wxGridCellAttr* GetAttr(int,int, ::wxGridCellAttr::wxAttrKind) SIP_OVERRIDE;
59     void SetAttr( ::wxGridCellAttr*,int,int) SIP_OVERRIDE;
60     void SetRowAttr( ::wxGridCellAttr*,int) SIP_OVERRIDE;
61     void SetColAttr( ::wxGridCellAttr*,int) SIP_OVERRIDE;
62     int GetNumberRows() SIP_OVERRIDE;
63     int GetNumberCols() SIP_OVERRIDE;
64     void SetView( ::wxGrid*) SIP_OVERRIDE;
65      ::wxGrid* GetView() const SIP_OVERRIDE;
66     bool CanHaveAttributes() SIP_OVERRIDE;
67 
68 public:
69     sipSimpleWrapper *sipPySelf;
70 
71 private:
72     sipwxGridStringTable(const sipwxGridStringTable &);
73     sipwxGridStringTable &operator = (const sipwxGridStringTable &);
74 
75     char sipPyMethods[32];
76 };
77 
sipwxGridStringTable()78 sipwxGridStringTable::sipwxGridStringTable():  ::wxGridStringTable(), sipPySelf(SIP_NULLPTR)
79 {
80     memset(sipPyMethods, 0, sizeof (sipPyMethods));
81 }
82 
sipwxGridStringTable(int numRows,int numCols)83 sipwxGridStringTable::sipwxGridStringTable(int numRows,int numCols):  ::wxGridStringTable(numRows,numCols), sipPySelf(SIP_NULLPTR)
84 {
85     memset(sipPyMethods, 0, sizeof (sipPyMethods));
86 }
87 
~sipwxGridStringTable()88 sipwxGridStringTable::~sipwxGridStringTable()
89 {
90     sipInstanceDestroyedEx(&sipPySelf);
91 }
92 
IsEmptyCell(int row,int col)93 bool sipwxGridStringTable::IsEmptyCell(int row,int col)
94 {
95     sip_gilstate_t sipGILState;
96     PyObject *sipMeth;
97 
98     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_IsEmptyCell);
99 
100     if (!sipMeth)
101         return  ::wxGridStringTable::IsEmptyCell(row,col);
102 
103     extern bool sipVH__grid_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
104 
105     return sipVH__grid_23(sipGILState, 0, sipPySelf, sipMeth, row, col);
106 }
107 
GetValue(int row,int col)108  ::wxString sipwxGridStringTable::GetValue(int row,int col)
109 {
110     sip_gilstate_t sipGILState;
111     PyObject *sipMeth;
112 
113     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_GetValue);
114 
115     if (!sipMeth)
116         return  ::wxGridStringTable::GetValue(row,col);
117 
118     extern  ::wxString sipVH__grid_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
119 
120     return sipVH__grid_41(sipGILState, 0, sipPySelf, sipMeth, row, col);
121 }
122 
SetValue(int row,int col,const::wxString & value)123 void sipwxGridStringTable::SetValue(int row,int col,const  ::wxString& value)
124 {
125     sip_gilstate_t sipGILState;
126     PyObject *sipMeth;
127 
128     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_SetValue);
129 
130     if (!sipMeth)
131     {
132          ::wxGridStringTable::SetValue(row,col,value);
133         return;
134     }
135 
136     extern void sipVH__grid_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::wxString&);
137 
138     sipVH__grid_25(sipGILState, 0, sipPySelf, sipMeth, row, col, value);
139 }
140 
GetTypeName(int row,int col)141  ::wxString sipwxGridStringTable::GetTypeName(int row,int col)
142 {
143     sip_gilstate_t sipGILState;
144     PyObject *sipMeth;
145 
146     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_GetTypeName);
147 
148     if (!sipMeth)
149         return  ::wxGridStringTable::GetTypeName(row,col);
150 
151     extern  ::wxString sipVH__grid_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
152 
153     return sipVH__grid_26(sipGILState, 0, sipPySelf, sipMeth, row, col);
154 }
155 
CanGetValueAs(int row,int col,const::wxString & typeName)156 bool sipwxGridStringTable::CanGetValueAs(int row,int col,const  ::wxString& typeName)
157 {
158     sip_gilstate_t sipGILState;
159     PyObject *sipMeth;
160 
161     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,SIP_NULLPTR,sipName_CanGetValueAs);
162 
163     if (!sipMeth)
164         return  ::wxGridStringTable::CanGetValueAs(row,col,typeName);
165 
166     extern bool sipVH__grid_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::wxString&);
167 
168     return sipVH__grid_27(sipGILState, 0, sipPySelf, sipMeth, row, col, typeName);
169 }
170 
CanSetValueAs(int row,int col,const::wxString & typeName)171 bool sipwxGridStringTable::CanSetValueAs(int row,int col,const  ::wxString& typeName)
172 {
173     sip_gilstate_t sipGILState;
174     PyObject *sipMeth;
175 
176     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,SIP_NULLPTR,sipName_CanSetValueAs);
177 
178     if (!sipMeth)
179         return  ::wxGridStringTable::CanSetValueAs(row,col,typeName);
180 
181     extern bool sipVH__grid_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::wxString&);
182 
183     return sipVH__grid_27(sipGILState, 0, sipPySelf, sipMeth, row, col, typeName);
184 }
185 
GetValueAsLong(int row,int col)186 long sipwxGridStringTable::GetValueAsLong(int row,int col)
187 {
188     sip_gilstate_t sipGILState;
189     PyObject *sipMeth;
190 
191     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,SIP_NULLPTR,sipName_GetValueAsLong);
192 
193     if (!sipMeth)
194         return  ::wxGridStringTable::GetValueAsLong(row,col);
195 
196     extern long sipVH__grid_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
197 
198     return sipVH__grid_28(sipGILState, 0, sipPySelf, sipMeth, row, col);
199 }
200 
GetValueAsDouble(int row,int col)201 double sipwxGridStringTable::GetValueAsDouble(int row,int col)
202 {
203     sip_gilstate_t sipGILState;
204     PyObject *sipMeth;
205 
206     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,SIP_NULLPTR,sipName_GetValueAsDouble);
207 
208     if (!sipMeth)
209         return  ::wxGridStringTable::GetValueAsDouble(row,col);
210 
211     extern double sipVH__grid_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
212 
213     return sipVH__grid_29(sipGILState, 0, sipPySelf, sipMeth, row, col);
214 }
215 
GetValueAsBool(int row,int col)216 bool sipwxGridStringTable::GetValueAsBool(int row,int col)
217 {
218     sip_gilstate_t sipGILState;
219     PyObject *sipMeth;
220 
221     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,SIP_NULLPTR,sipName_GetValueAsBool);
222 
223     if (!sipMeth)
224         return  ::wxGridStringTable::GetValueAsBool(row,col);
225 
226     extern bool sipVH__grid_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
227 
228     return sipVH__grid_23(sipGILState, 0, sipPySelf, sipMeth, row, col);
229 }
230 
SetValueAsLong(int row,int col,long value)231 void sipwxGridStringTable::SetValueAsLong(int row,int col,long value)
232 {
233     sip_gilstate_t sipGILState;
234     PyObject *sipMeth;
235 
236     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_SetValueAsLong);
237 
238     if (!sipMeth)
239     {
240          ::wxGridStringTable::SetValueAsLong(row,col,value);
241         return;
242     }
243 
244     extern void sipVH__grid_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,long);
245 
246     sipVH__grid_30(sipGILState, 0, sipPySelf, sipMeth, row, col, value);
247 }
248 
SetValueAsDouble(int row,int col,double value)249 void sipwxGridStringTable::SetValueAsDouble(int row,int col,double value)
250 {
251     sip_gilstate_t sipGILState;
252     PyObject *sipMeth;
253 
254     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,SIP_NULLPTR,sipName_SetValueAsDouble);
255 
256     if (!sipMeth)
257     {
258          ::wxGridStringTable::SetValueAsDouble(row,col,value);
259         return;
260     }
261 
262     extern void sipVH__grid_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,double);
263 
264     sipVH__grid_31(sipGILState, 0, sipPySelf, sipMeth, row, col, value);
265 }
266 
SetValueAsBool(int row,int col,bool value)267 void sipwxGridStringTable::SetValueAsBool(int row,int col,bool value)
268 {
269     sip_gilstate_t sipGILState;
270     PyObject *sipMeth;
271 
272     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_SetValueAsBool);
273 
274     if (!sipMeth)
275     {
276          ::wxGridStringTable::SetValueAsBool(row,col,value);
277         return;
278     }
279 
280     extern void sipVH__grid_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,bool);
281 
282     sipVH__grid_32(sipGILState, 0, sipPySelf, sipMeth, row, col, value);
283 }
284 
Clear()285 void sipwxGridStringTable::Clear()
286 {
287     sip_gilstate_t sipGILState;
288     PyObject *sipMeth;
289 
290     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,SIP_NULLPTR,sipName_Clear);
291 
292     if (!sipMeth)
293     {
294          ::wxGridStringTable::Clear();
295         return;
296     }
297 
298     extern void sipVH__grid_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
299 
300     sipVH__grid_7(sipGILState, 0, sipPySelf, sipMeth);
301 }
302 
InsertRows(size_t pos,size_t numRows)303 bool sipwxGridStringTable::InsertRows(size_t pos,size_t numRows)
304 {
305     sip_gilstate_t sipGILState;
306     PyObject *sipMeth;
307 
308     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,SIP_NULLPTR,sipName_InsertRows);
309 
310     if (!sipMeth)
311         return  ::wxGridStringTable::InsertRows(pos,numRows);
312 
313     extern bool sipVH__grid_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t,size_t);
314 
315     return sipVH__grid_33(sipGILState, 0, sipPySelf, sipMeth, pos, numRows);
316 }
317 
AppendRows(size_t numRows)318 bool sipwxGridStringTable::AppendRows(size_t numRows)
319 {
320     sip_gilstate_t sipGILState;
321     PyObject *sipMeth;
322 
323     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,SIP_NULLPTR,sipName_AppendRows);
324 
325     if (!sipMeth)
326         return  ::wxGridStringTable::AppendRows(numRows);
327 
328     extern bool sipVH__grid_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t);
329 
330     return sipVH__grid_34(sipGILState, 0, sipPySelf, sipMeth, numRows);
331 }
332 
DeleteRows(size_t pos,size_t numRows)333 bool sipwxGridStringTable::DeleteRows(size_t pos,size_t numRows)
334 {
335     sip_gilstate_t sipGILState;
336     PyObject *sipMeth;
337 
338     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,SIP_NULLPTR,sipName_DeleteRows);
339 
340     if (!sipMeth)
341         return  ::wxGridStringTable::DeleteRows(pos,numRows);
342 
343     extern bool sipVH__grid_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t,size_t);
344 
345     return sipVH__grid_33(sipGILState, 0, sipPySelf, sipMeth, pos, numRows);
346 }
347 
InsertCols(size_t pos,size_t numCols)348 bool sipwxGridStringTable::InsertCols(size_t pos,size_t numCols)
349 {
350     sip_gilstate_t sipGILState;
351     PyObject *sipMeth;
352 
353     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_InsertCols);
354 
355     if (!sipMeth)
356         return  ::wxGridStringTable::InsertCols(pos,numCols);
357 
358     extern bool sipVH__grid_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t,size_t);
359 
360     return sipVH__grid_33(sipGILState, 0, sipPySelf, sipMeth, pos, numCols);
361 }
362 
AppendCols(size_t numCols)363 bool sipwxGridStringTable::AppendCols(size_t numCols)
364 {
365     sip_gilstate_t sipGILState;
366     PyObject *sipMeth;
367 
368     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_AppendCols);
369 
370     if (!sipMeth)
371         return  ::wxGridStringTable::AppendCols(numCols);
372 
373     extern bool sipVH__grid_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t);
374 
375     return sipVH__grid_34(sipGILState, 0, sipPySelf, sipMeth, numCols);
376 }
377 
DeleteCols(size_t pos,size_t numCols)378 bool sipwxGridStringTable::DeleteCols(size_t pos,size_t numCols)
379 {
380     sip_gilstate_t sipGILState;
381     PyObject *sipMeth;
382 
383     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_DeleteCols);
384 
385     if (!sipMeth)
386         return  ::wxGridStringTable::DeleteCols(pos,numCols);
387 
388     extern bool sipVH__grid_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t,size_t);
389 
390     return sipVH__grid_33(sipGILState, 0, sipPySelf, sipMeth, pos, numCols);
391 }
392 
GetRowLabelValue(int row)393  ::wxString sipwxGridStringTable::GetRowLabelValue(int row)
394 {
395     sip_gilstate_t sipGILState;
396     PyObject *sipMeth;
397 
398     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_GetRowLabelValue);
399 
400     if (!sipMeth)
401         return  ::wxGridStringTable::GetRowLabelValue(row);
402 
403     extern  ::wxString sipVH__grid_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);
404 
405     return sipVH__grid_35(sipGILState, 0, sipPySelf, sipMeth, row);
406 }
407 
GetColLabelValue(int col)408  ::wxString sipwxGridStringTable::GetColLabelValue(int col)
409 {
410     sip_gilstate_t sipGILState;
411     PyObject *sipMeth;
412 
413     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_GetColLabelValue);
414 
415     if (!sipMeth)
416         return  ::wxGridStringTable::GetColLabelValue(col);
417 
418     extern  ::wxString sipVH__grid_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);
419 
420     return sipVH__grid_35(sipGILState, 0, sipPySelf, sipMeth, col);
421 }
422 
SetRowLabelValue(int row,const::wxString & label)423 void sipwxGridStringTable::SetRowLabelValue(int row,const  ::wxString& label)
424 {
425     sip_gilstate_t sipGILState;
426     PyObject *sipMeth;
427 
428     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_SetRowLabelValue);
429 
430     if (!sipMeth)
431     {
432          ::wxGridStringTable::SetRowLabelValue(row,label);
433         return;
434     }
435 
436     extern void sipVH__grid_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const  ::wxString&);
437 
438     sipVH__grid_36(sipGILState, 0, sipPySelf, sipMeth, row, label);
439 }
440 
SetColLabelValue(int col,const::wxString & label)441 void sipwxGridStringTable::SetColLabelValue(int col,const  ::wxString& label)
442 {
443     sip_gilstate_t sipGILState;
444     PyObject *sipMeth;
445 
446     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_SetColLabelValue);
447 
448     if (!sipMeth)
449     {
450          ::wxGridStringTable::SetColLabelValue(col,label);
451         return;
452     }
453 
454     extern void sipVH__grid_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const  ::wxString&);
455 
456     sipVH__grid_36(sipGILState, 0, sipPySelf, sipMeth, col, label);
457 }
458 
GetAttr(int row,int col,::wxGridCellAttr::wxAttrKind kind)459  ::wxGridCellAttr* sipwxGridStringTable::GetAttr(int row,int col, ::wxGridCellAttr::wxAttrKind kind)
460 {
461     sip_gilstate_t sipGILState;
462     PyObject *sipMeth;
463 
464     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_GetAttr);
465 
466     if (!sipMeth)
467         return  ::wxGridStringTable::GetAttr(row,col,kind);
468 
469     extern  ::wxGridCellAttr* sipVH__grid_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int, ::wxGridCellAttr::wxAttrKind);
470 
471     return sipVH__grid_22(sipGILState, 0, sipPySelf, sipMeth, row, col, kind);
472 }
473 
SetAttr(::wxGridCellAttr * attr,int row,int col)474 void sipwxGridStringTable::SetAttr( ::wxGridCellAttr*attr,int row,int col)
475 {
476     sip_gilstate_t sipGILState;
477     PyObject *sipMeth;
478 
479     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,SIP_NULLPTR,sipName_SetAttr);
480 
481     if (!sipMeth)
482     {
483          ::wxGridStringTable::SetAttr(attr,row,col);
484         return;
485     }
486 
487     extern void sipVH__grid_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxGridCellAttr*,int,int);
488 
489     sipVH__grid_17(sipGILState, 0, sipPySelf, sipMeth, attr, row, col);
490 }
491 
SetRowAttr(::wxGridCellAttr * attr,int row)492 void sipwxGridStringTable::SetRowAttr( ::wxGridCellAttr*attr,int row)
493 {
494     sip_gilstate_t sipGILState;
495     PyObject *sipMeth;
496 
497     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,SIP_NULLPTR,sipName_SetRowAttr);
498 
499     if (!sipMeth)
500     {
501          ::wxGridStringTable::SetRowAttr(attr,row);
502         return;
503     }
504 
505     extern void sipVH__grid_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxGridCellAttr*,int);
506 
507     sipVH__grid_18(sipGILState, 0, sipPySelf, sipMeth, attr, row);
508 }
509 
SetColAttr(::wxGridCellAttr * attr,int col)510 void sipwxGridStringTable::SetColAttr( ::wxGridCellAttr*attr,int col)
511 {
512     sip_gilstate_t sipGILState;
513     PyObject *sipMeth;
514 
515     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,SIP_NULLPTR,sipName_SetColAttr);
516 
517     if (!sipMeth)
518     {
519          ::wxGridStringTable::SetColAttr(attr,col);
520         return;
521     }
522 
523     extern void sipVH__grid_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxGridCellAttr*,int);
524 
525     sipVH__grid_18(sipGILState, 0, sipPySelf, sipMeth, attr, col);
526 }
527 
GetNumberRows()528 int sipwxGridStringTable::GetNumberRows()
529 {
530     sip_gilstate_t sipGILState;
531     PyObject *sipMeth;
532 
533     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_GetNumberRows);
534 
535     if (!sipMeth)
536         return  ::wxGridStringTable::GetNumberRows();
537 
538     extern int sipVH__grid_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
539 
540     return sipVH__grid_37(sipGILState, 0, sipPySelf, sipMeth);
541 }
542 
GetNumberCols()543 int sipwxGridStringTable::GetNumberCols()
544 {
545     sip_gilstate_t sipGILState;
546     PyObject *sipMeth;
547 
548     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,SIP_NULLPTR,sipName_GetNumberCols);
549 
550     if (!sipMeth)
551         return  ::wxGridStringTable::GetNumberCols();
552 
553     extern int sipVH__grid_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
554 
555     return sipVH__grid_37(sipGILState, 0, sipPySelf, sipMeth);
556 }
557 
SetView(::wxGrid * grid)558 void sipwxGridStringTable::SetView( ::wxGrid*grid)
559 {
560     sip_gilstate_t sipGILState;
561     PyObject *sipMeth;
562 
563     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,SIP_NULLPTR,sipName_SetView);
564 
565     if (!sipMeth)
566     {
567          ::wxGridStringTable::SetView(grid);
568         return;
569     }
570 
571     extern void sipVH__grid_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxGrid*);
572 
573     sipVH__grid_38(sipGILState, 0, sipPySelf, sipMeth, grid);
574 }
575 
GetView() const576  ::wxGrid* sipwxGridStringTable::GetView() const
577 {
578     sip_gilstate_t sipGILState;
579     PyObject *sipMeth;
580 
581     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,SIP_NULLPTR,sipName_GetView);
582 
583     if (!sipMeth)
584         return  ::wxGridStringTable::GetView();
585 
586     extern  ::wxGrid* sipVH__grid_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
587 
588     return sipVH__grid_39(sipGILState, 0, sipPySelf, sipMeth);
589 }
590 
CanHaveAttributes()591 bool sipwxGridStringTable::CanHaveAttributes()
592 {
593     sip_gilstate_t sipGILState;
594     PyObject *sipMeth;
595 
596     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,SIP_NULLPTR,sipName_CanHaveAttributes);
597 
598     if (!sipMeth)
599         return  ::wxGridStringTable::CanHaveAttributes();
600 
601     extern bool sipVH__grid_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
602 
603     return sipVH__grid_40(sipGILState, 0, sipPySelf, sipMeth);
604 }
605 
606 
607 PyDoc_STRVAR(doc_wxGridStringTable_GetNumberRows, "GetNumberRows() -> int\n"
608 "\n"
609 "Must be overridden to return the number of rows in the table.");
610 
611 extern "C" {static PyObject *meth_wxGridStringTable_GetNumberRows(PyObject *, PyObject *);}
meth_wxGridStringTable_GetNumberRows(PyObject * sipSelf,PyObject * sipArgs)612 static PyObject *meth_wxGridStringTable_GetNumberRows(PyObject *sipSelf, PyObject *sipArgs)
613 {
614     PyObject *sipParseErr = SIP_NULLPTR;
615     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
616 
617     {
618          ::wxGridStringTable *sipCpp;
619 
620         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridStringTable, &sipCpp))
621         {
622             int sipRes;
623 
624             PyErr_Clear();
625 
626             Py_BEGIN_ALLOW_THREADS
627             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::GetNumberRows() : sipCpp->GetNumberRows());
628             Py_END_ALLOW_THREADS
629 
630             if (PyErr_Occurred())
631                 return 0;
632 
633             return SIPLong_FromLong(sipRes);
634         }
635     }
636 
637     /* Raise an exception if the arguments couldn't be parsed. */
638     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_GetNumberRows, SIP_NULLPTR);
639 
640     return SIP_NULLPTR;
641 }
642 
643 
644 PyDoc_STRVAR(doc_wxGridStringTable_GetNumberCols, "GetNumberCols() -> int\n"
645 "\n"
646 "Must be overridden to return the number of columns in the table.");
647 
648 extern "C" {static PyObject *meth_wxGridStringTable_GetNumberCols(PyObject *, PyObject *);}
meth_wxGridStringTable_GetNumberCols(PyObject * sipSelf,PyObject * sipArgs)649 static PyObject *meth_wxGridStringTable_GetNumberCols(PyObject *sipSelf, PyObject *sipArgs)
650 {
651     PyObject *sipParseErr = SIP_NULLPTR;
652     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
653 
654     {
655          ::wxGridStringTable *sipCpp;
656 
657         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridStringTable, &sipCpp))
658         {
659             int sipRes;
660 
661             PyErr_Clear();
662 
663             Py_BEGIN_ALLOW_THREADS
664             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::GetNumberCols() : sipCpp->GetNumberCols());
665             Py_END_ALLOW_THREADS
666 
667             if (PyErr_Occurred())
668                 return 0;
669 
670             return SIPLong_FromLong(sipRes);
671         }
672     }
673 
674     /* Raise an exception if the arguments couldn't be parsed. */
675     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_GetNumberCols, SIP_NULLPTR);
676 
677     return SIP_NULLPTR;
678 }
679 
680 
681 PyDoc_STRVAR(doc_wxGridStringTable_GetValue, "GetValue(row, col) -> String\n"
682 "\n"
683 "Must be overridden to implement accessing the table values as text.");
684 
685 extern "C" {static PyObject *meth_wxGridStringTable_GetValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_GetValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)686 static PyObject *meth_wxGridStringTable_GetValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
687 {
688     PyObject *sipParseErr = SIP_NULLPTR;
689     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
690 
691     {
692         int row;
693         int col;
694          ::wxGridStringTable *sipCpp;
695 
696         static const char *sipKwdList[] = {
697             sipName_row,
698             sipName_col,
699         };
700 
701         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxGridStringTable, &sipCpp, &row, &col))
702         {
703              ::wxString*sipRes;
704 
705             PyErr_Clear();
706 
707             Py_BEGIN_ALLOW_THREADS
708             sipRes = new  ::wxString((sipSelfWasArg ? sipCpp-> ::wxGridStringTable::GetValue(row,col) : sipCpp->GetValue(row,col)));
709             Py_END_ALLOW_THREADS
710 
711             if (PyErr_Occurred())
712                 return 0;
713 
714             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
715         }
716     }
717 
718     /* Raise an exception if the arguments couldn't be parsed. */
719     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_GetValue, SIP_NULLPTR);
720 
721     return SIP_NULLPTR;
722 }
723 
724 
725 PyDoc_STRVAR(doc_wxGridStringTable_SetValue, "SetValue(row, col, value)\n"
726 "\n"
727 "Must be overridden to implement setting the table values as text.");
728 
729 extern "C" {static PyObject *meth_wxGridStringTable_SetValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_SetValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)730 static PyObject *meth_wxGridStringTable_SetValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
731 {
732     PyObject *sipParseErr = SIP_NULLPTR;
733     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
734 
735     {
736         int row;
737         int col;
738         const  ::wxString* value;
739         int valueState = 0;
740          ::wxGridStringTable *sipCpp;
741 
742         static const char *sipKwdList[] = {
743             sipName_row,
744             sipName_col,
745             sipName_value,
746         };
747 
748         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiiJ1", &sipSelf, sipType_wxGridStringTable, &sipCpp, &row, &col, sipType_wxString,&value, &valueState))
749         {
750             PyErr_Clear();
751 
752             Py_BEGIN_ALLOW_THREADS
753             (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::SetValue(row,col,*value) : sipCpp->SetValue(row,col,*value));
754             Py_END_ALLOW_THREADS
755             sipReleaseType(const_cast< ::wxString *>(value),sipType_wxString,valueState);
756 
757             if (PyErr_Occurred())
758                 return 0;
759 
760             Py_INCREF(Py_None);
761             return Py_None;
762         }
763     }
764 
765     /* Raise an exception if the arguments couldn't be parsed. */
766     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_SetValue, SIP_NULLPTR);
767 
768     return SIP_NULLPTR;
769 }
770 
771 
772 PyDoc_STRVAR(doc_wxGridStringTable_Clear, "Clear()\n"
773 "\n"
774 "Clear the table contents.");
775 
776 extern "C" {static PyObject *meth_wxGridStringTable_Clear(PyObject *, PyObject *);}
meth_wxGridStringTable_Clear(PyObject * sipSelf,PyObject * sipArgs)777 static PyObject *meth_wxGridStringTable_Clear(PyObject *sipSelf, PyObject *sipArgs)
778 {
779     PyObject *sipParseErr = SIP_NULLPTR;
780     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
781 
782     {
783          ::wxGridStringTable *sipCpp;
784 
785         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridStringTable, &sipCpp))
786         {
787             PyErr_Clear();
788 
789             Py_BEGIN_ALLOW_THREADS
790             (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::Clear() : sipCpp->Clear());
791             Py_END_ALLOW_THREADS
792 
793             if (PyErr_Occurred())
794                 return 0;
795 
796             Py_INCREF(Py_None);
797             return Py_None;
798         }
799     }
800 
801     /* Raise an exception if the arguments couldn't be parsed. */
802     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_Clear, SIP_NULLPTR);
803 
804     return SIP_NULLPTR;
805 }
806 
807 
808 PyDoc_STRVAR(doc_wxGridStringTable_InsertRows, "InsertRows(pos=0, numRows=1) -> bool\n"
809 "\n"
810 "Insert additional rows into the table.");
811 
812 extern "C" {static PyObject *meth_wxGridStringTable_InsertRows(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_InsertRows(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)813 static PyObject *meth_wxGridStringTable_InsertRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
814 {
815     PyObject *sipParseErr = SIP_NULLPTR;
816     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
817 
818     {
819         size_t pos = 0;
820         size_t numRows = 1;
821          ::wxGridStringTable *sipCpp;
822 
823         static const char *sipKwdList[] = {
824             sipName_pos,
825             sipName_numRows,
826         };
827 
828         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|==", &sipSelf, sipType_wxGridStringTable, &sipCpp, &pos, &numRows))
829         {
830             bool sipRes;
831 
832             PyErr_Clear();
833 
834             Py_BEGIN_ALLOW_THREADS
835             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::InsertRows(pos,numRows) : sipCpp->InsertRows(pos,numRows));
836             Py_END_ALLOW_THREADS
837 
838             if (PyErr_Occurred())
839                 return 0;
840 
841             return PyBool_FromLong(sipRes);
842         }
843     }
844 
845     /* Raise an exception if the arguments couldn't be parsed. */
846     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_InsertRows, SIP_NULLPTR);
847 
848     return SIP_NULLPTR;
849 }
850 
851 
852 PyDoc_STRVAR(doc_wxGridStringTable_AppendRows, "AppendRows(numRows=1) -> bool\n"
853 "\n"
854 "Append additional rows at the end of the table.");
855 
856 extern "C" {static PyObject *meth_wxGridStringTable_AppendRows(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_AppendRows(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)857 static PyObject *meth_wxGridStringTable_AppendRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
858 {
859     PyObject *sipParseErr = SIP_NULLPTR;
860     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
861 
862     {
863         size_t numRows = 1;
864          ::wxGridStringTable *sipCpp;
865 
866         static const char *sipKwdList[] = {
867             sipName_numRows,
868         };
869 
870         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|=", &sipSelf, sipType_wxGridStringTable, &sipCpp, &numRows))
871         {
872             bool sipRes;
873 
874             PyErr_Clear();
875 
876             Py_BEGIN_ALLOW_THREADS
877             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::AppendRows(numRows) : sipCpp->AppendRows(numRows));
878             Py_END_ALLOW_THREADS
879 
880             if (PyErr_Occurred())
881                 return 0;
882 
883             return PyBool_FromLong(sipRes);
884         }
885     }
886 
887     /* Raise an exception if the arguments couldn't be parsed. */
888     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_AppendRows, SIP_NULLPTR);
889 
890     return SIP_NULLPTR;
891 }
892 
893 
894 PyDoc_STRVAR(doc_wxGridStringTable_DeleteRows, "DeleteRows(pos=0, numRows=1) -> bool\n"
895 "\n"
896 "Delete rows from the table.");
897 
898 extern "C" {static PyObject *meth_wxGridStringTable_DeleteRows(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_DeleteRows(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)899 static PyObject *meth_wxGridStringTable_DeleteRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
900 {
901     PyObject *sipParseErr = SIP_NULLPTR;
902     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
903 
904     {
905         size_t pos = 0;
906         size_t numRows = 1;
907          ::wxGridStringTable *sipCpp;
908 
909         static const char *sipKwdList[] = {
910             sipName_pos,
911             sipName_numRows,
912         };
913 
914         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|==", &sipSelf, sipType_wxGridStringTable, &sipCpp, &pos, &numRows))
915         {
916             bool sipRes;
917 
918             PyErr_Clear();
919 
920             Py_BEGIN_ALLOW_THREADS
921             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::DeleteRows(pos,numRows) : sipCpp->DeleteRows(pos,numRows));
922             Py_END_ALLOW_THREADS
923 
924             if (PyErr_Occurred())
925                 return 0;
926 
927             return PyBool_FromLong(sipRes);
928         }
929     }
930 
931     /* Raise an exception if the arguments couldn't be parsed. */
932     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_DeleteRows, SIP_NULLPTR);
933 
934     return SIP_NULLPTR;
935 }
936 
937 
938 PyDoc_STRVAR(doc_wxGridStringTable_InsertCols, "InsertCols(pos=0, numCols=1) -> bool\n"
939 "\n"
940 "Exactly the same as InsertRows() but for columns.");
941 
942 extern "C" {static PyObject *meth_wxGridStringTable_InsertCols(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_InsertCols(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)943 static PyObject *meth_wxGridStringTable_InsertCols(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
944 {
945     PyObject *sipParseErr = SIP_NULLPTR;
946     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
947 
948     {
949         size_t pos = 0;
950         size_t numCols = 1;
951          ::wxGridStringTable *sipCpp;
952 
953         static const char *sipKwdList[] = {
954             sipName_pos,
955             sipName_numCols,
956         };
957 
958         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|==", &sipSelf, sipType_wxGridStringTable, &sipCpp, &pos, &numCols))
959         {
960             bool sipRes;
961 
962             PyErr_Clear();
963 
964             Py_BEGIN_ALLOW_THREADS
965             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::InsertCols(pos,numCols) : sipCpp->InsertCols(pos,numCols));
966             Py_END_ALLOW_THREADS
967 
968             if (PyErr_Occurred())
969                 return 0;
970 
971             return PyBool_FromLong(sipRes);
972         }
973     }
974 
975     /* Raise an exception if the arguments couldn't be parsed. */
976     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_InsertCols, SIP_NULLPTR);
977 
978     return SIP_NULLPTR;
979 }
980 
981 
982 PyDoc_STRVAR(doc_wxGridStringTable_AppendCols, "AppendCols(numCols=1) -> bool\n"
983 "\n"
984 "Exactly the same as AppendRows() but for columns.");
985 
986 extern "C" {static PyObject *meth_wxGridStringTable_AppendCols(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_AppendCols(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)987 static PyObject *meth_wxGridStringTable_AppendCols(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
988 {
989     PyObject *sipParseErr = SIP_NULLPTR;
990     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
991 
992     {
993         size_t numCols = 1;
994          ::wxGridStringTable *sipCpp;
995 
996         static const char *sipKwdList[] = {
997             sipName_numCols,
998         };
999 
1000         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|=", &sipSelf, sipType_wxGridStringTable, &sipCpp, &numCols))
1001         {
1002             bool sipRes;
1003 
1004             PyErr_Clear();
1005 
1006             Py_BEGIN_ALLOW_THREADS
1007             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::AppendCols(numCols) : sipCpp->AppendCols(numCols));
1008             Py_END_ALLOW_THREADS
1009 
1010             if (PyErr_Occurred())
1011                 return 0;
1012 
1013             return PyBool_FromLong(sipRes);
1014         }
1015     }
1016 
1017     /* Raise an exception if the arguments couldn't be parsed. */
1018     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_AppendCols, SIP_NULLPTR);
1019 
1020     return SIP_NULLPTR;
1021 }
1022 
1023 
1024 PyDoc_STRVAR(doc_wxGridStringTable_DeleteCols, "DeleteCols(pos=0, numCols=1) -> bool\n"
1025 "\n"
1026 "Exactly the same as DeleteRows() but for columns.");
1027 
1028 extern "C" {static PyObject *meth_wxGridStringTable_DeleteCols(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_DeleteCols(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1029 static PyObject *meth_wxGridStringTable_DeleteCols(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1030 {
1031     PyObject *sipParseErr = SIP_NULLPTR;
1032     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1033 
1034     {
1035         size_t pos = 0;
1036         size_t numCols = 1;
1037          ::wxGridStringTable *sipCpp;
1038 
1039         static const char *sipKwdList[] = {
1040             sipName_pos,
1041             sipName_numCols,
1042         };
1043 
1044         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|==", &sipSelf, sipType_wxGridStringTable, &sipCpp, &pos, &numCols))
1045         {
1046             bool sipRes;
1047 
1048             PyErr_Clear();
1049 
1050             Py_BEGIN_ALLOW_THREADS
1051             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::DeleteCols(pos,numCols) : sipCpp->DeleteCols(pos,numCols));
1052             Py_END_ALLOW_THREADS
1053 
1054             if (PyErr_Occurred())
1055                 return 0;
1056 
1057             return PyBool_FromLong(sipRes);
1058         }
1059     }
1060 
1061     /* Raise an exception if the arguments couldn't be parsed. */
1062     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_DeleteCols, SIP_NULLPTR);
1063 
1064     return SIP_NULLPTR;
1065 }
1066 
1067 
1068 PyDoc_STRVAR(doc_wxGridStringTable_SetRowLabelValue, "SetRowLabelValue(row, label)\n"
1069 "\n"
1070 "Set the given label for the specified row.");
1071 
1072 extern "C" {static PyObject *meth_wxGridStringTable_SetRowLabelValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_SetRowLabelValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1073 static PyObject *meth_wxGridStringTable_SetRowLabelValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1074 {
1075     PyObject *sipParseErr = SIP_NULLPTR;
1076     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1077 
1078     {
1079         int row;
1080         const  ::wxString* label;
1081         int labelState = 0;
1082          ::wxGridStringTable *sipCpp;
1083 
1084         static const char *sipKwdList[] = {
1085             sipName_row,
1086             sipName_label,
1087         };
1088 
1089         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1", &sipSelf, sipType_wxGridStringTable, &sipCpp, &row, sipType_wxString,&label, &labelState))
1090         {
1091             PyErr_Clear();
1092 
1093             Py_BEGIN_ALLOW_THREADS
1094             (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::SetRowLabelValue(row,*label) : sipCpp->SetRowLabelValue(row,*label));
1095             Py_END_ALLOW_THREADS
1096             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1097 
1098             if (PyErr_Occurred())
1099                 return 0;
1100 
1101             Py_INCREF(Py_None);
1102             return Py_None;
1103         }
1104     }
1105 
1106     /* Raise an exception if the arguments couldn't be parsed. */
1107     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_SetRowLabelValue, SIP_NULLPTR);
1108 
1109     return SIP_NULLPTR;
1110 }
1111 
1112 
1113 PyDoc_STRVAR(doc_wxGridStringTable_SetColLabelValue, "SetColLabelValue(col, label)\n"
1114 "\n"
1115 "Exactly the same as SetRowLabelValue() but for columns.");
1116 
1117 extern "C" {static PyObject *meth_wxGridStringTable_SetColLabelValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_SetColLabelValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1118 static PyObject *meth_wxGridStringTable_SetColLabelValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1119 {
1120     PyObject *sipParseErr = SIP_NULLPTR;
1121     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1122 
1123     {
1124         int col;
1125         const  ::wxString* label;
1126         int labelState = 0;
1127          ::wxGridStringTable *sipCpp;
1128 
1129         static const char *sipKwdList[] = {
1130             sipName_col,
1131             sipName_label,
1132         };
1133 
1134         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1", &sipSelf, sipType_wxGridStringTable, &sipCpp, &col, sipType_wxString,&label, &labelState))
1135         {
1136             PyErr_Clear();
1137 
1138             Py_BEGIN_ALLOW_THREADS
1139             (sipSelfWasArg ? sipCpp-> ::wxGridStringTable::SetColLabelValue(col,*label) : sipCpp->SetColLabelValue(col,*label));
1140             Py_END_ALLOW_THREADS
1141             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1142 
1143             if (PyErr_Occurred())
1144                 return 0;
1145 
1146             Py_INCREF(Py_None);
1147             return Py_None;
1148         }
1149     }
1150 
1151     /* Raise an exception if the arguments couldn't be parsed. */
1152     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_SetColLabelValue, SIP_NULLPTR);
1153 
1154     return SIP_NULLPTR;
1155 }
1156 
1157 
1158 PyDoc_STRVAR(doc_wxGridStringTable_GetRowLabelValue, "GetRowLabelValue(row) -> String\n"
1159 "\n"
1160 "Return the label of the specified row.");
1161 
1162 extern "C" {static PyObject *meth_wxGridStringTable_GetRowLabelValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_GetRowLabelValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1163 static PyObject *meth_wxGridStringTable_GetRowLabelValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1164 {
1165     PyObject *sipParseErr = SIP_NULLPTR;
1166     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1167 
1168     {
1169         int row;
1170          ::wxGridStringTable *sipCpp;
1171 
1172         static const char *sipKwdList[] = {
1173             sipName_row,
1174         };
1175 
1176         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxGridStringTable, &sipCpp, &row))
1177         {
1178              ::wxString*sipRes;
1179 
1180             PyErr_Clear();
1181 
1182             Py_BEGIN_ALLOW_THREADS
1183             sipRes = new  ::wxString((sipSelfWasArg ? sipCpp-> ::wxGridStringTable::GetRowLabelValue(row) : sipCpp->GetRowLabelValue(row)));
1184             Py_END_ALLOW_THREADS
1185 
1186             if (PyErr_Occurred())
1187                 return 0;
1188 
1189             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
1190         }
1191     }
1192 
1193     /* Raise an exception if the arguments couldn't be parsed. */
1194     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_GetRowLabelValue, SIP_NULLPTR);
1195 
1196     return SIP_NULLPTR;
1197 }
1198 
1199 
1200 PyDoc_STRVAR(doc_wxGridStringTable_GetColLabelValue, "GetColLabelValue(col) -> String\n"
1201 "\n"
1202 "Return the label of the specified column.");
1203 
1204 extern "C" {static PyObject *meth_wxGridStringTable_GetColLabelValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridStringTable_GetColLabelValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1205 static PyObject *meth_wxGridStringTable_GetColLabelValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1206 {
1207     PyObject *sipParseErr = SIP_NULLPTR;
1208     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1209 
1210     {
1211         int col;
1212          ::wxGridStringTable *sipCpp;
1213 
1214         static const char *sipKwdList[] = {
1215             sipName_col,
1216         };
1217 
1218         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxGridStringTable, &sipCpp, &col))
1219         {
1220              ::wxString*sipRes;
1221 
1222             PyErr_Clear();
1223 
1224             Py_BEGIN_ALLOW_THREADS
1225             sipRes = new  ::wxString((sipSelfWasArg ? sipCpp-> ::wxGridStringTable::GetColLabelValue(col) : sipCpp->GetColLabelValue(col)));
1226             Py_END_ALLOW_THREADS
1227 
1228             if (PyErr_Occurred())
1229                 return 0;
1230 
1231             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
1232         }
1233     }
1234 
1235     /* Raise an exception if the arguments couldn't be parsed. */
1236     sipNoMethod(sipParseErr, sipName_GridStringTable, sipName_GetColLabelValue, SIP_NULLPTR);
1237 
1238     return SIP_NULLPTR;
1239 }
1240 
1241 
1242 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
1243 extern "C" {static void *cast_wxGridStringTable(void *, const sipTypeDef *);}
cast_wxGridStringTable(void * sipCppV,const sipTypeDef * targetType)1244 static void *cast_wxGridStringTable(void *sipCppV, const sipTypeDef *targetType)
1245 {
1246      ::wxGridStringTable *sipCpp = reinterpret_cast< ::wxGridStringTable *>(sipCppV);
1247 
1248     if (targetType == sipType_wxGridTableBase)
1249         return static_cast< ::wxGridTableBase *>(sipCpp);
1250 
1251     if (targetType == sipType_wxObject)
1252         return static_cast< ::wxObject *>(sipCpp);
1253 
1254     return sipCppV;
1255 }
1256 
1257 
1258 /* Call the instance's destructor. */
1259 extern "C" {static void release_wxGridStringTable(void *, int);}
release_wxGridStringTable(void * sipCppV,int sipState)1260 static void release_wxGridStringTable(void *sipCppV, int sipState)
1261 {
1262     Py_BEGIN_ALLOW_THREADS
1263 
1264     if (sipState & SIP_DERIVED_CLASS)
1265         delete reinterpret_cast<sipwxGridStringTable *>(sipCppV);
1266     else
1267         delete reinterpret_cast< ::wxGridStringTable *>(sipCppV);
1268 
1269     Py_END_ALLOW_THREADS
1270 }
1271 
1272 
1273 extern "C" {static void dealloc_wxGridStringTable(sipSimpleWrapper *);}
dealloc_wxGridStringTable(sipSimpleWrapper * sipSelf)1274 static void dealloc_wxGridStringTable(sipSimpleWrapper *sipSelf)
1275 {
1276     if (sipIsDerivedClass(sipSelf))
1277         reinterpret_cast<sipwxGridStringTable *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
1278 
1279     if (sipIsOwnedByPython(sipSelf))
1280     {
1281         release_wxGridStringTable(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
1282     }
1283 }
1284 
1285 
1286 extern "C" {static void *init_type_wxGridStringTable(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxGridStringTable(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)1287 static void *init_type_wxGridStringTable(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
1288 {
1289     sipwxGridStringTable *sipCpp = SIP_NULLPTR;
1290 
1291     {
1292         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
1293         {
1294             PyErr_Clear();
1295 
1296             Py_BEGIN_ALLOW_THREADS
1297             sipCpp = new sipwxGridStringTable();
1298             Py_END_ALLOW_THREADS
1299 
1300             if (PyErr_Occurred())
1301             {
1302                 delete sipCpp;
1303                 return SIP_NULLPTR;
1304             }
1305 
1306             sipCpp->sipPySelf = sipSelf;
1307 
1308             return sipCpp;
1309         }
1310     }
1311 
1312     {
1313         int numRows;
1314         int numCols;
1315 
1316         static const char *sipKwdList[] = {
1317             sipName_numRows,
1318             sipName_numCols,
1319         };
1320 
1321         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "ii", &numRows, &numCols))
1322         {
1323             PyErr_Clear();
1324 
1325             Py_BEGIN_ALLOW_THREADS
1326             sipCpp = new sipwxGridStringTable(numRows,numCols);
1327             Py_END_ALLOW_THREADS
1328 
1329             if (PyErr_Occurred())
1330             {
1331                 delete sipCpp;
1332                 return SIP_NULLPTR;
1333             }
1334 
1335             sipCpp->sipPySelf = sipSelf;
1336 
1337             return sipCpp;
1338         }
1339     }
1340 
1341     return SIP_NULLPTR;
1342 }
1343 
1344 
1345 /* Define this type's super-types. */
1346 static sipEncodedTypeDef supers_wxGridStringTable[] = {{41, 255, 1}};
1347 
1348 
1349 static PyMethodDef methods_wxGridStringTable[] = {
1350     {SIP_MLNAME_CAST(sipName_AppendCols), SIP_MLMETH_CAST(meth_wxGridStringTable_AppendCols), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_AppendCols)},
1351     {SIP_MLNAME_CAST(sipName_AppendRows), SIP_MLMETH_CAST(meth_wxGridStringTable_AppendRows), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_AppendRows)},
1352     {SIP_MLNAME_CAST(sipName_Clear), meth_wxGridStringTable_Clear, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridStringTable_Clear)},
1353     {SIP_MLNAME_CAST(sipName_DeleteCols), SIP_MLMETH_CAST(meth_wxGridStringTable_DeleteCols), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_DeleteCols)},
1354     {SIP_MLNAME_CAST(sipName_DeleteRows), SIP_MLMETH_CAST(meth_wxGridStringTable_DeleteRows), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_DeleteRows)},
1355     {SIP_MLNAME_CAST(sipName_GetColLabelValue), SIP_MLMETH_CAST(meth_wxGridStringTable_GetColLabelValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_GetColLabelValue)},
1356     {SIP_MLNAME_CAST(sipName_GetNumberCols), meth_wxGridStringTable_GetNumberCols, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridStringTable_GetNumberCols)},
1357     {SIP_MLNAME_CAST(sipName_GetNumberRows), meth_wxGridStringTable_GetNumberRows, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridStringTable_GetNumberRows)},
1358     {SIP_MLNAME_CAST(sipName_GetRowLabelValue), SIP_MLMETH_CAST(meth_wxGridStringTable_GetRowLabelValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_GetRowLabelValue)},
1359     {SIP_MLNAME_CAST(sipName_GetValue), SIP_MLMETH_CAST(meth_wxGridStringTable_GetValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_GetValue)},
1360     {SIP_MLNAME_CAST(sipName_InsertCols), SIP_MLMETH_CAST(meth_wxGridStringTable_InsertCols), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_InsertCols)},
1361     {SIP_MLNAME_CAST(sipName_InsertRows), SIP_MLMETH_CAST(meth_wxGridStringTable_InsertRows), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_InsertRows)},
1362     {SIP_MLNAME_CAST(sipName_SetColLabelValue), SIP_MLMETH_CAST(meth_wxGridStringTable_SetColLabelValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_SetColLabelValue)},
1363     {SIP_MLNAME_CAST(sipName_SetRowLabelValue), SIP_MLMETH_CAST(meth_wxGridStringTable_SetRowLabelValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_SetRowLabelValue)},
1364     {SIP_MLNAME_CAST(sipName_SetValue), SIP_MLMETH_CAST(meth_wxGridStringTable_SetValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridStringTable_SetValue)}
1365 };
1366 
1367 sipVariableDef variables_wxGridStringTable[] = {
1368     {PropertyVariable, sipName_NumberRows, &methods_wxGridStringTable[7], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1369     {PropertyVariable, sipName_NumberCols, &methods_wxGridStringTable[6], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1370 };
1371 
1372 PyDoc_STRVAR(doc_wxGridStringTable, "GridStringTable()\n"
1373 "GridStringTable(numRows, numCols)\n"
1374 "\n"
1375 "Simplest type of data table for a grid for small tables of strings\n"
1376 "that are stored in memory.");
1377 
1378 
1379 sipClassTypeDef sipTypeDef__grid_wxGridStringTable = {
1380     {
1381         -1,
1382         SIP_NULLPTR,
1383         SIP_NULLPTR,
1384         SIP_TYPE_SCC|SIP_TYPE_CLASS,
1385         sipNameNr_wxGridStringTable,
1386         {SIP_NULLPTR},
1387         SIP_NULLPTR
1388     },
1389     {
1390         sipNameNr_GridStringTable,
1391         {0, 0, 1},
1392         15, methods_wxGridStringTable,
1393         0, SIP_NULLPTR,
1394         2, variables_wxGridStringTable,
1395         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1396     },
1397     doc_wxGridStringTable,
1398     -1,
1399     -1,
1400     supers_wxGridStringTable,
1401     SIP_NULLPTR,
1402     init_type_wxGridStringTable,
1403     SIP_NULLPTR,
1404     SIP_NULLPTR,
1405 #if PY_MAJOR_VERSION >= 3
1406     SIP_NULLPTR,
1407     SIP_NULLPTR,
1408 #else
1409     SIP_NULLPTR,
1410     SIP_NULLPTR,
1411     SIP_NULLPTR,
1412     SIP_NULLPTR,
1413 #endif
1414     dealloc_wxGridStringTable,
1415     SIP_NULLPTR,
1416     SIP_NULLPTR,
1417     SIP_NULLPTR,
1418     release_wxGridStringTable,
1419     cast_wxGridStringTable,
1420     SIP_NULLPTR,
1421     SIP_NULLPTR,
1422     SIP_NULLPTR,
1423     SIP_NULLPTR,
1424     SIP_NULLPTR,
1425     SIP_NULLPTR
1426 };
1427