]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/controls2.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initcontrols2c | |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
59 | #ifdef __WXMSW__ | |
60 | #include <windows.h> | |
61 | #endif | |
62 | #include <wx/listctrl.h> | |
63 | #include <wx/treectrl.h> | |
64 | #include <wx/imaglist.h> | |
d1e76a37 | 65 | #include <wx/dirctrl.h> |
e6056257 RD |
66 | |
67 | ||
68 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
69 | PyObject* o2; | |
70 | PyObject* o3; | |
71 | ||
72 | if (!target) { | |
73 | target = o; | |
74 | } else if (target == Py_None) { | |
75 | Py_DECREF(Py_None); | |
76 | target = o; | |
77 | } else { | |
78 | if (!PyTuple_Check(target)) { | |
79 | o2 = target; | |
80 | target = PyTuple_New(1); | |
81 | PyTuple_SetItem(target, 0, o2); | |
82 | } | |
83 | o3 = PyTuple_New(1); | |
84 | PyTuple_SetItem(o3, 0, o); | |
85 | ||
86 | o2 = target; | |
87 | target = PySequence_Concat(o2, o3); | |
88 | Py_DECREF(o2); | |
89 | Py_DECREF(o3); | |
90 | } | |
91 | return target; | |
92 | } | |
93 | ||
94 | #if PYTHON_API_VERSION >= 1009 | |
95 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
96 | #else | |
97 | static char* wxStringErrorMsg = "String type required"; | |
98 | #endif | |
99 | // C++ Version of a Python aware class | |
100 | class wxPyListCtrl : public wxListCtrl { | |
101 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
102 | public: | |
103 | wxPyListCtrl() : wxListCtrl() {} | |
104 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
105 | const wxPoint& pos, | |
106 | const wxSize& size, | |
107 | long style, | |
108 | const wxValidator& validator, | |
109 | char* name) : | |
110 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
111 | ||
112 | bool Create(wxWindow* parent, wxWindowID id, | |
113 | const wxPoint& pos, | |
114 | const wxSize& size, | |
115 | long style, | |
116 | const wxValidator& validator, | |
117 | char* name) { | |
118 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
119 | } | |
120 | ||
121 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
122 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
123 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
124 | ||
125 | PYPRIVATE; | |
126 | }; | |
127 | ||
128 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
129 | ||
130 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
131 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
132 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
133 | // Python aware sorting function for wxPyListCtrl | |
134 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
135 | int retval = 0; | |
136 | PyObject* func = (PyObject*)funcPtr; | |
0e2ff151 | 137 | wxPyBeginBlockThreads(); |
e6056257 RD |
138 | |
139 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
140 | PyObject* result = PyEval_CallObject(func, args); | |
141 | Py_DECREF(args); | |
142 | if (result) { | |
143 | retval = PyInt_AsLong(result); | |
144 | Py_DECREF(result); | |
145 | } | |
146 | ||
0e2ff151 | 147 | wxPyEndBlockThreads(); |
e6056257 RD |
148 | return retval; |
149 | } | |
150 | ||
151 | ||
152 | class wxPyTreeItemData : public wxTreeItemData { | |
153 | public: | |
154 | wxPyTreeItemData(PyObject* obj = NULL) { | |
155 | if (obj == NULL) | |
156 | obj = Py_None; | |
157 | Py_INCREF(obj); | |
158 | m_obj = obj; | |
159 | } | |
160 | ||
161 | ~wxPyTreeItemData() { | |
0e2ff151 | 162 | wxPyBeginBlockThreads(); |
e6056257 | 163 | Py_DECREF(m_obj); |
0e2ff151 | 164 | wxPyEndBlockThreads(); |
e6056257 RD |
165 | } |
166 | ||
167 | PyObject* GetData() { | |
168 | Py_INCREF(m_obj); | |
169 | return m_obj; | |
170 | } | |
171 | ||
172 | void SetData(PyObject* obj) { | |
0e2ff151 | 173 | wxPyBeginBlockThreads(); |
e6056257 | 174 | Py_DECREF(m_obj); |
0e2ff151 | 175 | wxPyEndBlockThreads(); |
e6056257 RD |
176 | m_obj = obj; |
177 | Py_INCREF(obj); | |
178 | } | |
179 | ||
180 | PyObject* m_obj; | |
181 | }; | |
182 | // C++ version of Python aware wxTreeCtrl | |
183 | class wxPyTreeCtrl : public wxTreeCtrl { | |
184 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
185 | public: | |
186 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
187 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
188 | const wxPoint& pos, | |
189 | const wxSize& size, | |
190 | long style, | |
191 | const wxValidator& validator, | |
192 | char* name) : | |
193 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
194 | ||
195 | bool Create(wxWindow *parent, wxWindowID id, | |
196 | const wxPoint& pos, | |
197 | const wxSize& size, | |
198 | long style, | |
199 | const wxValidator& validator, | |
200 | char* name) { | |
201 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
202 | } | |
203 | ||
204 | ||
205 | int OnCompareItems(const wxTreeItemId& item1, | |
206 | const wxTreeItemId& item2) { | |
207 | int rval = 0; | |
208 | bool found; | |
0e2ff151 | 209 | wxPyBeginBlockThreads(); |
e6056257 RD |
210 | if ((found = m_myInst.findCallback("OnCompareItems"))) |
211 | rval = m_myInst.callCallback(Py_BuildValue( | |
212 | "(OO)", | |
213 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
214 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
0e2ff151 | 215 | wxPyEndBlockThreads(); |
e6056257 RD |
216 | if (! found) |
217 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
218 | return rval; | |
219 | } | |
220 | PYPRIVATE; | |
221 | }; | |
222 | ||
223 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
224 | ||
225 | #ifdef __cplusplus | |
226 | extern "C" { | |
227 | #endif | |
228 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) | |
229 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
230 | PyObject * _resultobj; | |
231 | wxListItemAttr * _result; | |
232 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
233 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
234 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
235 | wxColour temp; | |
236 | PyObject * _obj0 = 0; | |
237 | wxColour temp0; | |
238 | PyObject * _obj1 = 0; | |
239 | PyObject * _argo2 = 0; | |
240 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
241 | char _ptemp[128]; | |
242 | ||
243 | self = self; | |
244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
245 | return NULL; | |
246 | if (_obj0) | |
247 | { | |
248 | _arg0 = &temp; | |
249 | if (! wxColour_helper(_obj0, &_arg0)) | |
250 | return NULL; | |
251 | } | |
252 | if (_obj1) | |
253 | { | |
254 | _arg1 = &temp0; | |
255 | if (! wxColour_helper(_obj1, &_arg1)) | |
256 | return NULL; | |
257 | } | |
258 | if (_argo2) { | |
259 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
260 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
262 | return NULL; | |
263 | } | |
264 | } | |
265 | { | |
0e2ff151 | 266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
267 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
268 | ||
0e2ff151 | 269 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
270 | if (PyErr_Occurred()) return NULL; |
271 | } if (_result) { | |
272 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
273 | _resultobj = Py_BuildValue("s",_ptemp); | |
274 | } else { | |
275 | Py_INCREF(Py_None); | |
276 | _resultobj = Py_None; | |
277 | } | |
278 | return _resultobj; | |
279 | } | |
280 | ||
281 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
282 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
283 | PyObject * _resultobj; | |
284 | wxListItemAttr * _arg0; | |
285 | wxColour * _arg1; | |
286 | PyObject * _argo0 = 0; | |
287 | wxColour temp; | |
288 | PyObject * _obj1 = 0; | |
289 | char *_kwnames[] = { "self","colText", NULL }; | |
290 | ||
291 | self = self; | |
292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
293 | return NULL; | |
294 | if (_argo0) { | |
295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
298 | return NULL; | |
299 | } | |
300 | } | |
301 | { | |
302 | _arg1 = &temp; | |
303 | if (! wxColour_helper(_obj1, &_arg1)) | |
304 | return NULL; | |
305 | } | |
306 | { | |
0e2ff151 | 307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
308 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
309 | ||
0e2ff151 | 310 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
311 | if (PyErr_Occurred()) return NULL; |
312 | } Py_INCREF(Py_None); | |
313 | _resultobj = Py_None; | |
314 | return _resultobj; | |
315 | } | |
316 | ||
317 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
318 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
319 | PyObject * _resultobj; | |
320 | wxListItemAttr * _arg0; | |
321 | wxColour * _arg1; | |
322 | PyObject * _argo0 = 0; | |
323 | wxColour temp; | |
324 | PyObject * _obj1 = 0; | |
325 | char *_kwnames[] = { "self","colBack", NULL }; | |
326 | ||
327 | self = self; | |
328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
329 | return NULL; | |
330 | if (_argo0) { | |
331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
334 | return NULL; | |
335 | } | |
336 | } | |
337 | { | |
338 | _arg1 = &temp; | |
339 | if (! wxColour_helper(_obj1, &_arg1)) | |
340 | return NULL; | |
341 | } | |
342 | { | |
0e2ff151 | 343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
344 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
345 | ||
0e2ff151 | 346 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
347 | if (PyErr_Occurred()) return NULL; |
348 | } Py_INCREF(Py_None); | |
349 | _resultobj = Py_None; | |
350 | return _resultobj; | |
351 | } | |
352 | ||
353 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
354 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
355 | PyObject * _resultobj; | |
356 | wxListItemAttr * _arg0; | |
357 | wxFont * _arg1; | |
358 | PyObject * _argo0 = 0; | |
359 | PyObject * _argo1 = 0; | |
360 | char *_kwnames[] = { "self","font", NULL }; | |
361 | ||
362 | self = self; | |
363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
364 | return NULL; | |
365 | if (_argo0) { | |
366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
369 | return NULL; | |
370 | } | |
371 | } | |
372 | if (_argo1) { | |
373 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
374 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
376 | return NULL; | |
377 | } | |
378 | } | |
379 | { | |
0e2ff151 | 380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
381 | wxListItemAttr_SetFont(_arg0,*_arg1); |
382 | ||
0e2ff151 | 383 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
384 | if (PyErr_Occurred()) return NULL; |
385 | } Py_INCREF(Py_None); | |
386 | _resultobj = Py_None; | |
387 | return _resultobj; | |
388 | } | |
389 | ||
390 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
391 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
392 | PyObject * _resultobj; | |
393 | bool _result; | |
394 | wxListItemAttr * _arg0; | |
395 | PyObject * _argo0 = 0; | |
396 | char *_kwnames[] = { "self", NULL }; | |
397 | ||
398 | self = self; | |
399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
400 | return NULL; | |
401 | if (_argo0) { | |
402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
405 | return NULL; | |
406 | } | |
407 | } | |
408 | { | |
0e2ff151 | 409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
410 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
411 | ||
0e2ff151 | 412 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
413 | if (PyErr_Occurred()) return NULL; |
414 | } _resultobj = Py_BuildValue("i",_result); | |
415 | return _resultobj; | |
416 | } | |
417 | ||
418 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
419 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
420 | PyObject * _resultobj; | |
421 | bool _result; | |
422 | wxListItemAttr * _arg0; | |
423 | PyObject * _argo0 = 0; | |
424 | char *_kwnames[] = { "self", NULL }; | |
425 | ||
426 | self = self; | |
427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
428 | return NULL; | |
429 | if (_argo0) { | |
430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
433 | return NULL; | |
434 | } | |
435 | } | |
436 | { | |
0e2ff151 | 437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
438 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
439 | ||
0e2ff151 | 440 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
441 | if (PyErr_Occurred()) return NULL; |
442 | } _resultobj = Py_BuildValue("i",_result); | |
443 | return _resultobj; | |
444 | } | |
445 | ||
446 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
447 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
448 | PyObject * _resultobj; | |
449 | bool _result; | |
450 | wxListItemAttr * _arg0; | |
451 | PyObject * _argo0 = 0; | |
452 | char *_kwnames[] = { "self", NULL }; | |
453 | ||
454 | self = self; | |
455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
456 | return NULL; | |
457 | if (_argo0) { | |
458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
461 | return NULL; | |
462 | } | |
463 | } | |
464 | { | |
0e2ff151 | 465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
466 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
467 | ||
0e2ff151 | 468 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
469 | if (PyErr_Occurred()) return NULL; |
470 | } _resultobj = Py_BuildValue("i",_result); | |
471 | return _resultobj; | |
472 | } | |
473 | ||
474 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
475 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
476 | PyObject * _resultobj; | |
477 | wxColour * _result; | |
478 | wxListItemAttr * _arg0; | |
479 | PyObject * _argo0 = 0; | |
480 | char *_kwnames[] = { "self", NULL }; | |
481 | char _ptemp[128]; | |
482 | ||
483 | self = self; | |
484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
485 | return NULL; | |
486 | if (_argo0) { | |
487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
490 | return NULL; | |
491 | } | |
492 | } | |
493 | { | |
0e2ff151 | 494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 495 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
e6056257 | 496 | |
0e2ff151 | 497 | wxPyEndAllowThreads(__tstate); |
e6056257 | 498 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
499 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
500 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
501 | return _resultobj; |
502 | } | |
503 | ||
504 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
505 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
506 | PyObject * _resultobj; | |
507 | wxColour * _result; | |
508 | wxListItemAttr * _arg0; | |
509 | PyObject * _argo0 = 0; | |
510 | char *_kwnames[] = { "self", NULL }; | |
511 | char _ptemp[128]; | |
512 | ||
513 | self = self; | |
514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
515 | return NULL; | |
516 | if (_argo0) { | |
517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
520 | return NULL; | |
521 | } | |
522 | } | |
523 | { | |
0e2ff151 | 524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 525 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
e6056257 | 526 | |
0e2ff151 | 527 | wxPyEndAllowThreads(__tstate); |
e6056257 | 528 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
529 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
530 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
531 | return _resultobj; |
532 | } | |
533 | ||
534 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
535 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
536 | PyObject * _resultobj; | |
537 | wxFont * _result; | |
538 | wxListItemAttr * _arg0; | |
539 | PyObject * _argo0 = 0; | |
540 | char *_kwnames[] = { "self", NULL }; | |
541 | char _ptemp[128]; | |
542 | ||
543 | self = self; | |
544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
545 | return NULL; | |
546 | if (_argo0) { | |
547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
550 | return NULL; | |
551 | } | |
552 | } | |
553 | { | |
0e2ff151 | 554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 555 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
e6056257 | 556 | |
0e2ff151 | 557 | wxPyEndAllowThreads(__tstate); |
e6056257 | 558 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
559 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
560 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
561 | return _resultobj; |
562 | } | |
563 | ||
564 | static void *SwigwxListItemTowxObject(void *ptr) { | |
565 | wxListItem *src; | |
566 | wxObject *dest; | |
567 | src = (wxListItem *) ptr; | |
568 | dest = (wxObject *) src; | |
569 | return (void *) dest; | |
570 | } | |
571 | ||
572 | #define new_wxListItem() (new wxListItem()) | |
573 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
574 | PyObject * _resultobj; | |
575 | wxListItem * _result; | |
576 | char *_kwnames[] = { NULL }; | |
577 | char _ptemp[128]; | |
578 | ||
579 | self = self; | |
580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
581 | return NULL; | |
582 | { | |
0e2ff151 | 583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
584 | _result = (wxListItem *)new_wxListItem(); |
585 | ||
0e2ff151 | 586 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
587 | if (PyErr_Occurred()) return NULL; |
588 | } if (_result) { | |
589 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
590 | _resultobj = Py_BuildValue("s",_ptemp); | |
591 | } else { | |
592 | Py_INCREF(Py_None); | |
593 | _resultobj = Py_None; | |
594 | } | |
595 | return _resultobj; | |
596 | } | |
597 | ||
598 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
599 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
600 | PyObject * _resultobj; | |
601 | wxListItem * _arg0; | |
602 | PyObject * _argo0 = 0; | |
603 | char *_kwnames[] = { "self", NULL }; | |
604 | ||
605 | self = self; | |
606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
607 | return NULL; | |
608 | if (_argo0) { | |
609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
612 | return NULL; | |
613 | } | |
614 | } | |
615 | { | |
0e2ff151 | 616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
617 | delete_wxListItem(_arg0); |
618 | ||
0e2ff151 | 619 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
620 | if (PyErr_Occurred()) return NULL; |
621 | } Py_INCREF(Py_None); | |
622 | _resultobj = Py_None; | |
623 | return _resultobj; | |
624 | } | |
625 | ||
626 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
627 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
628 | PyObject * _resultobj; | |
629 | wxListItem * _arg0; | |
630 | PyObject * _argo0 = 0; | |
631 | char *_kwnames[] = { "self", NULL }; | |
632 | ||
633 | self = self; | |
634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
635 | return NULL; | |
636 | if (_argo0) { | |
637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
640 | return NULL; | |
641 | } | |
642 | } | |
643 | { | |
0e2ff151 | 644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
645 | wxListItem_Clear(_arg0); |
646 | ||
0e2ff151 | 647 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
648 | if (PyErr_Occurred()) return NULL; |
649 | } Py_INCREF(Py_None); | |
650 | _resultobj = Py_None; | |
651 | return _resultobj; | |
652 | } | |
653 | ||
654 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
655 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
656 | PyObject * _resultobj; | |
657 | wxListItem * _arg0; | |
658 | PyObject * _argo0 = 0; | |
659 | char *_kwnames[] = { "self", NULL }; | |
660 | ||
661 | self = self; | |
662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
663 | return NULL; | |
664 | if (_argo0) { | |
665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
668 | return NULL; | |
669 | } | |
670 | } | |
671 | { | |
0e2ff151 | 672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
673 | wxListItem_ClearAttributes(_arg0); |
674 | ||
0e2ff151 | 675 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
676 | if (PyErr_Occurred()) return NULL; |
677 | } Py_INCREF(Py_None); | |
678 | _resultobj = Py_None; | |
679 | return _resultobj; | |
680 | } | |
681 | ||
682 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
683 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
684 | PyObject * _resultobj; | |
685 | wxListItem * _arg0; | |
686 | long _arg1; | |
687 | PyObject * _argo0 = 0; | |
688 | char *_kwnames[] = { "self","mask", NULL }; | |
689 | ||
690 | self = self; | |
691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
692 | return NULL; | |
693 | if (_argo0) { | |
694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
697 | return NULL; | |
698 | } | |
699 | } | |
700 | { | |
0e2ff151 | 701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
702 | wxListItem_SetMask(_arg0,_arg1); |
703 | ||
0e2ff151 | 704 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
705 | if (PyErr_Occurred()) return NULL; |
706 | } Py_INCREF(Py_None); | |
707 | _resultobj = Py_None; | |
708 | return _resultobj; | |
709 | } | |
710 | ||
711 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
712 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
713 | PyObject * _resultobj; | |
714 | wxListItem * _arg0; | |
715 | long _arg1; | |
716 | PyObject * _argo0 = 0; | |
717 | char *_kwnames[] = { "self","id", NULL }; | |
718 | ||
719 | self = self; | |
720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
721 | return NULL; | |
722 | if (_argo0) { | |
723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
726 | return NULL; | |
727 | } | |
728 | } | |
729 | { | |
0e2ff151 | 730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
731 | wxListItem_SetId(_arg0,_arg1); |
732 | ||
0e2ff151 | 733 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
734 | if (PyErr_Occurred()) return NULL; |
735 | } Py_INCREF(Py_None); | |
736 | _resultobj = Py_None; | |
737 | return _resultobj; | |
738 | } | |
739 | ||
740 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
741 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
742 | PyObject * _resultobj; | |
743 | wxListItem * _arg0; | |
744 | int _arg1; | |
745 | PyObject * _argo0 = 0; | |
746 | char *_kwnames[] = { "self","col", NULL }; | |
747 | ||
748 | self = self; | |
749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
750 | return NULL; | |
751 | if (_argo0) { | |
752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
755 | return NULL; | |
756 | } | |
757 | } | |
758 | { | |
0e2ff151 | 759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
760 | wxListItem_SetColumn(_arg0,_arg1); |
761 | ||
0e2ff151 | 762 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
763 | if (PyErr_Occurred()) return NULL; |
764 | } Py_INCREF(Py_None); | |
765 | _resultobj = Py_None; | |
766 | return _resultobj; | |
767 | } | |
768 | ||
769 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
770 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
771 | PyObject * _resultobj; | |
772 | wxListItem * _arg0; | |
773 | long _arg1; | |
774 | PyObject * _argo0 = 0; | |
775 | char *_kwnames[] = { "self","state", NULL }; | |
776 | ||
777 | self = self; | |
778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
779 | return NULL; | |
780 | if (_argo0) { | |
781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
784 | return NULL; | |
785 | } | |
786 | } | |
787 | { | |
0e2ff151 | 788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
789 | wxListItem_SetState(_arg0,_arg1); |
790 | ||
0e2ff151 | 791 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
792 | if (PyErr_Occurred()) return NULL; |
793 | } Py_INCREF(Py_None); | |
794 | _resultobj = Py_None; | |
795 | return _resultobj; | |
796 | } | |
797 | ||
798 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
799 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
800 | PyObject * _resultobj; | |
801 | wxListItem * _arg0; | |
802 | long _arg1; | |
803 | PyObject * _argo0 = 0; | |
804 | char *_kwnames[] = { "self","stateMask", NULL }; | |
805 | ||
806 | self = self; | |
807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
808 | return NULL; | |
809 | if (_argo0) { | |
810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
813 | return NULL; | |
814 | } | |
815 | } | |
816 | { | |
0e2ff151 | 817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
818 | wxListItem_SetStateMask(_arg0,_arg1); |
819 | ||
0e2ff151 | 820 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
821 | if (PyErr_Occurred()) return NULL; |
822 | } Py_INCREF(Py_None); | |
823 | _resultobj = Py_None; | |
824 | return _resultobj; | |
825 | } | |
826 | ||
827 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
828 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
829 | PyObject * _resultobj; | |
830 | wxListItem * _arg0; | |
831 | wxString * _arg1; | |
832 | PyObject * _argo0 = 0; | |
833 | PyObject * _obj1 = 0; | |
834 | char *_kwnames[] = { "self","text", NULL }; | |
835 | ||
836 | self = self; | |
837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
838 | return NULL; | |
839 | if (_argo0) { | |
840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
843 | return NULL; | |
844 | } | |
845 | } | |
846 | { | |
847 | #if PYTHON_API_VERSION >= 1009 | |
848 | char* tmpPtr; int tmpSize; | |
849 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
850 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
851 | return NULL; | |
852 | } | |
853 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
854 | return NULL; | |
855 | _arg1 = new wxString(tmpPtr, tmpSize); | |
856 | #else | |
857 | if (!PyString_Check(_obj1)) { | |
858 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
859 | return NULL; | |
860 | } | |
861 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
862 | #endif | |
863 | } | |
864 | { | |
0e2ff151 | 865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
866 | wxListItem_SetText(_arg0,*_arg1); |
867 | ||
0e2ff151 | 868 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
869 | if (PyErr_Occurred()) return NULL; |
870 | } Py_INCREF(Py_None); | |
871 | _resultobj = Py_None; | |
872 | { | |
873 | if (_obj1) | |
874 | delete _arg1; | |
875 | } | |
876 | return _resultobj; | |
877 | } | |
878 | ||
879 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
880 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
881 | PyObject * _resultobj; | |
882 | wxListItem * _arg0; | |
883 | int _arg1; | |
884 | PyObject * _argo0 = 0; | |
885 | char *_kwnames[] = { "self","image", NULL }; | |
886 | ||
887 | self = self; | |
888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
889 | return NULL; | |
890 | if (_argo0) { | |
891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
894 | return NULL; | |
895 | } | |
896 | } | |
897 | { | |
0e2ff151 | 898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
899 | wxListItem_SetImage(_arg0,_arg1); |
900 | ||
0e2ff151 | 901 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
902 | if (PyErr_Occurred()) return NULL; |
903 | } Py_INCREF(Py_None); | |
904 | _resultobj = Py_None; | |
905 | return _resultobj; | |
906 | } | |
907 | ||
908 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
909 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
910 | PyObject * _resultobj; | |
911 | wxListItem * _arg0; | |
912 | long _arg1; | |
913 | PyObject * _argo0 = 0; | |
914 | char *_kwnames[] = { "self","data", NULL }; | |
915 | ||
916 | self = self; | |
917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
918 | return NULL; | |
919 | if (_argo0) { | |
920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
923 | return NULL; | |
924 | } | |
925 | } | |
926 | { | |
0e2ff151 | 927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
928 | wxListItem_SetData(_arg0,_arg1); |
929 | ||
0e2ff151 | 930 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
931 | if (PyErr_Occurred()) return NULL; |
932 | } Py_INCREF(Py_None); | |
933 | _resultobj = Py_None; | |
934 | return _resultobj; | |
935 | } | |
936 | ||
937 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
938 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
939 | PyObject * _resultobj; | |
940 | wxListItem * _arg0; | |
941 | int _arg1; | |
942 | PyObject * _argo0 = 0; | |
943 | char *_kwnames[] = { "self","width", NULL }; | |
944 | ||
945 | self = self; | |
946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
947 | return NULL; | |
948 | if (_argo0) { | |
949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
952 | return NULL; | |
953 | } | |
954 | } | |
955 | { | |
0e2ff151 | 956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
957 | wxListItem_SetWidth(_arg0,_arg1); |
958 | ||
0e2ff151 | 959 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
960 | if (PyErr_Occurred()) return NULL; |
961 | } Py_INCREF(Py_None); | |
962 | _resultobj = Py_None; | |
963 | return _resultobj; | |
964 | } | |
965 | ||
966 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
967 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
968 | PyObject * _resultobj; | |
969 | wxListItem * _arg0; | |
970 | wxListColumnFormat _arg1; | |
971 | PyObject * _argo0 = 0; | |
972 | char *_kwnames[] = { "self","align", NULL }; | |
973 | ||
974 | self = self; | |
975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
976 | return NULL; | |
977 | if (_argo0) { | |
978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
981 | return NULL; | |
982 | } | |
983 | } | |
984 | { | |
0e2ff151 | 985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
986 | wxListItem_SetAlign(_arg0,_arg1); |
987 | ||
0e2ff151 | 988 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
989 | if (PyErr_Occurred()) return NULL; |
990 | } Py_INCREF(Py_None); | |
991 | _resultobj = Py_None; | |
992 | return _resultobj; | |
993 | } | |
994 | ||
995 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
996 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
997 | PyObject * _resultobj; | |
998 | wxListItem * _arg0; | |
999 | wxColour * _arg1; | |
1000 | PyObject * _argo0 = 0; | |
1001 | wxColour temp; | |
1002 | PyObject * _obj1 = 0; | |
1003 | char *_kwnames[] = { "self","colText", NULL }; | |
1004 | ||
1005 | self = self; | |
1006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1007 | return NULL; | |
1008 | if (_argo0) { | |
1009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1012 | return NULL; | |
1013 | } | |
1014 | } | |
1015 | { | |
1016 | _arg1 = &temp; | |
1017 | if (! wxColour_helper(_obj1, &_arg1)) | |
1018 | return NULL; | |
1019 | } | |
1020 | { | |
0e2ff151 | 1021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1022 | wxListItem_SetTextColour(_arg0,*_arg1); |
1023 | ||
0e2ff151 | 1024 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1025 | if (PyErr_Occurred()) return NULL; |
1026 | } Py_INCREF(Py_None); | |
1027 | _resultobj = Py_None; | |
1028 | return _resultobj; | |
1029 | } | |
1030 | ||
1031 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1032 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1033 | PyObject * _resultobj; | |
1034 | wxListItem * _arg0; | |
1035 | wxColour * _arg1; | |
1036 | PyObject * _argo0 = 0; | |
1037 | wxColour temp; | |
1038 | PyObject * _obj1 = 0; | |
1039 | char *_kwnames[] = { "self","colBack", NULL }; | |
1040 | ||
1041 | self = self; | |
1042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1043 | return NULL; | |
1044 | if (_argo0) { | |
1045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1048 | return NULL; | |
1049 | } | |
1050 | } | |
1051 | { | |
1052 | _arg1 = &temp; | |
1053 | if (! wxColour_helper(_obj1, &_arg1)) | |
1054 | return NULL; | |
1055 | } | |
1056 | { | |
0e2ff151 | 1057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1058 | wxListItem_SetBackgroundColour(_arg0,*_arg1); |
1059 | ||
0e2ff151 | 1060 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1061 | if (PyErr_Occurred()) return NULL; |
1062 | } Py_INCREF(Py_None); | |
1063 | _resultobj = Py_None; | |
1064 | return _resultobj; | |
1065 | } | |
1066 | ||
1067 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1068 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1069 | PyObject * _resultobj; | |
1070 | wxListItem * _arg0; | |
1071 | wxFont * _arg1; | |
1072 | PyObject * _argo0 = 0; | |
1073 | PyObject * _argo1 = 0; | |
1074 | char *_kwnames[] = { "self","font", NULL }; | |
1075 | ||
1076 | self = self; | |
1077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1078 | return NULL; | |
1079 | if (_argo0) { | |
1080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1083 | return NULL; | |
1084 | } | |
1085 | } | |
1086 | if (_argo1) { | |
1087 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1088 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1090 | return NULL; | |
1091 | } | |
1092 | } | |
1093 | { | |
0e2ff151 | 1094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1095 | wxListItem_SetFont(_arg0,*_arg1); |
1096 | ||
0e2ff151 | 1097 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1098 | if (PyErr_Occurred()) return NULL; |
1099 | } Py_INCREF(Py_None); | |
1100 | _resultobj = Py_None; | |
1101 | return _resultobj; | |
1102 | } | |
1103 | ||
1104 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1105 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1106 | PyObject * _resultobj; | |
1107 | long _result; | |
1108 | wxListItem * _arg0; | |
1109 | PyObject * _argo0 = 0; | |
1110 | char *_kwnames[] = { "self", NULL }; | |
1111 | ||
1112 | self = self; | |
1113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1114 | return NULL; | |
1115 | if (_argo0) { | |
1116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1119 | return NULL; | |
1120 | } | |
1121 | } | |
1122 | { | |
0e2ff151 | 1123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1124 | _result = (long )wxListItem_GetMask(_arg0); |
1125 | ||
0e2ff151 | 1126 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1127 | if (PyErr_Occurred()) return NULL; |
1128 | } _resultobj = Py_BuildValue("l",_result); | |
1129 | return _resultobj; | |
1130 | } | |
1131 | ||
1132 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1133 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1134 | PyObject * _resultobj; | |
1135 | long _result; | |
1136 | wxListItem * _arg0; | |
1137 | PyObject * _argo0 = 0; | |
1138 | char *_kwnames[] = { "self", NULL }; | |
1139 | ||
1140 | self = self; | |
1141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1142 | return NULL; | |
1143 | if (_argo0) { | |
1144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1147 | return NULL; | |
1148 | } | |
1149 | } | |
1150 | { | |
0e2ff151 | 1151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1152 | _result = (long )wxListItem_GetId(_arg0); |
1153 | ||
0e2ff151 | 1154 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1155 | if (PyErr_Occurred()) return NULL; |
1156 | } _resultobj = Py_BuildValue("l",_result); | |
1157 | return _resultobj; | |
1158 | } | |
1159 | ||
1160 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1161 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1162 | PyObject * _resultobj; | |
1163 | int _result; | |
1164 | wxListItem * _arg0; | |
1165 | PyObject * _argo0 = 0; | |
1166 | char *_kwnames[] = { "self", NULL }; | |
1167 | ||
1168 | self = self; | |
1169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1170 | return NULL; | |
1171 | if (_argo0) { | |
1172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1175 | return NULL; | |
1176 | } | |
1177 | } | |
1178 | { | |
0e2ff151 | 1179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1180 | _result = (int )wxListItem_GetColumn(_arg0); |
1181 | ||
0e2ff151 | 1182 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1183 | if (PyErr_Occurred()) return NULL; |
1184 | } _resultobj = Py_BuildValue("i",_result); | |
1185 | return _resultobj; | |
1186 | } | |
1187 | ||
1188 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1189 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1190 | PyObject * _resultobj; | |
1191 | long _result; | |
1192 | wxListItem * _arg0; | |
1193 | PyObject * _argo0 = 0; | |
1194 | char *_kwnames[] = { "self", NULL }; | |
1195 | ||
1196 | self = self; | |
1197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1198 | return NULL; | |
1199 | if (_argo0) { | |
1200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1203 | return NULL; | |
1204 | } | |
1205 | } | |
1206 | { | |
0e2ff151 | 1207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1208 | _result = (long )wxListItem_GetState(_arg0); |
1209 | ||
0e2ff151 | 1210 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1211 | if (PyErr_Occurred()) return NULL; |
1212 | } _resultobj = Py_BuildValue("l",_result); | |
1213 | return _resultobj; | |
1214 | } | |
1215 | ||
1216 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1217 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1218 | PyObject * _resultobj; | |
1219 | wxString * _result; | |
1220 | wxListItem * _arg0; | |
1221 | PyObject * _argo0 = 0; | |
1222 | char *_kwnames[] = { "self", NULL }; | |
1223 | ||
1224 | self = self; | |
1225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1226 | return NULL; | |
1227 | if (_argo0) { | |
1228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1231 | return NULL; | |
1232 | } | |
1233 | } | |
1234 | { | |
0e2ff151 | 1235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1236 | const wxString & _result_ref = wxListItem_GetText(_arg0); |
1237 | _result = (wxString *) &_result_ref; | |
1238 | ||
0e2ff151 | 1239 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1240 | if (PyErr_Occurred()) return NULL; |
1241 | }{ | |
1242 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1243 | } | |
1244 | return _resultobj; | |
1245 | } | |
1246 | ||
1247 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1248 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1249 | PyObject * _resultobj; | |
1250 | int _result; | |
1251 | wxListItem * _arg0; | |
1252 | PyObject * _argo0 = 0; | |
1253 | char *_kwnames[] = { "self", NULL }; | |
1254 | ||
1255 | self = self; | |
1256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1257 | return NULL; | |
1258 | if (_argo0) { | |
1259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1262 | return NULL; | |
1263 | } | |
1264 | } | |
1265 | { | |
0e2ff151 | 1266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1267 | _result = (int )wxListItem_GetImage(_arg0); |
1268 | ||
0e2ff151 | 1269 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1270 | if (PyErr_Occurred()) return NULL; |
1271 | } _resultobj = Py_BuildValue("i",_result); | |
1272 | return _resultobj; | |
1273 | } | |
1274 | ||
1275 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1276 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1277 | PyObject * _resultobj; | |
1278 | long _result; | |
1279 | wxListItem * _arg0; | |
1280 | PyObject * _argo0 = 0; | |
1281 | char *_kwnames[] = { "self", NULL }; | |
1282 | ||
1283 | self = self; | |
1284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1285 | return NULL; | |
1286 | if (_argo0) { | |
1287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1290 | return NULL; | |
1291 | } | |
1292 | } | |
1293 | { | |
0e2ff151 | 1294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1295 | _result = (long )wxListItem_GetData(_arg0); |
1296 | ||
0e2ff151 | 1297 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1298 | if (PyErr_Occurred()) return NULL; |
1299 | } _resultobj = Py_BuildValue("l",_result); | |
1300 | return _resultobj; | |
1301 | } | |
1302 | ||
1303 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1304 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1305 | PyObject * _resultobj; | |
1306 | int _result; | |
1307 | wxListItem * _arg0; | |
1308 | PyObject * _argo0 = 0; | |
1309 | char *_kwnames[] = { "self", NULL }; | |
1310 | ||
1311 | self = self; | |
1312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1313 | return NULL; | |
1314 | if (_argo0) { | |
1315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1318 | return NULL; | |
1319 | } | |
1320 | } | |
1321 | { | |
0e2ff151 | 1322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1323 | _result = (int )wxListItem_GetWidth(_arg0); |
1324 | ||
0e2ff151 | 1325 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1326 | if (PyErr_Occurred()) return NULL; |
1327 | } _resultobj = Py_BuildValue("i",_result); | |
1328 | return _resultobj; | |
1329 | } | |
1330 | ||
1331 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1332 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1333 | PyObject * _resultobj; | |
1334 | wxListColumnFormat _result; | |
1335 | wxListItem * _arg0; | |
1336 | PyObject * _argo0 = 0; | |
1337 | char *_kwnames[] = { "self", NULL }; | |
1338 | ||
1339 | self = self; | |
1340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1341 | return NULL; | |
1342 | if (_argo0) { | |
1343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1346 | return NULL; | |
1347 | } | |
1348 | } | |
1349 | { | |
0e2ff151 | 1350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1351 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); |
1352 | ||
0e2ff151 | 1353 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1354 | if (PyErr_Occurred()) return NULL; |
1355 | } _resultobj = Py_BuildValue("i",_result); | |
1356 | return _resultobj; | |
1357 | } | |
1358 | ||
1359 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1360 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1361 | PyObject * _resultobj; | |
1362 | wxListItemAttr * _result; | |
1363 | wxListItem * _arg0; | |
1364 | PyObject * _argo0 = 0; | |
1365 | char *_kwnames[] = { "self", NULL }; | |
1366 | char _ptemp[128]; | |
1367 | ||
1368 | self = self; | |
1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1370 | return NULL; | |
1371 | if (_argo0) { | |
1372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1375 | return NULL; | |
1376 | } | |
1377 | } | |
1378 | { | |
0e2ff151 | 1379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1380 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); |
1381 | ||
0e2ff151 | 1382 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1383 | if (PyErr_Occurred()) return NULL; |
1384 | } if (_result) { | |
1385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1386 | _resultobj = Py_BuildValue("s",_ptemp); | |
1387 | } else { | |
1388 | Py_INCREF(Py_None); | |
1389 | _resultobj = Py_None; | |
1390 | } | |
1391 | return _resultobj; | |
1392 | } | |
1393 | ||
1394 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1395 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1396 | PyObject * _resultobj; | |
1397 | bool _result; | |
1398 | wxListItem * _arg0; | |
1399 | PyObject * _argo0 = 0; | |
1400 | char *_kwnames[] = { "self", NULL }; | |
1401 | ||
1402 | self = self; | |
1403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1404 | return NULL; | |
1405 | if (_argo0) { | |
1406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1409 | return NULL; | |
1410 | } | |
1411 | } | |
1412 | { | |
0e2ff151 | 1413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1414 | _result = (bool )wxListItem_HasAttributes(_arg0); |
1415 | ||
0e2ff151 | 1416 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1417 | if (PyErr_Occurred()) return NULL; |
1418 | } _resultobj = Py_BuildValue("i",_result); | |
1419 | return _resultobj; | |
1420 | } | |
1421 | ||
1422 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1423 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1424 | PyObject * _resultobj; | |
1425 | wxColour * _result; | |
1426 | wxListItem * _arg0; | |
1427 | PyObject * _argo0 = 0; | |
1428 | char *_kwnames[] = { "self", NULL }; | |
1429 | char _ptemp[128]; | |
1430 | ||
1431 | self = self; | |
1432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1433 | return NULL; | |
1434 | if (_argo0) { | |
1435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1438 | return NULL; | |
1439 | } | |
1440 | } | |
1441 | { | |
0e2ff151 | 1442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1443 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); |
1444 | ||
0e2ff151 | 1445 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1446 | if (PyErr_Occurred()) return NULL; |
1447 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1448 | _resultobj = Py_BuildValue("s",_ptemp); | |
1449 | return _resultobj; | |
1450 | } | |
1451 | ||
1452 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1453 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1454 | PyObject * _resultobj; | |
1455 | wxColour * _result; | |
1456 | wxListItem * _arg0; | |
1457 | PyObject * _argo0 = 0; | |
1458 | char *_kwnames[] = { "self", NULL }; | |
1459 | char _ptemp[128]; | |
1460 | ||
1461 | self = self; | |
1462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1463 | return NULL; | |
1464 | if (_argo0) { | |
1465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1468 | return NULL; | |
1469 | } | |
1470 | } | |
1471 | { | |
0e2ff151 | 1472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1473 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); |
1474 | ||
0e2ff151 | 1475 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1476 | if (PyErr_Occurred()) return NULL; |
1477 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1478 | _resultobj = Py_BuildValue("s",_ptemp); | |
1479 | return _resultobj; | |
1480 | } | |
1481 | ||
1482 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1483 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1484 | PyObject * _resultobj; | |
1485 | wxFont * _result; | |
1486 | wxListItem * _arg0; | |
1487 | PyObject * _argo0 = 0; | |
1488 | char *_kwnames[] = { "self", NULL }; | |
1489 | char _ptemp[128]; | |
1490 | ||
1491 | self = self; | |
1492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1493 | return NULL; | |
1494 | if (_argo0) { | |
1495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1498 | return NULL; | |
1499 | } | |
1500 | } | |
1501 | { | |
0e2ff151 | 1502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1503 | _result = new wxFont (wxListItem_GetFont(_arg0)); |
1504 | ||
0e2ff151 | 1505 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1506 | if (PyErr_Occurred()) return NULL; |
1507 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1508 | _resultobj = Py_BuildValue("s",_ptemp); | |
1509 | return _resultobj; | |
1510 | } | |
1511 | ||
1512 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1513 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1514 | PyObject * _resultobj; | |
1515 | long _result; | |
1516 | wxListItem * _arg0; | |
1517 | long _arg1; | |
1518 | PyObject * _argo0 = 0; | |
1519 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1520 | ||
1521 | self = self; | |
1522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1523 | return NULL; | |
1524 | if (_argo0) { | |
1525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1528 | return NULL; | |
1529 | } | |
1530 | } | |
1531 | { | |
0e2ff151 | 1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1533 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); |
1534 | ||
0e2ff151 | 1535 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1536 | if (PyErr_Occurred()) return NULL; |
1537 | } _resultobj = Py_BuildValue("l",_result); | |
1538 | return _resultobj; | |
1539 | } | |
1540 | ||
1541 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1542 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1543 | PyObject * _resultobj; | |
1544 | long _result; | |
1545 | wxListItem * _arg0; | |
1546 | PyObject * _argo0 = 0; | |
1547 | char *_kwnames[] = { "self", NULL }; | |
1548 | ||
1549 | self = self; | |
1550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1551 | return NULL; | |
1552 | if (_argo0) { | |
1553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1556 | return NULL; | |
1557 | } | |
1558 | } | |
1559 | { | |
0e2ff151 | 1560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1561 | _result = (long )wxListItem_m_mask_get(_arg0); |
1562 | ||
0e2ff151 | 1563 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1564 | if (PyErr_Occurred()) return NULL; |
1565 | } _resultobj = Py_BuildValue("l",_result); | |
1566 | return _resultobj; | |
1567 | } | |
1568 | ||
1569 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1570 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1571 | PyObject * _resultobj; | |
1572 | long _result; | |
1573 | wxListItem * _arg0; | |
1574 | long _arg1; | |
1575 | PyObject * _argo0 = 0; | |
1576 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1577 | ||
1578 | self = self; | |
1579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1580 | return NULL; | |
1581 | if (_argo0) { | |
1582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1585 | return NULL; | |
1586 | } | |
1587 | } | |
1588 | { | |
0e2ff151 | 1589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1590 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
1591 | ||
0e2ff151 | 1592 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1593 | if (PyErr_Occurred()) return NULL; |
1594 | } _resultobj = Py_BuildValue("l",_result); | |
1595 | return _resultobj; | |
1596 | } | |
1597 | ||
1598 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1599 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1600 | PyObject * _resultobj; | |
1601 | long _result; | |
1602 | wxListItem * _arg0; | |
1603 | PyObject * _argo0 = 0; | |
1604 | char *_kwnames[] = { "self", NULL }; | |
1605 | ||
1606 | self = self; | |
1607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1608 | return NULL; | |
1609 | if (_argo0) { | |
1610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1613 | return NULL; | |
1614 | } | |
1615 | } | |
1616 | { | |
0e2ff151 | 1617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1618 | _result = (long )wxListItem_m_itemId_get(_arg0); |
1619 | ||
0e2ff151 | 1620 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1621 | if (PyErr_Occurred()) return NULL; |
1622 | } _resultobj = Py_BuildValue("l",_result); | |
1623 | return _resultobj; | |
1624 | } | |
1625 | ||
1626 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1627 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1628 | PyObject * _resultobj; | |
1629 | int _result; | |
1630 | wxListItem * _arg0; | |
1631 | int _arg1; | |
1632 | PyObject * _argo0 = 0; | |
1633 | char *_kwnames[] = { "self","m_col", NULL }; | |
1634 | ||
1635 | self = self; | |
1636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1637 | return NULL; | |
1638 | if (_argo0) { | |
1639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1642 | return NULL; | |
1643 | } | |
1644 | } | |
1645 | { | |
0e2ff151 | 1646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1647 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); |
1648 | ||
0e2ff151 | 1649 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1650 | if (PyErr_Occurred()) return NULL; |
1651 | } _resultobj = Py_BuildValue("i",_result); | |
1652 | return _resultobj; | |
1653 | } | |
1654 | ||
1655 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1656 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1657 | PyObject * _resultobj; | |
1658 | int _result; | |
1659 | wxListItem * _arg0; | |
1660 | PyObject * _argo0 = 0; | |
1661 | char *_kwnames[] = { "self", NULL }; | |
1662 | ||
1663 | self = self; | |
1664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1665 | return NULL; | |
1666 | if (_argo0) { | |
1667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1670 | return NULL; | |
1671 | } | |
1672 | } | |
1673 | { | |
0e2ff151 | 1674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1675 | _result = (int )wxListItem_m_col_get(_arg0); |
1676 | ||
0e2ff151 | 1677 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1678 | if (PyErr_Occurred()) return NULL; |
1679 | } _resultobj = Py_BuildValue("i",_result); | |
1680 | return _resultobj; | |
1681 | } | |
1682 | ||
1683 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1684 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1685 | PyObject * _resultobj; | |
1686 | long _result; | |
1687 | wxListItem * _arg0; | |
1688 | long _arg1; | |
1689 | PyObject * _argo0 = 0; | |
1690 | char *_kwnames[] = { "self","m_state", NULL }; | |
1691 | ||
1692 | self = self; | |
1693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1694 | return NULL; | |
1695 | if (_argo0) { | |
1696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1699 | return NULL; | |
1700 | } | |
1701 | } | |
1702 | { | |
0e2ff151 | 1703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1704 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); |
1705 | ||
0e2ff151 | 1706 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1707 | if (PyErr_Occurred()) return NULL; |
1708 | } _resultobj = Py_BuildValue("l",_result); | |
1709 | return _resultobj; | |
1710 | } | |
1711 | ||
1712 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1713 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1714 | PyObject * _resultobj; | |
1715 | long _result; | |
1716 | wxListItem * _arg0; | |
1717 | PyObject * _argo0 = 0; | |
1718 | char *_kwnames[] = { "self", NULL }; | |
1719 | ||
1720 | self = self; | |
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1722 | return NULL; | |
1723 | if (_argo0) { | |
1724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1727 | return NULL; | |
1728 | } | |
1729 | } | |
1730 | { | |
0e2ff151 | 1731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1732 | _result = (long )wxListItem_m_state_get(_arg0); |
1733 | ||
0e2ff151 | 1734 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1735 | if (PyErr_Occurred()) return NULL; |
1736 | } _resultobj = Py_BuildValue("l",_result); | |
1737 | return _resultobj; | |
1738 | } | |
1739 | ||
1740 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1741 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1742 | PyObject * _resultobj; | |
1743 | long _result; | |
1744 | wxListItem * _arg0; | |
1745 | long _arg1; | |
1746 | PyObject * _argo0 = 0; | |
1747 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1748 | ||
1749 | self = self; | |
1750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1751 | return NULL; | |
1752 | if (_argo0) { | |
1753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1756 | return NULL; | |
1757 | } | |
1758 | } | |
1759 | { | |
0e2ff151 | 1760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1761 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); |
1762 | ||
0e2ff151 | 1763 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1764 | if (PyErr_Occurred()) return NULL; |
1765 | } _resultobj = Py_BuildValue("l",_result); | |
1766 | return _resultobj; | |
1767 | } | |
1768 | ||
1769 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1770 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1771 | PyObject * _resultobj; | |
1772 | long _result; | |
1773 | wxListItem * _arg0; | |
1774 | PyObject * _argo0 = 0; | |
1775 | char *_kwnames[] = { "self", NULL }; | |
1776 | ||
1777 | self = self; | |
1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1779 | return NULL; | |
1780 | if (_argo0) { | |
1781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1784 | return NULL; | |
1785 | } | |
1786 | } | |
1787 | { | |
0e2ff151 | 1788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1789 | _result = (long )wxListItem_m_stateMask_get(_arg0); |
1790 | ||
0e2ff151 | 1791 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1792 | if (PyErr_Occurred()) return NULL; |
1793 | } _resultobj = Py_BuildValue("l",_result); | |
1794 | return _resultobj; | |
1795 | } | |
1796 | ||
1797 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1798 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1799 | PyObject * _resultobj; | |
1800 | wxString * _result; | |
1801 | wxListItem * _arg0; | |
1802 | wxString * _arg1; | |
1803 | PyObject * _argo0 = 0; | |
1804 | PyObject * _obj1 = 0; | |
1805 | char *_kwnames[] = { "self","m_text", NULL }; | |
1806 | ||
1807 | self = self; | |
1808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1809 | return NULL; | |
1810 | if (_argo0) { | |
1811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1814 | return NULL; | |
1815 | } | |
1816 | } | |
1817 | { | |
1818 | #if PYTHON_API_VERSION >= 1009 | |
1819 | char* tmpPtr; int tmpSize; | |
1820 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1821 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1822 | return NULL; | |
1823 | } | |
1824 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1825 | return NULL; | |
1826 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1827 | #else | |
1828 | if (!PyString_Check(_obj1)) { | |
1829 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1830 | return NULL; | |
1831 | } | |
1832 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1833 | #endif | |
1834 | } | |
1835 | { | |
0e2ff151 | 1836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1837 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); |
1838 | ||
0e2ff151 | 1839 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1840 | if (PyErr_Occurred()) return NULL; |
1841 | }{ | |
1842 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1843 | } | |
1844 | { | |
1845 | if (_obj1) | |
1846 | delete _arg1; | |
1847 | } | |
1848 | return _resultobj; | |
1849 | } | |
1850 | ||
1851 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1852 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1853 | PyObject * _resultobj; | |
1854 | wxString * _result; | |
1855 | wxListItem * _arg0; | |
1856 | PyObject * _argo0 = 0; | |
1857 | char *_kwnames[] = { "self", NULL }; | |
1858 | ||
1859 | self = self; | |
1860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1861 | return NULL; | |
1862 | if (_argo0) { | |
1863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1866 | return NULL; | |
1867 | } | |
1868 | } | |
1869 | { | |
0e2ff151 | 1870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1871 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
1872 | ||
0e2ff151 | 1873 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1874 | if (PyErr_Occurred()) return NULL; |
1875 | }{ | |
1876 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1877 | } | |
1878 | return _resultobj; | |
1879 | } | |
1880 | ||
1881 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1882 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1883 | PyObject * _resultobj; | |
1884 | int _result; | |
1885 | wxListItem * _arg0; | |
1886 | int _arg1; | |
1887 | PyObject * _argo0 = 0; | |
1888 | char *_kwnames[] = { "self","m_image", NULL }; | |
1889 | ||
1890 | self = self; | |
1891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1892 | return NULL; | |
1893 | if (_argo0) { | |
1894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1897 | return NULL; | |
1898 | } | |
1899 | } | |
1900 | { | |
0e2ff151 | 1901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1902 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
1903 | ||
0e2ff151 | 1904 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1905 | if (PyErr_Occurred()) return NULL; |
1906 | } _resultobj = Py_BuildValue("i",_result); | |
1907 | return _resultobj; | |
1908 | } | |
1909 | ||
1910 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1911 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1912 | PyObject * _resultobj; | |
1913 | int _result; | |
1914 | wxListItem * _arg0; | |
1915 | PyObject * _argo0 = 0; | |
1916 | char *_kwnames[] = { "self", NULL }; | |
1917 | ||
1918 | self = self; | |
1919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1920 | return NULL; | |
1921 | if (_argo0) { | |
1922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1925 | return NULL; | |
1926 | } | |
1927 | } | |
1928 | { | |
0e2ff151 | 1929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1930 | _result = (int )wxListItem_m_image_get(_arg0); |
1931 | ||
0e2ff151 | 1932 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1933 | if (PyErr_Occurred()) return NULL; |
1934 | } _resultobj = Py_BuildValue("i",_result); | |
1935 | return _resultobj; | |
1936 | } | |
1937 | ||
1938 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1939 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1940 | PyObject * _resultobj; | |
1941 | long _result; | |
1942 | wxListItem * _arg0; | |
1943 | long _arg1; | |
1944 | PyObject * _argo0 = 0; | |
1945 | char *_kwnames[] = { "self","m_data", NULL }; | |
1946 | ||
1947 | self = self; | |
1948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1949 | return NULL; | |
1950 | if (_argo0) { | |
1951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1954 | return NULL; | |
1955 | } | |
1956 | } | |
1957 | { | |
0e2ff151 | 1958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1959 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
1960 | ||
0e2ff151 | 1961 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1962 | if (PyErr_Occurred()) return NULL; |
1963 | } _resultobj = Py_BuildValue("l",_result); | |
1964 | return _resultobj; | |
1965 | } | |
1966 | ||
1967 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1968 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1969 | PyObject * _resultobj; | |
1970 | long _result; | |
1971 | wxListItem * _arg0; | |
1972 | PyObject * _argo0 = 0; | |
1973 | char *_kwnames[] = { "self", NULL }; | |
1974 | ||
1975 | self = self; | |
1976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1977 | return NULL; | |
1978 | if (_argo0) { | |
1979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1982 | return NULL; | |
1983 | } | |
1984 | } | |
1985 | { | |
0e2ff151 | 1986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1987 | _result = (long )wxListItem_m_data_get(_arg0); |
1988 | ||
0e2ff151 | 1989 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1990 | if (PyErr_Occurred()) return NULL; |
1991 | } _resultobj = Py_BuildValue("l",_result); | |
1992 | return _resultobj; | |
1993 | } | |
1994 | ||
1995 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1996 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1997 | PyObject * _resultobj; | |
1998 | int _result; | |
1999 | wxListItem * _arg0; | |
2000 | int _arg1; | |
2001 | PyObject * _argo0 = 0; | |
2002 | char *_kwnames[] = { "self","m_format", NULL }; | |
2003 | ||
2004 | self = self; | |
2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
2006 | return NULL; | |
2007 | if (_argo0) { | |
2008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
2011 | return NULL; | |
2012 | } | |
2013 | } | |
2014 | { | |
0e2ff151 | 2015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2016 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
2017 | ||
0e2ff151 | 2018 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2019 | if (PyErr_Occurred()) return NULL; |
2020 | } _resultobj = Py_BuildValue("i",_result); | |
2021 | return _resultobj; | |
2022 | } | |
2023 | ||
2024 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
2025 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2026 | PyObject * _resultobj; | |
2027 | int _result; | |
2028 | wxListItem * _arg0; | |
2029 | PyObject * _argo0 = 0; | |
2030 | char *_kwnames[] = { "self", NULL }; | |
2031 | ||
2032 | self = self; | |
2033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
2034 | return NULL; | |
2035 | if (_argo0) { | |
2036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
2039 | return NULL; | |
2040 | } | |
2041 | } | |
2042 | { | |
0e2ff151 | 2043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2044 | _result = (int )wxListItem_m_format_get(_arg0); |
2045 | ||
0e2ff151 | 2046 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2047 | if (PyErr_Occurred()) return NULL; |
2048 | } _resultobj = Py_BuildValue("i",_result); | |
2049 | return _resultobj; | |
2050 | } | |
2051 | ||
2052 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) | |
2053 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2054 | PyObject * _resultobj; | |
2055 | int _result; | |
2056 | wxListItem * _arg0; | |
2057 | int _arg1; | |
2058 | PyObject * _argo0 = 0; | |
2059 | char *_kwnames[] = { "self","m_width", NULL }; | |
2060 | ||
2061 | self = self; | |
2062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) | |
2063 | return NULL; | |
2064 | if (_argo0) { | |
2065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); | |
2068 | return NULL; | |
2069 | } | |
2070 | } | |
2071 | { | |
0e2ff151 | 2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2073 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
2074 | ||
0e2ff151 | 2075 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2076 | if (PyErr_Occurred()) return NULL; |
2077 | } _resultobj = Py_BuildValue("i",_result); | |
2078 | return _resultobj; | |
2079 | } | |
2080 | ||
2081 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) | |
2082 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2083 | PyObject * _resultobj; | |
2084 | int _result; | |
2085 | wxListItem * _arg0; | |
2086 | PyObject * _argo0 = 0; | |
2087 | char *_kwnames[] = { "self", NULL }; | |
2088 | ||
2089 | self = self; | |
2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) | |
2091 | return NULL; | |
2092 | if (_argo0) { | |
2093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); | |
2096 | return NULL; | |
2097 | } | |
2098 | } | |
2099 | { | |
0e2ff151 | 2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2101 | _result = (int )wxListItem_m_width_get(_arg0); |
2102 | ||
0e2ff151 | 2103 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2104 | if (PyErr_Occurred()) return NULL; |
2105 | } _resultobj = Py_BuildValue("i",_result); | |
2106 | return _resultobj; | |
2107 | } | |
2108 | ||
2109 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { | |
2110 | wxListEvent *src; | |
2111 | wxNotifyEvent *dest; | |
2112 | src = (wxListEvent *) ptr; | |
2113 | dest = (wxNotifyEvent *) src; | |
2114 | return (void *) dest; | |
2115 | } | |
2116 | ||
2117 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { | |
2118 | wxListEvent *src; | |
2119 | wxCommandEvent *dest; | |
2120 | src = (wxListEvent *) ptr; | |
2121 | dest = (wxCommandEvent *) src; | |
2122 | return (void *) dest; | |
2123 | } | |
2124 | ||
2125 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2126 | wxListEvent *src; | |
2127 | wxEvent *dest; | |
2128 | src = (wxListEvent *) ptr; | |
2129 | dest = (wxEvent *) src; | |
2130 | return (void *) dest; | |
2131 | } | |
2132 | ||
2133 | static void *SwigwxListEventTowxObject(void *ptr) { | |
2134 | wxListEvent *src; | |
2135 | wxObject *dest; | |
2136 | src = (wxListEvent *) ptr; | |
2137 | dest = (wxObject *) src; | |
2138 | return (void *) dest; | |
2139 | } | |
2140 | ||
2141 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) | |
2142 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2143 | PyObject * _resultobj; | |
2144 | wxListEvent * _result; | |
2145 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2146 | int _arg1 = (int ) 0; | |
2147 | char *_kwnames[] = { "commandType","id", NULL }; | |
2148 | char _ptemp[128]; | |
2149 | ||
2150 | self = self; | |
2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2152 | return NULL; | |
2153 | { | |
0e2ff151 | 2154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2155 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); |
2156 | ||
0e2ff151 | 2157 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2158 | if (PyErr_Occurred()) return NULL; |
2159 | } if (_result) { | |
2160 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2161 | _resultobj = Py_BuildValue("s",_ptemp); | |
2162 | } else { | |
2163 | Py_INCREF(Py_None); | |
2164 | _resultobj = Py_None; | |
2165 | } | |
2166 | return _resultobj; | |
2167 | } | |
2168 | ||
2169 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) | |
2170 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2171 | PyObject * _resultobj; | |
2172 | int _result; | |
2173 | wxListEvent * _arg0; | |
2174 | int _arg1; | |
2175 | PyObject * _argo0 = 0; | |
2176 | char *_kwnames[] = { "self","m_code", NULL }; | |
2177 | ||
2178 | self = self; | |
2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) | |
2180 | return NULL; | |
2181 | if (_argo0) { | |
2182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
2185 | return NULL; | |
2186 | } | |
2187 | } | |
2188 | { | |
0e2ff151 | 2189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2190 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); |
2191 | ||
0e2ff151 | 2192 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2193 | if (PyErr_Occurred()) return NULL; |
2194 | } _resultobj = Py_BuildValue("i",_result); | |
2195 | return _resultobj; | |
2196 | } | |
2197 | ||
2198 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) | |
2199 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2200 | PyObject * _resultobj; | |
2201 | int _result; | |
2202 | wxListEvent * _arg0; | |
2203 | PyObject * _argo0 = 0; | |
2204 | char *_kwnames[] = { "self", NULL }; | |
2205 | ||
2206 | self = self; | |
2207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2208 | return NULL; | |
2209 | if (_argo0) { | |
2210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2213 | return NULL; | |
2214 | } | |
2215 | } | |
2216 | { | |
0e2ff151 | 2217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2218 | _result = (int )wxListEvent_m_code_get(_arg0); |
2219 | ||
0e2ff151 | 2220 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2221 | if (PyErr_Occurred()) return NULL; |
2222 | } _resultobj = Py_BuildValue("i",_result); | |
2223 | return _resultobj; | |
2224 | } | |
2225 | ||
dbd3685c RD |
2226 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) |
2227 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
2228 | PyObject * _resultobj; |
2229 | long _result; | |
2230 | wxListEvent * _arg0; | |
2231 | long _arg1; | |
2232 | PyObject * _argo0 = 0; | |
dbd3685c | 2233 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; |
e6056257 RD |
2234 | |
2235 | self = self; | |
dbd3685c | 2236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
2237 | return NULL; |
2238 | if (_argo0) { | |
2239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
dbd3685c | 2241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); |
e6056257 RD |
2242 | return NULL; |
2243 | } | |
2244 | } | |
2245 | { | |
0e2ff151 | 2246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbd3685c | 2247 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); |
e6056257 | 2248 | |
0e2ff151 | 2249 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2250 | if (PyErr_Occurred()) return NULL; |
2251 | } _resultobj = Py_BuildValue("l",_result); | |
2252 | return _resultobj; | |
2253 | } | |
2254 | ||
dbd3685c RD |
2255 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2256 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 RD |
2257 | PyObject * _resultobj; |
2258 | long _result; | |
2259 | wxListEvent * _arg0; | |
2260 | PyObject * _argo0 = 0; | |
2261 | char *_kwnames[] = { "self", NULL }; | |
2262 | ||
2263 | self = self; | |
dbd3685c | 2264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
e6056257 RD |
2265 | return NULL; |
2266 | if (_argo0) { | |
2267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
dbd3685c | 2269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
e6056257 RD |
2270 | return NULL; |
2271 | } | |
2272 | } | |
2273 | { | |
0e2ff151 | 2274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbd3685c | 2275 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
e6056257 | 2276 | |
0e2ff151 | 2277 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2278 | if (PyErr_Occurred()) return NULL; |
2279 | } _resultobj = Py_BuildValue("l",_result); | |
2280 | return _resultobj; | |
2281 | } | |
2282 | ||
dbd3685c RD |
2283 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) |
2284 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2285 | PyObject * _resultobj; |
dbd3685c | 2286 | long _result; |
e6056257 | 2287 | wxListEvent * _arg0; |
dbd3685c | 2288 | long _arg1; |
e6056257 | 2289 | PyObject * _argo0 = 0; |
dbd3685c | 2290 | char *_kwnames[] = { "self","m_itemIndex", NULL }; |
e6056257 RD |
2291 | |
2292 | self = self; | |
dbd3685c | 2293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
2294 | return NULL; |
2295 | if (_argo0) { | |
2296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
dbd3685c | 2298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); |
e6056257 RD |
2299 | return NULL; |
2300 | } | |
2301 | } | |
2302 | { | |
0e2ff151 | 2303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbd3685c | 2304 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); |
e6056257 | 2305 | |
0e2ff151 | 2306 | wxPyEndAllowThreads(__tstate); |
e6056257 | 2307 | if (PyErr_Occurred()) return NULL; |
dbd3685c | 2308 | } _resultobj = Py_BuildValue("l",_result); |
e6056257 RD |
2309 | return _resultobj; |
2310 | } | |
2311 | ||
dbd3685c RD |
2312 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2313 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2314 | PyObject * _resultobj; |
dbd3685c | 2315 | long _result; |
e6056257 RD |
2316 | wxListEvent * _arg0; |
2317 | PyObject * _argo0 = 0; | |
2318 | char *_kwnames[] = { "self", NULL }; | |
2319 | ||
2320 | self = self; | |
dbd3685c | 2321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
e6056257 RD |
2322 | return NULL; |
2323 | if (_argo0) { | |
2324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
dbd3685c | 2326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
e6056257 RD |
2327 | return NULL; |
2328 | } | |
2329 | } | |
2330 | { | |
0e2ff151 | 2331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbd3685c | 2332 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
e6056257 | 2333 | |
0e2ff151 | 2334 | wxPyEndAllowThreads(__tstate); |
e6056257 | 2335 | if (PyErr_Occurred()) return NULL; |
dbd3685c | 2336 | } _resultobj = Py_BuildValue("l",_result); |
e6056257 RD |
2337 | return _resultobj; |
2338 | } | |
2339 | ||
dbd3685c RD |
2340 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
2341 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2342 | PyObject * _resultobj; |
dbd3685c | 2343 | int _result; |
e6056257 | 2344 | wxListEvent * _arg0; |
dbd3685c | 2345 | int _arg1; |
e6056257 | 2346 | PyObject * _argo0 = 0; |
dbd3685c | 2347 | char *_kwnames[] = { "self","m_col", NULL }; |
e6056257 RD |
2348 | |
2349 | self = self; | |
dbd3685c | 2350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
2351 | return NULL; |
2352 | if (_argo0) { | |
2353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
dbd3685c | 2355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); |
e6056257 RD |
2356 | return NULL; |
2357 | } | |
2358 | } | |
e6056257 | 2359 | { |
0e2ff151 | 2360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbd3685c | 2361 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
e6056257 | 2362 | |
0e2ff151 | 2363 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2364 | if (PyErr_Occurred()) return NULL; |
2365 | } _resultobj = Py_BuildValue("i",_result); | |
2366 | return _resultobj; | |
2367 | } | |
2368 | ||
dbd3685c RD |
2369 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2370 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2371 | PyObject * _resultobj; |
dbd3685c | 2372 | int _result; |
e6056257 RD |
2373 | wxListEvent * _arg0; |
2374 | PyObject * _argo0 = 0; | |
2375 | char *_kwnames[] = { "self", NULL }; | |
2376 | ||
2377 | self = self; | |
dbd3685c | 2378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
e6056257 RD |
2379 | return NULL; |
2380 | if (_argo0) { | |
2381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
dbd3685c | 2383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
e6056257 RD |
2384 | return NULL; |
2385 | } | |
2386 | } | |
2387 | { | |
0e2ff151 | 2388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
dbd3685c | 2389 | _result = (int )wxListEvent_m_col_get(_arg0); |
e6056257 | 2390 | |
0e2ff151 | 2391 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2392 | if (PyErr_Occurred()) return NULL; |
2393 | } _resultobj = Py_BuildValue("i",_result); | |
2394 | return _resultobj; | |
2395 | } | |
2396 | ||
2397 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) | |
2398 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2399 | PyObject * _resultobj; | |
2400 | wxPoint * _result; | |
2401 | wxListEvent * _arg0; | |
2402 | wxPoint * _arg1; | |
2403 | PyObject * _argo0 = 0; | |
2404 | wxPoint temp; | |
2405 | PyObject * _obj1 = 0; | |
2406 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
2407 | char _ptemp[128]; | |
2408 | ||
2409 | self = self; | |
2410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) | |
2411 | return NULL; | |
2412 | if (_argo0) { | |
2413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2416 | return NULL; | |
2417 | } | |
2418 | } | |
2419 | { | |
2420 | _arg1 = &temp; | |
2421 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2422 | return NULL; | |
2423 | } | |
2424 | { | |
0e2ff151 | 2425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2426 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
2427 | ||
0e2ff151 | 2428 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2429 | if (PyErr_Occurred()) return NULL; |
2430 | } if (_result) { | |
2431 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2432 | _resultobj = Py_BuildValue("s",_ptemp); | |
2433 | } else { | |
2434 | Py_INCREF(Py_None); | |
2435 | _resultobj = Py_None; | |
2436 | } | |
2437 | return _resultobj; | |
2438 | } | |
2439 | ||
2440 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) | |
2441 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2442 | PyObject * _resultobj; | |
2443 | wxPoint * _result; | |
2444 | wxListEvent * _arg0; | |
2445 | PyObject * _argo0 = 0; | |
2446 | char *_kwnames[] = { "self", NULL }; | |
2447 | char _ptemp[128]; | |
2448 | ||
2449 | self = self; | |
2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) | |
2451 | return NULL; | |
2452 | if (_argo0) { | |
2453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
2456 | return NULL; | |
2457 | } | |
2458 | } | |
2459 | { | |
0e2ff151 | 2460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2461 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
2462 | ||
0e2ff151 | 2463 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2464 | if (PyErr_Occurred()) return NULL; |
2465 | } if (_result) { | |
2466 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2467 | _resultobj = Py_BuildValue("s",_ptemp); | |
2468 | } else { | |
2469 | Py_INCREF(Py_None); | |
2470 | _resultobj = Py_None; | |
2471 | } | |
2472 | return _resultobj; | |
2473 | } | |
2474 | ||
2475 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) | |
2476 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2477 | PyObject * _resultobj; | |
2478 | wxListItem * _result; | |
2479 | wxListEvent * _arg0; | |
2480 | wxListItem * _arg1; | |
2481 | PyObject * _argo0 = 0; | |
2482 | PyObject * _argo1 = 0; | |
2483 | char *_kwnames[] = { "self","m_item", NULL }; | |
2484 | ||
2485 | self = self; | |
2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2487 | return NULL; | |
2488 | if (_argo0) { | |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2492 | return NULL; | |
2493 | } | |
2494 | } | |
2495 | if (_argo1) { | |
2496 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2497 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2499 | return NULL; | |
2500 | } | |
2501 | } | |
2502 | { | |
0e2ff151 | 2503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2504 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); |
2505 | ||
0e2ff151 | 2506 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2507 | if (PyErr_Occurred()) return NULL; |
2508 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2509 | return _resultobj; | |
2510 | } | |
2511 | ||
2512 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) | |
2513 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2514 | PyObject * _resultobj; | |
2515 | wxListItem * _result; | |
2516 | wxListEvent * _arg0; | |
2517 | PyObject * _argo0 = 0; | |
2518 | char *_kwnames[] = { "self", NULL }; | |
2519 | ||
2520 | self = self; | |
2521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) | |
2522 | return NULL; | |
2523 | if (_argo0) { | |
2524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); | |
2527 | return NULL; | |
2528 | } | |
2529 | } | |
2530 | { | |
0e2ff151 | 2531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2532 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
2533 | ||
0e2ff151 | 2534 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2535 | if (PyErr_Occurred()) return NULL; |
2536 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2537 | return _resultobj; | |
2538 | } | |
2539 | ||
2540 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) | |
2541 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2542 | PyObject * _resultobj; | |
2543 | int _result; | |
2544 | wxListEvent * _arg0; | |
2545 | PyObject * _argo0 = 0; | |
2546 | char *_kwnames[] = { "self", NULL }; | |
2547 | ||
2548 | self = self; | |
2549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) | |
2550 | return NULL; | |
2551 | if (_argo0) { | |
2552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); | |
2555 | return NULL; | |
2556 | } | |
2557 | } | |
2558 | { | |
0e2ff151 | 2559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2560 | _result = (int )wxListEvent_GetCode(_arg0); |
2561 | ||
0e2ff151 | 2562 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2563 | if (PyErr_Occurred()) return NULL; |
2564 | } _resultobj = Py_BuildValue("i",_result); | |
2565 | return _resultobj; | |
2566 | } | |
2567 | ||
2568 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) | |
2569 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2570 | PyObject * _resultobj; | |
2571 | long _result; | |
2572 | wxListEvent * _arg0; | |
2573 | PyObject * _argo0 = 0; | |
2574 | char *_kwnames[] = { "self", NULL }; | |
2575 | ||
2576 | self = self; | |
2577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) | |
2578 | return NULL; | |
2579 | if (_argo0) { | |
2580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); | |
2583 | return NULL; | |
2584 | } | |
2585 | } | |
2586 | { | |
0e2ff151 | 2587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2588 | _result = (long )wxListEvent_GetIndex(_arg0); |
2589 | ||
0e2ff151 | 2590 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2591 | if (PyErr_Occurred()) return NULL; |
2592 | } _resultobj = Py_BuildValue("l",_result); | |
2593 | return _resultobj; | |
2594 | } | |
2595 | ||
e6056257 RD |
2596 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2597 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2598 | PyObject * _resultobj; | |
2599 | int _result; | |
2600 | wxListEvent * _arg0; | |
2601 | PyObject * _argo0 = 0; | |
2602 | char *_kwnames[] = { "self", NULL }; | |
2603 | ||
2604 | self = self; | |
2605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) | |
2606 | return NULL; | |
2607 | if (_argo0) { | |
2608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); | |
2611 | return NULL; | |
2612 | } | |
2613 | } | |
2614 | { | |
0e2ff151 | 2615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2616 | _result = (int )wxListEvent_GetColumn(_arg0); |
2617 | ||
0e2ff151 | 2618 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2619 | if (PyErr_Occurred()) return NULL; |
2620 | } _resultobj = Py_BuildValue("i",_result); | |
2621 | return _resultobj; | |
2622 | } | |
2623 | ||
e6056257 RD |
2624 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2625 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2626 | PyObject * _resultobj; | |
2627 | wxPoint * _result; | |
2628 | wxListEvent * _arg0; | |
2629 | PyObject * _argo0 = 0; | |
2630 | char *_kwnames[] = { "self", NULL }; | |
2631 | char _ptemp[128]; | |
2632 | ||
2633 | self = self; | |
2634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) | |
2635 | return NULL; | |
2636 | if (_argo0) { | |
2637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); | |
2640 | return NULL; | |
2641 | } | |
2642 | } | |
2643 | { | |
0e2ff151 | 2644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2645 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
2646 | ||
0e2ff151 | 2647 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2648 | if (PyErr_Occurred()) return NULL; |
2649 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2650 | _resultobj = Py_BuildValue("s",_ptemp); | |
2651 | return _resultobj; | |
2652 | } | |
2653 | ||
2654 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
2655 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2656 | PyObject * _resultobj; | |
2657 | wxString * _result; | |
2658 | wxListEvent * _arg0; | |
2659 | PyObject * _argo0 = 0; | |
2660 | char *_kwnames[] = { "self", NULL }; | |
2661 | ||
2662 | self = self; | |
2663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) | |
2664 | return NULL; | |
2665 | if (_argo0) { | |
2666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); | |
2669 | return NULL; | |
2670 | } | |
2671 | } | |
2672 | { | |
0e2ff151 | 2673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2674 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2675 | _result = (wxString *) &_result_ref; | |
2676 | ||
0e2ff151 | 2677 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2678 | if (PyErr_Occurred()) return NULL; |
2679 | }{ | |
2680 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2681 | } | |
2682 | return _resultobj; | |
2683 | } | |
2684 | ||
2685 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) | |
2686 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2687 | PyObject * _resultobj; | |
2688 | wxString * _result; | |
2689 | wxListEvent * _arg0; | |
2690 | PyObject * _argo0 = 0; | |
2691 | char *_kwnames[] = { "self", NULL }; | |
2692 | ||
2693 | self = self; | |
2694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) | |
2695 | return NULL; | |
2696 | if (_argo0) { | |
2697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); | |
2700 | return NULL; | |
2701 | } | |
2702 | } | |
2703 | { | |
0e2ff151 | 2704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2705 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2706 | _result = (wxString *) &_result_ref; | |
2707 | ||
0e2ff151 | 2708 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2709 | if (PyErr_Occurred()) return NULL; |
2710 | }{ | |
2711 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2712 | } | |
2713 | return _resultobj; | |
2714 | } | |
2715 | ||
2716 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) | |
2717 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2718 | PyObject * _resultobj; | |
2719 | int _result; | |
2720 | wxListEvent * _arg0; | |
2721 | PyObject * _argo0 = 0; | |
2722 | char *_kwnames[] = { "self", NULL }; | |
2723 | ||
2724 | self = self; | |
2725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) | |
2726 | return NULL; | |
2727 | if (_argo0) { | |
2728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); | |
2731 | return NULL; | |
2732 | } | |
2733 | } | |
2734 | { | |
0e2ff151 | 2735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2736 | _result = (int )wxListEvent_GetImage(_arg0); |
2737 | ||
0e2ff151 | 2738 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2739 | if (PyErr_Occurred()) return NULL; |
2740 | } _resultobj = Py_BuildValue("i",_result); | |
2741 | return _resultobj; | |
2742 | } | |
2743 | ||
2744 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) | |
2745 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2746 | PyObject * _resultobj; | |
2747 | long _result; | |
2748 | wxListEvent * _arg0; | |
2749 | PyObject * _argo0 = 0; | |
2750 | char *_kwnames[] = { "self", NULL }; | |
2751 | ||
2752 | self = self; | |
2753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) | |
2754 | return NULL; | |
2755 | if (_argo0) { | |
2756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); | |
2759 | return NULL; | |
2760 | } | |
2761 | } | |
2762 | { | |
0e2ff151 | 2763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2764 | _result = (long )wxListEvent_GetData(_arg0); |
2765 | ||
0e2ff151 | 2766 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2767 | if (PyErr_Occurred()) return NULL; |
2768 | } _resultobj = Py_BuildValue("l",_result); | |
2769 | return _resultobj; | |
2770 | } | |
2771 | ||
2772 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) | |
2773 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2774 | PyObject * _resultobj; | |
2775 | long _result; | |
2776 | wxListEvent * _arg0; | |
2777 | PyObject * _argo0 = 0; | |
2778 | char *_kwnames[] = { "self", NULL }; | |
2779 | ||
2780 | self = self; | |
2781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) | |
2782 | return NULL; | |
2783 | if (_argo0) { | |
2784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); | |
2787 | return NULL; | |
2788 | } | |
2789 | } | |
2790 | { | |
0e2ff151 | 2791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2792 | _result = (long )wxListEvent_GetMask(_arg0); |
2793 | ||
0e2ff151 | 2794 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2795 | if (PyErr_Occurred()) return NULL; |
2796 | } _resultobj = Py_BuildValue("l",_result); | |
2797 | return _resultobj; | |
2798 | } | |
2799 | ||
2800 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) | |
2801 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2802 | PyObject * _resultobj; | |
2803 | wxListItem * _result; | |
2804 | wxListEvent * _arg0; | |
2805 | PyObject * _argo0 = 0; | |
2806 | char *_kwnames[] = { "self", NULL }; | |
2807 | ||
2808 | self = self; | |
2809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) | |
2810 | return NULL; | |
2811 | if (_argo0) { | |
2812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); | |
2815 | return NULL; | |
2816 | } | |
2817 | } | |
2818 | { | |
0e2ff151 | 2819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2820 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2821 | _result = (wxListItem *) &_result_ref; | |
2822 | ||
0e2ff151 | 2823 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2824 | if (PyErr_Occurred()) return NULL; |
2825 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2826 | return _resultobj; | |
2827 | } | |
2828 | ||
2829 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) | |
2830 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2831 | PyObject * _resultobj; | |
2832 | long _result; | |
2833 | wxListEvent * _arg0; | |
2834 | PyObject * _argo0 = 0; | |
2835 | char *_kwnames[] = { "self", NULL }; | |
2836 | ||
2837 | self = self; | |
2838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2839 | return NULL; | |
2840 | if (_argo0) { | |
2841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2844 | return NULL; | |
2845 | } | |
2846 | } | |
2847 | { | |
0e2ff151 | 2848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2849 | _result = (long )wxListEvent_GetCacheFrom(_arg0); |
2850 | ||
0e2ff151 | 2851 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2852 | if (PyErr_Occurred()) return NULL; |
2853 | } _resultobj = Py_BuildValue("l",_result); | |
2854 | return _resultobj; | |
2855 | } | |
2856 | ||
2857 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2858 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2859 | PyObject * _resultobj; | |
2860 | long _result; | |
2861 | wxListEvent * _arg0; | |
2862 | PyObject * _argo0 = 0; | |
2863 | char *_kwnames[] = { "self", NULL }; | |
2864 | ||
2865 | self = self; | |
2866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2867 | return NULL; | |
2868 | if (_argo0) { | |
2869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2872 | return NULL; | |
2873 | } | |
2874 | } | |
2875 | { | |
0e2ff151 | 2876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2877 | _result = (long )wxListEvent_GetCacheTo(_arg0); |
2878 | ||
0e2ff151 | 2879 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2880 | if (PyErr_Occurred()) return NULL; |
2881 | } _resultobj = Py_BuildValue("l",_result); | |
2882 | return _resultobj; | |
2883 | } | |
2884 | ||
2885 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { | |
2886 | wxPyListCtrl *src; | |
2887 | wxControl *dest; | |
2888 | src = (wxPyListCtrl *) ptr; | |
2889 | dest = (wxControl *) src; | |
2890 | return (void *) dest; | |
2891 | } | |
2892 | ||
2893 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { | |
2894 | wxPyListCtrl *src; | |
2895 | wxWindow *dest; | |
2896 | src = (wxPyListCtrl *) ptr; | |
2897 | dest = (wxWindow *) src; | |
2898 | return (void *) dest; | |
2899 | } | |
2900 | ||
2901 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { | |
2902 | wxPyListCtrl *src; | |
2903 | wxEvtHandler *dest; | |
2904 | src = (wxPyListCtrl *) ptr; | |
2905 | dest = (wxEvtHandler *) src; | |
2906 | return (void *) dest; | |
2907 | } | |
2908 | ||
2909 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { | |
2910 | wxPyListCtrl *src; | |
2911 | wxObject *dest; | |
2912 | src = (wxPyListCtrl *) ptr; | |
2913 | dest = (wxObject *) src; | |
2914 | return (void *) dest; | |
2915 | } | |
2916 | ||
2917 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2918 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2919 | PyObject * _resultobj; | |
2920 | wxPyListCtrl * _result; | |
2921 | wxWindow * _arg0; | |
2922 | wxWindowID _arg1 = (wxWindowID ) -1; | |
2923 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2924 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2925 | long _arg4 = (long ) (wxLC_ICON); | |
2926 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
2927 | char * _arg6 = (char *) "listCtrl"; | |
2928 | PyObject * _argo0 = 0; | |
2929 | wxPoint temp; | |
2930 | PyObject * _obj2 = 0; | |
2931 | wxSize temp0; | |
2932 | PyObject * _obj3 = 0; | |
2933 | PyObject * _argo5 = 0; | |
2934 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
2935 | char _ptemp[128]; | |
2936 | ||
2937 | self = self; | |
2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
2939 | return NULL; | |
2940 | if (_argo0) { | |
2941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); | |
2944 | return NULL; | |
2945 | } | |
2946 | } | |
2947 | if (_obj2) | |
2948 | { | |
2949 | _arg2 = &temp; | |
2950 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2951 | return NULL; | |
2952 | } | |
2953 | if (_obj3) | |
2954 | { | |
2955 | _arg3 = &temp0; | |
2956 | if (! wxSize_helper(_obj3, &_arg3)) | |
2957 | return NULL; | |
2958 | } | |
2959 | if (_argo5) { | |
2960 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2961 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
2962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); | |
2963 | return NULL; | |
2964 | } | |
2965 | } | |
2966 | { | |
0e2ff151 | 2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2968 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
2969 | ||
0e2ff151 | 2970 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2971 | if (PyErr_Occurred()) return NULL; |
2972 | } if (_result) { | |
2973 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2974 | _resultobj = Py_BuildValue("s",_ptemp); | |
2975 | } else { | |
2976 | Py_INCREF(Py_None); | |
2977 | _resultobj = Py_None; | |
2978 | } | |
2979 | return _resultobj; | |
2980 | } | |
2981 | ||
2982 | #define new_wxPreListCtrl() (new wxPyListCtrl()) | |
2983 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2984 | PyObject * _resultobj; | |
2985 | wxPyListCtrl * _result; | |
2986 | char *_kwnames[] = { NULL }; | |
2987 | char _ptemp[128]; | |
2988 | ||
2989 | self = self; | |
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2991 | return NULL; | |
2992 | { | |
0e2ff151 | 2993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2994 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); |
2995 | ||
0e2ff151 | 2996 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2997 | if (PyErr_Occurred()) return NULL; |
2998 | } if (_result) { | |
2999 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
3000 | _resultobj = Py_BuildValue("s",_ptemp); | |
3001 | } else { | |
3002 | Py_INCREF(Py_None); | |
3003 | _resultobj = Py_None; | |
3004 | } | |
3005 | return _resultobj; | |
3006 | } | |
3007 | ||
3008 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3009 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3010 | PyObject * _resultobj; | |
3011 | bool _result; | |
3012 | wxPyListCtrl * _arg0; | |
3013 | wxWindow * _arg1; | |
3014 | wxWindowID _arg2 = (wxWindowID ) -1; | |
3015 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3016 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3017 | long _arg5 = (long ) (wxLC_ICON); | |
3018 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3019 | char * _arg7 = (char *) "listCtrl"; | |
3020 | PyObject * _argo0 = 0; | |
3021 | PyObject * _argo1 = 0; | |
3022 | wxPoint temp; | |
3023 | PyObject * _obj3 = 0; | |
3024 | wxSize temp0; | |
3025 | PyObject * _obj4 = 0; | |
3026 | PyObject * _argo6 = 0; | |
3027 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
3028 | ||
3029 | self = self; | |
3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3031 | return NULL; | |
3032 | if (_argo0) { | |
3033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
3036 | return NULL; | |
3037 | } | |
3038 | } | |
3039 | if (_argo1) { | |
3040 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3041 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
3043 | return NULL; | |
3044 | } | |
3045 | } | |
3046 | if (_obj3) | |
3047 | { | |
3048 | _arg3 = &temp; | |
3049 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3050 | return NULL; | |
3051 | } | |
3052 | if (_obj4) | |
3053 | { | |
3054 | _arg4 = &temp0; | |
3055 | if (! wxSize_helper(_obj4, &_arg4)) | |
3056 | return NULL; | |
3057 | } | |
3058 | if (_argo6) { | |
3059 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3060 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
3062 | return NULL; | |
3063 | } | |
3064 | } | |
3065 | { | |
0e2ff151 | 3066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3067 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
3068 | ||
0e2ff151 | 3069 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3070 | if (PyErr_Occurred()) return NULL; |
3071 | } _resultobj = Py_BuildValue("i",_result); | |
3072 | return _resultobj; | |
3073 | } | |
3074 | ||
3075 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
3076 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3077 | PyObject * _resultobj; | |
3078 | wxPyListCtrl * _arg0; | |
3079 | PyObject * _arg1; | |
3080 | PyObject * _arg2; | |
3081 | PyObject * _argo0 = 0; | |
3082 | PyObject * _obj1 = 0; | |
3083 | PyObject * _obj2 = 0; | |
3084 | char *_kwnames[] = { "self","self","_class", NULL }; | |
3085 | ||
3086 | self = self; | |
3087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3088 | return NULL; | |
3089 | if (_argo0) { | |
3090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); | |
3093 | return NULL; | |
3094 | } | |
3095 | } | |
3096 | { | |
3097 | _arg1 = _obj1; | |
3098 | } | |
3099 | { | |
3100 | _arg2 = _obj2; | |
3101 | } | |
3102 | { | |
0e2ff151 | 3103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3104 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
3105 | ||
0e2ff151 | 3106 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3107 | if (PyErr_Occurred()) return NULL; |
3108 | } Py_INCREF(Py_None); | |
3109 | _resultobj = Py_None; | |
3110 | return _resultobj; | |
3111 | } | |
3112 | ||
3113 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
3114 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3115 | PyObject * _resultobj; | |
3116 | bool _result; | |
3117 | wxPyListCtrl * _arg0; | |
3118 | wxColour * _arg1; | |
3119 | PyObject * _argo0 = 0; | |
3120 | wxColour temp; | |
3121 | PyObject * _obj1 = 0; | |
3122 | char *_kwnames[] = { "self","col", NULL }; | |
3123 | ||
3124 | self = self; | |
3125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
3126 | return NULL; | |
3127 | if (_argo0) { | |
3128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
3131 | return NULL; | |
3132 | } | |
3133 | } | |
3134 | { | |
3135 | _arg1 = &temp; | |
3136 | if (! wxColour_helper(_obj1, &_arg1)) | |
3137 | return NULL; | |
3138 | } | |
3139 | { | |
0e2ff151 | 3140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3141 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
3142 | ||
0e2ff151 | 3143 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3144 | if (PyErr_Occurred()) return NULL; |
3145 | } _resultobj = Py_BuildValue("i",_result); | |
3146 | return _resultobj; | |
3147 | } | |
3148 | ||
3149 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3150 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3151 | PyObject * _resultobj; | |
3152 | bool _result; | |
3153 | wxPyListCtrl * _arg0; | |
3154 | wxColour * _arg1; | |
3155 | PyObject * _argo0 = 0; | |
3156 | wxColour temp; | |
3157 | PyObject * _obj1 = 0; | |
3158 | char *_kwnames[] = { "self","col", NULL }; | |
3159 | ||
3160 | self = self; | |
3161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3162 | return NULL; | |
3163 | if (_argo0) { | |
3164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
3167 | return NULL; | |
3168 | } | |
3169 | } | |
3170 | { | |
3171 | _arg1 = &temp; | |
3172 | if (! wxColour_helper(_obj1, &_arg1)) | |
3173 | return NULL; | |
3174 | } | |
3175 | { | |
0e2ff151 | 3176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3177 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
3178 | ||
0e2ff151 | 3179 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3180 | if (PyErr_Occurred()) return NULL; |
3181 | } _resultobj = Py_BuildValue("i",_result); | |
3182 | return _resultobj; | |
3183 | } | |
3184 | ||
a341e32e RD |
3185 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { |
3186 | wxListItem item; | |
3187 | if (self->GetColumn(col, item)) | |
3188 | return new wxListItem(item); | |
3189 | else | |
3190 | return NULL; | |
3191 | } | |
e6056257 RD |
3192 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
3193 | PyObject * _resultobj; | |
a341e32e | 3194 | wxListItem * _result; |
e6056257 RD |
3195 | wxPyListCtrl * _arg0; |
3196 | int _arg1; | |
e6056257 | 3197 | PyObject * _argo0 = 0; |
a341e32e | 3198 | char *_kwnames[] = { "self","col", NULL }; |
e6056257 RD |
3199 | |
3200 | self = self; | |
a341e32e | 3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
3202 | return NULL; |
3203 | if (_argo0) { | |
3204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3207 | return NULL; | |
3208 | } | |
3209 | } | |
e6056257 | 3210 | { |
0e2ff151 | 3211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a341e32e | 3212 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); |
e6056257 | 3213 | |
0e2ff151 | 3214 | wxPyEndAllowThreads(__tstate); |
e6056257 | 3215 | if (PyErr_Occurred()) return NULL; |
a341e32e | 3216 | }{ _resultobj = wxPyMake_wxObject(_result); } |
e6056257 RD |
3217 | return _resultobj; |
3218 | } | |
3219 | ||
3220 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) | |
3221 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3222 | PyObject * _resultobj; | |
3223 | bool _result; | |
3224 | wxPyListCtrl * _arg0; | |
3225 | int _arg1; | |
3226 | wxListItem * _arg2; | |
3227 | PyObject * _argo0 = 0; | |
3228 | PyObject * _argo2 = 0; | |
3229 | char *_kwnames[] = { "self","col","item", NULL }; | |
3230 | ||
3231 | self = self; | |
3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) | |
3233 | return NULL; | |
3234 | if (_argo0) { | |
3235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3238 | return NULL; | |
3239 | } | |
3240 | } | |
3241 | if (_argo2) { | |
3242 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3243 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
3245 | return NULL; | |
3246 | } | |
3247 | } | |
3248 | { | |
0e2ff151 | 3249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3250 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
3251 | ||
0e2ff151 | 3252 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3253 | if (PyErr_Occurred()) return NULL; |
3254 | } _resultobj = Py_BuildValue("i",_result); | |
3255 | return _resultobj; | |
3256 | } | |
3257 | ||
3258 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) | |
3259 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3260 | PyObject * _resultobj; | |
3261 | int _result; | |
3262 | wxPyListCtrl * _arg0; | |
3263 | int _arg1; | |
3264 | PyObject * _argo0 = 0; | |
3265 | char *_kwnames[] = { "self","col", NULL }; | |
3266 | ||
3267 | self = self; | |
3268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) | |
3269 | return NULL; | |
3270 | if (_argo0) { | |
3271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
3274 | return NULL; | |
3275 | } | |
3276 | } | |
3277 | { | |
0e2ff151 | 3278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3279 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
3280 | ||
0e2ff151 | 3281 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3282 | if (PyErr_Occurred()) return NULL; |
3283 | } _resultobj = Py_BuildValue("i",_result); | |
3284 | return _resultobj; | |
3285 | } | |
3286 | ||
3287 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) | |
3288 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3289 | PyObject * _resultobj; | |
3290 | bool _result; | |
3291 | wxPyListCtrl * _arg0; | |
3292 | int _arg1; | |
3293 | int _arg2; | |
3294 | PyObject * _argo0 = 0; | |
3295 | char *_kwnames[] = { "self","col","width", NULL }; | |
3296 | ||
3297 | self = self; | |
3298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3299 | return NULL; | |
3300 | if (_argo0) { | |
3301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
3304 | return NULL; | |
3305 | } | |
3306 | } | |
3307 | { | |
0e2ff151 | 3308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3309 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
3310 | ||
0e2ff151 | 3311 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3312 | if (PyErr_Occurred()) return NULL; |
3313 | } _resultobj = Py_BuildValue("i",_result); | |
3314 | return _resultobj; | |
3315 | } | |
3316 | ||
3317 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) | |
3318 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3319 | PyObject * _resultobj; | |
3320 | int _result; | |
3321 | wxPyListCtrl * _arg0; | |
3322 | PyObject * _argo0 = 0; | |
3323 | char *_kwnames[] = { "self", NULL }; | |
3324 | ||
3325 | self = self; | |
3326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) | |
3327 | return NULL; | |
3328 | if (_argo0) { | |
3329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
3332 | return NULL; | |
3333 | } | |
3334 | } | |
3335 | { | |
0e2ff151 | 3336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3337 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
3338 | ||
0e2ff151 | 3339 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3340 | if (PyErr_Occurred()) return NULL; |
3341 | } _resultobj = Py_BuildValue("i",_result); | |
3342 | return _resultobj; | |
3343 | } | |
3344 | ||
3345 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { | |
3346 | wxListItem* info = new wxListItem; | |
3347 | info->m_itemId = itemId; | |
3348 | info->m_col = col; | |
3349 | info->m_mask = 0xFFFF; | |
3350 | self->GetItem(*info); | |
3351 | return info; | |
3352 | } | |
3353 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3354 | PyObject * _resultobj; | |
3355 | wxListItem * _result; | |
3356 | wxPyListCtrl * _arg0; | |
3357 | long _arg1; | |
3358 | int _arg2 = (int ) 0; | |
3359 | PyObject * _argo0 = 0; | |
3360 | char *_kwnames[] = { "self","itemId","col", NULL }; | |
3361 | ||
3362 | self = self; | |
3363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3364 | return NULL; | |
3365 | if (_argo0) { | |
3366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
3369 | return NULL; | |
3370 | } | |
3371 | } | |
3372 | { | |
0e2ff151 | 3373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3374 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
3375 | ||
0e2ff151 | 3376 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3377 | if (PyErr_Occurred()) return NULL; |
3378 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3379 | return _resultobj; | |
3380 | } | |
3381 | ||
3382 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) | |
3383 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3384 | PyObject * _resultobj; | |
3385 | bool _result; | |
3386 | wxPyListCtrl * _arg0; | |
3387 | wxListItem * _arg1; | |
3388 | PyObject * _argo0 = 0; | |
3389 | PyObject * _argo1 = 0; | |
3390 | char *_kwnames[] = { "self","info", NULL }; | |
3391 | ||
3392 | self = self; | |
3393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) | |
3394 | return NULL; | |
3395 | if (_argo0) { | |
3396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3399 | return NULL; | |
3400 | } | |
3401 | } | |
3402 | if (_argo1) { | |
3403 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3404 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
3406 | return NULL; | |
3407 | } | |
3408 | } | |
3409 | { | |
0e2ff151 | 3410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3411 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
3412 | ||
0e2ff151 | 3413 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3414 | if (PyErr_Occurred()) return NULL; |
3415 | } _resultobj = Py_BuildValue("i",_result); | |
3416 | return _resultobj; | |
3417 | } | |
3418 | ||
3419 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3420 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3421 | PyObject * _resultobj; | |
3422 | long _result; | |
3423 | wxPyListCtrl * _arg0; | |
3424 | long _arg1; | |
3425 | int _arg2; | |
3426 | wxString * _arg3; | |
3427 | int _arg4 = (int ) -1; | |
3428 | PyObject * _argo0 = 0; | |
3429 | PyObject * _obj3 = 0; | |
3430 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
3431 | ||
3432 | self = self; | |
3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
3434 | return NULL; | |
3435 | if (_argo0) { | |
3436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
3439 | return NULL; | |
3440 | } | |
3441 | } | |
3442 | { | |
3443 | #if PYTHON_API_VERSION >= 1009 | |
3444 | char* tmpPtr; int tmpSize; | |
3445 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
3446 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3447 | return NULL; | |
3448 | } | |
3449 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3450 | return NULL; | |
3451 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3452 | #else | |
3453 | if (!PyString_Check(_obj3)) { | |
3454 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3455 | return NULL; | |
3456 | } | |
3457 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
3458 | #endif | |
3459 | } | |
3460 | { | |
0e2ff151 | 3461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3462 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
3463 | ||
0e2ff151 | 3464 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3465 | if (PyErr_Occurred()) return NULL; |
3466 | } _resultobj = Py_BuildValue("l",_result); | |
3467 | { | |
3468 | if (_obj3) | |
3469 | delete _arg3; | |
3470 | } | |
3471 | return _resultobj; | |
3472 | } | |
3473 | ||
3474 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) | |
3475 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3476 | PyObject * _resultobj; | |
3477 | int _result; | |
3478 | wxPyListCtrl * _arg0; | |
3479 | long _arg1; | |
3480 | long _arg2; | |
3481 | PyObject * _argo0 = 0; | |
3482 | char *_kwnames[] = { "self","item","stateMask", NULL }; | |
3483 | ||
3484 | self = self; | |
3485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3486 | return NULL; | |
3487 | if (_argo0) { | |
3488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
3491 | return NULL; | |
3492 | } | |
3493 | } | |
3494 | { | |
0e2ff151 | 3495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3496 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
3497 | ||
0e2ff151 | 3498 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3499 | if (PyErr_Occurred()) return NULL; |
3500 | } _resultobj = Py_BuildValue("i",_result); | |
3501 | return _resultobj; | |
3502 | } | |
3503 | ||
3504 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) | |
3505 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3506 | PyObject * _resultobj; | |
3507 | bool _result; | |
3508 | wxPyListCtrl * _arg0; | |
3509 | long _arg1; | |
3510 | long _arg2; | |
3511 | long _arg3; | |
3512 | PyObject * _argo0 = 0; | |
3513 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; | |
3514 | ||
3515 | self = self; | |
3516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3517 | return NULL; | |
3518 | if (_argo0) { | |
3519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
3522 | return NULL; | |
3523 | } | |
3524 | } | |
3525 | { | |
0e2ff151 | 3526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3527 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
3528 | ||
0e2ff151 | 3529 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3530 | if (PyErr_Occurred()) return NULL; |
3531 | } _resultobj = Py_BuildValue("i",_result); | |
3532 | return _resultobj; | |
3533 | } | |
3534 | ||
3535 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
3536 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3537 | PyObject * _resultobj; | |
3538 | bool _result; | |
3539 | wxPyListCtrl * _arg0; | |
3540 | long _arg1; | |
3541 | int _arg2; | |
3542 | int _arg3; | |
3543 | PyObject * _argo0 = 0; | |
3544 | char *_kwnames[] = { "self","item","image","selImage", NULL }; | |
3545 | ||
3546 | self = self; | |
3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3548 | return NULL; | |
3549 | if (_argo0) { | |
3550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
3553 | return NULL; | |
3554 | } | |
3555 | } | |
3556 | { | |
0e2ff151 | 3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3558 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
3559 | ||
0e2ff151 | 3560 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3561 | if (PyErr_Occurred()) return NULL; |
3562 | } _resultobj = Py_BuildValue("i",_result); | |
3563 | return _resultobj; | |
3564 | } | |
3565 | ||
3566 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
3567 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3568 | PyObject * _resultobj; | |
3569 | wxString * _result; | |
3570 | wxPyListCtrl * _arg0; | |
3571 | long _arg1; | |
3572 | PyObject * _argo0 = 0; | |
3573 | char *_kwnames[] = { "self","item", NULL }; | |
3574 | ||
3575 | self = self; | |
3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) | |
3577 | return NULL; | |
3578 | if (_argo0) { | |
3579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
3582 | return NULL; | |
3583 | } | |
3584 | } | |
3585 | { | |
0e2ff151 | 3586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3587 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
3588 | ||
0e2ff151 | 3589 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3590 | if (PyErr_Occurred()) return NULL; |
3591 | }{ | |
3592 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3593 | } | |
3594 | { | |
3595 | delete _result; | |
3596 | } | |
3597 | return _resultobj; | |
3598 | } | |
3599 | ||
3600 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
3601 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3602 | PyObject * _resultobj; | |
3603 | wxPyListCtrl * _arg0; | |
3604 | long _arg1; | |
3605 | wxString * _arg2; | |
3606 | PyObject * _argo0 = 0; | |
3607 | PyObject * _obj2 = 0; | |
3608 | char *_kwnames[] = { "self","item","str", NULL }; | |
3609 | ||
3610 | self = self; | |
3611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3612 | return NULL; | |
3613 | if (_argo0) { | |
3614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
3617 | return NULL; | |
3618 | } | |
3619 | } | |
3620 | { | |
3621 | #if PYTHON_API_VERSION >= 1009 | |
3622 | char* tmpPtr; int tmpSize; | |
3623 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3624 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3625 | return NULL; | |
3626 | } | |
3627 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3628 | return NULL; | |
3629 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3630 | #else | |
3631 | if (!PyString_Check(_obj2)) { | |
3632 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3633 | return NULL; | |
3634 | } | |
3635 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3636 | #endif | |
3637 | } | |
3638 | { | |
0e2ff151 | 3639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3640 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
3641 | ||
0e2ff151 | 3642 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3643 | if (PyErr_Occurred()) return NULL; |
3644 | } Py_INCREF(Py_None); | |
3645 | _resultobj = Py_None; | |
3646 | { | |
3647 | if (_obj2) | |
3648 | delete _arg2; | |
3649 | } | |
3650 | return _resultobj; | |
3651 | } | |
3652 | ||
3653 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
3654 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3655 | PyObject * _resultobj; | |
3656 | long _result; | |
3657 | wxPyListCtrl * _arg0; | |
3658 | long _arg1; | |
3659 | PyObject * _argo0 = 0; | |
3660 | char *_kwnames[] = { "self","item", NULL }; | |
3661 | ||
3662 | self = self; | |
3663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) | |
3664 | return NULL; | |
3665 | if (_argo0) { | |
3666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
3669 | return NULL; | |
3670 | } | |
3671 | } | |
3672 | { | |
0e2ff151 | 3673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3674 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); |
3675 | ||
0e2ff151 | 3676 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3677 | if (PyErr_Occurred()) return NULL; |
3678 | } _resultobj = Py_BuildValue("l",_result); | |
3679 | return _resultobj; | |
3680 | } | |
3681 | ||
3682 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) | |
3683 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3684 | PyObject * _resultobj; | |
3685 | bool _result; | |
3686 | wxPyListCtrl * _arg0; | |
3687 | long _arg1; | |
3688 | long _arg2; | |
3689 | PyObject * _argo0 = 0; | |
3690 | char *_kwnames[] = { "self","item","data", NULL }; | |
3691 | ||
3692 | self = self; | |
3693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3694 | return NULL; | |
3695 | if (_argo0) { | |
3696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
3699 | return NULL; | |
3700 | } | |
3701 | } | |
3702 | { | |
0e2ff151 | 3703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3704 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
3705 | ||
0e2ff151 | 3706 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3707 | if (PyErr_Occurred()) return NULL; |
3708 | } _resultobj = Py_BuildValue("i",_result); | |
3709 | return _resultobj; | |
3710 | } | |
3711 | ||
3712 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { | |
3713 | wxPoint* pos = new wxPoint; | |
3714 | self->GetItemPosition(item, *pos); | |
3715 | return pos; | |
3716 | } | |
3717 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3718 | PyObject * _resultobj; | |
3719 | wxPoint * _result; | |
3720 | wxPyListCtrl * _arg0; | |
3721 | long _arg1; | |
3722 | PyObject * _argo0 = 0; | |
3723 | char *_kwnames[] = { "self","item", NULL }; | |
3724 | char _ptemp[128]; | |
3725 | ||
3726 | self = self; | |
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) | |
3728 | return NULL; | |
3729 | if (_argo0) { | |
3730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
3736 | { | |
0e2ff151 | 3737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3738 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
3739 | ||
0e2ff151 | 3740 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3741 | if (PyErr_Occurred()) return NULL; |
3742 | } if (_result) { | |
3743 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3744 | _resultobj = Py_BuildValue("s",_ptemp); | |
3745 | } else { | |
3746 | Py_INCREF(Py_None); | |
3747 | _resultobj = Py_None; | |
3748 | } | |
3749 | return _resultobj; | |
3750 | } | |
3751 | ||
3752 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { | |
3753 | wxRect* rect= new wxRect; | |
3754 | self->GetItemRect(item, *rect, code); | |
3755 | return rect; | |
3756 | } | |
3757 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3758 | PyObject * _resultobj; | |
3759 | wxRect * _result; | |
3760 | wxPyListCtrl * _arg0; | |
3761 | long _arg1; | |
3762 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); | |
3763 | PyObject * _argo0 = 0; | |
3764 | char *_kwnames[] = { "self","item","code", NULL }; | |
3765 | char _ptemp[128]; | |
3766 | ||
3767 | self = self; | |
3768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3769 | return NULL; | |
3770 | if (_argo0) { | |
3771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
3774 | return NULL; | |
3775 | } | |
3776 | } | |
3777 | { | |
0e2ff151 | 3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3779 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
3780 | ||
0e2ff151 | 3781 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3782 | if (PyErr_Occurred()) return NULL; |
3783 | } if (_result) { | |
3784 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3785 | _resultobj = Py_BuildValue("s",_ptemp); | |
3786 | } else { | |
3787 | Py_INCREF(Py_None); | |
3788 | _resultobj = Py_None; | |
3789 | } | |
3790 | return _resultobj; | |
3791 | } | |
3792 | ||
3793 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) | |
3794 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3795 | PyObject * _resultobj; | |
3796 | bool _result; | |
3797 | wxPyListCtrl * _arg0; | |
3798 | long _arg1; | |
3799 | wxPoint * _arg2; | |
3800 | PyObject * _argo0 = 0; | |
3801 | wxPoint temp; | |
3802 | PyObject * _obj2 = 0; | |
3803 | char *_kwnames[] = { "self","item","pos", NULL }; | |
3804 | ||
3805 | self = self; | |
3806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3807 | return NULL; | |
3808 | if (_argo0) { | |
3809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
3812 | return NULL; | |
3813 | } | |
3814 | } | |
3815 | { | |
3816 | _arg2 = &temp; | |
3817 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3818 | return NULL; | |
3819 | } | |
3820 | { | |
0e2ff151 | 3821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3822 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
3823 | ||
0e2ff151 | 3824 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3825 | if (PyErr_Occurred()) return NULL; |
3826 | } _resultobj = Py_BuildValue("i",_result); | |
3827 | return _resultobj; | |
3828 | } | |
3829 | ||
3830 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
3831 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3832 | PyObject * _resultobj; | |
3833 | int _result; | |
3834 | wxPyListCtrl * _arg0; | |
3835 | PyObject * _argo0 = 0; | |
3836 | char *_kwnames[] = { "self", NULL }; | |
3837 | ||
3838 | self = self; | |
3839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) | |
3840 | return NULL; | |
3841 | if (_argo0) { | |
3842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
3845 | return NULL; | |
3846 | } | |
3847 | } | |
3848 | { | |
0e2ff151 | 3849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3850 | _result = (int )wxListCtrl_GetItemCount(_arg0); |
3851 | ||
0e2ff151 | 3852 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3853 | if (PyErr_Occurred()) return NULL; |
3854 | } _resultobj = Py_BuildValue("i",_result); | |
3855 | return _resultobj; | |
3856 | } | |
3857 | ||
3858 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) | |
3859 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3860 | PyObject * _resultobj; | |
3861 | int _result; | |
3862 | wxPyListCtrl * _arg0; | |
3863 | PyObject * _argo0 = 0; | |
3864 | char *_kwnames[] = { "self", NULL }; | |
3865 | ||
3866 | self = self; | |
3867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3868 | return NULL; | |
3869 | if (_argo0) { | |
3870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3873 | return NULL; | |
3874 | } | |
3875 | } | |
3876 | { | |
0e2ff151 | 3877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3878 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
3879 | ||
0e2ff151 | 3880 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3881 | if (PyErr_Occurred()) return NULL; |
3882 | } _resultobj = Py_BuildValue("i",_result); | |
3883 | return _resultobj; | |
3884 | } | |
3885 | ||
3886 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) | |
3887 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3888 | PyObject * _resultobj; | |
3889 | int _result; | |
3890 | wxPyListCtrl * _arg0; | |
3891 | bool _arg1; | |
3892 | PyObject * _argo0 = 0; | |
3893 | int tempbool1; | |
3894 | char *_kwnames[] = { "self","isSmall", NULL }; | |
3895 | ||
3896 | self = self; | |
3897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) | |
3898 | return NULL; | |
3899 | if (_argo0) { | |
3900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
3903 | return NULL; | |
3904 | } | |
3905 | } | |
3906 | _arg1 = (bool ) tempbool1; | |
3907 | { | |
0e2ff151 | 3908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3909 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
3910 | ||
0e2ff151 | 3911 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3912 | if (PyErr_Occurred()) return NULL; |
3913 | } _resultobj = Py_BuildValue("i",_result); | |
3914 | return _resultobj; | |
3915 | } | |
3916 | ||
3917 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) | |
3918 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3919 | PyObject * _resultobj; | |
3920 | int _result; | |
3921 | wxPyListCtrl * _arg0; | |
3922 | PyObject * _argo0 = 0; | |
3923 | char *_kwnames[] = { "self", NULL }; | |
3924 | ||
3925 | self = self; | |
3926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) | |
3927 | return NULL; | |
3928 | if (_argo0) { | |
3929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
3932 | return NULL; | |
3933 | } | |
3934 | } | |
3935 | { | |
0e2ff151 | 3936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3937 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
3938 | ||
0e2ff151 | 3939 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3940 | if (PyErr_Occurred()) return NULL; |
3941 | } _resultobj = Py_BuildValue("i",_result); | |
3942 | return _resultobj; | |
3943 | } | |
3944 | ||
3945 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
3946 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3947 | PyObject * _resultobj; | |
3948 | wxColour * _result; | |
3949 | wxPyListCtrl * _arg0; | |
3950 | PyObject * _argo0 = 0; | |
3951 | char *_kwnames[] = { "self", NULL }; | |
3952 | char _ptemp[128]; | |
3953 | ||
3954 | self = self; | |
3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) | |
3956 | return NULL; | |
3957 | if (_argo0) { | |
3958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
3961 | return NULL; | |
3962 | } | |
3963 | } | |
3964 | { | |
0e2ff151 | 3965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3966 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
3967 | ||
0e2ff151 | 3968 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3969 | if (PyErr_Occurred()) return NULL; |
3970 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
3971 | _resultobj = Py_BuildValue("s",_ptemp); | |
3972 | return _resultobj; | |
3973 | } | |
3974 | ||
3975 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
3976 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3977 | PyObject * _resultobj; | |
3978 | wxPyListCtrl * _arg0; | |
3979 | wxColour * _arg1; | |
3980 | PyObject * _argo0 = 0; | |
3981 | wxColour temp; | |
3982 | PyObject * _obj1 = 0; | |
3983 | char *_kwnames[] = { "self","col", NULL }; | |
3984 | ||
3985 | self = self; | |
3986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
3987 | return NULL; | |
3988 | if (_argo0) { | |
3989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
3992 | return NULL; | |
3993 | } | |
3994 | } | |
3995 | { | |
3996 | _arg1 = &temp; | |
3997 | if (! wxColour_helper(_obj1, &_arg1)) | |
3998 | return NULL; | |
3999 | } | |
4000 | { | |
0e2ff151 | 4001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4002 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
4003 | ||
0e2ff151 | 4004 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4005 | if (PyErr_Occurred()) return NULL; |
4006 | } Py_INCREF(Py_None); | |
4007 | _resultobj = Py_None; | |
4008 | return _resultobj; | |
4009 | } | |
4010 | ||
4011 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) | |
4012 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4013 | PyObject * _resultobj; | |
4014 | long _result; | |
4015 | wxPyListCtrl * _arg0; | |
4016 | PyObject * _argo0 = 0; | |
4017 | char *_kwnames[] = { "self", NULL }; | |
4018 | ||
4019 | self = self; | |
4020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) | |
4021 | return NULL; | |
4022 | if (_argo0) { | |
4023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
4026 | return NULL; | |
4027 | } | |
4028 | } | |
4029 | { | |
0e2ff151 | 4030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4031 | _result = (long )wxListCtrl_GetTopItem(_arg0); |
4032 | ||
0e2ff151 | 4033 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4034 | if (PyErr_Occurred()) return NULL; |
4035 | } _resultobj = Py_BuildValue("l",_result); | |
4036 | return _resultobj; | |
4037 | } | |
4038 | ||
4039 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) | |
4040 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4041 | PyObject * _resultobj; | |
4042 | wxPyListCtrl * _arg0; | |
4043 | long _arg1; | |
4044 | bool _arg2 = (bool ) TRUE; | |
4045 | PyObject * _argo0 = 0; | |
4046 | int tempbool2 = (int) TRUE; | |
4047 | char *_kwnames[] = { "self","style","add", NULL }; | |
4048 | ||
4049 | self = self; | |
4050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
4051 | return NULL; | |
4052 | if (_argo0) { | |
4053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
4056 | return NULL; | |
4057 | } | |
4058 | } | |
4059 | _arg2 = (bool ) tempbool2; | |
4060 | { | |
0e2ff151 | 4061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4062 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
4063 | ||
0e2ff151 | 4064 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4065 | if (PyErr_Occurred()) return NULL; |
4066 | } Py_INCREF(Py_None); | |
4067 | _resultobj = Py_None; | |
4068 | return _resultobj; | |
4069 | } | |
4070 | ||
4071 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
4072 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4073 | PyObject * _resultobj; | |
4074 | wxPyListCtrl * _arg0; | |
4075 | long _arg1; | |
4076 | PyObject * _argo0 = 0; | |
4077 | char *_kwnames[] = { "self","style", NULL }; | |
4078 | ||
4079 | self = self; | |
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
4081 | return NULL; | |
4082 | if (_argo0) { | |
4083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
4086 | return NULL; | |
4087 | } | |
4088 | } | |
4089 | { | |
0e2ff151 | 4090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4091 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
4092 | ||
0e2ff151 | 4093 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4094 | if (PyErr_Occurred()) return NULL; |
4095 | } Py_INCREF(Py_None); | |
4096 | _resultobj = Py_None; | |
4097 | return _resultobj; | |
4098 | } | |
4099 | ||
4100 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
4101 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4102 | PyObject * _resultobj; | |
4103 | long _result; | |
4104 | wxPyListCtrl * _arg0; | |
4105 | long _arg1; | |
4106 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
4107 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
4108 | PyObject * _argo0 = 0; | |
4109 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
4110 | ||
4111 | self = self; | |
4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4113 | return NULL; | |
4114 | if (_argo0) { | |
4115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
4118 | return NULL; | |
4119 | } | |
4120 | } | |
4121 | { | |
0e2ff151 | 4122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4123 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
4124 | ||
0e2ff151 | 4125 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4126 | if (PyErr_Occurred()) return NULL; |
4127 | } _resultobj = Py_BuildValue("l",_result); | |
4128 | return _resultobj; | |
4129 | } | |
4130 | ||
4131 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4132 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4133 | PyObject * _resultobj; | |
4134 | wxImageList * _result; | |
4135 | wxPyListCtrl * _arg0; | |
4136 | int _arg1; | |
4137 | PyObject * _argo0 = 0; | |
4138 | char *_kwnames[] = { "self","which", NULL }; | |
4139 | ||
4140 | self = self; | |
4141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
4142 | return NULL; | |
4143 | if (_argo0) { | |
4144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
4147 | return NULL; | |
4148 | } | |
4149 | } | |
4150 | { | |
0e2ff151 | 4151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4152 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
4153 | ||
0e2ff151 | 4154 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4155 | if (PyErr_Occurred()) return NULL; |
4156 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4157 | return _resultobj; | |
4158 | } | |
4159 | ||
4160 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) | |
4161 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4162 | PyObject * _resultobj; | |
4163 | wxPyListCtrl * _arg0; | |
4164 | wxImageList * _arg1; | |
4165 | int _arg2; | |
4166 | PyObject * _argo0 = 0; | |
4167 | PyObject * _argo1 = 0; | |
4168 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
4169 | ||
4170 | self = self; | |
4171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4172 | return NULL; | |
4173 | if (_argo0) { | |
4174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
4177 | return NULL; | |
4178 | } | |
4179 | } | |
4180 | if (_argo1) { | |
4181 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4182 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
4184 | return NULL; | |
4185 | } | |
4186 | } | |
4187 | { | |
0e2ff151 | 4188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4189 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
4190 | ||
0e2ff151 | 4191 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4192 | if (PyErr_Occurred()) return NULL; |
4193 | } Py_INCREF(Py_None); | |
4194 | _resultobj = Py_None; | |
4195 | return _resultobj; | |
4196 | } | |
4197 | ||
4198 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) | |
4199 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4200 | PyObject * _resultobj; | |
4201 | wxPyListCtrl * _arg0; | |
4202 | wxImageList * _arg1; | |
4203 | int _arg2; | |
4204 | PyObject * _argo0 = 0; | |
4205 | PyObject * _argo1 = 0; | |
4206 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
4207 | ||
4208 | self = self; | |
4209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4210 | return NULL; | |
4211 | if (_argo0) { | |
4212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
4215 | return NULL; | |
4216 | } | |
4217 | } | |
4218 | if (_argo1) { | |
4219 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4220 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
4222 | return NULL; | |
4223 | } | |
4224 | } | |
4225 | { | |
0e2ff151 | 4226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4227 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
4228 | ||
0e2ff151 | 4229 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4230 | if (PyErr_Occurred()) return NULL; |
4231 | } Py_INCREF(Py_None); | |
4232 | _resultobj = Py_None; | |
4233 | return _resultobj; | |
4234 | } | |
4235 | ||
4236 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4237 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4238 | PyObject * _resultobj; | |
4239 | bool _result; | |
4240 | wxPyListCtrl * _arg0; | |
4241 | PyObject * _argo0 = 0; | |
4242 | char *_kwnames[] = { "self", NULL }; | |
4243 | ||
4244 | self = self; | |
4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
4246 | return NULL; | |
4247 | if (_argo0) { | |
4248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
4251 | return NULL; | |
4252 | } | |
4253 | } | |
4254 | { | |
0e2ff151 | 4255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4256 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
4257 | ||
0e2ff151 | 4258 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4259 | if (PyErr_Occurred()) return NULL; |
4260 | } _resultobj = Py_BuildValue("i",_result); | |
4261 | return _resultobj; | |
4262 | } | |
4263 | ||
4264 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4265 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4266 | PyObject * _resultobj; | |
4267 | wxPyListCtrl * _arg0; | |
4268 | long _arg1; | |
4269 | PyObject * _argo0 = 0; | |
4270 | char *_kwnames[] = { "self","item", NULL }; | |
4271 | ||
4272 | self = self; | |
4273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4274 | return NULL; | |
4275 | if (_argo0) { | |
4276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4279 | return NULL; | |
4280 | } | |
4281 | } | |
4282 | { | |
0e2ff151 | 4283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4284 | wxListCtrl_RefreshItem(_arg0,_arg1); |
4285 | ||
0e2ff151 | 4286 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4287 | if (PyErr_Occurred()) return NULL; |
4288 | } Py_INCREF(Py_None); | |
4289 | _resultobj = Py_None; | |
4290 | return _resultobj; | |
4291 | } | |
4292 | ||
4293 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) | |
4294 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4295 | PyObject * _resultobj; | |
4296 | wxPyListCtrl * _arg0; | |
4297 | long _arg1; | |
4298 | long _arg2; | |
4299 | PyObject * _argo0 = 0; | |
4300 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; | |
4301 | ||
4302 | self = self; | |
4303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4304 | return NULL; | |
4305 | if (_argo0) { | |
4306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
4309 | return NULL; | |
4310 | } | |
4311 | } | |
4312 | { | |
0e2ff151 | 4313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4314 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
4315 | ||
0e2ff151 | 4316 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4317 | if (PyErr_Occurred()) return NULL; |
4318 | } Py_INCREF(Py_None); | |
4319 | _resultobj = Py_None; | |
4320 | return _resultobj; | |
4321 | } | |
4322 | ||
4323 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4324 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4325 | PyObject * _resultobj; | |
4326 | bool _result; | |
4327 | wxPyListCtrl * _arg0; | |
4328 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4329 | PyObject * _argo0 = 0; | |
4330 | char *_kwnames[] = { "self","flag", NULL }; | |
4331 | ||
4332 | self = self; | |
4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4334 | return NULL; | |
4335 | if (_argo0) { | |
4336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
4339 | return NULL; | |
4340 | } | |
4341 | } | |
4342 | { | |
0e2ff151 | 4343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4344 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
4345 | ||
0e2ff151 | 4346 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4347 | if (PyErr_Occurred()) return NULL; |
4348 | } _resultobj = Py_BuildValue("i",_result); | |
4349 | return _resultobj; | |
4350 | } | |
4351 | ||
4352 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) | |
4353 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4354 | PyObject * _resultobj; | |
4355 | bool _result; | |
4356 | wxPyListCtrl * _arg0; | |
4357 | long _arg1; | |
4358 | PyObject * _argo0 = 0; | |
4359 | char *_kwnames[] = { "self","item", NULL }; | |
4360 | ||
4361 | self = self; | |
4362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) | |
4363 | return NULL; | |
4364 | if (_argo0) { | |
4365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
4368 | return NULL; | |
4369 | } | |
4370 | } | |
4371 | { | |
0e2ff151 | 4372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4373 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); |
4374 | ||
0e2ff151 | 4375 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4376 | if (PyErr_Occurred()) return NULL; |
4377 | } _resultobj = Py_BuildValue("i",_result); | |
4378 | return _resultobj; | |
4379 | } | |
4380 | ||
4381 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4382 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4383 | PyObject * _resultobj; | |
4384 | bool _result; | |
4385 | wxPyListCtrl * _arg0; | |
4386 | PyObject * _argo0 = 0; | |
4387 | char *_kwnames[] = { "self", NULL }; | |
4388 | ||
4389 | self = self; | |
4390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4391 | return NULL; | |
4392 | if (_argo0) { | |
4393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
4396 | return NULL; | |
4397 | } | |
4398 | } | |
4399 | { | |
0e2ff151 | 4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4401 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
4402 | ||
0e2ff151 | 4403 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4404 | if (PyErr_Occurred()) return NULL; |
4405 | } _resultobj = Py_BuildValue("i",_result); | |
4406 | return _resultobj; | |
4407 | } | |
4408 | ||
4409 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4410 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4411 | PyObject * _resultobj; | |
4412 | bool _result; | |
4413 | wxPyListCtrl * _arg0; | |
4414 | int _arg1; | |
4415 | PyObject * _argo0 = 0; | |
4416 | char *_kwnames[] = { "self","col", NULL }; | |
4417 | ||
4418 | self = self; | |
4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
4420 | return NULL; | |
4421 | if (_argo0) { | |
4422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4425 | return NULL; | |
4426 | } | |
4427 | } | |
4428 | { | |
0e2ff151 | 4429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4430 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
4431 | ||
0e2ff151 | 4432 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4433 | if (PyErr_Occurred()) return NULL; |
4434 | } _resultobj = Py_BuildValue("i",_result); | |
4435 | return _resultobj; | |
4436 | } | |
4437 | ||
4438 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4439 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4440 | PyObject * _resultobj; | |
4441 | bool _result; | |
4442 | wxPyListCtrl * _arg0; | |
4443 | PyObject * _argo0 = 0; | |
4444 | char *_kwnames[] = { "self", NULL }; | |
4445 | ||
4446 | self = self; | |
4447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4448 | return NULL; | |
4449 | if (_argo0) { | |
4450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4453 | return NULL; | |
4454 | } | |
4455 | } | |
4456 | { | |
0e2ff151 | 4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4458 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); |
4459 | ||
0e2ff151 | 4460 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4461 | if (PyErr_Occurred()) return NULL; |
4462 | } _resultobj = Py_BuildValue("i",_result); | |
4463 | return _resultobj; | |
4464 | } | |
4465 | ||
4466 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4467 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4468 | PyObject * _resultobj; | |
4469 | wxPyListCtrl * _arg0; | |
4470 | PyObject * _argo0 = 0; | |
4471 | char *_kwnames[] = { "self", NULL }; | |
4472 | ||
4473 | self = self; | |
4474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
4475 | return NULL; | |
4476 | if (_argo0) { | |
4477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4480 | return NULL; | |
4481 | } | |
4482 | } | |
4483 | { | |
0e2ff151 | 4484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4485 | wxListCtrl_ClearAll(_arg0); |
4486 | ||
0e2ff151 | 4487 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4488 | if (PyErr_Occurred()) return NULL; |
4489 | } Py_INCREF(Py_None); | |
4490 | _resultobj = Py_None; | |
4491 | return _resultobj; | |
4492 | } | |
4493 | ||
4494 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
4495 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4496 | PyObject * _resultobj; | |
4497 | bool _result; | |
4498 | wxPyListCtrl * _arg0; | |
4499 | long _arg1; | |
4500 | PyObject * _argo0 = 0; | |
4501 | char *_kwnames[] = { "self","item", NULL }; | |
4502 | ||
4503 | self = self; | |
4504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
4505 | return NULL; | |
4506 | if (_argo0) { | |
4507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
4510 | return NULL; | |
4511 | } | |
4512 | } | |
4513 | { | |
0e2ff151 | 4514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4515 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
4516 | ||
0e2ff151 | 4517 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4518 | if (PyErr_Occurred()) return NULL; |
4519 | } _resultobj = Py_BuildValue("i",_result); | |
4520 | return _resultobj; | |
4521 | } | |
4522 | ||
4523 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
4524 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4525 | PyObject * _resultobj; | |
4526 | long _result; | |
4527 | wxPyListCtrl * _arg0; | |
4528 | long _arg1; | |
4529 | wxString * _arg2; | |
4530 | bool _arg3 = (bool ) FALSE; | |
4531 | PyObject * _argo0 = 0; | |
4532 | PyObject * _obj2 = 0; | |
4533 | int tempbool3 = (int) FALSE; | |
4534 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
4535 | ||
4536 | self = self; | |
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) | |
4538 | return NULL; | |
4539 | if (_argo0) { | |
4540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
4543 | return NULL; | |
4544 | } | |
4545 | } | |
4546 | { | |
4547 | #if PYTHON_API_VERSION >= 1009 | |
4548 | char* tmpPtr; int tmpSize; | |
4549 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4550 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4551 | return NULL; | |
4552 | } | |
4553 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4554 | return NULL; | |
4555 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4556 | #else | |
4557 | if (!PyString_Check(_obj2)) { | |
4558 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4559 | return NULL; | |
4560 | } | |
4561 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4562 | #endif | |
4563 | } | |
4564 | _arg3 = (bool ) tempbool3; | |
4565 | { | |
0e2ff151 | 4566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4567 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
4568 | ||
0e2ff151 | 4569 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4570 | if (PyErr_Occurred()) return NULL; |
4571 | } _resultobj = Py_BuildValue("l",_result); | |
4572 | { | |
4573 | if (_obj2) | |
4574 | delete _arg2; | |
4575 | } | |
4576 | return _resultobj; | |
4577 | } | |
4578 | ||
4579 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) | |
4580 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4581 | PyObject * _resultobj; | |
4582 | long _result; | |
4583 | wxPyListCtrl * _arg0; | |
4584 | long _arg1; | |
4585 | long _arg2; | |
4586 | PyObject * _argo0 = 0; | |
4587 | char *_kwnames[] = { "self","start","data", NULL }; | |
4588 | ||
4589 | self = self; | |
4590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4591 | return NULL; | |
4592 | if (_argo0) { | |
4593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
4596 | return NULL; | |
4597 | } | |
4598 | } | |
4599 | { | |
0e2ff151 | 4600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4601 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
4602 | ||
0e2ff151 | 4603 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4604 | if (PyErr_Occurred()) return NULL; |
4605 | } _resultobj = Py_BuildValue("l",_result); | |
4606 | return _resultobj; | |
4607 | } | |
4608 | ||
4609 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
4610 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4611 | PyObject * _resultobj; | |
4612 | long _result; | |
4613 | wxPyListCtrl * _arg0; | |
4614 | long _arg1; | |
4615 | wxPoint * _arg2; | |
4616 | int _arg3; | |
4617 | PyObject * _argo0 = 0; | |
4618 | wxPoint temp; | |
4619 | PyObject * _obj2 = 0; | |
4620 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
4621 | ||
4622 | self = self; | |
4623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4624 | return NULL; | |
4625 | if (_argo0) { | |
4626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
4629 | return NULL; | |
4630 | } | |
4631 | } | |
4632 | { | |
4633 | _arg2 = &temp; | |
4634 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4635 | return NULL; | |
4636 | } | |
4637 | { | |
0e2ff151 | 4638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4639 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
4640 | ||
0e2ff151 | 4641 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4642 | if (PyErr_Occurred()) return NULL; |
4643 | } _resultobj = Py_BuildValue("l",_result); | |
4644 | return _resultobj; | |
4645 | } | |
4646 | ||
4647 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
4648 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4649 | PyObject * _resultobj; | |
4650 | long _result; | |
4651 | wxPyListCtrl * _arg0; | |
4652 | wxPoint * _arg1; | |
4653 | int * _arg2; | |
4654 | int temp; | |
4655 | PyObject * _argo0 = 0; | |
4656 | wxPoint temp0; | |
4657 | PyObject * _obj1 = 0; | |
4658 | char *_kwnames[] = { "self","point", NULL }; | |
4659 | ||
4660 | self = self; | |
4661 | { | |
4662 | _arg2 = &temp; | |
4663 | } | |
4664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4665 | return NULL; | |
4666 | if (_argo0) { | |
4667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
4670 | return NULL; | |
4671 | } | |
4672 | } | |
4673 | { | |
4674 | _arg1 = &temp0; | |
4675 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4676 | return NULL; | |
4677 | } | |
4678 | { | |
0e2ff151 | 4679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4680 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
4681 | ||
0e2ff151 | 4682 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4683 | if (PyErr_Occurred()) return NULL; |
4684 | } _resultobj = Py_BuildValue("l",_result); | |
4685 | { | |
4686 | PyObject *o; | |
4687 | o = PyInt_FromLong((long) (*_arg2)); | |
4688 | _resultobj = t_output_helper(_resultobj, o); | |
4689 | } | |
4690 | return _resultobj; | |
4691 | } | |
4692 | ||
4693 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4694 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject * _resultobj; | |
4696 | long _result; | |
4697 | wxPyListCtrl * _arg0; | |
4698 | wxListItem * _arg1; | |
4699 | PyObject * _argo0 = 0; | |
4700 | PyObject * _argo1 = 0; | |
4701 | char *_kwnames[] = { "self","info", NULL }; | |
4702 | ||
4703 | self = self; | |
4704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4705 | return NULL; | |
4706 | if (_argo0) { | |
4707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
4710 | return NULL; | |
4711 | } | |
4712 | } | |
4713 | if (_argo1) { | |
4714 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4715 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
4716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); | |
4717 | return NULL; | |
4718 | } | |
4719 | } | |
4720 | { | |
0e2ff151 | 4721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4722 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
4723 | ||
0e2ff151 | 4724 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4725 | if (PyErr_Occurred()) return NULL; |
4726 | } _resultobj = Py_BuildValue("l",_result); | |
4727 | return _resultobj; | |
4728 | } | |
4729 | ||
4730 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4731 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4732 | PyObject * _resultobj; | |
4733 | long _result; | |
4734 | wxPyListCtrl * _arg0; | |
4735 | long _arg1; | |
4736 | wxString * _arg2; | |
4737 | PyObject * _argo0 = 0; | |
4738 | PyObject * _obj2 = 0; | |
4739 | char *_kwnames[] = { "self","index","label", NULL }; | |
4740 | ||
4741 | self = self; | |
4742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4743 | return NULL; | |
4744 | if (_argo0) { | |
4745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
4748 | return NULL; | |
4749 | } | |
4750 | } | |
4751 | { | |
4752 | #if PYTHON_API_VERSION >= 1009 | |
4753 | char* tmpPtr; int tmpSize; | |
4754 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4755 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4756 | return NULL; | |
4757 | } | |
4758 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4759 | return NULL; | |
4760 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4761 | #else | |
4762 | if (!PyString_Check(_obj2)) { | |
4763 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4764 | return NULL; | |
4765 | } | |
4766 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4767 | #endif | |
4768 | } | |
4769 | { | |
0e2ff151 | 4770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4771 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
4772 | ||
0e2ff151 | 4773 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4774 | if (PyErr_Occurred()) return NULL; |
4775 | } _resultobj = Py_BuildValue("l",_result); | |
4776 | { | |
4777 | if (_obj2) | |
4778 | delete _arg2; | |
4779 | } | |
4780 | return _resultobj; | |
4781 | } | |
4782 | ||
4783 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4784 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4785 | PyObject * _resultobj; | |
4786 | long _result; | |
4787 | wxPyListCtrl * _arg0; | |
4788 | long _arg1; | |
4789 | int _arg2; | |
4790 | PyObject * _argo0 = 0; | |
4791 | char *_kwnames[] = { "self","index","imageIndex", NULL }; | |
4792 | ||
4793 | self = self; | |
4794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4795 | return NULL; | |
4796 | if (_argo0) { | |
4797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
4800 | return NULL; | |
4801 | } | |
4802 | } | |
4803 | { | |
0e2ff151 | 4804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4805 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
4806 | ||
0e2ff151 | 4807 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4808 | if (PyErr_Occurred()) return NULL; |
4809 | } _resultobj = Py_BuildValue("l",_result); | |
4810 | return _resultobj; | |
4811 | } | |
4812 | ||
4813 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) | |
4814 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4815 | PyObject * _resultobj; | |
4816 | long _result; | |
4817 | wxPyListCtrl * _arg0; | |
4818 | long _arg1; | |
4819 | wxString * _arg2; | |
4820 | int _arg3; | |
4821 | PyObject * _argo0 = 0; | |
4822 | PyObject * _obj2 = 0; | |
4823 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; | |
4824 | ||
4825 | self = self; | |
4826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4827 | return NULL; | |
4828 | if (_argo0) { | |
4829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
4832 | return NULL; | |
4833 | } | |
4834 | } | |
4835 | { | |
4836 | #if PYTHON_API_VERSION >= 1009 | |
4837 | char* tmpPtr; int tmpSize; | |
4838 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4839 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4840 | return NULL; | |
4841 | } | |
4842 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4843 | return NULL; | |
4844 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4845 | #else | |
4846 | if (!PyString_Check(_obj2)) { | |
4847 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4848 | return NULL; | |
4849 | } | |
4850 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4851 | #endif | |
4852 | } | |
4853 | { | |
0e2ff151 | 4854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4855 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
4856 | ||
0e2ff151 | 4857 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4858 | if (PyErr_Occurred()) return NULL; |
4859 | } _resultobj = Py_BuildValue("l",_result); | |
4860 | { | |
4861 | if (_obj2) | |
4862 | delete _arg2; | |
4863 | } | |
4864 | return _resultobj; | |
4865 | } | |
4866 | ||
4867 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) | |
4868 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4869 | PyObject * _resultobj; | |
4870 | long _result; | |
4871 | wxPyListCtrl * _arg0; | |
4872 | long _arg1; | |
4873 | wxListItem * _arg2; | |
4874 | PyObject * _argo0 = 0; | |
4875 | PyObject * _argo2 = 0; | |
4876 | char *_kwnames[] = { "self","col","info", NULL }; | |
4877 | ||
4878 | self = self; | |
4879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) | |
4880 | return NULL; | |
4881 | if (_argo0) { | |
4882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4885 | return NULL; | |
4886 | } | |
4887 | } | |
4888 | if (_argo2) { | |
4889 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4890 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
4892 | return NULL; | |
4893 | } | |
4894 | } | |
4895 | { | |
0e2ff151 | 4896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4897 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
4898 | ||
0e2ff151 | 4899 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4900 | if (PyErr_Occurred()) return NULL; |
4901 | } _resultobj = Py_BuildValue("l",_result); | |
4902 | return _resultobj; | |
4903 | } | |
4904 | ||
4905 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4906 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4907 | PyObject * _resultobj; | |
4908 | long _result; | |
4909 | wxPyListCtrl * _arg0; | |
4910 | long _arg1; | |
4911 | wxString * _arg2; | |
4912 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); | |
4913 | int _arg4 = (int ) -1; | |
4914 | PyObject * _argo0 = 0; | |
4915 | PyObject * _obj2 = 0; | |
4916 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; | |
4917 | ||
4918 | self = self; | |
4919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) | |
4920 | return NULL; | |
4921 | if (_argo0) { | |
4922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
4925 | return NULL; | |
4926 | } | |
4927 | } | |
4928 | { | |
4929 | #if PYTHON_API_VERSION >= 1009 | |
4930 | char* tmpPtr; int tmpSize; | |
4931 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4932 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4933 | return NULL; | |
4934 | } | |
4935 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4936 | return NULL; | |
4937 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4938 | #else | |
4939 | if (!PyString_Check(_obj2)) { | |
4940 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4941 | return NULL; | |
4942 | } | |
4943 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4944 | #endif | |
4945 | } | |
4946 | { | |
0e2ff151 | 4947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4948 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
4949 | ||
0e2ff151 | 4950 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4951 | if (PyErr_Occurred()) return NULL; |
4952 | } _resultobj = Py_BuildValue("l",_result); | |
4953 | { | |
4954 | if (_obj2) | |
4955 | delete _arg2; | |
4956 | } | |
4957 | return _resultobj; | |
4958 | } | |
4959 | ||
4960 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) | |
4961 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4962 | PyObject * _resultobj; | |
4963 | wxPyListCtrl * _arg0; | |
4964 | long _arg1; | |
4965 | PyObject * _argo0 = 0; | |
4966 | char *_kwnames[] = { "self","count", NULL }; | |
4967 | ||
4968 | self = self; | |
4969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) | |
4970 | return NULL; | |
4971 | if (_argo0) { | |
4972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
4975 | return NULL; | |
4976 | } | |
4977 | } | |
4978 | { | |
0e2ff151 | 4979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4980 | wxListCtrl_SetItemCount(_arg0,_arg1); |
4981 | ||
0e2ff151 | 4982 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4983 | if (PyErr_Occurred()) return NULL; |
4984 | } Py_INCREF(Py_None); | |
4985 | _resultobj = Py_None; | |
4986 | return _resultobj; | |
4987 | } | |
4988 | ||
4989 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) | |
4990 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4991 | PyObject * _resultobj; | |
4992 | bool _result; | |
4993 | wxPyListCtrl * _arg0; | |
4994 | int _arg1; | |
4995 | int _arg2; | |
4996 | PyObject * _argo0 = 0; | |
4997 | char *_kwnames[] = { "self","dx","dy", NULL }; | |
4998 | ||
4999 | self = self; | |
5000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5001 | return NULL; | |
5002 | if (_argo0) { | |
5003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
5006 | return NULL; | |
5007 | } | |
5008 | } | |
5009 | { | |
0e2ff151 | 5010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5011 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
5012 | ||
0e2ff151 | 5013 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5014 | if (PyErr_Occurred()) return NULL; |
5015 | } _resultobj = Py_BuildValue("i",_result); | |
5016 | return _resultobj; | |
5017 | } | |
5018 | ||
5019 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { | |
5020 | if (!PyCallable_Check(func)) | |
5021 | return FALSE; | |
5022 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); | |
5023 | } | |
5024 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5025 | PyObject * _resultobj; | |
5026 | bool _result; | |
5027 | wxPyListCtrl * _arg0; | |
5028 | PyObject * _arg1; | |
5029 | PyObject * _argo0 = 0; | |
5030 | PyObject * _obj1 = 0; | |
5031 | char *_kwnames[] = { "self","func", NULL }; | |
5032 | ||
5033 | self = self; | |
5034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5035 | return NULL; | |
5036 | if (_argo0) { | |
5037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
5040 | return NULL; | |
5041 | } | |
5042 | } | |
5043 | { | |
5044 | _arg1 = _obj1; | |
5045 | } | |
5046 | { | |
0e2ff151 | 5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5048 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
5049 | ||
0e2ff151 | 5050 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5051 | if (PyErr_Occurred()) return NULL; |
5052 | } _resultobj = Py_BuildValue("i",_result); | |
5053 | return _resultobj; | |
5054 | } | |
5055 | ||
5056 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { | |
5057 | wxListView *src; | |
5058 | wxPyListCtrl *dest; | |
5059 | src = (wxListView *) ptr; | |
5060 | dest = (wxPyListCtrl *) src; | |
5061 | return (void *) dest; | |
5062 | } | |
5063 | ||
5064 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5065 | wxListView *src; | |
5066 | wxControl *dest; | |
5067 | src = (wxListView *) ptr; | |
5068 | dest = (wxControl *) src; | |
5069 | return (void *) dest; | |
5070 | } | |
5071 | ||
5072 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5073 | wxListView *src; | |
5074 | wxWindow *dest; | |
5075 | src = (wxListView *) ptr; | |
5076 | dest = (wxWindow *) src; | |
5077 | return (void *) dest; | |
5078 | } | |
5079 | ||
5080 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5081 | wxListView *src; | |
5082 | wxEvtHandler *dest; | |
5083 | src = (wxListView *) ptr; | |
5084 | dest = (wxEvtHandler *) src; | |
5085 | return (void *) dest; | |
5086 | } | |
5087 | ||
5088 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5089 | wxListView *src; | |
5090 | wxObject *dest; | |
5091 | src = (wxListView *) ptr; | |
5092 | dest = (wxObject *) src; | |
5093 | return (void *) dest; | |
5094 | } | |
5095 | ||
5096 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5097 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5098 | PyObject * _resultobj; | |
5099 | wxListView * _result; | |
5100 | wxWindow * _arg0; | |
5101 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5102 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5103 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5104 | long _arg4 = (long ) (wxLC_REPORT); | |
5105 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
5106 | wxString * _arg6 = (wxString *) &"listctrl"; | |
5107 | PyObject * _argo0 = 0; | |
5108 | wxPoint temp; | |
5109 | PyObject * _obj2 = 0; | |
5110 | wxSize temp0; | |
5111 | PyObject * _obj3 = 0; | |
5112 | PyObject * _argo5 = 0; | |
5113 | PyObject * _obj6 = 0; | |
5114 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5115 | char _ptemp[128]; | |
5116 | ||
5117 | self = self; | |
5118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5119 | return NULL; | |
5120 | if (_argo0) { | |
5121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5124 | return NULL; | |
5125 | } | |
5126 | } | |
5127 | if (_obj2) | |
5128 | { | |
5129 | _arg2 = &temp; | |
5130 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5131 | return NULL; | |
5132 | } | |
5133 | if (_obj3) | |
5134 | { | |
5135 | _arg3 = &temp0; | |
5136 | if (! wxSize_helper(_obj3, &_arg3)) | |
5137 | return NULL; | |
5138 | } | |
5139 | if (_argo5) { | |
5140 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5141 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5143 | return NULL; | |
5144 | } | |
5145 | } | |
5146 | if (_obj6) | |
5147 | { | |
5148 | #if PYTHON_API_VERSION >= 1009 | |
5149 | char* tmpPtr; int tmpSize; | |
5150 | if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) { | |
5151 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5152 | return NULL; | |
5153 | } | |
5154 | if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1) | |
5155 | return NULL; | |
5156 | _arg6 = new wxString(tmpPtr, tmpSize); | |
5157 | #else | |
5158 | if (!PyString_Check(_obj6)) { | |
5159 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5160 | return NULL; | |
5161 | } | |
5162 | _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6)); | |
5163 | #endif | |
5164 | } | |
5165 | { | |
0e2ff151 | 5166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5167 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); |
5168 | ||
0e2ff151 | 5169 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5170 | if (PyErr_Occurred()) return NULL; |
5171 | } if (_result) { | |
5172 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5173 | _resultobj = Py_BuildValue("s",_ptemp); | |
5174 | } else { | |
5175 | Py_INCREF(Py_None); | |
5176 | _resultobj = Py_None; | |
5177 | } | |
5178 | { | |
5179 | if (_obj6) | |
5180 | delete _arg6; | |
5181 | } | |
5182 | return _resultobj; | |
5183 | } | |
5184 | ||
5185 | #define new_wxPreListView() (new wxListView()) | |
5186 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5187 | PyObject * _resultobj; | |
5188 | wxListView * _result; | |
5189 | char *_kwnames[] = { NULL }; | |
5190 | char _ptemp[128]; | |
5191 | ||
5192 | self = self; | |
5193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5194 | return NULL; | |
5195 | { | |
0e2ff151 | 5196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5197 | _result = (wxListView *)new_wxPreListView(); |
5198 | ||
0e2ff151 | 5199 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5200 | if (PyErr_Occurred()) return NULL; |
5201 | } if (_result) { | |
5202 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5203 | _resultobj = Py_BuildValue("s",_ptemp); | |
5204 | } else { | |
5205 | Py_INCREF(Py_None); | |
5206 | _resultobj = Py_None; | |
5207 | } | |
5208 | return _resultobj; | |
5209 | } | |
5210 | ||
5211 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5212 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5213 | PyObject * _resultobj; | |
5214 | bool _result; | |
5215 | wxListView * _arg0; | |
5216 | wxWindow * _arg1; | |
5217 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5218 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5219 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5220 | long _arg5 = (long ) (wxLC_REPORT); | |
5221 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
5222 | wxString * _arg7 = (wxString *) &"listctrl"; | |
5223 | PyObject * _argo0 = 0; | |
5224 | PyObject * _argo1 = 0; | |
5225 | wxPoint temp; | |
5226 | PyObject * _obj3 = 0; | |
5227 | wxSize temp0; | |
5228 | PyObject * _obj4 = 0; | |
5229 | PyObject * _argo6 = 0; | |
5230 | PyObject * _obj7 = 0; | |
5231 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5232 | ||
5233 | self = self; | |
5234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5235 | return NULL; | |
5236 | if (_argo0) { | |
5237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5240 | return NULL; | |
5241 | } | |
5242 | } | |
5243 | if (_argo1) { | |
5244 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5245 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5247 | return NULL; | |
5248 | } | |
5249 | } | |
5250 | if (_obj3) | |
5251 | { | |
5252 | _arg3 = &temp; | |
5253 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5254 | return NULL; | |
5255 | } | |
5256 | if (_obj4) | |
5257 | { | |
5258 | _arg4 = &temp0; | |
5259 | if (! wxSize_helper(_obj4, &_arg4)) | |
5260 | return NULL; | |
5261 | } | |
5262 | if (_argo6) { | |
5263 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5264 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5266 | return NULL; | |
5267 | } | |
5268 | } | |
5269 | if (_obj7) | |
5270 | { | |
5271 | #if PYTHON_API_VERSION >= 1009 | |
5272 | char* tmpPtr; int tmpSize; | |
5273 | if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) { | |
5274 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5275 | return NULL; | |
5276 | } | |
5277 | if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1) | |
5278 | return NULL; | |
5279 | _arg7 = new wxString(tmpPtr, tmpSize); | |
5280 | #else | |
5281 | if (!PyString_Check(_obj7)) { | |
5282 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5283 | return NULL; | |
5284 | } | |
5285 | _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7)); | |
5286 | #endif | |
5287 | } | |
5288 | { | |
0e2ff151 | 5289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5290 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); |
5291 | ||
0e2ff151 | 5292 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5293 | if (PyErr_Occurred()) return NULL; |
5294 | } _resultobj = Py_BuildValue("i",_result); | |
5295 | { | |
5296 | if (_obj7) | |
5297 | delete _arg7; | |
5298 | } | |
5299 | return _resultobj; | |
5300 | } | |
5301 | ||
5302 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5303 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5304 | PyObject * _resultobj; | |
5305 | wxListView * _arg0; | |
5306 | long _arg1; | |
5307 | bool _arg2 = (bool ) TRUE; | |
5308 | PyObject * _argo0 = 0; | |
5309 | int tempbool2 = (int) TRUE; | |
5310 | char *_kwnames[] = { "self","n","on", NULL }; | |
5311 | ||
5312 | self = self; | |
5313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5314 | return NULL; | |
5315 | if (_argo0) { | |
5316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5319 | return NULL; | |
5320 | } | |
5321 | } | |
5322 | _arg2 = (bool ) tempbool2; | |
5323 | { | |
0e2ff151 | 5324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5325 | wxListView_Select(_arg0,_arg1,_arg2); |
5326 | ||
0e2ff151 | 5327 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5328 | if (PyErr_Occurred()) return NULL; |
5329 | } Py_INCREF(Py_None); | |
5330 | _resultobj = Py_None; | |
5331 | return _resultobj; | |
5332 | } | |
5333 | ||
5334 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5335 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5336 | PyObject * _resultobj; | |
5337 | wxListView * _arg0; | |
5338 | long _arg1; | |
5339 | PyObject * _argo0 = 0; | |
5340 | char *_kwnames[] = { "self","index", NULL }; | |
5341 | ||
5342 | self = self; | |
5343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5344 | return NULL; | |
5345 | if (_argo0) { | |
5346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5349 | return NULL; | |
5350 | } | |
5351 | } | |
5352 | { | |
0e2ff151 | 5353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5354 | wxListView_Focus(_arg0,_arg1); |
5355 | ||
0e2ff151 | 5356 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5357 | if (PyErr_Occurred()) return NULL; |
5358 | } Py_INCREF(Py_None); | |
5359 | _resultobj = Py_None; | |
5360 | return _resultobj; | |
5361 | } | |
5362 | ||
5363 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5364 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5365 | PyObject * _resultobj; | |
5366 | long _result; | |
5367 | wxListView * _arg0; | |
5368 | PyObject * _argo0 = 0; | |
5369 | char *_kwnames[] = { "self", NULL }; | |
5370 | ||
5371 | self = self; | |
5372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5373 | return NULL; | |
5374 | if (_argo0) { | |
5375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5378 | return NULL; | |
5379 | } | |
5380 | } | |
5381 | { | |
0e2ff151 | 5382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5383 | _result = (long )wxListView_GetFocusedItem(_arg0); |
5384 | ||
0e2ff151 | 5385 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5386 | if (PyErr_Occurred()) return NULL; |
5387 | } _resultobj = Py_BuildValue("l",_result); | |
5388 | return _resultobj; | |
5389 | } | |
5390 | ||
5391 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5392 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5393 | PyObject * _resultobj; | |
5394 | long _result; | |
5395 | wxListView * _arg0; | |
5396 | long _arg1; | |
5397 | PyObject * _argo0 = 0; | |
5398 | char *_kwnames[] = { "self","item", NULL }; | |
5399 | ||
5400 | self = self; | |
5401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5402 | return NULL; | |
5403 | if (_argo0) { | |
5404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5407 | return NULL; | |
5408 | } | |
5409 | } | |
5410 | { | |
0e2ff151 | 5411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5412 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); |
5413 | ||
0e2ff151 | 5414 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5415 | if (PyErr_Occurred()) return NULL; |
5416 | } _resultobj = Py_BuildValue("l",_result); | |
5417 | return _resultobj; | |
5418 | } | |
5419 | ||
5420 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5421 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5422 | PyObject * _resultobj; | |
5423 | long _result; | |
5424 | wxListView * _arg0; | |
5425 | PyObject * _argo0 = 0; | |
5426 | char *_kwnames[] = { "self", NULL }; | |
5427 | ||
5428 | self = self; | |
5429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5430 | return NULL; | |
5431 | if (_argo0) { | |
5432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5435 | return NULL; | |
5436 | } | |
5437 | } | |
5438 | { | |
0e2ff151 | 5439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5440 | _result = (long )wxListView_GetFirstSelected(_arg0); |
5441 | ||
0e2ff151 | 5442 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5443 | if (PyErr_Occurred()) return NULL; |
5444 | } _resultobj = Py_BuildValue("l",_result); | |
5445 | return _resultobj; | |
5446 | } | |
5447 | ||
5448 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5449 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5450 | PyObject * _resultobj; | |
5451 | bool _result; | |
5452 | wxListView * _arg0; | |
5453 | long _arg1; | |
5454 | PyObject * _argo0 = 0; | |
5455 | char *_kwnames[] = { "self","index", NULL }; | |
5456 | ||
5457 | self = self; | |
5458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5459 | return NULL; | |
5460 | if (_argo0) { | |
5461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5464 | return NULL; | |
5465 | } | |
5466 | } | |
5467 | { | |
0e2ff151 | 5468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5469 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); |
5470 | ||
0e2ff151 | 5471 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5472 | if (PyErr_Occurred()) return NULL; |
5473 | } _resultobj = Py_BuildValue("i",_result); | |
5474 | return _resultobj; | |
5475 | } | |
5476 | ||
5477 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5478 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5479 | PyObject * _resultobj; | |
5480 | wxListView * _arg0; | |
5481 | int _arg1; | |
5482 | int _arg2; | |
5483 | PyObject * _argo0 = 0; | |
5484 | char *_kwnames[] = { "self","col","image", NULL }; | |
5485 | ||
5486 | self = self; | |
5487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5488 | return NULL; | |
5489 | if (_argo0) { | |
5490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5493 | return NULL; | |
5494 | } | |
5495 | } | |
5496 | { | |
0e2ff151 | 5497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5498 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); |
5499 | ||
0e2ff151 | 5500 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5501 | if (PyErr_Occurred()) return NULL; |
5502 | } Py_INCREF(Py_None); | |
5503 | _resultobj = Py_None; | |
5504 | return _resultobj; | |
5505 | } | |
5506 | ||
5507 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5508 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5509 | PyObject * _resultobj; | |
5510 | wxListView * _arg0; | |
5511 | int _arg1; | |
5512 | PyObject * _argo0 = 0; | |
5513 | char *_kwnames[] = { "self","col", NULL }; | |
5514 | ||
5515 | self = self; | |
5516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5517 | return NULL; | |
5518 | if (_argo0) { | |
5519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5522 | return NULL; | |
5523 | } | |
5524 | } | |
5525 | { | |
0e2ff151 | 5526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5527 | wxListView_ClearColumnImage(_arg0,_arg1); |
5528 | ||
0e2ff151 | 5529 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5530 | if (PyErr_Occurred()) return NULL; |
5531 | } Py_INCREF(Py_None); | |
5532 | _resultobj = Py_None; | |
5533 | return _resultobj; | |
5534 | } | |
5535 | ||
5536 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) | |
5537 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5538 | PyObject * _resultobj; | |
5539 | wxTreeItemAttr * _result; | |
5540 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5541 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5542 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5543 | wxColour temp; | |
5544 | PyObject * _obj0 = 0; | |
5545 | wxColour temp0; | |
5546 | PyObject * _obj1 = 0; | |
5547 | PyObject * _argo2 = 0; | |
5548 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5549 | char _ptemp[128]; | |
5550 | ||
5551 | self = self; | |
5552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5553 | return NULL; | |
5554 | if (_obj0) | |
5555 | { | |
5556 | _arg0 = &temp; | |
5557 | if (! wxColour_helper(_obj0, &_arg0)) | |
5558 | return NULL; | |
5559 | } | |
5560 | if (_obj1) | |
5561 | { | |
5562 | _arg1 = &temp0; | |
5563 | if (! wxColour_helper(_obj1, &_arg1)) | |
5564 | return NULL; | |
5565 | } | |
5566 | if (_argo2) { | |
5567 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5568 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
5570 | return NULL; | |
5571 | } | |
5572 | } | |
5573 | { | |
0e2ff151 | 5574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5575 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
5576 | ||
0e2ff151 | 5577 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5578 | if (PyErr_Occurred()) return NULL; |
5579 | } if (_result) { | |
5580 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); | |
5581 | _resultobj = Py_BuildValue("s",_ptemp); | |
5582 | } else { | |
5583 | Py_INCREF(Py_None); | |
5584 | _resultobj = Py_None; | |
5585 | } | |
5586 | return _resultobj; | |
5587 | } | |
5588 | ||
5589 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5590 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5591 | PyObject * _resultobj; | |
5592 | wxTreeItemAttr * _arg0; | |
5593 | wxColour * _arg1; | |
5594 | PyObject * _argo0 = 0; | |
5595 | wxColour temp; | |
5596 | PyObject * _obj1 = 0; | |
5597 | char *_kwnames[] = { "self","colText", NULL }; | |
5598 | ||
5599 | self = self; | |
5600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5601 | return NULL; | |
5602 | if (_argo0) { | |
5603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
5606 | return NULL; | |
5607 | } | |
5608 | } | |
5609 | { | |
5610 | _arg1 = &temp; | |
5611 | if (! wxColour_helper(_obj1, &_arg1)) | |
5612 | return NULL; | |
5613 | } | |
5614 | { | |
0e2ff151 | 5615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5616 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
5617 | ||
0e2ff151 | 5618 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5619 | if (PyErr_Occurred()) return NULL; |
5620 | } Py_INCREF(Py_None); | |
5621 | _resultobj = Py_None; | |
5622 | return _resultobj; | |
5623 | } | |
5624 | ||
5625 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5626 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5627 | PyObject * _resultobj; | |
5628 | wxTreeItemAttr * _arg0; | |
5629 | wxColour * _arg1; | |
5630 | PyObject * _argo0 = 0; | |
5631 | wxColour temp; | |
5632 | PyObject * _obj1 = 0; | |
5633 | char *_kwnames[] = { "self","colBack", NULL }; | |
5634 | ||
5635 | self = self; | |
5636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5637 | return NULL; | |
5638 | if (_argo0) { | |
5639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5642 | return NULL; | |
5643 | } | |
5644 | } | |
5645 | { | |
5646 | _arg1 = &temp; | |
5647 | if (! wxColour_helper(_obj1, &_arg1)) | |
5648 | return NULL; | |
5649 | } | |
5650 | { | |
0e2ff151 | 5651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5652 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
5653 | ||
0e2ff151 | 5654 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5655 | if (PyErr_Occurred()) return NULL; |
5656 | } Py_INCREF(Py_None); | |
5657 | _resultobj = Py_None; | |
5658 | return _resultobj; | |
5659 | } | |
5660 | ||
5661 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5662 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5663 | PyObject * _resultobj; | |
5664 | wxTreeItemAttr * _arg0; | |
5665 | wxFont * _arg1; | |
5666 | PyObject * _argo0 = 0; | |
5667 | PyObject * _argo1 = 0; | |
5668 | char *_kwnames[] = { "self","font", NULL }; | |
5669 | ||
5670 | self = self; | |
5671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5672 | return NULL; | |
5673 | if (_argo0) { | |
5674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
5677 | return NULL; | |
5678 | } | |
5679 | } | |
5680 | if (_argo1) { | |
5681 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5682 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
5684 | return NULL; | |
5685 | } | |
5686 | } | |
5687 | { | |
0e2ff151 | 5688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5689 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
5690 | ||
0e2ff151 | 5691 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5692 | if (PyErr_Occurred()) return NULL; |
5693 | } Py_INCREF(Py_None); | |
5694 | _resultobj = Py_None; | |
5695 | return _resultobj; | |
5696 | } | |
5697 | ||
5698 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5699 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5700 | PyObject * _resultobj; | |
5701 | bool _result; | |
5702 | wxTreeItemAttr * _arg0; | |
5703 | PyObject * _argo0 = 0; | |
5704 | char *_kwnames[] = { "self", NULL }; | |
5705 | ||
5706 | self = self; | |
5707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) | |
5708 | return NULL; | |
5709 | if (_argo0) { | |
5710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5713 | return NULL; | |
5714 | } | |
5715 | } | |
5716 | { | |
0e2ff151 | 5717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5718 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
5719 | ||
0e2ff151 | 5720 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5721 | if (PyErr_Occurred()) return NULL; |
5722 | } _resultobj = Py_BuildValue("i",_result); | |
5723 | return _resultobj; | |
5724 | } | |
5725 | ||
5726 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5727 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5728 | PyObject * _resultobj; | |
5729 | bool _result; | |
5730 | wxTreeItemAttr * _arg0; | |
5731 | PyObject * _argo0 = 0; | |
5732 | char *_kwnames[] = { "self", NULL }; | |
5733 | ||
5734 | self = self; | |
5735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5736 | return NULL; | |
5737 | if (_argo0) { | |
5738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5741 | return NULL; | |
5742 | } | |
5743 | } | |
5744 | { | |
0e2ff151 | 5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5746 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
5747 | ||
0e2ff151 | 5748 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5749 | if (PyErr_Occurred()) return NULL; |
5750 | } _resultobj = Py_BuildValue("i",_result); | |
5751 | return _resultobj; | |
5752 | } | |
5753 | ||
5754 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5755 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5756 | PyObject * _resultobj; | |
5757 | bool _result; | |
5758 | wxTreeItemAttr * _arg0; | |
5759 | PyObject * _argo0 = 0; | |
5760 | char *_kwnames[] = { "self", NULL }; | |
5761 | ||
5762 | self = self; | |
5763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) | |
5764 | return NULL; | |
5765 | if (_argo0) { | |
5766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
5769 | return NULL; | |
5770 | } | |
5771 | } | |
5772 | { | |
0e2ff151 | 5773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5774 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
5775 | ||
0e2ff151 | 5776 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5777 | if (PyErr_Occurred()) return NULL; |
5778 | } _resultobj = Py_BuildValue("i",_result); | |
5779 | return _resultobj; | |
5780 | } | |
5781 | ||
5782 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5783 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5784 | PyObject * _resultobj; | |
5785 | wxColour * _result; | |
5786 | wxTreeItemAttr * _arg0; | |
5787 | PyObject * _argo0 = 0; | |
5788 | char *_kwnames[] = { "self", NULL }; | |
5789 | char _ptemp[128]; | |
5790 | ||
5791 | self = self; | |
5792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) | |
5793 | return NULL; | |
5794 | if (_argo0) { | |
5795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
5798 | return NULL; | |
5799 | } | |
5800 | } | |
5801 | { | |
0e2ff151 | 5802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 5803 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
e6056257 | 5804 | |
0e2ff151 | 5805 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5806 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
5807 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5808 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
5809 | return _resultobj; |
5810 | } | |
5811 | ||
5812 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5813 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5814 | PyObject * _resultobj; | |
5815 | wxColour * _result; | |
5816 | wxTreeItemAttr * _arg0; | |
5817 | PyObject * _argo0 = 0; | |
5818 | char *_kwnames[] = { "self", NULL }; | |
5819 | char _ptemp[128]; | |
5820 | ||
5821 | self = self; | |
5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5823 | return NULL; | |
5824 | if (_argo0) { | |
5825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5828 | return NULL; | |
5829 | } | |
5830 | } | |
5831 | { | |
0e2ff151 | 5832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 5833 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
e6056257 | 5834 | |
0e2ff151 | 5835 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5836 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
5837 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5838 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
5839 | return _resultobj; |
5840 | } | |
5841 | ||
5842 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5843 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5844 | PyObject * _resultobj; | |
5845 | wxFont * _result; | |
5846 | wxTreeItemAttr * _arg0; | |
5847 | PyObject * _argo0 = 0; | |
5848 | char *_kwnames[] = { "self", NULL }; | |
5849 | char _ptemp[128]; | |
5850 | ||
5851 | self = self; | |
5852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5853 | return NULL; | |
5854 | if (_argo0) { | |
5855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5858 | return NULL; | |
5859 | } | |
5860 | } | |
5861 | { | |
0e2ff151 | 5862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 | 5863 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
e6056257 | 5864 | |
0e2ff151 | 5865 | wxPyEndAllowThreads(__tstate); |
e6056257 | 5866 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
5867 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5868 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
5869 | return _resultobj; |
5870 | } | |
5871 | ||
5872 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5873 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject * _resultobj; | |
5875 | wxTreeItemId * _result; | |
5876 | char *_kwnames[] = { NULL }; | |
5877 | char _ptemp[128]; | |
5878 | ||
5879 | self = self; | |
5880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5881 | return NULL; | |
5882 | { | |
0e2ff151 | 5883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5884 | _result = (wxTreeItemId *)new_wxTreeItemId(); |
5885 | ||
0e2ff151 | 5886 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5887 | if (PyErr_Occurred()) return NULL; |
5888 | } if (_result) { | |
5889 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5890 | _resultobj = Py_BuildValue("s",_ptemp); | |
5891 | } else { | |
5892 | Py_INCREF(Py_None); | |
5893 | _resultobj = Py_None; | |
5894 | } | |
5895 | return _resultobj; | |
5896 | } | |
5897 | ||
5898 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5899 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5900 | PyObject * _resultobj; | |
5901 | wxTreeItemId * _arg0; | |
5902 | PyObject * _argo0 = 0; | |
5903 | char *_kwnames[] = { "self", NULL }; | |
5904 | ||
5905 | self = self; | |
5906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5907 | return NULL; | |
5908 | if (_argo0) { | |
5909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5912 | return NULL; | |
5913 | } | |
5914 | } | |
5915 | { | |
0e2ff151 | 5916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5917 | delete_wxTreeItemId(_arg0); |
5918 | ||
0e2ff151 | 5919 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5920 | if (PyErr_Occurred()) return NULL; |
5921 | } Py_INCREF(Py_None); | |
5922 | _resultobj = Py_None; | |
5923 | return _resultobj; | |
5924 | } | |
5925 | ||
5926 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5927 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5928 | PyObject * _resultobj; | |
5929 | bool _result; | |
5930 | wxTreeItemId * _arg0; | |
5931 | PyObject * _argo0 = 0; | |
5932 | char *_kwnames[] = { "self", NULL }; | |
5933 | ||
5934 | self = self; | |
5935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
5936 | return NULL; | |
5937 | if (_argo0) { | |
5938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
5941 | return NULL; | |
5942 | } | |
5943 | } | |
5944 | { | |
0e2ff151 | 5945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5946 | _result = (bool )wxTreeItemId_IsOk(_arg0); |
5947 | ||
0e2ff151 | 5948 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5949 | if (PyErr_Occurred()) return NULL; |
5950 | } _resultobj = Py_BuildValue("i",_result); | |
5951 | return _resultobj; | |
5952 | } | |
5953 | ||
5954 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
5955 | if (! other) return -1; | |
5956 | return *self != *other; | |
5957 | } | |
5958 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5959 | PyObject * _resultobj; | |
5960 | int _result; | |
5961 | wxTreeItemId * _arg0; | |
5962 | wxTreeItemId * _arg1; | |
5963 | PyObject * _argo0 = 0; | |
5964 | PyObject * _argo1 = 0; | |
5965 | char *_kwnames[] = { "self","other", NULL }; | |
5966 | ||
5967 | self = self; | |
5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5969 | return NULL; | |
5970 | if (_argo0) { | |
5971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5974 | return NULL; | |
5975 | } | |
5976 | } | |
5977 | if (_argo1) { | |
5978 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5979 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5981 | return NULL; | |
5982 | } | |
5983 | } | |
5984 | { | |
0e2ff151 | 5985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
5986 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); |
5987 | ||
0e2ff151 | 5988 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5989 | if (PyErr_Occurred()) return NULL; |
5990 | } _resultobj = Py_BuildValue("i",_result); | |
5991 | return _resultobj; | |
5992 | } | |
5993 | ||
5994 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
5995 | wxPyTreeItemData *src; | |
5996 | wxObject *dest; | |
5997 | src = (wxPyTreeItemData *) ptr; | |
5998 | dest = (wxObject *) src; | |
5999 | return (void *) dest; | |
6000 | } | |
6001 | ||
6002 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
6003 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6004 | PyObject * _resultobj; | |
6005 | wxPyTreeItemData * _result; | |
6006 | PyObject * _arg0 = (PyObject *) NULL; | |
6007 | PyObject * _obj0 = 0; | |
6008 | char *_kwnames[] = { "obj", NULL }; | |
6009 | char _ptemp[128]; | |
6010 | ||
6011 | self = self; | |
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
6013 | return NULL; | |
6014 | if (_obj0) | |
6015 | { | |
6016 | _arg0 = _obj0; | |
6017 | } | |
6018 | { | |
0e2ff151 | 6019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6020 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); |
6021 | ||
0e2ff151 | 6022 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6023 | if (PyErr_Occurred()) return NULL; |
6024 | } if (_result) { | |
6025 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6026 | _resultobj = Py_BuildValue("s",_ptemp); | |
6027 | } else { | |
6028 | Py_INCREF(Py_None); | |
6029 | _resultobj = Py_None; | |
6030 | } | |
6031 | return _resultobj; | |
6032 | } | |
6033 | ||
6034 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
6035 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6036 | PyObject * _resultobj; | |
6037 | PyObject * _result; | |
6038 | wxPyTreeItemData * _arg0; | |
6039 | PyObject * _argo0 = 0; | |
6040 | char *_kwnames[] = { "self", NULL }; | |
6041 | ||
6042 | self = self; | |
6043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
6044 | return NULL; | |
6045 | if (_argo0) { | |
6046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
6049 | return NULL; | |
6050 | } | |
6051 | } | |
6052 | { | |
0e2ff151 | 6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6054 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); |
6055 | ||
0e2ff151 | 6056 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6057 | if (PyErr_Occurred()) return NULL; |
6058 | }{ | |
6059 | _resultobj = _result; | |
6060 | } | |
6061 | return _resultobj; | |
6062 | } | |
6063 | ||
6064 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
6065 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6066 | PyObject * _resultobj; | |
6067 | wxPyTreeItemData * _arg0; | |
6068 | PyObject * _arg1; | |
6069 | PyObject * _argo0 = 0; | |
6070 | PyObject * _obj1 = 0; | |
6071 | char *_kwnames[] = { "self","obj", NULL }; | |
6072 | ||
6073 | self = self; | |
6074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
6075 | return NULL; | |
6076 | if (_argo0) { | |
6077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
6080 | return NULL; | |
6081 | } | |
6082 | } | |
6083 | { | |
6084 | _arg1 = _obj1; | |
6085 | } | |
6086 | { | |
0e2ff151 | 6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6088 | wxTreeItemData_SetData(_arg0,_arg1); |
6089 | ||
0e2ff151 | 6090 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6091 | if (PyErr_Occurred()) return NULL; |
6092 | } Py_INCREF(Py_None); | |
6093 | _resultobj = Py_None; | |
6094 | return _resultobj; | |
6095 | } | |
6096 | ||
6097 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
6098 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6099 | PyObject * _resultobj; | |
6100 | wxTreeItemId * _result; | |
6101 | wxPyTreeItemData * _arg0; | |
6102 | PyObject * _argo0 = 0; | |
6103 | char *_kwnames[] = { "self", NULL }; | |
6104 | char _ptemp[128]; | |
6105 | ||
6106 | self = self; | |
6107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
6108 | return NULL; | |
6109 | if (_argo0) { | |
6110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6113 | return NULL; | |
6114 | } | |
6115 | } | |
6116 | { | |
0e2ff151 | 6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6118 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); |
6119 | _result = (wxTreeItemId *) &_result_ref; | |
6120 | ||
0e2ff151 | 6121 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6122 | if (PyErr_Occurred()) return NULL; |
6123 | } if (_result) { | |
6124 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6125 | _resultobj = Py_BuildValue("s",_ptemp); | |
6126 | } else { | |
6127 | Py_INCREF(Py_None); | |
6128 | _resultobj = Py_None; | |
6129 | } | |
6130 | return _resultobj; | |
6131 | } | |
6132 | ||
6133 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6134 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6135 | PyObject * _resultobj; | |
6136 | wxPyTreeItemData * _arg0; | |
6137 | wxTreeItemId * _arg1; | |
6138 | PyObject * _argo0 = 0; | |
6139 | PyObject * _argo1 = 0; | |
6140 | char *_kwnames[] = { "self","id", NULL }; | |
6141 | ||
6142 | self = self; | |
6143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) | |
6144 | return NULL; | |
6145 | if (_argo0) { | |
6146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); | |
6149 | return NULL; | |
6150 | } | |
6151 | } | |
6152 | if (_argo1) { | |
6153 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6154 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); | |
6156 | return NULL; | |
6157 | } | |
6158 | } | |
6159 | { | |
0e2ff151 | 6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6161 | wxTreeItemData_SetId(_arg0,*_arg1); |
6162 | ||
0e2ff151 | 6163 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6164 | if (PyErr_Occurred()) return NULL; |
6165 | } Py_INCREF(Py_None); | |
6166 | _resultobj = Py_None; | |
6167 | return _resultobj; | |
6168 | } | |
6169 | ||
6170 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { | |
6171 | wxTreeEvent *src; | |
6172 | wxNotifyEvent *dest; | |
6173 | src = (wxTreeEvent *) ptr; | |
6174 | dest = (wxNotifyEvent *) src; | |
6175 | return (void *) dest; | |
6176 | } | |
6177 | ||
6178 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { | |
6179 | wxTreeEvent *src; | |
6180 | wxCommandEvent *dest; | |
6181 | src = (wxTreeEvent *) ptr; | |
6182 | dest = (wxCommandEvent *) src; | |
6183 | return (void *) dest; | |
6184 | } | |
6185 | ||
6186 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6187 | wxTreeEvent *src; | |
6188 | wxEvent *dest; | |
6189 | src = (wxTreeEvent *) ptr; | |
6190 | dest = (wxEvent *) src; | |
6191 | return (void *) dest; | |
6192 | } | |
6193 | ||
6194 | static void *SwigwxTreeEventTowxObject(void *ptr) { | |
6195 | wxTreeEvent *src; | |
6196 | wxObject *dest; | |
6197 | src = (wxTreeEvent *) ptr; | |
6198 | dest = (wxObject *) src; | |
6199 | return (void *) dest; | |
6200 | } | |
6201 | ||
6202 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) | |
6203 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6204 | PyObject * _resultobj; | |
6205 | wxTreeEvent * _result; | |
6206 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6207 | int _arg1 = (int ) 0; | |
6208 | char *_kwnames[] = { "commandType","id", NULL }; | |
6209 | char _ptemp[128]; | |
6210 | ||
6211 | self = self; | |
6212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6213 | return NULL; | |
6214 | { | |
0e2ff151 | 6215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6216 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); |
6217 | ||
0e2ff151 | 6218 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6219 | if (PyErr_Occurred()) return NULL; |
6220 | } if (_result) { | |
6221 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6222 | _resultobj = Py_BuildValue("s",_ptemp); | |
6223 | } else { | |
6224 | Py_INCREF(Py_None); | |
6225 | _resultobj = Py_None; | |
6226 | } | |
6227 | return _resultobj; | |
6228 | } | |
6229 | ||
6230 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) | |
6231 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6232 | PyObject * _resultobj; | |
6233 | wxTreeItemId * _result; | |
6234 | wxTreeEvent * _arg0; | |
6235 | PyObject * _argo0 = 0; | |
6236 | char *_kwnames[] = { "self", NULL }; | |
6237 | char _ptemp[128]; | |
6238 | ||
6239 | self = self; | |
6240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) | |
6241 | return NULL; | |
6242 | if (_argo0) { | |
6243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); | |
6246 | return NULL; | |
6247 | } | |
6248 | } | |
6249 | { | |
0e2ff151 | 6250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6251 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); |
6252 | ||
0e2ff151 | 6253 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6254 | if (PyErr_Occurred()) return NULL; |
6255 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6256 | _resultobj = Py_BuildValue("s",_ptemp); | |
6257 | return _resultobj; | |
6258 | } | |
6259 | ||
6260 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) | |
6261 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6262 | PyObject * _resultobj; | |
6263 | wxTreeItemId * _result; | |
6264 | wxTreeEvent * _arg0; | |
6265 | PyObject * _argo0 = 0; | |
6266 | char *_kwnames[] = { "self", NULL }; | |
6267 | char _ptemp[128]; | |
6268 | ||
6269 | self = self; | |
6270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) | |
6271 | return NULL; | |
6272 | if (_argo0) { | |
6273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); | |
6276 | return NULL; | |
6277 | } | |
6278 | } | |
6279 | { | |
0e2ff151 | 6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6281 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); |
6282 | ||
0e2ff151 | 6283 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6284 | if (PyErr_Occurred()) return NULL; |
6285 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6286 | _resultobj = Py_BuildValue("s",_ptemp); | |
6287 | return _resultobj; | |
6288 | } | |
6289 | ||
6290 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) | |
6291 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6292 | PyObject * _resultobj; | |
6293 | wxPoint * _result; | |
6294 | wxTreeEvent * _arg0; | |
6295 | PyObject * _argo0 = 0; | |
6296 | char *_kwnames[] = { "self", NULL }; | |
6297 | char _ptemp[128]; | |
6298 | ||
6299 | self = self; | |
6300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) | |
6301 | return NULL; | |
6302 | if (_argo0) { | |
6303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); | |
6306 | return NULL; | |
6307 | } | |
6308 | } | |
6309 | { | |
0e2ff151 | 6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6311 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); |
6312 | ||
0e2ff151 | 6313 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6314 | if (PyErr_Occurred()) return NULL; |
6315 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
6316 | _resultobj = Py_BuildValue("s",_ptemp); | |
6317 | return _resultobj; | |
6318 | } | |
6319 | ||
6320 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) | |
6321 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6322 | PyObject * _resultobj; | |
6323 | wxKeyEvent * _result; | |
6324 | wxTreeEvent * _arg0; | |
6325 | PyObject * _argo0 = 0; | |
6326 | char *_kwnames[] = { "self", NULL }; | |
6327 | char _ptemp[128]; | |
6328 | ||
6329 | self = self; | |
6330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6331 | return NULL; | |
6332 | if (_argo0) { | |
6333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6336 | return NULL; | |
6337 | } | |
6338 | } | |
6339 | { | |
0e2ff151 | 6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6341 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); |
6342 | _result = (wxKeyEvent *) &_result_ref; | |
6343 | ||
0e2ff151 | 6344 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6345 | if (PyErr_Occurred()) return NULL; |
6346 | } if (_result) { | |
6347 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6348 | _resultobj = Py_BuildValue("s",_ptemp); | |
6349 | } else { | |
6350 | Py_INCREF(Py_None); | |
6351 | _resultobj = Py_None; | |
6352 | } | |
6353 | return _resultobj; | |
6354 | } | |
6355 | ||
6356 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) | |
6357 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject * _resultobj; | |
6359 | int _result; | |
6360 | wxTreeEvent * _arg0; | |
6361 | PyObject * _argo0 = 0; | |
6362 | char *_kwnames[] = { "self", NULL }; | |
6363 | ||
6364 | self = self; | |
6365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) | |
6366 | return NULL; | |
6367 | if (_argo0) { | |
6368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); | |
6371 | return NULL; | |
6372 | } | |
6373 | } | |
6374 | { | |
0e2ff151 | 6375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6376 | _result = (int )wxTreeEvent_GetCode(_arg0); |
6377 | ||
0e2ff151 | 6378 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6379 | if (PyErr_Occurred()) return NULL; |
6380 | } _resultobj = Py_BuildValue("i",_result); | |
6381 | return _resultobj; | |
6382 | } | |
6383 | ||
6384 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
6385 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6386 | PyObject * _resultobj; | |
6387 | wxString * _result; | |
6388 | wxTreeEvent * _arg0; | |
6389 | PyObject * _argo0 = 0; | |
6390 | char *_kwnames[] = { "self", NULL }; | |
6391 | ||
6392 | self = self; | |
6393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) | |
6394 | return NULL; | |
6395 | if (_argo0) { | |
6396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); | |
6399 | return NULL; | |
6400 | } | |
6401 | } | |
6402 | { | |
0e2ff151 | 6403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6404 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
6405 | _result = (wxString *) &_result_ref; | |
6406 | ||
0e2ff151 | 6407 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6408 | if (PyErr_Occurred()) return NULL; |
6409 | }{ | |
6410 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6411 | } | |
6412 | return _resultobj; | |
6413 | } | |
6414 | ||
6415 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { | |
6416 | wxPyTreeCtrl *src; | |
6417 | wxControl *dest; | |
6418 | src = (wxPyTreeCtrl *) ptr; | |
6419 | dest = (wxControl *) src; | |
6420 | return (void *) dest; | |
6421 | } | |
6422 | ||
6423 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { | |
6424 | wxPyTreeCtrl *src; | |
6425 | wxWindow *dest; | |
6426 | src = (wxPyTreeCtrl *) ptr; | |
6427 | dest = (wxWindow *) src; | |
6428 | return (void *) dest; | |
6429 | } | |
6430 | ||
6431 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { | |
6432 | wxPyTreeCtrl *src; | |
6433 | wxEvtHandler *dest; | |
6434 | src = (wxPyTreeCtrl *) ptr; | |
6435 | dest = (wxEvtHandler *) src; | |
6436 | return (void *) dest; | |
6437 | } | |
6438 | ||
6439 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { | |
6440 | wxPyTreeCtrl *src; | |
6441 | wxObject *dest; | |
6442 | src = (wxPyTreeCtrl *) ptr; | |
6443 | dest = (wxObject *) src; | |
6444 | return (void *) dest; | |
6445 | } | |
6446 | ||
6447 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6448 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6449 | PyObject * _resultobj; | |
6450 | wxPyTreeCtrl * _result; | |
6451 | wxWindow * _arg0; | |
6452 | wxWindowID _arg1 = (wxWindowID ) -1; | |
6453 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
6454 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
6455 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6456 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
6457 | char * _arg6 = (char *) "wxTreeCtrl"; | |
6458 | PyObject * _argo0 = 0; | |
6459 | wxPoint temp; | |
6460 | PyObject * _obj2 = 0; | |
6461 | wxSize temp0; | |
6462 | PyObject * _obj3 = 0; | |
6463 | PyObject * _argo5 = 0; | |
6464 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
6465 | char _ptemp[128]; | |
6466 | ||
6467 | self = self; | |
6468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) | |
6469 | return NULL; | |
6470 | if (_argo0) { | |
6471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); | |
6474 | return NULL; | |
6475 | } | |
6476 | } | |
6477 | if (_obj2) | |
6478 | { | |
6479 | _arg2 = &temp; | |
6480 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6481 | return NULL; | |
6482 | } | |
6483 | if (_obj3) | |
6484 | { | |
6485 | _arg3 = &temp0; | |
6486 | if (! wxSize_helper(_obj3, &_arg3)) | |
6487 | return NULL; | |
6488 | } | |
6489 | if (_argo5) { | |
6490 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6491 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
6492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); | |
6493 | return NULL; | |
6494 | } | |
6495 | } | |
6496 | { | |
0e2ff151 | 6497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6498 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
6499 | ||
0e2ff151 | 6500 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6501 | if (PyErr_Occurred()) return NULL; |
6502 | } if (_result) { | |
6503 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6504 | _resultobj = Py_BuildValue("s",_ptemp); | |
6505 | } else { | |
6506 | Py_INCREF(Py_None); | |
6507 | _resultobj = Py_None; | |
6508 | } | |
6509 | return _resultobj; | |
6510 | } | |
6511 | ||
6512 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) | |
6513 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6514 | PyObject * _resultobj; | |
6515 | wxPyTreeCtrl * _result; | |
6516 | char *_kwnames[] = { NULL }; | |
6517 | char _ptemp[128]; | |
6518 | ||
6519 | self = self; | |
6520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6521 | return NULL; | |
6522 | { | |
0e2ff151 | 6523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6524 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); |
6525 | ||
0e2ff151 | 6526 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6527 | if (PyErr_Occurred()) return NULL; |
6528 | } if (_result) { | |
6529 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6530 | _resultobj = Py_BuildValue("s",_ptemp); | |
6531 | } else { | |
6532 | Py_INCREF(Py_None); | |
6533 | _resultobj = Py_None; | |
6534 | } | |
6535 | return _resultobj; | |
6536 | } | |
6537 | ||
6538 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6539 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6540 | PyObject * _resultobj; | |
6541 | bool _result; | |
6542 | wxPyTreeCtrl * _arg0; | |
6543 | wxWindow * _arg1; | |
6544 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6545 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6546 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6547 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6548 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6549 | char * _arg7 = (char *) "wxTreeCtrl"; | |
6550 | PyObject * _argo0 = 0; | |
6551 | PyObject * _argo1 = 0; | |
6552 | wxPoint temp; | |
6553 | PyObject * _obj3 = 0; | |
6554 | wxSize temp0; | |
6555 | PyObject * _obj4 = 0; | |
6556 | PyObject * _argo6 = 0; | |
6557 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
6558 | ||
6559 | self = self; | |
6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
6561 | return NULL; | |
6562 | if (_argo0) { | |
6563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); | |
6566 | return NULL; | |
6567 | } | |
6568 | } | |
6569 | if (_argo1) { | |
6570 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6571 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
6573 | return NULL; | |
6574 | } | |
6575 | } | |
6576 | if (_obj3) | |
6577 | { | |
6578 | _arg3 = &temp; | |
6579 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6580 | return NULL; | |
6581 | } | |
6582 | if (_obj4) | |
6583 | { | |
6584 | _arg4 = &temp0; | |
6585 | if (! wxSize_helper(_obj4, &_arg4)) | |
6586 | return NULL; | |
6587 | } | |
6588 | if (_argo6) { | |
6589 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6590 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6592 | return NULL; | |
6593 | } | |
6594 | } | |
6595 | { | |
0e2ff151 | 6596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6597 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
6598 | ||
0e2ff151 | 6599 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6600 | if (PyErr_Occurred()) return NULL; |
6601 | } _resultobj = Py_BuildValue("i",_result); | |
6602 | return _resultobj; | |
6603 | } | |
6604 | ||
6605 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
6606 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6607 | PyObject * _resultobj; | |
6608 | wxPyTreeCtrl * _arg0; | |
6609 | PyObject * _arg1; | |
6610 | PyObject * _arg2; | |
6611 | PyObject * _argo0 = 0; | |
6612 | PyObject * _obj1 = 0; | |
6613 | PyObject * _obj2 = 0; | |
6614 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6615 | ||
6616 | self = self; | |
6617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
6618 | return NULL; | |
6619 | if (_argo0) { | |
6620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); | |
6623 | return NULL; | |
6624 | } | |
6625 | } | |
6626 | { | |
6627 | _arg1 = _obj1; | |
6628 | } | |
6629 | { | |
6630 | _arg2 = _obj2; | |
6631 | } | |
6632 | { | |
0e2ff151 | 6633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6634 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
6635 | ||
0e2ff151 | 6636 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6637 | if (PyErr_Occurred()) return NULL; |
6638 | } Py_INCREF(Py_None); | |
6639 | _resultobj = Py_None; | |
6640 | return _resultobj; | |
6641 | } | |
6642 | ||
6643 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) | |
6644 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6645 | PyObject * _resultobj; | |
6646 | size_t _result; | |
6647 | wxPyTreeCtrl * _arg0; | |
6648 | PyObject * _argo0 = 0; | |
6649 | char *_kwnames[] = { "self", NULL }; | |
6650 | ||
6651 | self = self; | |
6652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) | |
6653 | return NULL; | |
6654 | if (_argo0) { | |
6655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
6658 | return NULL; | |
6659 | } | |
6660 | } | |
6661 | { | |
0e2ff151 | 6662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6663 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
6664 | ||
0e2ff151 | 6665 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6666 | if (PyErr_Occurred()) return NULL; |
6667 | } _resultobj = Py_BuildValue("i",_result); | |
6668 | return _resultobj; | |
6669 | } | |
6670 | ||
6671 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) | |
6672 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6673 | PyObject * _resultobj; | |
6674 | unsigned int _result; | |
6675 | wxPyTreeCtrl * _arg0; | |
6676 | PyObject * _argo0 = 0; | |
6677 | char *_kwnames[] = { "self", NULL }; | |
6678 | ||
6679 | self = self; | |
6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) | |
6681 | return NULL; | |
6682 | if (_argo0) { | |
6683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
6686 | return NULL; | |
6687 | } | |
6688 | } | |
6689 | { | |
0e2ff151 | 6690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6691 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); |
6692 | ||
0e2ff151 | 6693 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6694 | if (PyErr_Occurred()) return NULL; |
6695 | } _resultobj = Py_BuildValue("i",_result); | |
6696 | return _resultobj; | |
6697 | } | |
6698 | ||
6699 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) | |
6700 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6701 | PyObject * _resultobj; | |
6702 | wxPyTreeCtrl * _arg0; | |
6703 | unsigned int _arg1; | |
6704 | PyObject * _argo0 = 0; | |
6705 | char *_kwnames[] = { "self","indent", NULL }; | |
6706 | ||
6707 | self = self; | |
6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) | |
6709 | return NULL; | |
6710 | if (_argo0) { | |
6711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
6714 | return NULL; | |
6715 | } | |
6716 | } | |
6717 | { | |
0e2ff151 | 6718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6719 | wxTreeCtrl_SetIndent(_arg0,_arg1); |
6720 | ||
0e2ff151 | 6721 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6722 | if (PyErr_Occurred()) return NULL; |
6723 | } Py_INCREF(Py_None); | |
6724 | _resultobj = Py_None; | |
6725 | return _resultobj; | |
6726 | } | |
6727 | ||
6728 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) | |
6729 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6730 | PyObject * _resultobj; | |
6731 | wxImageList * _result; | |
6732 | wxPyTreeCtrl * _arg0; | |
6733 | PyObject * _argo0 = 0; | |
6734 | char *_kwnames[] = { "self", NULL }; | |
6735 | ||
6736 | self = self; | |
6737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) | |
6738 | return NULL; | |
6739 | if (_argo0) { | |
6740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
6743 | return NULL; | |
6744 | } | |
6745 | } | |
6746 | { | |
0e2ff151 | 6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6748 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); |
6749 | ||
0e2ff151 | 6750 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6751 | if (PyErr_Occurred()) return NULL; |
6752 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6753 | return _resultobj; | |
6754 | } | |
6755 | ||
6756 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) | |
6757 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6758 | PyObject * _resultobj; | |
6759 | wxImageList * _result; | |
6760 | wxPyTreeCtrl * _arg0; | |
6761 | PyObject * _argo0 = 0; | |
6762 | char *_kwnames[] = { "self", NULL }; | |
6763 | ||
6764 | self = self; | |
6765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) | |
6766 | return NULL; | |
6767 | if (_argo0) { | |
6768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
6771 | return NULL; | |
6772 | } | |
6773 | } | |
6774 | { | |
0e2ff151 | 6775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6776 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); |
6777 | ||
0e2ff151 | 6778 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6779 | if (PyErr_Occurred()) return NULL; |
6780 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6781 | return _resultobj; | |
6782 | } | |
6783 | ||
6784 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) | |
6785 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6786 | PyObject * _resultobj; | |
6787 | wxPyTreeCtrl * _arg0; | |
6788 | wxImageList * _arg1; | |
6789 | PyObject * _argo0 = 0; | |
6790 | PyObject * _argo1 = 0; | |
6791 | char *_kwnames[] = { "self","imageList", NULL }; | |
6792 | ||
6793 | self = self; | |
6794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) | |
6795 | return NULL; | |
6796 | if (_argo0) { | |
6797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
6800 | return NULL; | |
6801 | } | |
6802 | } | |
6803 | if (_argo1) { | |
6804 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6805 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); | |
6807 | return NULL; | |
6808 | } | |
6809 | } | |
6810 | { | |
0e2ff151 | 6811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6812 | wxTreeCtrl_SetImageList(_arg0,_arg1); |
6813 | ||
0e2ff151 | 6814 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6815 | if (PyErr_Occurred()) return NULL; |
6816 | } Py_INCREF(Py_None); | |
6817 | _resultobj = Py_None; | |
6818 | return _resultobj; | |
6819 | } | |
6820 | ||
6821 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) | |
6822 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6823 | PyObject * _resultobj; | |
6824 | wxPyTreeCtrl * _arg0; | |
6825 | wxImageList * _arg1; | |
6826 | PyObject * _argo0 = 0; | |
6827 | PyObject * _argo1 = 0; | |
6828 | char *_kwnames[] = { "self","imageList", NULL }; | |
6829 | ||
6830 | self = self; | |
6831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) | |
6832 | return NULL; | |
6833 | if (_argo0) { | |
6834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
6837 | return NULL; | |
6838 | } | |
6839 | } | |
6840 | if (_argo1) { | |
6841 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6842 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); | |
6844 | return NULL; | |
6845 | } | |
6846 | } | |
6847 | { | |
0e2ff151 | 6848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6849 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); |
6850 | ||
0e2ff151 | 6851 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6852 | if (PyErr_Occurred()) return NULL; |
6853 | } Py_INCREF(Py_None); | |
6854 | _resultobj = Py_None; | |
6855 | return _resultobj; | |
6856 | } | |
6857 | ||
6858 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) | |
6859 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6860 | PyObject * _resultobj; | |
6861 | wxPyTreeCtrl * _arg0; | |
6862 | wxImageList * _arg1; | |
6863 | PyObject * _argo0 = 0; | |
6864 | PyObject * _argo1 = 0; | |
6865 | char *_kwnames[] = { "self","imageList", NULL }; | |
6866 | ||
6867 | self = self; | |
6868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6869 | return NULL; | |
6870 | if (_argo0) { | |
6871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6874 | return NULL; | |
6875 | } | |
6876 | } | |
6877 | if (_argo1) { | |
6878 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6879 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6881 | return NULL; | |
6882 | } | |
6883 | } | |
6884 | { | |
0e2ff151 | 6885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6886 | wxTreeCtrl_AssignImageList(_arg0,_arg1); |
6887 | ||
0e2ff151 | 6888 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6889 | if (PyErr_Occurred()) return NULL; |
6890 | } Py_INCREF(Py_None); | |
6891 | _resultobj = Py_None; | |
6892 | return _resultobj; | |
6893 | } | |
6894 | ||
6895 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6896 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6897 | PyObject * _resultobj; | |
6898 | wxPyTreeCtrl * _arg0; | |
6899 | wxImageList * _arg1; | |
6900 | PyObject * _argo0 = 0; | |
6901 | PyObject * _argo1 = 0; | |
6902 | char *_kwnames[] = { "self","imageList", NULL }; | |
6903 | ||
6904 | self = self; | |
6905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6906 | return NULL; | |
6907 | if (_argo0) { | |
6908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6911 | return NULL; | |
6912 | } | |
6913 | } | |
6914 | if (_argo1) { | |
6915 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6916 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6918 | return NULL; | |
6919 | } | |
6920 | } | |
6921 | { | |
0e2ff151 | 6922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6923 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); |
6924 | ||
0e2ff151 | 6925 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6926 | if (PyErr_Occurred()) return NULL; |
6927 | } Py_INCREF(Py_None); | |
6928 | _resultobj = Py_None; | |
6929 | return _resultobj; | |
6930 | } | |
6931 | ||
6932 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) | |
6933 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6934 | PyObject * _resultobj; | |
6935 | unsigned int _result; | |
6936 | wxPyTreeCtrl * _arg0; | |
6937 | PyObject * _argo0 = 0; | |
6938 | char *_kwnames[] = { "self", NULL }; | |
6939 | ||
6940 | self = self; | |
6941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6942 | return NULL; | |
6943 | if (_argo0) { | |
6944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
6947 | return NULL; | |
6948 | } | |
6949 | } | |
6950 | { | |
0e2ff151 | 6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6952 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); |
6953 | ||
0e2ff151 | 6954 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6955 | if (PyErr_Occurred()) return NULL; |
6956 | } _resultobj = Py_BuildValue("i",_result); | |
6957 | return _resultobj; | |
6958 | } | |
6959 | ||
6960 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6961 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6962 | PyObject * _resultobj; | |
6963 | wxPyTreeCtrl * _arg0; | |
6964 | unsigned int _arg1; | |
6965 | PyObject * _argo0 = 0; | |
6966 | char *_kwnames[] = { "self","spacing", NULL }; | |
6967 | ||
6968 | self = self; | |
6969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6970 | return NULL; | |
6971 | if (_argo0) { | |
6972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
6975 | return NULL; | |
6976 | } | |
6977 | } | |
6978 | { | |
0e2ff151 | 6979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
6980 | wxTreeCtrl_SetSpacing(_arg0,_arg1); |
6981 | ||
0e2ff151 | 6982 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6983 | if (PyErr_Occurred()) return NULL; |
6984 | } Py_INCREF(Py_None); | |
6985 | _resultobj = Py_None; | |
6986 | return _resultobj; | |
6987 | } | |
6988 | ||
6989 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
6990 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6991 | PyObject * _resultobj; | |
6992 | wxString * _result; | |
6993 | wxPyTreeCtrl * _arg0; | |
6994 | wxTreeItemId * _arg1; | |
6995 | PyObject * _argo0 = 0; | |
6996 | PyObject * _argo1 = 0; | |
6997 | char *_kwnames[] = { "self","item", NULL }; | |
6998 | ||
6999 | self = self; | |
7000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) | |
7001 | return NULL; | |
7002 | if (_argo0) { | |
7003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
7006 | return NULL; | |
7007 | } | |
7008 | } | |
7009 | if (_argo1) { | |
7010 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7011 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); | |
7013 | return NULL; | |
7014 | } | |
7015 | } | |
7016 | { | |
0e2ff151 | 7017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7018 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); |
7019 | ||
0e2ff151 | 7020 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7021 | if (PyErr_Occurred()) return NULL; |
7022 | }{ | |
7023 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7024 | } | |
7025 | { | |
7026 | delete _result; | |
7027 | } | |
7028 | return _resultobj; | |
7029 | } | |
7030 | ||
7031 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) | |
7032 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7033 | PyObject * _resultobj; | |
7034 | int _result; | |
7035 | wxPyTreeCtrl * _arg0; | |
7036 | wxTreeItemId * _arg1; | |
7037 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); | |
7038 | PyObject * _argo0 = 0; | |
7039 | PyObject * _argo1 = 0; | |
7040 | char *_kwnames[] = { "self","item","which", NULL }; | |
7041 | ||
7042 | self = self; | |
7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7044 | return NULL; | |
7045 | if (_argo0) { | |
7046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
7049 | return NULL; | |
7050 | } | |
7051 | } | |
7052 | if (_argo1) { | |
7053 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7054 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); | |
7056 | return NULL; | |
7057 | } | |
7058 | } | |
7059 | { | |
0e2ff151 | 7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7061 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
7062 | ||
0e2ff151 | 7063 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7064 | if (PyErr_Occurred()) return NULL; |
7065 | } _resultobj = Py_BuildValue("i",_result); | |
7066 | return _resultobj; | |
7067 | } | |
7068 | ||
7069 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) | |
7070 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7071 | PyObject * _resultobj; | |
7072 | int _result; | |
7073 | wxPyTreeCtrl * _arg0; | |
7074 | wxTreeItemId * _arg1; | |
7075 | PyObject * _argo0 = 0; | |
7076 | PyObject * _argo1 = 0; | |
7077 | char *_kwnames[] = { "self","item", NULL }; | |
7078 | ||
7079 | self = self; | |
7080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) | |
7081 | return NULL; | |
7082 | if (_argo0) { | |
7083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
7086 | return NULL; | |
7087 | } | |
7088 | } | |
7089 | if (_argo1) { | |
7090 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7091 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); | |
7093 | return NULL; | |
7094 | } | |
7095 | } | |
7096 | { | |
0e2ff151 | 7097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7098 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); |
7099 | ||
0e2ff151 | 7100 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7101 | if (PyErr_Occurred()) return NULL; |
7102 | } _resultobj = Py_BuildValue("i",_result); | |
7103 | return _resultobj; | |
7104 | } | |
7105 | ||
7106 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
7107 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7108 | PyObject * _resultobj; | |
7109 | wxPyTreeCtrl * _arg0; | |
7110 | wxTreeItemId * _arg1; | |
7111 | wxString * _arg2; | |
7112 | PyObject * _argo0 = 0; | |
7113 | PyObject * _argo1 = 0; | |
7114 | PyObject * _obj2 = 0; | |
7115 | char *_kwnames[] = { "self","item","text", NULL }; | |
7116 | ||
7117 | self = self; | |
7118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7119 | return NULL; | |
7120 | if (_argo0) { | |
7121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
7124 | return NULL; | |
7125 | } | |
7126 | } | |
7127 | if (_argo1) { | |
7128 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7129 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); | |
7131 | return NULL; | |
7132 | } | |
7133 | } | |
7134 | { | |
7135 | #if PYTHON_API_VERSION >= 1009 | |
7136 | char* tmpPtr; int tmpSize; | |
7137 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7138 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7139 | return NULL; | |
7140 | } | |
7141 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7142 | return NULL; | |
7143 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7144 | #else | |
7145 | if (!PyString_Check(_obj2)) { | |
7146 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7147 | return NULL; | |
7148 | } | |
7149 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
7150 | #endif | |
7151 | } | |
7152 | { | |
0e2ff151 | 7153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7154 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); |
7155 | ||
0e2ff151 | 7156 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7157 | if (PyErr_Occurred()) return NULL; |
7158 | } Py_INCREF(Py_None); | |
7159 | _resultobj = Py_None; | |
7160 | { | |
7161 | if (_obj2) | |
7162 | delete _arg2; | |
7163 | } | |
7164 | return _resultobj; | |
7165 | } | |
7166 | ||
7167 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
7168 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7169 | PyObject * _resultobj; | |
7170 | wxPyTreeCtrl * _arg0; | |
7171 | wxTreeItemId * _arg1; | |
7172 | int _arg2; | |
7173 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); | |
7174 | PyObject * _argo0 = 0; | |
7175 | PyObject * _argo1 = 0; | |
7176 | char *_kwnames[] = { "self","item","image","which", NULL }; | |
7177 | ||
7178 | self = self; | |
7179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
7180 | return NULL; | |
7181 | if (_argo0) { | |
7182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
7185 | return NULL; | |
7186 | } | |
7187 | } | |
7188 | if (_argo1) { | |
7189 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7190 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); | |
7192 | return NULL; | |
7193 | } | |
7194 | } | |
7195 | { | |
0e2ff151 | 7196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7197 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
7198 | ||
0e2ff151 | 7199 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7200 | if (PyErr_Occurred()) return NULL; |
7201 | } Py_INCREF(Py_None); | |
7202 | _resultobj = Py_None; | |
7203 | return _resultobj; | |
7204 | } | |
7205 | ||
7206 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) | |
7207 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7208 | PyObject * _resultobj; | |
7209 | wxPyTreeCtrl * _arg0; | |
7210 | wxTreeItemId * _arg1; | |
7211 | int _arg2; | |
7212 | PyObject * _argo0 = 0; | |
7213 | PyObject * _argo1 = 0; | |
7214 | char *_kwnames[] = { "self","item","image", NULL }; | |
7215 | ||
7216 | self = self; | |
7217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7218 | return NULL; | |
7219 | if (_argo0) { | |
7220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
7223 | return NULL; | |
7224 | } | |
7225 | } | |
7226 | if (_argo1) { | |
7227 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7228 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); | |
7230 | return NULL; | |
7231 | } | |
7232 | } | |
7233 | { | |
0e2ff151 | 7234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7235 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); |
7236 | ||
0e2ff151 | 7237 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7238 | if (PyErr_Occurred()) return NULL; |
7239 | } Py_INCREF(Py_None); | |
7240 | _resultobj = Py_None; | |
7241 | return _resultobj; | |
7242 | } | |
7243 | ||
7244 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
7245 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7246 | PyObject * _resultobj; | |
7247 | wxPyTreeCtrl * _arg0; | |
7248 | wxTreeItemId * _arg1; | |
7249 | bool _arg2 = (bool ) TRUE; | |
7250 | PyObject * _argo0 = 0; | |
7251 | PyObject * _argo1 = 0; | |
7252 | int tempbool2 = (int) TRUE; | |
7253 | char *_kwnames[] = { "self","item","hasChildren", NULL }; | |
7254 | ||
7255 | self = self; | |
7256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
7257 | return NULL; | |
7258 | if (_argo0) { | |
7259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
7262 | return NULL; | |
7263 | } | |
7264 | } | |
7265 | if (_argo1) { | |
7266 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7267 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); | |
7269 | return NULL; | |
7270 | } | |
7271 | } | |
7272 | _arg2 = (bool ) tempbool2; | |
7273 | { | |
0e2ff151 | 7274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7275 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); |
7276 | ||
0e2ff151 | 7277 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7278 | if (PyErr_Occurred()) return NULL; |
7279 | } Py_INCREF(Py_None); | |
7280 | _resultobj = Py_None; | |
7281 | return _resultobj; | |
7282 | } | |
7283 | ||
7284 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { | |
7285 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
7286 | if (data == NULL) { | |
7287 | data = new wxPyTreeItemData(); | |
7288 | data->SetId(item); // set the id | |
7289 | self->SetItemData(item, data); | |
7290 | } | |
7291 | return data; | |
7292 | } | |
7293 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7294 | PyObject * _resultobj; | |
7295 | wxPyTreeItemData * _result; | |
7296 | wxPyTreeCtrl * _arg0; | |
7297 | wxTreeItemId * _arg1; | |
7298 | PyObject * _argo0 = 0; | |
7299 | PyObject * _argo1 = 0; | |
7300 | char *_kwnames[] = { "self","item", NULL }; | |
7301 | char _ptemp[128]; | |
7302 | ||
7303 | self = self; | |
7304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) | |
7305 | return NULL; | |
7306 | if (_argo0) { | |
7307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
7310 | return NULL; | |
7311 | } | |
7312 | } | |
7313 | if (_argo1) { | |
7314 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7315 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); | |
7317 | return NULL; | |
7318 | } | |
7319 | } | |
7320 | { | |
0e2ff151 | 7321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7322 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
7323 | ||
0e2ff151 | 7324 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7325 | if (PyErr_Occurred()) return NULL; |
7326 | } if (_result) { | |
7327 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7328 | _resultobj = Py_BuildValue("s",_ptemp); | |
7329 | } else { | |
7330 | Py_INCREF(Py_None); | |
7331 | _resultobj = Py_None; | |
7332 | } | |
7333 | return _resultobj; | |
7334 | } | |
7335 | ||
7336 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { | |
7337 | data->SetId(item); // set the id | |
7338 | self->SetItemData(item, data); | |
7339 | } | |
7340 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7341 | PyObject * _resultobj; | |
7342 | wxPyTreeCtrl * _arg0; | |
7343 | wxTreeItemId * _arg1; | |
7344 | wxPyTreeItemData * _arg2; | |
7345 | PyObject * _argo0 = 0; | |
7346 | PyObject * _argo1 = 0; | |
7347 | PyObject * _argo2 = 0; | |
7348 | char *_kwnames[] = { "self","item","data", NULL }; | |
7349 | ||
7350 | self = self; | |
7351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) | |
7352 | return NULL; | |
7353 | if (_argo0) { | |
7354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
7357 | return NULL; | |
7358 | } | |
7359 | } | |
7360 | if (_argo1) { | |
7361 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); | |
7364 | return NULL; | |
7365 | } | |
7366 | } | |
7367 | if (_argo2) { | |
7368 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7369 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
7370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); | |
7371 | return NULL; | |
7372 | } | |
7373 | } | |
7374 | { | |
0e2ff151 | 7375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7376 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
7377 | ||
0e2ff151 | 7378 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7379 | if (PyErr_Occurred()) return NULL; |
7380 | } Py_INCREF(Py_None); | |
7381 | _resultobj = Py_None; | |
7382 | return _resultobj; | |
7383 | } | |
7384 | ||
7385 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { | |
7386 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
7387 | if (data == NULL) { | |
7388 | data = new wxPyTreeItemData(); | |
7389 | data->SetId(item); // set the id | |
7390 | self->SetItemData(item, data); | |
7391 | } | |
7392 | return data->GetData(); | |
7393 | } | |
7394 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7395 | PyObject * _resultobj; | |
7396 | PyObject * _result; | |
7397 | wxPyTreeCtrl * _arg0; | |
7398 | wxTreeItemId * _arg1; | |
7399 | PyObject * _argo0 = 0; | |
7400 | PyObject * _argo1 = 0; | |
7401 | char *_kwnames[] = { "self","item", NULL }; | |
7402 | ||
7403 | self = self; | |
7404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) | |
7405 | return NULL; | |
7406 | if (_argo0) { | |
7407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
7410 | return NULL; | |
7411 | } | |
7412 | } | |
7413 | if (_argo1) { | |
7414 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7415 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); | |
7417 | return NULL; | |
7418 | } | |
7419 | } | |
7420 | { | |
0e2ff151 | 7421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7422 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
7423 | ||
0e2ff151 | 7424 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7425 | if (PyErr_Occurred()) return NULL; |
7426 | }{ | |
7427 | _resultobj = _result; | |
7428 | } | |
7429 | return _resultobj; | |
7430 | } | |
7431 | ||
7432 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { | |
7433 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
7434 | if (data == NULL) { | |
7435 | data = new wxPyTreeItemData(obj); | |
7436 | data->SetId(item); // set the id | |
7437 | self->SetItemData(item, data); | |
7438 | } else | |
7439 | data->SetData(obj); | |
7440 | } | |
7441 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7442 | PyObject * _resultobj; | |
7443 | wxPyTreeCtrl * _arg0; | |
7444 | wxTreeItemId * _arg1; | |
7445 | PyObject * _arg2; | |
7446 | PyObject * _argo0 = 0; | |
7447 | PyObject * _argo1 = 0; | |
7448 | PyObject * _obj2 = 0; | |
7449 | char *_kwnames[] = { "self","item","obj", NULL }; | |
7450 | ||
7451 | self = self; | |
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7453 | return NULL; | |
7454 | if (_argo0) { | |
7455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
7458 | return NULL; | |
7459 | } | |
7460 | } | |
7461 | if (_argo1) { | |
7462 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7463 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); | |
7465 | return NULL; | |
7466 | } | |
7467 | } | |
7468 | { | |
7469 | _arg2 = _obj2; | |
7470 | } | |
7471 | { | |
0e2ff151 | 7472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7473 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
7474 | ||
0e2ff151 | 7475 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7476 | if (PyErr_Occurred()) return NULL; |
7477 | } Py_INCREF(Py_None); | |
7478 | _resultobj = Py_None; | |
7479 | return _resultobj; | |
7480 | } | |
7481 | ||
7482 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) | |
7483 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7484 | PyObject * _resultobj; | |
7485 | bool _result; | |
7486 | wxPyTreeCtrl * _arg0; | |
7487 | wxTreeItemId * _arg1; | |
7488 | PyObject * _argo0 = 0; | |
7489 | PyObject * _argo1 = 0; | |
7490 | char *_kwnames[] = { "self","item", NULL }; | |
7491 | ||
7492 | self = self; | |
7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) | |
7494 | return NULL; | |
7495 | if (_argo0) { | |
7496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
7499 | return NULL; | |
7500 | } | |
7501 | } | |
7502 | if (_argo1) { | |
7503 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7504 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); | |
7506 | return NULL; | |
7507 | } | |
7508 | } | |
7509 | { | |
0e2ff151 | 7510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7511 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); |
7512 | ||
0e2ff151 | 7513 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7514 | if (PyErr_Occurred()) return NULL; |
7515 | } _resultobj = Py_BuildValue("i",_result); | |
7516 | return _resultobj; | |
7517 | } | |
7518 | ||
7519 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) | |
7520 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7521 | PyObject * _resultobj; | |
7522 | bool _result; | |
7523 | wxPyTreeCtrl * _arg0; | |
7524 | wxTreeItemId * _arg1; | |
7525 | PyObject * _argo0 = 0; | |
7526 | PyObject * _argo1 = 0; | |
7527 | char *_kwnames[] = { "self","item", NULL }; | |
7528 | ||
7529 | self = self; | |
7530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) | |
7531 | return NULL; | |
7532 | if (_argo0) { | |
7533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
7536 | return NULL; | |
7537 | } | |
7538 | } | |
7539 | if (_argo1) { | |
7540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); | |
7543 | return NULL; | |
7544 | } | |
7545 | } | |
7546 | { | |
0e2ff151 | 7547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7548 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); |
7549 | ||
0e2ff151 | 7550 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7551 | if (PyErr_Occurred()) return NULL; |
7552 | } _resultobj = Py_BuildValue("i",_result); | |
7553 | return _resultobj; | |
7554 | } | |
7555 | ||
7556 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) | |
7557 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7558 | PyObject * _resultobj; | |
7559 | bool _result; | |
7560 | wxPyTreeCtrl * _arg0; | |
7561 | wxTreeItemId * _arg1; | |
7562 | PyObject * _argo0 = 0; | |
7563 | PyObject * _argo1 = 0; | |
7564 | char *_kwnames[] = { "self","item", NULL }; | |
7565 | ||
7566 | self = self; | |
7567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) | |
7568 | return NULL; | |
7569 | if (_argo0) { | |
7570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
7573 | return NULL; | |
7574 | } | |
7575 | } | |
7576 | if (_argo1) { | |
7577 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7578 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); | |
7580 | return NULL; | |
7581 | } | |
7582 | } | |
7583 | { | |
0e2ff151 | 7584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7585 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); |
7586 | ||
0e2ff151 | 7587 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7588 | if (PyErr_Occurred()) return NULL; |
7589 | } _resultobj = Py_BuildValue("i",_result); | |
7590 | return _resultobj; | |
7591 | } | |
7592 | ||
7593 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
7594 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7595 | PyObject * _resultobj; | |
7596 | bool _result; | |
7597 | wxPyTreeCtrl * _arg0; | |
7598 | wxTreeItemId * _arg1; | |
7599 | PyObject * _argo0 = 0; | |
7600 | PyObject * _argo1 = 0; | |
7601 | char *_kwnames[] = { "self","item", NULL }; | |
7602 | ||
7603 | self = self; | |
7604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) | |
7605 | return NULL; | |
7606 | if (_argo0) { | |
7607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
7610 | return NULL; | |
7611 | } | |
7612 | } | |
7613 | if (_argo1) { | |
7614 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7615 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); | |
7617 | return NULL; | |
7618 | } | |
7619 | } | |
7620 | { | |
0e2ff151 | 7621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7622 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); |
7623 | ||
0e2ff151 | 7624 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7625 | if (PyErr_Occurred()) return NULL; |
7626 | } _resultobj = Py_BuildValue("i",_result); | |
7627 | return _resultobj; | |
7628 | } | |
7629 | ||
7630 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
7631 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7632 | PyObject * _resultobj; | |
7633 | wxTreeItemId * _result; | |
7634 | wxPyTreeCtrl * _arg0; | |
7635 | PyObject * _argo0 = 0; | |
7636 | char *_kwnames[] = { "self", NULL }; | |
7637 | char _ptemp[128]; | |
7638 | ||
7639 | self = self; | |
7640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) | |
7641 | return NULL; | |
7642 | if (_argo0) { | |
7643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
7646 | return NULL; | |
7647 | } | |
7648 | } | |
7649 | { | |
0e2ff151 | 7650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7651 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); |
7652 | ||
0e2ff151 | 7653 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7654 | if (PyErr_Occurred()) return NULL; |
7655 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7656 | _resultobj = Py_BuildValue("s",_ptemp); | |
7657 | return _resultobj; | |
7658 | } | |
7659 | ||
7660 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
7661 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7662 | PyObject * _resultobj; | |
7663 | wxTreeItemId * _result; | |
7664 | wxPyTreeCtrl * _arg0; | |
7665 | PyObject * _argo0 = 0; | |
7666 | char *_kwnames[] = { "self", NULL }; | |
7667 | char _ptemp[128]; | |
7668 | ||
7669 | self = self; | |
7670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) | |
7671 | return NULL; | |
7672 | if (_argo0) { | |
7673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
7676 | return NULL; | |
7677 | } | |
7678 | } | |
7679 | { | |
0e2ff151 | 7680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7681 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); |
7682 | ||
0e2ff151 | 7683 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7684 | if (PyErr_Occurred()) return NULL; |
7685 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7686 | _resultobj = Py_BuildValue("s",_ptemp); | |
7687 | return _resultobj; | |
7688 | } | |
7689 | ||
7690 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) | |
7691 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7692 | PyObject * _resultobj; | |
7693 | wxTreeItemId * _result; | |
7694 | wxPyTreeCtrl * _arg0; | |
7695 | wxTreeItemId * _arg1; | |
7696 | PyObject * _argo0 = 0; | |
7697 | PyObject * _argo1 = 0; | |
7698 | char *_kwnames[] = { "self","item", NULL }; | |
7699 | char _ptemp[128]; | |
7700 | ||
7701 | self = self; | |
7702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) | |
7703 | return NULL; | |
7704 | if (_argo0) { | |
7705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
7708 | return NULL; | |
7709 | } | |
7710 | } | |
7711 | if (_argo1) { | |
7712 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7713 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); | |
7715 | return NULL; | |
7716 | } | |
7717 | } | |
7718 | { | |
0e2ff151 | 7719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7720 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
7721 | ||
0e2ff151 | 7722 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7723 | if (PyErr_Occurred()) return NULL; |
7724 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7725 | _resultobj = Py_BuildValue("s",_ptemp); | |
7726 | return _resultobj; | |
7727 | } | |
7728 | ||
7729 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { | |
0e2ff151 | 7730 | wxPyBeginBlockThreads(); |
e6056257 RD |
7731 | PyObject* rval = PyList_New(0); |
7732 | wxArrayTreeItemIds array; | |
7733 | size_t num, x; | |
7734 | num = self->GetSelections(array); | |
7735 | for (x=0; x < num; x++) { | |
7736 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
7737 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
7738 | PyList_Append(rval, item); | |
7739 | } | |
0e2ff151 | 7740 | wxPyEndBlockThreads(); |
e6056257 RD |
7741 | return rval; |
7742 | } | |
7743 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7744 | PyObject * _resultobj; | |
7745 | PyObject * _result; | |
7746 | wxPyTreeCtrl * _arg0; | |
7747 | PyObject * _argo0 = 0; | |
7748 | char *_kwnames[] = { "self", NULL }; | |
7749 | ||
7750 | self = self; | |
7751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7752 | return NULL; | |
7753 | if (_argo0) { | |
7754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
7757 | return NULL; | |
7758 | } | |
7759 | } | |
7760 | { | |
0e2ff151 | 7761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7762 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
7763 | ||
0e2ff151 | 7764 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7765 | if (PyErr_Occurred()) return NULL; |
7766 | }{ | |
7767 | _resultobj = _result; | |
7768 | } | |
7769 | return _resultobj; | |
7770 | } | |
7771 | ||
7772 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) | |
7773 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7774 | PyObject * _resultobj; | |
7775 | size_t _result; | |
7776 | wxPyTreeCtrl * _arg0; | |
7777 | wxTreeItemId * _arg1; | |
7778 | bool _arg2 = (bool ) TRUE; | |
7779 | PyObject * _argo0 = 0; | |
7780 | PyObject * _argo1 = 0; | |
7781 | int tempbool2 = (int) TRUE; | |
7782 | char *_kwnames[] = { "self","item","recursively", NULL }; | |
7783 | ||
7784 | self = self; | |
7785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
7786 | return NULL; | |
7787 | if (_argo0) { | |
7788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
7791 | return NULL; | |
7792 | } | |
7793 | } | |
7794 | if (_argo1) { | |
7795 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7796 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); | |
7798 | return NULL; | |
7799 | } | |
7800 | } | |
7801 | _arg2 = (bool ) tempbool2; | |
7802 | { | |
0e2ff151 | 7803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7804 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); |
7805 | ||
0e2ff151 | 7806 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7807 | if (PyErr_Occurred()) return NULL; |
7808 | } _resultobj = Py_BuildValue("i",_result); | |
7809 | return _resultobj; | |
7810 | } | |
7811 | ||
7812 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) | |
7813 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7814 | PyObject * _resultobj; | |
7815 | wxTreeItemId * _result; | |
7816 | wxPyTreeCtrl * _arg0; | |
7817 | wxTreeItemId * _arg1; | |
7818 | long * _arg2; | |
7819 | PyObject * _argo0 = 0; | |
7820 | PyObject * _argo1 = 0; | |
7821 | long temp; | |
7822 | PyObject * _obj2 = 0; | |
7823 | char *_kwnames[] = { "self","item","INOUT", NULL }; | |
7824 | char _ptemp[128]; | |
7825 | ||
7826 | self = self; | |
7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7828 | return NULL; | |
7829 | if (_argo0) { | |
7830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
7833 | return NULL; | |
7834 | } | |
7835 | } | |
7836 | if (_argo1) { | |
7837 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7838 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); | |
7840 | return NULL; | |
7841 | } | |
7842 | } | |
7843 | { | |
7844 | temp = (long) PyInt_AsLong(_obj2); | |
7845 | _arg2 = &temp; | |
7846 | } | |
7847 | { | |
0e2ff151 | 7848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7849 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); |
7850 | ||
0e2ff151 | 7851 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7852 | if (PyErr_Occurred()) return NULL; |
7853 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7854 | _resultobj = Py_BuildValue("s",_ptemp); | |
7855 | { | |
7856 | PyObject *o; | |
7857 | o = PyInt_FromLong((long) (*_arg2)); | |
7858 | _resultobj = t_output_helper(_resultobj, o); | |
7859 | } | |
7860 | return _resultobj; | |
7861 | } | |
7862 | ||
7863 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) | |
7864 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7865 | PyObject * _resultobj; | |
7866 | wxTreeItemId * _result; | |
7867 | wxPyTreeCtrl * _arg0; | |
7868 | wxTreeItemId * _arg1; | |
7869 | long * _arg2; | |
7870 | PyObject * _argo0 = 0; | |
7871 | PyObject * _argo1 = 0; | |
7872 | long temp; | |
7873 | PyObject * _obj2 = 0; | |
7874 | char *_kwnames[] = { "self","item","INOUT", NULL }; | |
7875 | char _ptemp[128]; | |
7876 | ||
7877 | self = self; | |
7878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7879 | return NULL; | |
7880 | if (_argo0) { | |
7881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
7884 | return NULL; | |
7885 | } | |
7886 | } | |
7887 | if (_argo1) { | |
7888 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7889 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); | |
7891 | return NULL; | |
7892 | } | |
7893 | } | |
7894 | { | |
7895 | temp = (long) PyInt_AsLong(_obj2); | |
7896 | _arg2 = &temp; | |
7897 | } | |
7898 | { | |
0e2ff151 | 7899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7900 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); |
7901 | ||
0e2ff151 | 7902 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7903 | if (PyErr_Occurred()) return NULL; |
7904 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7905 | _resultobj = Py_BuildValue("s",_ptemp); | |
7906 | { | |
7907 | PyObject *o; | |
7908 | o = PyInt_FromLong((long) (*_arg2)); | |
7909 | _resultobj = t_output_helper(_resultobj, o); | |
7910 | } | |
7911 | return _resultobj; | |
7912 | } | |
7913 | ||
7914 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) | |
7915 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7916 | PyObject * _resultobj; | |
7917 | wxTreeItemId * _result; | |
7918 | wxPyTreeCtrl * _arg0; | |
7919 | wxTreeItemId * _arg1; | |
7920 | PyObject * _argo0 = 0; | |
7921 | PyObject * _argo1 = 0; | |
7922 | char *_kwnames[] = { "self","item", NULL }; | |
7923 | char _ptemp[128]; | |
7924 | ||
7925 | self = self; | |
7926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) | |
7927 | return NULL; | |
7928 | if (_argo0) { | |
7929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
7932 | return NULL; | |
7933 | } | |
7934 | } | |
7935 | if (_argo1) { | |
7936 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7937 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); | |
7939 | return NULL; | |
7940 | } | |
7941 | } | |
7942 | { | |
0e2ff151 | 7943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7944 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); |
7945 | ||
0e2ff151 | 7946 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7947 | if (PyErr_Occurred()) return NULL; |
7948 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7949 | _resultobj = Py_BuildValue("s",_ptemp); | |
7950 | return _resultobj; | |
7951 | } | |
7952 | ||
7953 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) | |
7954 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7955 | PyObject * _resultobj; | |
7956 | wxTreeItemId * _result; | |
7957 | wxPyTreeCtrl * _arg0; | |
7958 | wxTreeItemId * _arg1; | |
7959 | PyObject * _argo0 = 0; | |
7960 | PyObject * _argo1 = 0; | |
7961 | char *_kwnames[] = { "self","item", NULL }; | |
7962 | char _ptemp[128]; | |
7963 | ||
7964 | self = self; | |
7965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) | |
7966 | return NULL; | |
7967 | if (_argo0) { | |
7968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
7971 | return NULL; | |
7972 | } | |
7973 | } | |
7974 | if (_argo1) { | |
7975 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7976 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); | |
7978 | return NULL; | |
7979 | } | |
7980 | } | |
7981 | { | |
0e2ff151 | 7982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
7983 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); |
7984 | ||
0e2ff151 | 7985 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7986 | if (PyErr_Occurred()) return NULL; |
7987 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7988 | _resultobj = Py_BuildValue("s",_ptemp); | |
7989 | return _resultobj; | |
7990 | } | |
7991 | ||
7992 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) | |
7993 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7994 | PyObject * _resultobj; | |
7995 | wxTreeItemId * _result; | |
7996 | wxPyTreeCtrl * _arg0; | |
7997 | PyObject * _argo0 = 0; | |
7998 | char *_kwnames[] = { "self", NULL }; | |
7999 | char _ptemp[128]; | |
8000 | ||
8001 | self = self; | |
8002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) | |
8003 | return NULL; | |
8004 | if (_argo0) { | |
8005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8008 | return NULL; | |
8009 | } | |
8010 | } | |
8011 | { | |
0e2ff151 | 8012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8013 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); |
8014 | ||
0e2ff151 | 8015 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8016 | if (PyErr_Occurred()) return NULL; |
8017 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8018 | _resultobj = Py_BuildValue("s",_ptemp); | |
8019 | return _resultobj; | |
8020 | } | |
8021 | ||
8022 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) | |
8023 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8024 | PyObject * _resultobj; | |
8025 | wxTreeItemId * _result; | |
8026 | wxPyTreeCtrl * _arg0; | |
8027 | wxTreeItemId * _arg1; | |
8028 | PyObject * _argo0 = 0; | |
8029 | PyObject * _argo1 = 0; | |
8030 | char *_kwnames[] = { "self","item", NULL }; | |
8031 | char _ptemp[128]; | |
8032 | ||
8033 | self = self; | |
8034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) | |
8035 | return NULL; | |
8036 | if (_argo0) { | |
8037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8040 | return NULL; | |
8041 | } | |
8042 | } | |
8043 | if (_argo1) { | |
8044 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8045 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); | |
8047 | return NULL; | |
8048 | } | |
8049 | } | |
8050 | { | |
0e2ff151 | 8051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8052 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); |
8053 | ||
0e2ff151 | 8054 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8055 | if (PyErr_Occurred()) return NULL; |
8056 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8057 | _resultobj = Py_BuildValue("s",_ptemp); | |
8058 | return _resultobj; | |
8059 | } | |
8060 | ||
8061 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) | |
8062 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8063 | PyObject * _resultobj; | |
8064 | wxTreeItemId * _result; | |
8065 | wxPyTreeCtrl * _arg0; | |
8066 | wxTreeItemId * _arg1; | |
8067 | PyObject * _argo0 = 0; | |
8068 | PyObject * _argo1 = 0; | |
8069 | char *_kwnames[] = { "self","item", NULL }; | |
8070 | char _ptemp[128]; | |
8071 | ||
8072 | self = self; | |
8073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) | |
8074 | return NULL; | |
8075 | if (_argo0) { | |
8076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8079 | return NULL; | |
8080 | } | |
8081 | } | |
8082 | if (_argo1) { | |
8083 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8084 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); | |
8086 | return NULL; | |
8087 | } | |
8088 | } | |
8089 | { | |
0e2ff151 | 8090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8091 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); |
8092 | ||
0e2ff151 | 8093 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8094 | if (PyErr_Occurred()) return NULL; |
8095 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8096 | _resultobj = Py_BuildValue("s",_ptemp); | |
8097 | return _resultobj; | |
8098 | } | |
8099 | ||
8100 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) | |
8101 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8102 | PyObject * _resultobj; | |
8103 | wxTreeItemId * _result; | |
8104 | wxPyTreeCtrl * _arg0; | |
8105 | wxTreeItemId * _arg1; | |
8106 | PyObject * _argo0 = 0; | |
8107 | PyObject * _argo1 = 0; | |
8108 | char *_kwnames[] = { "self","item", NULL }; | |
8109 | char _ptemp[128]; | |
8110 | ||
8111 | self = self; | |
8112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8113 | return NULL; | |
8114 | if (_argo0) { | |
8115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
8118 | return NULL; | |
8119 | } | |
8120 | } | |
8121 | if (_argo1) { | |
8122 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8123 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8125 | return NULL; | |
8126 | } | |
8127 | } | |
8128 | { | |
0e2ff151 | 8129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8130 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); |
8131 | ||
0e2ff151 | 8132 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8133 | if (PyErr_Occurred()) return NULL; |
8134 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8135 | _resultobj = Py_BuildValue("s",_ptemp); | |
8136 | return _resultobj; | |
8137 | } | |
8138 | ||
8139 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8140 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8141 | PyObject * _resultobj; | |
8142 | wxTreeItemId * _result; | |
8143 | wxPyTreeCtrl * _arg0; | |
8144 | wxString * _arg1; | |
8145 | int _arg2 = (int ) -1; | |
8146 | int _arg3 = (int ) -1; | |
8147 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8148 | PyObject * _argo0 = 0; | |
8149 | PyObject * _obj1 = 0; | |
8150 | PyObject * _argo4 = 0; | |
8151 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; | |
8152 | char _ptemp[128]; | |
8153 | ||
8154 | self = self; | |
8155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) | |
8156 | return NULL; | |
8157 | if (_argo0) { | |
8158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8161 | return NULL; | |
8162 | } | |
8163 | } | |
8164 | { | |
8165 | #if PYTHON_API_VERSION >= 1009 | |
8166 | char* tmpPtr; int tmpSize; | |
8167 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8168 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8169 | return NULL; | |
8170 | } | |
8171 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8172 | return NULL; | |
8173 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8174 | #else | |
8175 | if (!PyString_Check(_obj1)) { | |
8176 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8177 | return NULL; | |
8178 | } | |
8179 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8180 | #endif | |
8181 | } | |
8182 | if (_argo4) { | |
8183 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8184 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
8185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); | |
8186 | return NULL; | |
8187 | } | |
8188 | } | |
8189 | { | |
0e2ff151 | 8190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8191 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); |
8192 | ||
0e2ff151 | 8193 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8194 | if (PyErr_Occurred()) return NULL; |
8195 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8196 | _resultobj = Py_BuildValue("s",_ptemp); | |
8197 | { | |
8198 | if (_obj1) | |
8199 | delete _arg1; | |
8200 | } | |
8201 | return _resultobj; | |
8202 | } | |
8203 | ||
8204 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8205 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8206 | PyObject * _resultobj; | |
8207 | wxTreeItemId * _result; | |
8208 | wxPyTreeCtrl * _arg0; | |
8209 | wxTreeItemId * _arg1; | |
8210 | wxString * _arg2; | |
8211 | int _arg3 = (int ) -1; | |
8212 | int _arg4 = (int ) -1; | |
8213 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8214 | PyObject * _argo0 = 0; | |
8215 | PyObject * _argo1 = 0; | |
8216 | PyObject * _obj2 = 0; | |
8217 | PyObject * _argo5 = 0; | |
8218 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; | |
8219 | char _ptemp[128]; | |
8220 | ||
8221 | self = self; | |
8222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) | |
8223 | return NULL; | |
8224 | if (_argo0) { | |
8225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8228 | return NULL; | |
8229 | } | |
8230 | } | |
8231 | if (_argo1) { | |
8232 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8233 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); | |
8235 | return NULL; | |
8236 | } | |
8237 | } | |
8238 | { | |
8239 | #if PYTHON_API_VERSION >= 1009 | |
8240 | char* tmpPtr; int tmpSize; | |
8241 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8242 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8243 | return NULL; | |
8244 | } | |
8245 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8246 | return NULL; | |
8247 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8248 | #else | |
8249 | if (!PyString_Check(_obj2)) { | |
8250 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8251 | return NULL; | |
8252 | } | |
8253 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8254 | #endif | |
8255 | } | |
8256 | if (_argo5) { | |
8257 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8258 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
8259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); | |
8260 | return NULL; | |
8261 | } | |
8262 | } | |
8263 | { | |
0e2ff151 | 8264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8265 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
8266 | ||
0e2ff151 | 8267 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8268 | if (PyErr_Occurred()) return NULL; |
8269 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8270 | _resultobj = Py_BuildValue("s",_ptemp); | |
8271 | { | |
8272 | if (_obj2) | |
8273 | delete _arg2; | |
8274 | } | |
8275 | return _resultobj; | |
8276 | } | |
8277 | ||
8278 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8279 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8280 | PyObject * _resultobj; | |
8281 | wxTreeItemId * _result; | |
8282 | wxPyTreeCtrl * _arg0; | |
8283 | wxTreeItemId * _arg1; | |
8284 | wxTreeItemId * _arg2; | |
8285 | wxString * _arg3; | |
8286 | int _arg4 = (int ) -1; | |
8287 | int _arg5 = (int ) -1; | |
8288 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8289 | PyObject * _argo0 = 0; | |
8290 | PyObject * _argo1 = 0; | |
8291 | PyObject * _argo2 = 0; | |
8292 | PyObject * _obj3 = 0; | |
8293 | PyObject * _argo6 = 0; | |
8294 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; | |
8295 | char _ptemp[128]; | |
8296 | ||
8297 | self = self; | |
8298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8299 | return NULL; | |
8300 | if (_argo0) { | |
8301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8304 | return NULL; | |
8305 | } | |
8306 | } | |
8307 | if (_argo1) { | |
8308 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8309 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); | |
8311 | return NULL; | |
8312 | } | |
8313 | } | |
8314 | if (_argo2) { | |
8315 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8316 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
8317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); | |
8318 | return NULL; | |
8319 | } | |
8320 | } | |
8321 | { | |
8322 | #if PYTHON_API_VERSION >= 1009 | |
8323 | char* tmpPtr; int tmpSize; | |
8324 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8325 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8326 | return NULL; | |
8327 | } | |
8328 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8329 | return NULL; | |
8330 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8331 | #else | |
8332 | if (!PyString_Check(_obj3)) { | |
8333 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8334 | return NULL; | |
8335 | } | |
8336 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8337 | #endif | |
8338 | } | |
8339 | if (_argo6) { | |
8340 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8341 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
8342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); | |
8343 | return NULL; | |
8344 | } | |
8345 | } | |
8346 | { | |
0e2ff151 | 8347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8348 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); |
8349 | ||
0e2ff151 | 8350 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8351 | if (PyErr_Occurred()) return NULL; |
8352 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8353 | _resultobj = Py_BuildValue("s",_ptemp); | |
8354 | { | |
8355 | if (_obj3) | |
8356 | delete _arg3; | |
8357 | } | |
8358 | return _resultobj; | |
8359 | } | |
8360 | ||
8361 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8362 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8363 | PyObject * _resultobj; | |
8364 | wxTreeItemId * _result; | |
8365 | wxPyTreeCtrl * _arg0; | |
8366 | wxTreeItemId * _arg1; | |
8367 | size_t _arg2; | |
8368 | wxString * _arg3; | |
8369 | int _arg4 = (int ) -1; | |
8370 | int _arg5 = (int ) -1; | |
8371 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
8372 | PyObject * _argo0 = 0; | |
8373 | PyObject * _argo1 = 0; | |
8374 | PyObject * _obj3 = 0; | |
8375 | PyObject * _argo6 = 0; | |
8376 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8377 | char _ptemp[128]; | |
8378 | ||
8379 | self = self; | |
8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8381 | return NULL; | |
8382 | if (_argo0) { | |
8383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8386 | return NULL; | |
8387 | } | |
8388 | } | |
8389 | if (_argo1) { | |
8390 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8391 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8393 | return NULL; | |
8394 | } | |
8395 | } | |
8396 | { | |
8397 | #if PYTHON_API_VERSION >= 1009 | |
8398 | char* tmpPtr; int tmpSize; | |
8399 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
8400 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8401 | return NULL; | |
8402 | } | |
8403 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8404 | return NULL; | |
8405 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8406 | #else | |
8407 | if (!PyString_Check(_obj3)) { | |
8408 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8409 | return NULL; | |
8410 | } | |
8411 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
8412 | #endif | |
8413 | } | |
8414 | if (_argo6) { | |
8415 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8416 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
8417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
8418 | return NULL; | |
8419 | } | |
8420 | } | |
8421 | { | |
0e2ff151 | 8422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8423 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); |
8424 | ||
0e2ff151 | 8425 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8426 | if (PyErr_Occurred()) return NULL; |
8427 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8428 | _resultobj = Py_BuildValue("s",_ptemp); | |
8429 | { | |
8430 | if (_obj3) | |
8431 | delete _arg3; | |
8432 | } | |
8433 | return _resultobj; | |
8434 | } | |
8435 | ||
8436 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8437 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8438 | PyObject * _resultobj; | |
8439 | wxTreeItemId * _result; | |
8440 | wxPyTreeCtrl * _arg0; | |
8441 | wxTreeItemId * _arg1; | |
8442 | wxString * _arg2; | |
8443 | int _arg3 = (int ) -1; | |
8444 | int _arg4 = (int ) -1; | |
8445 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8446 | PyObject * _argo0 = 0; | |
8447 | PyObject * _argo1 = 0; | |
8448 | PyObject * _obj2 = 0; | |
8449 | PyObject * _argo5 = 0; | |
8450 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; | |
8451 | char _ptemp[128]; | |
8452 | ||
8453 | self = self; | |
8454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) | |
8455 | return NULL; | |
8456 | if (_argo0) { | |
8457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
8460 | return NULL; | |
8461 | } | |
8462 | } | |
8463 | if (_argo1) { | |
8464 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8465 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); | |
8467 | return NULL; | |
8468 | } | |
8469 | } | |
8470 | { | |
8471 | #if PYTHON_API_VERSION >= 1009 | |
8472 | char* tmpPtr; int tmpSize; | |
8473 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8474 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8475 | return NULL; | |
8476 | } | |
8477 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8478 | return NULL; | |
8479 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8480 | #else | |
8481 | if (!PyString_Check(_obj2)) { | |
8482 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8483 | return NULL; | |
8484 | } | |
8485 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8486 | #endif | |
8487 | } | |
8488 | if (_argo5) { | |
8489 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8490 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
8491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); | |
8492 | return NULL; | |
8493 | } | |
8494 | } | |
8495 | { | |
0e2ff151 | 8496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8497 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); |
8498 | ||
0e2ff151 | 8499 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8500 | if (PyErr_Occurred()) return NULL; |
8501 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8502 | _resultobj = Py_BuildValue("s",_ptemp); | |
8503 | { | |
8504 | if (_obj2) | |
8505 | delete _arg2; | |
8506 | } | |
8507 | return _resultobj; | |
8508 | } | |
8509 | ||
8510 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
8511 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8512 | PyObject * _resultobj; | |
8513 | wxPyTreeCtrl * _arg0; | |
8514 | wxTreeItemId * _arg1; | |
8515 | PyObject * _argo0 = 0; | |
8516 | PyObject * _argo1 = 0; | |
8517 | char *_kwnames[] = { "self","item", NULL }; | |
8518 | ||
8519 | self = self; | |
8520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) | |
8521 | return NULL; | |
8522 | if (_argo0) { | |
8523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8526 | return NULL; | |
8527 | } | |
8528 | } | |
8529 | if (_argo1) { | |
8530 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8531 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); | |
8533 | return NULL; | |
8534 | } | |
8535 | } | |
8536 | { | |
0e2ff151 | 8537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8538 | wxTreeCtrl_Delete(_arg0,*_arg1); |
8539 | ||
0e2ff151 | 8540 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8541 | if (PyErr_Occurred()) return NULL; |
8542 | } Py_INCREF(Py_None); | |
8543 | _resultobj = Py_None; | |
8544 | return _resultobj; | |
8545 | } | |
8546 | ||
8547 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) | |
8548 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8549 | PyObject * _resultobj; | |
8550 | wxPyTreeCtrl * _arg0; | |
8551 | wxTreeItemId * _arg1; | |
8552 | PyObject * _argo0 = 0; | |
8553 | PyObject * _argo1 = 0; | |
8554 | char *_kwnames[] = { "self","item", NULL }; | |
8555 | ||
8556 | self = self; | |
8557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) | |
8558 | return NULL; | |
8559 | if (_argo0) { | |
8560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
8563 | return NULL; | |
8564 | } | |
8565 | } | |
8566 | if (_argo1) { | |
8567 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8568 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); | |
8570 | return NULL; | |
8571 | } | |
8572 | } | |
8573 | { | |
0e2ff151 | 8574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8575 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); |
8576 | ||
0e2ff151 | 8577 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8578 | if (PyErr_Occurred()) return NULL; |
8579 | } Py_INCREF(Py_None); | |
8580 | _resultobj = Py_None; | |
8581 | return _resultobj; | |
8582 | } | |
8583 | ||
8584 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
8585 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8586 | PyObject * _resultobj; | |
8587 | wxPyTreeCtrl * _arg0; | |
8588 | PyObject * _argo0 = 0; | |
8589 | char *_kwnames[] = { "self", NULL }; | |
8590 | ||
8591 | self = self; | |
8592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
8593 | return NULL; | |
8594 | if (_argo0) { | |
8595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
8598 | return NULL; | |
8599 | } | |
8600 | } | |
8601 | { | |
0e2ff151 | 8602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8603 | wxTreeCtrl_DeleteAllItems(_arg0); |
8604 | ||
0e2ff151 | 8605 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8606 | if (PyErr_Occurred()) return NULL; |
8607 | } Py_INCREF(Py_None); | |
8608 | _resultobj = Py_None; | |
8609 | return _resultobj; | |
8610 | } | |
8611 | ||
8612 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
8613 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8614 | PyObject * _resultobj; | |
8615 | wxPyTreeCtrl * _arg0; | |
8616 | wxTreeItemId * _arg1; | |
8617 | PyObject * _argo0 = 0; | |
8618 | PyObject * _argo1 = 0; | |
8619 | char *_kwnames[] = { "self","item", NULL }; | |
8620 | ||
8621 | self = self; | |
8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) | |
8623 | return NULL; | |
8624 | if (_argo0) { | |
8625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
8628 | return NULL; | |
8629 | } | |
8630 | } | |
8631 | if (_argo1) { | |
8632 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8633 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); | |
8635 | return NULL; | |
8636 | } | |
8637 | } | |
8638 | { | |
0e2ff151 | 8639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8640 | wxTreeCtrl_Expand(_arg0,*_arg1); |
8641 | ||
0e2ff151 | 8642 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8643 | if (PyErr_Occurred()) return NULL; |
8644 | } Py_INCREF(Py_None); | |
8645 | _resultobj = Py_None; | |
8646 | return _resultobj; | |
8647 | } | |
8648 | ||
8649 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
8650 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8651 | PyObject * _resultobj; | |
8652 | wxPyTreeCtrl * _arg0; | |
8653 | wxTreeItemId * _arg1; | |
8654 | PyObject * _argo0 = 0; | |
8655 | PyObject * _argo1 = 0; | |
8656 | char *_kwnames[] = { "self","item", NULL }; | |
8657 | ||
8658 | self = self; | |
8659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) | |
8660 | return NULL; | |
8661 | if (_argo0) { | |
8662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
8665 | return NULL; | |
8666 | } | |
8667 | } | |
8668 | if (_argo1) { | |
8669 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8670 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); | |
8672 | return NULL; | |
8673 | } | |
8674 | } | |
8675 | { | |
0e2ff151 | 8676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8677 | wxTreeCtrl_Collapse(_arg0,*_arg1); |
8678 | ||
0e2ff151 | 8679 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8680 | if (PyErr_Occurred()) return NULL; |
8681 | } Py_INCREF(Py_None); | |
8682 | _resultobj = Py_None; | |
8683 | return _resultobj; | |
8684 | } | |
8685 | ||
8686 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
8687 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8688 | PyObject * _resultobj; | |
8689 | wxPyTreeCtrl * _arg0; | |
8690 | wxTreeItemId * _arg1; | |
8691 | PyObject * _argo0 = 0; | |
8692 | PyObject * _argo1 = 0; | |
8693 | char *_kwnames[] = { "self","item", NULL }; | |
8694 | ||
8695 | self = self; | |
8696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) | |
8697 | return NULL; | |
8698 | if (_argo0) { | |
8699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
8702 | return NULL; | |
8703 | } | |
8704 | } | |
8705 | if (_argo1) { | |
8706 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8707 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); | |
8709 | return NULL; | |
8710 | } | |
8711 | } | |
8712 | { | |
0e2ff151 | 8713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8714 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); |
8715 | ||
0e2ff151 | 8716 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8717 | if (PyErr_Occurred()) return NULL; |
8718 | } Py_INCREF(Py_None); | |
8719 | _resultobj = Py_None; | |
8720 | return _resultobj; | |
8721 | } | |
8722 | ||
8723 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
8724 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8725 | PyObject * _resultobj; | |
8726 | wxPyTreeCtrl * _arg0; | |
8727 | wxTreeItemId * _arg1; | |
8728 | PyObject * _argo0 = 0; | |
8729 | PyObject * _argo1 = 0; | |
8730 | char *_kwnames[] = { "self","item", NULL }; | |
8731 | ||
8732 | self = self; | |
8733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) | |
8734 | return NULL; | |
8735 | if (_argo0) { | |
8736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
8739 | return NULL; | |
8740 | } | |
8741 | } | |
8742 | if (_argo1) { | |
8743 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8744 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); | |
8746 | return NULL; | |
8747 | } | |
8748 | } | |
8749 | { | |
0e2ff151 | 8750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8751 | wxTreeCtrl_Toggle(_arg0,*_arg1); |
8752 | ||
0e2ff151 | 8753 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8754 | if (PyErr_Occurred()) return NULL; |
8755 | } Py_INCREF(Py_None); | |
8756 | _resultobj = Py_None; | |
8757 | return _resultobj; | |
8758 | } | |
8759 | ||
8760 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
8761 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8762 | PyObject * _resultobj; | |
8763 | wxPyTreeCtrl * _arg0; | |
8764 | PyObject * _argo0 = 0; | |
8765 | char *_kwnames[] = { "self", NULL }; | |
8766 | ||
8767 | self = self; | |
8768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) | |
8769 | return NULL; | |
8770 | if (_argo0) { | |
8771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
8774 | return NULL; | |
8775 | } | |
8776 | } | |
8777 | { | |
0e2ff151 | 8778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8779 | wxTreeCtrl_Unselect(_arg0); |
8780 | ||
0e2ff151 | 8781 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8782 | if (PyErr_Occurred()) return NULL; |
8783 | } Py_INCREF(Py_None); | |
8784 | _resultobj = Py_None; | |
8785 | return _resultobj; | |
8786 | } | |
8787 | ||
8788 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) | |
8789 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8790 | PyObject * _resultobj; | |
8791 | wxPyTreeCtrl * _arg0; | |
8792 | PyObject * _argo0 = 0; | |
8793 | char *_kwnames[] = { "self", NULL }; | |
8794 | ||
8795 | self = self; | |
8796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) | |
8797 | return NULL; | |
8798 | if (_argo0) { | |
8799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8802 | return NULL; | |
8803 | } | |
8804 | } | |
8805 | { | |
0e2ff151 | 8806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8807 | wxTreeCtrl_UnselectAll(_arg0); |
8808 | ||
0e2ff151 | 8809 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8810 | if (PyErr_Occurred()) return NULL; |
8811 | } Py_INCREF(Py_None); | |
8812 | _resultobj = Py_None; | |
8813 | return _resultobj; | |
8814 | } | |
8815 | ||
8816 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) | |
8817 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8818 | PyObject * _resultobj; | |
8819 | wxPyTreeCtrl * _arg0; | |
8820 | wxTreeItemId * _arg1; | |
8821 | PyObject * _argo0 = 0; | |
8822 | PyObject * _argo1 = 0; | |
8823 | char *_kwnames[] = { "self","item", NULL }; | |
8824 | ||
8825 | self = self; | |
8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) | |
8827 | return NULL; | |
8828 | if (_argo0) { | |
8829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
8832 | return NULL; | |
8833 | } | |
8834 | } | |
8835 | if (_argo1) { | |
8836 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8837 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); | |
8839 | return NULL; | |
8840 | } | |
8841 | } | |
8842 | { | |
0e2ff151 | 8843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8844 | wxTreeCtrl_SelectItem(_arg0,*_arg1); |
8845 | ||
0e2ff151 | 8846 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8847 | if (PyErr_Occurred()) return NULL; |
8848 | } Py_INCREF(Py_None); | |
8849 | _resultobj = Py_None; | |
8850 | return _resultobj; | |
8851 | } | |
8852 | ||
8853 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
8854 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8855 | PyObject * _resultobj; | |
8856 | wxPyTreeCtrl * _arg0; | |
8857 | wxTreeItemId * _arg1; | |
8858 | PyObject * _argo0 = 0; | |
8859 | PyObject * _argo1 = 0; | |
8860 | char *_kwnames[] = { "self","item", NULL }; | |
8861 | ||
8862 | self = self; | |
8863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) | |
8864 | return NULL; | |
8865 | if (_argo0) { | |
8866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
8869 | return NULL; | |
8870 | } | |
8871 | } | |
8872 | if (_argo1) { | |
8873 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8874 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); | |
8876 | return NULL; | |
8877 | } | |
8878 | } | |
8879 | { | |
0e2ff151 | 8880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8881 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); |
8882 | ||
0e2ff151 | 8883 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8884 | if (PyErr_Occurred()) return NULL; |
8885 | } Py_INCREF(Py_None); | |
8886 | _resultobj = Py_None; | |
8887 | return _resultobj; | |
8888 | } | |
8889 | ||
8890 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
8891 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8892 | PyObject * _resultobj; | |
8893 | wxPyTreeCtrl * _arg0; | |
8894 | wxTreeItemId * _arg1; | |
8895 | PyObject * _argo0 = 0; | |
8896 | PyObject * _argo1 = 0; | |
8897 | char *_kwnames[] = { "self","item", NULL }; | |
8898 | ||
8899 | self = self; | |
8900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) | |
8901 | return NULL; | |
8902 | if (_argo0) { | |
8903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
8906 | return NULL; | |
8907 | } | |
8908 | } | |
8909 | if (_argo1) { | |
8910 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8911 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); | |
8913 | return NULL; | |
8914 | } | |
8915 | } | |
8916 | { | |
0e2ff151 | 8917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8918 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); |
8919 | ||
0e2ff151 | 8920 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8921 | if (PyErr_Occurred()) return NULL; |
8922 | } Py_INCREF(Py_None); | |
8923 | _resultobj = Py_None; | |
8924 | return _resultobj; | |
8925 | } | |
8926 | ||
8927 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
8928 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8929 | PyObject * _resultobj; | |
8930 | wxPyTreeCtrl * _arg0; | |
8931 | wxTreeItemId * _arg1; | |
8932 | PyObject * _argo0 = 0; | |
8933 | PyObject * _argo1 = 0; | |
8934 | char *_kwnames[] = { "self","item", NULL }; | |
8935 | ||
8936 | self = self; | |
8937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) | |
8938 | return NULL; | |
8939 | if (_argo0) { | |
8940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
8943 | return NULL; | |
8944 | } | |
8945 | } | |
8946 | if (_argo1) { | |
8947 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8948 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); | |
8950 | return NULL; | |
8951 | } | |
8952 | } | |
8953 | { | |
0e2ff151 | 8954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8955 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
8956 | ||
0e2ff151 | 8957 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8958 | if (PyErr_Occurred()) return NULL; |
8959 | } Py_INCREF(Py_None); | |
8960 | _resultobj = Py_None; | |
8961 | return _resultobj; | |
8962 | } | |
8963 | ||
8964 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) | |
8965 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8966 | PyObject * _resultobj; | |
8967 | wxPyTreeCtrl * _arg0; | |
8968 | wxTreeItemId * _arg1; | |
8969 | PyObject * _argo0 = 0; | |
8970 | PyObject * _argo1 = 0; | |
8971 | char *_kwnames[] = { "self","item", NULL }; | |
8972 | ||
8973 | self = self; | |
8974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8975 | return NULL; | |
8976 | if (_argo0) { | |
8977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
8980 | return NULL; | |
8981 | } | |
8982 | } | |
8983 | if (_argo1) { | |
8984 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8985 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8987 | return NULL; | |
8988 | } | |
8989 | } | |
8990 | { | |
0e2ff151 | 8991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
8992 | wxTreeCtrl_SortChildren(_arg0,*_arg1); |
8993 | ||
0e2ff151 | 8994 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8995 | if (PyErr_Occurred()) return NULL; |
8996 | } Py_INCREF(Py_None); | |
8997 | _resultobj = Py_None; | |
8998 | return _resultobj; | |
8999 | } | |
9000 | ||
9001 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) | |
9002 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9003 | PyObject * _resultobj; | |
9004 | wxPyTreeCtrl * _arg0; | |
9005 | wxTreeItemId * _arg1; | |
9006 | int _arg2 = (int ) TRUE; | |
9007 | PyObject * _argo0 = 0; | |
9008 | PyObject * _argo1 = 0; | |
9009 | char *_kwnames[] = { "self","item","bold", NULL }; | |
9010 | ||
9011 | self = self; | |
9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9013 | return NULL; | |
9014 | if (_argo0) { | |
9015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
9018 | return NULL; | |
9019 | } | |
9020 | } | |
9021 | if (_argo1) { | |
9022 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9023 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); | |
9025 | return NULL; | |
9026 | } | |
9027 | } | |
9028 | { | |
0e2ff151 | 9029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9030 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); |
9031 | ||
0e2ff151 | 9032 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9033 | if (PyErr_Occurred()) return NULL; |
9034 | } Py_INCREF(Py_None); | |
9035 | _resultobj = Py_None; | |
9036 | return _resultobj; | |
9037 | } | |
9038 | ||
9039 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
9040 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9041 | PyObject * _resultobj; | |
9042 | bool _result; | |
9043 | wxPyTreeCtrl * _arg0; | |
9044 | wxTreeItemId * _arg1; | |
9045 | PyObject * _argo0 = 0; | |
9046 | PyObject * _argo1 = 0; | |
9047 | char *_kwnames[] = { "self","item", NULL }; | |
9048 | ||
9049 | self = self; | |
9050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) | |
9051 | return NULL; | |
9052 | if (_argo0) { | |
9053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
9056 | return NULL; | |
9057 | } | |
9058 | } | |
9059 | if (_argo1) { | |
9060 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9061 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); | |
9063 | return NULL; | |
9064 | } | |
9065 | } | |
9066 | { | |
0e2ff151 | 9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9068 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); |
9069 | ||
0e2ff151 | 9070 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9071 | if (PyErr_Occurred()) return NULL; |
9072 | } _resultobj = Py_BuildValue("i",_result); | |
9073 | return _resultobj; | |
9074 | } | |
9075 | ||
9076 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
9077 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9078 | PyObject * _resultobj; | |
9079 | wxTreeItemId * _result; | |
9080 | wxPyTreeCtrl * _arg0; | |
9081 | wxPoint * _arg1; | |
9082 | int * _arg2; | |
9083 | int temp; | |
9084 | PyObject * _argo0 = 0; | |
9085 | wxPoint temp0; | |
9086 | PyObject * _obj1 = 0; | |
9087 | char *_kwnames[] = { "self","point", NULL }; | |
9088 | char _ptemp[128]; | |
9089 | ||
9090 | self = self; | |
9091 | { | |
9092 | _arg2 = &temp; | |
9093 | } | |
9094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
9095 | return NULL; | |
9096 | if (_argo0) { | |
9097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
9100 | return NULL; | |
9101 | } | |
9102 | } | |
9103 | { | |
9104 | _arg1 = &temp0; | |
9105 | if (! wxPoint_helper(_obj1, &_arg1)) | |
9106 | return NULL; | |
9107 | } | |
9108 | { | |
0e2ff151 | 9109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9110 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
9111 | ||
0e2ff151 | 9112 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9113 | if (PyErr_Occurred()) return NULL; |
9114 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
9115 | _resultobj = Py_BuildValue("s",_ptemp); | |
9116 | { | |
9117 | PyObject *o; | |
9118 | o = PyInt_FromLong((long) (*_arg2)); | |
9119 | _resultobj = t_output_helper(_resultobj, o); | |
9120 | } | |
9121 | return _resultobj; | |
9122 | } | |
9123 | ||
9124 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) | |
9125 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9126 | PyObject * _resultobj; | |
9127 | wxPyTreeCtrl * _arg0; | |
9128 | wxTreeItemId * _arg1; | |
9129 | wxColour * _arg2; | |
9130 | PyObject * _argo0 = 0; | |
9131 | PyObject * _argo1 = 0; | |
9132 | wxColour temp; | |
9133 | PyObject * _obj2 = 0; | |
9134 | char *_kwnames[] = { "self","item","col", NULL }; | |
9135 | ||
9136 | self = self; | |
9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9138 | return NULL; | |
9139 | if (_argo0) { | |
9140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
9143 | return NULL; | |
9144 | } | |
9145 | } | |
9146 | if (_argo1) { | |
9147 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9148 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9150 | return NULL; | |
9151 | } | |
9152 | } | |
9153 | { | |
9154 | _arg2 = &temp; | |
9155 | if (! wxColour_helper(_obj2, &_arg2)) | |
9156 | return NULL; | |
9157 | } | |
9158 | { | |
0e2ff151 | 9159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9160 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); |
9161 | ||
0e2ff151 | 9162 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9163 | if (PyErr_Occurred()) return NULL; |
9164 | } Py_INCREF(Py_None); | |
9165 | _resultobj = Py_None; | |
9166 | return _resultobj; | |
9167 | } | |
9168 | ||
9169 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9170 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9171 | PyObject * _resultobj; | |
9172 | wxPyTreeCtrl * _arg0; | |
9173 | wxTreeItemId * _arg1; | |
9174 | wxColour * _arg2; | |
9175 | PyObject * _argo0 = 0; | |
9176 | PyObject * _argo1 = 0; | |
9177 | wxColour temp; | |
9178 | PyObject * _obj2 = 0; | |
9179 | char *_kwnames[] = { "self","item","col", NULL }; | |
9180 | ||
9181 | self = self; | |
9182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9183 | return NULL; | |
9184 | if (_argo0) { | |
9185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
9188 | return NULL; | |
9189 | } | |
9190 | } | |
9191 | if (_argo1) { | |
9192 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9193 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9195 | return NULL; | |
9196 | } | |
9197 | } | |
9198 | { | |
9199 | _arg2 = &temp; | |
9200 | if (! wxColour_helper(_obj2, &_arg2)) | |
9201 | return NULL; | |
9202 | } | |
9203 | { | |
0e2ff151 | 9204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9205 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); |
9206 | ||
0e2ff151 | 9207 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9208 | if (PyErr_Occurred()) return NULL; |
9209 | } Py_INCREF(Py_None); | |
9210 | _resultobj = Py_None; | |
9211 | return _resultobj; | |
9212 | } | |
9213 | ||
9214 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9215 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9216 | PyObject * _resultobj; | |
9217 | wxPyTreeCtrl * _arg0; | |
9218 | wxTreeItemId * _arg1; | |
9219 | wxFont * _arg2; | |
9220 | PyObject * _argo0 = 0; | |
9221 | PyObject * _argo1 = 0; | |
9222 | PyObject * _argo2 = 0; | |
9223 | char *_kwnames[] = { "self","item","font", NULL }; | |
9224 | ||
9225 | self = self; | |
9226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9227 | return NULL; | |
9228 | if (_argo0) { | |
9229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
9232 | return NULL; | |
9233 | } | |
9234 | } | |
9235 | if (_argo1) { | |
9236 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9237 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9239 | return NULL; | |
9240 | } | |
9241 | } | |
9242 | if (_argo2) { | |
9243 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9244 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9246 | return NULL; | |
9247 | } | |
9248 | } | |
9249 | { | |
0e2ff151 | 9250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
9251 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); |
9252 | ||
0e2ff151 | 9253 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9254 | if (PyErr_Occurred()) return NULL; |
9255 | } Py_INCREF(Py_None); | |
9256 | _resultobj = Py_None; | |
9257 | return _resultobj; | |
9258 | } | |
9259 | ||
00360d46 RD |
9260 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
9261 | wxRect rect; | |
9262 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
0e2ff151 | 9263 | wxPyBeginBlockThreads(); |
00360d46 RD |
9264 | wxRect* r = new wxRect(rect); |
9265 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
0e2ff151 | 9266 | wxPyEndBlockThreads(); |
00360d46 RD |
9267 | return val; |
9268 | } | |
9269 | else { | |
9270 | Py_INCREF(Py_None); | |
9271 | return Py_None; | |
9272 | } | |
9273 | } | |
9274 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9275 | PyObject * _resultobj; | |
9276 | PyObject * _result; | |
9277 | wxPyTreeCtrl * _arg0; | |
9278 | wxTreeItemId * _arg1; | |
9279 | int _arg2 = (int ) FALSE; | |
9280 | PyObject * _argo0 = 0; | |
9281 | PyObject * _argo1 = 0; | |
9282 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9283 | ||
9284 | self = self; | |
9285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9286 | return NULL; | |
9287 | if (_argo0) { | |
9288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
9291 | return NULL; | |
9292 | } | |
9293 | } | |
9294 | if (_argo1) { | |
9295 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9296 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9298 | return NULL; | |
9299 | } | |
9300 | } | |
9301 | { | |
0e2ff151 | 9302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
00360d46 RD |
9303 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
9304 | ||
0e2ff151 | 9305 | wxPyEndAllowThreads(__tstate); |
00360d46 RD |
9306 | if (PyErr_Occurred()) return NULL; |
9307 | }{ | |
9308 | _resultobj = _result; | |
9309 | } | |
9310 | return _resultobj; | |
9311 | } | |
9312 | ||
d1e76a37 RD |
9313 | static void *SwigwxDirItemDataTowxObject(void *ptr) { |
9314 | wxDirItemData *src; | |
9315 | wxObject *dest; | |
9316 | src = (wxDirItemData *) ptr; | |
9317 | dest = (wxObject *) src; | |
9318 | return (void *) dest; | |
9319 | } | |
9320 | ||
9321 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9322 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9323 | PyObject * _resultobj; | |
9324 | wxDirItemData * _result; | |
9325 | wxString * _arg0; | |
9326 | wxString * _arg1; | |
9327 | bool _arg2; | |
9328 | PyObject * _obj0 = 0; | |
9329 | PyObject * _obj1 = 0; | |
9330 | int tempbool2; | |
9331 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9332 | char _ptemp[128]; | |
9333 | ||
9334 | self = self; | |
9335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9336 | return NULL; | |
9337 | { | |
9338 | #if PYTHON_API_VERSION >= 1009 | |
9339 | char* tmpPtr; int tmpSize; | |
9340 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
9341 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9342 | return NULL; | |
9343 | } | |
9344 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9345 | return NULL; | |
9346 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9347 | #else | |
9348 | if (!PyString_Check(_obj0)) { | |
9349 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9350 | return NULL; | |
9351 | } | |
9352 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9353 | #endif | |
9354 | } | |
9355 | { | |
9356 | #if PYTHON_API_VERSION >= 1009 | |
9357 | char* tmpPtr; int tmpSize; | |
9358 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9359 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9360 | return NULL; | |
9361 | } | |
9362 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9363 | return NULL; | |
9364 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9365 | #else | |
9366 | if (!PyString_Check(_obj1)) { | |
9367 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9368 | return NULL; | |
9369 | } | |
9370 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9371 | #endif | |
9372 | } | |
9373 | _arg2 = (bool ) tempbool2; | |
9374 | { | |
9375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9376 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); | |
9377 | ||
9378 | wxPyEndAllowThreads(__tstate); | |
9379 | if (PyErr_Occurred()) return NULL; | |
9380 | } if (_result) { | |
9381 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9382 | _resultobj = Py_BuildValue("s",_ptemp); | |
9383 | } else { | |
9384 | Py_INCREF(Py_None); | |
9385 | _resultobj = Py_None; | |
9386 | } | |
9387 | { | |
9388 | if (_obj0) | |
9389 | delete _arg0; | |
9390 | } | |
9391 | { | |
9392 | if (_obj1) | |
9393 | delete _arg1; | |
9394 | } | |
9395 | return _resultobj; | |
9396 | } | |
9397 | ||
9398 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9399 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9400 | PyObject * _resultobj; | |
9401 | wxDirItemData * _arg0; | |
9402 | wxString * _arg1; | |
9403 | PyObject * _argo0 = 0; | |
9404 | PyObject * _obj1 = 0; | |
9405 | char *_kwnames[] = { "self","path", NULL }; | |
9406 | ||
9407 | self = self; | |
9408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9409 | return NULL; | |
9410 | if (_argo0) { | |
9411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9414 | return NULL; | |
9415 | } | |
9416 | } | |
9417 | { | |
9418 | #if PYTHON_API_VERSION >= 1009 | |
9419 | char* tmpPtr; int tmpSize; | |
9420 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9421 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9422 | return NULL; | |
9423 | } | |
9424 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9425 | return NULL; | |
9426 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9427 | #else | |
9428 | if (!PyString_Check(_obj1)) { | |
9429 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9430 | return NULL; | |
9431 | } | |
9432 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9433 | #endif | |
9434 | } | |
9435 | { | |
9436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9437 | wxDirItemData_SetNewDirName(_arg0,*_arg1); | |
9438 | ||
9439 | wxPyEndAllowThreads(__tstate); | |
9440 | if (PyErr_Occurred()) return NULL; | |
9441 | } Py_INCREF(Py_None); | |
9442 | _resultobj = Py_None; | |
9443 | { | |
9444 | if (_obj1) | |
9445 | delete _arg1; | |
9446 | } | |
9447 | return _resultobj; | |
9448 | } | |
9449 | ||
9450 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9451 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9452 | PyObject * _resultobj; | |
9453 | wxString * _result; | |
9454 | wxDirItemData * _arg0; | |
9455 | wxString * _arg1; | |
9456 | PyObject * _argo0 = 0; | |
9457 | PyObject * _obj1 = 0; | |
9458 | char *_kwnames[] = { "self","m_path", NULL }; | |
9459 | ||
9460 | self = self; | |
9461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9462 | return NULL; | |
9463 | if (_argo0) { | |
9464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9467 | return NULL; | |
9468 | } | |
9469 | } | |
9470 | { | |
9471 | #if PYTHON_API_VERSION >= 1009 | |
9472 | char* tmpPtr; int tmpSize; | |
9473 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9474 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9475 | return NULL; | |
9476 | } | |
9477 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9478 | return NULL; | |
9479 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9480 | #else | |
9481 | if (!PyString_Check(_obj1)) { | |
9482 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9483 | return NULL; | |
9484 | } | |
9485 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9486 | #endif | |
9487 | } | |
9488 | { | |
9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9490 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); | |
9491 | ||
9492 | wxPyEndAllowThreads(__tstate); | |
9493 | if (PyErr_Occurred()) return NULL; | |
9494 | }{ | |
9495 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9496 | } | |
9497 | { | |
9498 | if (_obj1) | |
9499 | delete _arg1; | |
9500 | } | |
9501 | return _resultobj; | |
9502 | } | |
9503 | ||
9504 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9505 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9506 | PyObject * _resultobj; | |
9507 | wxString * _result; | |
9508 | wxDirItemData * _arg0; | |
9509 | PyObject * _argo0 = 0; | |
9510 | char *_kwnames[] = { "self", NULL }; | |
9511 | ||
9512 | self = self; | |
9513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9514 | return NULL; | |
9515 | if (_argo0) { | |
9516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9519 | return NULL; | |
9520 | } | |
9521 | } | |
9522 | { | |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) return NULL; | |
9528 | }{ | |
9529 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9530 | } | |
9531 | return _resultobj; | |
9532 | } | |
9533 | ||
9534 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9535 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9536 | PyObject * _resultobj; | |
9537 | wxString * _result; | |
9538 | wxDirItemData * _arg0; | |
9539 | wxString * _arg1; | |
9540 | PyObject * _argo0 = 0; | |
9541 | PyObject * _obj1 = 0; | |
9542 | char *_kwnames[] = { "self","m_name", NULL }; | |
9543 | ||
9544 | self = self; | |
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9546 | return NULL; | |
9547 | if (_argo0) { | |
9548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9551 | return NULL; | |
9552 | } | |
9553 | } | |
9554 | { | |
9555 | #if PYTHON_API_VERSION >= 1009 | |
9556 | char* tmpPtr; int tmpSize; | |
9557 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9558 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9559 | return NULL; | |
9560 | } | |
9561 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9562 | return NULL; | |
9563 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9564 | #else | |
9565 | if (!PyString_Check(_obj1)) { | |
9566 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9567 | return NULL; | |
9568 | } | |
9569 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9570 | #endif | |
9571 | } | |
9572 | { | |
9573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9574 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); | |
9575 | ||
9576 | wxPyEndAllowThreads(__tstate); | |
9577 | if (PyErr_Occurred()) return NULL; | |
9578 | }{ | |
9579 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9580 | } | |
9581 | { | |
9582 | if (_obj1) | |
9583 | delete _arg1; | |
9584 | } | |
9585 | return _resultobj; | |
9586 | } | |
9587 | ||
9588 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9589 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9590 | PyObject * _resultobj; | |
9591 | wxString * _result; | |
9592 | wxDirItemData * _arg0; | |
9593 | PyObject * _argo0 = 0; | |
9594 | char *_kwnames[] = { "self", NULL }; | |
9595 | ||
9596 | self = self; | |
9597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9598 | return NULL; | |
9599 | if (_argo0) { | |
9600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9603 | return NULL; | |
9604 | } | |
9605 | } | |
9606 | { | |
9607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9608 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); | |
9609 | ||
9610 | wxPyEndAllowThreads(__tstate); | |
9611 | if (PyErr_Occurred()) return NULL; | |
9612 | }{ | |
9613 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9614 | } | |
9615 | return _resultobj; | |
9616 | } | |
9617 | ||
9618 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9619 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9620 | PyObject * _resultobj; | |
9621 | bool _result; | |
9622 | wxDirItemData * _arg0; | |
9623 | bool _arg1; | |
9624 | PyObject * _argo0 = 0; | |
9625 | int tempbool1; | |
9626 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9627 | ||
9628 | self = self; | |
9629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9630 | return NULL; | |
9631 | if (_argo0) { | |
9632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9635 | return NULL; | |
9636 | } | |
9637 | } | |
9638 | _arg1 = (bool ) tempbool1; | |
9639 | { | |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9641 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); | |
9642 | ||
9643 | wxPyEndAllowThreads(__tstate); | |
9644 | if (PyErr_Occurred()) return NULL; | |
9645 | } _resultobj = Py_BuildValue("i",_result); | |
9646 | return _resultobj; | |
9647 | } | |
9648 | ||
9649 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9650 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9651 | PyObject * _resultobj; | |
9652 | bool _result; | |
9653 | wxDirItemData * _arg0; | |
9654 | PyObject * _argo0 = 0; | |
9655 | char *_kwnames[] = { "self", NULL }; | |
9656 | ||
9657 | self = self; | |
9658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9659 | return NULL; | |
9660 | if (_argo0) { | |
9661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9664 | return NULL; | |
9665 | } | |
9666 | } | |
9667 | { | |
9668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9669 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); | |
9670 | ||
9671 | wxPyEndAllowThreads(__tstate); | |
9672 | if (PyErr_Occurred()) return NULL; | |
9673 | } _resultobj = Py_BuildValue("i",_result); | |
9674 | return _resultobj; | |
9675 | } | |
9676 | ||
9677 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9678 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9679 | PyObject * _resultobj; | |
9680 | bool _result; | |
9681 | wxDirItemData * _arg0; | |
9682 | bool _arg1; | |
9683 | PyObject * _argo0 = 0; | |
9684 | int tempbool1; | |
9685 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9686 | ||
9687 | self = self; | |
9688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9689 | return NULL; | |
9690 | if (_argo0) { | |
9691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9694 | return NULL; | |
9695 | } | |
9696 | } | |
9697 | _arg1 = (bool ) tempbool1; | |
9698 | { | |
9699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9700 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); | |
9701 | ||
9702 | wxPyEndAllowThreads(__tstate); | |
9703 | if (PyErr_Occurred()) return NULL; | |
9704 | } _resultobj = Py_BuildValue("i",_result); | |
9705 | return _resultobj; | |
9706 | } | |
9707 | ||
9708 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9709 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9710 | PyObject * _resultobj; | |
9711 | bool _result; | |
9712 | wxDirItemData * _arg0; | |
9713 | PyObject * _argo0 = 0; | |
9714 | char *_kwnames[] = { "self", NULL }; | |
9715 | ||
9716 | self = self; | |
9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9718 | return NULL; | |
9719 | if (_argo0) { | |
9720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9723 | return NULL; | |
9724 | } | |
9725 | } | |
9726 | { | |
9727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9728 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); | |
9729 | ||
9730 | wxPyEndAllowThreads(__tstate); | |
9731 | if (PyErr_Occurred()) return NULL; | |
9732 | } _resultobj = Py_BuildValue("i",_result); | |
9733 | return _resultobj; | |
9734 | } | |
9735 | ||
9736 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9737 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9738 | PyObject * _resultobj; | |
9739 | bool _result; | |
9740 | wxDirItemData * _arg0; | |
9741 | bool _arg1; | |
9742 | PyObject * _argo0 = 0; | |
9743 | int tempbool1; | |
9744 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9745 | ||
9746 | self = self; | |
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9748 | return NULL; | |
9749 | if (_argo0) { | |
9750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9753 | return NULL; | |
9754 | } | |
9755 | } | |
9756 | _arg1 = (bool ) tempbool1; | |
9757 | { | |
9758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9759 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); | |
9760 | ||
9761 | wxPyEndAllowThreads(__tstate); | |
9762 | if (PyErr_Occurred()) return NULL; | |
9763 | } _resultobj = Py_BuildValue("i",_result); | |
9764 | return _resultobj; | |
9765 | } | |
9766 | ||
9767 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9768 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9769 | PyObject * _resultobj; | |
9770 | bool _result; | |
9771 | wxDirItemData * _arg0; | |
9772 | PyObject * _argo0 = 0; | |
9773 | char *_kwnames[] = { "self", NULL }; | |
9774 | ||
9775 | self = self; | |
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9777 | return NULL; | |
9778 | if (_argo0) { | |
9779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9782 | return NULL; | |
9783 | } | |
9784 | } | |
9785 | { | |
9786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9787 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); | |
9788 | ||
9789 | wxPyEndAllowThreads(__tstate); | |
9790 | if (PyErr_Occurred()) return NULL; | |
9791 | } _resultobj = Py_BuildValue("i",_result); | |
9792 | return _resultobj; | |
9793 | } | |
9794 | ||
9795 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9796 | wxGenericDirCtrl *src; | |
9797 | wxControl *dest; | |
9798 | src = (wxGenericDirCtrl *) ptr; | |
9799 | dest = (wxControl *) src; | |
9800 | return (void *) dest; | |
9801 | } | |
9802 | ||
9803 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9804 | wxGenericDirCtrl *src; | |
9805 | wxWindow *dest; | |
9806 | src = (wxGenericDirCtrl *) ptr; | |
9807 | dest = (wxWindow *) src; | |
9808 | return (void *) dest; | |
9809 | } | |
9810 | ||
9811 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9812 | wxGenericDirCtrl *src; | |
9813 | wxEvtHandler *dest; | |
9814 | src = (wxGenericDirCtrl *) ptr; | |
9815 | dest = (wxEvtHandler *) src; | |
9816 | return (void *) dest; | |
9817 | } | |
9818 | ||
9819 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9820 | wxGenericDirCtrl *src; | |
9821 | wxObject *dest; | |
9822 | src = (wxGenericDirCtrl *) ptr; | |
9823 | dest = (wxObject *) src; | |
9824 | return (void *) dest; | |
9825 | } | |
9826 | ||
9827 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9828 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9829 | PyObject * _resultobj; | |
9830 | wxGenericDirCtrl * _result; | |
9831 | wxWindow * _arg0; | |
9832 | wxWindowID _arg1 = (wxWindowID ) -1; | |
ca31b3da | 9833 | char * _arg2 = (char *) wxDirDialogDefaultFolderStr; |
d1e76a37 RD |
9834 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
9835 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9836 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
ca31b3da | 9837 | char * _arg6 = (char *) wxEmptyString; |
d1e76a37 | 9838 | int _arg7 = (int ) 0; |
ca31b3da | 9839 | char * _arg8 = (char *) "dirCtrl"; |
d1e76a37 | 9840 | PyObject * _argo0 = 0; |
d1e76a37 RD |
9841 | wxPoint temp; |
9842 | PyObject * _obj3 = 0; | |
9843 | wxSize temp0; | |
9844 | PyObject * _obj4 = 0; | |
d1e76a37 RD |
9845 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9846 | char _ptemp[128]; | |
9847 | ||
9848 | self = self; | |
ca31b3da | 9849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOlsis:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8)) |
d1e76a37 RD |
9850 | return NULL; |
9851 | if (_argo0) { | |
9852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9855 | return NULL; | |
9856 | } | |
9857 | } | |
d1e76a37 RD |
9858 | if (_obj3) |
9859 | { | |
9860 | _arg3 = &temp; | |
9861 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9862 | return NULL; | |
9863 | } | |
9864 | if (_obj4) | |
9865 | { | |
9866 | _arg4 = &temp0; | |
9867 | if (! wxSize_helper(_obj4, &_arg4)) | |
9868 | return NULL; | |
d1e76a37 RD |
9869 | } |
9870 | { | |
9871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ca31b3da | 9872 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8); |
d1e76a37 RD |
9873 | |
9874 | wxPyEndAllowThreads(__tstate); | |
9875 | if (PyErr_Occurred()) return NULL; | |
9876 | } if (_result) { | |
9877 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9878 | _resultobj = Py_BuildValue("s",_ptemp); | |
9879 | } else { | |
9880 | Py_INCREF(Py_None); | |
9881 | _resultobj = Py_None; | |
9882 | } | |
d1e76a37 RD |
9883 | return _resultobj; |
9884 | } | |
9885 | ||
9886 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9887 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9888 | PyObject * _resultobj; | |
9889 | wxGenericDirCtrl * _result; | |
9890 | char *_kwnames[] = { NULL }; | |
9891 | char _ptemp[128]; | |
9892 | ||
9893 | self = self; | |
9894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9895 | return NULL; | |
9896 | { | |
9897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9898 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); | |
9899 | ||
9900 | wxPyEndAllowThreads(__tstate); | |
9901 | if (PyErr_Occurred()) return NULL; | |
9902 | } if (_result) { | |
9903 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9904 | _resultobj = Py_BuildValue("s",_ptemp); | |
9905 | } else { | |
9906 | Py_INCREF(Py_None); | |
9907 | _resultobj = Py_None; | |
9908 | } | |
9909 | return _resultobj; | |
9910 | } | |
9911 | ||
9912 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9913 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9914 | PyObject * _resultobj; | |
9915 | bool _result; | |
9916 | wxGenericDirCtrl * _arg0; | |
9917 | wxWindow * _arg1; | |
9918 | wxWindowID _arg2 = (wxWindowID ) -1; | |
ca31b3da | 9919 | char * _arg3 = (char *) wxDirDialogDefaultFolderStr; |
d1e76a37 RD |
9920 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
9921 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9922 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
ca31b3da | 9923 | char * _arg7 = (char *) wxEmptyString; |
d1e76a37 | 9924 | int _arg8 = (int ) 0; |
ca31b3da | 9925 | char * _arg9 = (char *) "dirCtrl"; |
d1e76a37 RD |
9926 | PyObject * _argo0 = 0; |
9927 | PyObject * _argo1 = 0; | |
d1e76a37 RD |
9928 | wxPoint temp; |
9929 | PyObject * _obj4 = 0; | |
9930 | wxSize temp0; | |
9931 | PyObject * _obj5 = 0; | |
d1e76a37 RD |
9932 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; |
9933 | ||
9934 | self = self; | |
ca31b3da | 9935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOlsis:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9)) |
d1e76a37 RD |
9936 | return NULL; |
9937 | if (_argo0) { | |
9938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
9941 | return NULL; | |
9942 | } | |
9943 | } | |
9944 | if (_argo1) { | |
9945 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9946 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
9948 | return NULL; | |
9949 | } | |
9950 | } | |
d1e76a37 RD |
9951 | if (_obj4) |
9952 | { | |
9953 | _arg4 = &temp; | |
9954 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9955 | return NULL; | |
9956 | } | |
9957 | if (_obj5) | |
9958 | { | |
9959 | _arg5 = &temp0; | |
9960 | if (! wxSize_helper(_obj5, &_arg5)) | |
9961 | return NULL; | |
d1e76a37 RD |
9962 | } |
9963 | { | |
9964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
ca31b3da | 9965 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9); |
d1e76a37 RD |
9966 | |
9967 | wxPyEndAllowThreads(__tstate); | |
9968 | if (PyErr_Occurred()) return NULL; | |
9969 | } _resultobj = Py_BuildValue("i",_result); | |
d1e76a37 RD |
9970 | return _resultobj; |
9971 | } | |
9972 | ||
9973 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
9974 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9975 | PyObject * _resultobj; | |
9976 | bool _result; | |
9977 | wxGenericDirCtrl * _arg0; | |
9978 | wxString * _arg1; | |
9979 | PyObject * _argo0 = 0; | |
9980 | PyObject * _obj1 = 0; | |
9981 | char *_kwnames[] = { "self","path", NULL }; | |
9982 | ||
9983 | self = self; | |
9984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
9985 | return NULL; | |
9986 | if (_argo0) { | |
9987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
9990 | return NULL; | |
9991 | } | |
9992 | } | |
9993 | { | |
9994 | #if PYTHON_API_VERSION >= 1009 | |
9995 | char* tmpPtr; int tmpSize; | |
9996 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9997 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9998 | return NULL; | |
9999 | } | |
10000 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10001 | return NULL; | |
10002 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10003 | #else | |
10004 | if (!PyString_Check(_obj1)) { | |
10005 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10006 | return NULL; | |
10007 | } | |
10008 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10009 | #endif | |
10010 | } | |
10011 | { | |
10012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10013 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); | |
10014 | ||
10015 | wxPyEndAllowThreads(__tstate); | |
10016 | if (PyErr_Occurred()) return NULL; | |
10017 | } _resultobj = Py_BuildValue("i",_result); | |
10018 | { | |
10019 | if (_obj1) | |
10020 | delete _arg1; | |
10021 | } | |
10022 | return _resultobj; | |
10023 | } | |
10024 | ||
10025 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10026 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10027 | PyObject * _resultobj; | |
10028 | wxString * _result; | |
10029 | wxGenericDirCtrl * _arg0; | |
10030 | PyObject * _argo0 = 0; | |
10031 | char *_kwnames[] = { "self", NULL }; | |
10032 | ||
10033 | self = self; | |
10034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10035 | return NULL; | |
10036 | if (_argo0) { | |
10037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10040 | return NULL; | |
10041 | } | |
10042 | } | |
10043 | { | |
10044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10045 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); | |
10046 | ||
10047 | wxPyEndAllowThreads(__tstate); | |
10048 | if (PyErr_Occurred()) return NULL; | |
10049 | }{ | |
10050 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10051 | } | |
10052 | { | |
10053 | delete _result; | |
10054 | } | |
10055 | return _resultobj; | |
10056 | } | |
10057 | ||
10058 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10059 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10060 | PyObject * _resultobj; | |
10061 | wxGenericDirCtrl * _arg0; | |
10062 | wxString * _arg1; | |
10063 | PyObject * _argo0 = 0; | |
10064 | PyObject * _obj1 = 0; | |
10065 | char *_kwnames[] = { "self","path", NULL }; | |
10066 | ||
10067 | self = self; | |
10068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10069 | return NULL; | |
10070 | if (_argo0) { | |
10071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10074 | return NULL; | |
10075 | } | |
10076 | } | |
10077 | { | |
10078 | #if PYTHON_API_VERSION >= 1009 | |
10079 | char* tmpPtr; int tmpSize; | |
10080 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
10081 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10082 | return NULL; | |
10083 | } | |
10084 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10085 | return NULL; | |
10086 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10087 | #else | |
10088 | if (!PyString_Check(_obj1)) { | |
10089 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10090 | return NULL; | |
10091 | } | |
10092 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10093 | #endif | |
10094 | } | |
10095 | { | |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); | |
10098 | ||
10099 | wxPyEndAllowThreads(__tstate); | |
10100 | if (PyErr_Occurred()) return NULL; | |
10101 | } Py_INCREF(Py_None); | |
10102 | _resultobj = Py_None; | |
10103 | { | |
10104 | if (_obj1) | |
10105 | delete _arg1; | |
10106 | } | |
10107 | return _resultobj; | |
10108 | } | |
10109 | ||
10110 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10111 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10112 | PyObject * _resultobj; | |
10113 | wxString * _result; | |
10114 | wxGenericDirCtrl * _arg0; | |
10115 | PyObject * _argo0 = 0; | |
10116 | char *_kwnames[] = { "self", NULL }; | |
10117 | ||
10118 | self = self; | |
10119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10120 | return NULL; | |
10121 | if (_argo0) { | |
10122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10125 | return NULL; | |
10126 | } | |
10127 | } | |
10128 | { | |
10129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10130 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); | |
10131 | ||
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) return NULL; | |
10134 | }{ | |
10135 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10136 | } | |
10137 | { | |
10138 | delete _result; | |
10139 | } | |
10140 | return _resultobj; | |
10141 | } | |
10142 | ||
10143 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10144 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10145 | PyObject * _resultobj; | |
10146 | wxString * _result; | |
10147 | wxGenericDirCtrl * _arg0; | |
10148 | PyObject * _argo0 = 0; | |
10149 | char *_kwnames[] = { "self", NULL }; | |
10150 | ||
10151 | self = self; | |
10152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10153 | return NULL; | |
10154 | if (_argo0) { | |
10155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10158 | return NULL; | |
10159 | } | |
10160 | } | |
10161 | { | |
10162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10163 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); | |
10164 | ||
10165 | wxPyEndAllowThreads(__tstate); | |
10166 | if (PyErr_Occurred()) return NULL; | |
10167 | }{ | |
10168 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10169 | } | |
10170 | { | |
10171 | delete _result; | |
10172 | } | |
10173 | return _resultobj; | |
10174 | } | |
10175 | ||
10176 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10177 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10178 | PyObject * _resultobj; | |
10179 | wxGenericDirCtrl * _arg0; | |
10180 | wxString * _arg1; | |
10181 | PyObject * _argo0 = 0; | |
10182 | PyObject * _obj1 = 0; | |
10183 | char *_kwnames[] = { "self","path", NULL }; | |
10184 | ||
10185 | self = self; | |
10186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10187 | return NULL; | |
10188 | if (_argo0) { | |
10189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10192 | return NULL; | |
10193 | } | |
10194 | } | |
10195 | { | |
10196 | #if PYTHON_API_VERSION >= 1009 | |
10197 | char* tmpPtr; int tmpSize; | |
10198 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
10199 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10200 | return NULL; | |
10201 | } | |
10202 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10203 | return NULL; | |
10204 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10205 | #else | |
10206 | if (!PyString_Check(_obj1)) { | |
10207 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10208 | return NULL; | |
10209 | } | |
10210 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10211 | #endif | |
10212 | } | |
10213 | { | |
10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10215 | wxGenericDirCtrl_SetPath(_arg0,*_arg1); | |
10216 | ||
10217 | wxPyEndAllowThreads(__tstate); | |
10218 | if (PyErr_Occurred()) return NULL; | |
10219 | } Py_INCREF(Py_None); | |
10220 | _resultobj = Py_None; | |
10221 | { | |
10222 | if (_obj1) | |
10223 | delete _arg1; | |
10224 | } | |
10225 | return _resultobj; | |
10226 | } | |
10227 | ||
10228 | #define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0)) | |
10229 | static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10230 | PyObject * _resultobj; | |
10231 | wxGenericDirCtrl * _arg0; | |
10232 | bool _arg1; | |
10233 | PyObject * _argo0 = 0; | |
10234 | int tempbool1; | |
10235 | char *_kwnames[] = { "self","show", NULL }; | |
10236 | ||
10237 | self = self; | |
10238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1)) | |
10239 | return NULL; | |
10240 | if (_argo0) { | |
10241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p."); | |
10244 | return NULL; | |
10245 | } | |
10246 | } | |
10247 | _arg1 = (bool ) tempbool1; | |
10248 | { | |
10249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10250 | wxGenericDirCtrl_ShowHidden(_arg0,_arg1); | |
10251 | ||
10252 | wxPyEndAllowThreads(__tstate); | |
10253 | if (PyErr_Occurred()) return NULL; | |
10254 | } Py_INCREF(Py_None); | |
10255 | _resultobj = Py_None; | |
10256 | return _resultobj; | |
10257 | } | |
10258 | ||
10259 | #define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden()) | |
10260 | static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10261 | PyObject * _resultobj; | |
10262 | bool _result; | |
10263 | wxGenericDirCtrl * _arg0; | |
10264 | PyObject * _argo0 = 0; | |
10265 | char *_kwnames[] = { "self", NULL }; | |
10266 | ||
10267 | self = self; | |
10268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0)) | |
10269 | return NULL; | |
10270 | if (_argo0) { | |
10271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p."); | |
10274 | return NULL; | |
10275 | } | |
10276 | } | |
10277 | { | |
10278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10279 | _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0); | |
10280 | ||
10281 | wxPyEndAllowThreads(__tstate); | |
10282 | if (PyErr_Occurred()) return NULL; | |
10283 | } _resultobj = Py_BuildValue("i",_result); | |
10284 | return _resultobj; | |
10285 | } | |
10286 | ||
10287 | #define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter()) | |
10288 | static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10289 | PyObject * _resultobj; | |
10290 | wxString * _result; | |
10291 | wxGenericDirCtrl * _arg0; | |
10292 | PyObject * _argo0 = 0; | |
10293 | char *_kwnames[] = { "self", NULL }; | |
10294 | ||
10295 | self = self; | |
10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0)) | |
10297 | return NULL; | |
10298 | if (_argo0) { | |
10299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p."); | |
10302 | return NULL; | |
10303 | } | |
10304 | } | |
10305 | { | |
10306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10307 | _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0)); | |
10308 | ||
10309 | wxPyEndAllowThreads(__tstate); | |
10310 | if (PyErr_Occurred()) return NULL; | |
10311 | }{ | |
10312 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10313 | } | |
10314 | { | |
10315 | delete _result; | |
10316 | } | |
10317 | return _resultobj; | |
10318 | } | |
10319 | ||
10320 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10321 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10322 | PyObject * _resultobj; | |
10323 | wxGenericDirCtrl * _arg0; | |
10324 | wxString * _arg1; | |
10325 | PyObject * _argo0 = 0; | |
10326 | PyObject * _obj1 = 0; | |
10327 | char *_kwnames[] = { "self","filter", NULL }; | |
10328 | ||
10329 | self = self; | |
10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10331 | return NULL; | |
10332 | if (_argo0) { | |
10333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10336 | return NULL; | |
10337 | } | |
10338 | } | |
10339 | { | |
10340 | #if PYTHON_API_VERSION >= 1009 | |
10341 | char* tmpPtr; int tmpSize; | |
10342 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
10343 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10344 | return NULL; | |
10345 | } | |
10346 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10347 | return NULL; | |
10348 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10349 | #else | |
10350 | if (!PyString_Check(_obj1)) { | |
10351 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10352 | return NULL; | |
10353 | } | |
10354 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10355 | #endif | |
10356 | } | |
10357 | { | |
10358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10359 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); | |
10360 | ||
10361 | wxPyEndAllowThreads(__tstate); | |
10362 | if (PyErr_Occurred()) return NULL; | |
10363 | } Py_INCREF(Py_None); | |
10364 | _resultobj = Py_None; | |
10365 | { | |
10366 | if (_obj1) | |
10367 | delete _arg1; | |
10368 | } | |
10369 | return _resultobj; | |
10370 | } | |
10371 | ||
10372 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10373 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10374 | PyObject * _resultobj; | |
10375 | int _result; | |
10376 | wxGenericDirCtrl * _arg0; | |
10377 | PyObject * _argo0 = 0; | |
10378 | char *_kwnames[] = { "self", NULL }; | |
10379 | ||
10380 | self = self; | |
10381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10382 | return NULL; | |
10383 | if (_argo0) { | |
10384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10387 | return NULL; | |
10388 | } | |
10389 | } | |
10390 | { | |
10391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10392 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); | |
10393 | ||
10394 | wxPyEndAllowThreads(__tstate); | |
10395 | if (PyErr_Occurred()) return NULL; | |
10396 | } _resultobj = Py_BuildValue("i",_result); | |
10397 | return _resultobj; | |
10398 | } | |
10399 | ||
10400 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10401 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10402 | PyObject * _resultobj; | |
10403 | wxGenericDirCtrl * _arg0; | |
10404 | int _arg1; | |
10405 | PyObject * _argo0 = 0; | |
10406 | char *_kwnames[] = { "self","n", NULL }; | |
10407 | ||
10408 | self = self; | |
10409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10410 | return NULL; | |
10411 | if (_argo0) { | |
10412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10415 | return NULL; | |
10416 | } | |
10417 | } | |
10418 | { | |
10419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10420 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); | |
10421 | ||
10422 | wxPyEndAllowThreads(__tstate); | |
10423 | if (PyErr_Occurred()) return NULL; | |
10424 | } Py_INCREF(Py_None); | |
10425 | _resultobj = Py_None; | |
10426 | return _resultobj; | |
10427 | } | |
10428 | ||
10429 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10430 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10431 | PyObject * _resultobj; | |
10432 | wxTreeItemId * _result; | |
10433 | wxGenericDirCtrl * _arg0; | |
10434 | PyObject * _argo0 = 0; | |
10435 | char *_kwnames[] = { "self", NULL }; | |
10436 | char _ptemp[128]; | |
10437 | ||
10438 | self = self; | |
10439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10440 | return NULL; | |
10441 | if (_argo0) { | |
10442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10445 | return NULL; | |
10446 | } | |
10447 | } | |
10448 | { | |
10449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10450 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); | |
10451 | ||
10452 | wxPyEndAllowThreads(__tstate); | |
10453 | if (PyErr_Occurred()) return NULL; | |
10454 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10455 | _resultobj = Py_BuildValue("s",_ptemp); | |
10456 | return _resultobj; | |
10457 | } | |
10458 | ||
10459 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10460 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10461 | PyObject * _resultobj; | |
10462 | wxTreeCtrl * _result; | |
10463 | wxGenericDirCtrl * _arg0; | |
10464 | PyObject * _argo0 = 0; | |
10465 | char *_kwnames[] = { "self", NULL }; | |
10466 | char _ptemp[128]; | |
10467 | ||
10468 | self = self; | |
10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10470 | return NULL; | |
10471 | if (_argo0) { | |
10472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10475 | return NULL; | |
10476 | } | |
10477 | } | |
10478 | { | |
10479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10480 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); | |
10481 | ||
10482 | wxPyEndAllowThreads(__tstate); | |
10483 | if (PyErr_Occurred()) return NULL; | |
10484 | } if (_result) { | |
10485 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeCtrl_p"); | |
10486 | _resultobj = Py_BuildValue("s",_ptemp); | |
10487 | } else { | |
10488 | Py_INCREF(Py_None); | |
10489 | _resultobj = Py_None; | |
10490 | } | |
10491 | return _resultobj; | |
10492 | } | |
10493 | ||
10494 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10495 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10496 | PyObject * _resultobj; | |
10497 | wxDirFilterListCtrl * _result; | |
10498 | wxGenericDirCtrl * _arg0; | |
10499 | PyObject * _argo0 = 0; | |
10500 | char *_kwnames[] = { "self", NULL }; | |
10501 | char _ptemp[128]; | |
10502 | ||
10503 | self = self; | |
10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10505 | return NULL; | |
10506 | if (_argo0) { | |
10507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10510 | return NULL; | |
10511 | } | |
10512 | } | |
10513 | { | |
10514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10515 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); | |
10516 | ||
10517 | wxPyEndAllowThreads(__tstate); | |
10518 | if (PyErr_Occurred()) return NULL; | |
10519 | } if (_result) { | |
10520 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10521 | _resultobj = Py_BuildValue("s",_ptemp); | |
10522 | } else { | |
10523 | Py_INCREF(Py_None); | |
10524 | _resultobj = Py_None; | |
10525 | } | |
10526 | return _resultobj; | |
10527 | } | |
10528 | ||
10529 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10530 | wxDirFilterListCtrl *src; | |
10531 | wxChoice *dest; | |
10532 | src = (wxDirFilterListCtrl *) ptr; | |
10533 | dest = (wxChoice *) src; | |
10534 | return (void *) dest; | |
10535 | } | |
10536 | ||
10537 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10538 | wxDirFilterListCtrl *src; | |
10539 | wxControlWithItems *dest; | |
10540 | src = (wxDirFilterListCtrl *) ptr; | |
10541 | dest = (wxControlWithItems *) src; | |
10542 | return (void *) dest; | |
10543 | } | |
10544 | ||
10545 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10546 | wxDirFilterListCtrl *src; | |
10547 | wxControl *dest; | |
10548 | src = (wxDirFilterListCtrl *) ptr; | |
10549 | dest = (wxControl *) src; | |
10550 | return (void *) dest; | |
10551 | } | |
10552 | ||
10553 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10554 | wxDirFilterListCtrl *src; | |
10555 | wxWindow *dest; | |
10556 | src = (wxDirFilterListCtrl *) ptr; | |
10557 | dest = (wxWindow *) src; | |
10558 | return (void *) dest; | |
10559 | } | |
10560 | ||
10561 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10562 | wxDirFilterListCtrl *src; | |
10563 | wxEvtHandler *dest; | |
10564 | src = (wxDirFilterListCtrl *) ptr; | |
10565 | dest = (wxEvtHandler *) src; | |
10566 | return (void *) dest; | |
10567 | } | |
10568 | ||
10569 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10570 | wxDirFilterListCtrl *src; | |
10571 | wxObject *dest; | |
10572 | src = (wxDirFilterListCtrl *) ptr; | |
10573 | dest = (wxObject *) src; | |
10574 | return (void *) dest; | |
10575 | } | |
10576 | ||
10577 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10578 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10579 | PyObject * _resultobj; | |
10580 | wxDirFilterListCtrl * _result; | |
10581 | wxGenericDirCtrl * _arg0; | |
10582 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10583 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10584 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10585 | long _arg4 = (long ) 0; | |
10586 | PyObject * _argo0 = 0; | |
10587 | wxPoint temp; | |
10588 | PyObject * _obj2 = 0; | |
10589 | wxSize temp0; | |
10590 | PyObject * _obj3 = 0; | |
10591 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10592 | char _ptemp[128]; | |
10593 | ||
10594 | self = self; | |
10595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10596 | return NULL; | |
10597 | if (_argo0) { | |
10598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10601 | return NULL; | |
10602 | } | |
10603 | } | |
10604 | if (_obj2) | |
10605 | { | |
10606 | _arg2 = &temp; | |
10607 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10608 | return NULL; | |
10609 | } | |
10610 | if (_obj3) | |
10611 | { | |
10612 | _arg3 = &temp0; | |
10613 | if (! wxSize_helper(_obj3, &_arg3)) | |
10614 | return NULL; | |
10615 | } | |
10616 | { | |
10617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10618 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
10619 | ||
10620 | wxPyEndAllowThreads(__tstate); | |
10621 | if (PyErr_Occurred()) return NULL; | |
10622 | } if (_result) { | |
10623 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10624 | _resultobj = Py_BuildValue("s",_ptemp); | |
10625 | } else { | |
10626 | Py_INCREF(Py_None); | |
10627 | _resultobj = Py_None; | |
10628 | } | |
10629 | return _resultobj; | |
10630 | } | |
10631 | ||
10632 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10633 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10634 | PyObject * _resultobj; | |
10635 | wxDirFilterListCtrl * _result; | |
10636 | char *_kwnames[] = { NULL }; | |
10637 | char _ptemp[128]; | |
10638 | ||
10639 | self = self; | |
10640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10641 | return NULL; | |
10642 | { | |
10643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10644 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); | |
10645 | ||
10646 | wxPyEndAllowThreads(__tstate); | |
10647 | if (PyErr_Occurred()) return NULL; | |
10648 | } if (_result) { | |
10649 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10650 | _resultobj = Py_BuildValue("s",_ptemp); | |
10651 | } else { | |
10652 | Py_INCREF(Py_None); | |
10653 | _resultobj = Py_None; | |
10654 | } | |
10655 | return _resultobj; | |
10656 | } | |
10657 | ||
10658 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10659 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10660 | PyObject * _resultobj; | |
10661 | bool _result; | |
10662 | wxDirFilterListCtrl * _arg0; | |
10663 | wxGenericDirCtrl * _arg1; | |
10664 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10665 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10666 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10667 | long _arg5 = (long ) 0; | |
10668 | PyObject * _argo0 = 0; | |
10669 | PyObject * _argo1 = 0; | |
10670 | wxPoint temp; | |
10671 | PyObject * _obj3 = 0; | |
10672 | wxSize temp0; | |
10673 | PyObject * _obj4 = 0; | |
10674 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10675 | ||
10676 | self = self; | |
10677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10678 | return NULL; | |
10679 | if (_argo0) { | |
10680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10683 | return NULL; | |
10684 | } | |
10685 | } | |
10686 | if (_argo1) { | |
10687 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10688 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10690 | return NULL; | |
10691 | } | |
10692 | } | |
10693 | if (_obj3) | |
10694 | { | |
10695 | _arg3 = &temp; | |
10696 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10697 | return NULL; | |
10698 | } | |
10699 | if (_obj4) | |
10700 | { | |
10701 | _arg4 = &temp0; | |
10702 | if (! wxSize_helper(_obj4, &_arg4)) | |
10703 | return NULL; | |
10704 | } | |
10705 | { | |
10706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10707 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
10708 | ||
10709 | wxPyEndAllowThreads(__tstate); | |
10710 | if (PyErr_Occurred()) return NULL; | |
10711 | } _resultobj = Py_BuildValue("i",_result); | |
10712 | return _resultobj; | |
10713 | } | |
10714 | ||
10715 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10716 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10717 | PyObject * _resultobj; | |
10718 | wxDirFilterListCtrl * _arg0; | |
10719 | wxString * _arg1; | |
10720 | int _arg2; | |
10721 | PyObject * _argo0 = 0; | |
10722 | PyObject * _obj1 = 0; | |
10723 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10724 | ||
10725 | self = self; | |
10726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10727 | return NULL; | |
10728 | if (_argo0) { | |
10729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10732 | return NULL; | |
10733 | } | |
10734 | } | |
10735 | { | |
10736 | #if PYTHON_API_VERSION >= 1009 | |
10737 | char* tmpPtr; int tmpSize; | |
10738 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
10739 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10740 | return NULL; | |
10741 | } | |
10742 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
10743 | return NULL; | |
10744 | _arg1 = new wxString(tmpPtr, tmpSize); | |
10745 | #else | |
10746 | if (!PyString_Check(_obj1)) { | |
10747 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
10748 | return NULL; | |
10749 | } | |
10750 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
10751 | #endif | |
10752 | } | |
10753 | { | |
10754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10755 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); | |
10756 | ||
10757 | wxPyEndAllowThreads(__tstate); | |
10758 | if (PyErr_Occurred()) return NULL; | |
10759 | } Py_INCREF(Py_None); | |
10760 | _resultobj = Py_None; | |
10761 | { | |
10762 | if (_obj1) | |
10763 | delete _arg1; | |
10764 | } | |
10765 | return _resultobj; | |
10766 | } | |
10767 | ||
e6056257 | 10768 | static PyMethodDef controls2cMethods[] = { |
d1e76a37 RD |
10769 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, |
10770 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10776 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10777 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10784 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10798 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10799 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10800 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
00360d46 | 10803 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10804 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
10805 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10807 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10812 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
10813 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10828 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
10829 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
10830 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
10831 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10832 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10833 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10837 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
10838 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
10839 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
10840 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10842 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10843 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10846 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10847 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10872 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10873 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
10874 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10883 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
10884 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
10885 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10886 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10887 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10888 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10889 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10890 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10891 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10892 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10893 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10894 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10895 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10896 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10897 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
10898 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10899 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10902 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
10910 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10912 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
10913 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
10914 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10917 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10923 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10944 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10945 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10946 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
10947 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10948 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10949 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10955 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10958 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
10959 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10960 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10961 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10962 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10963 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10964 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10965 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10966 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10967 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10968 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10969 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
10970 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10973 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10974 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 | 10978 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
10979 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
10980 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10985 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
10986 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10987 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
10988 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
dbd3685c RD |
10989 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
10990 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
10991 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
10992 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
10993 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
10995 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
10996 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
11003 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
11013 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11017 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
11025 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11026 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11027 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11028 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11029 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11030 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11031 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11032 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11033 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11034 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11035 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11036 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11037 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11038 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11039 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11040 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11041 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11042 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11044 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11045 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11046 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11047 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11048 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11049 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11050 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11051 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11052 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11053 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11054 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
11055 | { NULL, NULL } | |
11056 | }; | |
11057 | #ifdef __cplusplus | |
11058 | } | |
11059 | #endif | |
11060 | /* | |
11061 | * This table is used by the pointer type-checker | |
11062 | */ | |
11063 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11064 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
11065 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
11066 | { "_signed_long","_long",0}, | |
11067 | { "_wxPrintQuality","_wxCoord",0}, | |
11068 | { "_wxPrintQuality","_int",0}, | |
11069 | { "_wxPrintQuality","_signed_int",0}, | |
11070 | { "_wxPrintQuality","_unsigned_int",0}, | |
11071 | { "_wxPrintQuality","_wxWindowID",0}, | |
11072 | { "_wxPrintQuality","_uint",0}, | |
11073 | { "_wxPrintQuality","_EBool",0}, | |
11074 | { "_wxPrintQuality","_size_t",0}, | |
11075 | { "_wxPrintQuality","_time_t",0}, | |
11076 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
11077 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
11078 | { "_byte","_unsigned_char",0}, | |
d1e76a37 | 11079 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, |
e6056257 RD |
11080 | { "_long","_unsigned_long",0}, |
11081 | { "_long","_signed_long",0}, | |
11082 | { "_size_t","_wxCoord",0}, | |
11083 | { "_size_t","_wxPrintQuality",0}, | |
11084 | { "_size_t","_time_t",0}, | |
11085 | { "_size_t","_unsigned_int",0}, | |
11086 | { "_size_t","_int",0}, | |
11087 | { "_size_t","_wxWindowID",0}, | |
11088 | { "_size_t","_uint",0}, | |
11089 | { "_uint","_wxCoord",0}, | |
11090 | { "_uint","_wxPrintQuality",0}, | |
11091 | { "_uint","_time_t",0}, | |
11092 | { "_uint","_size_t",0}, | |
11093 | { "_uint","_unsigned_int",0}, | |
11094 | { "_uint","_int",0}, | |
11095 | { "_uint","_wxWindowID",0}, | |
11096 | { "_wxChar","_char",0}, | |
11097 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
11098 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
11099 | { "_char","_wxChar",0}, | |
11100 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11101 | { "_EBool","_wxCoord",0}, | |
11102 | { "_EBool","_wxPrintQuality",0}, | |
11103 | { "_EBool","_signed_int",0}, | |
11104 | { "_EBool","_int",0}, | |
11105 | { "_EBool","_wxWindowID",0}, | |
11106 | { "_unsigned_long","_long",0}, | |
11107 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11108 | { "_signed_int","_wxCoord",0}, | |
11109 | { "_signed_int","_wxPrintQuality",0}, | |
11110 | { "_signed_int","_EBool",0}, | |
11111 | { "_signed_int","_wxWindowID",0}, | |
11112 | { "_signed_int","_int",0}, | |
11113 | { "_WXTYPE","_short",0}, | |
11114 | { "_WXTYPE","_signed_short",0}, | |
11115 | { "_WXTYPE","_unsigned_short",0}, | |
11116 | { "_unsigned_short","_WXTYPE",0}, | |
11117 | { "_unsigned_short","_short",0}, | |
d1e76a37 RD |
11118 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, |
11119 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11120 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
e6056257 RD |
11121 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
11122 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
11123 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
11124 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, | |
11125 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, | |
11126 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
11127 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
11128 | { "_signed_short","_WXTYPE",0}, | |
11129 | { "_signed_short","_short",0}, | |
11130 | { "_unsigned_char","_byte",0}, | |
d1e76a37 RD |
11131 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, |
11132 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
e6056257 RD |
11133 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
11134 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, | |
11135 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, | |
11136 | { "_unsigned_int","_wxCoord",0}, | |
11137 | { "_unsigned_int","_wxPrintQuality",0}, | |
11138 | { "_unsigned_int","_time_t",0}, | |
11139 | { "_unsigned_int","_size_t",0}, | |
11140 | { "_unsigned_int","_uint",0}, | |
11141 | { "_unsigned_int","_wxWindowID",0}, | |
11142 | { "_unsigned_int","_int",0}, | |
11143 | { "_short","_WXTYPE",0}, | |
11144 | { "_short","_unsigned_short",0}, | |
11145 | { "_short","_signed_short",0}, | |
d1e76a37 | 11146 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, |
e6056257 RD |
11147 | { "_wxWindowID","_wxCoord",0}, |
11148 | { "_wxWindowID","_wxPrintQuality",0}, | |
11149 | { "_wxWindowID","_time_t",0}, | |
11150 | { "_wxWindowID","_size_t",0}, | |
11151 | { "_wxWindowID","_EBool",0}, | |
11152 | { "_wxWindowID","_uint",0}, | |
11153 | { "_wxWindowID","_int",0}, | |
11154 | { "_wxWindowID","_signed_int",0}, | |
11155 | { "_wxWindowID","_unsigned_int",0}, | |
11156 | { "_int","_wxCoord",0}, | |
11157 | { "_int","_wxPrintQuality",0}, | |
11158 | { "_int","_time_t",0}, | |
11159 | { "_int","_size_t",0}, | |
11160 | { "_int","_EBool",0}, | |
11161 | { "_int","_uint",0}, | |
11162 | { "_int","_wxWindowID",0}, | |
11163 | { "_int","_unsigned_int",0}, | |
11164 | { "_int","_signed_int",0}, | |
11165 | { "_time_t","_wxCoord",0}, | |
11166 | { "_time_t","_wxPrintQuality",0}, | |
11167 | { "_time_t","_unsigned_int",0}, | |
11168 | { "_time_t","_int",0}, | |
11169 | { "_time_t","_wxWindowID",0}, | |
11170 | { "_time_t","_uint",0}, | |
11171 | { "_time_t","_size_t",0}, | |
11172 | { "_wxCoord","_int",0}, | |
11173 | { "_wxCoord","_signed_int",0}, | |
11174 | { "_wxCoord","_unsigned_int",0}, | |
11175 | { "_wxCoord","_wxWindowID",0}, | |
11176 | { "_wxCoord","_uint",0}, | |
11177 | { "_wxCoord","_EBool",0}, | |
11178 | { "_wxCoord","_size_t",0}, | |
11179 | { "_wxCoord","_time_t",0}, | |
11180 | { "_wxCoord","_wxPrintQuality",0}, | |
11181 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, | |
d1e76a37 RD |
11182 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, |
11183 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
e6056257 RD |
11184 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
11185 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, | |
11186 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, | |
d1e76a37 RD |
11187 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, |
11188 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
e6056257 RD |
11189 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
11190 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, | |
11191 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, | |
11192 | {0,0,0}}; | |
11193 | ||
11194 | static PyObject *SWIG_globals; | |
11195 | #ifdef __cplusplus | |
11196 | extern "C" | |
11197 | #endif | |
11198 | SWIGEXPORT(void) initcontrols2c() { | |
11199 | PyObject *m, *d; | |
11200 | SWIG_globals = SWIG_newvarlink(); | |
11201 | m = Py_InitModule("controls2c", controls2cMethods); | |
11202 | d = PyModule_GetDict(m); | |
11203 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
11204 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11205 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11206 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11207 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11208 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11209 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11210 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11211 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11212 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11213 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11214 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11215 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11216 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11217 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11218 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11219 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
11220 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
11221 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11222 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11223 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
80cb3dbc | 11224 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
e6056257 RD |
11225 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
11226 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11227 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11228 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11229 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11230 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11231 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11232 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11233 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11234 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11235 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11236 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11237 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11238 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11239 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11240 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11241 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11242 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11243 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
11244 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); | |
11245 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); | |
11246 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); | |
11247 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11248 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
11249 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); | |
11250 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); | |
11251 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11252 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11253 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11254 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11255 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11256 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11257 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11258 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11259 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11260 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11261 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11262 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11263 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11264 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11265 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11266 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11267 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11268 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11269 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11270 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11271 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11272 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11273 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11274 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11275 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
11276 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); | |
11277 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11278 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11279 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11280 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11281 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11282 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11283 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11284 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
11285 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); | |
11286 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11287 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11288 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
11289 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); | |
11290 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11291 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11292 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11293 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
6abe8375 | 11294 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); |
e6056257 RD |
11295 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); |
11296 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11297 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
6abe8375 | 11298 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); |
e6056257 RD |
11299 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); |
11300 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11301 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11302 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11303 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11304 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
11305 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); | |
11306 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11307 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11308 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11309 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
11310 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); | |
11311 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11312 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11313 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11314 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11315 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11316 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11317 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11318 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11319 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11320 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11321 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11322 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11323 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
11324 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
11325 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11326 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11327 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11328 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11329 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11330 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11331 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11332 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11333 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11334 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11335 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11336 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11337 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11338 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11339 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11340 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
11341 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); | |
d1e76a37 RD |
11342 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); |
11343 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11344 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11345 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
e6056257 RD |
11346 | |
11347 | // Map renamed classes back to their common name for OOR | |
11348 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
11349 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
11350 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
11351 | { | |
11352 | int i; | |
11353 | for (i = 0; _swig_mapping[i].n1; i++) | |
11354 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11355 | } | |
11356 | } |