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_dataview.h"
11 
12         #include <wx/dataview.h>
13 
14         #include <wx/dataview.h>
15     #include <wx/setup.h>
16     #include <wxPython/wxpy_api.h>
17         #include <wx/dataview.h>
18         #include <wx/dataview.h>
19 
20 
21 class sipwxDataViewListStore : public  ::wxDataViewListStore
22 {
23 public:
24     sipwxDataViewListStore();
25     virtual ~sipwxDataViewListStore();
26 
27     /*
28      * There is a protected method for every virtual method visible from
29      * this class.
30      */
31 protected:
32     bool SetValueByRow(const  ::wxDVCVariant&,uint,uint) SIP_OVERRIDE;
33     void GetValueByRow( ::wxDVCVariant&,uint,uint) const SIP_OVERRIDE;
34     uint GetRow(const  ::wxDataViewItem&) const SIP_OVERRIDE;
35     uint GetCount() const SIP_OVERRIDE;
36     bool IsEnabledByRow(uint,uint) const SIP_OVERRIDE;
37     bool GetAttrByRow(uint,uint, ::wxDataViewItemAttr&) const SIP_OVERRIDE;
38     int Compare(const  ::wxDataViewItem&,const  ::wxDataViewItem&,uint,bool) const SIP_OVERRIDE;
39     bool GetAttr(const  ::wxDataViewItem&,uint, ::wxDataViewItemAttr&) const SIP_OVERRIDE;
40     bool IsEnabled(const  ::wxDataViewItem&,uint) const SIP_OVERRIDE;
41     uint GetChildren(const  ::wxDataViewItem&, ::wxDataViewItemArray&) const SIP_OVERRIDE;
42     uint GetColumnCount() const SIP_OVERRIDE;
43      ::wxString GetColumnType(uint) const SIP_OVERRIDE;
44      ::wxDataViewItem GetParent(const  ::wxDataViewItem&) const SIP_OVERRIDE;
45     void GetValue( ::wxDVCVariant&,const  ::wxDataViewItem&,uint) const SIP_OVERRIDE;
46     bool HasContainerColumns(const  ::wxDataViewItem&) const SIP_OVERRIDE;
47     bool HasDefaultCompare() const SIP_OVERRIDE;
48     bool IsContainer(const  ::wxDataViewItem&) const SIP_OVERRIDE;
49     void Resort() SIP_OVERRIDE;
50     bool SetValue(const  ::wxDVCVariant&,const  ::wxDataViewItem&,uint) SIP_OVERRIDE;
51     bool IsListModel() const SIP_OVERRIDE;
52     bool IsVirtualListModel() const SIP_OVERRIDE;
53 
54 public:
55     sipSimpleWrapper *sipPySelf;
56 
57 private:
58     sipwxDataViewListStore(const sipwxDataViewListStore &);
59     sipwxDataViewListStore &operator = (const sipwxDataViewListStore &);
60 
61     char sipPyMethods[21];
62 };
63 
sipwxDataViewListStore()64 sipwxDataViewListStore::sipwxDataViewListStore():  ::wxDataViewListStore(), sipPySelf(SIP_NULLPTR)
65 {
66     memset(sipPyMethods, 0, sizeof (sipPyMethods));
67 }
68 
~sipwxDataViewListStore()69 sipwxDataViewListStore::~sipwxDataViewListStore()
70 {
71     sipInstanceDestroyedEx(&sipPySelf);
72 }
73 
SetValueByRow(const::wxDVCVariant & value,uint row,uint col)74 bool sipwxDataViewListStore::SetValueByRow(const  ::wxDVCVariant& value,uint row,uint col)
75 {
76     sip_gilstate_t sipGILState;
77     PyObject *sipMeth;
78 
79     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_SetValueByRow);
80 
81     if (!sipMeth)
82         return  ::wxDataViewListStore::SetValueByRow(value,row,col);
83 
84     extern bool sipVH__dataview_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxDVCVariant&,uint,uint);
85 
86     return sipVH__dataview_19(sipGILState, 0, sipPySelf, sipMeth, value, row, col);
87 }
88 
GetValueByRow(::wxDVCVariant & value,uint row,uint col) const89 void sipwxDataViewListStore::GetValueByRow( ::wxDVCVariant& value,uint row,uint col) const
90 {
91     sip_gilstate_t sipGILState;
92     PyObject *sipMeth;
93 
94     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,SIP_NULLPTR,sipName_GetValueByRow);
95 
96     if (!sipMeth)
97     {
98          ::wxDataViewListStore::GetValueByRow(value,row,col);
99         return;
100     }
101 
102     extern void sipVH__dataview_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxDVCVariant&,uint,uint);
103 
104     sipVH__dataview_18(sipGILState, 0, sipPySelf, sipMeth, value, row, col);
105 }
106 
GetRow(const::wxDataViewItem & item) const107 uint sipwxDataViewListStore::GetRow(const  ::wxDataViewItem& item) const
108 {
109     sip_gilstate_t sipGILState;
110     PyObject *sipMeth;
111 
112     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,SIP_NULLPTR,sipName_GetRow);
113 
114     if (!sipMeth)
115         return  ::wxDataViewListStore::GetRow(item);
116 
117     extern uint sipVH__dataview_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxDataViewItem&);
118 
119     return sipVH__dataview_17(sipGILState, 0, sipPySelf, sipMeth, item);
120 }
121 
GetCount() const122 uint sipwxDataViewListStore::GetCount() const
123 {
124     sip_gilstate_t sipGILState;
125     PyObject *sipMeth;
126 
127     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,SIP_NULLPTR,sipName_GetCount);
128 
129     if (!sipMeth)
130         return  ::wxDataViewListStore::GetCount();
131 
132     extern uint sipVH__dataview_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
133 
134     return sipVH__dataview_10(sipGILState, 0, sipPySelf, sipMeth);
135 }
136 
IsEnabledByRow(uint row,uint col) const137 bool sipwxDataViewListStore::IsEnabledByRow(uint row,uint col) const
138 {
139     sip_gilstate_t sipGILState;
140     PyObject *sipMeth;
141 
142     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,SIP_NULLPTR,sipName_IsEnabledByRow);
143 
144     if (!sipMeth)
145         return  ::wxDataViewListStore::IsEnabledByRow(row,col);
146 
147     extern bool sipVH__dataview_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, uint,uint);
148 
149     return sipVH__dataview_16(sipGILState, 0, sipPySelf, sipMeth, row, col);
150 }
151 
GetAttrByRow(uint row,uint col,::wxDataViewItemAttr & attr) const152 bool sipwxDataViewListStore::GetAttrByRow(uint row,uint col, ::wxDataViewItemAttr& attr) const
153 {
154     sip_gilstate_t sipGILState;
155     PyObject *sipMeth;
156 
157     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_GetAttrByRow);
158 
159     if (!sipMeth)
160         return  ::wxDataViewListStore::GetAttrByRow(row,col,attr);
161 
162     extern bool sipVH__dataview_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, uint,uint, ::wxDataViewItemAttr&);
163 
164     return sipVH__dataview_15(sipGILState, 0, sipPySelf, sipMeth, row, col, attr);
165 }
166 
Compare(const::wxDataViewItem & item1,const::wxDataViewItem & item2,uint column,bool ascending) const167 int sipwxDataViewListStore::Compare(const  ::wxDataViewItem& item1,const  ::wxDataViewItem& item2,uint column,bool ascending) const
168 {
169     sip_gilstate_t sipGILState;
170     PyObject *sipMeth;
171 
172     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,SIP_NULLPTR,sipName_Compare);
173 
174     if (!sipMeth)
175         return  ::wxDataViewListStore::Compare(item1,item2,column,ascending);
176 
177     extern int sipVH__dataview_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxDataViewItem&,const  ::wxDataViewItem&,uint,bool);
178 
179     return sipVH__dataview_7(sipGILState, 0, sipPySelf, sipMeth, item1, item2, column, ascending);
180 }
181 
GetAttr(const::wxDataViewItem & item,uint col,::wxDataViewItemAttr & attr) const182 bool sipwxDataViewListStore::GetAttr(const  ::wxDataViewItem& item,uint col, ::wxDataViewItemAttr& attr) const
183 {
184     sip_gilstate_t sipGILState;
185     PyObject *sipMeth;
186 
187     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,SIP_NULLPTR,sipName_GetAttr);
188 
189     if (!sipMeth)
190         return  ::wxDataViewListStore::GetAttr(item,col,attr);
191 
192     extern bool sipVH__dataview_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxDataViewItem&,uint, ::wxDataViewItemAttr&);
193 
194     return sipVH__dataview_8(sipGILState, 0, sipPySelf, sipMeth, item, col, attr);
195 }
196 
IsEnabled(const::wxDataViewItem & item,uint col) const197 bool sipwxDataViewListStore::IsEnabled(const  ::wxDataViewItem& item,uint col) const
198 {
199     sip_gilstate_t sipGILState;
200     PyObject *sipMeth;
201 
202     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,SIP_NULLPTR,sipName_IsEnabled);
203 
204     if (!sipMeth)
205         return  ::wxDataViewListStore::IsEnabled(item,col);
206 
207     extern bool sipVH__dataview_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxDataViewItem&,uint);
208 
209     return sipVH__dataview_6(sipGILState, 0, sipPySelf, sipMeth, item, col);
210 }
211 
GetChildren(const::wxDataViewItem & item,::wxDataViewItemArray & children) const212 uint sipwxDataViewListStore::GetChildren(const  ::wxDataViewItem& item, ::wxDataViewItemArray& children) const
213 {
214     sip_gilstate_t sipGILState;
215     PyObject *sipMeth;
216 
217     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,SIP_NULLPTR,sipName_GetChildren);
218 
219     if (!sipMeth)
220         return  ::wxDataViewListStore::GetChildren(item,children);
221 
222     extern uint sipVH__dataview_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxDataViewItem&, ::wxDataViewItemArray&);
223 
224     return sipVH__dataview_9(sipGILState, 0, sipPySelf, sipMeth, item, children);
225 }
226 
GetColumnCount() const227 uint sipwxDataViewListStore::GetColumnCount() const
228 {
229     sip_gilstate_t sipGILState;
230     PyObject *sipMeth;
231 
232     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,SIP_NULLPTR,sipName_GetColumnCount);
233 
234     if (!sipMeth)
235         return  ::wxDataViewListStore::GetColumnCount();
236 
237     extern uint sipVH__dataview_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
238 
239     return sipVH__dataview_10(sipGILState, 0, sipPySelf, sipMeth);
240 }
241 
GetColumnType(uint col) const242  ::wxString sipwxDataViewListStore::GetColumnType(uint col) const
243 {
244     sip_gilstate_t sipGILState;
245     PyObject *sipMeth;
246 
247     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,SIP_NULLPTR,sipName_GetColumnType);
248 
249     if (!sipMeth)
250         return  ::wxDataViewListStore::GetColumnType(col);
251 
252     extern  ::wxString sipVH__dataview_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, uint);
253 
254     return sipVH__dataview_11(sipGILState, 0, sipPySelf, sipMeth, col);
255 }
256 
GetParent(const::wxDataViewItem & item) const257  ::wxDataViewItem sipwxDataViewListStore::GetParent(const  ::wxDataViewItem& item) const
258 {
259     sip_gilstate_t sipGILState;
260     PyObject *sipMeth;
261 
262     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_GetParent);
263 
264     if (!sipMeth)
265         return  ::wxDataViewListStore::GetParent(item);
266 
267     extern  ::wxDataViewItem sipVH__dataview_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxDataViewItem&);
268 
269     return sipVH__dataview_12(sipGILState, 0, sipPySelf, sipMeth, item);
270 }
271 
GetValue(::wxDVCVariant & variant,const::wxDataViewItem & item,uint col) const272 void sipwxDataViewListStore::GetValue( ::wxDVCVariant& variant,const  ::wxDataViewItem& item,uint col) const
273 {
274     sip_gilstate_t sipGILState;
275     PyObject *sipMeth;
276 
277     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,SIP_NULLPTR,sipName_GetValue);
278 
279     if (!sipMeth)
280     {
281          ::wxDataViewListStore::GetValue(variant,item,col);
282         return;
283     }
284 
285     extern void sipVH__dataview_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxDVCVariant&,const  ::wxDataViewItem&,uint);
286 
287     sipVH__dataview_13(sipGILState, 0, sipPySelf, sipMeth, variant, item, col);
288 }
289 
HasContainerColumns(const::wxDataViewItem & item) const290 bool sipwxDataViewListStore::HasContainerColumns(const  ::wxDataViewItem& item) const
291 {
292     sip_gilstate_t sipGILState;
293     PyObject *sipMeth;
294 
295     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,SIP_NULLPTR,sipName_HasContainerColumns);
296 
297     if (!sipMeth)
298         return  ::wxDataViewListStore::HasContainerColumns(item);
299 
300     extern bool sipVH__dataview_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxDataViewItem&);
301 
302     return sipVH__dataview_2(sipGILState, 0, sipPySelf, sipMeth, item);
303 }
304 
HasDefaultCompare() const305 bool sipwxDataViewListStore::HasDefaultCompare() const
306 {
307     sip_gilstate_t sipGILState;
308     PyObject *sipMeth;
309 
310     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,SIP_NULLPTR,sipName_HasDefaultCompare);
311 
312     if (!sipMeth)
313         return  ::wxDataViewListStore::HasDefaultCompare();
314 
315     extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
316 
317     return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
318 }
319 
IsContainer(const::wxDataViewItem & item) const320 bool sipwxDataViewListStore::IsContainer(const  ::wxDataViewItem& item) const
321 {
322     sip_gilstate_t sipGILState;
323     PyObject *sipMeth;
324 
325     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,SIP_NULLPTR,sipName_IsContainer);
326 
327     if (!sipMeth)
328         return  ::wxDataViewListStore::IsContainer(item);
329 
330     extern bool sipVH__dataview_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxDataViewItem&);
331 
332     return sipVH__dataview_2(sipGILState, 0, sipPySelf, sipMeth, item);
333 }
334 
Resort()335 void sipwxDataViewListStore::Resort()
336 {
337     sip_gilstate_t sipGILState;
338     PyObject *sipMeth;
339 
340     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_Resort);
341 
342     if (!sipMeth)
343     {
344          ::wxDataViewListStore::Resort();
345         return;
346     }
347 
348     extern void sipVH__dataview_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
349 
350     sipVH__dataview_5(sipGILState, 0, sipPySelf, sipMeth);
351 }
352 
SetValue(const::wxDVCVariant & variant,const::wxDataViewItem & item,uint col)353 bool sipwxDataViewListStore::SetValue(const  ::wxDVCVariant& variant,const  ::wxDataViewItem& item,uint col)
354 {
355     sip_gilstate_t sipGILState;
356     PyObject *sipMeth;
357 
358     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_SetValue);
359 
360     if (!sipMeth)
361         return  ::wxDataViewListStore::SetValue(variant,item,col);
362 
363     extern bool sipVH__dataview_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxDVCVariant&,const  ::wxDataViewItem&,uint);
364 
365     return sipVH__dataview_14(sipGILState, 0, sipPySelf, sipMeth, variant, item, col);
366 }
367 
IsListModel() const368 bool sipwxDataViewListStore::IsListModel() const
369 {
370     sip_gilstate_t sipGILState;
371     PyObject *sipMeth;
372 
373     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,SIP_NULLPTR,sipName_IsListModel);
374 
375     if (!sipMeth)
376         return  ::wxDataViewListStore::IsListModel();
377 
378     extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
379 
380     return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
381 }
382 
IsVirtualListModel() const383 bool sipwxDataViewListStore::IsVirtualListModel() const
384 {
385     sip_gilstate_t sipGILState;
386     PyObject *sipMeth;
387 
388     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,SIP_NULLPTR,sipName_IsVirtualListModel);
389 
390     if (!sipMeth)
391         return  ::wxDataViewListStore::IsVirtualListModel();
392 
393     extern bool sipVH__dataview_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
394 
395     return sipVH__dataview_0(sipGILState, 0, sipPySelf, sipMeth);
396 }
397 
398 
399 PyDoc_STRVAR(doc_wxDataViewListStore_PrependColumn, "PrependColumn(varianttype)\n"
400 "\n"
401 "Prepends a data column.");
402 
403 extern "C" {static PyObject *meth_wxDataViewListStore_PrependColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_PrependColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)404 static PyObject *meth_wxDataViewListStore_PrependColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
405 {
406     PyObject *sipParseErr = SIP_NULLPTR;
407 
408     {
409         const  ::wxString* varianttype;
410         int varianttypeState = 0;
411          ::wxDataViewListStore *sipCpp;
412 
413         static const char *sipKwdList[] = {
414             sipName_varianttype,
415         };
416 
417         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxDataViewListStore, &sipCpp, sipType_wxString,&varianttype, &varianttypeState))
418         {
419             PyErr_Clear();
420 
421             Py_BEGIN_ALLOW_THREADS
422             sipCpp->PrependColumn(*varianttype);
423             Py_END_ALLOW_THREADS
424             sipReleaseType(const_cast< ::wxString *>(varianttype),sipType_wxString,varianttypeState);
425 
426             if (PyErr_Occurred())
427                 return 0;
428 
429             Py_INCREF(Py_None);
430             return Py_None;
431         }
432     }
433 
434     /* Raise an exception if the arguments couldn't be parsed. */
435     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_PrependColumn, SIP_NULLPTR);
436 
437     return SIP_NULLPTR;
438 }
439 
440 
441 PyDoc_STRVAR(doc_wxDataViewListStore_InsertColumn, "InsertColumn(pos, varianttype)\n"
442 "\n"
443 "Inserts a data column before pos.");
444 
445 extern "C" {static PyObject *meth_wxDataViewListStore_InsertColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_InsertColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)446 static PyObject *meth_wxDataViewListStore_InsertColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
447 {
448     PyObject *sipParseErr = SIP_NULLPTR;
449 
450     {
451         uint pos;
452         const  ::wxString* varianttype;
453         int varianttypeState = 0;
454          ::wxDataViewListStore *sipCpp;
455 
456         static const char *sipKwdList[] = {
457             sipName_pos,
458             sipName_varianttype,
459         };
460 
461         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BuJ1", &sipSelf, sipType_wxDataViewListStore, &sipCpp, &pos, sipType_wxString,&varianttype, &varianttypeState))
462         {
463             PyErr_Clear();
464 
465             Py_BEGIN_ALLOW_THREADS
466             sipCpp->InsertColumn(pos,*varianttype);
467             Py_END_ALLOW_THREADS
468             sipReleaseType(const_cast< ::wxString *>(varianttype),sipType_wxString,varianttypeState);
469 
470             if (PyErr_Occurred())
471                 return 0;
472 
473             Py_INCREF(Py_None);
474             return Py_None;
475         }
476     }
477 
478     /* Raise an exception if the arguments couldn't be parsed. */
479     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_InsertColumn, SIP_NULLPTR);
480 
481     return SIP_NULLPTR;
482 }
483 
484 
485 PyDoc_STRVAR(doc_wxDataViewListStore_AppendColumn, "AppendColumn(varianttype)\n"
486 "\n"
487 "Appends a data column.");
488 
489 extern "C" {static PyObject *meth_wxDataViewListStore_AppendColumn(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_AppendColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)490 static PyObject *meth_wxDataViewListStore_AppendColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
491 {
492     PyObject *sipParseErr = SIP_NULLPTR;
493 
494     {
495         const  ::wxString* varianttype;
496         int varianttypeState = 0;
497          ::wxDataViewListStore *sipCpp;
498 
499         static const char *sipKwdList[] = {
500             sipName_varianttype,
501         };
502 
503         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxDataViewListStore, &sipCpp, sipType_wxString,&varianttype, &varianttypeState))
504         {
505             PyErr_Clear();
506 
507             Py_BEGIN_ALLOW_THREADS
508             sipCpp->AppendColumn(*varianttype);
509             Py_END_ALLOW_THREADS
510             sipReleaseType(const_cast< ::wxString *>(varianttype),sipType_wxString,varianttypeState);
511 
512             if (PyErr_Occurred())
513                 return 0;
514 
515             Py_INCREF(Py_None);
516             return Py_None;
517         }
518     }
519 
520     /* Raise an exception if the arguments couldn't be parsed. */
521     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_AppendColumn, SIP_NULLPTR);
522 
523     return SIP_NULLPTR;
524 }
525 
526 
527 PyDoc_STRVAR(doc_wxDataViewListStore_AppendItem, "AppendItem(values, data=None)\n"
528 "\n"
529 "Appends an item (=row) and fills it with values.");
530 
531 extern "C" {static PyObject *meth_wxDataViewListStore_AppendItem(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_AppendItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)532 static PyObject *meth_wxDataViewListStore_AppendItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
533 {
534     PyObject *sipParseErr = SIP_NULLPTR;
535 
536     {
537         const  ::wxVariantVector* values;
538         int valuesState = 0;
539          ::wxUIntPtr datadef = 0;
540          ::wxUIntPtr* data = &datadef;
541         int dataState = 0;
542          ::wxDataViewListStore *sipCpp;
543 
544         static const char *sipKwdList[] = {
545             sipName_values,
546             sipName_data,
547         };
548 
549         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|J1", &sipSelf, sipType_wxDataViewListStore, &sipCpp, sipType_wxVariantVector,&values, &valuesState, sipType_wxUIntPtr,&data, &dataState))
550         {
551             PyErr_Clear();
552 
553             Py_BEGIN_ALLOW_THREADS
554             sipCpp->AppendItem(*values,*data);
555             Py_END_ALLOW_THREADS
556             sipReleaseType(const_cast< ::wxVariantVector *>(values),sipType_wxVariantVector,valuesState);
557             sipReleaseType(data,sipType_wxUIntPtr,dataState);
558 
559             if (PyErr_Occurred())
560                 return 0;
561 
562             Py_INCREF(Py_None);
563             return Py_None;
564         }
565     }
566 
567     /* Raise an exception if the arguments couldn't be parsed. */
568     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_AppendItem, SIP_NULLPTR);
569 
570     return SIP_NULLPTR;
571 }
572 
573 
574 PyDoc_STRVAR(doc_wxDataViewListStore_PrependItem, "PrependItem(values, data=None)\n"
575 "\n"
576 "Prepends an item (=row) and fills it with values.");
577 
578 extern "C" {static PyObject *meth_wxDataViewListStore_PrependItem(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_PrependItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)579 static PyObject *meth_wxDataViewListStore_PrependItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
580 {
581     PyObject *sipParseErr = SIP_NULLPTR;
582 
583     {
584         const  ::wxVariantVector* values;
585         int valuesState = 0;
586          ::wxUIntPtr datadef = 0;
587          ::wxUIntPtr* data = &datadef;
588         int dataState = 0;
589          ::wxDataViewListStore *sipCpp;
590 
591         static const char *sipKwdList[] = {
592             sipName_values,
593             sipName_data,
594         };
595 
596         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|J1", &sipSelf, sipType_wxDataViewListStore, &sipCpp, sipType_wxVariantVector,&values, &valuesState, sipType_wxUIntPtr,&data, &dataState))
597         {
598             PyErr_Clear();
599 
600             Py_BEGIN_ALLOW_THREADS
601             sipCpp->PrependItem(*values,*data);
602             Py_END_ALLOW_THREADS
603             sipReleaseType(const_cast< ::wxVariantVector *>(values),sipType_wxVariantVector,valuesState);
604             sipReleaseType(data,sipType_wxUIntPtr,dataState);
605 
606             if (PyErr_Occurred())
607                 return 0;
608 
609             Py_INCREF(Py_None);
610             return Py_None;
611         }
612     }
613 
614     /* Raise an exception if the arguments couldn't be parsed. */
615     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_PrependItem, SIP_NULLPTR);
616 
617     return SIP_NULLPTR;
618 }
619 
620 
621 PyDoc_STRVAR(doc_wxDataViewListStore_InsertItem, "InsertItem(row, values, data=None)\n"
622 "\n"
623 "Inserts an item (=row) and fills it with values.");
624 
625 extern "C" {static PyObject *meth_wxDataViewListStore_InsertItem(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_InsertItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)626 static PyObject *meth_wxDataViewListStore_InsertItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
627 {
628     PyObject *sipParseErr = SIP_NULLPTR;
629 
630     {
631         uint row;
632         const  ::wxVariantVector* values;
633         int valuesState = 0;
634          ::wxUIntPtr datadef = 0;
635          ::wxUIntPtr* data = &datadef;
636         int dataState = 0;
637          ::wxDataViewListStore *sipCpp;
638 
639         static const char *sipKwdList[] = {
640             sipName_row,
641             sipName_values,
642             sipName_data,
643         };
644 
645         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BuJ1|J1", &sipSelf, sipType_wxDataViewListStore, &sipCpp, &row, sipType_wxVariantVector,&values, &valuesState, sipType_wxUIntPtr,&data, &dataState))
646         {
647             PyErr_Clear();
648 
649             Py_BEGIN_ALLOW_THREADS
650             sipCpp->InsertItem(row,*values,*data);
651             Py_END_ALLOW_THREADS
652             sipReleaseType(const_cast< ::wxVariantVector *>(values),sipType_wxVariantVector,valuesState);
653             sipReleaseType(data,sipType_wxUIntPtr,dataState);
654 
655             if (PyErr_Occurred())
656                 return 0;
657 
658             Py_INCREF(Py_None);
659             return Py_None;
660         }
661     }
662 
663     /* Raise an exception if the arguments couldn't be parsed. */
664     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_InsertItem, SIP_NULLPTR);
665 
666     return SIP_NULLPTR;
667 }
668 
669 
670 PyDoc_STRVAR(doc_wxDataViewListStore_DeleteItem, "DeleteItem(pos)\n"
671 "\n"
672 "Delete the item (=row) at position pos.");
673 
674 extern "C" {static PyObject *meth_wxDataViewListStore_DeleteItem(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_DeleteItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)675 static PyObject *meth_wxDataViewListStore_DeleteItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
676 {
677     PyObject *sipParseErr = SIP_NULLPTR;
678 
679     {
680         uint pos;
681          ::wxDataViewListStore *sipCpp;
682 
683         static const char *sipKwdList[] = {
684             sipName_pos,
685         };
686 
687         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bu", &sipSelf, sipType_wxDataViewListStore, &sipCpp, &pos))
688         {
689             PyErr_Clear();
690 
691             Py_BEGIN_ALLOW_THREADS
692             sipCpp->DeleteItem(pos);
693             Py_END_ALLOW_THREADS
694 
695             if (PyErr_Occurred())
696                 return 0;
697 
698             Py_INCREF(Py_None);
699             return Py_None;
700         }
701     }
702 
703     /* Raise an exception if the arguments couldn't be parsed. */
704     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_DeleteItem, SIP_NULLPTR);
705 
706     return SIP_NULLPTR;
707 }
708 
709 
710 PyDoc_STRVAR(doc_wxDataViewListStore_DeleteAllItems, "DeleteAllItems()\n"
711 "\n"
712 "Delete all item (=all rows) in the store.");
713 
714 extern "C" {static PyObject *meth_wxDataViewListStore_DeleteAllItems(PyObject *, PyObject *);}
meth_wxDataViewListStore_DeleteAllItems(PyObject * sipSelf,PyObject * sipArgs)715 static PyObject *meth_wxDataViewListStore_DeleteAllItems(PyObject *sipSelf, PyObject *sipArgs)
716 {
717     PyObject *sipParseErr = SIP_NULLPTR;
718 
719     {
720          ::wxDataViewListStore *sipCpp;
721 
722         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewListStore, &sipCpp))
723         {
724             PyErr_Clear();
725 
726             Py_BEGIN_ALLOW_THREADS
727             sipCpp->DeleteAllItems();
728             Py_END_ALLOW_THREADS
729 
730             if (PyErr_Occurred())
731                 return 0;
732 
733             Py_INCREF(Py_None);
734             return Py_None;
735         }
736     }
737 
738     /* Raise an exception if the arguments couldn't be parsed. */
739     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_DeleteAllItems, SIP_NULLPTR);
740 
741     return SIP_NULLPTR;
742 }
743 
744 
745 PyDoc_STRVAR(doc_wxDataViewListStore_GetItemCount, "GetItemCount() -> unsignedint\n"
746 "\n"
747 "Returns the number of items (=rows) in the control.");
748 
749 extern "C" {static PyObject *meth_wxDataViewListStore_GetItemCount(PyObject *, PyObject *);}
meth_wxDataViewListStore_GetItemCount(PyObject * sipSelf,PyObject * sipArgs)750 static PyObject *meth_wxDataViewListStore_GetItemCount(PyObject *sipSelf, PyObject *sipArgs)
751 {
752     PyObject *sipParseErr = SIP_NULLPTR;
753 
754     {
755         const  ::wxDataViewListStore *sipCpp;
756 
757         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewListStore, &sipCpp))
758         {
759             uint sipRes;
760 
761             PyErr_Clear();
762 
763             Py_BEGIN_ALLOW_THREADS
764             sipRes = sipCpp->GetItemCount();
765             Py_END_ALLOW_THREADS
766 
767             if (PyErr_Occurred())
768                 return 0;
769 
770             return PyLong_FromUnsignedLong(sipRes);
771         }
772     }
773 
774     /* Raise an exception if the arguments couldn't be parsed. */
775     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_GetItemCount, SIP_NULLPTR);
776 
777     return SIP_NULLPTR;
778 }
779 
780 
781 PyDoc_STRVAR(doc_wxDataViewListStore_GetItemData, "GetItemData(item) -> UIntPtr\n"
782 "\n"
783 "Returns the client data associated with the item.");
784 
785 extern "C" {static PyObject *meth_wxDataViewListStore_GetItemData(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_GetItemData(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)786 static PyObject *meth_wxDataViewListStore_GetItemData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
787 {
788     PyObject *sipParseErr = SIP_NULLPTR;
789 
790     {
791         const  ::wxDataViewItem* item;
792         const  ::wxDataViewListStore *sipCpp;
793 
794         static const char *sipKwdList[] = {
795             sipName_item,
796         };
797 
798         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxDataViewListStore, &sipCpp, sipType_wxDataViewItem, &item))
799         {
800              ::wxUIntPtr*sipRes;
801 
802             PyErr_Clear();
803 
804             Py_BEGIN_ALLOW_THREADS
805             sipRes = new  ::wxUIntPtr(sipCpp->GetItemData(*item));
806             Py_END_ALLOW_THREADS
807 
808             if (PyErr_Occurred())
809                 return 0;
810 
811             return sipConvertFromNewType(sipRes,sipType_wxUIntPtr,SIP_NULLPTR);
812         }
813     }
814 
815     /* Raise an exception if the arguments couldn't be parsed. */
816     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_GetItemData, SIP_NULLPTR);
817 
818     return SIP_NULLPTR;
819 }
820 
821 
822 PyDoc_STRVAR(doc_wxDataViewListStore_GetColumnCount, "GetColumnCount() -> unsignedint\n"
823 "\n"
824 "Overridden from wxDataViewModel.");
825 
826 extern "C" {static PyObject *meth_wxDataViewListStore_GetColumnCount(PyObject *, PyObject *);}
meth_wxDataViewListStore_GetColumnCount(PyObject * sipSelf,PyObject * sipArgs)827 static PyObject *meth_wxDataViewListStore_GetColumnCount(PyObject *sipSelf, PyObject *sipArgs)
828 {
829     PyObject *sipParseErr = SIP_NULLPTR;
830     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
831 
832     {
833         const  ::wxDataViewListStore *sipCpp;
834 
835         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxDataViewListStore, &sipCpp))
836         {
837             uint sipRes;
838 
839             PyErr_Clear();
840 
841             Py_BEGIN_ALLOW_THREADS
842             sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewListStore::GetColumnCount() : sipCpp->GetColumnCount());
843             Py_END_ALLOW_THREADS
844 
845             if (PyErr_Occurred())
846                 return 0;
847 
848             return PyLong_FromUnsignedLong(sipRes);
849         }
850     }
851 
852     /* Raise an exception if the arguments couldn't be parsed. */
853     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_GetColumnCount, SIP_NULLPTR);
854 
855     return SIP_NULLPTR;
856 }
857 
858 
859 PyDoc_STRVAR(doc_wxDataViewListStore_GetColumnType, "GetColumnType(col) -> String\n"
860 "\n"
861 "Overridden from wxDataViewModel.");
862 
863 extern "C" {static PyObject *meth_wxDataViewListStore_GetColumnType(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_GetColumnType(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)864 static PyObject *meth_wxDataViewListStore_GetColumnType(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
865 {
866     PyObject *sipParseErr = SIP_NULLPTR;
867     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
868 
869     {
870         uint col;
871         const  ::wxDataViewListStore *sipCpp;
872 
873         static const char *sipKwdList[] = {
874             sipName_col,
875         };
876 
877         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bu", &sipSelf, sipType_wxDataViewListStore, &sipCpp, &col))
878         {
879              ::wxString*sipRes;
880 
881             PyErr_Clear();
882 
883             Py_BEGIN_ALLOW_THREADS
884             sipRes = new  ::wxString((sipSelfWasArg ? sipCpp-> ::wxDataViewListStore::GetColumnType(col) : sipCpp->GetColumnType(col)));
885             Py_END_ALLOW_THREADS
886 
887             if (PyErr_Occurred())
888                 return 0;
889 
890             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
891         }
892     }
893 
894     /* Raise an exception if the arguments couldn't be parsed. */
895     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_GetColumnType, SIP_NULLPTR);
896 
897     return SIP_NULLPTR;
898 }
899 
900 
901 PyDoc_STRVAR(doc_wxDataViewListStore_SetItemData, "SetItemData(item, data)\n"
902 "\n"
903 "Sets the client data associated with the item.");
904 
905 extern "C" {static PyObject *meth_wxDataViewListStore_SetItemData(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_SetItemData(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)906 static PyObject *meth_wxDataViewListStore_SetItemData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
907 {
908     PyObject *sipParseErr = SIP_NULLPTR;
909 
910     {
911         const  ::wxDataViewItem* item;
912          ::wxUIntPtr* data;
913         int dataState = 0;
914          ::wxDataViewListStore *sipCpp;
915 
916         static const char *sipKwdList[] = {
917             sipName_item,
918             sipName_data,
919         };
920 
921         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J1", &sipSelf, sipType_wxDataViewListStore, &sipCpp, sipType_wxDataViewItem, &item, sipType_wxUIntPtr,&data, &dataState))
922         {
923             PyErr_Clear();
924 
925             Py_BEGIN_ALLOW_THREADS
926             sipCpp->SetItemData(*item,*data);
927             Py_END_ALLOW_THREADS
928             sipReleaseType(data,sipType_wxUIntPtr,dataState);
929 
930             if (PyErr_Occurred())
931                 return 0;
932 
933             Py_INCREF(Py_None);
934             return Py_None;
935         }
936     }
937 
938     /* Raise an exception if the arguments couldn't be parsed. */
939     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_SetItemData, SIP_NULLPTR);
940 
941     return SIP_NULLPTR;
942 }
943 
944 
945 PyDoc_STRVAR(doc_wxDataViewListStore_GetValueByRow, "GetValueByRow(row, col) -> value\n"
946 "\n"
947 "Overridden from wxDataViewIndexListModel.");
948 
949 extern "C" {static PyObject *meth_wxDataViewListStore_GetValueByRow(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_GetValueByRow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)950 static PyObject *meth_wxDataViewListStore_GetValueByRow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
951 {
952     PyObject *sipParseErr = SIP_NULLPTR;
953     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
954 
955     {
956          ::wxDVCVariant* value;
957         uint row;
958         uint col;
959         const  ::wxDataViewListStore *sipCpp;
960 
961         static const char *sipKwdList[] = {
962             sipName_row,
963             sipName_col,
964         };
965 
966         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Buu", &sipSelf, sipType_wxDataViewListStore, &sipCpp, &row, &col))
967         {
968             value = new  ::wxDVCVariant();
969 
970             PyErr_Clear();
971 
972             Py_BEGIN_ALLOW_THREADS
973             (sipSelfWasArg ? sipCpp-> ::wxDataViewListStore::GetValueByRow(*value,row,col) : sipCpp->GetValueByRow(*value,row,col));
974             Py_END_ALLOW_THREADS
975 
976             if (PyErr_Occurred())
977                 return 0;
978 
979             return sipConvertFromNewType(value,sipType_wxDVCVariant,SIP_NULLPTR);
980         }
981     }
982 
983     /* Raise an exception if the arguments couldn't be parsed. */
984     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_GetValueByRow, SIP_NULLPTR);
985 
986     return SIP_NULLPTR;
987 }
988 
989 
990 PyDoc_STRVAR(doc_wxDataViewListStore_SetValueByRow, "SetValueByRow(value, row, col) -> bool\n"
991 "\n"
992 "Overridden from wxDataViewIndexListModel.");
993 
994 extern "C" {static PyObject *meth_wxDataViewListStore_SetValueByRow(PyObject *, PyObject *, PyObject *);}
meth_wxDataViewListStore_SetValueByRow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)995 static PyObject *meth_wxDataViewListStore_SetValueByRow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
996 {
997     PyObject *sipParseErr = SIP_NULLPTR;
998     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
999 
1000     {
1001         const  ::wxDVCVariant* value;
1002         int valueState = 0;
1003         uint row;
1004         uint col;
1005          ::wxDataViewListStore *sipCpp;
1006 
1007         static const char *sipKwdList[] = {
1008             sipName_value,
1009             sipName_row,
1010             sipName_col,
1011         };
1012 
1013         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1uu", &sipSelf, sipType_wxDataViewListStore, &sipCpp, sipType_wxDVCVariant,&value, &valueState, &row, &col))
1014         {
1015             bool sipRes;
1016 
1017             PyErr_Clear();
1018 
1019             Py_BEGIN_ALLOW_THREADS
1020             sipRes = (sipSelfWasArg ? sipCpp-> ::wxDataViewListStore::SetValueByRow(*value,row,col) : sipCpp->SetValueByRow(*value,row,col));
1021             Py_END_ALLOW_THREADS
1022             sipReleaseType(const_cast< ::wxDVCVariant *>(value),sipType_wxDVCVariant,valueState);
1023 
1024             if (PyErr_Occurred())
1025                 return 0;
1026 
1027             return PyBool_FromLong(sipRes);
1028         }
1029     }
1030 
1031     /* Raise an exception if the arguments couldn't be parsed. */
1032     sipNoMethod(sipParseErr, sipName_DataViewListStore, sipName_SetValueByRow, SIP_NULLPTR);
1033 
1034     return SIP_NULLPTR;
1035 }
1036 
1037 
1038 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
1039 extern "C" {static void *cast_wxDataViewListStore(void *, const sipTypeDef *);}
cast_wxDataViewListStore(void * sipCppV,const sipTypeDef * targetType)1040 static void *cast_wxDataViewListStore(void *sipCppV, const sipTypeDef *targetType)
1041 {
1042      ::wxDataViewListStore *sipCpp = reinterpret_cast< ::wxDataViewListStore *>(sipCppV);
1043 
1044     if (targetType == sipType_wxDataViewIndexListModel)
1045         return static_cast< ::wxDataViewIndexListModel *>(sipCpp);
1046 
1047     if (targetType == sipType_wxDataViewListModel)
1048         return static_cast< ::wxDataViewListModel *>(sipCpp);
1049 
1050     if (targetType == sipType_wxDataViewModel)
1051         return static_cast< ::wxDataViewModel *>(sipCpp);
1052 
1053     if (targetType == sipType_wxRefCounter)
1054         return static_cast< ::wxRefCounter *>(sipCpp);
1055 
1056     return sipCppV;
1057 }
1058 
1059 
1060 /* Call the instance's destructor. */
1061 extern "C" {static void release_wxDataViewListStore(void *, int);}
release_wxDataViewListStore(void * sipCppV,int sipState)1062 static void release_wxDataViewListStore(void *sipCppV, int sipState)
1063 {
1064     Py_BEGIN_ALLOW_THREADS
1065 
1066     if (sipState & SIP_DERIVED_CLASS)
1067         delete reinterpret_cast<sipwxDataViewListStore *>(sipCppV);
1068     else
1069         delete reinterpret_cast< ::wxDataViewListStore *>(sipCppV);
1070 
1071     Py_END_ALLOW_THREADS
1072 }
1073 
1074 
1075 extern "C" {static void dealloc_wxDataViewListStore(sipSimpleWrapper *);}
dealloc_wxDataViewListStore(sipSimpleWrapper * sipSelf)1076 static void dealloc_wxDataViewListStore(sipSimpleWrapper *sipSelf)
1077 {
1078     if (sipIsDerivedClass(sipSelf))
1079         reinterpret_cast<sipwxDataViewListStore *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
1080 
1081     if (sipIsOwnedByPython(sipSelf))
1082     {
1083         release_wxDataViewListStore(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
1084     }
1085 }
1086 
1087 
1088 extern "C" {static void *init_type_wxDataViewListStore(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxDataViewListStore(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)1089 static void *init_type_wxDataViewListStore(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
1090 {
1091     sipwxDataViewListStore *sipCpp = SIP_NULLPTR;
1092 
1093     {
1094         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
1095         {
1096             PyErr_Clear();
1097 
1098             Py_BEGIN_ALLOW_THREADS
1099             sipCpp = new sipwxDataViewListStore();
1100             Py_END_ALLOW_THREADS
1101 
1102             if (PyErr_Occurred())
1103             {
1104                 delete sipCpp;
1105                 return SIP_NULLPTR;
1106             }
1107 
1108             sipCpp->sipPySelf = sipSelf;
1109 
1110             return sipCpp;
1111         }
1112     }
1113 
1114     return SIP_NULLPTR;
1115 }
1116 
1117 
1118 /* Define this type's super-types. */
1119 static sipEncodedTypeDef supers_wxDataViewListStore[] = {{13, 255, 1}};
1120 
1121 
1122 static PyMethodDef methods_wxDataViewListStore[] = {
1123     {SIP_MLNAME_CAST(sipName_AppendColumn), SIP_MLMETH_CAST(meth_wxDataViewListStore_AppendColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_AppendColumn)},
1124     {SIP_MLNAME_CAST(sipName_AppendItem), SIP_MLMETH_CAST(meth_wxDataViewListStore_AppendItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_AppendItem)},
1125     {SIP_MLNAME_CAST(sipName_DeleteAllItems), meth_wxDataViewListStore_DeleteAllItems, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewListStore_DeleteAllItems)},
1126     {SIP_MLNAME_CAST(sipName_DeleteItem), SIP_MLMETH_CAST(meth_wxDataViewListStore_DeleteItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_DeleteItem)},
1127     {SIP_MLNAME_CAST(sipName_GetColumnCount), meth_wxDataViewListStore_GetColumnCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewListStore_GetColumnCount)},
1128     {SIP_MLNAME_CAST(sipName_GetColumnType), SIP_MLMETH_CAST(meth_wxDataViewListStore_GetColumnType), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_GetColumnType)},
1129     {SIP_MLNAME_CAST(sipName_GetItemCount), meth_wxDataViewListStore_GetItemCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxDataViewListStore_GetItemCount)},
1130     {SIP_MLNAME_CAST(sipName_GetItemData), SIP_MLMETH_CAST(meth_wxDataViewListStore_GetItemData), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_GetItemData)},
1131     {SIP_MLNAME_CAST(sipName_GetValueByRow), SIP_MLMETH_CAST(meth_wxDataViewListStore_GetValueByRow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_GetValueByRow)},
1132     {SIP_MLNAME_CAST(sipName_InsertColumn), SIP_MLMETH_CAST(meth_wxDataViewListStore_InsertColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_InsertColumn)},
1133     {SIP_MLNAME_CAST(sipName_InsertItem), SIP_MLMETH_CAST(meth_wxDataViewListStore_InsertItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_InsertItem)},
1134     {SIP_MLNAME_CAST(sipName_PrependColumn), SIP_MLMETH_CAST(meth_wxDataViewListStore_PrependColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_PrependColumn)},
1135     {SIP_MLNAME_CAST(sipName_PrependItem), SIP_MLMETH_CAST(meth_wxDataViewListStore_PrependItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_PrependItem)},
1136     {SIP_MLNAME_CAST(sipName_SetItemData), SIP_MLMETH_CAST(meth_wxDataViewListStore_SetItemData), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_SetItemData)},
1137     {SIP_MLNAME_CAST(sipName_SetValueByRow), SIP_MLMETH_CAST(meth_wxDataViewListStore_SetValueByRow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxDataViewListStore_SetValueByRow)}
1138 };
1139 
1140 sipVariableDef variables_wxDataViewListStore[] = {
1141     {PropertyVariable, sipName_ItemCount, &methods_wxDataViewListStore[6], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1142     {PropertyVariable, sipName_ColumnCount, &methods_wxDataViewListStore[4], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1143 };
1144 
1145 PyDoc_STRVAR(doc_wxDataViewListStore, "DataViewListStore()\n"
1146 "\n"
1147 "wxDataViewListStore is a specialised wxDataViewModel for storing a\n"
1148 "simple table of data.");
1149 
1150 
1151 sipClassTypeDef sipTypeDef__dataview_wxDataViewListStore = {
1152     {
1153         -1,
1154         SIP_NULLPTR,
1155         SIP_NULLPTR,
1156         SIP_TYPE_CLASS,
1157         sipNameNr_wxDataViewListStore,
1158         {SIP_NULLPTR},
1159         SIP_NULLPTR
1160     },
1161     {
1162         sipNameNr_DataViewListStore,
1163         {0, 0, 1},
1164         15, methods_wxDataViewListStore,
1165         0, SIP_NULLPTR,
1166         2, variables_wxDataViewListStore,
1167         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1168     },
1169     doc_wxDataViewListStore,
1170     -1,
1171     -1,
1172     supers_wxDataViewListStore,
1173     SIP_NULLPTR,
1174     init_type_wxDataViewListStore,
1175     SIP_NULLPTR,
1176     SIP_NULLPTR,
1177 #if PY_MAJOR_VERSION >= 3
1178     SIP_NULLPTR,
1179     SIP_NULLPTR,
1180 #else
1181     SIP_NULLPTR,
1182     SIP_NULLPTR,
1183     SIP_NULLPTR,
1184     SIP_NULLPTR,
1185 #endif
1186     dealloc_wxDataViewListStore,
1187     SIP_NULLPTR,
1188     SIP_NULLPTR,
1189     SIP_NULLPTR,
1190     release_wxDataViewListStore,
1191     cast_wxDataViewListStore,
1192     SIP_NULLPTR,
1193     SIP_NULLPTR,
1194     SIP_NULLPTR,
1195     SIP_NULLPTR,
1196     SIP_NULLPTR,
1197     SIP_NULLPTR
1198 };
1199