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>
_wxGridTableBase_GetValue(wxGridTableBase * self,int row,int col)21     PyObject* _wxGridTableBase_GetValue(wxGridTableBase* self, int row, int col)
22     {
23         return wx2PyString(self->GetValue(row, col));
24     }
25 
26 
27 class sipwxGridTableBase : public  ::wxGridTableBase
28 {
29 public:
30     sipwxGridTableBase();
31     virtual ~sipwxGridTableBase();
32 
33     /*
34      * There is a protected method for every virtual method visible from
35      * this class.
36      */
37 protected:
38     bool CanHaveAttributes() SIP_OVERRIDE;
39      ::wxGrid* GetView() const SIP_OVERRIDE;
40     void SetView( ::wxGrid*) SIP_OVERRIDE;
41     int GetNumberCols() SIP_OVERRIDE;
42     int GetNumberRows() SIP_OVERRIDE;
43     void SetColAttr( ::wxGridCellAttr*,int) SIP_OVERRIDE;
44     void SetRowAttr( ::wxGridCellAttr*,int) SIP_OVERRIDE;
45     void SetAttr( ::wxGridCellAttr*,int,int) SIP_OVERRIDE;
46      ::wxGridCellAttr* GetAttr(int,int, ::wxGridCellAttr::wxAttrKind) SIP_OVERRIDE;
47     void SetColLabelValue(int,const  ::wxString&) SIP_OVERRIDE;
48     void SetRowLabelValue(int,const  ::wxString&) SIP_OVERRIDE;
49      ::wxString GetColLabelValue(int) SIP_OVERRIDE;
50      ::wxString GetRowLabelValue(int) SIP_OVERRIDE;
51     bool DeleteCols(size_t,size_t) SIP_OVERRIDE;
52     bool AppendCols(size_t) SIP_OVERRIDE;
53     bool InsertCols(size_t,size_t) SIP_OVERRIDE;
54     bool DeleteRows(size_t,size_t) SIP_OVERRIDE;
55     bool AppendRows(size_t) SIP_OVERRIDE;
56     bool InsertRows(size_t,size_t) SIP_OVERRIDE;
57     void Clear() SIP_OVERRIDE;
58     void SetValueAsBool(int,int,bool) SIP_OVERRIDE;
59     void SetValueAsDouble(int,int,double) SIP_OVERRIDE;
60     void SetValueAsLong(int,int,long) SIP_OVERRIDE;
61     bool GetValueAsBool(int,int) SIP_OVERRIDE;
62     double GetValueAsDouble(int,int) SIP_OVERRIDE;
63     long GetValueAsLong(int,int) SIP_OVERRIDE;
64     bool CanSetValueAs(int,int,const  ::wxString&) SIP_OVERRIDE;
65     bool CanGetValueAs(int,int,const  ::wxString&) SIP_OVERRIDE;
66      ::wxString GetTypeName(int,int) SIP_OVERRIDE;
67     void SetValue(int,int,const  ::wxString&) SIP_OVERRIDE;
68      ::wxString GetValue(int,int) SIP_OVERRIDE;
69     bool IsEmptyCell(int,int) SIP_OVERRIDE;
70 
71 public:
72     sipSimpleWrapper *sipPySelf;
73 
74 private:
75     sipwxGridTableBase(const sipwxGridTableBase &);
76     sipwxGridTableBase &operator = (const sipwxGridTableBase &);
77 
78     char sipPyMethods[32];
79 };
80 
sipwxGridTableBase()81 sipwxGridTableBase::sipwxGridTableBase():  ::wxGridTableBase(), sipPySelf(SIP_NULLPTR)
82 {
83     memset(sipPyMethods, 0, sizeof (sipPyMethods));
84 }
85 
~sipwxGridTableBase()86 sipwxGridTableBase::~sipwxGridTableBase()
87 {
88     sipInstanceDestroyedEx(&sipPySelf);
89 }
90 
CanHaveAttributes()91 bool sipwxGridTableBase::CanHaveAttributes()
92 {
93     sip_gilstate_t sipGILState;
94     PyObject *sipMeth;
95 
96     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_CanHaveAttributes);
97 
98     if (!sipMeth)
99         return  ::wxGridTableBase::CanHaveAttributes();
100 
101     extern bool sipVH__grid_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
102 
103     return sipVH__grid_40(sipGILState, 0, sipPySelf, sipMeth);
104 }
105 
GetView() const106  ::wxGrid* sipwxGridTableBase::GetView() const
107 {
108     sip_gilstate_t sipGILState;
109     PyObject *sipMeth;
110 
111     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,SIP_NULLPTR,sipName_GetView);
112 
113     if (!sipMeth)
114         return  ::wxGridTableBase::GetView();
115 
116     extern  ::wxGrid* sipVH__grid_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
117 
118     return sipVH__grid_39(sipGILState, 0, sipPySelf, sipMeth);
119 }
120 
SetView(::wxGrid * grid)121 void sipwxGridTableBase::SetView( ::wxGrid*grid)
122 {
123     sip_gilstate_t sipGILState;
124     PyObject *sipMeth;
125 
126     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_SetView);
127 
128     if (!sipMeth)
129     {
130          ::wxGridTableBase::SetView(grid);
131         return;
132     }
133 
134     extern void sipVH__grid_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxGrid*);
135 
136     sipVH__grid_38(sipGILState, 0, sipPySelf, sipMeth, grid);
137 }
138 
GetNumberCols()139 int sipwxGridTableBase::GetNumberCols()
140 {
141     sip_gilstate_t sipGILState;
142     PyObject *sipMeth;
143 
144     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_GridTableBase,sipName_GetNumberCols);
145 
146     if (!sipMeth)
147         return 0;
148 
149     extern int sipVH__grid_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
150 
151     return sipVH__grid_37(sipGILState, 0, sipPySelf, sipMeth);
152 }
153 
GetNumberRows()154 int sipwxGridTableBase::GetNumberRows()
155 {
156     sip_gilstate_t sipGILState;
157     PyObject *sipMeth;
158 
159     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_GridTableBase,sipName_GetNumberRows);
160 
161     if (!sipMeth)
162         return 0;
163 
164     extern int sipVH__grid_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
165 
166     return sipVH__grid_37(sipGILState, 0, sipPySelf, sipMeth);
167 }
168 
SetColAttr(::wxGridCellAttr * attr,int col)169 void sipwxGridTableBase::SetColAttr( ::wxGridCellAttr*attr,int col)
170 {
171     sip_gilstate_t sipGILState;
172     PyObject *sipMeth;
173 
174     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,SIP_NULLPTR,sipName_SetColAttr);
175 
176     if (!sipMeth)
177     {
178          ::wxGridTableBase::SetColAttr(attr,col);
179         return;
180     }
181 
182     extern void sipVH__grid_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxGridCellAttr*,int);
183 
184     sipVH__grid_18(sipGILState, 0, sipPySelf, sipMeth, attr, col);
185 }
186 
SetRowAttr(::wxGridCellAttr * attr,int row)187 void sipwxGridTableBase::SetRowAttr( ::wxGridCellAttr*attr,int row)
188 {
189     sip_gilstate_t sipGILState;
190     PyObject *sipMeth;
191 
192     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,SIP_NULLPTR,sipName_SetRowAttr);
193 
194     if (!sipMeth)
195     {
196          ::wxGridTableBase::SetRowAttr(attr,row);
197         return;
198     }
199 
200     extern void sipVH__grid_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxGridCellAttr*,int);
201 
202     sipVH__grid_18(sipGILState, 0, sipPySelf, sipMeth, attr, row);
203 }
204 
SetAttr(::wxGridCellAttr * attr,int row,int col)205 void sipwxGridTableBase::SetAttr( ::wxGridCellAttr*attr,int row,int col)
206 {
207     sip_gilstate_t sipGILState;
208     PyObject *sipMeth;
209 
210     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,SIP_NULLPTR,sipName_SetAttr);
211 
212     if (!sipMeth)
213     {
214          ::wxGridTableBase::SetAttr(attr,row,col);
215         return;
216     }
217 
218     extern void sipVH__grid_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxGridCellAttr*,int,int);
219 
220     sipVH__grid_17(sipGILState, 0, sipPySelf, sipMeth, attr, row, col);
221 }
222 
GetAttr(int row,int col,::wxGridCellAttr::wxAttrKind kind)223  ::wxGridCellAttr* sipwxGridTableBase::GetAttr(int row,int col, ::wxGridCellAttr::wxAttrKind kind)
224 {
225     sip_gilstate_t sipGILState;
226     PyObject *sipMeth;
227 
228     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,SIP_NULLPTR,sipName_GetAttr);
229 
230     if (!sipMeth)
231         return  ::wxGridTableBase::GetAttr(row,col,kind);
232 
233     extern  ::wxGridCellAttr* sipVH__grid_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int, ::wxGridCellAttr::wxAttrKind);
234 
235     return sipVH__grid_22(sipGILState, 0, sipPySelf, sipMeth, row, col, kind);
236 }
237 
SetColLabelValue(int col,const::wxString & label)238 void sipwxGridTableBase::SetColLabelValue(int col,const  ::wxString& label)
239 {
240     sip_gilstate_t sipGILState;
241     PyObject *sipMeth;
242 
243     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_SetColLabelValue);
244 
245     if (!sipMeth)
246     {
247          ::wxGridTableBase::SetColLabelValue(col,label);
248         return;
249     }
250 
251     extern void sipVH__grid_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const  ::wxString&);
252 
253     sipVH__grid_36(sipGILState, 0, sipPySelf, sipMeth, col, label);
254 }
255 
SetRowLabelValue(int row,const::wxString & label)256 void sipwxGridTableBase::SetRowLabelValue(int row,const  ::wxString& label)
257 {
258     sip_gilstate_t sipGILState;
259     PyObject *sipMeth;
260 
261     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,SIP_NULLPTR,sipName_SetRowLabelValue);
262 
263     if (!sipMeth)
264     {
265          ::wxGridTableBase::SetRowLabelValue(row,label);
266         return;
267     }
268 
269     extern void sipVH__grid_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const  ::wxString&);
270 
271     sipVH__grid_36(sipGILState, 0, sipPySelf, sipMeth, row, label);
272 }
273 
GetColLabelValue(int col)274  ::wxString sipwxGridTableBase::GetColLabelValue(int col)
275 {
276     sip_gilstate_t sipGILState;
277     PyObject *sipMeth;
278 
279     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_GetColLabelValue);
280 
281     if (!sipMeth)
282         return  ::wxGridTableBase::GetColLabelValue(col);
283 
284     extern  ::wxString sipVH__grid_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);
285 
286     return sipVH__grid_35(sipGILState, 0, sipPySelf, sipMeth, col);
287 }
288 
GetRowLabelValue(int row)289  ::wxString sipwxGridTableBase::GetRowLabelValue(int row)
290 {
291     sip_gilstate_t sipGILState;
292     PyObject *sipMeth;
293 
294     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,SIP_NULLPTR,sipName_GetRowLabelValue);
295 
296     if (!sipMeth)
297         return  ::wxGridTableBase::GetRowLabelValue(row);
298 
299     extern  ::wxString sipVH__grid_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);
300 
301     return sipVH__grid_35(sipGILState, 0, sipPySelf, sipMeth, row);
302 }
303 
DeleteCols(size_t pos,size_t numCols)304 bool sipwxGridTableBase::DeleteCols(size_t pos,size_t numCols)
305 {
306     sip_gilstate_t sipGILState;
307     PyObject *sipMeth;
308 
309     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,SIP_NULLPTR,sipName_DeleteCols);
310 
311     if (!sipMeth)
312         return  ::wxGridTableBase::DeleteCols(pos,numCols);
313 
314     extern bool sipVH__grid_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t,size_t);
315 
316     return sipVH__grid_33(sipGILState, 0, sipPySelf, sipMeth, pos, numCols);
317 }
318 
AppendCols(size_t numCols)319 bool sipwxGridTableBase::AppendCols(size_t numCols)
320 {
321     sip_gilstate_t sipGILState;
322     PyObject *sipMeth;
323 
324     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,SIP_NULLPTR,sipName_AppendCols);
325 
326     if (!sipMeth)
327         return  ::wxGridTableBase::AppendCols(numCols);
328 
329     extern bool sipVH__grid_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t);
330 
331     return sipVH__grid_34(sipGILState, 0, sipPySelf, sipMeth, numCols);
332 }
333 
InsertCols(size_t pos,size_t numCols)334 bool sipwxGridTableBase::InsertCols(size_t pos,size_t numCols)
335 {
336     sip_gilstate_t sipGILState;
337     PyObject *sipMeth;
338 
339     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,SIP_NULLPTR,sipName_InsertCols);
340 
341     if (!sipMeth)
342         return  ::wxGridTableBase::InsertCols(pos,numCols);
343 
344     extern bool sipVH__grid_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t,size_t);
345 
346     return sipVH__grid_33(sipGILState, 0, sipPySelf, sipMeth, pos, numCols);
347 }
348 
DeleteRows(size_t pos,size_t numRows)349 bool sipwxGridTableBase::DeleteRows(size_t pos,size_t numRows)
350 {
351     sip_gilstate_t sipGILState;
352     PyObject *sipMeth;
353 
354     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_DeleteRows);
355 
356     if (!sipMeth)
357         return  ::wxGridTableBase::DeleteRows(pos,numRows);
358 
359     extern bool sipVH__grid_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t,size_t);
360 
361     return sipVH__grid_33(sipGILState, 0, sipPySelf, sipMeth, pos, numRows);
362 }
363 
AppendRows(size_t numRows)364 bool sipwxGridTableBase::AppendRows(size_t numRows)
365 {
366     sip_gilstate_t sipGILState;
367     PyObject *sipMeth;
368 
369     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_AppendRows);
370 
371     if (!sipMeth)
372         return  ::wxGridTableBase::AppendRows(numRows);
373 
374     extern bool sipVH__grid_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t);
375 
376     return sipVH__grid_34(sipGILState, 0, sipPySelf, sipMeth, numRows);
377 }
378 
InsertRows(size_t pos,size_t numRows)379 bool sipwxGridTableBase::InsertRows(size_t pos,size_t numRows)
380 {
381     sip_gilstate_t sipGILState;
382     PyObject *sipMeth;
383 
384     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_InsertRows);
385 
386     if (!sipMeth)
387         return  ::wxGridTableBase::InsertRows(pos,numRows);
388 
389     extern bool sipVH__grid_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t,size_t);
390 
391     return sipVH__grid_33(sipGILState, 0, sipPySelf, sipMeth, pos, numRows);
392 }
393 
Clear()394 void sipwxGridTableBase::Clear()
395 {
396     sip_gilstate_t sipGILState;
397     PyObject *sipMeth;
398 
399     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_Clear);
400 
401     if (!sipMeth)
402     {
403          ::wxGridTableBase::Clear();
404         return;
405     }
406 
407     extern void sipVH__grid_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
408 
409     sipVH__grid_7(sipGILState, 0, sipPySelf, sipMeth);
410 }
411 
SetValueAsBool(int row,int col,bool value)412 void sipwxGridTableBase::SetValueAsBool(int row,int col,bool value)
413 {
414     sip_gilstate_t sipGILState;
415     PyObject *sipMeth;
416 
417     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_SetValueAsBool);
418 
419     if (!sipMeth)
420     {
421          ::wxGridTableBase::SetValueAsBool(row,col,value);
422         return;
423     }
424 
425     extern void sipVH__grid_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,bool);
426 
427     sipVH__grid_32(sipGILState, 0, sipPySelf, sipMeth, row, col, value);
428 }
429 
SetValueAsDouble(int row,int col,double value)430 void sipwxGridTableBase::SetValueAsDouble(int row,int col,double value)
431 {
432     sip_gilstate_t sipGILState;
433     PyObject *sipMeth;
434 
435     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_SetValueAsDouble);
436 
437     if (!sipMeth)
438     {
439          ::wxGridTableBase::SetValueAsDouble(row,col,value);
440         return;
441     }
442 
443     extern void sipVH__grid_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,double);
444 
445     sipVH__grid_31(sipGILState, 0, sipPySelf, sipMeth, row, col, value);
446 }
447 
SetValueAsLong(int row,int col,long value)448 void sipwxGridTableBase::SetValueAsLong(int row,int col,long value)
449 {
450     sip_gilstate_t sipGILState;
451     PyObject *sipMeth;
452 
453     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_SetValueAsLong);
454 
455     if (!sipMeth)
456     {
457          ::wxGridTableBase::SetValueAsLong(row,col,value);
458         return;
459     }
460 
461     extern void sipVH__grid_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,long);
462 
463     sipVH__grid_30(sipGILState, 0, sipPySelf, sipMeth, row, col, value);
464 }
465 
GetValueAsBool(int row,int col)466 bool sipwxGridTableBase::GetValueAsBool(int row,int col)
467 {
468     sip_gilstate_t sipGILState;
469     PyObject *sipMeth;
470 
471     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_GetValueAsBool);
472 
473     if (!sipMeth)
474         return  ::wxGridTableBase::GetValueAsBool(row,col);
475 
476     extern bool sipVH__grid_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
477 
478     return sipVH__grid_23(sipGILState, 0, sipPySelf, sipMeth, row, col);
479 }
480 
GetValueAsDouble(int row,int col)481 double sipwxGridTableBase::GetValueAsDouble(int row,int col)
482 {
483     sip_gilstate_t sipGILState;
484     PyObject *sipMeth;
485 
486     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,SIP_NULLPTR,sipName_GetValueAsDouble);
487 
488     if (!sipMeth)
489         return  ::wxGridTableBase::GetValueAsDouble(row,col);
490 
491     extern double sipVH__grid_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
492 
493     return sipVH__grid_29(sipGILState, 0, sipPySelf, sipMeth, row, col);
494 }
495 
GetValueAsLong(int row,int col)496 long sipwxGridTableBase::GetValueAsLong(int row,int col)
497 {
498     sip_gilstate_t sipGILState;
499     PyObject *sipMeth;
500 
501     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,SIP_NULLPTR,sipName_GetValueAsLong);
502 
503     if (!sipMeth)
504         return  ::wxGridTableBase::GetValueAsLong(row,col);
505 
506     extern long sipVH__grid_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
507 
508     return sipVH__grid_28(sipGILState, 0, sipPySelf, sipMeth, row, col);
509 }
510 
CanSetValueAs(int row,int col,const::wxString & typeName)511 bool sipwxGridTableBase::CanSetValueAs(int row,int col,const  ::wxString& typeName)
512 {
513     sip_gilstate_t sipGILState;
514     PyObject *sipMeth;
515 
516     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,SIP_NULLPTR,sipName_CanSetValueAs);
517 
518     if (!sipMeth)
519         return  ::wxGridTableBase::CanSetValueAs(row,col,typeName);
520 
521     extern bool sipVH__grid_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::wxString&);
522 
523     return sipVH__grid_27(sipGILState, 0, sipPySelf, sipMeth, row, col, typeName);
524 }
525 
CanGetValueAs(int row,int col,const::wxString & typeName)526 bool sipwxGridTableBase::CanGetValueAs(int row,int col,const  ::wxString& typeName)
527 {
528     sip_gilstate_t sipGILState;
529     PyObject *sipMeth;
530 
531     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_CanGetValueAs);
532 
533     if (!sipMeth)
534         return  ::wxGridTableBase::CanGetValueAs(row,col,typeName);
535 
536     extern bool sipVH__grid_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::wxString&);
537 
538     return sipVH__grid_27(sipGILState, 0, sipPySelf, sipMeth, row, col, typeName);
539 }
540 
GetTypeName(int row,int col)541  ::wxString sipwxGridTableBase::GetTypeName(int row,int col)
542 {
543     sip_gilstate_t sipGILState;
544     PyObject *sipMeth;
545 
546     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,SIP_NULLPTR,sipName_GetTypeName);
547 
548     if (!sipMeth)
549         return  ::wxGridTableBase::GetTypeName(row,col);
550 
551     extern  ::wxString sipVH__grid_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
552 
553     return sipVH__grid_26(sipGILState, 0, sipPySelf, sipMeth, row, col);
554 }
555 
SetValue(int row,int col,const::wxString & value)556 void sipwxGridTableBase::SetValue(int row,int col,const  ::wxString& value)
557 {
558     sip_gilstate_t sipGILState;
559     PyObject *sipMeth;
560 
561     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,sipName_GridTableBase,sipName_SetValue);
562 
563     if (!sipMeth)
564         return;
565 
566     extern void sipVH__grid_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const  ::wxString&);
567 
568     sipVH__grid_25(sipGILState, 0, sipPySelf, sipMeth, row, col, value);
569 }
570 
GetValue(int row,int col)571  ::wxString sipwxGridTableBase::GetValue(int row,int col)
572 {
573     sip_gilstate_t sipGILState;
574     PyObject *sipMeth;
575 
576     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,sipName_GridTableBase,sipName_GetValue);
577 
578     if (!sipMeth)
579         return  ::wxString();
580 
581     extern  ::wxString sipVH__grid_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
582 
583     return sipVH__grid_24(sipGILState, 0, sipPySelf, sipMeth, row, col);
584 }
585 
IsEmptyCell(int row,int col)586 bool sipwxGridTableBase::IsEmptyCell(int row,int col)
587 {
588     sip_gilstate_t sipGILState;
589     PyObject *sipMeth;
590 
591     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,SIP_NULLPTR,sipName_IsEmptyCell);
592 
593     if (!sipMeth)
594         return  ::wxGridTableBase::IsEmptyCell(row,col);
595 
596     extern bool sipVH__grid_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
597 
598     return sipVH__grid_23(sipGILState, 0, sipPySelf, sipMeth, row, col);
599 }
600 
601 
602 PyDoc_STRVAR(doc_wxGridTableBase_IsEmptyCell, "IsEmptyCell(row, col) -> bool\n"
603 "\n"
604 "May be overridden to implement testing for empty cells.");
605 
606 extern "C" {static PyObject *meth_wxGridTableBase_IsEmptyCell(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_IsEmptyCell(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)607 static PyObject *meth_wxGridTableBase_IsEmptyCell(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
608 {
609     PyObject *sipParseErr = SIP_NULLPTR;
610     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
611 
612     {
613         int row;
614         int col;
615          ::wxGridTableBase *sipCpp;
616 
617         static const char *sipKwdList[] = {
618             sipName_row,
619             sipName_col,
620         };
621 
622         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col))
623         {
624             bool sipRes;
625 
626             PyErr_Clear();
627 
628             Py_BEGIN_ALLOW_THREADS
629             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::IsEmptyCell(row,col) : sipCpp->IsEmptyCell(row,col));
630             Py_END_ALLOW_THREADS
631 
632             if (PyErr_Occurred())
633                 return 0;
634 
635             return PyBool_FromLong(sipRes);
636         }
637     }
638 
639     /* Raise an exception if the arguments couldn't be parsed. */
640     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_IsEmptyCell, SIP_NULLPTR);
641 
642     return SIP_NULLPTR;
643 }
644 
645 
646 PyDoc_STRVAR(doc_wxGridTableBase_IsEmpty, "IsEmpty(coords) -> bool\n"
647 "\n"
648 "Same as IsEmptyCell() but taking wxGridCellCoords.");
649 
650 extern "C" {static PyObject *meth_wxGridTableBase_IsEmpty(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_IsEmpty(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)651 static PyObject *meth_wxGridTableBase_IsEmpty(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
652 {
653     PyObject *sipParseErr = SIP_NULLPTR;
654 
655     {
656         const  ::wxGridCellCoords* coords;
657         int coordsState = 0;
658          ::wxGridTableBase *sipCpp;
659 
660         static const char *sipKwdList[] = {
661             sipName_coords,
662         };
663 
664         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxGridTableBase, &sipCpp, sipType_wxGridCellCoords, &coords, &coordsState))
665         {
666             bool sipRes;
667 
668             PyErr_Clear();
669 
670             Py_BEGIN_ALLOW_THREADS
671             sipRes = sipCpp->IsEmpty(*coords);
672             Py_END_ALLOW_THREADS
673             sipReleaseType(const_cast< ::wxGridCellCoords *>(coords),sipType_wxGridCellCoords,coordsState);
674 
675             if (PyErr_Occurred())
676                 return 0;
677 
678             return PyBool_FromLong(sipRes);
679         }
680     }
681 
682     /* Raise an exception if the arguments couldn't be parsed. */
683     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_IsEmpty, SIP_NULLPTR);
684 
685     return SIP_NULLPTR;
686 }
687 
688 
689 PyDoc_STRVAR(doc_wxGridTableBase_GetValue, "GetValue(row, col) -> PyObject\n"
690 "\n"
691 "Must be overridden to implement accessing the table values as text.");
692 
693 extern "C" {static PyObject *meth_wxGridTableBase_GetValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_GetValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)694 static PyObject *meth_wxGridTableBase_GetValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
695 {
696     PyObject *sipParseErr = SIP_NULLPTR;
697     PyObject *sipOrigSelf = sipSelf;
698 
699     {
700         int row;
701         int col;
702          ::wxGridTableBase *sipCpp;
703 
704         static const char *sipKwdList[] = {
705             sipName_row,
706             sipName_col,
707         };
708 
709         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col))
710         {
711             PyObject * sipRes = SIP_NULLPTR;
712             int sipIsErr = 0;
713 
714             if (!sipOrigSelf)
715             {
716                 sipAbstractMethod(sipName_GridTableBase, sipName_GetValue);
717                 return SIP_NULLPTR;
718             }
719 
720         PyErr_Clear();
721         Py_BEGIN_ALLOW_THREADS
722         sipRes = _wxGridTableBase_GetValue(sipCpp, row, col);
723         Py_END_ALLOW_THREADS
724         if (PyErr_Occurred()) sipIsErr = 1;
725 
726             if (sipIsErr)
727                 return 0;
728 
729             return sipRes;
730         }
731     }
732 
733     /* Raise an exception if the arguments couldn't be parsed. */
734     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetValue, SIP_NULLPTR);
735 
736     return SIP_NULLPTR;
737 }
738 
739 
740 PyDoc_STRVAR(doc_wxGridTableBase_SetValue, "SetValue(row, col, value)\n"
741 "\n"
742 "Must be overridden to implement setting the table values as text.");
743 
744 extern "C" {static PyObject *meth_wxGridTableBase_SetValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)745 static PyObject *meth_wxGridTableBase_SetValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
746 {
747     PyObject *sipParseErr = SIP_NULLPTR;
748     PyObject *sipOrigSelf = sipSelf;
749 
750     {
751         int row;
752         int col;
753         const  ::wxString* value;
754         int valueState = 0;
755          ::wxGridTableBase *sipCpp;
756 
757         static const char *sipKwdList[] = {
758             sipName_row,
759             sipName_col,
760             sipName_value,
761         };
762 
763         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiiJ1", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col, sipType_wxString,&value, &valueState))
764         {
765             if (!sipOrigSelf)
766             {
767                 sipAbstractMethod(sipName_GridTableBase, sipName_SetValue);
768                 return SIP_NULLPTR;
769             }
770 
771             PyErr_Clear();
772 
773             Py_BEGIN_ALLOW_THREADS
774             sipCpp->SetValue(row,col,*value);
775             Py_END_ALLOW_THREADS
776             sipReleaseType(const_cast< ::wxString *>(value),sipType_wxString,valueState);
777 
778             if (PyErr_Occurred())
779                 return 0;
780 
781             Py_INCREF(Py_None);
782             return Py_None;
783         }
784     }
785 
786     /* Raise an exception if the arguments couldn't be parsed. */
787     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetValue, SIP_NULLPTR);
788 
789     return SIP_NULLPTR;
790 }
791 
792 
793 PyDoc_STRVAR(doc_wxGridTableBase_GetTypeName, "GetTypeName(row, col) -> String\n"
794 "\n"
795 "Returns the type of the value in the given cell.");
796 
797 extern "C" {static PyObject *meth_wxGridTableBase_GetTypeName(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_GetTypeName(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)798 static PyObject *meth_wxGridTableBase_GetTypeName(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
799 {
800     PyObject *sipParseErr = SIP_NULLPTR;
801     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
802 
803     {
804         int row;
805         int col;
806          ::wxGridTableBase *sipCpp;
807 
808         static const char *sipKwdList[] = {
809             sipName_row,
810             sipName_col,
811         };
812 
813         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col))
814         {
815              ::wxString*sipRes;
816 
817             PyErr_Clear();
818 
819             Py_BEGIN_ALLOW_THREADS
820             sipRes = new  ::wxString((sipSelfWasArg ? sipCpp-> ::wxGridTableBase::GetTypeName(row,col) : sipCpp->GetTypeName(row,col)));
821             Py_END_ALLOW_THREADS
822 
823             if (PyErr_Occurred())
824                 return 0;
825 
826             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
827         }
828     }
829 
830     /* Raise an exception if the arguments couldn't be parsed. */
831     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetTypeName, SIP_NULLPTR);
832 
833     return SIP_NULLPTR;
834 }
835 
836 
837 PyDoc_STRVAR(doc_wxGridTableBase_CanGetValueAs, "CanGetValueAs(row, col, typeName) -> bool\n"
838 "\n"
839 "Returns true if the value of the given cell can be accessed as if it\n"
840 "were of the specified type.");
841 
842 extern "C" {static PyObject *meth_wxGridTableBase_CanGetValueAs(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_CanGetValueAs(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)843 static PyObject *meth_wxGridTableBase_CanGetValueAs(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
844 {
845     PyObject *sipParseErr = SIP_NULLPTR;
846     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
847 
848     {
849         int row;
850         int col;
851         const  ::wxString* typeName;
852         int typeNameState = 0;
853          ::wxGridTableBase *sipCpp;
854 
855         static const char *sipKwdList[] = {
856             sipName_row,
857             sipName_col,
858             sipName_typeName,
859         };
860 
861         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiiJ1", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col, sipType_wxString,&typeName, &typeNameState))
862         {
863             bool sipRes;
864 
865             PyErr_Clear();
866 
867             Py_BEGIN_ALLOW_THREADS
868             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::CanGetValueAs(row,col,*typeName) : sipCpp->CanGetValueAs(row,col,*typeName));
869             Py_END_ALLOW_THREADS
870             sipReleaseType(const_cast< ::wxString *>(typeName),sipType_wxString,typeNameState);
871 
872             if (PyErr_Occurred())
873                 return 0;
874 
875             return PyBool_FromLong(sipRes);
876         }
877     }
878 
879     /* Raise an exception if the arguments couldn't be parsed. */
880     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_CanGetValueAs, SIP_NULLPTR);
881 
882     return SIP_NULLPTR;
883 }
884 
885 
886 PyDoc_STRVAR(doc_wxGridTableBase_CanSetValueAs, "CanSetValueAs(row, col, typeName) -> bool\n"
887 "\n"
888 "Returns true if the value of the given cell can be set as if it were\n"
889 "of the specified type.");
890 
891 extern "C" {static PyObject *meth_wxGridTableBase_CanSetValueAs(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_CanSetValueAs(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)892 static PyObject *meth_wxGridTableBase_CanSetValueAs(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
893 {
894     PyObject *sipParseErr = SIP_NULLPTR;
895     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
896 
897     {
898         int row;
899         int col;
900         const  ::wxString* typeName;
901         int typeNameState = 0;
902          ::wxGridTableBase *sipCpp;
903 
904         static const char *sipKwdList[] = {
905             sipName_row,
906             sipName_col,
907             sipName_typeName,
908         };
909 
910         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiiJ1", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col, sipType_wxString,&typeName, &typeNameState))
911         {
912             bool sipRes;
913 
914             PyErr_Clear();
915 
916             Py_BEGIN_ALLOW_THREADS
917             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::CanSetValueAs(row,col,*typeName) : sipCpp->CanSetValueAs(row,col,*typeName));
918             Py_END_ALLOW_THREADS
919             sipReleaseType(const_cast< ::wxString *>(typeName),sipType_wxString,typeNameState);
920 
921             if (PyErr_Occurred())
922                 return 0;
923 
924             return PyBool_FromLong(sipRes);
925         }
926     }
927 
928     /* Raise an exception if the arguments couldn't be parsed. */
929     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_CanSetValueAs, SIP_NULLPTR);
930 
931     return SIP_NULLPTR;
932 }
933 
934 
935 PyDoc_STRVAR(doc_wxGridTableBase_GetValueAsLong, "GetValueAsLong(row, col) -> long\n"
936 "\n"
937 "Returns the value of the given cell as a long.");
938 
939 extern "C" {static PyObject *meth_wxGridTableBase_GetValueAsLong(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_GetValueAsLong(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)940 static PyObject *meth_wxGridTableBase_GetValueAsLong(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
941 {
942     PyObject *sipParseErr = SIP_NULLPTR;
943     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
944 
945     {
946         int row;
947         int col;
948          ::wxGridTableBase *sipCpp;
949 
950         static const char *sipKwdList[] = {
951             sipName_row,
952             sipName_col,
953         };
954 
955         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col))
956         {
957             long sipRes;
958 
959             PyErr_Clear();
960 
961             Py_BEGIN_ALLOW_THREADS
962             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::GetValueAsLong(row,col) : sipCpp->GetValueAsLong(row,col));
963             Py_END_ALLOW_THREADS
964 
965             if (PyErr_Occurred())
966                 return 0;
967 
968             return PyLong_FromLong(sipRes);
969         }
970     }
971 
972     /* Raise an exception if the arguments couldn't be parsed. */
973     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetValueAsLong, SIP_NULLPTR);
974 
975     return SIP_NULLPTR;
976 }
977 
978 
979 PyDoc_STRVAR(doc_wxGridTableBase_GetValueAsDouble, "GetValueAsDouble(row, col) -> double\n"
980 "\n"
981 "Returns the value of the given cell as a double.");
982 
983 extern "C" {static PyObject *meth_wxGridTableBase_GetValueAsDouble(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_GetValueAsDouble(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)984 static PyObject *meth_wxGridTableBase_GetValueAsDouble(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
985 {
986     PyObject *sipParseErr = SIP_NULLPTR;
987     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
988 
989     {
990         int row;
991         int col;
992          ::wxGridTableBase *sipCpp;
993 
994         static const char *sipKwdList[] = {
995             sipName_row,
996             sipName_col,
997         };
998 
999         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col))
1000         {
1001             double sipRes;
1002 
1003             PyErr_Clear();
1004 
1005             Py_BEGIN_ALLOW_THREADS
1006             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::GetValueAsDouble(row,col) : sipCpp->GetValueAsDouble(row,col));
1007             Py_END_ALLOW_THREADS
1008 
1009             if (PyErr_Occurred())
1010                 return 0;
1011 
1012             return PyFloat_FromDouble(sipRes);
1013         }
1014     }
1015 
1016     /* Raise an exception if the arguments couldn't be parsed. */
1017     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetValueAsDouble, SIP_NULLPTR);
1018 
1019     return SIP_NULLPTR;
1020 }
1021 
1022 
1023 PyDoc_STRVAR(doc_wxGridTableBase_GetValueAsBool, "GetValueAsBool(row, col) -> bool\n"
1024 "\n"
1025 "Returns the value of the given cell as a boolean.");
1026 
1027 extern "C" {static PyObject *meth_wxGridTableBase_GetValueAsBool(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_GetValueAsBool(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1028 static PyObject *meth_wxGridTableBase_GetValueAsBool(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1029 {
1030     PyObject *sipParseErr = SIP_NULLPTR;
1031     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1032 
1033     {
1034         int row;
1035         int col;
1036          ::wxGridTableBase *sipCpp;
1037 
1038         static const char *sipKwdList[] = {
1039             sipName_row,
1040             sipName_col,
1041         };
1042 
1043         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col))
1044         {
1045             bool sipRes;
1046 
1047             PyErr_Clear();
1048 
1049             Py_BEGIN_ALLOW_THREADS
1050             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::GetValueAsBool(row,col) : sipCpp->GetValueAsBool(row,col));
1051             Py_END_ALLOW_THREADS
1052 
1053             if (PyErr_Occurred())
1054                 return 0;
1055 
1056             return PyBool_FromLong(sipRes);
1057         }
1058     }
1059 
1060     /* Raise an exception if the arguments couldn't be parsed. */
1061     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetValueAsBool, SIP_NULLPTR);
1062 
1063     return SIP_NULLPTR;
1064 }
1065 
1066 
1067 PyDoc_STRVAR(doc_wxGridTableBase_SetValueAsLong, "SetValueAsLong(row, col, value)\n"
1068 "\n"
1069 "Sets the value of the given cell as a long.");
1070 
1071 extern "C" {static PyObject *meth_wxGridTableBase_SetValueAsLong(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetValueAsLong(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1072 static PyObject *meth_wxGridTableBase_SetValueAsLong(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1073 {
1074     PyObject *sipParseErr = SIP_NULLPTR;
1075     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1076 
1077     {
1078         int row;
1079         int col;
1080         long value;
1081          ::wxGridTableBase *sipCpp;
1082 
1083         static const char *sipKwdList[] = {
1084             sipName_row,
1085             sipName_col,
1086             sipName_value,
1087         };
1088 
1089         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biil", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col, &value))
1090         {
1091             PyErr_Clear();
1092 
1093             Py_BEGIN_ALLOW_THREADS
1094             (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::SetValueAsLong(row,col,value) : sipCpp->SetValueAsLong(row,col,value));
1095             Py_END_ALLOW_THREADS
1096 
1097             if (PyErr_Occurred())
1098                 return 0;
1099 
1100             Py_INCREF(Py_None);
1101             return Py_None;
1102         }
1103     }
1104 
1105     /* Raise an exception if the arguments couldn't be parsed. */
1106     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetValueAsLong, SIP_NULLPTR);
1107 
1108     return SIP_NULLPTR;
1109 }
1110 
1111 
1112 PyDoc_STRVAR(doc_wxGridTableBase_SetValueAsDouble, "SetValueAsDouble(row, col, value)\n"
1113 "\n"
1114 "Sets the value of the given cell as a double.");
1115 
1116 extern "C" {static PyObject *meth_wxGridTableBase_SetValueAsDouble(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetValueAsDouble(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1117 static PyObject *meth_wxGridTableBase_SetValueAsDouble(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1118 {
1119     PyObject *sipParseErr = SIP_NULLPTR;
1120     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1121 
1122     {
1123         int row;
1124         int col;
1125         double value;
1126          ::wxGridTableBase *sipCpp;
1127 
1128         static const char *sipKwdList[] = {
1129             sipName_row,
1130             sipName_col,
1131             sipName_value,
1132         };
1133 
1134         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biid", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col, &value))
1135         {
1136             PyErr_Clear();
1137 
1138             Py_BEGIN_ALLOW_THREADS
1139             (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::SetValueAsDouble(row,col,value) : sipCpp->SetValueAsDouble(row,col,value));
1140             Py_END_ALLOW_THREADS
1141 
1142             if (PyErr_Occurred())
1143                 return 0;
1144 
1145             Py_INCREF(Py_None);
1146             return Py_None;
1147         }
1148     }
1149 
1150     /* Raise an exception if the arguments couldn't be parsed. */
1151     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetValueAsDouble, SIP_NULLPTR);
1152 
1153     return SIP_NULLPTR;
1154 }
1155 
1156 
1157 PyDoc_STRVAR(doc_wxGridTableBase_SetValueAsBool, "SetValueAsBool(row, col, value)\n"
1158 "\n"
1159 "Sets the value of the given cell as a boolean.");
1160 
1161 extern "C" {static PyObject *meth_wxGridTableBase_SetValueAsBool(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetValueAsBool(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1162 static PyObject *meth_wxGridTableBase_SetValueAsBool(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1163 {
1164     PyObject *sipParseErr = SIP_NULLPTR;
1165     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1166 
1167     {
1168         int row;
1169         int col;
1170         bool value;
1171          ::wxGridTableBase *sipCpp;
1172 
1173         static const char *sipKwdList[] = {
1174             sipName_row,
1175             sipName_col,
1176             sipName_value,
1177         };
1178 
1179         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biib", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col, &value))
1180         {
1181             PyErr_Clear();
1182 
1183             Py_BEGIN_ALLOW_THREADS
1184             (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::SetValueAsBool(row,col,value) : sipCpp->SetValueAsBool(row,col,value));
1185             Py_END_ALLOW_THREADS
1186 
1187             if (PyErr_Occurred())
1188                 return 0;
1189 
1190             Py_INCREF(Py_None);
1191             return Py_None;
1192         }
1193     }
1194 
1195     /* Raise an exception if the arguments couldn't be parsed. */
1196     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetValueAsBool, SIP_NULLPTR);
1197 
1198     return SIP_NULLPTR;
1199 }
1200 
1201 
1202 PyDoc_STRVAR(doc_wxGridTableBase_Clear, "Clear()\n"
1203 "\n"
1204 "Clear the table contents.");
1205 
1206 extern "C" {static PyObject *meth_wxGridTableBase_Clear(PyObject *, PyObject *);}
meth_wxGridTableBase_Clear(PyObject * sipSelf,PyObject * sipArgs)1207 static PyObject *meth_wxGridTableBase_Clear(PyObject *sipSelf, PyObject *sipArgs)
1208 {
1209     PyObject *sipParseErr = SIP_NULLPTR;
1210     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1211 
1212     {
1213          ::wxGridTableBase *sipCpp;
1214 
1215         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridTableBase, &sipCpp))
1216         {
1217             PyErr_Clear();
1218 
1219             Py_BEGIN_ALLOW_THREADS
1220             (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::Clear() : sipCpp->Clear());
1221             Py_END_ALLOW_THREADS
1222 
1223             if (PyErr_Occurred())
1224                 return 0;
1225 
1226             Py_INCREF(Py_None);
1227             return Py_None;
1228         }
1229     }
1230 
1231     /* Raise an exception if the arguments couldn't be parsed. */
1232     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_Clear, SIP_NULLPTR);
1233 
1234     return SIP_NULLPTR;
1235 }
1236 
1237 
1238 PyDoc_STRVAR(doc_wxGridTableBase_InsertRows, "InsertRows(pos=0, numRows=1) -> bool\n"
1239 "\n"
1240 "Insert additional rows into the table.");
1241 
1242 extern "C" {static PyObject *meth_wxGridTableBase_InsertRows(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_InsertRows(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1243 static PyObject *meth_wxGridTableBase_InsertRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1244 {
1245     PyObject *sipParseErr = SIP_NULLPTR;
1246     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1247 
1248     {
1249         size_t pos = 0;
1250         size_t numRows = 1;
1251          ::wxGridTableBase *sipCpp;
1252 
1253         static const char *sipKwdList[] = {
1254             sipName_pos,
1255             sipName_numRows,
1256         };
1257 
1258         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|==", &sipSelf, sipType_wxGridTableBase, &sipCpp, &pos, &numRows))
1259         {
1260             bool sipRes;
1261 
1262             PyErr_Clear();
1263 
1264             Py_BEGIN_ALLOW_THREADS
1265             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::InsertRows(pos,numRows) : sipCpp->InsertRows(pos,numRows));
1266             Py_END_ALLOW_THREADS
1267 
1268             if (PyErr_Occurred())
1269                 return 0;
1270 
1271             return PyBool_FromLong(sipRes);
1272         }
1273     }
1274 
1275     /* Raise an exception if the arguments couldn't be parsed. */
1276     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_InsertRows, SIP_NULLPTR);
1277 
1278     return SIP_NULLPTR;
1279 }
1280 
1281 
1282 PyDoc_STRVAR(doc_wxGridTableBase_AppendRows, "AppendRows(numRows=1) -> bool\n"
1283 "\n"
1284 "Append additional rows at the end of the table.");
1285 
1286 extern "C" {static PyObject *meth_wxGridTableBase_AppendRows(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_AppendRows(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1287 static PyObject *meth_wxGridTableBase_AppendRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1288 {
1289     PyObject *sipParseErr = SIP_NULLPTR;
1290     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1291 
1292     {
1293         size_t numRows = 1;
1294          ::wxGridTableBase *sipCpp;
1295 
1296         static const char *sipKwdList[] = {
1297             sipName_numRows,
1298         };
1299 
1300         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|=", &sipSelf, sipType_wxGridTableBase, &sipCpp, &numRows))
1301         {
1302             bool sipRes;
1303 
1304             PyErr_Clear();
1305 
1306             Py_BEGIN_ALLOW_THREADS
1307             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::AppendRows(numRows) : sipCpp->AppendRows(numRows));
1308             Py_END_ALLOW_THREADS
1309 
1310             if (PyErr_Occurred())
1311                 return 0;
1312 
1313             return PyBool_FromLong(sipRes);
1314         }
1315     }
1316 
1317     /* Raise an exception if the arguments couldn't be parsed. */
1318     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_AppendRows, SIP_NULLPTR);
1319 
1320     return SIP_NULLPTR;
1321 }
1322 
1323 
1324 PyDoc_STRVAR(doc_wxGridTableBase_DeleteRows, "DeleteRows(pos=0, numRows=1) -> bool\n"
1325 "\n"
1326 "Delete rows from the table.");
1327 
1328 extern "C" {static PyObject *meth_wxGridTableBase_DeleteRows(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_DeleteRows(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1329 static PyObject *meth_wxGridTableBase_DeleteRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1330 {
1331     PyObject *sipParseErr = SIP_NULLPTR;
1332     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1333 
1334     {
1335         size_t pos = 0;
1336         size_t numRows = 1;
1337          ::wxGridTableBase *sipCpp;
1338 
1339         static const char *sipKwdList[] = {
1340             sipName_pos,
1341             sipName_numRows,
1342         };
1343 
1344         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|==", &sipSelf, sipType_wxGridTableBase, &sipCpp, &pos, &numRows))
1345         {
1346             bool sipRes;
1347 
1348             PyErr_Clear();
1349 
1350             Py_BEGIN_ALLOW_THREADS
1351             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::DeleteRows(pos,numRows) : sipCpp->DeleteRows(pos,numRows));
1352             Py_END_ALLOW_THREADS
1353 
1354             if (PyErr_Occurred())
1355                 return 0;
1356 
1357             return PyBool_FromLong(sipRes);
1358         }
1359     }
1360 
1361     /* Raise an exception if the arguments couldn't be parsed. */
1362     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_DeleteRows, SIP_NULLPTR);
1363 
1364     return SIP_NULLPTR;
1365 }
1366 
1367 
1368 PyDoc_STRVAR(doc_wxGridTableBase_InsertCols, "InsertCols(pos=0, numCols=1) -> bool\n"
1369 "\n"
1370 "Exactly the same as InsertRows() but for columns.");
1371 
1372 extern "C" {static PyObject *meth_wxGridTableBase_InsertCols(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_InsertCols(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1373 static PyObject *meth_wxGridTableBase_InsertCols(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1374 {
1375     PyObject *sipParseErr = SIP_NULLPTR;
1376     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1377 
1378     {
1379         size_t pos = 0;
1380         size_t numCols = 1;
1381          ::wxGridTableBase *sipCpp;
1382 
1383         static const char *sipKwdList[] = {
1384             sipName_pos,
1385             sipName_numCols,
1386         };
1387 
1388         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|==", &sipSelf, sipType_wxGridTableBase, &sipCpp, &pos, &numCols))
1389         {
1390             bool sipRes;
1391 
1392             PyErr_Clear();
1393 
1394             Py_BEGIN_ALLOW_THREADS
1395             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::InsertCols(pos,numCols) : sipCpp->InsertCols(pos,numCols));
1396             Py_END_ALLOW_THREADS
1397 
1398             if (PyErr_Occurred())
1399                 return 0;
1400 
1401             return PyBool_FromLong(sipRes);
1402         }
1403     }
1404 
1405     /* Raise an exception if the arguments couldn't be parsed. */
1406     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_InsertCols, SIP_NULLPTR);
1407 
1408     return SIP_NULLPTR;
1409 }
1410 
1411 
1412 PyDoc_STRVAR(doc_wxGridTableBase_AppendCols, "AppendCols(numCols=1) -> bool\n"
1413 "\n"
1414 "Exactly the same as AppendRows() but for columns.");
1415 
1416 extern "C" {static PyObject *meth_wxGridTableBase_AppendCols(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_AppendCols(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1417 static PyObject *meth_wxGridTableBase_AppendCols(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1418 {
1419     PyObject *sipParseErr = SIP_NULLPTR;
1420     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1421 
1422     {
1423         size_t numCols = 1;
1424          ::wxGridTableBase *sipCpp;
1425 
1426         static const char *sipKwdList[] = {
1427             sipName_numCols,
1428         };
1429 
1430         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|=", &sipSelf, sipType_wxGridTableBase, &sipCpp, &numCols))
1431         {
1432             bool sipRes;
1433 
1434             PyErr_Clear();
1435 
1436             Py_BEGIN_ALLOW_THREADS
1437             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::AppendCols(numCols) : sipCpp->AppendCols(numCols));
1438             Py_END_ALLOW_THREADS
1439 
1440             if (PyErr_Occurred())
1441                 return 0;
1442 
1443             return PyBool_FromLong(sipRes);
1444         }
1445     }
1446 
1447     /* Raise an exception if the arguments couldn't be parsed. */
1448     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_AppendCols, SIP_NULLPTR);
1449 
1450     return SIP_NULLPTR;
1451 }
1452 
1453 
1454 PyDoc_STRVAR(doc_wxGridTableBase_DeleteCols, "DeleteCols(pos=0, numCols=1) -> bool\n"
1455 "\n"
1456 "Exactly the same as DeleteRows() but for columns.");
1457 
1458 extern "C" {static PyObject *meth_wxGridTableBase_DeleteCols(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_DeleteCols(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1459 static PyObject *meth_wxGridTableBase_DeleteCols(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1460 {
1461     PyObject *sipParseErr = SIP_NULLPTR;
1462     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1463 
1464     {
1465         size_t pos = 0;
1466         size_t numCols = 1;
1467          ::wxGridTableBase *sipCpp;
1468 
1469         static const char *sipKwdList[] = {
1470             sipName_pos,
1471             sipName_numCols,
1472         };
1473 
1474         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|==", &sipSelf, sipType_wxGridTableBase, &sipCpp, &pos, &numCols))
1475         {
1476             bool sipRes;
1477 
1478             PyErr_Clear();
1479 
1480             Py_BEGIN_ALLOW_THREADS
1481             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::DeleteCols(pos,numCols) : sipCpp->DeleteCols(pos,numCols));
1482             Py_END_ALLOW_THREADS
1483 
1484             if (PyErr_Occurred())
1485                 return 0;
1486 
1487             return PyBool_FromLong(sipRes);
1488         }
1489     }
1490 
1491     /* Raise an exception if the arguments couldn't be parsed. */
1492     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_DeleteCols, SIP_NULLPTR);
1493 
1494     return SIP_NULLPTR;
1495 }
1496 
1497 
1498 PyDoc_STRVAR(doc_wxGridTableBase_GetRowLabelValue, "GetRowLabelValue(row) -> String\n"
1499 "\n"
1500 "Return the label of the specified row.");
1501 
1502 extern "C" {static PyObject *meth_wxGridTableBase_GetRowLabelValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_GetRowLabelValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1503 static PyObject *meth_wxGridTableBase_GetRowLabelValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1504 {
1505     PyObject *sipParseErr = SIP_NULLPTR;
1506     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1507 
1508     {
1509         int row;
1510          ::wxGridTableBase *sipCpp;
1511 
1512         static const char *sipKwdList[] = {
1513             sipName_row,
1514         };
1515 
1516         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row))
1517         {
1518              ::wxString*sipRes;
1519 
1520             PyErr_Clear();
1521 
1522             Py_BEGIN_ALLOW_THREADS
1523             sipRes = new  ::wxString((sipSelfWasArg ? sipCpp-> ::wxGridTableBase::GetRowLabelValue(row) : sipCpp->GetRowLabelValue(row)));
1524             Py_END_ALLOW_THREADS
1525 
1526             if (PyErr_Occurred())
1527                 return 0;
1528 
1529             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
1530         }
1531     }
1532 
1533     /* Raise an exception if the arguments couldn't be parsed. */
1534     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetRowLabelValue, SIP_NULLPTR);
1535 
1536     return SIP_NULLPTR;
1537 }
1538 
1539 
1540 PyDoc_STRVAR(doc_wxGridTableBase_GetColLabelValue, "GetColLabelValue(col) -> String\n"
1541 "\n"
1542 "Return the label of the specified column.");
1543 
1544 extern "C" {static PyObject *meth_wxGridTableBase_GetColLabelValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_GetColLabelValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1545 static PyObject *meth_wxGridTableBase_GetColLabelValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1546 {
1547     PyObject *sipParseErr = SIP_NULLPTR;
1548     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1549 
1550     {
1551         int col;
1552          ::wxGridTableBase *sipCpp;
1553 
1554         static const char *sipKwdList[] = {
1555             sipName_col,
1556         };
1557 
1558         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxGridTableBase, &sipCpp, &col))
1559         {
1560              ::wxString*sipRes;
1561 
1562             PyErr_Clear();
1563 
1564             Py_BEGIN_ALLOW_THREADS
1565             sipRes = new  ::wxString((sipSelfWasArg ? sipCpp-> ::wxGridTableBase::GetColLabelValue(col) : sipCpp->GetColLabelValue(col)));
1566             Py_END_ALLOW_THREADS
1567 
1568             if (PyErr_Occurred())
1569                 return 0;
1570 
1571             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
1572         }
1573     }
1574 
1575     /* Raise an exception if the arguments couldn't be parsed. */
1576     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetColLabelValue, SIP_NULLPTR);
1577 
1578     return SIP_NULLPTR;
1579 }
1580 
1581 
1582 PyDoc_STRVAR(doc_wxGridTableBase_SetRowLabelValue, "SetRowLabelValue(row, label)\n"
1583 "\n"
1584 "Set the given label for the specified row.");
1585 
1586 extern "C" {static PyObject *meth_wxGridTableBase_SetRowLabelValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetRowLabelValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1587 static PyObject *meth_wxGridTableBase_SetRowLabelValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1588 {
1589     PyObject *sipParseErr = SIP_NULLPTR;
1590     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1591 
1592     {
1593         int row;
1594         const  ::wxString* label;
1595         int labelState = 0;
1596          ::wxGridTableBase *sipCpp;
1597 
1598         static const char *sipKwdList[] = {
1599             sipName_row,
1600             sipName_label,
1601         };
1602 
1603         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, sipType_wxString,&label, &labelState))
1604         {
1605             PyErr_Clear();
1606 
1607             Py_BEGIN_ALLOW_THREADS
1608             (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::SetRowLabelValue(row,*label) : sipCpp->SetRowLabelValue(row,*label));
1609             Py_END_ALLOW_THREADS
1610             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1611 
1612             if (PyErr_Occurred())
1613                 return 0;
1614 
1615             Py_INCREF(Py_None);
1616             return Py_None;
1617         }
1618     }
1619 
1620     /* Raise an exception if the arguments couldn't be parsed. */
1621     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetRowLabelValue, SIP_NULLPTR);
1622 
1623     return SIP_NULLPTR;
1624 }
1625 
1626 
1627 PyDoc_STRVAR(doc_wxGridTableBase_SetColLabelValue, "SetColLabelValue(col, label)\n"
1628 "\n"
1629 "Exactly the same as SetRowLabelValue() but for columns.");
1630 
1631 extern "C" {static PyObject *meth_wxGridTableBase_SetColLabelValue(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetColLabelValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1632 static PyObject *meth_wxGridTableBase_SetColLabelValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1633 {
1634     PyObject *sipParseErr = SIP_NULLPTR;
1635     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1636 
1637     {
1638         int col;
1639         const  ::wxString* label;
1640         int labelState = 0;
1641          ::wxGridTableBase *sipCpp;
1642 
1643         static const char *sipKwdList[] = {
1644             sipName_col,
1645             sipName_label,
1646         };
1647 
1648         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1", &sipSelf, sipType_wxGridTableBase, &sipCpp, &col, sipType_wxString,&label, &labelState))
1649         {
1650             PyErr_Clear();
1651 
1652             Py_BEGIN_ALLOW_THREADS
1653             (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::SetColLabelValue(col,*label) : sipCpp->SetColLabelValue(col,*label));
1654             Py_END_ALLOW_THREADS
1655             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1656 
1657             if (PyErr_Occurred())
1658                 return 0;
1659 
1660             Py_INCREF(Py_None);
1661             return Py_None;
1662         }
1663     }
1664 
1665     /* Raise an exception if the arguments couldn't be parsed. */
1666     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetColLabelValue, SIP_NULLPTR);
1667 
1668     return SIP_NULLPTR;
1669 }
1670 
1671 
1672 PyDoc_STRVAR(doc_wxGridTableBase_SetAttrProvider, "SetAttrProvider(attrProvider)\n"
1673 "\n"
1674 "Associate this attributes provider with the table.");
1675 
1676 extern "C" {static PyObject *meth_wxGridTableBase_SetAttrProvider(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetAttrProvider(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1677 static PyObject *meth_wxGridTableBase_SetAttrProvider(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1678 {
1679     PyObject *sipParseErr = SIP_NULLPTR;
1680 
1681     {
1682          ::wxGridCellAttrProvider* attrProvider;
1683          ::wxGridTableBase *sipCpp;
1684 
1685         static const char *sipKwdList[] = {
1686             sipName_attrProvider,
1687         };
1688 
1689         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxGridTableBase, &sipCpp, sipType_wxGridCellAttrProvider, &attrProvider))
1690         {
1691             PyErr_Clear();
1692 
1693             Py_BEGIN_ALLOW_THREADS
1694             sipCpp->SetAttrProvider(attrProvider);
1695             Py_END_ALLOW_THREADS
1696 
1697             if (PyErr_Occurred())
1698                 return 0;
1699 
1700             Py_INCREF(Py_None);
1701             return Py_None;
1702         }
1703     }
1704 
1705     /* Raise an exception if the arguments couldn't be parsed. */
1706     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetAttrProvider, SIP_NULLPTR);
1707 
1708     return SIP_NULLPTR;
1709 }
1710 
1711 
1712 PyDoc_STRVAR(doc_wxGridTableBase_GetAttrProvider, "GetAttrProvider() -> GridCellAttrProvider\n"
1713 "\n"
1714 "Returns the attribute provider currently being used.");
1715 
1716 extern "C" {static PyObject *meth_wxGridTableBase_GetAttrProvider(PyObject *, PyObject *);}
meth_wxGridTableBase_GetAttrProvider(PyObject * sipSelf,PyObject * sipArgs)1717 static PyObject *meth_wxGridTableBase_GetAttrProvider(PyObject *sipSelf, PyObject *sipArgs)
1718 {
1719     PyObject *sipParseErr = SIP_NULLPTR;
1720 
1721     {
1722         const  ::wxGridTableBase *sipCpp;
1723 
1724         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridTableBase, &sipCpp))
1725         {
1726              ::wxGridCellAttrProvider*sipRes;
1727 
1728             PyErr_Clear();
1729 
1730             Py_BEGIN_ALLOW_THREADS
1731             sipRes = sipCpp->GetAttrProvider();
1732             Py_END_ALLOW_THREADS
1733 
1734             if (PyErr_Occurred())
1735                 return 0;
1736 
1737             return sipConvertFromType(sipRes,sipType_wxGridCellAttrProvider,SIP_NULLPTR);
1738         }
1739     }
1740 
1741     /* Raise an exception if the arguments couldn't be parsed. */
1742     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetAttrProvider, SIP_NULLPTR);
1743 
1744     return SIP_NULLPTR;
1745 }
1746 
1747 
1748 PyDoc_STRVAR(doc_wxGridTableBase_GetAttr, "GetAttr(row, col, kind) -> GridCellAttr\n"
1749 "\n"
1750 "Return the attribute for the given cell.");
1751 
1752 extern "C" {static PyObject *meth_wxGridTableBase_GetAttr(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_GetAttr(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1753 static PyObject *meth_wxGridTableBase_GetAttr(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1754 {
1755     PyObject *sipParseErr = SIP_NULLPTR;
1756     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1757 
1758     {
1759         int row;
1760         int col;
1761          ::wxGridCellAttr::wxAttrKind kind;
1762          ::wxGridTableBase *sipCpp;
1763 
1764         static const char *sipKwdList[] = {
1765             sipName_row,
1766             sipName_col,
1767             sipName_kind,
1768         };
1769 
1770         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiiE", &sipSelf, sipType_wxGridTableBase, &sipCpp, &row, &col, sipType_wxGridCellAttr_wxAttrKind, &kind))
1771         {
1772              ::wxGridCellAttr*sipRes;
1773 
1774             PyErr_Clear();
1775 
1776             Py_BEGIN_ALLOW_THREADS
1777             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::GetAttr(row,col,kind) : sipCpp->GetAttr(row,col,kind));
1778             Py_END_ALLOW_THREADS
1779 
1780             if (PyErr_Occurred())
1781                 return 0;
1782 
1783             return sipConvertFromType(sipRes,sipType_wxGridCellAttr,SIP_NULLPTR);
1784         }
1785     }
1786 
1787     /* Raise an exception if the arguments couldn't be parsed. */
1788     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetAttr, SIP_NULLPTR);
1789 
1790     return SIP_NULLPTR;
1791 }
1792 
1793 
1794 PyDoc_STRVAR(doc_wxGridTableBase_SetAttr, "SetAttr(attr, row, col)\n"
1795 "\n"
1796 "Set attribute of the specified cell.");
1797 
1798 extern "C" {static PyObject *meth_wxGridTableBase_SetAttr(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetAttr(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1799 static PyObject *meth_wxGridTableBase_SetAttr(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1800 {
1801     PyObject *sipParseErr = SIP_NULLPTR;
1802     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1803 
1804     {
1805          ::wxGridCellAttr* attr;
1806         int row;
1807         int col;
1808          ::wxGridTableBase *sipCpp;
1809 
1810         static const char *sipKwdList[] = {
1811             sipName_attr,
1812             sipName_row,
1813             sipName_col,
1814         };
1815 
1816         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:ii", &sipSelf, sipType_wxGridTableBase, &sipCpp, sipType_wxGridCellAttr, &attr, &row, &col))
1817         {
1818             PyErr_Clear();
1819 
1820             Py_BEGIN_ALLOW_THREADS
1821             (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::SetAttr(attr,row,col) : sipCpp->SetAttr(attr,row,col));
1822             Py_END_ALLOW_THREADS
1823 
1824             if (PyErr_Occurred())
1825                 return 0;
1826 
1827             Py_INCREF(Py_None);
1828             return Py_None;
1829         }
1830     }
1831 
1832     /* Raise an exception if the arguments couldn't be parsed. */
1833     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetAttr, SIP_NULLPTR);
1834 
1835     return SIP_NULLPTR;
1836 }
1837 
1838 
1839 PyDoc_STRVAR(doc_wxGridTableBase_SetRowAttr, "SetRowAttr(attr, row)\n"
1840 "\n"
1841 "Set attribute of the specified row.");
1842 
1843 extern "C" {static PyObject *meth_wxGridTableBase_SetRowAttr(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetRowAttr(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1844 static PyObject *meth_wxGridTableBase_SetRowAttr(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1845 {
1846     PyObject *sipParseErr = SIP_NULLPTR;
1847     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1848 
1849     {
1850          ::wxGridCellAttr* attr;
1851         int row;
1852          ::wxGridTableBase *sipCpp;
1853 
1854         static const char *sipKwdList[] = {
1855             sipName_attr,
1856             sipName_row,
1857         };
1858 
1859         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:i", &sipSelf, sipType_wxGridTableBase, &sipCpp, sipType_wxGridCellAttr, &attr, &row))
1860         {
1861             PyErr_Clear();
1862 
1863             Py_BEGIN_ALLOW_THREADS
1864             (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::SetRowAttr(attr,row) : sipCpp->SetRowAttr(attr,row));
1865             Py_END_ALLOW_THREADS
1866 
1867             if (PyErr_Occurred())
1868                 return 0;
1869 
1870             Py_INCREF(Py_None);
1871             return Py_None;
1872         }
1873     }
1874 
1875     /* Raise an exception if the arguments couldn't be parsed. */
1876     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetRowAttr, SIP_NULLPTR);
1877 
1878     return SIP_NULLPTR;
1879 }
1880 
1881 
1882 PyDoc_STRVAR(doc_wxGridTableBase_SetColAttr, "SetColAttr(attr, col)\n"
1883 "\n"
1884 "Set attribute of the specified column.");
1885 
1886 extern "C" {static PyObject *meth_wxGridTableBase_SetColAttr(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetColAttr(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1887 static PyObject *meth_wxGridTableBase_SetColAttr(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1888 {
1889     PyObject *sipParseErr = SIP_NULLPTR;
1890     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1891 
1892     {
1893          ::wxGridCellAttr* attr;
1894         int col;
1895          ::wxGridTableBase *sipCpp;
1896 
1897         static const char *sipKwdList[] = {
1898             sipName_attr,
1899             sipName_col,
1900         };
1901 
1902         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:i", &sipSelf, sipType_wxGridTableBase, &sipCpp, sipType_wxGridCellAttr, &attr, &col))
1903         {
1904             PyErr_Clear();
1905 
1906             Py_BEGIN_ALLOW_THREADS
1907             (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::SetColAttr(attr,col) : sipCpp->SetColAttr(attr,col));
1908             Py_END_ALLOW_THREADS
1909 
1910             if (PyErr_Occurred())
1911                 return 0;
1912 
1913             Py_INCREF(Py_None);
1914             return Py_None;
1915         }
1916     }
1917 
1918     /* Raise an exception if the arguments couldn't be parsed. */
1919     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetColAttr, SIP_NULLPTR);
1920 
1921     return SIP_NULLPTR;
1922 }
1923 
1924 
1925 PyDoc_STRVAR(doc_wxGridTableBase_GetNumberRows, "GetNumberRows() -> int\n"
1926 "\n"
1927 "Must be overridden to return the number of rows in the table.");
1928 
1929 extern "C" {static PyObject *meth_wxGridTableBase_GetNumberRows(PyObject *, PyObject *);}
meth_wxGridTableBase_GetNumberRows(PyObject * sipSelf,PyObject * sipArgs)1930 static PyObject *meth_wxGridTableBase_GetNumberRows(PyObject *sipSelf, PyObject *sipArgs)
1931 {
1932     PyObject *sipParseErr = SIP_NULLPTR;
1933     PyObject *sipOrigSelf = sipSelf;
1934 
1935     {
1936          ::wxGridTableBase *sipCpp;
1937 
1938         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridTableBase, &sipCpp))
1939         {
1940             int sipRes;
1941 
1942             if (!sipOrigSelf)
1943             {
1944                 sipAbstractMethod(sipName_GridTableBase, sipName_GetNumberRows);
1945                 return SIP_NULLPTR;
1946             }
1947 
1948             PyErr_Clear();
1949 
1950             Py_BEGIN_ALLOW_THREADS
1951             sipRes = sipCpp->GetNumberRows();
1952             Py_END_ALLOW_THREADS
1953 
1954             if (PyErr_Occurred())
1955                 return 0;
1956 
1957             return SIPLong_FromLong(sipRes);
1958         }
1959     }
1960 
1961     /* Raise an exception if the arguments couldn't be parsed. */
1962     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetNumberRows, SIP_NULLPTR);
1963 
1964     return SIP_NULLPTR;
1965 }
1966 
1967 
1968 PyDoc_STRVAR(doc_wxGridTableBase_GetNumberCols, "GetNumberCols() -> int\n"
1969 "\n"
1970 "Must be overridden to return the number of columns in the table.");
1971 
1972 extern "C" {static PyObject *meth_wxGridTableBase_GetNumberCols(PyObject *, PyObject *);}
meth_wxGridTableBase_GetNumberCols(PyObject * sipSelf,PyObject * sipArgs)1973 static PyObject *meth_wxGridTableBase_GetNumberCols(PyObject *sipSelf, PyObject *sipArgs)
1974 {
1975     PyObject *sipParseErr = SIP_NULLPTR;
1976     PyObject *sipOrigSelf = sipSelf;
1977 
1978     {
1979          ::wxGridTableBase *sipCpp;
1980 
1981         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridTableBase, &sipCpp))
1982         {
1983             int sipRes;
1984 
1985             if (!sipOrigSelf)
1986             {
1987                 sipAbstractMethod(sipName_GridTableBase, sipName_GetNumberCols);
1988                 return SIP_NULLPTR;
1989             }
1990 
1991             PyErr_Clear();
1992 
1993             Py_BEGIN_ALLOW_THREADS
1994             sipRes = sipCpp->GetNumberCols();
1995             Py_END_ALLOW_THREADS
1996 
1997             if (PyErr_Occurred())
1998                 return 0;
1999 
2000             return SIPLong_FromLong(sipRes);
2001         }
2002     }
2003 
2004     /* Raise an exception if the arguments couldn't be parsed. */
2005     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetNumberCols, SIP_NULLPTR);
2006 
2007     return SIP_NULLPTR;
2008 }
2009 
2010 
2011 PyDoc_STRVAR(doc_wxGridTableBase_GetRowsCount, "GetRowsCount() -> int\n"
2012 "\n"
2013 "Return the number of rows in the table.");
2014 
2015 extern "C" {static PyObject *meth_wxGridTableBase_GetRowsCount(PyObject *, PyObject *);}
meth_wxGridTableBase_GetRowsCount(PyObject * sipSelf,PyObject * sipArgs)2016 static PyObject *meth_wxGridTableBase_GetRowsCount(PyObject *sipSelf, PyObject *sipArgs)
2017 {
2018     PyObject *sipParseErr = SIP_NULLPTR;
2019 
2020     {
2021         const  ::wxGridTableBase *sipCpp;
2022 
2023         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridTableBase, &sipCpp))
2024         {
2025             int sipRes;
2026 
2027             PyErr_Clear();
2028 
2029             Py_BEGIN_ALLOW_THREADS
2030             sipRes = sipCpp->GetRowsCount();
2031             Py_END_ALLOW_THREADS
2032 
2033             if (PyErr_Occurred())
2034                 return 0;
2035 
2036             return SIPLong_FromLong(sipRes);
2037         }
2038     }
2039 
2040     /* Raise an exception if the arguments couldn't be parsed. */
2041     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetRowsCount, SIP_NULLPTR);
2042 
2043     return SIP_NULLPTR;
2044 }
2045 
2046 
2047 PyDoc_STRVAR(doc_wxGridTableBase_GetColsCount, "GetColsCount() -> int\n"
2048 "\n"
2049 "Return the number of columns in the table.");
2050 
2051 extern "C" {static PyObject *meth_wxGridTableBase_GetColsCount(PyObject *, PyObject *);}
meth_wxGridTableBase_GetColsCount(PyObject * sipSelf,PyObject * sipArgs)2052 static PyObject *meth_wxGridTableBase_GetColsCount(PyObject *sipSelf, PyObject *sipArgs)
2053 {
2054     PyObject *sipParseErr = SIP_NULLPTR;
2055 
2056     {
2057         const  ::wxGridTableBase *sipCpp;
2058 
2059         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridTableBase, &sipCpp))
2060         {
2061             int sipRes;
2062 
2063             PyErr_Clear();
2064 
2065             Py_BEGIN_ALLOW_THREADS
2066             sipRes = sipCpp->GetColsCount();
2067             Py_END_ALLOW_THREADS
2068 
2069             if (PyErr_Occurred())
2070                 return 0;
2071 
2072             return SIPLong_FromLong(sipRes);
2073         }
2074     }
2075 
2076     /* Raise an exception if the arguments couldn't be parsed. */
2077     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetColsCount, SIP_NULLPTR);
2078 
2079     return SIP_NULLPTR;
2080 }
2081 
2082 
2083 PyDoc_STRVAR(doc_wxGridTableBase_SetView, "SetView(grid)\n"
2084 "\n"
2085 "Called by the grid when the table is associated with it.");
2086 
2087 extern "C" {static PyObject *meth_wxGridTableBase_SetView(PyObject *, PyObject *, PyObject *);}
meth_wxGridTableBase_SetView(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2088 static PyObject *meth_wxGridTableBase_SetView(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2089 {
2090     PyObject *sipParseErr = SIP_NULLPTR;
2091     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2092 
2093     {
2094          ::wxGrid* grid;
2095          ::wxGridTableBase *sipCpp;
2096 
2097         static const char *sipKwdList[] = {
2098             sipName_grid,
2099         };
2100 
2101         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxGridTableBase, &sipCpp, sipType_wxGrid, &grid))
2102         {
2103             PyErr_Clear();
2104 
2105             Py_BEGIN_ALLOW_THREADS
2106             (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::SetView(grid) : sipCpp->SetView(grid));
2107             Py_END_ALLOW_THREADS
2108 
2109             if (PyErr_Occurred())
2110                 return 0;
2111 
2112             Py_INCREF(Py_None);
2113             return Py_None;
2114         }
2115     }
2116 
2117     /* Raise an exception if the arguments couldn't be parsed. */
2118     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_SetView, SIP_NULLPTR);
2119 
2120     return SIP_NULLPTR;
2121 }
2122 
2123 
2124 PyDoc_STRVAR(doc_wxGridTableBase_GetView, "GetView() -> Grid\n"
2125 "\n"
2126 "Returns the last grid passed to SetView().");
2127 
2128 extern "C" {static PyObject *meth_wxGridTableBase_GetView(PyObject *, PyObject *);}
meth_wxGridTableBase_GetView(PyObject * sipSelf,PyObject * sipArgs)2129 static PyObject *meth_wxGridTableBase_GetView(PyObject *sipSelf, PyObject *sipArgs)
2130 {
2131     PyObject *sipParseErr = SIP_NULLPTR;
2132     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2133 
2134     {
2135         const  ::wxGridTableBase *sipCpp;
2136 
2137         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridTableBase, &sipCpp))
2138         {
2139              ::wxGrid*sipRes;
2140 
2141             PyErr_Clear();
2142 
2143             Py_BEGIN_ALLOW_THREADS
2144             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::GetView() : sipCpp->GetView());
2145             Py_END_ALLOW_THREADS
2146 
2147             if (PyErr_Occurred())
2148                 return 0;
2149 
2150             return sipConvertFromType(sipRes,sipType_wxGrid,SIP_NULLPTR);
2151         }
2152     }
2153 
2154     /* Raise an exception if the arguments couldn't be parsed. */
2155     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_GetView, SIP_NULLPTR);
2156 
2157     return SIP_NULLPTR;
2158 }
2159 
2160 
2161 PyDoc_STRVAR(doc_wxGridTableBase_CanHaveAttributes, "CanHaveAttributes() -> bool\n"
2162 "\n"
2163 "Returns true if this table supports attributes or false otherwise.");
2164 
2165 extern "C" {static PyObject *meth_wxGridTableBase_CanHaveAttributes(PyObject *, PyObject *);}
meth_wxGridTableBase_CanHaveAttributes(PyObject * sipSelf,PyObject * sipArgs)2166 static PyObject *meth_wxGridTableBase_CanHaveAttributes(PyObject *sipSelf, PyObject *sipArgs)
2167 {
2168     PyObject *sipParseErr = SIP_NULLPTR;
2169     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2170 
2171     {
2172          ::wxGridTableBase *sipCpp;
2173 
2174         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridTableBase, &sipCpp))
2175         {
2176             bool sipRes;
2177 
2178             PyErr_Clear();
2179 
2180             Py_BEGIN_ALLOW_THREADS
2181             sipRes = (sipSelfWasArg ? sipCpp-> ::wxGridTableBase::CanHaveAttributes() : sipCpp->CanHaveAttributes());
2182             Py_END_ALLOW_THREADS
2183 
2184             if (PyErr_Occurred())
2185                 return 0;
2186 
2187             return PyBool_FromLong(sipRes);
2188         }
2189     }
2190 
2191     /* Raise an exception if the arguments couldn't be parsed. */
2192     sipNoMethod(sipParseErr, sipName_GridTableBase, sipName_CanHaveAttributes, SIP_NULLPTR);
2193 
2194     return SIP_NULLPTR;
2195 }
2196 
2197 
2198 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
2199 extern "C" {static void *cast_wxGridTableBase(void *, const sipTypeDef *);}
cast_wxGridTableBase(void * sipCppV,const sipTypeDef * targetType)2200 static void *cast_wxGridTableBase(void *sipCppV, const sipTypeDef *targetType)
2201 {
2202      ::wxGridTableBase *sipCpp = reinterpret_cast< ::wxGridTableBase *>(sipCppV);
2203 
2204     if (targetType == sipType_wxObject)
2205         return static_cast< ::wxObject *>(sipCpp);
2206 
2207     return sipCppV;
2208 }
2209 
2210 
2211 /* Call the instance's destructor. */
2212 extern "C" {static void release_wxGridTableBase(void *, int);}
release_wxGridTableBase(void * sipCppV,int sipState)2213 static void release_wxGridTableBase(void *sipCppV, int sipState)
2214 {
2215     Py_BEGIN_ALLOW_THREADS
2216 
2217     if (sipState & SIP_DERIVED_CLASS)
2218         delete reinterpret_cast<sipwxGridTableBase *>(sipCppV);
2219     else
2220         delete reinterpret_cast< ::wxGridTableBase *>(sipCppV);
2221 
2222     Py_END_ALLOW_THREADS
2223 }
2224 
2225 
2226 extern "C" {static void dealloc_wxGridTableBase(sipSimpleWrapper *);}
dealloc_wxGridTableBase(sipSimpleWrapper * sipSelf)2227 static void dealloc_wxGridTableBase(sipSimpleWrapper *sipSelf)
2228 {
2229     if (sipIsDerivedClass(sipSelf))
2230         reinterpret_cast<sipwxGridTableBase *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
2231 
2232     if (sipIsOwnedByPython(sipSelf))
2233     {
2234         release_wxGridTableBase(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
2235     }
2236 }
2237 
2238 
2239 extern "C" {static void *init_type_wxGridTableBase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxGridTableBase(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)2240 static void *init_type_wxGridTableBase(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
2241 {
2242     sipwxGridTableBase *sipCpp = SIP_NULLPTR;
2243 
2244     {
2245         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
2246         {
2247             PyErr_Clear();
2248 
2249             Py_BEGIN_ALLOW_THREADS
2250             sipCpp = new sipwxGridTableBase();
2251             Py_END_ALLOW_THREADS
2252 
2253             if (PyErr_Occurred())
2254             {
2255                 delete sipCpp;
2256                 return SIP_NULLPTR;
2257             }
2258 
2259             sipCpp->sipPySelf = sipSelf;
2260 
2261             return sipCpp;
2262         }
2263     }
2264 
2265     return SIP_NULLPTR;
2266 }
2267 
2268 
2269 /* Define this type's super-types. */
2270 static sipEncodedTypeDef supers_wxGridTableBase[] = {{17, 0, 1}};
2271 
2272 
2273 static PyMethodDef methods_wxGridTableBase[] = {
2274     {SIP_MLNAME_CAST(sipName_AppendCols), SIP_MLMETH_CAST(meth_wxGridTableBase_AppendCols), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_AppendCols)},
2275     {SIP_MLNAME_CAST(sipName_AppendRows), SIP_MLMETH_CAST(meth_wxGridTableBase_AppendRows), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_AppendRows)},
2276     {SIP_MLNAME_CAST(sipName_CanGetValueAs), SIP_MLMETH_CAST(meth_wxGridTableBase_CanGetValueAs), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_CanGetValueAs)},
2277     {SIP_MLNAME_CAST(sipName_CanHaveAttributes), meth_wxGridTableBase_CanHaveAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridTableBase_CanHaveAttributes)},
2278     {SIP_MLNAME_CAST(sipName_CanSetValueAs), SIP_MLMETH_CAST(meth_wxGridTableBase_CanSetValueAs), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_CanSetValueAs)},
2279     {SIP_MLNAME_CAST(sipName_Clear), meth_wxGridTableBase_Clear, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridTableBase_Clear)},
2280     {SIP_MLNAME_CAST(sipName_DeleteCols), SIP_MLMETH_CAST(meth_wxGridTableBase_DeleteCols), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_DeleteCols)},
2281     {SIP_MLNAME_CAST(sipName_DeleteRows), SIP_MLMETH_CAST(meth_wxGridTableBase_DeleteRows), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_DeleteRows)},
2282     {SIP_MLNAME_CAST(sipName_GetAttr), SIP_MLMETH_CAST(meth_wxGridTableBase_GetAttr), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetAttr)},
2283     {SIP_MLNAME_CAST(sipName_GetAttrProvider), meth_wxGridTableBase_GetAttrProvider, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetAttrProvider)},
2284     {SIP_MLNAME_CAST(sipName_GetColLabelValue), SIP_MLMETH_CAST(meth_wxGridTableBase_GetColLabelValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetColLabelValue)},
2285     {SIP_MLNAME_CAST(sipName_GetColsCount), meth_wxGridTableBase_GetColsCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetColsCount)},
2286     {SIP_MLNAME_CAST(sipName_GetNumberCols), meth_wxGridTableBase_GetNumberCols, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetNumberCols)},
2287     {SIP_MLNAME_CAST(sipName_GetNumberRows), meth_wxGridTableBase_GetNumberRows, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetNumberRows)},
2288     {SIP_MLNAME_CAST(sipName_GetRowLabelValue), SIP_MLMETH_CAST(meth_wxGridTableBase_GetRowLabelValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetRowLabelValue)},
2289     {SIP_MLNAME_CAST(sipName_GetRowsCount), meth_wxGridTableBase_GetRowsCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetRowsCount)},
2290     {SIP_MLNAME_CAST(sipName_GetTypeName), SIP_MLMETH_CAST(meth_wxGridTableBase_GetTypeName), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetTypeName)},
2291     {SIP_MLNAME_CAST(sipName_GetValue), SIP_MLMETH_CAST(meth_wxGridTableBase_GetValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetValue)},
2292     {SIP_MLNAME_CAST(sipName_GetValueAsBool), SIP_MLMETH_CAST(meth_wxGridTableBase_GetValueAsBool), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetValueAsBool)},
2293     {SIP_MLNAME_CAST(sipName_GetValueAsDouble), SIP_MLMETH_CAST(meth_wxGridTableBase_GetValueAsDouble), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetValueAsDouble)},
2294     {SIP_MLNAME_CAST(sipName_GetValueAsLong), SIP_MLMETH_CAST(meth_wxGridTableBase_GetValueAsLong), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetValueAsLong)},
2295     {SIP_MLNAME_CAST(sipName_GetView), meth_wxGridTableBase_GetView, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridTableBase_GetView)},
2296     {SIP_MLNAME_CAST(sipName_InsertCols), SIP_MLMETH_CAST(meth_wxGridTableBase_InsertCols), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_InsertCols)},
2297     {SIP_MLNAME_CAST(sipName_InsertRows), SIP_MLMETH_CAST(meth_wxGridTableBase_InsertRows), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_InsertRows)},
2298     {SIP_MLNAME_CAST(sipName_IsEmpty), SIP_MLMETH_CAST(meth_wxGridTableBase_IsEmpty), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_IsEmpty)},
2299     {SIP_MLNAME_CAST(sipName_IsEmptyCell), SIP_MLMETH_CAST(meth_wxGridTableBase_IsEmptyCell), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_IsEmptyCell)},
2300     {SIP_MLNAME_CAST(sipName_SetAttr), SIP_MLMETH_CAST(meth_wxGridTableBase_SetAttr), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetAttr)},
2301     {SIP_MLNAME_CAST(sipName_SetAttrProvider), SIP_MLMETH_CAST(meth_wxGridTableBase_SetAttrProvider), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetAttrProvider)},
2302     {SIP_MLNAME_CAST(sipName_SetColAttr), SIP_MLMETH_CAST(meth_wxGridTableBase_SetColAttr), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetColAttr)},
2303     {SIP_MLNAME_CAST(sipName_SetColLabelValue), SIP_MLMETH_CAST(meth_wxGridTableBase_SetColLabelValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetColLabelValue)},
2304     {SIP_MLNAME_CAST(sipName_SetRowAttr), SIP_MLMETH_CAST(meth_wxGridTableBase_SetRowAttr), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetRowAttr)},
2305     {SIP_MLNAME_CAST(sipName_SetRowLabelValue), SIP_MLMETH_CAST(meth_wxGridTableBase_SetRowLabelValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetRowLabelValue)},
2306     {SIP_MLNAME_CAST(sipName_SetValue), SIP_MLMETH_CAST(meth_wxGridTableBase_SetValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetValue)},
2307     {SIP_MLNAME_CAST(sipName_SetValueAsBool), SIP_MLMETH_CAST(meth_wxGridTableBase_SetValueAsBool), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetValueAsBool)},
2308     {SIP_MLNAME_CAST(sipName_SetValueAsDouble), SIP_MLMETH_CAST(meth_wxGridTableBase_SetValueAsDouble), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetValueAsDouble)},
2309     {SIP_MLNAME_CAST(sipName_SetValueAsLong), SIP_MLMETH_CAST(meth_wxGridTableBase_SetValueAsLong), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetValueAsLong)},
2310     {SIP_MLNAME_CAST(sipName_SetView), SIP_MLMETH_CAST(meth_wxGridTableBase_SetView), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridTableBase_SetView)}
2311 };
2312 
2313 sipVariableDef variables_wxGridTableBase[] = {
2314     {PropertyVariable, sipName_View, &methods_wxGridTableBase[21], &methods_wxGridTableBase[36], SIP_NULLPTR, SIP_NULLPTR},
2315     {PropertyVariable, sipName_RowsCount, &methods_wxGridTableBase[15], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2316     {PropertyVariable, sipName_NumberRows, &methods_wxGridTableBase[13], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2317     {PropertyVariable, sipName_NumberCols, &methods_wxGridTableBase[12], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2318     {PropertyVariable, sipName_ColsCount, &methods_wxGridTableBase[11], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2319     {PropertyVariable, sipName_AttrProvider, &methods_wxGridTableBase[9], &methods_wxGridTableBase[27], SIP_NULLPTR, SIP_NULLPTR},
2320 };
2321 
2322 PyDoc_STRVAR(doc_wxGridTableBase, "GridTableBase()\n"
2323 "\n"
2324 "The almost abstract base class for grid tables.");
2325 
2326 
2327 sipClassTypeDef sipTypeDef__grid_wxGridTableBase = {
2328     {
2329         -1,
2330         SIP_NULLPTR,
2331         SIP_NULLPTR,
2332         SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
2333         sipNameNr_wxGridTableBase,
2334         {SIP_NULLPTR},
2335         SIP_NULLPTR
2336     },
2337     {
2338         sipNameNr_GridTableBase,
2339         {0, 0, 1},
2340         37, methods_wxGridTableBase,
2341         0, SIP_NULLPTR,
2342         6, variables_wxGridTableBase,
2343         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2344     },
2345     doc_wxGridTableBase,
2346     -1,
2347     -1,
2348     supers_wxGridTableBase,
2349     SIP_NULLPTR,
2350     init_type_wxGridTableBase,
2351     SIP_NULLPTR,
2352     SIP_NULLPTR,
2353 #if PY_MAJOR_VERSION >= 3
2354     SIP_NULLPTR,
2355     SIP_NULLPTR,
2356 #else
2357     SIP_NULLPTR,
2358     SIP_NULLPTR,
2359     SIP_NULLPTR,
2360     SIP_NULLPTR,
2361 #endif
2362     dealloc_wxGridTableBase,
2363     SIP_NULLPTR,
2364     SIP_NULLPTR,
2365     SIP_NULLPTR,
2366     release_wxGridTableBase,
2367     cast_wxGridTableBase,
2368     SIP_NULLPTR,
2369     SIP_NULLPTR,
2370     SIP_NULLPTR,
2371     SIP_NULLPTR,
2372     SIP_NULLPTR,
2373     SIP_NULLPTR
2374 };
2375