]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/msw/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> | |
65 | #include <wx/dirctrl.h> | |
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 | // Put some wx default wxChar* values into wxStrings. | |
95 | const wxChar* wxListCtrlNameStr = _T("wxListCtrl"); | |
96 | DECLARE_DEF_STRING(ListCtrlNameStr); | |
97 | ||
98 | const wxChar* wx_TreeCtrlNameStr = _T("wxTreeCtrl"); | |
99 | DECLARE_DEF_STRING(_TreeCtrlNameStr); | |
100 | DECLARE_DEF_STRING(DirDialogDefaultFolderStr); | |
101 | ||
102 | static const wxString wxPyEmptyString(wxT("")); | |
103 | ||
104 | static const long longzero = 0; | |
105 | // C++ Version of a Python aware class | |
106 | class wxPyListCtrl : public wxListCtrl { | |
107 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
108 | public: | |
109 | wxPyListCtrl() : wxListCtrl() {} | |
110 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
111 | const wxPoint& pos, | |
112 | const wxSize& size, | |
113 | long style, | |
114 | const wxValidator& validator, | |
115 | const wxString& name) : | |
116 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
117 | ||
118 | bool Create(wxWindow* parent, wxWindowID id, | |
119 | const wxPoint& pos, | |
120 | const wxSize& size, | |
121 | long style, | |
122 | const wxValidator& validator, | |
123 | const wxString& name) { | |
124 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
125 | } | |
126 | ||
127 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
128 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
129 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
130 | ||
131 | PYPRIVATE; | |
132 | }; | |
133 | ||
134 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
135 | ||
136 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
137 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
138 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
139 | // Python aware sorting function for wxPyListCtrl | |
140 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
141 | int retval = 0; | |
142 | PyObject* func = (PyObject*)funcPtr; | |
143 | wxPyBeginBlockThreads(); | |
144 | ||
145 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
146 | PyObject* result = PyEval_CallObject(func, args); | |
147 | Py_DECREF(args); | |
148 | if (result) { | |
149 | retval = PyInt_AsLong(result); | |
150 | Py_DECREF(result); | |
151 | } | |
152 | ||
153 | wxPyEndBlockThreads(); | |
154 | return retval; | |
155 | } | |
156 | ||
157 | ||
158 | class wxPyTreeItemData : public wxTreeItemData { | |
159 | public: | |
160 | wxPyTreeItemData(PyObject* obj = NULL) { | |
161 | if (obj == NULL) | |
162 | obj = Py_None; | |
163 | Py_INCREF(obj); | |
164 | m_obj = obj; | |
165 | } | |
166 | ||
167 | ~wxPyTreeItemData() { | |
168 | wxPyBeginBlockThreads(); | |
169 | Py_DECREF(m_obj); | |
170 | wxPyEndBlockThreads(); | |
171 | } | |
172 | ||
173 | PyObject* GetData() { | |
174 | Py_INCREF(m_obj); | |
175 | return m_obj; | |
176 | } | |
177 | ||
178 | void SetData(PyObject* obj) { | |
179 | wxPyBeginBlockThreads(); | |
180 | Py_DECREF(m_obj); | |
181 | wxPyEndBlockThreads(); | |
182 | m_obj = obj; | |
183 | Py_INCREF(obj); | |
184 | } | |
185 | ||
186 | PyObject* m_obj; | |
187 | }; | |
188 | // C++ version of Python aware wxTreeCtrl | |
189 | class wxPyTreeCtrl : public wxTreeCtrl { | |
190 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
191 | public: | |
192 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
193 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
194 | const wxPoint& pos, | |
195 | const wxSize& size, | |
196 | long style, | |
197 | const wxValidator& validator, | |
198 | const wxString& name) : | |
199 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
200 | ||
201 | bool Create(wxWindow *parent, wxWindowID id, | |
202 | const wxPoint& pos, | |
203 | const wxSize& size, | |
204 | long style, | |
205 | const wxValidator& validator, | |
206 | const wxString& name) { | |
207 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
208 | } | |
209 | ||
210 | ||
211 | int OnCompareItems(const wxTreeItemId& item1, | |
212 | const wxTreeItemId& item2) { | |
213 | int rval = 0; | |
214 | bool found; | |
215 | wxPyBeginBlockThreads(); | |
216 | if ((found = m_myInst.findCallback("OnCompareItems"))) { | |
217 | PyObject *o1 = wxPyConstructObject((void*)&item1, "wxTreeItemId"); | |
218 | PyObject *o2 = wxPyConstructObject((void*)&item2, "wxTreeItemId"); | |
219 | rval = m_myInst.callCallback(Py_BuildValue("(OO)",o1,o2)); | |
220 | Py_DECREF(o1); | |
221 | Py_DECREF(o2); | |
222 | } | |
223 | wxPyEndBlockThreads(); | |
224 | if (! found) | |
225 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
226 | return rval; | |
227 | } | |
228 | PYPRIVATE; | |
229 | }; | |
230 | ||
231 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
232 | ||
233 | #ifdef __cplusplus | |
234 | extern "C" { | |
235 | #endif | |
236 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) | |
237 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
238 | PyObject * _resultobj; | |
239 | wxListItemAttr * _result; | |
240 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
241 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
242 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
243 | wxColour temp; | |
244 | PyObject * _obj0 = 0; | |
245 | wxColour temp0; | |
246 | PyObject * _obj1 = 0; | |
247 | PyObject * _argo2 = 0; | |
248 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
249 | char _ptemp[128]; | |
250 | ||
251 | self = self; | |
252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
253 | return NULL; | |
254 | if (_obj0) | |
255 | { | |
256 | _arg0 = &temp; | |
257 | if (! wxColour_helper(_obj0, &_arg0)) | |
258 | return NULL; | |
259 | } | |
260 | if (_obj1) | |
261 | { | |
262 | _arg1 = &temp0; | |
263 | if (! wxColour_helper(_obj1, &_arg1)) | |
264 | return NULL; | |
265 | } | |
266 | if (_argo2) { | |
267 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
268 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
270 | return NULL; | |
271 | } | |
272 | } | |
273 | { | |
274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
275 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); | |
276 | ||
277 | wxPyEndAllowThreads(__tstate); | |
278 | if (PyErr_Occurred()) return NULL; | |
279 | } if (_result) { | |
280 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
281 | _resultobj = Py_BuildValue("s",_ptemp); | |
282 | } else { | |
283 | Py_INCREF(Py_None); | |
284 | _resultobj = Py_None; | |
285 | } | |
286 | return _resultobj; | |
287 | } | |
288 | ||
289 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
290 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
291 | PyObject * _resultobj; | |
292 | wxListItemAttr * _arg0; | |
293 | wxColour * _arg1; | |
294 | PyObject * _argo0 = 0; | |
295 | wxColour temp; | |
296 | PyObject * _obj1 = 0; | |
297 | char *_kwnames[] = { "self","colText", NULL }; | |
298 | ||
299 | self = self; | |
300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
301 | return NULL; | |
302 | if (_argo0) { | |
303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
306 | return NULL; | |
307 | } | |
308 | } | |
309 | { | |
310 | _arg1 = &temp; | |
311 | if (! wxColour_helper(_obj1, &_arg1)) | |
312 | return NULL; | |
313 | } | |
314 | { | |
315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
316 | wxListItemAttr_SetTextColour(_arg0,*_arg1); | |
317 | ||
318 | wxPyEndAllowThreads(__tstate); | |
319 | if (PyErr_Occurred()) return NULL; | |
320 | } Py_INCREF(Py_None); | |
321 | _resultobj = Py_None; | |
322 | return _resultobj; | |
323 | } | |
324 | ||
325 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
326 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
327 | PyObject * _resultobj; | |
328 | wxListItemAttr * _arg0; | |
329 | wxColour * _arg1; | |
330 | PyObject * _argo0 = 0; | |
331 | wxColour temp; | |
332 | PyObject * _obj1 = 0; | |
333 | char *_kwnames[] = { "self","colBack", NULL }; | |
334 | ||
335 | self = self; | |
336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
337 | return NULL; | |
338 | if (_argo0) { | |
339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
342 | return NULL; | |
343 | } | |
344 | } | |
345 | { | |
346 | _arg1 = &temp; | |
347 | if (! wxColour_helper(_obj1, &_arg1)) | |
348 | return NULL; | |
349 | } | |
350 | { | |
351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
352 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
353 | ||
354 | wxPyEndAllowThreads(__tstate); | |
355 | if (PyErr_Occurred()) return NULL; | |
356 | } Py_INCREF(Py_None); | |
357 | _resultobj = Py_None; | |
358 | return _resultobj; | |
359 | } | |
360 | ||
361 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
362 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
363 | PyObject * _resultobj; | |
364 | wxListItemAttr * _arg0; | |
365 | wxFont * _arg1; | |
366 | PyObject * _argo0 = 0; | |
367 | PyObject * _argo1 = 0; | |
368 | char *_kwnames[] = { "self","font", NULL }; | |
369 | ||
370 | self = self; | |
371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
372 | return NULL; | |
373 | if (_argo0) { | |
374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
377 | return NULL; | |
378 | } | |
379 | } | |
380 | if (_argo1) { | |
381 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
382 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
384 | return NULL; | |
385 | } | |
386 | } | |
387 | { | |
388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
389 | wxListItemAttr_SetFont(_arg0,*_arg1); | |
390 | ||
391 | wxPyEndAllowThreads(__tstate); | |
392 | if (PyErr_Occurred()) return NULL; | |
393 | } Py_INCREF(Py_None); | |
394 | _resultobj = Py_None; | |
395 | return _resultobj; | |
396 | } | |
397 | ||
398 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
399 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
400 | PyObject * _resultobj; | |
401 | bool _result; | |
402 | wxListItemAttr * _arg0; | |
403 | PyObject * _argo0 = 0; | |
404 | char *_kwnames[] = { "self", NULL }; | |
405 | ||
406 | self = self; | |
407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
408 | return NULL; | |
409 | if (_argo0) { | |
410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
413 | return NULL; | |
414 | } | |
415 | } | |
416 | { | |
417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
418 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); | |
419 | ||
420 | wxPyEndAllowThreads(__tstate); | |
421 | if (PyErr_Occurred()) return NULL; | |
422 | } _resultobj = Py_BuildValue("i",_result); | |
423 | return _resultobj; | |
424 | } | |
425 | ||
426 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
427 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
428 | PyObject * _resultobj; | |
429 | bool _result; | |
430 | wxListItemAttr * _arg0; | |
431 | PyObject * _argo0 = 0; | |
432 | char *_kwnames[] = { "self", NULL }; | |
433 | ||
434 | self = self; | |
435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
436 | return NULL; | |
437 | if (_argo0) { | |
438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
441 | return NULL; | |
442 | } | |
443 | } | |
444 | { | |
445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
446 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); | |
447 | ||
448 | wxPyEndAllowThreads(__tstate); | |
449 | if (PyErr_Occurred()) return NULL; | |
450 | } _resultobj = Py_BuildValue("i",_result); | |
451 | return _resultobj; | |
452 | } | |
453 | ||
454 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
455 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
456 | PyObject * _resultobj; | |
457 | bool _result; | |
458 | wxListItemAttr * _arg0; | |
459 | PyObject * _argo0 = 0; | |
460 | char *_kwnames[] = { "self", NULL }; | |
461 | ||
462 | self = self; | |
463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
464 | return NULL; | |
465 | if (_argo0) { | |
466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
469 | return NULL; | |
470 | } | |
471 | } | |
472 | { | |
473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
474 | _result = (bool )wxListItemAttr_HasFont(_arg0); | |
475 | ||
476 | wxPyEndAllowThreads(__tstate); | |
477 | if (PyErr_Occurred()) return NULL; | |
478 | } _resultobj = Py_BuildValue("i",_result); | |
479 | return _resultobj; | |
480 | } | |
481 | ||
482 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
483 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
484 | PyObject * _resultobj; | |
485 | wxColour * _result; | |
486 | wxListItemAttr * _arg0; | |
487 | PyObject * _argo0 = 0; | |
488 | char *_kwnames[] = { "self", NULL }; | |
489 | char _ptemp[128]; | |
490 | ||
491 | self = self; | |
492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
493 | return NULL; | |
494 | if (_argo0) { | |
495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
498 | return NULL; | |
499 | } | |
500 | } | |
501 | { | |
502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
503 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); | |
504 | ||
505 | wxPyEndAllowThreads(__tstate); | |
506 | if (PyErr_Occurred()) return NULL; | |
507 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
508 | _resultobj = Py_BuildValue("s",_ptemp); | |
509 | return _resultobj; | |
510 | } | |
511 | ||
512 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
513 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
514 | PyObject * _resultobj; | |
515 | wxColour * _result; | |
516 | wxListItemAttr * _arg0; | |
517 | PyObject * _argo0 = 0; | |
518 | char *_kwnames[] = { "self", NULL }; | |
519 | char _ptemp[128]; | |
520 | ||
521 | self = self; | |
522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
523 | return NULL; | |
524 | if (_argo0) { | |
525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
528 | return NULL; | |
529 | } | |
530 | } | |
531 | { | |
532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
533 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); | |
534 | ||
535 | wxPyEndAllowThreads(__tstate); | |
536 | if (PyErr_Occurred()) return NULL; | |
537 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
538 | _resultobj = Py_BuildValue("s",_ptemp); | |
539 | return _resultobj; | |
540 | } | |
541 | ||
542 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
543 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
544 | PyObject * _resultobj; | |
545 | wxFont * _result; | |
546 | wxListItemAttr * _arg0; | |
547 | PyObject * _argo0 = 0; | |
548 | char *_kwnames[] = { "self", NULL }; | |
549 | char _ptemp[128]; | |
550 | ||
551 | self = self; | |
552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
553 | return NULL; | |
554 | if (_argo0) { | |
555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
558 | return NULL; | |
559 | } | |
560 | } | |
561 | { | |
562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
563 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); | |
564 | ||
565 | wxPyEndAllowThreads(__tstate); | |
566 | if (PyErr_Occurred()) return NULL; | |
567 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
568 | _resultobj = Py_BuildValue("s",_ptemp); | |
569 | return _resultobj; | |
570 | } | |
571 | ||
572 | static void *SwigwxListItemTowxObject(void *ptr) { | |
573 | wxListItem *src; | |
574 | wxObject *dest; | |
575 | src = (wxListItem *) ptr; | |
576 | dest = (wxObject *) src; | |
577 | return (void *) dest; | |
578 | } | |
579 | ||
580 | #define new_wxListItem() (new wxListItem()) | |
581 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
582 | PyObject * _resultobj; | |
583 | wxListItem * _result; | |
584 | char *_kwnames[] = { NULL }; | |
585 | char _ptemp[128]; | |
586 | ||
587 | self = self; | |
588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
589 | return NULL; | |
590 | { | |
591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
592 | _result = (wxListItem *)new_wxListItem(); | |
593 | ||
594 | wxPyEndAllowThreads(__tstate); | |
595 | if (PyErr_Occurred()) return NULL; | |
596 | } if (_result) { | |
597 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
598 | _resultobj = Py_BuildValue("s",_ptemp); | |
599 | } else { | |
600 | Py_INCREF(Py_None); | |
601 | _resultobj = Py_None; | |
602 | } | |
603 | return _resultobj; | |
604 | } | |
605 | ||
606 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
607 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
608 | PyObject * _resultobj; | |
609 | wxListItem * _arg0; | |
610 | PyObject * _argo0 = 0; | |
611 | char *_kwnames[] = { "self", NULL }; | |
612 | ||
613 | self = self; | |
614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
615 | return NULL; | |
616 | if (_argo0) { | |
617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
620 | return NULL; | |
621 | } | |
622 | } | |
623 | { | |
624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
625 | delete_wxListItem(_arg0); | |
626 | ||
627 | wxPyEndAllowThreads(__tstate); | |
628 | if (PyErr_Occurred()) return NULL; | |
629 | } Py_INCREF(Py_None); | |
630 | _resultobj = Py_None; | |
631 | return _resultobj; | |
632 | } | |
633 | ||
634 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
635 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
636 | PyObject * _resultobj; | |
637 | wxListItem * _arg0; | |
638 | PyObject * _argo0 = 0; | |
639 | char *_kwnames[] = { "self", NULL }; | |
640 | ||
641 | self = self; | |
642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
643 | return NULL; | |
644 | if (_argo0) { | |
645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
648 | return NULL; | |
649 | } | |
650 | } | |
651 | { | |
652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
653 | wxListItem_Clear(_arg0); | |
654 | ||
655 | wxPyEndAllowThreads(__tstate); | |
656 | if (PyErr_Occurred()) return NULL; | |
657 | } Py_INCREF(Py_None); | |
658 | _resultobj = Py_None; | |
659 | return _resultobj; | |
660 | } | |
661 | ||
662 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
663 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
664 | PyObject * _resultobj; | |
665 | wxListItem * _arg0; | |
666 | PyObject * _argo0 = 0; | |
667 | char *_kwnames[] = { "self", NULL }; | |
668 | ||
669 | self = self; | |
670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
671 | return NULL; | |
672 | if (_argo0) { | |
673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
676 | return NULL; | |
677 | } | |
678 | } | |
679 | { | |
680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
681 | wxListItem_ClearAttributes(_arg0); | |
682 | ||
683 | wxPyEndAllowThreads(__tstate); | |
684 | if (PyErr_Occurred()) return NULL; | |
685 | } Py_INCREF(Py_None); | |
686 | _resultobj = Py_None; | |
687 | return _resultobj; | |
688 | } | |
689 | ||
690 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
691 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
692 | PyObject * _resultobj; | |
693 | wxListItem * _arg0; | |
694 | long _arg1; | |
695 | PyObject * _argo0 = 0; | |
696 | char *_kwnames[] = { "self","mask", NULL }; | |
697 | ||
698 | self = self; | |
699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
700 | return NULL; | |
701 | if (_argo0) { | |
702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
705 | return NULL; | |
706 | } | |
707 | } | |
708 | { | |
709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
710 | wxListItem_SetMask(_arg0,_arg1); | |
711 | ||
712 | wxPyEndAllowThreads(__tstate); | |
713 | if (PyErr_Occurred()) return NULL; | |
714 | } Py_INCREF(Py_None); | |
715 | _resultobj = Py_None; | |
716 | return _resultobj; | |
717 | } | |
718 | ||
719 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
720 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
721 | PyObject * _resultobj; | |
722 | wxListItem * _arg0; | |
723 | long _arg1; | |
724 | PyObject * _argo0 = 0; | |
725 | char *_kwnames[] = { "self","id", NULL }; | |
726 | ||
727 | self = self; | |
728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
729 | return NULL; | |
730 | if (_argo0) { | |
731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
734 | return NULL; | |
735 | } | |
736 | } | |
737 | { | |
738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
739 | wxListItem_SetId(_arg0,_arg1); | |
740 | ||
741 | wxPyEndAllowThreads(__tstate); | |
742 | if (PyErr_Occurred()) return NULL; | |
743 | } Py_INCREF(Py_None); | |
744 | _resultobj = Py_None; | |
745 | return _resultobj; | |
746 | } | |
747 | ||
748 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
749 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
750 | PyObject * _resultobj; | |
751 | wxListItem * _arg0; | |
752 | int _arg1; | |
753 | PyObject * _argo0 = 0; | |
754 | char *_kwnames[] = { "self","col", NULL }; | |
755 | ||
756 | self = self; | |
757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
758 | return NULL; | |
759 | if (_argo0) { | |
760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
763 | return NULL; | |
764 | } | |
765 | } | |
766 | { | |
767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
768 | wxListItem_SetColumn(_arg0,_arg1); | |
769 | ||
770 | wxPyEndAllowThreads(__tstate); | |
771 | if (PyErr_Occurred()) return NULL; | |
772 | } Py_INCREF(Py_None); | |
773 | _resultobj = Py_None; | |
774 | return _resultobj; | |
775 | } | |
776 | ||
777 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
778 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
779 | PyObject * _resultobj; | |
780 | wxListItem * _arg0; | |
781 | long _arg1; | |
782 | PyObject * _argo0 = 0; | |
783 | char *_kwnames[] = { "self","state", NULL }; | |
784 | ||
785 | self = self; | |
786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
787 | return NULL; | |
788 | if (_argo0) { | |
789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
792 | return NULL; | |
793 | } | |
794 | } | |
795 | { | |
796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
797 | wxListItem_SetState(_arg0,_arg1); | |
798 | ||
799 | wxPyEndAllowThreads(__tstate); | |
800 | if (PyErr_Occurred()) return NULL; | |
801 | } Py_INCREF(Py_None); | |
802 | _resultobj = Py_None; | |
803 | return _resultobj; | |
804 | } | |
805 | ||
806 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
807 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
808 | PyObject * _resultobj; | |
809 | wxListItem * _arg0; | |
810 | long _arg1; | |
811 | PyObject * _argo0 = 0; | |
812 | char *_kwnames[] = { "self","stateMask", NULL }; | |
813 | ||
814 | self = self; | |
815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
816 | return NULL; | |
817 | if (_argo0) { | |
818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
821 | return NULL; | |
822 | } | |
823 | } | |
824 | { | |
825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
826 | wxListItem_SetStateMask(_arg0,_arg1); | |
827 | ||
828 | wxPyEndAllowThreads(__tstate); | |
829 | if (PyErr_Occurred()) return NULL; | |
830 | } Py_INCREF(Py_None); | |
831 | _resultobj = Py_None; | |
832 | return _resultobj; | |
833 | } | |
834 | ||
835 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
836 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
837 | PyObject * _resultobj; | |
838 | wxListItem * _arg0; | |
839 | wxString * _arg1; | |
840 | PyObject * _argo0 = 0; | |
841 | PyObject * _obj1 = 0; | |
842 | char *_kwnames[] = { "self","text", NULL }; | |
843 | ||
844 | self = self; | |
845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
846 | return NULL; | |
847 | if (_argo0) { | |
848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
851 | return NULL; | |
852 | } | |
853 | } | |
854 | { | |
855 | _arg1 = wxString_in_helper(_obj1); | |
856 | if (_arg1 == NULL) | |
857 | return NULL; | |
858 | } | |
859 | { | |
860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
861 | wxListItem_SetText(_arg0,*_arg1); | |
862 | ||
863 | wxPyEndAllowThreads(__tstate); | |
864 | if (PyErr_Occurred()) return NULL; | |
865 | } Py_INCREF(Py_None); | |
866 | _resultobj = Py_None; | |
867 | { | |
868 | if (_obj1) | |
869 | delete _arg1; | |
870 | } | |
871 | return _resultobj; | |
872 | } | |
873 | ||
874 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
875 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
876 | PyObject * _resultobj; | |
877 | wxListItem * _arg0; | |
878 | int _arg1; | |
879 | PyObject * _argo0 = 0; | |
880 | char *_kwnames[] = { "self","image", NULL }; | |
881 | ||
882 | self = self; | |
883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
884 | return NULL; | |
885 | if (_argo0) { | |
886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
889 | return NULL; | |
890 | } | |
891 | } | |
892 | { | |
893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
894 | wxListItem_SetImage(_arg0,_arg1); | |
895 | ||
896 | wxPyEndAllowThreads(__tstate); | |
897 | if (PyErr_Occurred()) return NULL; | |
898 | } Py_INCREF(Py_None); | |
899 | _resultobj = Py_None; | |
900 | return _resultobj; | |
901 | } | |
902 | ||
903 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
904 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject * _resultobj; | |
906 | wxListItem * _arg0; | |
907 | long _arg1; | |
908 | PyObject * _argo0 = 0; | |
909 | char *_kwnames[] = { "self","data", NULL }; | |
910 | ||
911 | self = self; | |
912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
913 | return NULL; | |
914 | if (_argo0) { | |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
918 | return NULL; | |
919 | } | |
920 | } | |
921 | { | |
922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
923 | wxListItem_SetData(_arg0,_arg1); | |
924 | ||
925 | wxPyEndAllowThreads(__tstate); | |
926 | if (PyErr_Occurred()) return NULL; | |
927 | } Py_INCREF(Py_None); | |
928 | _resultobj = Py_None; | |
929 | return _resultobj; | |
930 | } | |
931 | ||
932 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
933 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
934 | PyObject * _resultobj; | |
935 | wxListItem * _arg0; | |
936 | int _arg1; | |
937 | PyObject * _argo0 = 0; | |
938 | char *_kwnames[] = { "self","width", NULL }; | |
939 | ||
940 | self = self; | |
941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
942 | return NULL; | |
943 | if (_argo0) { | |
944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
947 | return NULL; | |
948 | } | |
949 | } | |
950 | { | |
951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
952 | wxListItem_SetWidth(_arg0,_arg1); | |
953 | ||
954 | wxPyEndAllowThreads(__tstate); | |
955 | if (PyErr_Occurred()) return NULL; | |
956 | } Py_INCREF(Py_None); | |
957 | _resultobj = Py_None; | |
958 | return _resultobj; | |
959 | } | |
960 | ||
961 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
962 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
963 | PyObject * _resultobj; | |
964 | wxListItem * _arg0; | |
965 | wxListColumnFormat _arg1; | |
966 | PyObject * _argo0 = 0; | |
967 | char *_kwnames[] = { "self","align", NULL }; | |
968 | ||
969 | self = self; | |
970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
971 | return NULL; | |
972 | if (_argo0) { | |
973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
976 | return NULL; | |
977 | } | |
978 | } | |
979 | { | |
980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
981 | wxListItem_SetAlign(_arg0,_arg1); | |
982 | ||
983 | wxPyEndAllowThreads(__tstate); | |
984 | if (PyErr_Occurred()) return NULL; | |
985 | } Py_INCREF(Py_None); | |
986 | _resultobj = Py_None; | |
987 | return _resultobj; | |
988 | } | |
989 | ||
990 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
991 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
992 | PyObject * _resultobj; | |
993 | wxListItem * _arg0; | |
994 | wxColour * _arg1; | |
995 | PyObject * _argo0 = 0; | |
996 | wxColour temp; | |
997 | PyObject * _obj1 = 0; | |
998 | char *_kwnames[] = { "self","colText", NULL }; | |
999 | ||
1000 | self = self; | |
1001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1002 | return NULL; | |
1003 | if (_argo0) { | |
1004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1007 | return NULL; | |
1008 | } | |
1009 | } | |
1010 | { | |
1011 | _arg1 = &temp; | |
1012 | if (! wxColour_helper(_obj1, &_arg1)) | |
1013 | return NULL; | |
1014 | } | |
1015 | { | |
1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1017 | wxListItem_SetTextColour(_arg0,*_arg1); | |
1018 | ||
1019 | wxPyEndAllowThreads(__tstate); | |
1020 | if (PyErr_Occurred()) return NULL; | |
1021 | } Py_INCREF(Py_None); | |
1022 | _resultobj = Py_None; | |
1023 | return _resultobj; | |
1024 | } | |
1025 | ||
1026 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1027 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1028 | PyObject * _resultobj; | |
1029 | wxListItem * _arg0; | |
1030 | wxColour * _arg1; | |
1031 | PyObject * _argo0 = 0; | |
1032 | wxColour temp; | |
1033 | PyObject * _obj1 = 0; | |
1034 | char *_kwnames[] = { "self","colBack", NULL }; | |
1035 | ||
1036 | self = self; | |
1037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1038 | return NULL; | |
1039 | if (_argo0) { | |
1040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1043 | return NULL; | |
1044 | } | |
1045 | } | |
1046 | { | |
1047 | _arg1 = &temp; | |
1048 | if (! wxColour_helper(_obj1, &_arg1)) | |
1049 | return NULL; | |
1050 | } | |
1051 | { | |
1052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1053 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
1054 | ||
1055 | wxPyEndAllowThreads(__tstate); | |
1056 | if (PyErr_Occurred()) return NULL; | |
1057 | } Py_INCREF(Py_None); | |
1058 | _resultobj = Py_None; | |
1059 | return _resultobj; | |
1060 | } | |
1061 | ||
1062 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1063 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1064 | PyObject * _resultobj; | |
1065 | wxListItem * _arg0; | |
1066 | wxFont * _arg1; | |
1067 | PyObject * _argo0 = 0; | |
1068 | PyObject * _argo1 = 0; | |
1069 | char *_kwnames[] = { "self","font", NULL }; | |
1070 | ||
1071 | self = self; | |
1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1073 | return NULL; | |
1074 | if (_argo0) { | |
1075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
1081 | if (_argo1) { | |
1082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1085 | return NULL; | |
1086 | } | |
1087 | } | |
1088 | { | |
1089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1090 | wxListItem_SetFont(_arg0,*_arg1); | |
1091 | ||
1092 | wxPyEndAllowThreads(__tstate); | |
1093 | if (PyErr_Occurred()) return NULL; | |
1094 | } Py_INCREF(Py_None); | |
1095 | _resultobj = Py_None; | |
1096 | return _resultobj; | |
1097 | } | |
1098 | ||
1099 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1100 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1101 | PyObject * _resultobj; | |
1102 | long _result; | |
1103 | wxListItem * _arg0; | |
1104 | PyObject * _argo0 = 0; | |
1105 | char *_kwnames[] = { "self", NULL }; | |
1106 | ||
1107 | self = self; | |
1108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1109 | return NULL; | |
1110 | if (_argo0) { | |
1111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1114 | return NULL; | |
1115 | } | |
1116 | } | |
1117 | { | |
1118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1119 | _result = (long )wxListItem_GetMask(_arg0); | |
1120 | ||
1121 | wxPyEndAllowThreads(__tstate); | |
1122 | if (PyErr_Occurred()) return NULL; | |
1123 | } _resultobj = Py_BuildValue("l",_result); | |
1124 | return _resultobj; | |
1125 | } | |
1126 | ||
1127 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1128 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1129 | PyObject * _resultobj; | |
1130 | long _result; | |
1131 | wxListItem * _arg0; | |
1132 | PyObject * _argo0 = 0; | |
1133 | char *_kwnames[] = { "self", NULL }; | |
1134 | ||
1135 | self = self; | |
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1137 | return NULL; | |
1138 | if (_argo0) { | |
1139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1142 | return NULL; | |
1143 | } | |
1144 | } | |
1145 | { | |
1146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1147 | _result = (long )wxListItem_GetId(_arg0); | |
1148 | ||
1149 | wxPyEndAllowThreads(__tstate); | |
1150 | if (PyErr_Occurred()) return NULL; | |
1151 | } _resultobj = Py_BuildValue("l",_result); | |
1152 | return _resultobj; | |
1153 | } | |
1154 | ||
1155 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1156 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1157 | PyObject * _resultobj; | |
1158 | int _result; | |
1159 | wxListItem * _arg0; | |
1160 | PyObject * _argo0 = 0; | |
1161 | char *_kwnames[] = { "self", NULL }; | |
1162 | ||
1163 | self = self; | |
1164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1165 | return NULL; | |
1166 | if (_argo0) { | |
1167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1170 | return NULL; | |
1171 | } | |
1172 | } | |
1173 | { | |
1174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1175 | _result = (int )wxListItem_GetColumn(_arg0); | |
1176 | ||
1177 | wxPyEndAllowThreads(__tstate); | |
1178 | if (PyErr_Occurred()) return NULL; | |
1179 | } _resultobj = Py_BuildValue("i",_result); | |
1180 | return _resultobj; | |
1181 | } | |
1182 | ||
1183 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1184 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1185 | PyObject * _resultobj; | |
1186 | long _result; | |
1187 | wxListItem * _arg0; | |
1188 | PyObject * _argo0 = 0; | |
1189 | char *_kwnames[] = { "self", NULL }; | |
1190 | ||
1191 | self = self; | |
1192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1193 | return NULL; | |
1194 | if (_argo0) { | |
1195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1198 | return NULL; | |
1199 | } | |
1200 | } | |
1201 | { | |
1202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1203 | _result = (long )wxListItem_GetState(_arg0); | |
1204 | ||
1205 | wxPyEndAllowThreads(__tstate); | |
1206 | if (PyErr_Occurred()) return NULL; | |
1207 | } _resultobj = Py_BuildValue("l",_result); | |
1208 | return _resultobj; | |
1209 | } | |
1210 | ||
1211 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1212 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1213 | PyObject * _resultobj; | |
1214 | wxString * _result; | |
1215 | wxListItem * _arg0; | |
1216 | PyObject * _argo0 = 0; | |
1217 | char *_kwnames[] = { "self", NULL }; | |
1218 | ||
1219 | self = self; | |
1220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1221 | return NULL; | |
1222 | if (_argo0) { | |
1223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1226 | return NULL; | |
1227 | } | |
1228 | } | |
1229 | { | |
1230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1231 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1232 | _result = (wxString *) &_result_ref; | |
1233 | ||
1234 | wxPyEndAllowThreads(__tstate); | |
1235 | if (PyErr_Occurred()) return NULL; | |
1236 | }{ | |
1237 | #if wxUSE_UNICODE | |
1238 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1239 | #else | |
1240 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1241 | #endif | |
1242 | } | |
1243 | return _resultobj; | |
1244 | } | |
1245 | ||
1246 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1247 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1248 | PyObject * _resultobj; | |
1249 | int _result; | |
1250 | wxListItem * _arg0; | |
1251 | PyObject * _argo0 = 0; | |
1252 | char *_kwnames[] = { "self", NULL }; | |
1253 | ||
1254 | self = self; | |
1255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1256 | return NULL; | |
1257 | if (_argo0) { | |
1258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1261 | return NULL; | |
1262 | } | |
1263 | } | |
1264 | { | |
1265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1266 | _result = (int )wxListItem_GetImage(_arg0); | |
1267 | ||
1268 | wxPyEndAllowThreads(__tstate); | |
1269 | if (PyErr_Occurred()) return NULL; | |
1270 | } _resultobj = Py_BuildValue("i",_result); | |
1271 | return _resultobj; | |
1272 | } | |
1273 | ||
1274 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1275 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1276 | PyObject * _resultobj; | |
1277 | long _result; | |
1278 | wxListItem * _arg0; | |
1279 | PyObject * _argo0 = 0; | |
1280 | char *_kwnames[] = { "self", NULL }; | |
1281 | ||
1282 | self = self; | |
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1284 | return NULL; | |
1285 | if (_argo0) { | |
1286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1289 | return NULL; | |
1290 | } | |
1291 | } | |
1292 | { | |
1293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1294 | _result = (long )wxListItem_GetData(_arg0); | |
1295 | ||
1296 | wxPyEndAllowThreads(__tstate); | |
1297 | if (PyErr_Occurred()) return NULL; | |
1298 | } _resultobj = Py_BuildValue("l",_result); | |
1299 | return _resultobj; | |
1300 | } | |
1301 | ||
1302 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1303 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1304 | PyObject * _resultobj; | |
1305 | int _result; | |
1306 | wxListItem * _arg0; | |
1307 | PyObject * _argo0 = 0; | |
1308 | char *_kwnames[] = { "self", NULL }; | |
1309 | ||
1310 | self = self; | |
1311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1312 | return NULL; | |
1313 | if (_argo0) { | |
1314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1317 | return NULL; | |
1318 | } | |
1319 | } | |
1320 | { | |
1321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1322 | _result = (int )wxListItem_GetWidth(_arg0); | |
1323 | ||
1324 | wxPyEndAllowThreads(__tstate); | |
1325 | if (PyErr_Occurred()) return NULL; | |
1326 | } _resultobj = Py_BuildValue("i",_result); | |
1327 | return _resultobj; | |
1328 | } | |
1329 | ||
1330 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1331 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1332 | PyObject * _resultobj; | |
1333 | wxListColumnFormat _result; | |
1334 | wxListItem * _arg0; | |
1335 | PyObject * _argo0 = 0; | |
1336 | char *_kwnames[] = { "self", NULL }; | |
1337 | ||
1338 | self = self; | |
1339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1340 | return NULL; | |
1341 | if (_argo0) { | |
1342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1345 | return NULL; | |
1346 | } | |
1347 | } | |
1348 | { | |
1349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1350 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1351 | ||
1352 | wxPyEndAllowThreads(__tstate); | |
1353 | if (PyErr_Occurred()) return NULL; | |
1354 | } _resultobj = Py_BuildValue("i",_result); | |
1355 | return _resultobj; | |
1356 | } | |
1357 | ||
1358 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1359 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1360 | PyObject * _resultobj; | |
1361 | wxListItemAttr * _result; | |
1362 | wxListItem * _arg0; | |
1363 | PyObject * _argo0 = 0; | |
1364 | char *_kwnames[] = { "self", NULL }; | |
1365 | char _ptemp[128]; | |
1366 | ||
1367 | self = self; | |
1368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1369 | return NULL; | |
1370 | if (_argo0) { | |
1371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1374 | return NULL; | |
1375 | } | |
1376 | } | |
1377 | { | |
1378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1379 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1380 | ||
1381 | wxPyEndAllowThreads(__tstate); | |
1382 | if (PyErr_Occurred()) return NULL; | |
1383 | } if (_result) { | |
1384 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1385 | _resultobj = Py_BuildValue("s",_ptemp); | |
1386 | } else { | |
1387 | Py_INCREF(Py_None); | |
1388 | _resultobj = Py_None; | |
1389 | } | |
1390 | return _resultobj; | |
1391 | } | |
1392 | ||
1393 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1394 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1395 | PyObject * _resultobj; | |
1396 | bool _result; | |
1397 | wxListItem * _arg0; | |
1398 | PyObject * _argo0 = 0; | |
1399 | char *_kwnames[] = { "self", NULL }; | |
1400 | ||
1401 | self = self; | |
1402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1403 | return NULL; | |
1404 | if (_argo0) { | |
1405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1408 | return NULL; | |
1409 | } | |
1410 | } | |
1411 | { | |
1412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1413 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1414 | ||
1415 | wxPyEndAllowThreads(__tstate); | |
1416 | if (PyErr_Occurred()) return NULL; | |
1417 | } _resultobj = Py_BuildValue("i",_result); | |
1418 | return _resultobj; | |
1419 | } | |
1420 | ||
1421 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1422 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1423 | PyObject * _resultobj; | |
1424 | wxColour * _result; | |
1425 | wxListItem * _arg0; | |
1426 | PyObject * _argo0 = 0; | |
1427 | char *_kwnames[] = { "self", NULL }; | |
1428 | char _ptemp[128]; | |
1429 | ||
1430 | self = self; | |
1431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1432 | return NULL; | |
1433 | if (_argo0) { | |
1434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1437 | return NULL; | |
1438 | } | |
1439 | } | |
1440 | { | |
1441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1442 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1443 | ||
1444 | wxPyEndAllowThreads(__tstate); | |
1445 | if (PyErr_Occurred()) return NULL; | |
1446 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1447 | _resultobj = Py_BuildValue("s",_ptemp); | |
1448 | return _resultobj; | |
1449 | } | |
1450 | ||
1451 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1452 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1453 | PyObject * _resultobj; | |
1454 | wxColour * _result; | |
1455 | wxListItem * _arg0; | |
1456 | PyObject * _argo0 = 0; | |
1457 | char *_kwnames[] = { "self", NULL }; | |
1458 | char _ptemp[128]; | |
1459 | ||
1460 | self = self; | |
1461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1462 | return NULL; | |
1463 | if (_argo0) { | |
1464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1467 | return NULL; | |
1468 | } | |
1469 | } | |
1470 | { | |
1471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1472 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1473 | ||
1474 | wxPyEndAllowThreads(__tstate); | |
1475 | if (PyErr_Occurred()) return NULL; | |
1476 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1477 | _resultobj = Py_BuildValue("s",_ptemp); | |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
1481 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1482 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1483 | PyObject * _resultobj; | |
1484 | wxFont * _result; | |
1485 | wxListItem * _arg0; | |
1486 | PyObject * _argo0 = 0; | |
1487 | char *_kwnames[] = { "self", NULL }; | |
1488 | char _ptemp[128]; | |
1489 | ||
1490 | self = self; | |
1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1492 | return NULL; | |
1493 | if (_argo0) { | |
1494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1497 | return NULL; | |
1498 | } | |
1499 | } | |
1500 | { | |
1501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1502 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1503 | ||
1504 | wxPyEndAllowThreads(__tstate); | |
1505 | if (PyErr_Occurred()) return NULL; | |
1506 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1507 | _resultobj = Py_BuildValue("s",_ptemp); | |
1508 | return _resultobj; | |
1509 | } | |
1510 | ||
1511 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1512 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1513 | PyObject * _resultobj; | |
1514 | long _result; | |
1515 | wxListItem * _arg0; | |
1516 | long _arg1; | |
1517 | PyObject * _argo0 = 0; | |
1518 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1519 | ||
1520 | self = self; | |
1521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1522 | return NULL; | |
1523 | if (_argo0) { | |
1524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1527 | return NULL; | |
1528 | } | |
1529 | } | |
1530 | { | |
1531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1532 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1533 | ||
1534 | wxPyEndAllowThreads(__tstate); | |
1535 | if (PyErr_Occurred()) return NULL; | |
1536 | } _resultobj = Py_BuildValue("l",_result); | |
1537 | return _resultobj; | |
1538 | } | |
1539 | ||
1540 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1541 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject * _resultobj; | |
1543 | long _result; | |
1544 | wxListItem * _arg0; | |
1545 | PyObject * _argo0 = 0; | |
1546 | char *_kwnames[] = { "self", NULL }; | |
1547 | ||
1548 | self = self; | |
1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1550 | return NULL; | |
1551 | if (_argo0) { | |
1552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1555 | return NULL; | |
1556 | } | |
1557 | } | |
1558 | { | |
1559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1560 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1561 | ||
1562 | wxPyEndAllowThreads(__tstate); | |
1563 | if (PyErr_Occurred()) return NULL; | |
1564 | } _resultobj = Py_BuildValue("l",_result); | |
1565 | return _resultobj; | |
1566 | } | |
1567 | ||
1568 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1569 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1570 | PyObject * _resultobj; | |
1571 | long _result; | |
1572 | wxListItem * _arg0; | |
1573 | long _arg1; | |
1574 | PyObject * _argo0 = 0; | |
1575 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1576 | ||
1577 | self = self; | |
1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1579 | return NULL; | |
1580 | if (_argo0) { | |
1581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1584 | return NULL; | |
1585 | } | |
1586 | } | |
1587 | { | |
1588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1589 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); | |
1590 | ||
1591 | wxPyEndAllowThreads(__tstate); | |
1592 | if (PyErr_Occurred()) return NULL; | |
1593 | } _resultobj = Py_BuildValue("l",_result); | |
1594 | return _resultobj; | |
1595 | } | |
1596 | ||
1597 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1598 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1599 | PyObject * _resultobj; | |
1600 | long _result; | |
1601 | wxListItem * _arg0; | |
1602 | PyObject * _argo0 = 0; | |
1603 | char *_kwnames[] = { "self", NULL }; | |
1604 | ||
1605 | self = self; | |
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1607 | return NULL; | |
1608 | if (_argo0) { | |
1609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1612 | return NULL; | |
1613 | } | |
1614 | } | |
1615 | { | |
1616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1617 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1618 | ||
1619 | wxPyEndAllowThreads(__tstate); | |
1620 | if (PyErr_Occurred()) return NULL; | |
1621 | } _resultobj = Py_BuildValue("l",_result); | |
1622 | return _resultobj; | |
1623 | } | |
1624 | ||
1625 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1626 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1627 | PyObject * _resultobj; | |
1628 | int _result; | |
1629 | wxListItem * _arg0; | |
1630 | int _arg1; | |
1631 | PyObject * _argo0 = 0; | |
1632 | char *_kwnames[] = { "self","m_col", NULL }; | |
1633 | ||
1634 | self = self; | |
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1636 | return NULL; | |
1637 | if (_argo0) { | |
1638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1641 | return NULL; | |
1642 | } | |
1643 | } | |
1644 | { | |
1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1646 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1647 | ||
1648 | wxPyEndAllowThreads(__tstate); | |
1649 | if (PyErr_Occurred()) return NULL; | |
1650 | } _resultobj = Py_BuildValue("i",_result); | |
1651 | return _resultobj; | |
1652 | } | |
1653 | ||
1654 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1655 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1656 | PyObject * _resultobj; | |
1657 | int _result; | |
1658 | wxListItem * _arg0; | |
1659 | PyObject * _argo0 = 0; | |
1660 | char *_kwnames[] = { "self", NULL }; | |
1661 | ||
1662 | self = self; | |
1663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1664 | return NULL; | |
1665 | if (_argo0) { | |
1666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1669 | return NULL; | |
1670 | } | |
1671 | } | |
1672 | { | |
1673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1674 | _result = (int )wxListItem_m_col_get(_arg0); | |
1675 | ||
1676 | wxPyEndAllowThreads(__tstate); | |
1677 | if (PyErr_Occurred()) return NULL; | |
1678 | } _resultobj = Py_BuildValue("i",_result); | |
1679 | return _resultobj; | |
1680 | } | |
1681 | ||
1682 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1683 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1684 | PyObject * _resultobj; | |
1685 | long _result; | |
1686 | wxListItem * _arg0; | |
1687 | long _arg1; | |
1688 | PyObject * _argo0 = 0; | |
1689 | char *_kwnames[] = { "self","m_state", NULL }; | |
1690 | ||
1691 | self = self; | |
1692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1693 | return NULL; | |
1694 | if (_argo0) { | |
1695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1698 | return NULL; | |
1699 | } | |
1700 | } | |
1701 | { | |
1702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1703 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1704 | ||
1705 | wxPyEndAllowThreads(__tstate); | |
1706 | if (PyErr_Occurred()) return NULL; | |
1707 | } _resultobj = Py_BuildValue("l",_result); | |
1708 | return _resultobj; | |
1709 | } | |
1710 | ||
1711 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1712 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject * _resultobj; | |
1714 | long _result; | |
1715 | wxListItem * _arg0; | |
1716 | PyObject * _argo0 = 0; | |
1717 | char *_kwnames[] = { "self", NULL }; | |
1718 | ||
1719 | self = self; | |
1720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1721 | return NULL; | |
1722 | if (_argo0) { | |
1723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1726 | return NULL; | |
1727 | } | |
1728 | } | |
1729 | { | |
1730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1731 | _result = (long )wxListItem_m_state_get(_arg0); | |
1732 | ||
1733 | wxPyEndAllowThreads(__tstate); | |
1734 | if (PyErr_Occurred()) return NULL; | |
1735 | } _resultobj = Py_BuildValue("l",_result); | |
1736 | return _resultobj; | |
1737 | } | |
1738 | ||
1739 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1740 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1741 | PyObject * _resultobj; | |
1742 | long _result; | |
1743 | wxListItem * _arg0; | |
1744 | long _arg1; | |
1745 | PyObject * _argo0 = 0; | |
1746 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1747 | ||
1748 | self = self; | |
1749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1750 | return NULL; | |
1751 | if (_argo0) { | |
1752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1755 | return NULL; | |
1756 | } | |
1757 | } | |
1758 | { | |
1759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1760 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1761 | ||
1762 | wxPyEndAllowThreads(__tstate); | |
1763 | if (PyErr_Occurred()) return NULL; | |
1764 | } _resultobj = Py_BuildValue("l",_result); | |
1765 | return _resultobj; | |
1766 | } | |
1767 | ||
1768 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1769 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1770 | PyObject * _resultobj; | |
1771 | long _result; | |
1772 | wxListItem * _arg0; | |
1773 | PyObject * _argo0 = 0; | |
1774 | char *_kwnames[] = { "self", NULL }; | |
1775 | ||
1776 | self = self; | |
1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1778 | return NULL; | |
1779 | if (_argo0) { | |
1780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1783 | return NULL; | |
1784 | } | |
1785 | } | |
1786 | { | |
1787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1788 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
1789 | ||
1790 | wxPyEndAllowThreads(__tstate); | |
1791 | if (PyErr_Occurred()) return NULL; | |
1792 | } _resultobj = Py_BuildValue("l",_result); | |
1793 | return _resultobj; | |
1794 | } | |
1795 | ||
1796 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1797 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1798 | PyObject * _resultobj; | |
1799 | wxString * _result; | |
1800 | wxListItem * _arg0; | |
1801 | wxString * _arg1; | |
1802 | PyObject * _argo0 = 0; | |
1803 | PyObject * _obj1 = 0; | |
1804 | char *_kwnames[] = { "self","m_text", NULL }; | |
1805 | ||
1806 | self = self; | |
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1808 | return NULL; | |
1809 | if (_argo0) { | |
1810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1813 | return NULL; | |
1814 | } | |
1815 | } | |
1816 | { | |
1817 | _arg1 = wxString_in_helper(_obj1); | |
1818 | if (_arg1 == NULL) | |
1819 | return NULL; | |
1820 | } | |
1821 | { | |
1822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1823 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1824 | ||
1825 | wxPyEndAllowThreads(__tstate); | |
1826 | if (PyErr_Occurred()) return NULL; | |
1827 | }{ | |
1828 | #if wxUSE_UNICODE | |
1829 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1830 | #else | |
1831 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1832 | #endif | |
1833 | } | |
1834 | { | |
1835 | if (_obj1) | |
1836 | delete _arg1; | |
1837 | } | |
1838 | return _resultobj; | |
1839 | } | |
1840 | ||
1841 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1842 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1843 | PyObject * _resultobj; | |
1844 | wxString * _result; | |
1845 | wxListItem * _arg0; | |
1846 | PyObject * _argo0 = 0; | |
1847 | char *_kwnames[] = { "self", NULL }; | |
1848 | ||
1849 | self = self; | |
1850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1851 | return NULL; | |
1852 | if (_argo0) { | |
1853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1856 | return NULL; | |
1857 | } | |
1858 | } | |
1859 | { | |
1860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1861 | _result = (wxString *)wxListItem_m_text_get(_arg0); | |
1862 | ||
1863 | wxPyEndAllowThreads(__tstate); | |
1864 | if (PyErr_Occurred()) return NULL; | |
1865 | }{ | |
1866 | #if wxUSE_UNICODE | |
1867 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1868 | #else | |
1869 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1870 | #endif | |
1871 | } | |
1872 | return _resultobj; | |
1873 | } | |
1874 | ||
1875 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1876 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1877 | PyObject * _resultobj; | |
1878 | int _result; | |
1879 | wxListItem * _arg0; | |
1880 | int _arg1; | |
1881 | PyObject * _argo0 = 0; | |
1882 | char *_kwnames[] = { "self","m_image", NULL }; | |
1883 | ||
1884 | self = self; | |
1885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1886 | return NULL; | |
1887 | if (_argo0) { | |
1888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1891 | return NULL; | |
1892 | } | |
1893 | } | |
1894 | { | |
1895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1896 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); | |
1897 | ||
1898 | wxPyEndAllowThreads(__tstate); | |
1899 | if (PyErr_Occurred()) return NULL; | |
1900 | } _resultobj = Py_BuildValue("i",_result); | |
1901 | return _resultobj; | |
1902 | } | |
1903 | ||
1904 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1905 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1906 | PyObject * _resultobj; | |
1907 | int _result; | |
1908 | wxListItem * _arg0; | |
1909 | PyObject * _argo0 = 0; | |
1910 | char *_kwnames[] = { "self", NULL }; | |
1911 | ||
1912 | self = self; | |
1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1914 | return NULL; | |
1915 | if (_argo0) { | |
1916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1919 | return NULL; | |
1920 | } | |
1921 | } | |
1922 | { | |
1923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1924 | _result = (int )wxListItem_m_image_get(_arg0); | |
1925 | ||
1926 | wxPyEndAllowThreads(__tstate); | |
1927 | if (PyErr_Occurred()) return NULL; | |
1928 | } _resultobj = Py_BuildValue("i",_result); | |
1929 | return _resultobj; | |
1930 | } | |
1931 | ||
1932 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1933 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1934 | PyObject * _resultobj; | |
1935 | long _result; | |
1936 | wxListItem * _arg0; | |
1937 | long _arg1; | |
1938 | PyObject * _argo0 = 0; | |
1939 | char *_kwnames[] = { "self","m_data", NULL }; | |
1940 | ||
1941 | self = self; | |
1942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1943 | return NULL; | |
1944 | if (_argo0) { | |
1945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1948 | return NULL; | |
1949 | } | |
1950 | } | |
1951 | { | |
1952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1953 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); | |
1954 | ||
1955 | wxPyEndAllowThreads(__tstate); | |
1956 | if (PyErr_Occurred()) return NULL; | |
1957 | } _resultobj = Py_BuildValue("l",_result); | |
1958 | return _resultobj; | |
1959 | } | |
1960 | ||
1961 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1962 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1963 | PyObject * _resultobj; | |
1964 | long _result; | |
1965 | wxListItem * _arg0; | |
1966 | PyObject * _argo0 = 0; | |
1967 | char *_kwnames[] = { "self", NULL }; | |
1968 | ||
1969 | self = self; | |
1970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1971 | return NULL; | |
1972 | if (_argo0) { | |
1973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1976 | return NULL; | |
1977 | } | |
1978 | } | |
1979 | { | |
1980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1981 | _result = (long )wxListItem_m_data_get(_arg0); | |
1982 | ||
1983 | wxPyEndAllowThreads(__tstate); | |
1984 | if (PyErr_Occurred()) return NULL; | |
1985 | } _resultobj = Py_BuildValue("l",_result); | |
1986 | return _resultobj; | |
1987 | } | |
1988 | ||
1989 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1990 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1991 | PyObject * _resultobj; | |
1992 | int _result; | |
1993 | wxListItem * _arg0; | |
1994 | int _arg1; | |
1995 | PyObject * _argo0 = 0; | |
1996 | char *_kwnames[] = { "self","m_format", NULL }; | |
1997 | ||
1998 | self = self; | |
1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
2000 | return NULL; | |
2001 | if (_argo0) { | |
2002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
2005 | return NULL; | |
2006 | } | |
2007 | } | |
2008 | { | |
2009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2010 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); | |
2011 | ||
2012 | wxPyEndAllowThreads(__tstate); | |
2013 | if (PyErr_Occurred()) return NULL; | |
2014 | } _resultobj = Py_BuildValue("i",_result); | |
2015 | return _resultobj; | |
2016 | } | |
2017 | ||
2018 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
2019 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2020 | PyObject * _resultobj; | |
2021 | int _result; | |
2022 | wxListItem * _arg0; | |
2023 | PyObject * _argo0 = 0; | |
2024 | char *_kwnames[] = { "self", NULL }; | |
2025 | ||
2026 | self = self; | |
2027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
2028 | return NULL; | |
2029 | if (_argo0) { | |
2030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
2033 | return NULL; | |
2034 | } | |
2035 | } | |
2036 | { | |
2037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2038 | _result = (int )wxListItem_m_format_get(_arg0); | |
2039 | ||
2040 | wxPyEndAllowThreads(__tstate); | |
2041 | if (PyErr_Occurred()) return NULL; | |
2042 | } _resultobj = Py_BuildValue("i",_result); | |
2043 | return _resultobj; | |
2044 | } | |
2045 | ||
2046 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) | |
2047 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2048 | PyObject * _resultobj; | |
2049 | int _result; | |
2050 | wxListItem * _arg0; | |
2051 | int _arg1; | |
2052 | PyObject * _argo0 = 0; | |
2053 | char *_kwnames[] = { "self","m_width", NULL }; | |
2054 | ||
2055 | self = self; | |
2056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) | |
2057 | return NULL; | |
2058 | if (_argo0) { | |
2059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); | |
2062 | return NULL; | |
2063 | } | |
2064 | } | |
2065 | { | |
2066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2067 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); | |
2068 | ||
2069 | wxPyEndAllowThreads(__tstate); | |
2070 | if (PyErr_Occurred()) return NULL; | |
2071 | } _resultobj = Py_BuildValue("i",_result); | |
2072 | return _resultobj; | |
2073 | } | |
2074 | ||
2075 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) | |
2076 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2077 | PyObject * _resultobj; | |
2078 | int _result; | |
2079 | wxListItem * _arg0; | |
2080 | PyObject * _argo0 = 0; | |
2081 | char *_kwnames[] = { "self", NULL }; | |
2082 | ||
2083 | self = self; | |
2084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) | |
2085 | return NULL; | |
2086 | if (_argo0) { | |
2087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); | |
2090 | return NULL; | |
2091 | } | |
2092 | } | |
2093 | { | |
2094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2095 | _result = (int )wxListItem_m_width_get(_arg0); | |
2096 | ||
2097 | wxPyEndAllowThreads(__tstate); | |
2098 | if (PyErr_Occurred()) return NULL; | |
2099 | } _resultobj = Py_BuildValue("i",_result); | |
2100 | return _resultobj; | |
2101 | } | |
2102 | ||
2103 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { | |
2104 | wxListEvent *src; | |
2105 | wxNotifyEvent *dest; | |
2106 | src = (wxListEvent *) ptr; | |
2107 | dest = (wxNotifyEvent *) src; | |
2108 | return (void *) dest; | |
2109 | } | |
2110 | ||
2111 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { | |
2112 | wxListEvent *src; | |
2113 | wxCommandEvent *dest; | |
2114 | src = (wxListEvent *) ptr; | |
2115 | dest = (wxCommandEvent *) src; | |
2116 | return (void *) dest; | |
2117 | } | |
2118 | ||
2119 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2120 | wxListEvent *src; | |
2121 | wxEvent *dest; | |
2122 | src = (wxListEvent *) ptr; | |
2123 | dest = (wxEvent *) src; | |
2124 | return (void *) dest; | |
2125 | } | |
2126 | ||
2127 | static void *SwigwxListEventTowxObject(void *ptr) { | |
2128 | wxListEvent *src; | |
2129 | wxObject *dest; | |
2130 | src = (wxListEvent *) ptr; | |
2131 | dest = (wxObject *) src; | |
2132 | return (void *) dest; | |
2133 | } | |
2134 | ||
2135 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) | |
2136 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2137 | PyObject * _resultobj; | |
2138 | wxListEvent * _result; | |
2139 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2140 | int _arg1 = (int ) 0; | |
2141 | char *_kwnames[] = { "commandType","id", NULL }; | |
2142 | char _ptemp[128]; | |
2143 | ||
2144 | self = self; | |
2145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2146 | return NULL; | |
2147 | { | |
2148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2149 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); | |
2150 | ||
2151 | wxPyEndAllowThreads(__tstate); | |
2152 | if (PyErr_Occurred()) return NULL; | |
2153 | } if (_result) { | |
2154 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2155 | _resultobj = Py_BuildValue("s",_ptemp); | |
2156 | } else { | |
2157 | Py_INCREF(Py_None); | |
2158 | _resultobj = Py_None; | |
2159 | } | |
2160 | return _resultobj; | |
2161 | } | |
2162 | ||
2163 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) | |
2164 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2165 | PyObject * _resultobj; | |
2166 | int _result; | |
2167 | wxListEvent * _arg0; | |
2168 | PyObject * _argo0 = 0; | |
2169 | char *_kwnames[] = { "self", NULL }; | |
2170 | ||
2171 | self = self; | |
2172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2173 | return NULL; | |
2174 | if (_argo0) { | |
2175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2178 | return NULL; | |
2179 | } | |
2180 | } | |
2181 | { | |
2182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2183 | _result = (int )wxListEvent_m_code_get(_arg0); | |
2184 | ||
2185 | wxPyEndAllowThreads(__tstate); | |
2186 | if (PyErr_Occurred()) return NULL; | |
2187 | } _resultobj = Py_BuildValue("i",_result); | |
2188 | return _resultobj; | |
2189 | } | |
2190 | ||
2191 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) | |
2192 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2193 | PyObject * _resultobj; | |
2194 | long _result; | |
2195 | wxListEvent * _arg0; | |
2196 | PyObject * _argo0 = 0; | |
2197 | char *_kwnames[] = { "self", NULL }; | |
2198 | ||
2199 | self = self; | |
2200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) | |
2201 | return NULL; | |
2202 | if (_argo0) { | |
2203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
2206 | return NULL; | |
2207 | } | |
2208 | } | |
2209 | { | |
2210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2211 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); | |
2212 | ||
2213 | wxPyEndAllowThreads(__tstate); | |
2214 | if (PyErr_Occurred()) return NULL; | |
2215 | } _resultobj = Py_BuildValue("l",_result); | |
2216 | return _resultobj; | |
2217 | } | |
2218 | ||
2219 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) | |
2220 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2221 | PyObject * _resultobj; | |
2222 | long _result; | |
2223 | wxListEvent * _arg0; | |
2224 | PyObject * _argo0 = 0; | |
2225 | char *_kwnames[] = { "self", NULL }; | |
2226 | ||
2227 | self = self; | |
2228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) | |
2229 | return NULL; | |
2230 | if (_argo0) { | |
2231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
2234 | return NULL; | |
2235 | } | |
2236 | } | |
2237 | { | |
2238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2239 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); | |
2240 | ||
2241 | wxPyEndAllowThreads(__tstate); | |
2242 | if (PyErr_Occurred()) return NULL; | |
2243 | } _resultobj = Py_BuildValue("l",_result); | |
2244 | return _resultobj; | |
2245 | } | |
2246 | ||
2247 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
2248 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2249 | PyObject * _resultobj; | |
2250 | int _result; | |
2251 | wxListEvent * _arg0; | |
2252 | PyObject * _argo0 = 0; | |
2253 | char *_kwnames[] = { "self", NULL }; | |
2254 | ||
2255 | self = self; | |
2256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) | |
2257 | return NULL; | |
2258 | if (_argo0) { | |
2259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
2262 | return NULL; | |
2263 | } | |
2264 | } | |
2265 | { | |
2266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2267 | _result = (int )wxListEvent_m_col_get(_arg0); | |
2268 | ||
2269 | wxPyEndAllowThreads(__tstate); | |
2270 | if (PyErr_Occurred()) return NULL; | |
2271 | } _resultobj = Py_BuildValue("i",_result); | |
2272 | return _resultobj; | |
2273 | } | |
2274 | ||
2275 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) | |
2276 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2277 | PyObject * _resultobj; | |
2278 | wxPoint * _result; | |
2279 | wxListEvent * _arg0; | |
2280 | PyObject * _argo0 = 0; | |
2281 | char *_kwnames[] = { "self", NULL }; | |
2282 | char _ptemp[128]; | |
2283 | ||
2284 | self = self; | |
2285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) | |
2286 | return NULL; | |
2287 | if (_argo0) { | |
2288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
2291 | return NULL; | |
2292 | } | |
2293 | } | |
2294 | { | |
2295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2296 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); | |
2297 | ||
2298 | wxPyEndAllowThreads(__tstate); | |
2299 | if (PyErr_Occurred()) return NULL; | |
2300 | } if (_result) { | |
2301 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2302 | _resultobj = Py_BuildValue("s",_ptemp); | |
2303 | } else { | |
2304 | Py_INCREF(Py_None); | |
2305 | _resultobj = Py_None; | |
2306 | } | |
2307 | return _resultobj; | |
2308 | } | |
2309 | ||
2310 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) | |
2311 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2312 | PyObject * _resultobj; | |
2313 | wxListItem * _result; | |
2314 | wxListEvent * _arg0; | |
2315 | PyObject * _argo0 = 0; | |
2316 | char *_kwnames[] = { "self", NULL }; | |
2317 | ||
2318 | self = self; | |
2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) | |
2320 | return NULL; | |
2321 | if (_argo0) { | |
2322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); | |
2325 | return NULL; | |
2326 | } | |
2327 | } | |
2328 | { | |
2329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2330 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); | |
2331 | ||
2332 | wxPyEndAllowThreads(__tstate); | |
2333 | if (PyErr_Occurred()) return NULL; | |
2334 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2335 | return _resultobj; | |
2336 | } | |
2337 | ||
2338 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) | |
2339 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2340 | PyObject * _resultobj; | |
2341 | int _result; | |
2342 | wxListEvent * _arg0; | |
2343 | PyObject * _argo0 = 0; | |
2344 | char *_kwnames[] = { "self", NULL }; | |
2345 | ||
2346 | self = self; | |
2347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) | |
2348 | return NULL; | |
2349 | if (_argo0) { | |
2350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); | |
2353 | return NULL; | |
2354 | } | |
2355 | } | |
2356 | { | |
2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2358 | _result = (int )wxListEvent_GetCode(_arg0); | |
2359 | ||
2360 | wxPyEndAllowThreads(__tstate); | |
2361 | if (PyErr_Occurred()) return NULL; | |
2362 | } _resultobj = Py_BuildValue("i",_result); | |
2363 | return _resultobj; | |
2364 | } | |
2365 | ||
2366 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) | |
2367 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2368 | PyObject * _resultobj; | |
2369 | long _result; | |
2370 | wxListEvent * _arg0; | |
2371 | PyObject * _argo0 = 0; | |
2372 | char *_kwnames[] = { "self", NULL }; | |
2373 | ||
2374 | self = self; | |
2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) | |
2376 | return NULL; | |
2377 | if (_argo0) { | |
2378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); | |
2381 | return NULL; | |
2382 | } | |
2383 | } | |
2384 | { | |
2385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2386 | _result = (long )wxListEvent_GetIndex(_arg0); | |
2387 | ||
2388 | wxPyEndAllowThreads(__tstate); | |
2389 | if (PyErr_Occurred()) return NULL; | |
2390 | } _resultobj = Py_BuildValue("l",_result); | |
2391 | return _resultobj; | |
2392 | } | |
2393 | ||
2394 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
2395 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2396 | PyObject * _resultobj; | |
2397 | int _result; | |
2398 | wxListEvent * _arg0; | |
2399 | PyObject * _argo0 = 0; | |
2400 | char *_kwnames[] = { "self", NULL }; | |
2401 | ||
2402 | self = self; | |
2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) | |
2404 | return NULL; | |
2405 | if (_argo0) { | |
2406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); | |
2409 | return NULL; | |
2410 | } | |
2411 | } | |
2412 | { | |
2413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2414 | _result = (int )wxListEvent_GetColumn(_arg0); | |
2415 | ||
2416 | wxPyEndAllowThreads(__tstate); | |
2417 | if (PyErr_Occurred()) return NULL; | |
2418 | } _resultobj = Py_BuildValue("i",_result); | |
2419 | return _resultobj; | |
2420 | } | |
2421 | ||
2422 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) | |
2423 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2424 | PyObject * _resultobj; | |
2425 | wxPoint * _result; | |
2426 | wxListEvent * _arg0; | |
2427 | PyObject * _argo0 = 0; | |
2428 | char *_kwnames[] = { "self", NULL }; | |
2429 | char _ptemp[128]; | |
2430 | ||
2431 | self = self; | |
2432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) | |
2433 | return NULL; | |
2434 | if (_argo0) { | |
2435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); | |
2438 | return NULL; | |
2439 | } | |
2440 | } | |
2441 | { | |
2442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2443 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); | |
2444 | ||
2445 | wxPyEndAllowThreads(__tstate); | |
2446 | if (PyErr_Occurred()) return NULL; | |
2447 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2448 | _resultobj = Py_BuildValue("s",_ptemp); | |
2449 | return _resultobj; | |
2450 | } | |
2451 | ||
2452 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
2453 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2454 | PyObject * _resultobj; | |
2455 | wxString * _result; | |
2456 | wxListEvent * _arg0; | |
2457 | PyObject * _argo0 = 0; | |
2458 | char *_kwnames[] = { "self", NULL }; | |
2459 | ||
2460 | self = self; | |
2461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) | |
2462 | return NULL; | |
2463 | if (_argo0) { | |
2464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); | |
2467 | return NULL; | |
2468 | } | |
2469 | } | |
2470 | { | |
2471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2472 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); | |
2473 | _result = (wxString *) &_result_ref; | |
2474 | ||
2475 | wxPyEndAllowThreads(__tstate); | |
2476 | if (PyErr_Occurred()) return NULL; | |
2477 | }{ | |
2478 | #if wxUSE_UNICODE | |
2479 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2480 | #else | |
2481 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2482 | #endif | |
2483 | } | |
2484 | return _resultobj; | |
2485 | } | |
2486 | ||
2487 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) | |
2488 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2489 | PyObject * _resultobj; | |
2490 | wxString * _result; | |
2491 | wxListEvent * _arg0; | |
2492 | PyObject * _argo0 = 0; | |
2493 | char *_kwnames[] = { "self", NULL }; | |
2494 | ||
2495 | self = self; | |
2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) | |
2497 | return NULL; | |
2498 | if (_argo0) { | |
2499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); | |
2502 | return NULL; | |
2503 | } | |
2504 | } | |
2505 | { | |
2506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2507 | const wxString & _result_ref = wxListEvent_GetText(_arg0); | |
2508 | _result = (wxString *) &_result_ref; | |
2509 | ||
2510 | wxPyEndAllowThreads(__tstate); | |
2511 | if (PyErr_Occurred()) return NULL; | |
2512 | }{ | |
2513 | #if wxUSE_UNICODE | |
2514 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2515 | #else | |
2516 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2517 | #endif | |
2518 | } | |
2519 | return _resultobj; | |
2520 | } | |
2521 | ||
2522 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) | |
2523 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2524 | PyObject * _resultobj; | |
2525 | int _result; | |
2526 | wxListEvent * _arg0; | |
2527 | PyObject * _argo0 = 0; | |
2528 | char *_kwnames[] = { "self", NULL }; | |
2529 | ||
2530 | self = self; | |
2531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) | |
2532 | return NULL; | |
2533 | if (_argo0) { | |
2534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); | |
2537 | return NULL; | |
2538 | } | |
2539 | } | |
2540 | { | |
2541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2542 | _result = (int )wxListEvent_GetImage(_arg0); | |
2543 | ||
2544 | wxPyEndAllowThreads(__tstate); | |
2545 | if (PyErr_Occurred()) return NULL; | |
2546 | } _resultobj = Py_BuildValue("i",_result); | |
2547 | return _resultobj; | |
2548 | } | |
2549 | ||
2550 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) | |
2551 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2552 | PyObject * _resultobj; | |
2553 | long _result; | |
2554 | wxListEvent * _arg0; | |
2555 | PyObject * _argo0 = 0; | |
2556 | char *_kwnames[] = { "self", NULL }; | |
2557 | ||
2558 | self = self; | |
2559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) | |
2560 | return NULL; | |
2561 | if (_argo0) { | |
2562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); | |
2565 | return NULL; | |
2566 | } | |
2567 | } | |
2568 | { | |
2569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2570 | _result = (long )wxListEvent_GetData(_arg0); | |
2571 | ||
2572 | wxPyEndAllowThreads(__tstate); | |
2573 | if (PyErr_Occurred()) return NULL; | |
2574 | } _resultobj = Py_BuildValue("l",_result); | |
2575 | return _resultobj; | |
2576 | } | |
2577 | ||
2578 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) | |
2579 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2580 | PyObject * _resultobj; | |
2581 | long _result; | |
2582 | wxListEvent * _arg0; | |
2583 | PyObject * _argo0 = 0; | |
2584 | char *_kwnames[] = { "self", NULL }; | |
2585 | ||
2586 | self = self; | |
2587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) | |
2588 | return NULL; | |
2589 | if (_argo0) { | |
2590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); | |
2593 | return NULL; | |
2594 | } | |
2595 | } | |
2596 | { | |
2597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2598 | _result = (long )wxListEvent_GetMask(_arg0); | |
2599 | ||
2600 | wxPyEndAllowThreads(__tstate); | |
2601 | if (PyErr_Occurred()) return NULL; | |
2602 | } _resultobj = Py_BuildValue("l",_result); | |
2603 | return _resultobj; | |
2604 | } | |
2605 | ||
2606 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) | |
2607 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2608 | PyObject * _resultobj; | |
2609 | wxListItem * _result; | |
2610 | wxListEvent * _arg0; | |
2611 | PyObject * _argo0 = 0; | |
2612 | char *_kwnames[] = { "self", NULL }; | |
2613 | ||
2614 | self = self; | |
2615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) | |
2616 | return NULL; | |
2617 | if (_argo0) { | |
2618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); | |
2621 | return NULL; | |
2622 | } | |
2623 | } | |
2624 | { | |
2625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2626 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); | |
2627 | _result = (wxListItem *) &_result_ref; | |
2628 | ||
2629 | wxPyEndAllowThreads(__tstate); | |
2630 | if (PyErr_Occurred()) return NULL; | |
2631 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2632 | return _resultobj; | |
2633 | } | |
2634 | ||
2635 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) | |
2636 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2637 | PyObject * _resultobj; | |
2638 | long _result; | |
2639 | wxListEvent * _arg0; | |
2640 | PyObject * _argo0 = 0; | |
2641 | char *_kwnames[] = { "self", NULL }; | |
2642 | ||
2643 | self = self; | |
2644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2645 | return NULL; | |
2646 | if (_argo0) { | |
2647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2650 | return NULL; | |
2651 | } | |
2652 | } | |
2653 | { | |
2654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2655 | _result = (long )wxListEvent_GetCacheFrom(_arg0); | |
2656 | ||
2657 | wxPyEndAllowThreads(__tstate); | |
2658 | if (PyErr_Occurred()) return NULL; | |
2659 | } _resultobj = Py_BuildValue("l",_result); | |
2660 | return _resultobj; | |
2661 | } | |
2662 | ||
2663 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2664 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2665 | PyObject * _resultobj; | |
2666 | long _result; | |
2667 | wxListEvent * _arg0; | |
2668 | PyObject * _argo0 = 0; | |
2669 | char *_kwnames[] = { "self", NULL }; | |
2670 | ||
2671 | self = self; | |
2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2673 | return NULL; | |
2674 | if (_argo0) { | |
2675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2678 | return NULL; | |
2679 | } | |
2680 | } | |
2681 | { | |
2682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2683 | _result = (long )wxListEvent_GetCacheTo(_arg0); | |
2684 | ||
2685 | wxPyEndAllowThreads(__tstate); | |
2686 | if (PyErr_Occurred()) return NULL; | |
2687 | } _resultobj = Py_BuildValue("l",_result); | |
2688 | return _resultobj; | |
2689 | } | |
2690 | ||
2691 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { | |
2692 | wxPyListCtrl *src; | |
2693 | wxControl *dest; | |
2694 | src = (wxPyListCtrl *) ptr; | |
2695 | dest = (wxControl *) src; | |
2696 | return (void *) dest; | |
2697 | } | |
2698 | ||
2699 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { | |
2700 | wxPyListCtrl *src; | |
2701 | wxWindow *dest; | |
2702 | src = (wxPyListCtrl *) ptr; | |
2703 | dest = (wxWindow *) src; | |
2704 | return (void *) dest; | |
2705 | } | |
2706 | ||
2707 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { | |
2708 | wxPyListCtrl *src; | |
2709 | wxEvtHandler *dest; | |
2710 | src = (wxPyListCtrl *) ptr; | |
2711 | dest = (wxEvtHandler *) src; | |
2712 | return (void *) dest; | |
2713 | } | |
2714 | ||
2715 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { | |
2716 | wxPyListCtrl *src; | |
2717 | wxObject *dest; | |
2718 | src = (wxPyListCtrl *) ptr; | |
2719 | dest = (wxObject *) src; | |
2720 | return (void *) dest; | |
2721 | } | |
2722 | ||
2723 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2724 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2725 | PyObject * _resultobj; | |
2726 | wxPyListCtrl * _result; | |
2727 | wxWindow * _arg0; | |
2728 | wxWindowID _arg1 = (wxWindowID ) -1; | |
2729 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
2730 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2731 | long _arg4 = (long ) (wxLC_ICON); | |
2732 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
2733 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; | |
2734 | PyObject * _argo0 = 0; | |
2735 | wxPoint temp; | |
2736 | PyObject * _obj2 = 0; | |
2737 | wxSize temp0; | |
2738 | PyObject * _obj3 = 0; | |
2739 | PyObject * _argo5 = 0; | |
2740 | PyObject * _obj6 = 0; | |
2741 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
2742 | char _ptemp[128]; | |
2743 | ||
2744 | self = self; | |
2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
2746 | return NULL; | |
2747 | if (_argo0) { | |
2748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); | |
2751 | return NULL; | |
2752 | } | |
2753 | } | |
2754 | if (_obj2) | |
2755 | { | |
2756 | _arg2 = &temp; | |
2757 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2758 | return NULL; | |
2759 | } | |
2760 | if (_obj3) | |
2761 | { | |
2762 | _arg3 = &temp0; | |
2763 | if (! wxSize_helper(_obj3, &_arg3)) | |
2764 | return NULL; | |
2765 | } | |
2766 | if (_argo5) { | |
2767 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2768 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
2769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); | |
2770 | return NULL; | |
2771 | } | |
2772 | } | |
2773 | if (_obj6) | |
2774 | { | |
2775 | _arg6 = wxString_in_helper(_obj6); | |
2776 | if (_arg6 == NULL) | |
2777 | return NULL; | |
2778 | } | |
2779 | { | |
2780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2781 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
2782 | ||
2783 | wxPyEndAllowThreads(__tstate); | |
2784 | if (PyErr_Occurred()) return NULL; | |
2785 | } if (_result) { | |
2786 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2787 | _resultobj = Py_BuildValue("s",_ptemp); | |
2788 | } else { | |
2789 | Py_INCREF(Py_None); | |
2790 | _resultobj = Py_None; | |
2791 | } | |
2792 | { | |
2793 | if (_obj6) | |
2794 | delete _arg6; | |
2795 | } | |
2796 | return _resultobj; | |
2797 | } | |
2798 | ||
2799 | #define new_wxPreListCtrl() (new wxPyListCtrl()) | |
2800 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2801 | PyObject * _resultobj; | |
2802 | wxPyListCtrl * _result; | |
2803 | char *_kwnames[] = { NULL }; | |
2804 | char _ptemp[128]; | |
2805 | ||
2806 | self = self; | |
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2808 | return NULL; | |
2809 | { | |
2810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2811 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); | |
2812 | ||
2813 | wxPyEndAllowThreads(__tstate); | |
2814 | if (PyErr_Occurred()) return NULL; | |
2815 | } if (_result) { | |
2816 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2817 | _resultobj = Py_BuildValue("s",_ptemp); | |
2818 | } else { | |
2819 | Py_INCREF(Py_None); | |
2820 | _resultobj = Py_None; | |
2821 | } | |
2822 | return _resultobj; | |
2823 | } | |
2824 | ||
2825 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2826 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2827 | PyObject * _resultobj; | |
2828 | bool _result; | |
2829 | wxPyListCtrl * _arg0; | |
2830 | wxWindow * _arg1; | |
2831 | wxWindowID _arg2 = (wxWindowID ) -1; | |
2832 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
2833 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
2834 | long _arg5 = (long ) (wxLC_ICON); | |
2835 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
2836 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; | |
2837 | PyObject * _argo0 = 0; | |
2838 | PyObject * _argo1 = 0; | |
2839 | wxPoint temp; | |
2840 | PyObject * _obj3 = 0; | |
2841 | wxSize temp0; | |
2842 | PyObject * _obj4 = 0; | |
2843 | PyObject * _argo6 = 0; | |
2844 | PyObject * _obj7 = 0; | |
2845 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
2846 | ||
2847 | self = self; | |
2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
2849 | return NULL; | |
2850 | if (_argo0) { | |
2851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
2854 | return NULL; | |
2855 | } | |
2856 | } | |
2857 | if (_argo1) { | |
2858 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2859 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
2860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
2861 | return NULL; | |
2862 | } | |
2863 | } | |
2864 | if (_obj3) | |
2865 | { | |
2866 | _arg3 = &temp; | |
2867 | if (! wxPoint_helper(_obj3, &_arg3)) | |
2868 | return NULL; | |
2869 | } | |
2870 | if (_obj4) | |
2871 | { | |
2872 | _arg4 = &temp0; | |
2873 | if (! wxSize_helper(_obj4, &_arg4)) | |
2874 | return NULL; | |
2875 | } | |
2876 | if (_argo6) { | |
2877 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2878 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
2879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
2880 | return NULL; | |
2881 | } | |
2882 | } | |
2883 | if (_obj7) | |
2884 | { | |
2885 | _arg7 = wxString_in_helper(_obj7); | |
2886 | if (_arg7 == NULL) | |
2887 | return NULL; | |
2888 | } | |
2889 | { | |
2890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2891 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
2892 | ||
2893 | wxPyEndAllowThreads(__tstate); | |
2894 | if (PyErr_Occurred()) return NULL; | |
2895 | } _resultobj = Py_BuildValue("i",_result); | |
2896 | { | |
2897 | if (_obj7) | |
2898 | delete _arg7; | |
2899 | } | |
2900 | return _resultobj; | |
2901 | } | |
2902 | ||
2903 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
2904 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2905 | PyObject * _resultobj; | |
2906 | wxPyListCtrl * _arg0; | |
2907 | PyObject * _arg1; | |
2908 | PyObject * _arg2; | |
2909 | PyObject * _argo0 = 0; | |
2910 | PyObject * _obj1 = 0; | |
2911 | PyObject * _obj2 = 0; | |
2912 | char *_kwnames[] = { "self","self","_class", NULL }; | |
2913 | ||
2914 | self = self; | |
2915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
2916 | return NULL; | |
2917 | if (_argo0) { | |
2918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); | |
2921 | return NULL; | |
2922 | } | |
2923 | } | |
2924 | { | |
2925 | _arg1 = _obj1; | |
2926 | } | |
2927 | { | |
2928 | _arg2 = _obj2; | |
2929 | } | |
2930 | { | |
2931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2932 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); | |
2933 | ||
2934 | wxPyEndAllowThreads(__tstate); | |
2935 | if (PyErr_Occurred()) return NULL; | |
2936 | } Py_INCREF(Py_None); | |
2937 | _resultobj = Py_None; | |
2938 | return _resultobj; | |
2939 | } | |
2940 | ||
2941 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
2942 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2943 | PyObject * _resultobj; | |
2944 | bool _result; | |
2945 | wxPyListCtrl * _arg0; | |
2946 | wxColour * _arg1; | |
2947 | PyObject * _argo0 = 0; | |
2948 | wxColour temp; | |
2949 | PyObject * _obj1 = 0; | |
2950 | char *_kwnames[] = { "self","col", NULL }; | |
2951 | ||
2952 | self = self; | |
2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) | |
2954 | return NULL; | |
2955 | if (_argo0) { | |
2956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
2959 | return NULL; | |
2960 | } | |
2961 | } | |
2962 | { | |
2963 | _arg1 = &temp; | |
2964 | if (! wxColour_helper(_obj1, &_arg1)) | |
2965 | return NULL; | |
2966 | } | |
2967 | { | |
2968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2969 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); | |
2970 | ||
2971 | wxPyEndAllowThreads(__tstate); | |
2972 | if (PyErr_Occurred()) return NULL; | |
2973 | } _resultobj = Py_BuildValue("i",_result); | |
2974 | return _resultobj; | |
2975 | } | |
2976 | ||
2977 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
2978 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2979 | PyObject * _resultobj; | |
2980 | bool _result; | |
2981 | wxPyListCtrl * _arg0; | |
2982 | wxColour * _arg1; | |
2983 | PyObject * _argo0 = 0; | |
2984 | wxColour temp; | |
2985 | PyObject * _obj1 = 0; | |
2986 | char *_kwnames[] = { "self","col", NULL }; | |
2987 | ||
2988 | self = self; | |
2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
2990 | return NULL; | |
2991 | if (_argo0) { | |
2992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
2994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
2995 | return NULL; | |
2996 | } | |
2997 | } | |
2998 | { | |
2999 | _arg1 = &temp; | |
3000 | if (! wxColour_helper(_obj1, &_arg1)) | |
3001 | return NULL; | |
3002 | } | |
3003 | { | |
3004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3005 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); | |
3006 | ||
3007 | wxPyEndAllowThreads(__tstate); | |
3008 | if (PyErr_Occurred()) return NULL; | |
3009 | } _resultobj = Py_BuildValue("i",_result); | |
3010 | return _resultobj; | |
3011 | } | |
3012 | ||
3013 | static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) { | |
3014 | wxListItem item; | |
3015 | item.SetMask(0xFFFF); | |
3016 | if (self->GetColumn(col, item)) | |
3017 | return new wxListItem(item); | |
3018 | else | |
3019 | return NULL; | |
3020 | } | |
3021 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3022 | PyObject * _resultobj; | |
3023 | wxListItem * _result; | |
3024 | wxPyListCtrl * _arg0; | |
3025 | int _arg1; | |
3026 | PyObject * _argo0 = 0; | |
3027 | char *_kwnames[] = { "self","col", NULL }; | |
3028 | ||
3029 | self = self; | |
3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) | |
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_GetColumn. Expected _wxPyListCtrl_p."); | |
3036 | return NULL; | |
3037 | } | |
3038 | } | |
3039 | { | |
3040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3041 | _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1); | |
3042 | ||
3043 | wxPyEndAllowThreads(__tstate); | |
3044 | if (PyErr_Occurred()) return NULL; | |
3045 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3046 | return _resultobj; | |
3047 | } | |
3048 | ||
3049 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) | |
3050 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3051 | PyObject * _resultobj; | |
3052 | bool _result; | |
3053 | wxPyListCtrl * _arg0; | |
3054 | int _arg1; | |
3055 | wxListItem * _arg2; | |
3056 | PyObject * _argo0 = 0; | |
3057 | PyObject * _argo2 = 0; | |
3058 | char *_kwnames[] = { "self","col","item", NULL }; | |
3059 | ||
3060 | self = self; | |
3061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) | |
3062 | return NULL; | |
3063 | if (_argo0) { | |
3064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3067 | return NULL; | |
3068 | } | |
3069 | } | |
3070 | if (_argo2) { | |
3071 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3072 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
3074 | return NULL; | |
3075 | } | |
3076 | } | |
3077 | { | |
3078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3079 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); | |
3080 | ||
3081 | wxPyEndAllowThreads(__tstate); | |
3082 | if (PyErr_Occurred()) return NULL; | |
3083 | } _resultobj = Py_BuildValue("i",_result); | |
3084 | return _resultobj; | |
3085 | } | |
3086 | ||
3087 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) | |
3088 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3089 | PyObject * _resultobj; | |
3090 | int _result; | |
3091 | wxPyListCtrl * _arg0; | |
3092 | int _arg1; | |
3093 | PyObject * _argo0 = 0; | |
3094 | char *_kwnames[] = { "self","col", NULL }; | |
3095 | ||
3096 | self = self; | |
3097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) | |
3098 | return NULL; | |
3099 | if (_argo0) { | |
3100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
3103 | return NULL; | |
3104 | } | |
3105 | } | |
3106 | { | |
3107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3108 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); | |
3109 | ||
3110 | wxPyEndAllowThreads(__tstate); | |
3111 | if (PyErr_Occurred()) return NULL; | |
3112 | } _resultobj = Py_BuildValue("i",_result); | |
3113 | return _resultobj; | |
3114 | } | |
3115 | ||
3116 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) | |
3117 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3118 | PyObject * _resultobj; | |
3119 | bool _result; | |
3120 | wxPyListCtrl * _arg0; | |
3121 | int _arg1; | |
3122 | int _arg2; | |
3123 | PyObject * _argo0 = 0; | |
3124 | char *_kwnames[] = { "self","col","width", NULL }; | |
3125 | ||
3126 | self = self; | |
3127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3128 | return NULL; | |
3129 | if (_argo0) { | |
3130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
3133 | return NULL; | |
3134 | } | |
3135 | } | |
3136 | { | |
3137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3138 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); | |
3139 | ||
3140 | wxPyEndAllowThreads(__tstate); | |
3141 | if (PyErr_Occurred()) return NULL; | |
3142 | } _resultobj = Py_BuildValue("i",_result); | |
3143 | return _resultobj; | |
3144 | } | |
3145 | ||
3146 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) | |
3147 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3148 | PyObject * _resultobj; | |
3149 | int _result; | |
3150 | wxPyListCtrl * _arg0; | |
3151 | PyObject * _argo0 = 0; | |
3152 | char *_kwnames[] = { "self", NULL }; | |
3153 | ||
3154 | self = self; | |
3155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) | |
3156 | return NULL; | |
3157 | if (_argo0) { | |
3158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
3161 | return NULL; | |
3162 | } | |
3163 | } | |
3164 | { | |
3165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3166 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); | |
3167 | ||
3168 | wxPyEndAllowThreads(__tstate); | |
3169 | if (PyErr_Occurred()) return NULL; | |
3170 | } _resultobj = Py_BuildValue("i",_result); | |
3171 | return _resultobj; | |
3172 | } | |
3173 | ||
3174 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
3175 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3176 | PyObject * _resultobj; | |
3177 | wxTextCtrl * _result; | |
3178 | wxPyListCtrl * _arg0; | |
3179 | PyObject * _argo0 = 0; | |
3180 | char *_kwnames[] = { "self", NULL }; | |
3181 | ||
3182 | self = self; | |
3183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) | |
3184 | return NULL; | |
3185 | if (_argo0) { | |
3186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p."); | |
3189 | return NULL; | |
3190 | } | |
3191 | } | |
3192 | { | |
3193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3194 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); | |
3195 | ||
3196 | wxPyEndAllowThreads(__tstate); | |
3197 | if (PyErr_Occurred()) return NULL; | |
3198 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3199 | return _resultobj; | |
3200 | } | |
3201 | ||
3202 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { | |
3203 | wxListItem* info = new wxListItem; | |
3204 | info->m_itemId = itemId; | |
3205 | info->m_col = col; | |
3206 | info->m_mask = 0xFFFF; | |
3207 | self->GetItem(*info); | |
3208 | return info; | |
3209 | } | |
3210 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3211 | PyObject * _resultobj; | |
3212 | wxListItem * _result; | |
3213 | wxPyListCtrl * _arg0; | |
3214 | long _arg1; | |
3215 | int _arg2 = (int ) 0; | |
3216 | PyObject * _argo0 = 0; | |
3217 | char *_kwnames[] = { "self","itemId","col", NULL }; | |
3218 | ||
3219 | self = self; | |
3220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3221 | return NULL; | |
3222 | if (_argo0) { | |
3223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
3226 | return NULL; | |
3227 | } | |
3228 | } | |
3229 | { | |
3230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3231 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); | |
3232 | ||
3233 | wxPyEndAllowThreads(__tstate); | |
3234 | if (PyErr_Occurred()) return NULL; | |
3235 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3236 | return _resultobj; | |
3237 | } | |
3238 | ||
3239 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) | |
3240 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3241 | PyObject * _resultobj; | |
3242 | bool _result; | |
3243 | wxPyListCtrl * _arg0; | |
3244 | wxListItem * _arg1; | |
3245 | PyObject * _argo0 = 0; | |
3246 | PyObject * _argo1 = 0; | |
3247 | char *_kwnames[] = { "self","info", NULL }; | |
3248 | ||
3249 | self = self; | |
3250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) | |
3251 | return NULL; | |
3252 | if (_argo0) { | |
3253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3256 | return NULL; | |
3257 | } | |
3258 | } | |
3259 | if (_argo1) { | |
3260 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3261 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
3263 | return NULL; | |
3264 | } | |
3265 | } | |
3266 | { | |
3267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3268 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); | |
3269 | ||
3270 | wxPyEndAllowThreads(__tstate); | |
3271 | if (PyErr_Occurred()) return NULL; | |
3272 | } _resultobj = Py_BuildValue("i",_result); | |
3273 | return _resultobj; | |
3274 | } | |
3275 | ||
3276 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3277 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3278 | PyObject * _resultobj; | |
3279 | long _result; | |
3280 | wxPyListCtrl * _arg0; | |
3281 | long _arg1; | |
3282 | int _arg2; | |
3283 | wxString * _arg3; | |
3284 | int _arg4 = (int ) -1; | |
3285 | PyObject * _argo0 = 0; | |
3286 | PyObject * _obj3 = 0; | |
3287 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
3288 | ||
3289 | self = self; | |
3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
3291 | return NULL; | |
3292 | if (_argo0) { | |
3293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
3296 | return NULL; | |
3297 | } | |
3298 | } | |
3299 | { | |
3300 | _arg3 = wxString_in_helper(_obj3); | |
3301 | if (_arg3 == NULL) | |
3302 | return NULL; | |
3303 | } | |
3304 | { | |
3305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3306 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
3307 | ||
3308 | wxPyEndAllowThreads(__tstate); | |
3309 | if (PyErr_Occurred()) return NULL; | |
3310 | } _resultobj = Py_BuildValue("l",_result); | |
3311 | { | |
3312 | if (_obj3) | |
3313 | delete _arg3; | |
3314 | } | |
3315 | return _resultobj; | |
3316 | } | |
3317 | ||
3318 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) | |
3319 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3320 | PyObject * _resultobj; | |
3321 | int _result; | |
3322 | wxPyListCtrl * _arg0; | |
3323 | long _arg1; | |
3324 | long _arg2; | |
3325 | PyObject * _argo0 = 0; | |
3326 | char *_kwnames[] = { "self","item","stateMask", NULL }; | |
3327 | ||
3328 | self = self; | |
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3330 | return NULL; | |
3331 | if (_argo0) { | |
3332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
3335 | return NULL; | |
3336 | } | |
3337 | } | |
3338 | { | |
3339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3340 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); | |
3341 | ||
3342 | wxPyEndAllowThreads(__tstate); | |
3343 | if (PyErr_Occurred()) return NULL; | |
3344 | } _resultobj = Py_BuildValue("i",_result); | |
3345 | return _resultobj; | |
3346 | } | |
3347 | ||
3348 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) | |
3349 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3350 | PyObject * _resultobj; | |
3351 | bool _result; | |
3352 | wxPyListCtrl * _arg0; | |
3353 | long _arg1; | |
3354 | long _arg2; | |
3355 | long _arg3; | |
3356 | PyObject * _argo0 = 0; | |
3357 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; | |
3358 | ||
3359 | self = self; | |
3360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3361 | return NULL; | |
3362 | if (_argo0) { | |
3363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
3366 | return NULL; | |
3367 | } | |
3368 | } | |
3369 | { | |
3370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3371 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); | |
3372 | ||
3373 | wxPyEndAllowThreads(__tstate); | |
3374 | if (PyErr_Occurred()) return NULL; | |
3375 | } _resultobj = Py_BuildValue("i",_result); | |
3376 | return _resultobj; | |
3377 | } | |
3378 | ||
3379 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
3380 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3381 | PyObject * _resultobj; | |
3382 | bool _result; | |
3383 | wxPyListCtrl * _arg0; | |
3384 | long _arg1; | |
3385 | int _arg2; | |
3386 | int _arg3; | |
3387 | PyObject * _argo0 = 0; | |
3388 | char *_kwnames[] = { "self","item","image","selImage", NULL }; | |
3389 | ||
3390 | self = self; | |
3391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3392 | return NULL; | |
3393 | if (_argo0) { | |
3394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
3397 | return NULL; | |
3398 | } | |
3399 | } | |
3400 | { | |
3401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3402 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); | |
3403 | ||
3404 | wxPyEndAllowThreads(__tstate); | |
3405 | if (PyErr_Occurred()) return NULL; | |
3406 | } _resultobj = Py_BuildValue("i",_result); | |
3407 | return _resultobj; | |
3408 | } | |
3409 | ||
3410 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
3411 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3412 | PyObject * _resultobj; | |
3413 | wxString * _result; | |
3414 | wxPyListCtrl * _arg0; | |
3415 | long _arg1; | |
3416 | PyObject * _argo0 = 0; | |
3417 | char *_kwnames[] = { "self","item", NULL }; | |
3418 | ||
3419 | self = self; | |
3420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) | |
3421 | return NULL; | |
3422 | if (_argo0) { | |
3423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
3426 | return NULL; | |
3427 | } | |
3428 | } | |
3429 | { | |
3430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3431 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); | |
3432 | ||
3433 | wxPyEndAllowThreads(__tstate); | |
3434 | if (PyErr_Occurred()) return NULL; | |
3435 | }{ | |
3436 | #if wxUSE_UNICODE | |
3437 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3438 | #else | |
3439 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3440 | #endif | |
3441 | } | |
3442 | { | |
3443 | delete _result; | |
3444 | } | |
3445 | return _resultobj; | |
3446 | } | |
3447 | ||
3448 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
3449 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3450 | PyObject * _resultobj; | |
3451 | wxPyListCtrl * _arg0; | |
3452 | long _arg1; | |
3453 | wxString * _arg2; | |
3454 | PyObject * _argo0 = 0; | |
3455 | PyObject * _obj2 = 0; | |
3456 | char *_kwnames[] = { "self","item","str", NULL }; | |
3457 | ||
3458 | self = self; | |
3459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3460 | return NULL; | |
3461 | if (_argo0) { | |
3462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
3465 | return NULL; | |
3466 | } | |
3467 | } | |
3468 | { | |
3469 | _arg2 = wxString_in_helper(_obj2); | |
3470 | if (_arg2 == NULL) | |
3471 | return NULL; | |
3472 | } | |
3473 | { | |
3474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3475 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); | |
3476 | ||
3477 | wxPyEndAllowThreads(__tstate); | |
3478 | if (PyErr_Occurred()) return NULL; | |
3479 | } Py_INCREF(Py_None); | |
3480 | _resultobj = Py_None; | |
3481 | { | |
3482 | if (_obj2) | |
3483 | delete _arg2; | |
3484 | } | |
3485 | return _resultobj; | |
3486 | } | |
3487 | ||
3488 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
3489 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3490 | PyObject * _resultobj; | |
3491 | long _result; | |
3492 | wxPyListCtrl * _arg0; | |
3493 | long _arg1; | |
3494 | PyObject * _argo0 = 0; | |
3495 | char *_kwnames[] = { "self","item", NULL }; | |
3496 | ||
3497 | self = self; | |
3498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) | |
3499 | return NULL; | |
3500 | if (_argo0) { | |
3501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
3504 | return NULL; | |
3505 | } | |
3506 | } | |
3507 | { | |
3508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3509 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3510 | ||
3511 | wxPyEndAllowThreads(__tstate); | |
3512 | if (PyErr_Occurred()) return NULL; | |
3513 | } _resultobj = Py_BuildValue("l",_result); | |
3514 | return _resultobj; | |
3515 | } | |
3516 | ||
3517 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) | |
3518 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3519 | PyObject * _resultobj; | |
3520 | bool _result; | |
3521 | wxPyListCtrl * _arg0; | |
3522 | long _arg1; | |
3523 | long _arg2; | |
3524 | PyObject * _argo0 = 0; | |
3525 | char *_kwnames[] = { "self","item","data", NULL }; | |
3526 | ||
3527 | self = self; | |
3528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3529 | return NULL; | |
3530 | if (_argo0) { | |
3531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
3534 | return NULL; | |
3535 | } | |
3536 | } | |
3537 | { | |
3538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3539 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); | |
3540 | ||
3541 | wxPyEndAllowThreads(__tstate); | |
3542 | if (PyErr_Occurred()) return NULL; | |
3543 | } _resultobj = Py_BuildValue("i",_result); | |
3544 | return _resultobj; | |
3545 | } | |
3546 | ||
3547 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { | |
3548 | wxPoint* pos = new wxPoint; | |
3549 | self->GetItemPosition(item, *pos); | |
3550 | return pos; | |
3551 | } | |
3552 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3553 | PyObject * _resultobj; | |
3554 | wxPoint * _result; | |
3555 | wxPyListCtrl * _arg0; | |
3556 | long _arg1; | |
3557 | PyObject * _argo0 = 0; | |
3558 | char *_kwnames[] = { "self","item", NULL }; | |
3559 | char _ptemp[128]; | |
3560 | ||
3561 | self = self; | |
3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) | |
3563 | return NULL; | |
3564 | if (_argo0) { | |
3565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
3568 | return NULL; | |
3569 | } | |
3570 | } | |
3571 | { | |
3572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3573 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); | |
3574 | ||
3575 | wxPyEndAllowThreads(__tstate); | |
3576 | if (PyErr_Occurred()) return NULL; | |
3577 | } if (_result) { | |
3578 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3579 | _resultobj = Py_BuildValue("s",_ptemp); | |
3580 | } else { | |
3581 | Py_INCREF(Py_None); | |
3582 | _resultobj = Py_None; | |
3583 | } | |
3584 | return _resultobj; | |
3585 | } | |
3586 | ||
3587 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { | |
3588 | wxRect* rect= new wxRect; | |
3589 | self->GetItemRect(item, *rect, code); | |
3590 | return rect; | |
3591 | } | |
3592 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3593 | PyObject * _resultobj; | |
3594 | wxRect * _result; | |
3595 | wxPyListCtrl * _arg0; | |
3596 | long _arg1; | |
3597 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); | |
3598 | PyObject * _argo0 = 0; | |
3599 | char *_kwnames[] = { "self","item","code", NULL }; | |
3600 | char _ptemp[128]; | |
3601 | ||
3602 | self = self; | |
3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3604 | return NULL; | |
3605 | if (_argo0) { | |
3606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
3609 | return NULL; | |
3610 | } | |
3611 | } | |
3612 | { | |
3613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3614 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); | |
3615 | ||
3616 | wxPyEndAllowThreads(__tstate); | |
3617 | if (PyErr_Occurred()) return NULL; | |
3618 | } if (_result) { | |
3619 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3620 | _resultobj = Py_BuildValue("s",_ptemp); | |
3621 | } else { | |
3622 | Py_INCREF(Py_None); | |
3623 | _resultobj = Py_None; | |
3624 | } | |
3625 | return _resultobj; | |
3626 | } | |
3627 | ||
3628 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) | |
3629 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3630 | PyObject * _resultobj; | |
3631 | bool _result; | |
3632 | wxPyListCtrl * _arg0; | |
3633 | long _arg1; | |
3634 | wxPoint * _arg2; | |
3635 | PyObject * _argo0 = 0; | |
3636 | wxPoint temp; | |
3637 | PyObject * _obj2 = 0; | |
3638 | char *_kwnames[] = { "self","item","pos", NULL }; | |
3639 | ||
3640 | self = self; | |
3641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3642 | return NULL; | |
3643 | if (_argo0) { | |
3644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
3647 | return NULL; | |
3648 | } | |
3649 | } | |
3650 | { | |
3651 | _arg2 = &temp; | |
3652 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3653 | return NULL; | |
3654 | } | |
3655 | { | |
3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3657 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); | |
3658 | ||
3659 | wxPyEndAllowThreads(__tstate); | |
3660 | if (PyErr_Occurred()) return NULL; | |
3661 | } _resultobj = Py_BuildValue("i",_result); | |
3662 | return _resultobj; | |
3663 | } | |
3664 | ||
3665 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
3666 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3667 | PyObject * _resultobj; | |
3668 | int _result; | |
3669 | wxPyListCtrl * _arg0; | |
3670 | PyObject * _argo0 = 0; | |
3671 | char *_kwnames[] = { "self", NULL }; | |
3672 | ||
3673 | self = self; | |
3674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) | |
3675 | return NULL; | |
3676 | if (_argo0) { | |
3677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
3680 | return NULL; | |
3681 | } | |
3682 | } | |
3683 | { | |
3684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3685 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3686 | ||
3687 | wxPyEndAllowThreads(__tstate); | |
3688 | if (PyErr_Occurred()) return NULL; | |
3689 | } _resultobj = Py_BuildValue("i",_result); | |
3690 | return _resultobj; | |
3691 | } | |
3692 | ||
3693 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) | |
3694 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3695 | PyObject * _resultobj; | |
3696 | int _result; | |
3697 | wxPyListCtrl * _arg0; | |
3698 | PyObject * _argo0 = 0; | |
3699 | char *_kwnames[] = { "self", NULL }; | |
3700 | ||
3701 | self = self; | |
3702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3703 | return NULL; | |
3704 | if (_argo0) { | |
3705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3708 | return NULL; | |
3709 | } | |
3710 | } | |
3711 | { | |
3712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3713 | _result = (int )wxListCtrl_GetColumnCount(_arg0); | |
3714 | ||
3715 | wxPyEndAllowThreads(__tstate); | |
3716 | if (PyErr_Occurred()) return NULL; | |
3717 | } _resultobj = Py_BuildValue("i",_result); | |
3718 | return _resultobj; | |
3719 | } | |
3720 | ||
3721 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) | |
3722 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3723 | PyObject * _resultobj; | |
3724 | int _result; | |
3725 | wxPyListCtrl * _arg0; | |
3726 | bool _arg1; | |
3727 | PyObject * _argo0 = 0; | |
3728 | int tempbool1; | |
3729 | char *_kwnames[] = { "self","isSmall", NULL }; | |
3730 | ||
3731 | self = self; | |
3732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) | |
3733 | return NULL; | |
3734 | if (_argo0) { | |
3735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
3738 | return NULL; | |
3739 | } | |
3740 | } | |
3741 | _arg1 = (bool ) tempbool1; | |
3742 | { | |
3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3744 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3745 | ||
3746 | wxPyEndAllowThreads(__tstate); | |
3747 | if (PyErr_Occurred()) return NULL; | |
3748 | } _resultobj = Py_BuildValue("i",_result); | |
3749 | return _resultobj; | |
3750 | } | |
3751 | ||
3752 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) | |
3753 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3754 | PyObject * _resultobj; | |
3755 | int _result; | |
3756 | wxPyListCtrl * _arg0; | |
3757 | PyObject * _argo0 = 0; | |
3758 | char *_kwnames[] = { "self", NULL }; | |
3759 | ||
3760 | self = self; | |
3761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) | |
3762 | return NULL; | |
3763 | if (_argo0) { | |
3764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
3767 | return NULL; | |
3768 | } | |
3769 | } | |
3770 | { | |
3771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3772 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); | |
3773 | ||
3774 | wxPyEndAllowThreads(__tstate); | |
3775 | if (PyErr_Occurred()) return NULL; | |
3776 | } _resultobj = Py_BuildValue("i",_result); | |
3777 | return _resultobj; | |
3778 | } | |
3779 | ||
3780 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
3781 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3782 | PyObject * _resultobj; | |
3783 | wxColour * _result; | |
3784 | wxPyListCtrl * _arg0; | |
3785 | PyObject * _argo0 = 0; | |
3786 | char *_kwnames[] = { "self", NULL }; | |
3787 | char _ptemp[128]; | |
3788 | ||
3789 | self = self; | |
3790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) | |
3791 | return NULL; | |
3792 | if (_argo0) { | |
3793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
3796 | return NULL; | |
3797 | } | |
3798 | } | |
3799 | { | |
3800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3801 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); | |
3802 | ||
3803 | wxPyEndAllowThreads(__tstate); | |
3804 | if (PyErr_Occurred()) return NULL; | |
3805 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
3806 | _resultobj = Py_BuildValue("s",_ptemp); | |
3807 | return _resultobj; | |
3808 | } | |
3809 | ||
3810 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
3811 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3812 | PyObject * _resultobj; | |
3813 | wxPyListCtrl * _arg0; | |
3814 | wxColour * _arg1; | |
3815 | PyObject * _argo0 = 0; | |
3816 | wxColour temp; | |
3817 | PyObject * _obj1 = 0; | |
3818 | char *_kwnames[] = { "self","col", NULL }; | |
3819 | ||
3820 | self = self; | |
3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
3822 | return NULL; | |
3823 | if (_argo0) { | |
3824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
3827 | return NULL; | |
3828 | } | |
3829 | } | |
3830 | { | |
3831 | _arg1 = &temp; | |
3832 | if (! wxColour_helper(_obj1, &_arg1)) | |
3833 | return NULL; | |
3834 | } | |
3835 | { | |
3836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3837 | wxListCtrl_SetTextColour(_arg0,*_arg1); | |
3838 | ||
3839 | wxPyEndAllowThreads(__tstate); | |
3840 | if (PyErr_Occurred()) return NULL; | |
3841 | } Py_INCREF(Py_None); | |
3842 | _resultobj = Py_None; | |
3843 | return _resultobj; | |
3844 | } | |
3845 | ||
3846 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) | |
3847 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3848 | PyObject * _resultobj; | |
3849 | long _result; | |
3850 | wxPyListCtrl * _arg0; | |
3851 | PyObject * _argo0 = 0; | |
3852 | char *_kwnames[] = { "self", NULL }; | |
3853 | ||
3854 | self = self; | |
3855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) | |
3856 | return NULL; | |
3857 | if (_argo0) { | |
3858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
3861 | return NULL; | |
3862 | } | |
3863 | } | |
3864 | { | |
3865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3866 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
3867 | ||
3868 | wxPyEndAllowThreads(__tstate); | |
3869 | if (PyErr_Occurred()) return NULL; | |
3870 | } _resultobj = Py_BuildValue("l",_result); | |
3871 | return _resultobj; | |
3872 | } | |
3873 | ||
3874 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) | |
3875 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3876 | PyObject * _resultobj; | |
3877 | wxPyListCtrl * _arg0; | |
3878 | long _arg1; | |
3879 | bool _arg2 = (bool ) TRUE; | |
3880 | PyObject * _argo0 = 0; | |
3881 | int tempbool2 = (int) TRUE; | |
3882 | char *_kwnames[] = { "self","style","add", NULL }; | |
3883 | ||
3884 | self = self; | |
3885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3886 | return NULL; | |
3887 | if (_argo0) { | |
3888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
3891 | return NULL; | |
3892 | } | |
3893 | } | |
3894 | _arg2 = (bool ) tempbool2; | |
3895 | { | |
3896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3897 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
3898 | ||
3899 | wxPyEndAllowThreads(__tstate); | |
3900 | if (PyErr_Occurred()) return NULL; | |
3901 | } Py_INCREF(Py_None); | |
3902 | _resultobj = Py_None; | |
3903 | return _resultobj; | |
3904 | } | |
3905 | ||
3906 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
3907 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3908 | PyObject * _resultobj; | |
3909 | wxPyListCtrl * _arg0; | |
3910 | long _arg1; | |
3911 | PyObject * _argo0 = 0; | |
3912 | char *_kwnames[] = { "self","style", NULL }; | |
3913 | ||
3914 | self = self; | |
3915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
3916 | return NULL; | |
3917 | if (_argo0) { | |
3918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
3921 | return NULL; | |
3922 | } | |
3923 | } | |
3924 | { | |
3925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3926 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
3927 | ||
3928 | wxPyEndAllowThreads(__tstate); | |
3929 | if (PyErr_Occurred()) return NULL; | |
3930 | } Py_INCREF(Py_None); | |
3931 | _resultobj = Py_None; | |
3932 | return _resultobj; | |
3933 | } | |
3934 | ||
3935 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
3936 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3937 | PyObject * _resultobj; | |
3938 | long _result; | |
3939 | wxPyListCtrl * _arg0; | |
3940 | long _arg1; | |
3941 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
3942 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
3943 | PyObject * _argo0 = 0; | |
3944 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
3945 | ||
3946 | self = self; | |
3947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3948 | return NULL; | |
3949 | if (_argo0) { | |
3950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
3953 | return NULL; | |
3954 | } | |
3955 | } | |
3956 | { | |
3957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3958 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
3959 | ||
3960 | wxPyEndAllowThreads(__tstate); | |
3961 | if (PyErr_Occurred()) return NULL; | |
3962 | } _resultobj = Py_BuildValue("l",_result); | |
3963 | return _resultobj; | |
3964 | } | |
3965 | ||
3966 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
3967 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3968 | PyObject * _resultobj; | |
3969 | wxImageList * _result; | |
3970 | wxPyListCtrl * _arg0; | |
3971 | int _arg1; | |
3972 | PyObject * _argo0 = 0; | |
3973 | char *_kwnames[] = { "self","which", NULL }; | |
3974 | ||
3975 | self = self; | |
3976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
3977 | return NULL; | |
3978 | if (_argo0) { | |
3979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
3982 | return NULL; | |
3983 | } | |
3984 | } | |
3985 | { | |
3986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3987 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
3988 | ||
3989 | wxPyEndAllowThreads(__tstate); | |
3990 | if (PyErr_Occurred()) return NULL; | |
3991 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
3992 | return _resultobj; | |
3993 | } | |
3994 | ||
3995 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) | |
3996 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3997 | PyObject * _resultobj; | |
3998 | wxPyListCtrl * _arg0; | |
3999 | wxImageList * _arg1; | |
4000 | int _arg2; | |
4001 | PyObject * _argo0 = 0; | |
4002 | PyObject * _argo1 = 0; | |
4003 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
4004 | ||
4005 | self = self; | |
4006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4007 | return NULL; | |
4008 | if (_argo0) { | |
4009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
4012 | return NULL; | |
4013 | } | |
4014 | } | |
4015 | if (_argo1) { | |
4016 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4017 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
4019 | return NULL; | |
4020 | } | |
4021 | } | |
4022 | { | |
4023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4024 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); | |
4025 | ||
4026 | wxPyEndAllowThreads(__tstate); | |
4027 | if (PyErr_Occurred()) return NULL; | |
4028 | } Py_INCREF(Py_None); | |
4029 | _resultobj = Py_None; | |
4030 | return _resultobj; | |
4031 | } | |
4032 | ||
4033 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) | |
4034 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4035 | PyObject * _resultobj; | |
4036 | wxPyListCtrl * _arg0; | |
4037 | wxImageList * _arg1; | |
4038 | int _arg2; | |
4039 | PyObject * _argo0 = 0; | |
4040 | PyObject * _argo1 = 0; | |
4041 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
4042 | ||
4043 | self = self; | |
4044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4045 | return NULL; | |
4046 | if (_argo0) { | |
4047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
4050 | return NULL; | |
4051 | } | |
4052 | } | |
4053 | if (_argo1) { | |
4054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
4057 | return NULL; | |
4058 | } | |
4059 | } | |
4060 | { | |
4061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4062 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); | |
4063 | ||
4064 | wxPyEndAllowThreads(__tstate); | |
4065 | if (PyErr_Occurred()) return NULL; | |
4066 | } Py_INCREF(Py_None); | |
4067 | _resultobj = Py_None; | |
4068 | return _resultobj; | |
4069 | } | |
4070 | ||
4071 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4072 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4073 | PyObject * _resultobj; | |
4074 | bool _result; | |
4075 | wxPyListCtrl * _arg0; | |
4076 | PyObject * _argo0 = 0; | |
4077 | char *_kwnames[] = { "self", NULL }; | |
4078 | ||
4079 | self = self; | |
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
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_IsVirtual. Expected _wxPyListCtrl_p."); | |
4086 | return NULL; | |
4087 | } | |
4088 | } | |
4089 | { | |
4090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4091 | _result = (bool )wxListCtrl_IsVirtual(_arg0); | |
4092 | ||
4093 | wxPyEndAllowThreads(__tstate); | |
4094 | if (PyErr_Occurred()) return NULL; | |
4095 | } _resultobj = Py_BuildValue("i",_result); | |
4096 | return _resultobj; | |
4097 | } | |
4098 | ||
4099 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4100 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4101 | PyObject * _resultobj; | |
4102 | wxPyListCtrl * _arg0; | |
4103 | long _arg1; | |
4104 | PyObject * _argo0 = 0; | |
4105 | char *_kwnames[] = { "self","item", NULL }; | |
4106 | ||
4107 | self = self; | |
4108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4109 | return NULL; | |
4110 | if (_argo0) { | |
4111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4114 | return NULL; | |
4115 | } | |
4116 | } | |
4117 | { | |
4118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4119 | wxListCtrl_RefreshItem(_arg0,_arg1); | |
4120 | ||
4121 | wxPyEndAllowThreads(__tstate); | |
4122 | if (PyErr_Occurred()) return NULL; | |
4123 | } Py_INCREF(Py_None); | |
4124 | _resultobj = Py_None; | |
4125 | return _resultobj; | |
4126 | } | |
4127 | ||
4128 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) | |
4129 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4130 | PyObject * _resultobj; | |
4131 | wxPyListCtrl * _arg0; | |
4132 | long _arg1; | |
4133 | long _arg2; | |
4134 | PyObject * _argo0 = 0; | |
4135 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; | |
4136 | ||
4137 | self = self; | |
4138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4139 | return NULL; | |
4140 | if (_argo0) { | |
4141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
4144 | return NULL; | |
4145 | } | |
4146 | } | |
4147 | { | |
4148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4149 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); | |
4150 | ||
4151 | wxPyEndAllowThreads(__tstate); | |
4152 | if (PyErr_Occurred()) return NULL; | |
4153 | } Py_INCREF(Py_None); | |
4154 | _resultobj = Py_None; | |
4155 | return _resultobj; | |
4156 | } | |
4157 | ||
4158 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4159 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4160 | PyObject * _resultobj; | |
4161 | bool _result; | |
4162 | wxPyListCtrl * _arg0; | |
4163 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4164 | PyObject * _argo0 = 0; | |
4165 | char *_kwnames[] = { "self","flag", NULL }; | |
4166 | ||
4167 | self = self; | |
4168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4169 | return NULL; | |
4170 | if (_argo0) { | |
4171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
4174 | return NULL; | |
4175 | } | |
4176 | } | |
4177 | { | |
4178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4179 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); | |
4180 | ||
4181 | wxPyEndAllowThreads(__tstate); | |
4182 | if (PyErr_Occurred()) return NULL; | |
4183 | } _resultobj = Py_BuildValue("i",_result); | |
4184 | return _resultobj; | |
4185 | } | |
4186 | ||
4187 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) | |
4188 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4189 | PyObject * _resultobj; | |
4190 | bool _result; | |
4191 | wxPyListCtrl * _arg0; | |
4192 | long _arg1; | |
4193 | PyObject * _argo0 = 0; | |
4194 | char *_kwnames[] = { "self","item", NULL }; | |
4195 | ||
4196 | self = self; | |
4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) | |
4198 | return NULL; | |
4199 | if (_argo0) { | |
4200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
4203 | return NULL; | |
4204 | } | |
4205 | } | |
4206 | { | |
4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4208 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
4209 | ||
4210 | wxPyEndAllowThreads(__tstate); | |
4211 | if (PyErr_Occurred()) return NULL; | |
4212 | } _resultobj = Py_BuildValue("i",_result); | |
4213 | return _resultobj; | |
4214 | } | |
4215 | ||
4216 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4217 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject * _resultobj; | |
4219 | bool _result; | |
4220 | wxPyListCtrl * _arg0; | |
4221 | PyObject * _argo0 = 0; | |
4222 | char *_kwnames[] = { "self", NULL }; | |
4223 | ||
4224 | self = self; | |
4225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4226 | return NULL; | |
4227 | if (_argo0) { | |
4228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
4231 | return NULL; | |
4232 | } | |
4233 | } | |
4234 | { | |
4235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4236 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
4237 | ||
4238 | wxPyEndAllowThreads(__tstate); | |
4239 | if (PyErr_Occurred()) return NULL; | |
4240 | } _resultobj = Py_BuildValue("i",_result); | |
4241 | return _resultobj; | |
4242 | } | |
4243 | ||
4244 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4245 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4246 | PyObject * _resultobj; | |
4247 | bool _result; | |
4248 | wxPyListCtrl * _arg0; | |
4249 | int _arg1; | |
4250 | PyObject * _argo0 = 0; | |
4251 | char *_kwnames[] = { "self","col", NULL }; | |
4252 | ||
4253 | self = self; | |
4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
4255 | return NULL; | |
4256 | if (_argo0) { | |
4257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4260 | return NULL; | |
4261 | } | |
4262 | } | |
4263 | { | |
4264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4265 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
4266 | ||
4267 | wxPyEndAllowThreads(__tstate); | |
4268 | if (PyErr_Occurred()) return NULL; | |
4269 | } _resultobj = Py_BuildValue("i",_result); | |
4270 | return _resultobj; | |
4271 | } | |
4272 | ||
4273 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4274 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4275 | PyObject * _resultobj; | |
4276 | bool _result; | |
4277 | wxPyListCtrl * _arg0; | |
4278 | PyObject * _argo0 = 0; | |
4279 | char *_kwnames[] = { "self", NULL }; | |
4280 | ||
4281 | self = self; | |
4282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4283 | return NULL; | |
4284 | if (_argo0) { | |
4285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4288 | return NULL; | |
4289 | } | |
4290 | } | |
4291 | { | |
4292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4293 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
4294 | ||
4295 | wxPyEndAllowThreads(__tstate); | |
4296 | if (PyErr_Occurred()) return NULL; | |
4297 | } _resultobj = Py_BuildValue("i",_result); | |
4298 | return _resultobj; | |
4299 | } | |
4300 | ||
4301 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4302 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4303 | PyObject * _resultobj; | |
4304 | wxPyListCtrl * _arg0; | |
4305 | PyObject * _argo0 = 0; | |
4306 | char *_kwnames[] = { "self", NULL }; | |
4307 | ||
4308 | self = self; | |
4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
4310 | return NULL; | |
4311 | if (_argo0) { | |
4312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4315 | return NULL; | |
4316 | } | |
4317 | } | |
4318 | { | |
4319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4320 | wxListCtrl_ClearAll(_arg0); | |
4321 | ||
4322 | wxPyEndAllowThreads(__tstate); | |
4323 | if (PyErr_Occurred()) return NULL; | |
4324 | } Py_INCREF(Py_None); | |
4325 | _resultobj = Py_None; | |
4326 | return _resultobj; | |
4327 | } | |
4328 | ||
4329 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
4330 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4331 | PyObject * _resultobj; | |
4332 | wxTextCtrl * _result; | |
4333 | wxPyListCtrl * _arg0; | |
4334 | long _arg1; | |
4335 | PyObject * _argo0 = 0; | |
4336 | char *_kwnames[] = { "self","item", NULL }; | |
4337 | ||
4338 | self = self; | |
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
4340 | return NULL; | |
4341 | if (_argo0) { | |
4342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p."); | |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
4348 | { | |
4349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4350 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); | |
4351 | ||
4352 | wxPyEndAllowThreads(__tstate); | |
4353 | if (PyErr_Occurred()) return NULL; | |
4354 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4355 | return _resultobj; | |
4356 | } | |
4357 | ||
4358 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
4359 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4360 | PyObject * _resultobj; | |
4361 | bool _result; | |
4362 | wxPyListCtrl * _arg0; | |
4363 | bool _arg1; | |
4364 | PyObject * _argo0 = 0; | |
4365 | int tempbool1; | |
4366 | char *_kwnames[] = { "self","cancel", NULL }; | |
4367 | ||
4368 | self = self; | |
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) | |
4370 | return NULL; | |
4371 | if (_argo0) { | |
4372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p."); | |
4375 | return NULL; | |
4376 | } | |
4377 | } | |
4378 | _arg1 = (bool ) tempbool1; | |
4379 | { | |
4380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4381 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); | |
4382 | ||
4383 | wxPyEndAllowThreads(__tstate); | |
4384 | if (PyErr_Occurred()) return NULL; | |
4385 | } _resultobj = Py_BuildValue("i",_result); | |
4386 | return _resultobj; | |
4387 | } | |
4388 | ||
4389 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
4390 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4391 | PyObject * _resultobj; | |
4392 | bool _result; | |
4393 | wxPyListCtrl * _arg0; | |
4394 | long _arg1; | |
4395 | PyObject * _argo0 = 0; | |
4396 | char *_kwnames[] = { "self","item", NULL }; | |
4397 | ||
4398 | self = self; | |
4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
4400 | return NULL; | |
4401 | if (_argo0) { | |
4402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
4405 | return NULL; | |
4406 | } | |
4407 | } | |
4408 | { | |
4409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4410 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); | |
4411 | ||
4412 | wxPyEndAllowThreads(__tstate); | |
4413 | if (PyErr_Occurred()) return NULL; | |
4414 | } _resultobj = Py_BuildValue("i",_result); | |
4415 | return _resultobj; | |
4416 | } | |
4417 | ||
4418 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
4419 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4420 | PyObject * _resultobj; | |
4421 | long _result; | |
4422 | wxPyListCtrl * _arg0; | |
4423 | long _arg1; | |
4424 | wxString * _arg2; | |
4425 | bool _arg3 = (bool ) FALSE; | |
4426 | PyObject * _argo0 = 0; | |
4427 | PyObject * _obj2 = 0; | |
4428 | int tempbool3 = (int) FALSE; | |
4429 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
4430 | ||
4431 | self = self; | |
4432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) | |
4433 | return NULL; | |
4434 | if (_argo0) { | |
4435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
4438 | return NULL; | |
4439 | } | |
4440 | } | |
4441 | { | |
4442 | _arg2 = wxString_in_helper(_obj2); | |
4443 | if (_arg2 == NULL) | |
4444 | return NULL; | |
4445 | } | |
4446 | _arg3 = (bool ) tempbool3; | |
4447 | { | |
4448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4449 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); | |
4450 | ||
4451 | wxPyEndAllowThreads(__tstate); | |
4452 | if (PyErr_Occurred()) return NULL; | |
4453 | } _resultobj = Py_BuildValue("l",_result); | |
4454 | { | |
4455 | if (_obj2) | |
4456 | delete _arg2; | |
4457 | } | |
4458 | return _resultobj; | |
4459 | } | |
4460 | ||
4461 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) | |
4462 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4463 | PyObject * _resultobj; | |
4464 | long _result; | |
4465 | wxPyListCtrl * _arg0; | |
4466 | long _arg1; | |
4467 | long _arg2; | |
4468 | PyObject * _argo0 = 0; | |
4469 | char *_kwnames[] = { "self","start","data", NULL }; | |
4470 | ||
4471 | self = self; | |
4472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4473 | return NULL; | |
4474 | if (_argo0) { | |
4475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
4478 | return NULL; | |
4479 | } | |
4480 | } | |
4481 | { | |
4482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4483 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); | |
4484 | ||
4485 | wxPyEndAllowThreads(__tstate); | |
4486 | if (PyErr_Occurred()) return NULL; | |
4487 | } _resultobj = Py_BuildValue("l",_result); | |
4488 | return _resultobj; | |
4489 | } | |
4490 | ||
4491 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
4492 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4493 | PyObject * _resultobj; | |
4494 | long _result; | |
4495 | wxPyListCtrl * _arg0; | |
4496 | long _arg1; | |
4497 | wxPoint * _arg2; | |
4498 | int _arg3; | |
4499 | PyObject * _argo0 = 0; | |
4500 | wxPoint temp; | |
4501 | PyObject * _obj2 = 0; | |
4502 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
4503 | ||
4504 | self = self; | |
4505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4506 | return NULL; | |
4507 | if (_argo0) { | |
4508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
4511 | return NULL; | |
4512 | } | |
4513 | } | |
4514 | { | |
4515 | _arg2 = &temp; | |
4516 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4517 | return NULL; | |
4518 | } | |
4519 | { | |
4520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4521 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
4522 | ||
4523 | wxPyEndAllowThreads(__tstate); | |
4524 | if (PyErr_Occurred()) return NULL; | |
4525 | } _resultobj = Py_BuildValue("l",_result); | |
4526 | return _resultobj; | |
4527 | } | |
4528 | ||
4529 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
4530 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4531 | PyObject * _resultobj; | |
4532 | long _result; | |
4533 | wxPyListCtrl * _arg0; | |
4534 | wxPoint * _arg1; | |
4535 | int * _arg2; | |
4536 | int temp; | |
4537 | PyObject * _argo0 = 0; | |
4538 | wxPoint temp0; | |
4539 | PyObject * _obj1 = 0; | |
4540 | char *_kwnames[] = { "self","point", NULL }; | |
4541 | ||
4542 | self = self; | |
4543 | { | |
4544 | _arg2 = &temp; | |
4545 | } | |
4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4547 | return NULL; | |
4548 | if (_argo0) { | |
4549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
4552 | return NULL; | |
4553 | } | |
4554 | } | |
4555 | { | |
4556 | _arg1 = &temp0; | |
4557 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4558 | return NULL; | |
4559 | } | |
4560 | { | |
4561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4562 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
4563 | ||
4564 | wxPyEndAllowThreads(__tstate); | |
4565 | if (PyErr_Occurred()) return NULL; | |
4566 | } _resultobj = Py_BuildValue("l",_result); | |
4567 | { | |
4568 | PyObject *o; | |
4569 | o = PyInt_FromLong((long) (*_arg2)); | |
4570 | _resultobj = t_output_helper(_resultobj, o); | |
4571 | } | |
4572 | return _resultobj; | |
4573 | } | |
4574 | ||
4575 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4576 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4577 | PyObject * _resultobj; | |
4578 | long _result; | |
4579 | wxPyListCtrl * _arg0; | |
4580 | wxListItem * _arg1; | |
4581 | PyObject * _argo0 = 0; | |
4582 | PyObject * _argo1 = 0; | |
4583 | char *_kwnames[] = { "self","info", NULL }; | |
4584 | ||
4585 | self = self; | |
4586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4587 | return NULL; | |
4588 | if (_argo0) { | |
4589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
4592 | return NULL; | |
4593 | } | |
4594 | } | |
4595 | if (_argo1) { | |
4596 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4597 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
4598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); | |
4599 | return NULL; | |
4600 | } | |
4601 | } | |
4602 | { | |
4603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4604 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
4605 | ||
4606 | wxPyEndAllowThreads(__tstate); | |
4607 | if (PyErr_Occurred()) return NULL; | |
4608 | } _resultobj = Py_BuildValue("l",_result); | |
4609 | return _resultobj; | |
4610 | } | |
4611 | ||
4612 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4613 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4614 | PyObject * _resultobj; | |
4615 | long _result; | |
4616 | wxPyListCtrl * _arg0; | |
4617 | long _arg1; | |
4618 | wxString * _arg2; | |
4619 | PyObject * _argo0 = 0; | |
4620 | PyObject * _obj2 = 0; | |
4621 | char *_kwnames[] = { "self","index","label", NULL }; | |
4622 | ||
4623 | self = self; | |
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4625 | return NULL; | |
4626 | if (_argo0) { | |
4627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
4630 | return NULL; | |
4631 | } | |
4632 | } | |
4633 | { | |
4634 | _arg2 = wxString_in_helper(_obj2); | |
4635 | if (_arg2 == NULL) | |
4636 | return NULL; | |
4637 | } | |
4638 | { | |
4639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4640 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
4641 | ||
4642 | wxPyEndAllowThreads(__tstate); | |
4643 | if (PyErr_Occurred()) return NULL; | |
4644 | } _resultobj = Py_BuildValue("l",_result); | |
4645 | { | |
4646 | if (_obj2) | |
4647 | delete _arg2; | |
4648 | } | |
4649 | return _resultobj; | |
4650 | } | |
4651 | ||
4652 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4653 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4654 | PyObject * _resultobj; | |
4655 | long _result; | |
4656 | wxPyListCtrl * _arg0; | |
4657 | long _arg1; | |
4658 | int _arg2; | |
4659 | PyObject * _argo0 = 0; | |
4660 | char *_kwnames[] = { "self","index","imageIndex", NULL }; | |
4661 | ||
4662 | self = self; | |
4663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4664 | return NULL; | |
4665 | if (_argo0) { | |
4666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
4669 | return NULL; | |
4670 | } | |
4671 | } | |
4672 | { | |
4673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4674 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); | |
4675 | ||
4676 | wxPyEndAllowThreads(__tstate); | |
4677 | if (PyErr_Occurred()) return NULL; | |
4678 | } _resultobj = Py_BuildValue("l",_result); | |
4679 | return _resultobj; | |
4680 | } | |
4681 | ||
4682 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) | |
4683 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4684 | PyObject * _resultobj; | |
4685 | long _result; | |
4686 | wxPyListCtrl * _arg0; | |
4687 | long _arg1; | |
4688 | wxString * _arg2; | |
4689 | int _arg3; | |
4690 | PyObject * _argo0 = 0; | |
4691 | PyObject * _obj2 = 0; | |
4692 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; | |
4693 | ||
4694 | self = self; | |
4695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4696 | return NULL; | |
4697 | if (_argo0) { | |
4698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
4701 | return NULL; | |
4702 | } | |
4703 | } | |
4704 | { | |
4705 | _arg2 = wxString_in_helper(_obj2); | |
4706 | if (_arg2 == NULL) | |
4707 | return NULL; | |
4708 | } | |
4709 | { | |
4710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4711 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); | |
4712 | ||
4713 | wxPyEndAllowThreads(__tstate); | |
4714 | if (PyErr_Occurred()) return NULL; | |
4715 | } _resultobj = Py_BuildValue("l",_result); | |
4716 | { | |
4717 | if (_obj2) | |
4718 | delete _arg2; | |
4719 | } | |
4720 | return _resultobj; | |
4721 | } | |
4722 | ||
4723 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) | |
4724 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4725 | PyObject * _resultobj; | |
4726 | long _result; | |
4727 | wxPyListCtrl * _arg0; | |
4728 | long _arg1; | |
4729 | wxListItem * _arg2; | |
4730 | PyObject * _argo0 = 0; | |
4731 | PyObject * _argo2 = 0; | |
4732 | char *_kwnames[] = { "self","col","info", NULL }; | |
4733 | ||
4734 | self = self; | |
4735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) | |
4736 | return NULL; | |
4737 | if (_argo0) { | |
4738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4741 | return NULL; | |
4742 | } | |
4743 | } | |
4744 | if (_argo2) { | |
4745 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4746 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
4748 | return NULL; | |
4749 | } | |
4750 | } | |
4751 | { | |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4753 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); | |
4754 | ||
4755 | wxPyEndAllowThreads(__tstate); | |
4756 | if (PyErr_Occurred()) return NULL; | |
4757 | } _resultobj = Py_BuildValue("l",_result); | |
4758 | return _resultobj; | |
4759 | } | |
4760 | ||
4761 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4762 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4763 | PyObject * _resultobj; | |
4764 | long _result; | |
4765 | wxPyListCtrl * _arg0; | |
4766 | long _arg1; | |
4767 | wxString * _arg2; | |
4768 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); | |
4769 | int _arg4 = (int ) -1; | |
4770 | PyObject * _argo0 = 0; | |
4771 | PyObject * _obj2 = 0; | |
4772 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; | |
4773 | ||
4774 | self = self; | |
4775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) | |
4776 | return NULL; | |
4777 | if (_argo0) { | |
4778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
4781 | return NULL; | |
4782 | } | |
4783 | } | |
4784 | { | |
4785 | _arg2 = wxString_in_helper(_obj2); | |
4786 | if (_arg2 == NULL) | |
4787 | return NULL; | |
4788 | } | |
4789 | { | |
4790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4791 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); | |
4792 | ||
4793 | wxPyEndAllowThreads(__tstate); | |
4794 | if (PyErr_Occurred()) return NULL; | |
4795 | } _resultobj = Py_BuildValue("l",_result); | |
4796 | { | |
4797 | if (_obj2) | |
4798 | delete _arg2; | |
4799 | } | |
4800 | return _resultobj; | |
4801 | } | |
4802 | ||
4803 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) | |
4804 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4805 | PyObject * _resultobj; | |
4806 | wxPyListCtrl * _arg0; | |
4807 | long _arg1; | |
4808 | PyObject * _argo0 = 0; | |
4809 | char *_kwnames[] = { "self","count", NULL }; | |
4810 | ||
4811 | self = self; | |
4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) | |
4813 | return NULL; | |
4814 | if (_argo0) { | |
4815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
4818 | return NULL; | |
4819 | } | |
4820 | } | |
4821 | { | |
4822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4823 | wxListCtrl_SetItemCount(_arg0,_arg1); | |
4824 | ||
4825 | wxPyEndAllowThreads(__tstate); | |
4826 | if (PyErr_Occurred()) return NULL; | |
4827 | } Py_INCREF(Py_None); | |
4828 | _resultobj = Py_None; | |
4829 | return _resultobj; | |
4830 | } | |
4831 | ||
4832 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) | |
4833 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4834 | PyObject * _resultobj; | |
4835 | bool _result; | |
4836 | wxPyListCtrl * _arg0; | |
4837 | int _arg1; | |
4838 | int _arg2; | |
4839 | PyObject * _argo0 = 0; | |
4840 | char *_kwnames[] = { "self","dx","dy", NULL }; | |
4841 | ||
4842 | self = self; | |
4843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4844 | return NULL; | |
4845 | if (_argo0) { | |
4846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
4849 | return NULL; | |
4850 | } | |
4851 | } | |
4852 | { | |
4853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4854 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); | |
4855 | ||
4856 | wxPyEndAllowThreads(__tstate); | |
4857 | if (PyErr_Occurred()) return NULL; | |
4858 | } _resultobj = Py_BuildValue("i",_result); | |
4859 | return _resultobj; | |
4860 | } | |
4861 | ||
4862 | #define wxListCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) | |
4863 | static PyObject *_wrap_wxListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4864 | PyObject * _resultobj; | |
4865 | wxPyListCtrl * _arg0; | |
4866 | long _arg1; | |
4867 | wxColour * _arg2; | |
4868 | PyObject * _argo0 = 0; | |
4869 | wxColour temp; | |
4870 | PyObject * _obj2 = 0; | |
4871 | char *_kwnames[] = { "self","item","col", NULL }; | |
4872 | ||
4873 | self = self; | |
4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemTextColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4875 | return NULL; | |
4876 | if (_argo0) { | |
4877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemTextColour. Expected _wxPyListCtrl_p."); | |
4880 | return NULL; | |
4881 | } | |
4882 | } | |
4883 | { | |
4884 | _arg2 = &temp; | |
4885 | if (! wxColour_helper(_obj2, &_arg2)) | |
4886 | return NULL; | |
4887 | } | |
4888 | { | |
4889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4890 | wxListCtrl_SetItemTextColour(_arg0,_arg1,*_arg2); | |
4891 | ||
4892 | wxPyEndAllowThreads(__tstate); | |
4893 | if (PyErr_Occurred()) return NULL; | |
4894 | } Py_INCREF(Py_None); | |
4895 | _resultobj = Py_None; | |
4896 | return _resultobj; | |
4897 | } | |
4898 | ||
4899 | #define wxListCtrl_GetItemTextColour(_swigobj,_swigarg0) (_swigobj->GetItemTextColour(_swigarg0)) | |
4900 | static PyObject *_wrap_wxListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4901 | PyObject * _resultobj; | |
4902 | wxColour * _result; | |
4903 | wxPyListCtrl * _arg0; | |
4904 | long _arg1; | |
4905 | PyObject * _argo0 = 0; | |
4906 | char *_kwnames[] = { "self","item", NULL }; | |
4907 | char _ptemp[128]; | |
4908 | ||
4909 | self = self; | |
4910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemTextColour",_kwnames,&_argo0,&_arg1)) | |
4911 | return NULL; | |
4912 | if (_argo0) { | |
4913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemTextColour. Expected _wxPyListCtrl_p."); | |
4916 | return NULL; | |
4917 | } | |
4918 | } | |
4919 | { | |
4920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4921 | _result = new wxColour (wxListCtrl_GetItemTextColour(_arg0,_arg1)); | |
4922 | ||
4923 | wxPyEndAllowThreads(__tstate); | |
4924 | if (PyErr_Occurred()) return NULL; | |
4925 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4926 | _resultobj = Py_BuildValue("s",_ptemp); | |
4927 | return _resultobj; | |
4928 | } | |
4929 | ||
4930 | #define wxListCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
4931 | static PyObject *_wrap_wxListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4932 | PyObject * _resultobj; | |
4933 | wxPyListCtrl * _arg0; | |
4934 | long _arg1; | |
4935 | wxColour * _arg2; | |
4936 | PyObject * _argo0 = 0; | |
4937 | wxColour temp; | |
4938 | PyObject * _obj2 = 0; | |
4939 | char *_kwnames[] = { "self","item","col", NULL }; | |
4940 | ||
4941 | self = self; | |
4942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4943 | return NULL; | |
4944 | if (_argo0) { | |
4945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4948 | return NULL; | |
4949 | } | |
4950 | } | |
4951 | { | |
4952 | _arg2 = &temp; | |
4953 | if (! wxColour_helper(_obj2, &_arg2)) | |
4954 | return NULL; | |
4955 | } | |
4956 | { | |
4957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4958 | wxListCtrl_SetItemBackgroundColour(_arg0,_arg1,*_arg2); | |
4959 | ||
4960 | wxPyEndAllowThreads(__tstate); | |
4961 | if (PyErr_Occurred()) return NULL; | |
4962 | } Py_INCREF(Py_None); | |
4963 | _resultobj = Py_None; | |
4964 | return _resultobj; | |
4965 | } | |
4966 | ||
4967 | #define wxListCtrl_GetItemBackgroundColour(_swigobj,_swigarg0) (_swigobj->GetItemBackgroundColour(_swigarg0)) | |
4968 | static PyObject *_wrap_wxListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4969 | PyObject * _resultobj; | |
4970 | wxColour * _result; | |
4971 | wxPyListCtrl * _arg0; | |
4972 | long _arg1; | |
4973 | PyObject * _argo0 = 0; | |
4974 | char *_kwnames[] = { "self","item", NULL }; | |
4975 | char _ptemp[128]; | |
4976 | ||
4977 | self = self; | |
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemBackgroundColour",_kwnames,&_argo0,&_arg1)) | |
4979 | return NULL; | |
4980 | if (_argo0) { | |
4981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemBackgroundColour. Expected _wxPyListCtrl_p."); | |
4984 | return NULL; | |
4985 | } | |
4986 | } | |
4987 | { | |
4988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4989 | _result = new wxColour (wxListCtrl_GetItemBackgroundColour(_arg0,_arg1)); | |
4990 | ||
4991 | wxPyEndAllowThreads(__tstate); | |
4992 | if (PyErr_Occurred()) return NULL; | |
4993 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
4994 | _resultobj = Py_BuildValue("s",_ptemp); | |
4995 | return _resultobj; | |
4996 | } | |
4997 | ||
4998 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { | |
4999 | if (!PyCallable_Check(func)) | |
5000 | return FALSE; | |
5001 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); | |
5002 | } | |
5003 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5004 | PyObject * _resultobj; | |
5005 | bool _result; | |
5006 | wxPyListCtrl * _arg0; | |
5007 | PyObject * _arg1; | |
5008 | PyObject * _argo0 = 0; | |
5009 | PyObject * _obj1 = 0; | |
5010 | char *_kwnames[] = { "self","func", NULL }; | |
5011 | ||
5012 | self = self; | |
5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5014 | return NULL; | |
5015 | if (_argo0) { | |
5016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
5018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
5019 | return NULL; | |
5020 | } | |
5021 | } | |
5022 | { | |
5023 | _arg1 = _obj1; | |
5024 | } | |
5025 | { | |
5026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5027 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); | |
5028 | ||
5029 | wxPyEndAllowThreads(__tstate); | |
5030 | if (PyErr_Occurred()) return NULL; | |
5031 | } _resultobj = Py_BuildValue("i",_result); | |
5032 | return _resultobj; | |
5033 | } | |
5034 | ||
5035 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { | |
5036 | wxListView *src; | |
5037 | wxPyListCtrl *dest; | |
5038 | src = (wxListView *) ptr; | |
5039 | dest = (wxPyListCtrl *) src; | |
5040 | return (void *) dest; | |
5041 | } | |
5042 | ||
5043 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5044 | wxListView *src; | |
5045 | wxControl *dest; | |
5046 | src = (wxListView *) ptr; | |
5047 | dest = (wxControl *) src; | |
5048 | return (void *) dest; | |
5049 | } | |
5050 | ||
5051 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5052 | wxListView *src; | |
5053 | wxWindow *dest; | |
5054 | src = (wxListView *) ptr; | |
5055 | dest = (wxWindow *) src; | |
5056 | return (void *) dest; | |
5057 | } | |
5058 | ||
5059 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5060 | wxListView *src; | |
5061 | wxEvtHandler *dest; | |
5062 | src = (wxListView *) ptr; | |
5063 | dest = (wxEvtHandler *) src; | |
5064 | return (void *) dest; | |
5065 | } | |
5066 | ||
5067 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5068 | wxListView *src; | |
5069 | wxObject *dest; | |
5070 | src = (wxListView *) ptr; | |
5071 | dest = (wxObject *) src; | |
5072 | return (void *) dest; | |
5073 | } | |
5074 | ||
5075 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5076 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5077 | PyObject * _resultobj; | |
5078 | wxListView * _result; | |
5079 | wxWindow * _arg0; | |
5080 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5081 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5082 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5083 | long _arg4 = (long ) (wxLC_REPORT); | |
5084 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
5085 | wxString * _arg6 = (wxString *) &wxPyListCtrlNameStr; | |
5086 | PyObject * _argo0 = 0; | |
5087 | wxPoint temp; | |
5088 | PyObject * _obj2 = 0; | |
5089 | wxSize temp0; | |
5090 | PyObject * _obj3 = 0; | |
5091 | PyObject * _argo5 = 0; | |
5092 | PyObject * _obj6 = 0; | |
5093 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5094 | char _ptemp[128]; | |
5095 | ||
5096 | self = self; | |
5097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5098 | return NULL; | |
5099 | if (_argo0) { | |
5100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5103 | return NULL; | |
5104 | } | |
5105 | } | |
5106 | if (_obj2) | |
5107 | { | |
5108 | _arg2 = &temp; | |
5109 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5110 | return NULL; | |
5111 | } | |
5112 | if (_obj3) | |
5113 | { | |
5114 | _arg3 = &temp0; | |
5115 | if (! wxSize_helper(_obj3, &_arg3)) | |
5116 | return NULL; | |
5117 | } | |
5118 | if (_argo5) { | |
5119 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5120 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5122 | return NULL; | |
5123 | } | |
5124 | } | |
5125 | if (_obj6) | |
5126 | { | |
5127 | _arg6 = wxString_in_helper(_obj6); | |
5128 | if (_arg6 == NULL) | |
5129 | return NULL; | |
5130 | } | |
5131 | { | |
5132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5133 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
5134 | ||
5135 | wxPyEndAllowThreads(__tstate); | |
5136 | if (PyErr_Occurred()) return NULL; | |
5137 | } if (_result) { | |
5138 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5139 | _resultobj = Py_BuildValue("s",_ptemp); | |
5140 | } else { | |
5141 | Py_INCREF(Py_None); | |
5142 | _resultobj = Py_None; | |
5143 | } | |
5144 | { | |
5145 | if (_obj6) | |
5146 | delete _arg6; | |
5147 | } | |
5148 | return _resultobj; | |
5149 | } | |
5150 | ||
5151 | #define new_wxPreListView() (new wxListView()) | |
5152 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5153 | PyObject * _resultobj; | |
5154 | wxListView * _result; | |
5155 | char *_kwnames[] = { NULL }; | |
5156 | char _ptemp[128]; | |
5157 | ||
5158 | self = self; | |
5159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5160 | return NULL; | |
5161 | { | |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5163 | _result = (wxListView *)new_wxPreListView(); | |
5164 | ||
5165 | wxPyEndAllowThreads(__tstate); | |
5166 | if (PyErr_Occurred()) return NULL; | |
5167 | } if (_result) { | |
5168 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5169 | _resultobj = Py_BuildValue("s",_ptemp); | |
5170 | } else { | |
5171 | Py_INCREF(Py_None); | |
5172 | _resultobj = Py_None; | |
5173 | } | |
5174 | return _resultobj; | |
5175 | } | |
5176 | ||
5177 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5178 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5179 | PyObject * _resultobj; | |
5180 | bool _result; | |
5181 | wxListView * _arg0; | |
5182 | wxWindow * _arg1; | |
5183 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5184 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5185 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5186 | long _arg5 = (long ) (wxLC_REPORT); | |
5187 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
5188 | wxString * _arg7 = (wxString *) &wxPyListCtrlNameStr; | |
5189 | PyObject * _argo0 = 0; | |
5190 | PyObject * _argo1 = 0; | |
5191 | wxPoint temp; | |
5192 | PyObject * _obj3 = 0; | |
5193 | wxSize temp0; | |
5194 | PyObject * _obj4 = 0; | |
5195 | PyObject * _argo6 = 0; | |
5196 | PyObject * _obj7 = 0; | |
5197 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5198 | ||
5199 | self = self; | |
5200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5201 | return NULL; | |
5202 | if (_argo0) { | |
5203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5206 | return NULL; | |
5207 | } | |
5208 | } | |
5209 | if (_argo1) { | |
5210 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5211 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5213 | return NULL; | |
5214 | } | |
5215 | } | |
5216 | if (_obj3) | |
5217 | { | |
5218 | _arg3 = &temp; | |
5219 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5220 | return NULL; | |
5221 | } | |
5222 | if (_obj4) | |
5223 | { | |
5224 | _arg4 = &temp0; | |
5225 | if (! wxSize_helper(_obj4, &_arg4)) | |
5226 | return NULL; | |
5227 | } | |
5228 | if (_argo6) { | |
5229 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5230 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5232 | return NULL; | |
5233 | } | |
5234 | } | |
5235 | if (_obj7) | |
5236 | { | |
5237 | _arg7 = wxString_in_helper(_obj7); | |
5238 | if (_arg7 == NULL) | |
5239 | return NULL; | |
5240 | } | |
5241 | { | |
5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5243 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
5244 | ||
5245 | wxPyEndAllowThreads(__tstate); | |
5246 | if (PyErr_Occurred()) return NULL; | |
5247 | } _resultobj = Py_BuildValue("i",_result); | |
5248 | { | |
5249 | if (_obj7) | |
5250 | delete _arg7; | |
5251 | } | |
5252 | return _resultobj; | |
5253 | } | |
5254 | ||
5255 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5256 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5257 | PyObject * _resultobj; | |
5258 | wxListView * _arg0; | |
5259 | long _arg1; | |
5260 | bool _arg2 = (bool ) TRUE; | |
5261 | PyObject * _argo0 = 0; | |
5262 | int tempbool2 = (int) TRUE; | |
5263 | char *_kwnames[] = { "self","n","on", NULL }; | |
5264 | ||
5265 | self = self; | |
5266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5267 | return NULL; | |
5268 | if (_argo0) { | |
5269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5272 | return NULL; | |
5273 | } | |
5274 | } | |
5275 | _arg2 = (bool ) tempbool2; | |
5276 | { | |
5277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5278 | wxListView_Select(_arg0,_arg1,_arg2); | |
5279 | ||
5280 | wxPyEndAllowThreads(__tstate); | |
5281 | if (PyErr_Occurred()) return NULL; | |
5282 | } Py_INCREF(Py_None); | |
5283 | _resultobj = Py_None; | |
5284 | return _resultobj; | |
5285 | } | |
5286 | ||
5287 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5288 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5289 | PyObject * _resultobj; | |
5290 | wxListView * _arg0; | |
5291 | long _arg1; | |
5292 | PyObject * _argo0 = 0; | |
5293 | char *_kwnames[] = { "self","index", NULL }; | |
5294 | ||
5295 | self = self; | |
5296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5297 | return NULL; | |
5298 | if (_argo0) { | |
5299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5302 | return NULL; | |
5303 | } | |
5304 | } | |
5305 | { | |
5306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5307 | wxListView_Focus(_arg0,_arg1); | |
5308 | ||
5309 | wxPyEndAllowThreads(__tstate); | |
5310 | if (PyErr_Occurred()) return NULL; | |
5311 | } Py_INCREF(Py_None); | |
5312 | _resultobj = Py_None; | |
5313 | return _resultobj; | |
5314 | } | |
5315 | ||
5316 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5317 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5318 | PyObject * _resultobj; | |
5319 | long _result; | |
5320 | wxListView * _arg0; | |
5321 | PyObject * _argo0 = 0; | |
5322 | char *_kwnames[] = { "self", NULL }; | |
5323 | ||
5324 | self = self; | |
5325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5326 | return NULL; | |
5327 | if (_argo0) { | |
5328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5331 | return NULL; | |
5332 | } | |
5333 | } | |
5334 | { | |
5335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5336 | _result = (long )wxListView_GetFocusedItem(_arg0); | |
5337 | ||
5338 | wxPyEndAllowThreads(__tstate); | |
5339 | if (PyErr_Occurred()) return NULL; | |
5340 | } _resultobj = Py_BuildValue("l",_result); | |
5341 | return _resultobj; | |
5342 | } | |
5343 | ||
5344 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5345 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5346 | PyObject * _resultobj; | |
5347 | long _result; | |
5348 | wxListView * _arg0; | |
5349 | long _arg1; | |
5350 | PyObject * _argo0 = 0; | |
5351 | char *_kwnames[] = { "self","item", NULL }; | |
5352 | ||
5353 | self = self; | |
5354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5355 | return NULL; | |
5356 | if (_argo0) { | |
5357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5360 | return NULL; | |
5361 | } | |
5362 | } | |
5363 | { | |
5364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5365 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); | |
5366 | ||
5367 | wxPyEndAllowThreads(__tstate); | |
5368 | if (PyErr_Occurred()) return NULL; | |
5369 | } _resultobj = Py_BuildValue("l",_result); | |
5370 | return _resultobj; | |
5371 | } | |
5372 | ||
5373 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5374 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5375 | PyObject * _resultobj; | |
5376 | long _result; | |
5377 | wxListView * _arg0; | |
5378 | PyObject * _argo0 = 0; | |
5379 | char *_kwnames[] = { "self", NULL }; | |
5380 | ||
5381 | self = self; | |
5382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5383 | return NULL; | |
5384 | if (_argo0) { | |
5385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5388 | return NULL; | |
5389 | } | |
5390 | } | |
5391 | { | |
5392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5393 | _result = (long )wxListView_GetFirstSelected(_arg0); | |
5394 | ||
5395 | wxPyEndAllowThreads(__tstate); | |
5396 | if (PyErr_Occurred()) return NULL; | |
5397 | } _resultobj = Py_BuildValue("l",_result); | |
5398 | return _resultobj; | |
5399 | } | |
5400 | ||
5401 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5402 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5403 | PyObject * _resultobj; | |
5404 | bool _result; | |
5405 | wxListView * _arg0; | |
5406 | long _arg1; | |
5407 | PyObject * _argo0 = 0; | |
5408 | char *_kwnames[] = { "self","index", NULL }; | |
5409 | ||
5410 | self = self; | |
5411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5412 | return NULL; | |
5413 | if (_argo0) { | |
5414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5417 | return NULL; | |
5418 | } | |
5419 | } | |
5420 | { | |
5421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5422 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); | |
5423 | ||
5424 | wxPyEndAllowThreads(__tstate); | |
5425 | if (PyErr_Occurred()) return NULL; | |
5426 | } _resultobj = Py_BuildValue("i",_result); | |
5427 | return _resultobj; | |
5428 | } | |
5429 | ||
5430 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5431 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5432 | PyObject * _resultobj; | |
5433 | wxListView * _arg0; | |
5434 | int _arg1; | |
5435 | int _arg2; | |
5436 | PyObject * _argo0 = 0; | |
5437 | char *_kwnames[] = { "self","col","image", NULL }; | |
5438 | ||
5439 | self = self; | |
5440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5441 | return NULL; | |
5442 | if (_argo0) { | |
5443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5446 | return NULL; | |
5447 | } | |
5448 | } | |
5449 | { | |
5450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5451 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); | |
5452 | ||
5453 | wxPyEndAllowThreads(__tstate); | |
5454 | if (PyErr_Occurred()) return NULL; | |
5455 | } Py_INCREF(Py_None); | |
5456 | _resultobj = Py_None; | |
5457 | return _resultobj; | |
5458 | } | |
5459 | ||
5460 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5461 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5462 | PyObject * _resultobj; | |
5463 | wxListView * _arg0; | |
5464 | int _arg1; | |
5465 | PyObject * _argo0 = 0; | |
5466 | char *_kwnames[] = { "self","col", NULL }; | |
5467 | ||
5468 | self = self; | |
5469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5470 | return NULL; | |
5471 | if (_argo0) { | |
5472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5475 | return NULL; | |
5476 | } | |
5477 | } | |
5478 | { | |
5479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5480 | wxListView_ClearColumnImage(_arg0,_arg1); | |
5481 | ||
5482 | wxPyEndAllowThreads(__tstate); | |
5483 | if (PyErr_Occurred()) return NULL; | |
5484 | } Py_INCREF(Py_None); | |
5485 | _resultobj = Py_None; | |
5486 | return _resultobj; | |
5487 | } | |
5488 | ||
5489 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) | |
5490 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject * _resultobj; | |
5492 | wxTreeItemAttr * _result; | |
5493 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5494 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5495 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5496 | wxColour temp; | |
5497 | PyObject * _obj0 = 0; | |
5498 | wxColour temp0; | |
5499 | PyObject * _obj1 = 0; | |
5500 | PyObject * _argo2 = 0; | |
5501 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5502 | char _ptemp[128]; | |
5503 | ||
5504 | self = self; | |
5505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5506 | return NULL; | |
5507 | if (_obj0) | |
5508 | { | |
5509 | _arg0 = &temp; | |
5510 | if (! wxColour_helper(_obj0, &_arg0)) | |
5511 | return NULL; | |
5512 | } | |
5513 | if (_obj1) | |
5514 | { | |
5515 | _arg1 = &temp0; | |
5516 | if (! wxColour_helper(_obj1, &_arg1)) | |
5517 | return NULL; | |
5518 | } | |
5519 | if (_argo2) { | |
5520 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5521 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
5523 | return NULL; | |
5524 | } | |
5525 | } | |
5526 | { | |
5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5528 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); | |
5529 | ||
5530 | wxPyEndAllowThreads(__tstate); | |
5531 | if (PyErr_Occurred()) return NULL; | |
5532 | } if (_result) { | |
5533 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); | |
5534 | _resultobj = Py_BuildValue("s",_ptemp); | |
5535 | } else { | |
5536 | Py_INCREF(Py_None); | |
5537 | _resultobj = Py_None; | |
5538 | } | |
5539 | return _resultobj; | |
5540 | } | |
5541 | ||
5542 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5543 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5544 | PyObject * _resultobj; | |
5545 | wxTreeItemAttr * _arg0; | |
5546 | wxColour * _arg1; | |
5547 | PyObject * _argo0 = 0; | |
5548 | wxColour temp; | |
5549 | PyObject * _obj1 = 0; | |
5550 | char *_kwnames[] = { "self","colText", NULL }; | |
5551 | ||
5552 | self = self; | |
5553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5554 | return NULL; | |
5555 | if (_argo0) { | |
5556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
5559 | return NULL; | |
5560 | } | |
5561 | } | |
5562 | { | |
5563 | _arg1 = &temp; | |
5564 | if (! wxColour_helper(_obj1, &_arg1)) | |
5565 | return NULL; | |
5566 | } | |
5567 | { | |
5568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5569 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); | |
5570 | ||
5571 | wxPyEndAllowThreads(__tstate); | |
5572 | if (PyErr_Occurred()) return NULL; | |
5573 | } Py_INCREF(Py_None); | |
5574 | _resultobj = Py_None; | |
5575 | return _resultobj; | |
5576 | } | |
5577 | ||
5578 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5579 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5580 | PyObject * _resultobj; | |
5581 | wxTreeItemAttr * _arg0; | |
5582 | wxColour * _arg1; | |
5583 | PyObject * _argo0 = 0; | |
5584 | wxColour temp; | |
5585 | PyObject * _obj1 = 0; | |
5586 | char *_kwnames[] = { "self","colBack", NULL }; | |
5587 | ||
5588 | self = self; | |
5589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5590 | return NULL; | |
5591 | if (_argo0) { | |
5592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5595 | return NULL; | |
5596 | } | |
5597 | } | |
5598 | { | |
5599 | _arg1 = &temp; | |
5600 | if (! wxColour_helper(_obj1, &_arg1)) | |
5601 | return NULL; | |
5602 | } | |
5603 | { | |
5604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5605 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
5606 | ||
5607 | wxPyEndAllowThreads(__tstate); | |
5608 | if (PyErr_Occurred()) return NULL; | |
5609 | } Py_INCREF(Py_None); | |
5610 | _resultobj = Py_None; | |
5611 | return _resultobj; | |
5612 | } | |
5613 | ||
5614 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5615 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5616 | PyObject * _resultobj; | |
5617 | wxTreeItemAttr * _arg0; | |
5618 | wxFont * _arg1; | |
5619 | PyObject * _argo0 = 0; | |
5620 | PyObject * _argo1 = 0; | |
5621 | char *_kwnames[] = { "self","font", NULL }; | |
5622 | ||
5623 | self = self; | |
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5625 | return NULL; | |
5626 | if (_argo0) { | |
5627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
5630 | return NULL; | |
5631 | } | |
5632 | } | |
5633 | if (_argo1) { | |
5634 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5635 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
5637 | return NULL; | |
5638 | } | |
5639 | } | |
5640 | { | |
5641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5642 | wxTreeItemAttr_SetFont(_arg0,*_arg1); | |
5643 | ||
5644 | wxPyEndAllowThreads(__tstate); | |
5645 | if (PyErr_Occurred()) return NULL; | |
5646 | } Py_INCREF(Py_None); | |
5647 | _resultobj = Py_None; | |
5648 | return _resultobj; | |
5649 | } | |
5650 | ||
5651 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5652 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5653 | PyObject * _resultobj; | |
5654 | bool _result; | |
5655 | wxTreeItemAttr * _arg0; | |
5656 | PyObject * _argo0 = 0; | |
5657 | char *_kwnames[] = { "self", NULL }; | |
5658 | ||
5659 | self = self; | |
5660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) | |
5661 | return NULL; | |
5662 | if (_argo0) { | |
5663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5666 | return NULL; | |
5667 | } | |
5668 | } | |
5669 | { | |
5670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5671 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); | |
5672 | ||
5673 | wxPyEndAllowThreads(__tstate); | |
5674 | if (PyErr_Occurred()) return NULL; | |
5675 | } _resultobj = Py_BuildValue("i",_result); | |
5676 | return _resultobj; | |
5677 | } | |
5678 | ||
5679 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5680 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5681 | PyObject * _resultobj; | |
5682 | bool _result; | |
5683 | wxTreeItemAttr * _arg0; | |
5684 | PyObject * _argo0 = 0; | |
5685 | char *_kwnames[] = { "self", NULL }; | |
5686 | ||
5687 | self = self; | |
5688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5689 | return NULL; | |
5690 | if (_argo0) { | |
5691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5694 | return NULL; | |
5695 | } | |
5696 | } | |
5697 | { | |
5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5699 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); | |
5700 | ||
5701 | wxPyEndAllowThreads(__tstate); | |
5702 | if (PyErr_Occurred()) return NULL; | |
5703 | } _resultobj = Py_BuildValue("i",_result); | |
5704 | return _resultobj; | |
5705 | } | |
5706 | ||
5707 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5708 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5709 | PyObject * _resultobj; | |
5710 | bool _result; | |
5711 | wxTreeItemAttr * _arg0; | |
5712 | PyObject * _argo0 = 0; | |
5713 | char *_kwnames[] = { "self", NULL }; | |
5714 | ||
5715 | self = self; | |
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) | |
5717 | return NULL; | |
5718 | if (_argo0) { | |
5719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
5722 | return NULL; | |
5723 | } | |
5724 | } | |
5725 | { | |
5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5727 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); | |
5728 | ||
5729 | wxPyEndAllowThreads(__tstate); | |
5730 | if (PyErr_Occurred()) return NULL; | |
5731 | } _resultobj = Py_BuildValue("i",_result); | |
5732 | return _resultobj; | |
5733 | } | |
5734 | ||
5735 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5736 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5737 | PyObject * _resultobj; | |
5738 | wxColour * _result; | |
5739 | wxTreeItemAttr * _arg0; | |
5740 | PyObject * _argo0 = 0; | |
5741 | char *_kwnames[] = { "self", NULL }; | |
5742 | char _ptemp[128]; | |
5743 | ||
5744 | self = self; | |
5745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) | |
5746 | return NULL; | |
5747 | if (_argo0) { | |
5748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
5751 | return NULL; | |
5752 | } | |
5753 | } | |
5754 | { | |
5755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5756 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); | |
5757 | ||
5758 | wxPyEndAllowThreads(__tstate); | |
5759 | if (PyErr_Occurred()) return NULL; | |
5760 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5761 | _resultobj = Py_BuildValue("s",_ptemp); | |
5762 | return _resultobj; | |
5763 | } | |
5764 | ||
5765 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5766 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5767 | PyObject * _resultobj; | |
5768 | wxColour * _result; | |
5769 | wxTreeItemAttr * _arg0; | |
5770 | PyObject * _argo0 = 0; | |
5771 | char *_kwnames[] = { "self", NULL }; | |
5772 | char _ptemp[128]; | |
5773 | ||
5774 | self = self; | |
5775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5776 | return NULL; | |
5777 | if (_argo0) { | |
5778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5781 | return NULL; | |
5782 | } | |
5783 | } | |
5784 | { | |
5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5786 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); | |
5787 | ||
5788 | wxPyEndAllowThreads(__tstate); | |
5789 | if (PyErr_Occurred()) return NULL; | |
5790 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5791 | _resultobj = Py_BuildValue("s",_ptemp); | |
5792 | return _resultobj; | |
5793 | } | |
5794 | ||
5795 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5796 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5797 | PyObject * _resultobj; | |
5798 | wxFont * _result; | |
5799 | wxTreeItemAttr * _arg0; | |
5800 | PyObject * _argo0 = 0; | |
5801 | char *_kwnames[] = { "self", NULL }; | |
5802 | char _ptemp[128]; | |
5803 | ||
5804 | self = self; | |
5805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5806 | return NULL; | |
5807 | if (_argo0) { | |
5808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5811 | return NULL; | |
5812 | } | |
5813 | } | |
5814 | { | |
5815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5816 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); | |
5817 | ||
5818 | wxPyEndAllowThreads(__tstate); | |
5819 | if (PyErr_Occurred()) return NULL; | |
5820 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
5821 | _resultobj = Py_BuildValue("s",_ptemp); | |
5822 | return _resultobj; | |
5823 | } | |
5824 | ||
5825 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5826 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5827 | PyObject * _resultobj; | |
5828 | wxTreeItemId * _result; | |
5829 | char *_kwnames[] = { NULL }; | |
5830 | char _ptemp[128]; | |
5831 | ||
5832 | self = self; | |
5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5834 | return NULL; | |
5835 | { | |
5836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5837 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
5838 | ||
5839 | wxPyEndAllowThreads(__tstate); | |
5840 | if (PyErr_Occurred()) return NULL; | |
5841 | } if (_result) { | |
5842 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5843 | _resultobj = Py_BuildValue("s",_ptemp); | |
5844 | } else { | |
5845 | Py_INCREF(Py_None); | |
5846 | _resultobj = Py_None; | |
5847 | } | |
5848 | return _resultobj; | |
5849 | } | |
5850 | ||
5851 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5852 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5853 | PyObject * _resultobj; | |
5854 | wxTreeItemId * _arg0; | |
5855 | PyObject * _argo0 = 0; | |
5856 | char *_kwnames[] = { "self", NULL }; | |
5857 | ||
5858 | self = self; | |
5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5860 | return NULL; | |
5861 | if (_argo0) { | |
5862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5865 | return NULL; | |
5866 | } | |
5867 | } | |
5868 | { | |
5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5870 | delete_wxTreeItemId(_arg0); | |
5871 | ||
5872 | wxPyEndAllowThreads(__tstate); | |
5873 | if (PyErr_Occurred()) return NULL; | |
5874 | } Py_INCREF(Py_None); | |
5875 | _resultobj = Py_None; | |
5876 | return _resultobj; | |
5877 | } | |
5878 | ||
5879 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5880 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5881 | PyObject * _resultobj; | |
5882 | bool _result; | |
5883 | wxTreeItemId * _arg0; | |
5884 | PyObject * _argo0 = 0; | |
5885 | char *_kwnames[] = { "self", NULL }; | |
5886 | ||
5887 | self = self; | |
5888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
5889 | return NULL; | |
5890 | if (_argo0) { | |
5891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
5894 | return NULL; | |
5895 | } | |
5896 | } | |
5897 | { | |
5898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5899 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
5900 | ||
5901 | wxPyEndAllowThreads(__tstate); | |
5902 | if (PyErr_Occurred()) return NULL; | |
5903 | } _resultobj = Py_BuildValue("i",_result); | |
5904 | return _resultobj; | |
5905 | } | |
5906 | ||
5907 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
5908 | if (! other) return -1; | |
5909 | return *self != *other; | |
5910 | } | |
5911 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5912 | PyObject * _resultobj; | |
5913 | int _result; | |
5914 | wxTreeItemId * _arg0; | |
5915 | wxTreeItemId * _arg1; | |
5916 | PyObject * _argo0 = 0; | |
5917 | PyObject * _argo1 = 0; | |
5918 | char *_kwnames[] = { "self","other", NULL }; | |
5919 | ||
5920 | self = self; | |
5921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5922 | return NULL; | |
5923 | if (_argo0) { | |
5924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5927 | return NULL; | |
5928 | } | |
5929 | } | |
5930 | if (_argo1) { | |
5931 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5932 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5934 | return NULL; | |
5935 | } | |
5936 | } | |
5937 | { | |
5938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5939 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
5940 | ||
5941 | wxPyEndAllowThreads(__tstate); | |
5942 | if (PyErr_Occurred()) return NULL; | |
5943 | } _resultobj = Py_BuildValue("i",_result); | |
5944 | return _resultobj; | |
5945 | } | |
5946 | ||
5947 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
5948 | wxPyTreeItemData *src; | |
5949 | wxObject *dest; | |
5950 | src = (wxPyTreeItemData *) ptr; | |
5951 | dest = (wxObject *) src; | |
5952 | return (void *) dest; | |
5953 | } | |
5954 | ||
5955 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
5956 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5957 | PyObject * _resultobj; | |
5958 | wxPyTreeItemData * _result; | |
5959 | PyObject * _arg0 = (PyObject *) NULL; | |
5960 | PyObject * _obj0 = 0; | |
5961 | char *_kwnames[] = { "obj", NULL }; | |
5962 | char _ptemp[128]; | |
5963 | ||
5964 | self = self; | |
5965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
5966 | return NULL; | |
5967 | if (_obj0) | |
5968 | { | |
5969 | _arg0 = _obj0; | |
5970 | } | |
5971 | { | |
5972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5973 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
5974 | ||
5975 | wxPyEndAllowThreads(__tstate); | |
5976 | if (PyErr_Occurred()) return NULL; | |
5977 | } if (_result) { | |
5978 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5979 | _resultobj = Py_BuildValue("s",_ptemp); | |
5980 | } else { | |
5981 | Py_INCREF(Py_None); | |
5982 | _resultobj = Py_None; | |
5983 | } | |
5984 | return _resultobj; | |
5985 | } | |
5986 | ||
5987 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
5988 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5989 | PyObject * _resultobj; | |
5990 | PyObject * _result; | |
5991 | wxPyTreeItemData * _arg0; | |
5992 | PyObject * _argo0 = 0; | |
5993 | char *_kwnames[] = { "self", NULL }; | |
5994 | ||
5995 | self = self; | |
5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
5997 | return NULL; | |
5998 | if (_argo0) { | |
5999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
6002 | return NULL; | |
6003 | } | |
6004 | } | |
6005 | { | |
6006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6007 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
6008 | ||
6009 | wxPyEndAllowThreads(__tstate); | |
6010 | if (PyErr_Occurred()) return NULL; | |
6011 | }{ | |
6012 | _resultobj = _result; | |
6013 | } | |
6014 | return _resultobj; | |
6015 | } | |
6016 | ||
6017 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
6018 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6019 | PyObject * _resultobj; | |
6020 | wxPyTreeItemData * _arg0; | |
6021 | PyObject * _arg1; | |
6022 | PyObject * _argo0 = 0; | |
6023 | PyObject * _obj1 = 0; | |
6024 | char *_kwnames[] = { "self","obj", NULL }; | |
6025 | ||
6026 | self = self; | |
6027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
6028 | return NULL; | |
6029 | if (_argo0) { | |
6030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
6033 | return NULL; | |
6034 | } | |
6035 | } | |
6036 | { | |
6037 | _arg1 = _obj1; | |
6038 | } | |
6039 | { | |
6040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6041 | wxTreeItemData_SetData(_arg0,_arg1); | |
6042 | ||
6043 | wxPyEndAllowThreads(__tstate); | |
6044 | if (PyErr_Occurred()) return NULL; | |
6045 | } Py_INCREF(Py_None); | |
6046 | _resultobj = Py_None; | |
6047 | return _resultobj; | |
6048 | } | |
6049 | ||
6050 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
6051 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6052 | PyObject * _resultobj; | |
6053 | wxTreeItemId * _result; | |
6054 | wxPyTreeItemData * _arg0; | |
6055 | PyObject * _argo0 = 0; | |
6056 | char *_kwnames[] = { "self", NULL }; | |
6057 | char _ptemp[128]; | |
6058 | ||
6059 | self = self; | |
6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
6061 | return NULL; | |
6062 | if (_argo0) { | |
6063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6066 | return NULL; | |
6067 | } | |
6068 | } | |
6069 | { | |
6070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6071 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
6072 | _result = (wxTreeItemId *) &_result_ref; | |
6073 | ||
6074 | wxPyEndAllowThreads(__tstate); | |
6075 | if (PyErr_Occurred()) return NULL; | |
6076 | } if (_result) { | |
6077 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6078 | _resultobj = Py_BuildValue("s",_ptemp); | |
6079 | } else { | |
6080 | Py_INCREF(Py_None); | |
6081 | _resultobj = Py_None; | |
6082 | } | |
6083 | return _resultobj; | |
6084 | } | |
6085 | ||
6086 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6087 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6088 | PyObject * _resultobj; | |
6089 | wxPyTreeItemData * _arg0; | |
6090 | wxTreeItemId * _arg1; | |
6091 | PyObject * _argo0 = 0; | |
6092 | PyObject * _argo1 = 0; | |
6093 | char *_kwnames[] = { "self","id", NULL }; | |
6094 | ||
6095 | self = self; | |
6096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) | |
6097 | return NULL; | |
6098 | if (_argo0) { | |
6099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); | |
6102 | return NULL; | |
6103 | } | |
6104 | } | |
6105 | if (_argo1) { | |
6106 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6107 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); | |
6109 | return NULL; | |
6110 | } | |
6111 | } | |
6112 | { | |
6113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6114 | wxTreeItemData_SetId(_arg0,*_arg1); | |
6115 | ||
6116 | wxPyEndAllowThreads(__tstate); | |
6117 | if (PyErr_Occurred()) return NULL; | |
6118 | } Py_INCREF(Py_None); | |
6119 | _resultobj = Py_None; | |
6120 | return _resultobj; | |
6121 | } | |
6122 | ||
6123 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { | |
6124 | wxTreeEvent *src; | |
6125 | wxNotifyEvent *dest; | |
6126 | src = (wxTreeEvent *) ptr; | |
6127 | dest = (wxNotifyEvent *) src; | |
6128 | return (void *) dest; | |
6129 | } | |
6130 | ||
6131 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { | |
6132 | wxTreeEvent *src; | |
6133 | wxCommandEvent *dest; | |
6134 | src = (wxTreeEvent *) ptr; | |
6135 | dest = (wxCommandEvent *) src; | |
6136 | return (void *) dest; | |
6137 | } | |
6138 | ||
6139 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6140 | wxTreeEvent *src; | |
6141 | wxEvent *dest; | |
6142 | src = (wxTreeEvent *) ptr; | |
6143 | dest = (wxEvent *) src; | |
6144 | return (void *) dest; | |
6145 | } | |
6146 | ||
6147 | static void *SwigwxTreeEventTowxObject(void *ptr) { | |
6148 | wxTreeEvent *src; | |
6149 | wxObject *dest; | |
6150 | src = (wxTreeEvent *) ptr; | |
6151 | dest = (wxObject *) src; | |
6152 | return (void *) dest; | |
6153 | } | |
6154 | ||
6155 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) | |
6156 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6157 | PyObject * _resultobj; | |
6158 | wxTreeEvent * _result; | |
6159 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6160 | int _arg1 = (int ) 0; | |
6161 | char *_kwnames[] = { "commandType","id", NULL }; | |
6162 | char _ptemp[128]; | |
6163 | ||
6164 | self = self; | |
6165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6166 | return NULL; | |
6167 | { | |
6168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6169 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); | |
6170 | ||
6171 | wxPyEndAllowThreads(__tstate); | |
6172 | if (PyErr_Occurred()) return NULL; | |
6173 | } if (_result) { | |
6174 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6175 | _resultobj = Py_BuildValue("s",_ptemp); | |
6176 | } else { | |
6177 | Py_INCREF(Py_None); | |
6178 | _resultobj = Py_None; | |
6179 | } | |
6180 | return _resultobj; | |
6181 | } | |
6182 | ||
6183 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) | |
6184 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6185 | PyObject * _resultobj; | |
6186 | wxTreeItemId * _result; | |
6187 | wxTreeEvent * _arg0; | |
6188 | PyObject * _argo0 = 0; | |
6189 | char *_kwnames[] = { "self", NULL }; | |
6190 | char _ptemp[128]; | |
6191 | ||
6192 | self = self; | |
6193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) | |
6194 | return NULL; | |
6195 | if (_argo0) { | |
6196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); | |
6199 | return NULL; | |
6200 | } | |
6201 | } | |
6202 | { | |
6203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6204 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
6205 | ||
6206 | wxPyEndAllowThreads(__tstate); | |
6207 | if (PyErr_Occurred()) return NULL; | |
6208 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6209 | _resultobj = Py_BuildValue("s",_ptemp); | |
6210 | return _resultobj; | |
6211 | } | |
6212 | ||
6213 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) | |
6214 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6215 | PyObject * _resultobj; | |
6216 | wxTreeItemId * _result; | |
6217 | wxTreeEvent * _arg0; | |
6218 | PyObject * _argo0 = 0; | |
6219 | char *_kwnames[] = { "self", NULL }; | |
6220 | char _ptemp[128]; | |
6221 | ||
6222 | self = self; | |
6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) | |
6224 | return NULL; | |
6225 | if (_argo0) { | |
6226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); | |
6229 | return NULL; | |
6230 | } | |
6231 | } | |
6232 | { | |
6233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6234 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
6235 | ||
6236 | wxPyEndAllowThreads(__tstate); | |
6237 | if (PyErr_Occurred()) return NULL; | |
6238 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6239 | _resultobj = Py_BuildValue("s",_ptemp); | |
6240 | return _resultobj; | |
6241 | } | |
6242 | ||
6243 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) | |
6244 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6245 | PyObject * _resultobj; | |
6246 | wxPoint * _result; | |
6247 | wxTreeEvent * _arg0; | |
6248 | PyObject * _argo0 = 0; | |
6249 | char *_kwnames[] = { "self", NULL }; | |
6250 | char _ptemp[128]; | |
6251 | ||
6252 | self = self; | |
6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) | |
6254 | return NULL; | |
6255 | if (_argo0) { | |
6256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); | |
6259 | return NULL; | |
6260 | } | |
6261 | } | |
6262 | { | |
6263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6264 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
6265 | ||
6266 | wxPyEndAllowThreads(__tstate); | |
6267 | if (PyErr_Occurred()) return NULL; | |
6268 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
6269 | _resultobj = Py_BuildValue("s",_ptemp); | |
6270 | return _resultobj; | |
6271 | } | |
6272 | ||
6273 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) | |
6274 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6275 | PyObject * _resultobj; | |
6276 | wxKeyEvent * _result; | |
6277 | wxTreeEvent * _arg0; | |
6278 | PyObject * _argo0 = 0; | |
6279 | char *_kwnames[] = { "self", NULL }; | |
6280 | char _ptemp[128]; | |
6281 | ||
6282 | self = self; | |
6283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6284 | return NULL; | |
6285 | if (_argo0) { | |
6286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6289 | return NULL; | |
6290 | } | |
6291 | } | |
6292 | { | |
6293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6294 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); | |
6295 | _result = (wxKeyEvent *) &_result_ref; | |
6296 | ||
6297 | wxPyEndAllowThreads(__tstate); | |
6298 | if (PyErr_Occurred()) return NULL; | |
6299 | } if (_result) { | |
6300 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6301 | _resultobj = Py_BuildValue("s",_ptemp); | |
6302 | } else { | |
6303 | Py_INCREF(Py_None); | |
6304 | _resultobj = Py_None; | |
6305 | } | |
6306 | return _resultobj; | |
6307 | } | |
6308 | ||
6309 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) | |
6310 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6311 | PyObject * _resultobj; | |
6312 | int _result; | |
6313 | wxTreeEvent * _arg0; | |
6314 | PyObject * _argo0 = 0; | |
6315 | char *_kwnames[] = { "self", NULL }; | |
6316 | ||
6317 | self = self; | |
6318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) | |
6319 | return NULL; | |
6320 | if (_argo0) { | |
6321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); | |
6324 | return NULL; | |
6325 | } | |
6326 | } | |
6327 | { | |
6328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6329 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
6330 | ||
6331 | wxPyEndAllowThreads(__tstate); | |
6332 | if (PyErr_Occurred()) return NULL; | |
6333 | } _resultobj = Py_BuildValue("i",_result); | |
6334 | return _resultobj; | |
6335 | } | |
6336 | ||
6337 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) | |
6338 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6339 | PyObject * _resultobj; | |
6340 | wxString * _result; | |
6341 | wxTreeEvent * _arg0; | |
6342 | PyObject * _argo0 = 0; | |
6343 | char *_kwnames[] = { "self", NULL }; | |
6344 | ||
6345 | self = self; | |
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) | |
6347 | return NULL; | |
6348 | if (_argo0) { | |
6349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); | |
6352 | return NULL; | |
6353 | } | |
6354 | } | |
6355 | { | |
6356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6357 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); | |
6358 | _result = (wxString *) &_result_ref; | |
6359 | ||
6360 | wxPyEndAllowThreads(__tstate); | |
6361 | if (PyErr_Occurred()) return NULL; | |
6362 | }{ | |
6363 | #if wxUSE_UNICODE | |
6364 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6365 | #else | |
6366 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6367 | #endif | |
6368 | } | |
6369 | return _resultobj; | |
6370 | } | |
6371 | ||
6372 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { | |
6373 | wxPyTreeCtrl *src; | |
6374 | wxControl *dest; | |
6375 | src = (wxPyTreeCtrl *) ptr; | |
6376 | dest = (wxControl *) src; | |
6377 | return (void *) dest; | |
6378 | } | |
6379 | ||
6380 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { | |
6381 | wxPyTreeCtrl *src; | |
6382 | wxWindow *dest; | |
6383 | src = (wxPyTreeCtrl *) ptr; | |
6384 | dest = (wxWindow *) src; | |
6385 | return (void *) dest; | |
6386 | } | |
6387 | ||
6388 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { | |
6389 | wxPyTreeCtrl *src; | |
6390 | wxEvtHandler *dest; | |
6391 | src = (wxPyTreeCtrl *) ptr; | |
6392 | dest = (wxEvtHandler *) src; | |
6393 | return (void *) dest; | |
6394 | } | |
6395 | ||
6396 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { | |
6397 | wxPyTreeCtrl *src; | |
6398 | wxObject *dest; | |
6399 | src = (wxPyTreeCtrl *) ptr; | |
6400 | dest = (wxObject *) src; | |
6401 | return (void *) dest; | |
6402 | } | |
6403 | ||
6404 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6405 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6406 | PyObject * _resultobj; | |
6407 | wxPyTreeCtrl * _result; | |
6408 | wxWindow * _arg0; | |
6409 | wxWindowID _arg1 = (wxWindowID ) -1; | |
6410 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
6411 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
6412 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6413 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
6414 | wxString * _arg6 = (wxString *) &wxPy_TreeCtrlNameStr; | |
6415 | PyObject * _argo0 = 0; | |
6416 | wxPoint temp; | |
6417 | PyObject * _obj2 = 0; | |
6418 | wxSize temp0; | |
6419 | PyObject * _obj3 = 0; | |
6420 | PyObject * _argo5 = 0; | |
6421 | PyObject * _obj6 = 0; | |
6422 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
6423 | char _ptemp[128]; | |
6424 | ||
6425 | self = self; | |
6426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
6427 | return NULL; | |
6428 | if (_argo0) { | |
6429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); | |
6432 | return NULL; | |
6433 | } | |
6434 | } | |
6435 | if (_obj2) | |
6436 | { | |
6437 | _arg2 = &temp; | |
6438 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6439 | return NULL; | |
6440 | } | |
6441 | if (_obj3) | |
6442 | { | |
6443 | _arg3 = &temp0; | |
6444 | if (! wxSize_helper(_obj3, &_arg3)) | |
6445 | return NULL; | |
6446 | } | |
6447 | if (_argo5) { | |
6448 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6449 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
6450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); | |
6451 | return NULL; | |
6452 | } | |
6453 | } | |
6454 | if (_obj6) | |
6455 | { | |
6456 | _arg6 = wxString_in_helper(_obj6); | |
6457 | if (_arg6 == NULL) | |
6458 | return NULL; | |
6459 | } | |
6460 | { | |
6461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6462 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
6463 | ||
6464 | wxPyEndAllowThreads(__tstate); | |
6465 | if (PyErr_Occurred()) return NULL; | |
6466 | } if (_result) { | |
6467 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6468 | _resultobj = Py_BuildValue("s",_ptemp); | |
6469 | } else { | |
6470 | Py_INCREF(Py_None); | |
6471 | _resultobj = Py_None; | |
6472 | } | |
6473 | { | |
6474 | if (_obj6) | |
6475 | delete _arg6; | |
6476 | } | |
6477 | return _resultobj; | |
6478 | } | |
6479 | ||
6480 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) | |
6481 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6482 | PyObject * _resultobj; | |
6483 | wxPyTreeCtrl * _result; | |
6484 | char *_kwnames[] = { NULL }; | |
6485 | char _ptemp[128]; | |
6486 | ||
6487 | self = self; | |
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6489 | return NULL; | |
6490 | { | |
6491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6492 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); | |
6493 | ||
6494 | wxPyEndAllowThreads(__tstate); | |
6495 | if (PyErr_Occurred()) return NULL; | |
6496 | } if (_result) { | |
6497 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6498 | _resultobj = Py_BuildValue("s",_ptemp); | |
6499 | } else { | |
6500 | Py_INCREF(Py_None); | |
6501 | _resultobj = Py_None; | |
6502 | } | |
6503 | return _resultobj; | |
6504 | } | |
6505 | ||
6506 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6507 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6508 | PyObject * _resultobj; | |
6509 | bool _result; | |
6510 | wxPyTreeCtrl * _arg0; | |
6511 | wxWindow * _arg1; | |
6512 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6513 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6514 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6515 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6516 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6517 | wxString * _arg7 = (wxString *) &wxPy_TreeCtrlNameStr; | |
6518 | PyObject * _argo0 = 0; | |
6519 | PyObject * _argo1 = 0; | |
6520 | wxPoint temp; | |
6521 | PyObject * _obj3 = 0; | |
6522 | wxSize temp0; | |
6523 | PyObject * _obj4 = 0; | |
6524 | PyObject * _argo6 = 0; | |
6525 | PyObject * _obj7 = 0; | |
6526 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
6527 | ||
6528 | self = self; | |
6529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
6530 | return NULL; | |
6531 | if (_argo0) { | |
6532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); | |
6535 | return NULL; | |
6536 | } | |
6537 | } | |
6538 | if (_argo1) { | |
6539 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6540 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
6542 | return NULL; | |
6543 | } | |
6544 | } | |
6545 | if (_obj3) | |
6546 | { | |
6547 | _arg3 = &temp; | |
6548 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6549 | return NULL; | |
6550 | } | |
6551 | if (_obj4) | |
6552 | { | |
6553 | _arg4 = &temp0; | |
6554 | if (! wxSize_helper(_obj4, &_arg4)) | |
6555 | return NULL; | |
6556 | } | |
6557 | if (_argo6) { | |
6558 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6559 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6561 | return NULL; | |
6562 | } | |
6563 | } | |
6564 | if (_obj7) | |
6565 | { | |
6566 | _arg7 = wxString_in_helper(_obj7); | |
6567 | if (_arg7 == NULL) | |
6568 | return NULL; | |
6569 | } | |
6570 | { | |
6571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6572 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
6573 | ||
6574 | wxPyEndAllowThreads(__tstate); | |
6575 | if (PyErr_Occurred()) return NULL; | |
6576 | } _resultobj = Py_BuildValue("i",_result); | |
6577 | { | |
6578 | if (_obj7) | |
6579 | delete _arg7; | |
6580 | } | |
6581 | return _resultobj; | |
6582 | } | |
6583 | ||
6584 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
6585 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6586 | PyObject * _resultobj; | |
6587 | wxPyTreeCtrl * _arg0; | |
6588 | PyObject * _arg1; | |
6589 | PyObject * _arg2; | |
6590 | PyObject * _argo0 = 0; | |
6591 | PyObject * _obj1 = 0; | |
6592 | PyObject * _obj2 = 0; | |
6593 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6594 | ||
6595 | self = self; | |
6596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
6597 | return NULL; | |
6598 | if (_argo0) { | |
6599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); | |
6602 | return NULL; | |
6603 | } | |
6604 | } | |
6605 | { | |
6606 | _arg1 = _obj1; | |
6607 | } | |
6608 | { | |
6609 | _arg2 = _obj2; | |
6610 | } | |
6611 | { | |
6612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6613 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); | |
6614 | ||
6615 | wxPyEndAllowThreads(__tstate); | |
6616 | if (PyErr_Occurred()) return NULL; | |
6617 | } Py_INCREF(Py_None); | |
6618 | _resultobj = Py_None; | |
6619 | return _resultobj; | |
6620 | } | |
6621 | ||
6622 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) | |
6623 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6624 | PyObject * _resultobj; | |
6625 | size_t _result; | |
6626 | wxPyTreeCtrl * _arg0; | |
6627 | PyObject * _argo0 = 0; | |
6628 | char *_kwnames[] = { "self", NULL }; | |
6629 | ||
6630 | self = self; | |
6631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) | |
6632 | return NULL; | |
6633 | if (_argo0) { | |
6634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
6637 | return NULL; | |
6638 | } | |
6639 | } | |
6640 | { | |
6641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6642 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); | |
6643 | ||
6644 | wxPyEndAllowThreads(__tstate); | |
6645 | if (PyErr_Occurred()) return NULL; | |
6646 | } _resultobj = Py_BuildValue("i",_result); | |
6647 | return _resultobj; | |
6648 | } | |
6649 | ||
6650 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) | |
6651 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6652 | PyObject * _resultobj; | |
6653 | unsigned int _result; | |
6654 | wxPyTreeCtrl * _arg0; | |
6655 | PyObject * _argo0 = 0; | |
6656 | char *_kwnames[] = { "self", NULL }; | |
6657 | ||
6658 | self = self; | |
6659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) | |
6660 | return NULL; | |
6661 | if (_argo0) { | |
6662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
6665 | return NULL; | |
6666 | } | |
6667 | } | |
6668 | { | |
6669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6670 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
6671 | ||
6672 | wxPyEndAllowThreads(__tstate); | |
6673 | if (PyErr_Occurred()) return NULL; | |
6674 | } _resultobj = Py_BuildValue("i",_result); | |
6675 | return _resultobj; | |
6676 | } | |
6677 | ||
6678 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) | |
6679 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6680 | PyObject * _resultobj; | |
6681 | wxPyTreeCtrl * _arg0; | |
6682 | unsigned int _arg1; | |
6683 | PyObject * _argo0 = 0; | |
6684 | char *_kwnames[] = { "self","indent", NULL }; | |
6685 | ||
6686 | self = self; | |
6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) | |
6688 | return NULL; | |
6689 | if (_argo0) { | |
6690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
6693 | return NULL; | |
6694 | } | |
6695 | } | |
6696 | { | |
6697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6698 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
6699 | ||
6700 | wxPyEndAllowThreads(__tstate); | |
6701 | if (PyErr_Occurred()) return NULL; | |
6702 | } Py_INCREF(Py_None); | |
6703 | _resultobj = Py_None; | |
6704 | return _resultobj; | |
6705 | } | |
6706 | ||
6707 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) | |
6708 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6709 | PyObject * _resultobj; | |
6710 | wxImageList * _result; | |
6711 | wxPyTreeCtrl * _arg0; | |
6712 | PyObject * _argo0 = 0; | |
6713 | char *_kwnames[] = { "self", NULL }; | |
6714 | ||
6715 | self = self; | |
6716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) | |
6717 | return NULL; | |
6718 | if (_argo0) { | |
6719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
6722 | return NULL; | |
6723 | } | |
6724 | } | |
6725 | { | |
6726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6727 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
6728 | ||
6729 | wxPyEndAllowThreads(__tstate); | |
6730 | if (PyErr_Occurred()) return NULL; | |
6731 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6732 | return _resultobj; | |
6733 | } | |
6734 | ||
6735 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) | |
6736 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6737 | PyObject * _resultobj; | |
6738 | wxImageList * _result; | |
6739 | wxPyTreeCtrl * _arg0; | |
6740 | PyObject * _argo0 = 0; | |
6741 | char *_kwnames[] = { "self", NULL }; | |
6742 | ||
6743 | self = self; | |
6744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) | |
6745 | return NULL; | |
6746 | if (_argo0) { | |
6747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
6750 | return NULL; | |
6751 | } | |
6752 | } | |
6753 | { | |
6754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6755 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
6756 | ||
6757 | wxPyEndAllowThreads(__tstate); | |
6758 | if (PyErr_Occurred()) return NULL; | |
6759 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6760 | return _resultobj; | |
6761 | } | |
6762 | ||
6763 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) | |
6764 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6765 | PyObject * _resultobj; | |
6766 | wxPyTreeCtrl * _arg0; | |
6767 | wxImageList * _arg1; | |
6768 | PyObject * _argo0 = 0; | |
6769 | PyObject * _argo1 = 0; | |
6770 | char *_kwnames[] = { "self","imageList", NULL }; | |
6771 | ||
6772 | self = self; | |
6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) | |
6774 | return NULL; | |
6775 | if (_argo0) { | |
6776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
6779 | return NULL; | |
6780 | } | |
6781 | } | |
6782 | if (_argo1) { | |
6783 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6784 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); | |
6786 | return NULL; | |
6787 | } | |
6788 | } | |
6789 | { | |
6790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6791 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
6792 | ||
6793 | wxPyEndAllowThreads(__tstate); | |
6794 | if (PyErr_Occurred()) return NULL; | |
6795 | } Py_INCREF(Py_None); | |
6796 | _resultobj = Py_None; | |
6797 | return _resultobj; | |
6798 | } | |
6799 | ||
6800 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) | |
6801 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6802 | PyObject * _resultobj; | |
6803 | wxPyTreeCtrl * _arg0; | |
6804 | wxImageList * _arg1; | |
6805 | PyObject * _argo0 = 0; | |
6806 | PyObject * _argo1 = 0; | |
6807 | char *_kwnames[] = { "self","imageList", NULL }; | |
6808 | ||
6809 | self = self; | |
6810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) | |
6811 | return NULL; | |
6812 | if (_argo0) { | |
6813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
6816 | return NULL; | |
6817 | } | |
6818 | } | |
6819 | if (_argo1) { | |
6820 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6821 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); | |
6823 | return NULL; | |
6824 | } | |
6825 | } | |
6826 | { | |
6827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6828 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
6829 | ||
6830 | wxPyEndAllowThreads(__tstate); | |
6831 | if (PyErr_Occurred()) return NULL; | |
6832 | } Py_INCREF(Py_None); | |
6833 | _resultobj = Py_None; | |
6834 | return _resultobj; | |
6835 | } | |
6836 | ||
6837 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) | |
6838 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6839 | PyObject * _resultobj; | |
6840 | wxPyTreeCtrl * _arg0; | |
6841 | wxImageList * _arg1; | |
6842 | PyObject * _argo0 = 0; | |
6843 | PyObject * _argo1 = 0; | |
6844 | char *_kwnames[] = { "self","imageList", NULL }; | |
6845 | ||
6846 | self = self; | |
6847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6848 | return NULL; | |
6849 | if (_argo0) { | |
6850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6853 | return NULL; | |
6854 | } | |
6855 | } | |
6856 | if (_argo1) { | |
6857 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6858 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6860 | return NULL; | |
6861 | } | |
6862 | } | |
6863 | { | |
6864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6865 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
6866 | ||
6867 | wxPyEndAllowThreads(__tstate); | |
6868 | if (PyErr_Occurred()) return NULL; | |
6869 | } Py_INCREF(Py_None); | |
6870 | _resultobj = Py_None; | |
6871 | return _resultobj; | |
6872 | } | |
6873 | ||
6874 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6875 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6876 | PyObject * _resultobj; | |
6877 | wxPyTreeCtrl * _arg0; | |
6878 | wxImageList * _arg1; | |
6879 | PyObject * _argo0 = 0; | |
6880 | PyObject * _argo1 = 0; | |
6881 | char *_kwnames[] = { "self","imageList", NULL }; | |
6882 | ||
6883 | self = self; | |
6884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6885 | return NULL; | |
6886 | if (_argo0) { | |
6887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6890 | return NULL; | |
6891 | } | |
6892 | } | |
6893 | if (_argo1) { | |
6894 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6895 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6897 | return NULL; | |
6898 | } | |
6899 | } | |
6900 | { | |
6901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6902 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); | |
6903 | ||
6904 | wxPyEndAllowThreads(__tstate); | |
6905 | if (PyErr_Occurred()) return NULL; | |
6906 | } Py_INCREF(Py_None); | |
6907 | _resultobj = Py_None; | |
6908 | return _resultobj; | |
6909 | } | |
6910 | ||
6911 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) | |
6912 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6913 | PyObject * _resultobj; | |
6914 | unsigned int _result; | |
6915 | wxPyTreeCtrl * _arg0; | |
6916 | PyObject * _argo0 = 0; | |
6917 | char *_kwnames[] = { "self", NULL }; | |
6918 | ||
6919 | self = self; | |
6920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6921 | return NULL; | |
6922 | if (_argo0) { | |
6923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
6926 | return NULL; | |
6927 | } | |
6928 | } | |
6929 | { | |
6930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6931 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
6932 | ||
6933 | wxPyEndAllowThreads(__tstate); | |
6934 | if (PyErr_Occurred()) return NULL; | |
6935 | } _resultobj = Py_BuildValue("i",_result); | |
6936 | return _resultobj; | |
6937 | } | |
6938 | ||
6939 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6940 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6941 | PyObject * _resultobj; | |
6942 | wxPyTreeCtrl * _arg0; | |
6943 | unsigned int _arg1; | |
6944 | PyObject * _argo0 = 0; | |
6945 | char *_kwnames[] = { "self","spacing", NULL }; | |
6946 | ||
6947 | self = self; | |
6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6949 | return NULL; | |
6950 | if (_argo0) { | |
6951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
6954 | return NULL; | |
6955 | } | |
6956 | } | |
6957 | { | |
6958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6959 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
6960 | ||
6961 | wxPyEndAllowThreads(__tstate); | |
6962 | if (PyErr_Occurred()) return NULL; | |
6963 | } Py_INCREF(Py_None); | |
6964 | _resultobj = Py_None; | |
6965 | return _resultobj; | |
6966 | } | |
6967 | ||
6968 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
6969 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6970 | PyObject * _resultobj; | |
6971 | wxString * _result; | |
6972 | wxPyTreeCtrl * _arg0; | |
6973 | wxTreeItemId * _arg1; | |
6974 | PyObject * _argo0 = 0; | |
6975 | PyObject * _argo1 = 0; | |
6976 | char *_kwnames[] = { "self","item", NULL }; | |
6977 | ||
6978 | self = self; | |
6979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) | |
6980 | return NULL; | |
6981 | if (_argo0) { | |
6982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
6985 | return NULL; | |
6986 | } | |
6987 | } | |
6988 | if (_argo1) { | |
6989 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6990 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); | |
6992 | return NULL; | |
6993 | } | |
6994 | } | |
6995 | { | |
6996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6997 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
6998 | ||
6999 | wxPyEndAllowThreads(__tstate); | |
7000 | if (PyErr_Occurred()) return NULL; | |
7001 | }{ | |
7002 | #if wxUSE_UNICODE | |
7003 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7004 | #else | |
7005 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7006 | #endif | |
7007 | } | |
7008 | { | |
7009 | delete _result; | |
7010 | } | |
7011 | return _resultobj; | |
7012 | } | |
7013 | ||
7014 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) | |
7015 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7016 | PyObject * _resultobj; | |
7017 | int _result; | |
7018 | wxPyTreeCtrl * _arg0; | |
7019 | wxTreeItemId * _arg1; | |
7020 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); | |
7021 | PyObject * _argo0 = 0; | |
7022 | PyObject * _argo1 = 0; | |
7023 | char *_kwnames[] = { "self","item","which", NULL }; | |
7024 | ||
7025 | self = self; | |
7026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7027 | return NULL; | |
7028 | if (_argo0) { | |
7029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
7032 | return NULL; | |
7033 | } | |
7034 | } | |
7035 | if (_argo1) { | |
7036 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7037 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); | |
7039 | return NULL; | |
7040 | } | |
7041 | } | |
7042 | { | |
7043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7044 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); | |
7045 | ||
7046 | wxPyEndAllowThreads(__tstate); | |
7047 | if (PyErr_Occurred()) return NULL; | |
7048 | } _resultobj = Py_BuildValue("i",_result); | |
7049 | return _resultobj; | |
7050 | } | |
7051 | ||
7052 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) | |
7053 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7054 | PyObject * _resultobj; | |
7055 | int _result; | |
7056 | wxPyTreeCtrl * _arg0; | |
7057 | wxTreeItemId * _arg1; | |
7058 | PyObject * _argo0 = 0; | |
7059 | PyObject * _argo1 = 0; | |
7060 | char *_kwnames[] = { "self","item", NULL }; | |
7061 | ||
7062 | self = self; | |
7063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) | |
7064 | return NULL; | |
7065 | if (_argo0) { | |
7066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
7069 | return NULL; | |
7070 | } | |
7071 | } | |
7072 | if (_argo1) { | |
7073 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7074 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); | |
7076 | return NULL; | |
7077 | } | |
7078 | } | |
7079 | { | |
7080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7081 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
7082 | ||
7083 | wxPyEndAllowThreads(__tstate); | |
7084 | if (PyErr_Occurred()) return NULL; | |
7085 | } _resultobj = Py_BuildValue("i",_result); | |
7086 | return _resultobj; | |
7087 | } | |
7088 | ||
7089 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
7090 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7091 | PyObject * _resultobj; | |
7092 | wxPyTreeCtrl * _arg0; | |
7093 | wxTreeItemId * _arg1; | |
7094 | wxString * _arg2; | |
7095 | PyObject * _argo0 = 0; | |
7096 | PyObject * _argo1 = 0; | |
7097 | PyObject * _obj2 = 0; | |
7098 | char *_kwnames[] = { "self","item","text", NULL }; | |
7099 | ||
7100 | self = self; | |
7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7102 | return NULL; | |
7103 | if (_argo0) { | |
7104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
7107 | return NULL; | |
7108 | } | |
7109 | } | |
7110 | if (_argo1) { | |
7111 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7112 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); | |
7114 | return NULL; | |
7115 | } | |
7116 | } | |
7117 | { | |
7118 | _arg2 = wxString_in_helper(_obj2); | |
7119 | if (_arg2 == NULL) | |
7120 | return NULL; | |
7121 | } | |
7122 | { | |
7123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7124 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
7125 | ||
7126 | wxPyEndAllowThreads(__tstate); | |
7127 | if (PyErr_Occurred()) return NULL; | |
7128 | } Py_INCREF(Py_None); | |
7129 | _resultobj = Py_None; | |
7130 | { | |
7131 | if (_obj2) | |
7132 | delete _arg2; | |
7133 | } | |
7134 | return _resultobj; | |
7135 | } | |
7136 | ||
7137 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
7138 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7139 | PyObject * _resultobj; | |
7140 | wxPyTreeCtrl * _arg0; | |
7141 | wxTreeItemId * _arg1; | |
7142 | int _arg2; | |
7143 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); | |
7144 | PyObject * _argo0 = 0; | |
7145 | PyObject * _argo1 = 0; | |
7146 | char *_kwnames[] = { "self","item","image","which", NULL }; | |
7147 | ||
7148 | self = self; | |
7149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
7150 | return NULL; | |
7151 | if (_argo0) { | |
7152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
7155 | return NULL; | |
7156 | } | |
7157 | } | |
7158 | if (_argo1) { | |
7159 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7160 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); | |
7162 | return NULL; | |
7163 | } | |
7164 | } | |
7165 | { | |
7166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7167 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); | |
7168 | ||
7169 | wxPyEndAllowThreads(__tstate); | |
7170 | if (PyErr_Occurred()) return NULL; | |
7171 | } Py_INCREF(Py_None); | |
7172 | _resultobj = Py_None; | |
7173 | return _resultobj; | |
7174 | } | |
7175 | ||
7176 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) | |
7177 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7178 | PyObject * _resultobj; | |
7179 | wxPyTreeCtrl * _arg0; | |
7180 | wxTreeItemId * _arg1; | |
7181 | int _arg2; | |
7182 | PyObject * _argo0 = 0; | |
7183 | PyObject * _argo1 = 0; | |
7184 | char *_kwnames[] = { "self","item","image", NULL }; | |
7185 | ||
7186 | self = self; | |
7187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7188 | return NULL; | |
7189 | if (_argo0) { | |
7190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
7193 | return NULL; | |
7194 | } | |
7195 | } | |
7196 | if (_argo1) { | |
7197 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7198 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); | |
7200 | return NULL; | |
7201 | } | |
7202 | } | |
7203 | { | |
7204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7205 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
7206 | ||
7207 | wxPyEndAllowThreads(__tstate); | |
7208 | if (PyErr_Occurred()) return NULL; | |
7209 | } Py_INCREF(Py_None); | |
7210 | _resultobj = Py_None; | |
7211 | return _resultobj; | |
7212 | } | |
7213 | ||
7214 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
7215 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7216 | PyObject * _resultobj; | |
7217 | wxPyTreeCtrl * _arg0; | |
7218 | wxTreeItemId * _arg1; | |
7219 | bool _arg2 = (bool ) TRUE; | |
7220 | PyObject * _argo0 = 0; | |
7221 | PyObject * _argo1 = 0; | |
7222 | int tempbool2 = (int) TRUE; | |
7223 | char *_kwnames[] = { "self","item","hasChildren", NULL }; | |
7224 | ||
7225 | self = self; | |
7226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
7227 | return NULL; | |
7228 | if (_argo0) { | |
7229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
7232 | return NULL; | |
7233 | } | |
7234 | } | |
7235 | if (_argo1) { | |
7236 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7237 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); | |
7239 | return NULL; | |
7240 | } | |
7241 | } | |
7242 | _arg2 = (bool ) tempbool2; | |
7243 | { | |
7244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7245 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
7246 | ||
7247 | wxPyEndAllowThreads(__tstate); | |
7248 | if (PyErr_Occurred()) return NULL; | |
7249 | } Py_INCREF(Py_None); | |
7250 | _resultobj = Py_None; | |
7251 | return _resultobj; | |
7252 | } | |
7253 | ||
7254 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { | |
7255 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
7256 | if (data == NULL) { | |
7257 | data = new wxPyTreeItemData(); | |
7258 | data->SetId(item); // set the id | |
7259 | self->SetItemData(item, data); | |
7260 | } | |
7261 | return data; | |
7262 | } | |
7263 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7264 | PyObject * _resultobj; | |
7265 | wxPyTreeItemData * _result; | |
7266 | wxPyTreeCtrl * _arg0; | |
7267 | wxTreeItemId * _arg1; | |
7268 | PyObject * _argo0 = 0; | |
7269 | PyObject * _argo1 = 0; | |
7270 | char *_kwnames[] = { "self","item", NULL }; | |
7271 | char _ptemp[128]; | |
7272 | ||
7273 | self = self; | |
7274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) | |
7275 | return NULL; | |
7276 | if (_argo0) { | |
7277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
7280 | return NULL; | |
7281 | } | |
7282 | } | |
7283 | if (_argo1) { | |
7284 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7285 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); | |
7287 | return NULL; | |
7288 | } | |
7289 | } | |
7290 | { | |
7291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7292 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); | |
7293 | ||
7294 | wxPyEndAllowThreads(__tstate); | |
7295 | if (PyErr_Occurred()) return NULL; | |
7296 | } if (_result) { | |
7297 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7298 | _resultobj = Py_BuildValue("s",_ptemp); | |
7299 | } else { | |
7300 | Py_INCREF(Py_None); | |
7301 | _resultobj = Py_None; | |
7302 | } | |
7303 | return _resultobj; | |
7304 | } | |
7305 | ||
7306 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { | |
7307 | data->SetId(item); // set the id | |
7308 | self->SetItemData(item, data); | |
7309 | } | |
7310 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7311 | PyObject * _resultobj; | |
7312 | wxPyTreeCtrl * _arg0; | |
7313 | wxTreeItemId * _arg1; | |
7314 | wxPyTreeItemData * _arg2; | |
7315 | PyObject * _argo0 = 0; | |
7316 | PyObject * _argo1 = 0; | |
7317 | PyObject * _argo2 = 0; | |
7318 | char *_kwnames[] = { "self","item","data", NULL }; | |
7319 | ||
7320 | self = self; | |
7321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) | |
7322 | return NULL; | |
7323 | if (_argo0) { | |
7324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
7327 | return NULL; | |
7328 | } | |
7329 | } | |
7330 | if (_argo1) { | |
7331 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7332 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); | |
7334 | return NULL; | |
7335 | } | |
7336 | } | |
7337 | if (_argo2) { | |
7338 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7339 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
7340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); | |
7341 | return NULL; | |
7342 | } | |
7343 | } | |
7344 | { | |
7345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7346 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); | |
7347 | ||
7348 | wxPyEndAllowThreads(__tstate); | |
7349 | if (PyErr_Occurred()) return NULL; | |
7350 | } Py_INCREF(Py_None); | |
7351 | _resultobj = Py_None; | |
7352 | return _resultobj; | |
7353 | } | |
7354 | ||
7355 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { | |
7356 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
7357 | if (data == NULL) { | |
7358 | data = new wxPyTreeItemData(); | |
7359 | data->SetId(item); // set the id | |
7360 | self->SetItemData(item, data); | |
7361 | } | |
7362 | return data->GetData(); | |
7363 | } | |
7364 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7365 | PyObject * _resultobj; | |
7366 | PyObject * _result; | |
7367 | wxPyTreeCtrl * _arg0; | |
7368 | wxTreeItemId * _arg1; | |
7369 | PyObject * _argo0 = 0; | |
7370 | PyObject * _argo1 = 0; | |
7371 | char *_kwnames[] = { "self","item", NULL }; | |
7372 | ||
7373 | self = self; | |
7374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) | |
7375 | return NULL; | |
7376 | if (_argo0) { | |
7377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
7380 | return NULL; | |
7381 | } | |
7382 | } | |
7383 | if (_argo1) { | |
7384 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7385 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); | |
7387 | return NULL; | |
7388 | } | |
7389 | } | |
7390 | { | |
7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7392 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); | |
7393 | ||
7394 | wxPyEndAllowThreads(__tstate); | |
7395 | if (PyErr_Occurred()) return NULL; | |
7396 | }{ | |
7397 | _resultobj = _result; | |
7398 | } | |
7399 | return _resultobj; | |
7400 | } | |
7401 | ||
7402 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { | |
7403 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
7404 | if (data == NULL) { | |
7405 | data = new wxPyTreeItemData(obj); | |
7406 | data->SetId(item); // set the id | |
7407 | self->SetItemData(item, data); | |
7408 | } else | |
7409 | data->SetData(obj); | |
7410 | } | |
7411 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7412 | PyObject * _resultobj; | |
7413 | wxPyTreeCtrl * _arg0; | |
7414 | wxTreeItemId * _arg1; | |
7415 | PyObject * _arg2; | |
7416 | PyObject * _argo0 = 0; | |
7417 | PyObject * _argo1 = 0; | |
7418 | PyObject * _obj2 = 0; | |
7419 | char *_kwnames[] = { "self","item","obj", NULL }; | |
7420 | ||
7421 | self = self; | |
7422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7423 | return NULL; | |
7424 | if (_argo0) { | |
7425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
7428 | return NULL; | |
7429 | } | |
7430 | } | |
7431 | if (_argo1) { | |
7432 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7433 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); | |
7435 | return NULL; | |
7436 | } | |
7437 | } | |
7438 | { | |
7439 | _arg2 = _obj2; | |
7440 | } | |
7441 | { | |
7442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7443 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); | |
7444 | ||
7445 | wxPyEndAllowThreads(__tstate); | |
7446 | if (PyErr_Occurred()) return NULL; | |
7447 | } Py_INCREF(Py_None); | |
7448 | _resultobj = Py_None; | |
7449 | return _resultobj; | |
7450 | } | |
7451 | ||
7452 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) | |
7453 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7454 | PyObject * _resultobj; | |
7455 | bool _result; | |
7456 | wxPyTreeCtrl * _arg0; | |
7457 | wxTreeItemId * _arg1; | |
7458 | PyObject * _argo0 = 0; | |
7459 | PyObject * _argo1 = 0; | |
7460 | char *_kwnames[] = { "self","item", NULL }; | |
7461 | ||
7462 | self = self; | |
7463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) | |
7464 | return NULL; | |
7465 | if (_argo0) { | |
7466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
7469 | return NULL; | |
7470 | } | |
7471 | } | |
7472 | if (_argo1) { | |
7473 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); | |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
7479 | { | |
7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7481 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
7482 | ||
7483 | wxPyEndAllowThreads(__tstate); | |
7484 | if (PyErr_Occurred()) return NULL; | |
7485 | } _resultobj = Py_BuildValue("i",_result); | |
7486 | return _resultobj; | |
7487 | } | |
7488 | ||
7489 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) | |
7490 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7491 | PyObject * _resultobj; | |
7492 | bool _result; | |
7493 | wxPyTreeCtrl * _arg0; | |
7494 | wxTreeItemId * _arg1; | |
7495 | PyObject * _argo0 = 0; | |
7496 | PyObject * _argo1 = 0; | |
7497 | char *_kwnames[] = { "self","item", NULL }; | |
7498 | ||
7499 | self = self; | |
7500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) | |
7501 | return NULL; | |
7502 | if (_argo0) { | |
7503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
7506 | return NULL; | |
7507 | } | |
7508 | } | |
7509 | if (_argo1) { | |
7510 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7511 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); | |
7513 | return NULL; | |
7514 | } | |
7515 | } | |
7516 | { | |
7517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7518 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
7519 | ||
7520 | wxPyEndAllowThreads(__tstate); | |
7521 | if (PyErr_Occurred()) return NULL; | |
7522 | } _resultobj = Py_BuildValue("i",_result); | |
7523 | return _resultobj; | |
7524 | } | |
7525 | ||
7526 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) | |
7527 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7528 | PyObject * _resultobj; | |
7529 | bool _result; | |
7530 | wxPyTreeCtrl * _arg0; | |
7531 | wxTreeItemId * _arg1; | |
7532 | PyObject * _argo0 = 0; | |
7533 | PyObject * _argo1 = 0; | |
7534 | char *_kwnames[] = { "self","item", NULL }; | |
7535 | ||
7536 | self = self; | |
7537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) | |
7538 | return NULL; | |
7539 | if (_argo0) { | |
7540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
7543 | return NULL; | |
7544 | } | |
7545 | } | |
7546 | if (_argo1) { | |
7547 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7548 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); | |
7550 | return NULL; | |
7551 | } | |
7552 | } | |
7553 | { | |
7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7555 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
7556 | ||
7557 | wxPyEndAllowThreads(__tstate); | |
7558 | if (PyErr_Occurred()) return NULL; | |
7559 | } _resultobj = Py_BuildValue("i",_result); | |
7560 | return _resultobj; | |
7561 | } | |
7562 | ||
7563 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
7564 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7565 | PyObject * _resultobj; | |
7566 | bool _result; | |
7567 | wxPyTreeCtrl * _arg0; | |
7568 | wxTreeItemId * _arg1; | |
7569 | PyObject * _argo0 = 0; | |
7570 | PyObject * _argo1 = 0; | |
7571 | char *_kwnames[] = { "self","item", NULL }; | |
7572 | ||
7573 | self = self; | |
7574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) | |
7575 | return NULL; | |
7576 | if (_argo0) { | |
7577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
7580 | return NULL; | |
7581 | } | |
7582 | } | |
7583 | if (_argo1) { | |
7584 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7585 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); | |
7587 | return NULL; | |
7588 | } | |
7589 | } | |
7590 | { | |
7591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7592 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
7593 | ||
7594 | wxPyEndAllowThreads(__tstate); | |
7595 | if (PyErr_Occurred()) return NULL; | |
7596 | } _resultobj = Py_BuildValue("i",_result); | |
7597 | return _resultobj; | |
7598 | } | |
7599 | ||
7600 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
7601 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7602 | PyObject * _resultobj; | |
7603 | wxTreeItemId * _result; | |
7604 | wxPyTreeCtrl * _arg0; | |
7605 | PyObject * _argo0 = 0; | |
7606 | char *_kwnames[] = { "self", NULL }; | |
7607 | char _ptemp[128]; | |
7608 | ||
7609 | self = self; | |
7610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) | |
7611 | return NULL; | |
7612 | if (_argo0) { | |
7613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
7616 | return NULL; | |
7617 | } | |
7618 | } | |
7619 | { | |
7620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7621 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
7622 | ||
7623 | wxPyEndAllowThreads(__tstate); | |
7624 | if (PyErr_Occurred()) return NULL; | |
7625 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7626 | _resultobj = Py_BuildValue("s",_ptemp); | |
7627 | return _resultobj; | |
7628 | } | |
7629 | ||
7630 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
7631 | static PyObject *_wrap_wxTreeCtrl_GetSelection(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_GetSelection",_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_GetSelection. Expected _wxPyTreeCtrl_p."); | |
7646 | return NULL; | |
7647 | } | |
7648 | } | |
7649 | { | |
7650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7651 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
7652 | ||
7653 | wxPyEndAllowThreads(__tstate); | |
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_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) | |
7661 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7662 | PyObject * _resultobj; | |
7663 | wxTreeItemId * _result; | |
7664 | wxPyTreeCtrl * _arg0; | |
7665 | wxTreeItemId * _arg1; | |
7666 | PyObject * _argo0 = 0; | |
7667 | PyObject * _argo1 = 0; | |
7668 | char *_kwnames[] = { "self","item", NULL }; | |
7669 | char _ptemp[128]; | |
7670 | ||
7671 | self = self; | |
7672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) | |
7673 | return NULL; | |
7674 | if (_argo0) { | |
7675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
7678 | return NULL; | |
7679 | } | |
7680 | } | |
7681 | if (_argo1) { | |
7682 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7683 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); | |
7685 | return NULL; | |
7686 | } | |
7687 | } | |
7688 | { | |
7689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7690 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); | |
7691 | ||
7692 | wxPyEndAllowThreads(__tstate); | |
7693 | if (PyErr_Occurred()) return NULL; | |
7694 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7695 | _resultobj = Py_BuildValue("s",_ptemp); | |
7696 | return _resultobj; | |
7697 | } | |
7698 | ||
7699 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { | |
7700 | wxPyBeginBlockThreads(); | |
7701 | PyObject* rval = PyList_New(0); | |
7702 | wxArrayTreeItemIds array; | |
7703 | size_t num, x; | |
7704 | num = self->GetSelections(array); | |
7705 | for (x=0; x < num; x++) { | |
7706 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
7707 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
7708 | PyList_Append(rval, item); | |
7709 | } | |
7710 | wxPyEndBlockThreads(); | |
7711 | return rval; | |
7712 | } | |
7713 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7714 | PyObject * _resultobj; | |
7715 | PyObject * _result; | |
7716 | wxPyTreeCtrl * _arg0; | |
7717 | PyObject * _argo0 = 0; | |
7718 | char *_kwnames[] = { "self", NULL }; | |
7719 | ||
7720 | self = self; | |
7721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7722 | return NULL; | |
7723 | if (_argo0) { | |
7724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
7727 | return NULL; | |
7728 | } | |
7729 | } | |
7730 | { | |
7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7732 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); | |
7733 | ||
7734 | wxPyEndAllowThreads(__tstate); | |
7735 | if (PyErr_Occurred()) return NULL; | |
7736 | }{ | |
7737 | _resultobj = _result; | |
7738 | } | |
7739 | return _resultobj; | |
7740 | } | |
7741 | ||
7742 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) | |
7743 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7744 | PyObject * _resultobj; | |
7745 | size_t _result; | |
7746 | wxPyTreeCtrl * _arg0; | |
7747 | wxTreeItemId * _arg1; | |
7748 | bool _arg2 = (bool ) TRUE; | |
7749 | PyObject * _argo0 = 0; | |
7750 | PyObject * _argo1 = 0; | |
7751 | int tempbool2 = (int) TRUE; | |
7752 | char *_kwnames[] = { "self","item","recursively", NULL }; | |
7753 | ||
7754 | self = self; | |
7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
7756 | return NULL; | |
7757 | if (_argo0) { | |
7758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
7761 | return NULL; | |
7762 | } | |
7763 | } | |
7764 | if (_argo1) { | |
7765 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7766 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); | |
7768 | return NULL; | |
7769 | } | |
7770 | } | |
7771 | _arg2 = (bool ) tempbool2; | |
7772 | { | |
7773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7774 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
7775 | ||
7776 | wxPyEndAllowThreads(__tstate); | |
7777 | if (PyErr_Occurred()) return NULL; | |
7778 | } _resultobj = Py_BuildValue("i",_result); | |
7779 | return _resultobj; | |
7780 | } | |
7781 | ||
7782 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) | |
7783 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7784 | PyObject * _resultobj; | |
7785 | wxTreeItemId * _result; | |
7786 | wxPyTreeCtrl * _arg0; | |
7787 | wxTreeItemId * _arg1; | |
7788 | long * _arg2 = (long *) &longzero; | |
7789 | PyObject * _argo0 = 0; | |
7790 | PyObject * _argo1 = 0; | |
7791 | long temp; | |
7792 | PyObject * _obj2 = 0; | |
7793 | char *_kwnames[] = { "self","item","INOUT", NULL }; | |
7794 | char _ptemp[128]; | |
7795 | ||
7796 | self = self; | |
7797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7798 | return NULL; | |
7799 | if (_argo0) { | |
7800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
7803 | return NULL; | |
7804 | } | |
7805 | } | |
7806 | if (_argo1) { | |
7807 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7808 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); | |
7810 | return NULL; | |
7811 | } | |
7812 | } | |
7813 | if (_obj2) | |
7814 | { | |
7815 | temp = (long) PyInt_AsLong(_obj2); | |
7816 | _arg2 = &temp; | |
7817 | } | |
7818 | { | |
7819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7820 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
7821 | ||
7822 | wxPyEndAllowThreads(__tstate); | |
7823 | if (PyErr_Occurred()) return NULL; | |
7824 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7825 | _resultobj = Py_BuildValue("s",_ptemp); | |
7826 | { | |
7827 | PyObject *o; | |
7828 | o = PyInt_FromLong((long) (*_arg2)); | |
7829 | _resultobj = t_output_helper(_resultobj, o); | |
7830 | } | |
7831 | return _resultobj; | |
7832 | } | |
7833 | ||
7834 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) | |
7835 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7836 | PyObject * _resultobj; | |
7837 | wxTreeItemId * _result; | |
7838 | wxPyTreeCtrl * _arg0; | |
7839 | wxTreeItemId * _arg1; | |
7840 | long * _arg2; | |
7841 | PyObject * _argo0 = 0; | |
7842 | PyObject * _argo1 = 0; | |
7843 | long temp; | |
7844 | PyObject * _obj2 = 0; | |
7845 | char *_kwnames[] = { "self","item","INOUT", NULL }; | |
7846 | char _ptemp[128]; | |
7847 | ||
7848 | self = self; | |
7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) | |
7850 | return NULL; | |
7851 | if (_argo0) { | |
7852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
7855 | return NULL; | |
7856 | } | |
7857 | } | |
7858 | if (_argo1) { | |
7859 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7860 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); | |
7862 | return NULL; | |
7863 | } | |
7864 | } | |
7865 | { | |
7866 | temp = (long) PyInt_AsLong(_obj2); | |
7867 | _arg2 = &temp; | |
7868 | } | |
7869 | { | |
7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7871 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
7872 | ||
7873 | wxPyEndAllowThreads(__tstate); | |
7874 | if (PyErr_Occurred()) return NULL; | |
7875 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7876 | _resultobj = Py_BuildValue("s",_ptemp); | |
7877 | { | |
7878 | PyObject *o; | |
7879 | o = PyInt_FromLong((long) (*_arg2)); | |
7880 | _resultobj = t_output_helper(_resultobj, o); | |
7881 | } | |
7882 | return _resultobj; | |
7883 | } | |
7884 | ||
7885 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) | |
7886 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7887 | PyObject * _resultobj; | |
7888 | wxTreeItemId * _result; | |
7889 | wxPyTreeCtrl * _arg0; | |
7890 | wxTreeItemId * _arg1; | |
7891 | PyObject * _argo0 = 0; | |
7892 | PyObject * _argo1 = 0; | |
7893 | char *_kwnames[] = { "self","item", NULL }; | |
7894 | char _ptemp[128]; | |
7895 | ||
7896 | self = self; | |
7897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) | |
7898 | return NULL; | |
7899 | if (_argo0) { | |
7900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
7903 | return NULL; | |
7904 | } | |
7905 | } | |
7906 | if (_argo1) { | |
7907 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7908 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); | |
7910 | return NULL; | |
7911 | } | |
7912 | } | |
7913 | { | |
7914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7915 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
7916 | ||
7917 | wxPyEndAllowThreads(__tstate); | |
7918 | if (PyErr_Occurred()) return NULL; | |
7919 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7920 | _resultobj = Py_BuildValue("s",_ptemp); | |
7921 | return _resultobj; | |
7922 | } | |
7923 | ||
7924 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) | |
7925 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7926 | PyObject * _resultobj; | |
7927 | wxTreeItemId * _result; | |
7928 | wxPyTreeCtrl * _arg0; | |
7929 | wxTreeItemId * _arg1; | |
7930 | PyObject * _argo0 = 0; | |
7931 | PyObject * _argo1 = 0; | |
7932 | char *_kwnames[] = { "self","item", NULL }; | |
7933 | char _ptemp[128]; | |
7934 | ||
7935 | self = self; | |
7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) | |
7937 | return NULL; | |
7938 | if (_argo0) { | |
7939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
7942 | return NULL; | |
7943 | } | |
7944 | } | |
7945 | if (_argo1) { | |
7946 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7947 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); | |
7949 | return NULL; | |
7950 | } | |
7951 | } | |
7952 | { | |
7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7954 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
7955 | ||
7956 | wxPyEndAllowThreads(__tstate); | |
7957 | if (PyErr_Occurred()) return NULL; | |
7958 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7959 | _resultobj = Py_BuildValue("s",_ptemp); | |
7960 | return _resultobj; | |
7961 | } | |
7962 | ||
7963 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) | |
7964 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7965 | PyObject * _resultobj; | |
7966 | wxTreeItemId * _result; | |
7967 | wxPyTreeCtrl * _arg0; | |
7968 | PyObject * _argo0 = 0; | |
7969 | char *_kwnames[] = { "self", NULL }; | |
7970 | char _ptemp[128]; | |
7971 | ||
7972 | self = self; | |
7973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) | |
7974 | return NULL; | |
7975 | if (_argo0) { | |
7976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
7979 | return NULL; | |
7980 | } | |
7981 | } | |
7982 | { | |
7983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7984 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
7985 | ||
7986 | wxPyEndAllowThreads(__tstate); | |
7987 | if (PyErr_Occurred()) return NULL; | |
7988 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7989 | _resultobj = Py_BuildValue("s",_ptemp); | |
7990 | return _resultobj; | |
7991 | } | |
7992 | ||
7993 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) | |
7994 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7995 | PyObject * _resultobj; | |
7996 | wxTreeItemId * _result; | |
7997 | wxPyTreeCtrl * _arg0; | |
7998 | wxTreeItemId * _arg1; | |
7999 | PyObject * _argo0 = 0; | |
8000 | PyObject * _argo1 = 0; | |
8001 | char *_kwnames[] = { "self","item", NULL }; | |
8002 | char _ptemp[128]; | |
8003 | ||
8004 | self = self; | |
8005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) | |
8006 | return NULL; | |
8007 | if (_argo0) { | |
8008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8011 | return NULL; | |
8012 | } | |
8013 | } | |
8014 | if (_argo1) { | |
8015 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8016 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); | |
8018 | return NULL; | |
8019 | } | |
8020 | } | |
8021 | { | |
8022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8023 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
8024 | ||
8025 | wxPyEndAllowThreads(__tstate); | |
8026 | if (PyErr_Occurred()) return NULL; | |
8027 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8028 | _resultobj = Py_BuildValue("s",_ptemp); | |
8029 | return _resultobj; | |
8030 | } | |
8031 | ||
8032 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) | |
8033 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8034 | PyObject * _resultobj; | |
8035 | wxTreeItemId * _result; | |
8036 | wxPyTreeCtrl * _arg0; | |
8037 | wxTreeItemId * _arg1; | |
8038 | PyObject * _argo0 = 0; | |
8039 | PyObject * _argo1 = 0; | |
8040 | char *_kwnames[] = { "self","item", NULL }; | |
8041 | char _ptemp[128]; | |
8042 | ||
8043 | self = self; | |
8044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) | |
8045 | return NULL; | |
8046 | if (_argo0) { | |
8047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8050 | return NULL; | |
8051 | } | |
8052 | } | |
8053 | if (_argo1) { | |
8054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); | |
8057 | return NULL; | |
8058 | } | |
8059 | } | |
8060 | { | |
8061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8062 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
8063 | ||
8064 | wxPyEndAllowThreads(__tstate); | |
8065 | if (PyErr_Occurred()) return NULL; | |
8066 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8067 | _resultobj = Py_BuildValue("s",_ptemp); | |
8068 | return _resultobj; | |
8069 | } | |
8070 | ||
8071 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) | |
8072 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8073 | PyObject * _resultobj; | |
8074 | wxTreeItemId * _result; | |
8075 | wxPyTreeCtrl * _arg0; | |
8076 | wxTreeItemId * _arg1; | |
8077 | PyObject * _argo0 = 0; | |
8078 | PyObject * _argo1 = 0; | |
8079 | char *_kwnames[] = { "self","item", NULL }; | |
8080 | char _ptemp[128]; | |
8081 | ||
8082 | self = self; | |
8083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8084 | return NULL; | |
8085 | if (_argo0) { | |
8086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
8089 | return NULL; | |
8090 | } | |
8091 | } | |
8092 | if (_argo1) { | |
8093 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8094 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8096 | return NULL; | |
8097 | } | |
8098 | } | |
8099 | { | |
8100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8101 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
8102 | ||
8103 | wxPyEndAllowThreads(__tstate); | |
8104 | if (PyErr_Occurred()) return NULL; | |
8105 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8106 | _resultobj = Py_BuildValue("s",_ptemp); | |
8107 | return _resultobj; | |
8108 | } | |
8109 | ||
8110 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8111 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8112 | PyObject * _resultobj; | |
8113 | wxTreeItemId * _result; | |
8114 | wxPyTreeCtrl * _arg0; | |
8115 | wxString * _arg1; | |
8116 | int _arg2 = (int ) -1; | |
8117 | int _arg3 = (int ) -1; | |
8118 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8119 | PyObject * _argo0 = 0; | |
8120 | PyObject * _obj1 = 0; | |
8121 | PyObject * _argo4 = 0; | |
8122 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; | |
8123 | char _ptemp[128]; | |
8124 | ||
8125 | self = self; | |
8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) | |
8127 | return NULL; | |
8128 | if (_argo0) { | |
8129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8132 | return NULL; | |
8133 | } | |
8134 | } | |
8135 | { | |
8136 | _arg1 = wxString_in_helper(_obj1); | |
8137 | if (_arg1 == NULL) | |
8138 | return NULL; | |
8139 | } | |
8140 | if (_argo4) { | |
8141 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8142 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
8143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); | |
8144 | return NULL; | |
8145 | } | |
8146 | } | |
8147 | { | |
8148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8149 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
8150 | ||
8151 | wxPyEndAllowThreads(__tstate); | |
8152 | if (PyErr_Occurred()) return NULL; | |
8153 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8154 | _resultobj = Py_BuildValue("s",_ptemp); | |
8155 | { | |
8156 | if (_obj1) | |
8157 | delete _arg1; | |
8158 | } | |
8159 | return _resultobj; | |
8160 | } | |
8161 | ||
8162 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8163 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8164 | PyObject * _resultobj; | |
8165 | wxTreeItemId * _result; | |
8166 | wxPyTreeCtrl * _arg0; | |
8167 | wxTreeItemId * _arg1; | |
8168 | wxString * _arg2; | |
8169 | int _arg3 = (int ) -1; | |
8170 | int _arg4 = (int ) -1; | |
8171 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8172 | PyObject * _argo0 = 0; | |
8173 | PyObject * _argo1 = 0; | |
8174 | PyObject * _obj2 = 0; | |
8175 | PyObject * _argo5 = 0; | |
8176 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; | |
8177 | char _ptemp[128]; | |
8178 | ||
8179 | self = self; | |
8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) | |
8181 | return NULL; | |
8182 | if (_argo0) { | |
8183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8186 | return NULL; | |
8187 | } | |
8188 | } | |
8189 | if (_argo1) { | |
8190 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8191 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); | |
8193 | return NULL; | |
8194 | } | |
8195 | } | |
8196 | { | |
8197 | _arg2 = wxString_in_helper(_obj2); | |
8198 | if (_arg2 == NULL) | |
8199 | return NULL; | |
8200 | } | |
8201 | if (_argo5) { | |
8202 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8203 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
8204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); | |
8205 | return NULL; | |
8206 | } | |
8207 | } | |
8208 | { | |
8209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8210 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8211 | ||
8212 | wxPyEndAllowThreads(__tstate); | |
8213 | if (PyErr_Occurred()) return NULL; | |
8214 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8215 | _resultobj = Py_BuildValue("s",_ptemp); | |
8216 | { | |
8217 | if (_obj2) | |
8218 | delete _arg2; | |
8219 | } | |
8220 | return _resultobj; | |
8221 | } | |
8222 | ||
8223 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8224 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8225 | PyObject * _resultobj; | |
8226 | wxTreeItemId * _result; | |
8227 | wxPyTreeCtrl * _arg0; | |
8228 | wxTreeItemId * _arg1; | |
8229 | wxTreeItemId * _arg2; | |
8230 | wxString * _arg3; | |
8231 | int _arg4 = (int ) -1; | |
8232 | int _arg5 = (int ) -1; | |
8233 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8234 | PyObject * _argo0 = 0; | |
8235 | PyObject * _argo1 = 0; | |
8236 | PyObject * _argo2 = 0; | |
8237 | PyObject * _obj3 = 0; | |
8238 | PyObject * _argo6 = 0; | |
8239 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; | |
8240 | char _ptemp[128]; | |
8241 | ||
8242 | self = self; | |
8243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8244 | return NULL; | |
8245 | if (_argo0) { | |
8246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8249 | return NULL; | |
8250 | } | |
8251 | } | |
8252 | if (_argo1) { | |
8253 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8254 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); | |
8256 | return NULL; | |
8257 | } | |
8258 | } | |
8259 | if (_argo2) { | |
8260 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8261 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
8262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); | |
8263 | return NULL; | |
8264 | } | |
8265 | } | |
8266 | { | |
8267 | _arg3 = wxString_in_helper(_obj3); | |
8268 | if (_arg3 == NULL) | |
8269 | return NULL; | |
8270 | } | |
8271 | if (_argo6) { | |
8272 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8273 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
8274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); | |
8275 | return NULL; | |
8276 | } | |
8277 | } | |
8278 | { | |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8281 | ||
8282 | wxPyEndAllowThreads(__tstate); | |
8283 | if (PyErr_Occurred()) return NULL; | |
8284 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8285 | _resultobj = Py_BuildValue("s",_ptemp); | |
8286 | { | |
8287 | if (_obj3) | |
8288 | delete _arg3; | |
8289 | } | |
8290 | return _resultobj; | |
8291 | } | |
8292 | ||
8293 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
8294 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8295 | PyObject * _resultobj; | |
8296 | wxTreeItemId * _result; | |
8297 | wxPyTreeCtrl * _arg0; | |
8298 | wxTreeItemId * _arg1; | |
8299 | size_t _arg2; | |
8300 | wxString * _arg3; | |
8301 | int _arg4 = (int ) -1; | |
8302 | int _arg5 = (int ) -1; | |
8303 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8304 | PyObject * _argo0 = 0; | |
8305 | PyObject * _argo1 = 0; | |
8306 | PyObject * _obj3 = 0; | |
8307 | PyObject * _argo6 = 0; | |
8308 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8309 | char _ptemp[128]; | |
8310 | ||
8311 | self = self; | |
8312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8313 | return NULL; | |
8314 | if (_argo0) { | |
8315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8318 | return NULL; | |
8319 | } | |
8320 | } | |
8321 | if (_argo1) { | |
8322 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8323 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8325 | return NULL; | |
8326 | } | |
8327 | } | |
8328 | { | |
8329 | _arg3 = wxString_in_helper(_obj3); | |
8330 | if (_arg3 == NULL) | |
8331 | return NULL; | |
8332 | } | |
8333 | if (_argo6) { | |
8334 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8335 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
8336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeItemData_p."); | |
8337 | return NULL; | |
8338 | } | |
8339 | } | |
8340 | { | |
8341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8342 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8343 | ||
8344 | wxPyEndAllowThreads(__tstate); | |
8345 | if (PyErr_Occurred()) return NULL; | |
8346 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8347 | _resultobj = Py_BuildValue("s",_ptemp); | |
8348 | { | |
8349 | if (_obj3) | |
8350 | delete _arg3; | |
8351 | } | |
8352 | return _resultobj; | |
8353 | } | |
8354 | ||
8355 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8356 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8357 | PyObject * _resultobj; | |
8358 | wxTreeItemId * _result; | |
8359 | wxPyTreeCtrl * _arg0; | |
8360 | wxTreeItemId * _arg1; | |
8361 | wxString * _arg2; | |
8362 | int _arg3 = (int ) -1; | |
8363 | int _arg4 = (int ) -1; | |
8364 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8365 | PyObject * _argo0 = 0; | |
8366 | PyObject * _argo1 = 0; | |
8367 | PyObject * _obj2 = 0; | |
8368 | PyObject * _argo5 = 0; | |
8369 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; | |
8370 | char _ptemp[128]; | |
8371 | ||
8372 | self = self; | |
8373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) | |
8374 | return NULL; | |
8375 | if (_argo0) { | |
8376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
8379 | return NULL; | |
8380 | } | |
8381 | } | |
8382 | if (_argo1) { | |
8383 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8384 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); | |
8386 | return NULL; | |
8387 | } | |
8388 | } | |
8389 | { | |
8390 | _arg2 = wxString_in_helper(_obj2); | |
8391 | if (_arg2 == NULL) | |
8392 | return NULL; | |
8393 | } | |
8394 | if (_argo5) { | |
8395 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8396 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
8397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); | |
8398 | return NULL; | |
8399 | } | |
8400 | } | |
8401 | { | |
8402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8403 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8404 | ||
8405 | wxPyEndAllowThreads(__tstate); | |
8406 | if (PyErr_Occurred()) return NULL; | |
8407 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8408 | _resultobj = Py_BuildValue("s",_ptemp); | |
8409 | { | |
8410 | if (_obj2) | |
8411 | delete _arg2; | |
8412 | } | |
8413 | return _resultobj; | |
8414 | } | |
8415 | ||
8416 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) | |
8417 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8418 | PyObject * _resultobj; | |
8419 | wxPyTreeCtrl * _arg0; | |
8420 | wxTreeItemId * _arg1; | |
8421 | PyObject * _argo0 = 0; | |
8422 | PyObject * _argo1 = 0; | |
8423 | char *_kwnames[] = { "self","item", NULL }; | |
8424 | ||
8425 | self = self; | |
8426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) | |
8427 | return NULL; | |
8428 | if (_argo0) { | |
8429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8432 | return NULL; | |
8433 | } | |
8434 | } | |
8435 | if (_argo1) { | |
8436 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8437 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); | |
8439 | return NULL; | |
8440 | } | |
8441 | } | |
8442 | { | |
8443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8444 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
8445 | ||
8446 | wxPyEndAllowThreads(__tstate); | |
8447 | if (PyErr_Occurred()) return NULL; | |
8448 | } Py_INCREF(Py_None); | |
8449 | _resultobj = Py_None; | |
8450 | return _resultobj; | |
8451 | } | |
8452 | ||
8453 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) | |
8454 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8455 | PyObject * _resultobj; | |
8456 | wxPyTreeCtrl * _arg0; | |
8457 | wxTreeItemId * _arg1; | |
8458 | PyObject * _argo0 = 0; | |
8459 | PyObject * _argo1 = 0; | |
8460 | char *_kwnames[] = { "self","item", NULL }; | |
8461 | ||
8462 | self = self; | |
8463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) | |
8464 | return NULL; | |
8465 | if (_argo0) { | |
8466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
8469 | return NULL; | |
8470 | } | |
8471 | } | |
8472 | if (_argo1) { | |
8473 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8474 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); | |
8476 | return NULL; | |
8477 | } | |
8478 | } | |
8479 | { | |
8480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8481 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
8482 | ||
8483 | wxPyEndAllowThreads(__tstate); | |
8484 | if (PyErr_Occurred()) return NULL; | |
8485 | } Py_INCREF(Py_None); | |
8486 | _resultobj = Py_None; | |
8487 | return _resultobj; | |
8488 | } | |
8489 | ||
8490 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
8491 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8492 | PyObject * _resultobj; | |
8493 | wxPyTreeCtrl * _arg0; | |
8494 | PyObject * _argo0 = 0; | |
8495 | char *_kwnames[] = { "self", NULL }; | |
8496 | ||
8497 | self = self; | |
8498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
8499 | return NULL; | |
8500 | if (_argo0) { | |
8501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
8504 | return NULL; | |
8505 | } | |
8506 | } | |
8507 | { | |
8508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8509 | wxTreeCtrl_DeleteAllItems(_arg0); | |
8510 | ||
8511 | wxPyEndAllowThreads(__tstate); | |
8512 | if (PyErr_Occurred()) return NULL; | |
8513 | } Py_INCREF(Py_None); | |
8514 | _resultobj = Py_None; | |
8515 | return _resultobj; | |
8516 | } | |
8517 | ||
8518 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
8519 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8520 | PyObject * _resultobj; | |
8521 | wxPyTreeCtrl * _arg0; | |
8522 | wxTreeItemId * _arg1; | |
8523 | PyObject * _argo0 = 0; | |
8524 | PyObject * _argo1 = 0; | |
8525 | char *_kwnames[] = { "self","item", NULL }; | |
8526 | ||
8527 | self = self; | |
8528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) | |
8529 | return NULL; | |
8530 | if (_argo0) { | |
8531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
8534 | return NULL; | |
8535 | } | |
8536 | } | |
8537 | if (_argo1) { | |
8538 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8539 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); | |
8541 | return NULL; | |
8542 | } | |
8543 | } | |
8544 | { | |
8545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8546 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
8547 | ||
8548 | wxPyEndAllowThreads(__tstate); | |
8549 | if (PyErr_Occurred()) return NULL; | |
8550 | } Py_INCREF(Py_None); | |
8551 | _resultobj = Py_None; | |
8552 | return _resultobj; | |
8553 | } | |
8554 | ||
8555 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
8556 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8557 | PyObject * _resultobj; | |
8558 | wxPyTreeCtrl * _arg0; | |
8559 | wxTreeItemId * _arg1; | |
8560 | PyObject * _argo0 = 0; | |
8561 | PyObject * _argo1 = 0; | |
8562 | char *_kwnames[] = { "self","item", NULL }; | |
8563 | ||
8564 | self = self; | |
8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) | |
8566 | return NULL; | |
8567 | if (_argo0) { | |
8568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
8571 | return NULL; | |
8572 | } | |
8573 | } | |
8574 | if (_argo1) { | |
8575 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8576 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); | |
8578 | return NULL; | |
8579 | } | |
8580 | } | |
8581 | { | |
8582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8583 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
8584 | ||
8585 | wxPyEndAllowThreads(__tstate); | |
8586 | if (PyErr_Occurred()) return NULL; | |
8587 | } Py_INCREF(Py_None); | |
8588 | _resultobj = Py_None; | |
8589 | return _resultobj; | |
8590 | } | |
8591 | ||
8592 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
8593 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8594 | PyObject * _resultobj; | |
8595 | wxPyTreeCtrl * _arg0; | |
8596 | wxTreeItemId * _arg1; | |
8597 | PyObject * _argo0 = 0; | |
8598 | PyObject * _argo1 = 0; | |
8599 | char *_kwnames[] = { "self","item", NULL }; | |
8600 | ||
8601 | self = self; | |
8602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) | |
8603 | return NULL; | |
8604 | if (_argo0) { | |
8605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
8608 | return NULL; | |
8609 | } | |
8610 | } | |
8611 | if (_argo1) { | |
8612 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8613 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); | |
8615 | return NULL; | |
8616 | } | |
8617 | } | |
8618 | { | |
8619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8620 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
8621 | ||
8622 | wxPyEndAllowThreads(__tstate); | |
8623 | if (PyErr_Occurred()) return NULL; | |
8624 | } Py_INCREF(Py_None); | |
8625 | _resultobj = Py_None; | |
8626 | return _resultobj; | |
8627 | } | |
8628 | ||
8629 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
8630 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8631 | PyObject * _resultobj; | |
8632 | wxPyTreeCtrl * _arg0; | |
8633 | wxTreeItemId * _arg1; | |
8634 | PyObject * _argo0 = 0; | |
8635 | PyObject * _argo1 = 0; | |
8636 | char *_kwnames[] = { "self","item", NULL }; | |
8637 | ||
8638 | self = self; | |
8639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) | |
8640 | return NULL; | |
8641 | if (_argo0) { | |
8642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
8645 | return NULL; | |
8646 | } | |
8647 | } | |
8648 | if (_argo1) { | |
8649 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8650 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); | |
8652 | return NULL; | |
8653 | } | |
8654 | } | |
8655 | { | |
8656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8657 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
8658 | ||
8659 | wxPyEndAllowThreads(__tstate); | |
8660 | if (PyErr_Occurred()) return NULL; | |
8661 | } Py_INCREF(Py_None); | |
8662 | _resultobj = Py_None; | |
8663 | return _resultobj; | |
8664 | } | |
8665 | ||
8666 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
8667 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8668 | PyObject * _resultobj; | |
8669 | wxPyTreeCtrl * _arg0; | |
8670 | PyObject * _argo0 = 0; | |
8671 | char *_kwnames[] = { "self", NULL }; | |
8672 | ||
8673 | self = self; | |
8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) | |
8675 | return NULL; | |
8676 | if (_argo0) { | |
8677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
8680 | return NULL; | |
8681 | } | |
8682 | } | |
8683 | { | |
8684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8685 | wxTreeCtrl_Unselect(_arg0); | |
8686 | ||
8687 | wxPyEndAllowThreads(__tstate); | |
8688 | if (PyErr_Occurred()) return NULL; | |
8689 | } Py_INCREF(Py_None); | |
8690 | _resultobj = Py_None; | |
8691 | return _resultobj; | |
8692 | } | |
8693 | ||
8694 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) | |
8695 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8696 | PyObject * _resultobj; | |
8697 | wxPyTreeCtrl * _arg0; | |
8698 | PyObject * _argo0 = 0; | |
8699 | char *_kwnames[] = { "self", NULL }; | |
8700 | ||
8701 | self = self; | |
8702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) | |
8703 | return NULL; | |
8704 | if (_argo0) { | |
8705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8708 | return NULL; | |
8709 | } | |
8710 | } | |
8711 | { | |
8712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8713 | wxTreeCtrl_UnselectAll(_arg0); | |
8714 | ||
8715 | wxPyEndAllowThreads(__tstate); | |
8716 | if (PyErr_Occurred()) return NULL; | |
8717 | } Py_INCREF(Py_None); | |
8718 | _resultobj = Py_None; | |
8719 | return _resultobj; | |
8720 | } | |
8721 | ||
8722 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) | |
8723 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8724 | PyObject * _resultobj; | |
8725 | wxPyTreeCtrl * _arg0; | |
8726 | wxTreeItemId * _arg1; | |
8727 | PyObject * _argo0 = 0; | |
8728 | PyObject * _argo1 = 0; | |
8729 | char *_kwnames[] = { "self","item", NULL }; | |
8730 | ||
8731 | self = self; | |
8732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) | |
8733 | return NULL; | |
8734 | if (_argo0) { | |
8735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
8738 | return NULL; | |
8739 | } | |
8740 | } | |
8741 | if (_argo1) { | |
8742 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8743 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); | |
8745 | return NULL; | |
8746 | } | |
8747 | } | |
8748 | { | |
8749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8750 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
8751 | ||
8752 | wxPyEndAllowThreads(__tstate); | |
8753 | if (PyErr_Occurred()) return NULL; | |
8754 | } Py_INCREF(Py_None); | |
8755 | _resultobj = Py_None; | |
8756 | return _resultobj; | |
8757 | } | |
8758 | ||
8759 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
8760 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8761 | PyObject * _resultobj; | |
8762 | wxPyTreeCtrl * _arg0; | |
8763 | wxTreeItemId * _arg1; | |
8764 | PyObject * _argo0 = 0; | |
8765 | PyObject * _argo1 = 0; | |
8766 | char *_kwnames[] = { "self","item", NULL }; | |
8767 | ||
8768 | self = self; | |
8769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) | |
8770 | return NULL; | |
8771 | if (_argo0) { | |
8772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
8775 | return NULL; | |
8776 | } | |
8777 | } | |
8778 | if (_argo1) { | |
8779 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8780 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); | |
8782 | return NULL; | |
8783 | } | |
8784 | } | |
8785 | { | |
8786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8787 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
8788 | ||
8789 | wxPyEndAllowThreads(__tstate); | |
8790 | if (PyErr_Occurred()) return NULL; | |
8791 | } Py_INCREF(Py_None); | |
8792 | _resultobj = Py_None; | |
8793 | return _resultobj; | |
8794 | } | |
8795 | ||
8796 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
8797 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8798 | PyObject * _resultobj; | |
8799 | wxPyTreeCtrl * _arg0; | |
8800 | wxTreeItemId * _arg1; | |
8801 | PyObject * _argo0 = 0; | |
8802 | PyObject * _argo1 = 0; | |
8803 | char *_kwnames[] = { "self","item", NULL }; | |
8804 | ||
8805 | self = self; | |
8806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) | |
8807 | return NULL; | |
8808 | if (_argo0) { | |
8809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
8812 | return NULL; | |
8813 | } | |
8814 | } | |
8815 | if (_argo1) { | |
8816 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8817 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); | |
8819 | return NULL; | |
8820 | } | |
8821 | } | |
8822 | { | |
8823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8824 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
8825 | ||
8826 | wxPyEndAllowThreads(__tstate); | |
8827 | if (PyErr_Occurred()) return NULL; | |
8828 | } Py_INCREF(Py_None); | |
8829 | _resultobj = Py_None; | |
8830 | return _resultobj; | |
8831 | } | |
8832 | ||
8833 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
8834 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8835 | PyObject * _resultobj; | |
8836 | wxTextCtrl * _result; | |
8837 | wxPyTreeCtrl * _arg0; | |
8838 | wxTreeItemId * _arg1; | |
8839 | PyObject * _argo0 = 0; | |
8840 | PyObject * _argo1 = 0; | |
8841 | char *_kwnames[] = { "self","item", NULL }; | |
8842 | ||
8843 | self = self; | |
8844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) | |
8845 | return NULL; | |
8846 | if (_argo0) { | |
8847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
8850 | return NULL; | |
8851 | } | |
8852 | } | |
8853 | if (_argo1) { | |
8854 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8855 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); | |
8857 | return NULL; | |
8858 | } | |
8859 | } | |
8860 | { | |
8861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8862 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); | |
8863 | ||
8864 | wxPyEndAllowThreads(__tstate); | |
8865 | if (PyErr_Occurred()) return NULL; | |
8866 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8867 | return _resultobj; | |
8868 | } | |
8869 | ||
8870 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
8871 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8872 | PyObject * _resultobj; | |
8873 | wxTextCtrl * _result; | |
8874 | wxPyTreeCtrl * _arg0; | |
8875 | PyObject * _argo0 = 0; | |
8876 | char *_kwnames[] = { "self", NULL }; | |
8877 | ||
8878 | self = self; | |
8879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) | |
8880 | return NULL; | |
8881 | if (_argo0) { | |
8882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
8885 | return NULL; | |
8886 | } | |
8887 | } | |
8888 | { | |
8889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8890 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
8891 | ||
8892 | wxPyEndAllowThreads(__tstate); | |
8893 | if (PyErr_Occurred()) return NULL; | |
8894 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8895 | return _resultobj; | |
8896 | } | |
8897 | ||
8898 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
8899 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8900 | PyObject * _resultobj; | |
8901 | wxPyTreeCtrl * _arg0; | |
8902 | wxTreeItemId * _arg1; | |
8903 | int _arg2 = (int ) FALSE; | |
8904 | PyObject * _argo0 = 0; | |
8905 | PyObject * _argo1 = 0; | |
8906 | char *_kwnames[] = { "self","item","discardChanges", NULL }; | |
8907 | ||
8908 | self = self; | |
8909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) | |
8910 | return NULL; | |
8911 | if (_argo0) { | |
8912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
8915 | return NULL; | |
8916 | } | |
8917 | } | |
8918 | if (_argo1) { | |
8919 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8920 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); | |
8922 | return NULL; | |
8923 | } | |
8924 | } | |
8925 | { | |
8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8927 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); | |
8928 | ||
8929 | wxPyEndAllowThreads(__tstate); | |
8930 | if (PyErr_Occurred()) return NULL; | |
8931 | } Py_INCREF(Py_None); | |
8932 | _resultobj = Py_None; | |
8933 | return _resultobj; | |
8934 | } | |
8935 | ||
8936 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) | |
8937 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8938 | PyObject * _resultobj; | |
8939 | wxPyTreeCtrl * _arg0; | |
8940 | wxTreeItemId * _arg1; | |
8941 | PyObject * _argo0 = 0; | |
8942 | PyObject * _argo1 = 0; | |
8943 | char *_kwnames[] = { "self","item", NULL }; | |
8944 | ||
8945 | self = self; | |
8946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8947 | return NULL; | |
8948 | if (_argo0) { | |
8949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
8952 | return NULL; | |
8953 | } | |
8954 | } | |
8955 | if (_argo1) { | |
8956 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8957 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8959 | return NULL; | |
8960 | } | |
8961 | } | |
8962 | { | |
8963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8964 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
8965 | ||
8966 | wxPyEndAllowThreads(__tstate); | |
8967 | if (PyErr_Occurred()) return NULL; | |
8968 | } Py_INCREF(Py_None); | |
8969 | _resultobj = Py_None; | |
8970 | return _resultobj; | |
8971 | } | |
8972 | ||
8973 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) | |
8974 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8975 | PyObject * _resultobj; | |
8976 | wxPyTreeCtrl * _arg0; | |
8977 | wxTreeItemId * _arg1; | |
8978 | int _arg2 = (int ) TRUE; | |
8979 | PyObject * _argo0 = 0; | |
8980 | PyObject * _argo1 = 0; | |
8981 | char *_kwnames[] = { "self","item","bold", NULL }; | |
8982 | ||
8983 | self = self; | |
8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) | |
8985 | return NULL; | |
8986 | if (_argo0) { | |
8987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
8990 | return NULL; | |
8991 | } | |
8992 | } | |
8993 | if (_argo1) { | |
8994 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8995 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); | |
8997 | return NULL; | |
8998 | } | |
8999 | } | |
9000 | { | |
9001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9002 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
9003 | ||
9004 | wxPyEndAllowThreads(__tstate); | |
9005 | if (PyErr_Occurred()) return NULL; | |
9006 | } Py_INCREF(Py_None); | |
9007 | _resultobj = Py_None; | |
9008 | return _resultobj; | |
9009 | } | |
9010 | ||
9011 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
9012 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9013 | PyObject * _resultobj; | |
9014 | bool _result; | |
9015 | wxPyTreeCtrl * _arg0; | |
9016 | wxTreeItemId * _arg1; | |
9017 | PyObject * _argo0 = 0; | |
9018 | PyObject * _argo1 = 0; | |
9019 | char *_kwnames[] = { "self","item", NULL }; | |
9020 | ||
9021 | self = self; | |
9022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) | |
9023 | return NULL; | |
9024 | if (_argo0) { | |
9025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
9028 | return NULL; | |
9029 | } | |
9030 | } | |
9031 | if (_argo1) { | |
9032 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9033 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); | |
9035 | return NULL; | |
9036 | } | |
9037 | } | |
9038 | { | |
9039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9040 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
9041 | ||
9042 | wxPyEndAllowThreads(__tstate); | |
9043 | if (PyErr_Occurred()) return NULL; | |
9044 | } _resultobj = Py_BuildValue("i",_result); | |
9045 | return _resultobj; | |
9046 | } | |
9047 | ||
9048 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
9049 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9050 | PyObject * _resultobj; | |
9051 | wxTreeItemId * _result; | |
9052 | wxPyTreeCtrl * _arg0; | |
9053 | wxPoint * _arg1; | |
9054 | int * _arg2; | |
9055 | int temp; | |
9056 | PyObject * _argo0 = 0; | |
9057 | wxPoint temp0; | |
9058 | PyObject * _obj1 = 0; | |
9059 | char *_kwnames[] = { "self","point", NULL }; | |
9060 | char _ptemp[128]; | |
9061 | ||
9062 | self = self; | |
9063 | { | |
9064 | _arg2 = &temp; | |
9065 | } | |
9066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
9067 | return NULL; | |
9068 | if (_argo0) { | |
9069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
9072 | return NULL; | |
9073 | } | |
9074 | } | |
9075 | { | |
9076 | _arg1 = &temp0; | |
9077 | if (! wxPoint_helper(_obj1, &_arg1)) | |
9078 | return NULL; | |
9079 | } | |
9080 | { | |
9081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9082 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); | |
9083 | ||
9084 | wxPyEndAllowThreads(__tstate); | |
9085 | if (PyErr_Occurred()) return NULL; | |
9086 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
9087 | _resultobj = Py_BuildValue("s",_ptemp); | |
9088 | { | |
9089 | PyObject *o; | |
9090 | o = PyInt_FromLong((long) (*_arg2)); | |
9091 | _resultobj = t_output_helper(_resultobj, o); | |
9092 | } | |
9093 | return _resultobj; | |
9094 | } | |
9095 | ||
9096 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) | |
9097 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9098 | PyObject * _resultobj; | |
9099 | wxPyTreeCtrl * _arg0; | |
9100 | wxTreeItemId * _arg1; | |
9101 | wxColour * _arg2; | |
9102 | PyObject * _argo0 = 0; | |
9103 | PyObject * _argo1 = 0; | |
9104 | wxColour temp; | |
9105 | PyObject * _obj2 = 0; | |
9106 | char *_kwnames[] = { "self","item","col", NULL }; | |
9107 | ||
9108 | self = self; | |
9109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9110 | return NULL; | |
9111 | if (_argo0) { | |
9112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
9115 | return NULL; | |
9116 | } | |
9117 | } | |
9118 | if (_argo1) { | |
9119 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9120 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9122 | return NULL; | |
9123 | } | |
9124 | } | |
9125 | { | |
9126 | _arg2 = &temp; | |
9127 | if (! wxColour_helper(_obj2, &_arg2)) | |
9128 | return NULL; | |
9129 | } | |
9130 | { | |
9131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9132 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
9133 | ||
9134 | wxPyEndAllowThreads(__tstate); | |
9135 | if (PyErr_Occurred()) return NULL; | |
9136 | } Py_INCREF(Py_None); | |
9137 | _resultobj = Py_None; | |
9138 | return _resultobj; | |
9139 | } | |
9140 | ||
9141 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9142 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9143 | PyObject * _resultobj; | |
9144 | wxPyTreeCtrl * _arg0; | |
9145 | wxTreeItemId * _arg1; | |
9146 | wxColour * _arg2; | |
9147 | PyObject * _argo0 = 0; | |
9148 | PyObject * _argo1 = 0; | |
9149 | wxColour temp; | |
9150 | PyObject * _obj2 = 0; | |
9151 | char *_kwnames[] = { "self","item","col", NULL }; | |
9152 | ||
9153 | self = self; | |
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) | |
9155 | return NULL; | |
9156 | if (_argo0) { | |
9157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
9160 | return NULL; | |
9161 | } | |
9162 | } | |
9163 | if (_argo1) { | |
9164 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9165 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9167 | return NULL; | |
9168 | } | |
9169 | } | |
9170 | { | |
9171 | _arg2 = &temp; | |
9172 | if (! wxColour_helper(_obj2, &_arg2)) | |
9173 | return NULL; | |
9174 | } | |
9175 | { | |
9176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9177 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
9178 | ||
9179 | wxPyEndAllowThreads(__tstate); | |
9180 | if (PyErr_Occurred()) return NULL; | |
9181 | } Py_INCREF(Py_None); | |
9182 | _resultobj = Py_None; | |
9183 | return _resultobj; | |
9184 | } | |
9185 | ||
9186 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9187 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9188 | PyObject * _resultobj; | |
9189 | wxPyTreeCtrl * _arg0; | |
9190 | wxTreeItemId * _arg1; | |
9191 | wxFont * _arg2; | |
9192 | PyObject * _argo0 = 0; | |
9193 | PyObject * _argo1 = 0; | |
9194 | PyObject * _argo2 = 0; | |
9195 | char *_kwnames[] = { "self","item","font", NULL }; | |
9196 | ||
9197 | self = self; | |
9198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9199 | return NULL; | |
9200 | if (_argo0) { | |
9201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
9204 | return NULL; | |
9205 | } | |
9206 | } | |
9207 | if (_argo1) { | |
9208 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9209 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9211 | return NULL; | |
9212 | } | |
9213 | } | |
9214 | if (_argo2) { | |
9215 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9216 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9218 | return NULL; | |
9219 | } | |
9220 | } | |
9221 | { | |
9222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9223 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
9224 | ||
9225 | wxPyEndAllowThreads(__tstate); | |
9226 | if (PyErr_Occurred()) return NULL; | |
9227 | } Py_INCREF(Py_None); | |
9228 | _resultobj = Py_None; | |
9229 | return _resultobj; | |
9230 | } | |
9231 | ||
9232 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) | |
9233 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9234 | PyObject * _resultobj; | |
9235 | wxPyTreeCtrl * _arg0; | |
9236 | wxTreeItemId * _arg1; | |
9237 | int _arg2 = (int ) TRUE; | |
9238 | PyObject * _argo0 = 0; | |
9239 | PyObject * _argo1 = 0; | |
9240 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
9241 | ||
9242 | self = self; | |
9243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9244 | return NULL; | |
9245 | if (_argo0) { | |
9246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
9249 | return NULL; | |
9250 | } | |
9251 | } | |
9252 | if (_argo1) { | |
9253 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9254 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
9256 | return NULL; | |
9257 | } | |
9258 | } | |
9259 | { | |
9260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9261 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); | |
9262 | ||
9263 | wxPyEndAllowThreads(__tstate); | |
9264 | if (PyErr_Occurred()) return NULL; | |
9265 | } Py_INCREF(Py_None); | |
9266 | _resultobj = Py_None; | |
9267 | return _resultobj; | |
9268 | } | |
9269 | ||
9270 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { | |
9271 | wxRect rect; | |
9272 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
9273 | wxPyBeginBlockThreads(); | |
9274 | wxRect* r = new wxRect(rect); | |
9275 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
9276 | wxPyEndBlockThreads(); | |
9277 | return val; | |
9278 | } | |
9279 | else { | |
9280 | Py_INCREF(Py_None); | |
9281 | return Py_None; | |
9282 | } | |
9283 | } | |
9284 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9285 | PyObject * _resultobj; | |
9286 | PyObject * _result; | |
9287 | wxPyTreeCtrl * _arg0; | |
9288 | wxTreeItemId * _arg1; | |
9289 | int _arg2 = (int ) FALSE; | |
9290 | PyObject * _argo0 = 0; | |
9291 | PyObject * _argo1 = 0; | |
9292 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
9293 | ||
9294 | self = self; | |
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
9296 | return NULL; | |
9297 | if (_argo0) { | |
9298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
9300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
9301 | return NULL; | |
9302 | } | |
9303 | } | |
9304 | if (_argo1) { | |
9305 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9306 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
9308 | return NULL; | |
9309 | } | |
9310 | } | |
9311 | { | |
9312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9313 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); | |
9314 | ||
9315 | wxPyEndAllowThreads(__tstate); | |
9316 | if (PyErr_Occurred()) return NULL; | |
9317 | }{ | |
9318 | _resultobj = _result; | |
9319 | } | |
9320 | return _resultobj; | |
9321 | } | |
9322 | ||
9323 | static void *SwigwxDirItemDataTowxObject(void *ptr) { | |
9324 | wxDirItemData *src; | |
9325 | wxObject *dest; | |
9326 | src = (wxDirItemData *) ptr; | |
9327 | dest = (wxObject *) src; | |
9328 | return (void *) dest; | |
9329 | } | |
9330 | ||
9331 | #define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2)) | |
9332 | static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9333 | PyObject * _resultobj; | |
9334 | wxDirItemData * _result; | |
9335 | wxString * _arg0; | |
9336 | wxString * _arg1; | |
9337 | bool _arg2; | |
9338 | PyObject * _obj0 = 0; | |
9339 | PyObject * _obj1 = 0; | |
9340 | int tempbool2; | |
9341 | char *_kwnames[] = { "path","name","isDir", NULL }; | |
9342 | char _ptemp[128]; | |
9343 | ||
9344 | self = self; | |
9345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2)) | |
9346 | return NULL; | |
9347 | { | |
9348 | _arg0 = wxString_in_helper(_obj0); | |
9349 | if (_arg0 == NULL) | |
9350 | return NULL; | |
9351 | } | |
9352 | { | |
9353 | _arg1 = wxString_in_helper(_obj1); | |
9354 | if (_arg1 == NULL) | |
9355 | return NULL; | |
9356 | } | |
9357 | _arg2 = (bool ) tempbool2; | |
9358 | { | |
9359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9360 | _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2); | |
9361 | ||
9362 | wxPyEndAllowThreads(__tstate); | |
9363 | if (PyErr_Occurred()) return NULL; | |
9364 | } if (_result) { | |
9365 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p"); | |
9366 | _resultobj = Py_BuildValue("s",_ptemp); | |
9367 | } else { | |
9368 | Py_INCREF(Py_None); | |
9369 | _resultobj = Py_None; | |
9370 | } | |
9371 | { | |
9372 | if (_obj0) | |
9373 | delete _arg0; | |
9374 | } | |
9375 | { | |
9376 | if (_obj1) | |
9377 | delete _arg1; | |
9378 | } | |
9379 | return _resultobj; | |
9380 | } | |
9381 | ||
9382 | #define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0)) | |
9383 | static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9384 | PyObject * _resultobj; | |
9385 | wxDirItemData * _arg0; | |
9386 | wxString * _arg1; | |
9387 | PyObject * _argo0 = 0; | |
9388 | PyObject * _obj1 = 0; | |
9389 | char *_kwnames[] = { "self","path", NULL }; | |
9390 | ||
9391 | self = self; | |
9392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1)) | |
9393 | return NULL; | |
9394 | if (_argo0) { | |
9395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p."); | |
9398 | return NULL; | |
9399 | } | |
9400 | } | |
9401 | { | |
9402 | _arg1 = wxString_in_helper(_obj1); | |
9403 | if (_arg1 == NULL) | |
9404 | return NULL; | |
9405 | } | |
9406 | { | |
9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9408 | wxDirItemData_SetNewDirName(_arg0,*_arg1); | |
9409 | ||
9410 | wxPyEndAllowThreads(__tstate); | |
9411 | if (PyErr_Occurred()) return NULL; | |
9412 | } Py_INCREF(Py_None); | |
9413 | _resultobj = Py_None; | |
9414 | { | |
9415 | if (_obj1) | |
9416 | delete _arg1; | |
9417 | } | |
9418 | return _resultobj; | |
9419 | } | |
9420 | ||
9421 | #define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval) | |
9422 | static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9423 | PyObject * _resultobj; | |
9424 | wxString * _result; | |
9425 | wxDirItemData * _arg0; | |
9426 | wxString * _arg1; | |
9427 | PyObject * _argo0 = 0; | |
9428 | PyObject * _obj1 = 0; | |
9429 | char *_kwnames[] = { "self","m_path", NULL }; | |
9430 | ||
9431 | self = self; | |
9432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1)) | |
9433 | return NULL; | |
9434 | if (_argo0) { | |
9435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p."); | |
9438 | return NULL; | |
9439 | } | |
9440 | } | |
9441 | { | |
9442 | _arg1 = wxString_in_helper(_obj1); | |
9443 | if (_arg1 == NULL) | |
9444 | return NULL; | |
9445 | } | |
9446 | { | |
9447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9448 | _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1); | |
9449 | ||
9450 | wxPyEndAllowThreads(__tstate); | |
9451 | if (PyErr_Occurred()) return NULL; | |
9452 | }{ | |
9453 | #if wxUSE_UNICODE | |
9454 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9455 | #else | |
9456 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9457 | #endif | |
9458 | } | |
9459 | { | |
9460 | if (_obj1) | |
9461 | delete _arg1; | |
9462 | } | |
9463 | return _resultobj; | |
9464 | } | |
9465 | ||
9466 | #define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path) | |
9467 | static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9468 | PyObject * _resultobj; | |
9469 | wxString * _result; | |
9470 | wxDirItemData * _arg0; | |
9471 | PyObject * _argo0 = 0; | |
9472 | char *_kwnames[] = { "self", NULL }; | |
9473 | ||
9474 | self = self; | |
9475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0)) | |
9476 | return NULL; | |
9477 | if (_argo0) { | |
9478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p."); | |
9481 | return NULL; | |
9482 | } | |
9483 | } | |
9484 | { | |
9485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9486 | _result = (wxString *)wxDirItemData_m_path_get(_arg0); | |
9487 | ||
9488 | wxPyEndAllowThreads(__tstate); | |
9489 | if (PyErr_Occurred()) return NULL; | |
9490 | }{ | |
9491 | #if wxUSE_UNICODE | |
9492 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9493 | #else | |
9494 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9495 | #endif | |
9496 | } | |
9497 | return _resultobj; | |
9498 | } | |
9499 | ||
9500 | #define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval) | |
9501 | static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9502 | PyObject * _resultobj; | |
9503 | wxString * _result; | |
9504 | wxDirItemData * _arg0; | |
9505 | wxString * _arg1; | |
9506 | PyObject * _argo0 = 0; | |
9507 | PyObject * _obj1 = 0; | |
9508 | char *_kwnames[] = { "self","m_name", NULL }; | |
9509 | ||
9510 | self = self; | |
9511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1)) | |
9512 | return NULL; | |
9513 | if (_argo0) { | |
9514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p."); | |
9517 | return NULL; | |
9518 | } | |
9519 | } | |
9520 | { | |
9521 | _arg1 = wxString_in_helper(_obj1); | |
9522 | if (_arg1 == NULL) | |
9523 | return NULL; | |
9524 | } | |
9525 | { | |
9526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9527 | _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1); | |
9528 | ||
9529 | wxPyEndAllowThreads(__tstate); | |
9530 | if (PyErr_Occurred()) return NULL; | |
9531 | }{ | |
9532 | #if wxUSE_UNICODE | |
9533 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9534 | #else | |
9535 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9536 | #endif | |
9537 | } | |
9538 | { | |
9539 | if (_obj1) | |
9540 | delete _arg1; | |
9541 | } | |
9542 | return _resultobj; | |
9543 | } | |
9544 | ||
9545 | #define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name) | |
9546 | static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9547 | PyObject * _resultobj; | |
9548 | wxString * _result; | |
9549 | wxDirItemData * _arg0; | |
9550 | PyObject * _argo0 = 0; | |
9551 | char *_kwnames[] = { "self", NULL }; | |
9552 | ||
9553 | self = self; | |
9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0)) | |
9555 | return NULL; | |
9556 | if (_argo0) { | |
9557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p."); | |
9560 | return NULL; | |
9561 | } | |
9562 | } | |
9563 | { | |
9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9565 | _result = (wxString *)wxDirItemData_m_name_get(_arg0); | |
9566 | ||
9567 | wxPyEndAllowThreads(__tstate); | |
9568 | if (PyErr_Occurred()) return NULL; | |
9569 | }{ | |
9570 | #if wxUSE_UNICODE | |
9571 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9572 | #else | |
9573 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9574 | #endif | |
9575 | } | |
9576 | return _resultobj; | |
9577 | } | |
9578 | ||
9579 | #define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval) | |
9580 | static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9581 | PyObject * _resultobj; | |
9582 | bool _result; | |
9583 | wxDirItemData * _arg0; | |
9584 | bool _arg1; | |
9585 | PyObject * _argo0 = 0; | |
9586 | int tempbool1; | |
9587 | char *_kwnames[] = { "self","m_isHidden", NULL }; | |
9588 | ||
9589 | self = self; | |
9590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1)) | |
9591 | return NULL; | |
9592 | if (_argo0) { | |
9593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p."); | |
9596 | return NULL; | |
9597 | } | |
9598 | } | |
9599 | _arg1 = (bool ) tempbool1; | |
9600 | { | |
9601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9602 | _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1); | |
9603 | ||
9604 | wxPyEndAllowThreads(__tstate); | |
9605 | if (PyErr_Occurred()) return NULL; | |
9606 | } _resultobj = Py_BuildValue("i",_result); | |
9607 | return _resultobj; | |
9608 | } | |
9609 | ||
9610 | #define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden) | |
9611 | static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9612 | PyObject * _resultobj; | |
9613 | bool _result; | |
9614 | wxDirItemData * _arg0; | |
9615 | PyObject * _argo0 = 0; | |
9616 | char *_kwnames[] = { "self", NULL }; | |
9617 | ||
9618 | self = self; | |
9619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0)) | |
9620 | return NULL; | |
9621 | if (_argo0) { | |
9622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p."); | |
9625 | return NULL; | |
9626 | } | |
9627 | } | |
9628 | { | |
9629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9630 | _result = (bool )wxDirItemData_m_isHidden_get(_arg0); | |
9631 | ||
9632 | wxPyEndAllowThreads(__tstate); | |
9633 | if (PyErr_Occurred()) return NULL; | |
9634 | } _resultobj = Py_BuildValue("i",_result); | |
9635 | return _resultobj; | |
9636 | } | |
9637 | ||
9638 | #define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval) | |
9639 | static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9640 | PyObject * _resultobj; | |
9641 | bool _result; | |
9642 | wxDirItemData * _arg0; | |
9643 | bool _arg1; | |
9644 | PyObject * _argo0 = 0; | |
9645 | int tempbool1; | |
9646 | char *_kwnames[] = { "self","m_isExpanded", NULL }; | |
9647 | ||
9648 | self = self; | |
9649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1)) | |
9650 | return NULL; | |
9651 | if (_argo0) { | |
9652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p."); | |
9655 | return NULL; | |
9656 | } | |
9657 | } | |
9658 | _arg1 = (bool ) tempbool1; | |
9659 | { | |
9660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9661 | _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1); | |
9662 | ||
9663 | wxPyEndAllowThreads(__tstate); | |
9664 | if (PyErr_Occurred()) return NULL; | |
9665 | } _resultobj = Py_BuildValue("i",_result); | |
9666 | return _resultobj; | |
9667 | } | |
9668 | ||
9669 | #define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded) | |
9670 | static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9671 | PyObject * _resultobj; | |
9672 | bool _result; | |
9673 | wxDirItemData * _arg0; | |
9674 | PyObject * _argo0 = 0; | |
9675 | char *_kwnames[] = { "self", NULL }; | |
9676 | ||
9677 | self = self; | |
9678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0)) | |
9679 | return NULL; | |
9680 | if (_argo0) { | |
9681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p."); | |
9684 | return NULL; | |
9685 | } | |
9686 | } | |
9687 | { | |
9688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9689 | _result = (bool )wxDirItemData_m_isExpanded_get(_arg0); | |
9690 | ||
9691 | wxPyEndAllowThreads(__tstate); | |
9692 | if (PyErr_Occurred()) return NULL; | |
9693 | } _resultobj = Py_BuildValue("i",_result); | |
9694 | return _resultobj; | |
9695 | } | |
9696 | ||
9697 | #define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval) | |
9698 | static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9699 | PyObject * _resultobj; | |
9700 | bool _result; | |
9701 | wxDirItemData * _arg0; | |
9702 | bool _arg1; | |
9703 | PyObject * _argo0 = 0; | |
9704 | int tempbool1; | |
9705 | char *_kwnames[] = { "self","m_isDir", NULL }; | |
9706 | ||
9707 | self = self; | |
9708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1)) | |
9709 | return NULL; | |
9710 | if (_argo0) { | |
9711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p."); | |
9714 | return NULL; | |
9715 | } | |
9716 | } | |
9717 | _arg1 = (bool ) tempbool1; | |
9718 | { | |
9719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9720 | _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1); | |
9721 | ||
9722 | wxPyEndAllowThreads(__tstate); | |
9723 | if (PyErr_Occurred()) return NULL; | |
9724 | } _resultobj = Py_BuildValue("i",_result); | |
9725 | return _resultobj; | |
9726 | } | |
9727 | ||
9728 | #define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir) | |
9729 | static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9730 | PyObject * _resultobj; | |
9731 | bool _result; | |
9732 | wxDirItemData * _arg0; | |
9733 | PyObject * _argo0 = 0; | |
9734 | char *_kwnames[] = { "self", NULL }; | |
9735 | ||
9736 | self = self; | |
9737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0)) | |
9738 | return NULL; | |
9739 | if (_argo0) { | |
9740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) { | |
9742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p."); | |
9743 | return NULL; | |
9744 | } | |
9745 | } | |
9746 | { | |
9747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9748 | _result = (bool )wxDirItemData_m_isDir_get(_arg0); | |
9749 | ||
9750 | wxPyEndAllowThreads(__tstate); | |
9751 | if (PyErr_Occurred()) return NULL; | |
9752 | } _resultobj = Py_BuildValue("i",_result); | |
9753 | return _resultobj; | |
9754 | } | |
9755 | ||
9756 | static void *SwigwxGenericDirCtrlTowxControl(void *ptr) { | |
9757 | wxGenericDirCtrl *src; | |
9758 | wxControl *dest; | |
9759 | src = (wxGenericDirCtrl *) ptr; | |
9760 | dest = (wxControl *) src; | |
9761 | return (void *) dest; | |
9762 | } | |
9763 | ||
9764 | static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) { | |
9765 | wxGenericDirCtrl *src; | |
9766 | wxWindow *dest; | |
9767 | src = (wxGenericDirCtrl *) ptr; | |
9768 | dest = (wxWindow *) src; | |
9769 | return (void *) dest; | |
9770 | } | |
9771 | ||
9772 | static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) { | |
9773 | wxGenericDirCtrl *src; | |
9774 | wxEvtHandler *dest; | |
9775 | src = (wxGenericDirCtrl *) ptr; | |
9776 | dest = (wxEvtHandler *) src; | |
9777 | return (void *) dest; | |
9778 | } | |
9779 | ||
9780 | static void *SwigwxGenericDirCtrlTowxObject(void *ptr) { | |
9781 | wxGenericDirCtrl *src; | |
9782 | wxObject *dest; | |
9783 | src = (wxGenericDirCtrl *) ptr; | |
9784 | dest = (wxObject *) src; | |
9785 | return (void *) dest; | |
9786 | } | |
9787 | ||
9788 | #define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9789 | static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9790 | PyObject * _resultobj; | |
9791 | wxGenericDirCtrl * _result; | |
9792 | wxWindow * _arg0; | |
9793 | wxWindowID _arg1 = (wxWindowID ) -1; | |
9794 | wxString * _arg2 = (wxString *) &wxPyDirDialogDefaultFolderStr; | |
9795 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
9796 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
9797 | long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
9798 | wxString * _arg6 = (wxString *) &wxPyEmptyString; | |
9799 | int _arg7 = (int ) 0; | |
9800 | wxString * _arg8 = (wxString *) &wxPy_TreeCtrlNameStr; | |
9801 | PyObject * _argo0 = 0; | |
9802 | PyObject * _obj2 = 0; | |
9803 | wxPoint temp; | |
9804 | PyObject * _obj3 = 0; | |
9805 | wxSize temp0; | |
9806 | PyObject * _obj4 = 0; | |
9807 | PyObject * _obj6 = 0; | |
9808 | PyObject * _obj8 = 0; | |
9809 | char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; | |
9810 | char _ptemp[128]; | |
9811 | ||
9812 | self = self; | |
9813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOOlOiO:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6,&_arg7,&_obj8)) | |
9814 | return NULL; | |
9815 | if (_argo0) { | |
9816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p."); | |
9819 | return NULL; | |
9820 | } | |
9821 | } | |
9822 | if (_obj2) | |
9823 | { | |
9824 | _arg2 = wxString_in_helper(_obj2); | |
9825 | if (_arg2 == NULL) | |
9826 | return NULL; | |
9827 | } | |
9828 | if (_obj3) | |
9829 | { | |
9830 | _arg3 = &temp; | |
9831 | if (! wxPoint_helper(_obj3, &_arg3)) | |
9832 | return NULL; | |
9833 | } | |
9834 | if (_obj4) | |
9835 | { | |
9836 | _arg4 = &temp0; | |
9837 | if (! wxSize_helper(_obj4, &_arg4)) | |
9838 | return NULL; | |
9839 | } | |
9840 | if (_obj6) | |
9841 | { | |
9842 | _arg6 = wxString_in_helper(_obj6); | |
9843 | if (_arg6 == NULL) | |
9844 | return NULL; | |
9845 | } | |
9846 | if (_obj8) | |
9847 | { | |
9848 | _arg8 = wxString_in_helper(_obj8); | |
9849 | if (_arg8 == NULL) | |
9850 | return NULL; | |
9851 | } | |
9852 | { | |
9853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9854 | _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7,*_arg8); | |
9855 | ||
9856 | wxPyEndAllowThreads(__tstate); | |
9857 | if (PyErr_Occurred()) return NULL; | |
9858 | } if (_result) { | |
9859 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9860 | _resultobj = Py_BuildValue("s",_ptemp); | |
9861 | } else { | |
9862 | Py_INCREF(Py_None); | |
9863 | _resultobj = Py_None; | |
9864 | } | |
9865 | { | |
9866 | if (_obj2) | |
9867 | delete _arg2; | |
9868 | } | |
9869 | { | |
9870 | if (_obj6) | |
9871 | delete _arg6; | |
9872 | } | |
9873 | { | |
9874 | if (_obj8) | |
9875 | delete _arg8; | |
9876 | } | |
9877 | return _resultobj; | |
9878 | } | |
9879 | ||
9880 | #define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl()) | |
9881 | static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9882 | PyObject * _resultobj; | |
9883 | wxGenericDirCtrl * _result; | |
9884 | char *_kwnames[] = { NULL }; | |
9885 | char _ptemp[128]; | |
9886 | ||
9887 | self = self; | |
9888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames)) | |
9889 | return NULL; | |
9890 | { | |
9891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9892 | _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl(); | |
9893 | ||
9894 | wxPyEndAllowThreads(__tstate); | |
9895 | if (PyErr_Occurred()) return NULL; | |
9896 | } if (_result) { | |
9897 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p"); | |
9898 | _resultobj = Py_BuildValue("s",_ptemp); | |
9899 | } else { | |
9900 | Py_INCREF(Py_None); | |
9901 | _resultobj = Py_None; | |
9902 | } | |
9903 | return _resultobj; | |
9904 | } | |
9905 | ||
9906 | #define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
9907 | static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9908 | PyObject * _resultobj; | |
9909 | bool _result; | |
9910 | wxGenericDirCtrl * _arg0; | |
9911 | wxWindow * _arg1; | |
9912 | wxWindowID _arg2 = (wxWindowID ) -1; | |
9913 | wxString * _arg3 = (wxString *) &wxPyDirDialogDefaultFolderStr; | |
9914 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
9915 | wxSize * _arg5 = (wxSize *) &wxDefaultSize; | |
9916 | long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER; | |
9917 | wxString * _arg7 = (wxString *) &wxPyEmptyString; | |
9918 | int _arg8 = (int ) 0; | |
9919 | wxString * _arg9 = (wxString *) &wxPy_TreeCtrlNameStr; | |
9920 | PyObject * _argo0 = 0; | |
9921 | PyObject * _argo1 = 0; | |
9922 | PyObject * _obj3 = 0; | |
9923 | wxPoint temp; | |
9924 | PyObject * _obj4 = 0; | |
9925 | wxSize temp0; | |
9926 | PyObject * _obj5 = 0; | |
9927 | PyObject * _obj7 = 0; | |
9928 | PyObject * _obj9 = 0; | |
9929 | char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL }; | |
9930 | ||
9931 | self = self; | |
9932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOOlOiO:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_obj7,&_arg8,&_obj9)) | |
9933 | return NULL; | |
9934 | if (_argo0) { | |
9935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
9937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
9938 | return NULL; | |
9939 | } | |
9940 | } | |
9941 | if (_argo1) { | |
9942 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9943 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p."); | |
9945 | return NULL; | |
9946 | } | |
9947 | } | |
9948 | if (_obj3) | |
9949 | { | |
9950 | _arg3 = wxString_in_helper(_obj3); | |
9951 | if (_arg3 == NULL) | |
9952 | return NULL; | |
9953 | } | |
9954 | if (_obj4) | |
9955 | { | |
9956 | _arg4 = &temp; | |
9957 | if (! wxPoint_helper(_obj4, &_arg4)) | |
9958 | return NULL; | |
9959 | } | |
9960 | if (_obj5) | |
9961 | { | |
9962 | _arg5 = &temp0; | |
9963 | if (! wxSize_helper(_obj5, &_arg5)) | |
9964 | return NULL; | |
9965 | } | |
9966 | if (_obj7) | |
9967 | { | |
9968 | _arg7 = wxString_in_helper(_obj7); | |
9969 | if (_arg7 == NULL) | |
9970 | return NULL; | |
9971 | } | |
9972 | if (_obj9) | |
9973 | { | |
9974 | _arg9 = wxString_in_helper(_obj9); | |
9975 | if (_arg9 == NULL) | |
9976 | return NULL; | |
9977 | } | |
9978 | { | |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9980 | _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,_arg8,*_arg9); | |
9981 | ||
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) return NULL; | |
9984 | } _resultobj = Py_BuildValue("i",_result); | |
9985 | { | |
9986 | if (_obj3) | |
9987 | delete _arg3; | |
9988 | } | |
9989 | { | |
9990 | if (_obj7) | |
9991 | delete _arg7; | |
9992 | } | |
9993 | { | |
9994 | if (_obj9) | |
9995 | delete _arg9; | |
9996 | } | |
9997 | return _resultobj; | |
9998 | } | |
9999 | ||
10000 | #define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0)) | |
10001 | static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10002 | PyObject * _resultobj; | |
10003 | bool _result; | |
10004 | wxGenericDirCtrl * _arg0; | |
10005 | wxString * _arg1; | |
10006 | PyObject * _argo0 = 0; | |
10007 | PyObject * _obj1 = 0; | |
10008 | char *_kwnames[] = { "self","path", NULL }; | |
10009 | ||
10010 | self = self; | |
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1)) | |
10012 | return NULL; | |
10013 | if (_argo0) { | |
10014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p."); | |
10017 | return NULL; | |
10018 | } | |
10019 | } | |
10020 | { | |
10021 | _arg1 = wxString_in_helper(_obj1); | |
10022 | if (_arg1 == NULL) | |
10023 | return NULL; | |
10024 | } | |
10025 | { | |
10026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10027 | _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1); | |
10028 | ||
10029 | wxPyEndAllowThreads(__tstate); | |
10030 | if (PyErr_Occurred()) return NULL; | |
10031 | } _resultobj = Py_BuildValue("i",_result); | |
10032 | { | |
10033 | if (_obj1) | |
10034 | delete _arg1; | |
10035 | } | |
10036 | return _resultobj; | |
10037 | } | |
10038 | ||
10039 | #define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath()) | |
10040 | static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10041 | PyObject * _resultobj; | |
10042 | wxString * _result; | |
10043 | wxGenericDirCtrl * _arg0; | |
10044 | PyObject * _argo0 = 0; | |
10045 | char *_kwnames[] = { "self", NULL }; | |
10046 | ||
10047 | self = self; | |
10048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0)) | |
10049 | return NULL; | |
10050 | if (_argo0) { | |
10051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10054 | return NULL; | |
10055 | } | |
10056 | } | |
10057 | { | |
10058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10059 | _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0)); | |
10060 | ||
10061 | wxPyEndAllowThreads(__tstate); | |
10062 | if (PyErr_Occurred()) return NULL; | |
10063 | }{ | |
10064 | #if wxUSE_UNICODE | |
10065 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10066 | #else | |
10067 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10068 | #endif | |
10069 | } | |
10070 | { | |
10071 | delete _result; | |
10072 | } | |
10073 | return _resultobj; | |
10074 | } | |
10075 | ||
10076 | #define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0)) | |
10077 | static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10078 | PyObject * _resultobj; | |
10079 | wxGenericDirCtrl * _arg0; | |
10080 | wxString * _arg1; | |
10081 | PyObject * _argo0 = 0; | |
10082 | PyObject * _obj1 = 0; | |
10083 | char *_kwnames[] = { "self","path", NULL }; | |
10084 | ||
10085 | self = self; | |
10086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1)) | |
10087 | return NULL; | |
10088 | if (_argo0) { | |
10089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p."); | |
10092 | return NULL; | |
10093 | } | |
10094 | } | |
10095 | { | |
10096 | _arg1 = wxString_in_helper(_obj1); | |
10097 | if (_arg1 == NULL) | |
10098 | return NULL; | |
10099 | } | |
10100 | { | |
10101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10102 | wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1); | |
10103 | ||
10104 | wxPyEndAllowThreads(__tstate); | |
10105 | if (PyErr_Occurred()) return NULL; | |
10106 | } Py_INCREF(Py_None); | |
10107 | _resultobj = Py_None; | |
10108 | { | |
10109 | if (_obj1) | |
10110 | delete _arg1; | |
10111 | } | |
10112 | return _resultobj; | |
10113 | } | |
10114 | ||
10115 | #define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath()) | |
10116 | static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10117 | PyObject * _resultobj; | |
10118 | wxString * _result; | |
10119 | wxGenericDirCtrl * _arg0; | |
10120 | PyObject * _argo0 = 0; | |
10121 | char *_kwnames[] = { "self", NULL }; | |
10122 | ||
10123 | self = self; | |
10124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0)) | |
10125 | return NULL; | |
10126 | if (_argo0) { | |
10127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p."); | |
10130 | return NULL; | |
10131 | } | |
10132 | } | |
10133 | { | |
10134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10135 | _result = new wxString (wxGenericDirCtrl_GetPath(_arg0)); | |
10136 | ||
10137 | wxPyEndAllowThreads(__tstate); | |
10138 | if (PyErr_Occurred()) return NULL; | |
10139 | }{ | |
10140 | #if wxUSE_UNICODE | |
10141 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10142 | #else | |
10143 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10144 | #endif | |
10145 | } | |
10146 | { | |
10147 | delete _result; | |
10148 | } | |
10149 | return _resultobj; | |
10150 | } | |
10151 | ||
10152 | #define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath()) | |
10153 | static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10154 | PyObject * _resultobj; | |
10155 | wxString * _result; | |
10156 | wxGenericDirCtrl * _arg0; | |
10157 | PyObject * _argo0 = 0; | |
10158 | char *_kwnames[] = { "self", NULL }; | |
10159 | ||
10160 | self = self; | |
10161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0)) | |
10162 | return NULL; | |
10163 | if (_argo0) { | |
10164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p."); | |
10167 | return NULL; | |
10168 | } | |
10169 | } | |
10170 | { | |
10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10172 | _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0)); | |
10173 | ||
10174 | wxPyEndAllowThreads(__tstate); | |
10175 | if (PyErr_Occurred()) return NULL; | |
10176 | }{ | |
10177 | #if wxUSE_UNICODE | |
10178 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10179 | #else | |
10180 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10181 | #endif | |
10182 | } | |
10183 | { | |
10184 | delete _result; | |
10185 | } | |
10186 | return _resultobj; | |
10187 | } | |
10188 | ||
10189 | #define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
10190 | static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10191 | PyObject * _resultobj; | |
10192 | wxGenericDirCtrl * _arg0; | |
10193 | wxString * _arg1; | |
10194 | PyObject * _argo0 = 0; | |
10195 | PyObject * _obj1 = 0; | |
10196 | char *_kwnames[] = { "self","path", NULL }; | |
10197 | ||
10198 | self = self; | |
10199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1)) | |
10200 | return NULL; | |
10201 | if (_argo0) { | |
10202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p."); | |
10205 | return NULL; | |
10206 | } | |
10207 | } | |
10208 | { | |
10209 | _arg1 = wxString_in_helper(_obj1); | |
10210 | if (_arg1 == NULL) | |
10211 | return NULL; | |
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 | #if wxUSE_UNICODE | |
10313 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10314 | #else | |
10315 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10316 | #endif | |
10317 | } | |
10318 | { | |
10319 | delete _result; | |
10320 | } | |
10321 | return _resultobj; | |
10322 | } | |
10323 | ||
10324 | #define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0)) | |
10325 | static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10326 | PyObject * _resultobj; | |
10327 | wxGenericDirCtrl * _arg0; | |
10328 | wxString * _arg1; | |
10329 | PyObject * _argo0 = 0; | |
10330 | PyObject * _obj1 = 0; | |
10331 | char *_kwnames[] = { "self","filter", NULL }; | |
10332 | ||
10333 | self = self; | |
10334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1)) | |
10335 | return NULL; | |
10336 | if (_argo0) { | |
10337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p."); | |
10340 | return NULL; | |
10341 | } | |
10342 | } | |
10343 | { | |
10344 | _arg1 = wxString_in_helper(_obj1); | |
10345 | if (_arg1 == NULL) | |
10346 | return NULL; | |
10347 | } | |
10348 | { | |
10349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10350 | wxGenericDirCtrl_SetFilter(_arg0,*_arg1); | |
10351 | ||
10352 | wxPyEndAllowThreads(__tstate); | |
10353 | if (PyErr_Occurred()) return NULL; | |
10354 | } Py_INCREF(Py_None); | |
10355 | _resultobj = Py_None; | |
10356 | { | |
10357 | if (_obj1) | |
10358 | delete _arg1; | |
10359 | } | |
10360 | return _resultobj; | |
10361 | } | |
10362 | ||
10363 | #define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
10364 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10365 | PyObject * _resultobj; | |
10366 | int _result; | |
10367 | wxGenericDirCtrl * _arg0; | |
10368 | PyObject * _argo0 = 0; | |
10369 | char *_kwnames[] = { "self", NULL }; | |
10370 | ||
10371 | self = self; | |
10372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0)) | |
10373 | return NULL; | |
10374 | if (_argo0) { | |
10375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10378 | return NULL; | |
10379 | } | |
10380 | } | |
10381 | { | |
10382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10383 | _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0); | |
10384 | ||
10385 | wxPyEndAllowThreads(__tstate); | |
10386 | if (PyErr_Occurred()) return NULL; | |
10387 | } _resultobj = Py_BuildValue("i",_result); | |
10388 | return _resultobj; | |
10389 | } | |
10390 | ||
10391 | #define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
10392 | static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject * _resultobj; | |
10394 | wxGenericDirCtrl * _arg0; | |
10395 | int _arg1; | |
10396 | PyObject * _argo0 = 0; | |
10397 | char *_kwnames[] = { "self","n", NULL }; | |
10398 | ||
10399 | self = self; | |
10400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
10401 | return NULL; | |
10402 | if (_argo0) { | |
10403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p."); | |
10406 | return NULL; | |
10407 | } | |
10408 | } | |
10409 | { | |
10410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10411 | wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1); | |
10412 | ||
10413 | wxPyEndAllowThreads(__tstate); | |
10414 | if (PyErr_Occurred()) return NULL; | |
10415 | } Py_INCREF(Py_None); | |
10416 | _resultobj = Py_None; | |
10417 | return _resultobj; | |
10418 | } | |
10419 | ||
10420 | #define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId()) | |
10421 | static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10422 | PyObject * _resultobj; | |
10423 | wxTreeItemId * _result; | |
10424 | wxGenericDirCtrl * _arg0; | |
10425 | PyObject * _argo0 = 0; | |
10426 | char *_kwnames[] = { "self", NULL }; | |
10427 | char _ptemp[128]; | |
10428 | ||
10429 | self = self; | |
10430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0)) | |
10431 | return NULL; | |
10432 | if (_argo0) { | |
10433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p."); | |
10436 | return NULL; | |
10437 | } | |
10438 | } | |
10439 | { | |
10440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10441 | _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0)); | |
10442 | ||
10443 | wxPyEndAllowThreads(__tstate); | |
10444 | if (PyErr_Occurred()) return NULL; | |
10445 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
10446 | _resultobj = Py_BuildValue("s",_ptemp); | |
10447 | return _resultobj; | |
10448 | } | |
10449 | ||
10450 | #define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl()) | |
10451 | static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10452 | PyObject * _resultobj; | |
10453 | wxTreeCtrl * _result; | |
10454 | wxGenericDirCtrl * _arg0; | |
10455 | PyObject * _argo0 = 0; | |
10456 | char *_kwnames[] = { "self", NULL }; | |
10457 | ||
10458 | self = self; | |
10459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0)) | |
10460 | return NULL; | |
10461 | if (_argo0) { | |
10462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p."); | |
10465 | return NULL; | |
10466 | } | |
10467 | } | |
10468 | { | |
10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10470 | _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0); | |
10471 | ||
10472 | wxPyEndAllowThreads(__tstate); | |
10473 | if (PyErr_Occurred()) return NULL; | |
10474 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
10475 | return _resultobj; | |
10476 | } | |
10477 | ||
10478 | #define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl()) | |
10479 | static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10480 | PyObject * _resultobj; | |
10481 | wxDirFilterListCtrl * _result; | |
10482 | wxGenericDirCtrl * _arg0; | |
10483 | PyObject * _argo0 = 0; | |
10484 | char *_kwnames[] = { "self", NULL }; | |
10485 | char _ptemp[128]; | |
10486 | ||
10487 | self = self; | |
10488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0)) | |
10489 | return NULL; | |
10490 | if (_argo0) { | |
10491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10494 | return NULL; | |
10495 | } | |
10496 | } | |
10497 | { | |
10498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10499 | _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0); | |
10500 | ||
10501 | wxPyEndAllowThreads(__tstate); | |
10502 | if (PyErr_Occurred()) return NULL; | |
10503 | } if (_result) { | |
10504 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10505 | _resultobj = Py_BuildValue("s",_ptemp); | |
10506 | } else { | |
10507 | Py_INCREF(Py_None); | |
10508 | _resultobj = Py_None; | |
10509 | } | |
10510 | return _resultobj; | |
10511 | } | |
10512 | ||
10513 | static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) { | |
10514 | wxDirFilterListCtrl *src; | |
10515 | wxChoice *dest; | |
10516 | src = (wxDirFilterListCtrl *) ptr; | |
10517 | dest = (wxChoice *) src; | |
10518 | return (void *) dest; | |
10519 | } | |
10520 | ||
10521 | static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) { | |
10522 | wxDirFilterListCtrl *src; | |
10523 | wxControlWithItems *dest; | |
10524 | src = (wxDirFilterListCtrl *) ptr; | |
10525 | dest = (wxControlWithItems *) src; | |
10526 | return (void *) dest; | |
10527 | } | |
10528 | ||
10529 | static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) { | |
10530 | wxDirFilterListCtrl *src; | |
10531 | wxControl *dest; | |
10532 | src = (wxDirFilterListCtrl *) ptr; | |
10533 | dest = (wxControl *) src; | |
10534 | return (void *) dest; | |
10535 | } | |
10536 | ||
10537 | static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) { | |
10538 | wxDirFilterListCtrl *src; | |
10539 | wxWindow *dest; | |
10540 | src = (wxDirFilterListCtrl *) ptr; | |
10541 | dest = (wxWindow *) src; | |
10542 | return (void *) dest; | |
10543 | } | |
10544 | ||
10545 | static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) { | |
10546 | wxDirFilterListCtrl *src; | |
10547 | wxEvtHandler *dest; | |
10548 | src = (wxDirFilterListCtrl *) ptr; | |
10549 | dest = (wxEvtHandler *) src; | |
10550 | return (void *) dest; | |
10551 | } | |
10552 | ||
10553 | static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) { | |
10554 | wxDirFilterListCtrl *src; | |
10555 | wxObject *dest; | |
10556 | src = (wxDirFilterListCtrl *) ptr; | |
10557 | dest = (wxObject *) src; | |
10558 | return (void *) dest; | |
10559 | } | |
10560 | ||
10561 | #define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10562 | static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10563 | PyObject * _resultobj; | |
10564 | wxDirFilterListCtrl * _result; | |
10565 | wxGenericDirCtrl * _arg0; | |
10566 | wxWindowID _arg1 = (wxWindowID ) -1; | |
10567 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
10568 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
10569 | long _arg4 = (long ) 0; | |
10570 | PyObject * _argo0 = 0; | |
10571 | wxPoint temp; | |
10572 | PyObject * _obj2 = 0; | |
10573 | wxSize temp0; | |
10574 | PyObject * _obj3 = 0; | |
10575 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
10576 | char _ptemp[128]; | |
10577 | ||
10578 | self = self; | |
10579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
10580 | return NULL; | |
10581 | if (_argo0) { | |
10582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) { | |
10584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p."); | |
10585 | return NULL; | |
10586 | } | |
10587 | } | |
10588 | if (_obj2) | |
10589 | { | |
10590 | _arg2 = &temp; | |
10591 | if (! wxPoint_helper(_obj2, &_arg2)) | |
10592 | return NULL; | |
10593 | } | |
10594 | if (_obj3) | |
10595 | { | |
10596 | _arg3 = &temp0; | |
10597 | if (! wxSize_helper(_obj3, &_arg3)) | |
10598 | return NULL; | |
10599 | } | |
10600 | { | |
10601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10602 | _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
10603 | ||
10604 | wxPyEndAllowThreads(__tstate); | |
10605 | if (PyErr_Occurred()) return NULL; | |
10606 | } if (_result) { | |
10607 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10608 | _resultobj = Py_BuildValue("s",_ptemp); | |
10609 | } else { | |
10610 | Py_INCREF(Py_None); | |
10611 | _resultobj = Py_None; | |
10612 | } | |
10613 | return _resultobj; | |
10614 | } | |
10615 | ||
10616 | #define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl()) | |
10617 | static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10618 | PyObject * _resultobj; | |
10619 | wxDirFilterListCtrl * _result; | |
10620 | char *_kwnames[] = { NULL }; | |
10621 | char _ptemp[128]; | |
10622 | ||
10623 | self = self; | |
10624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames)) | |
10625 | return NULL; | |
10626 | { | |
10627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10628 | _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl(); | |
10629 | ||
10630 | wxPyEndAllowThreads(__tstate); | |
10631 | if (PyErr_Occurred()) return NULL; | |
10632 | } if (_result) { | |
10633 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p"); | |
10634 | _resultobj = Py_BuildValue("s",_ptemp); | |
10635 | } else { | |
10636 | Py_INCREF(Py_None); | |
10637 | _resultobj = Py_None; | |
10638 | } | |
10639 | return _resultobj; | |
10640 | } | |
10641 | ||
10642 | #define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
10643 | static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10644 | PyObject * _resultobj; | |
10645 | bool _result; | |
10646 | wxDirFilterListCtrl * _arg0; | |
10647 | wxGenericDirCtrl * _arg1; | |
10648 | wxWindowID _arg2 = (wxWindowID ) -1; | |
10649 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
10650 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
10651 | long _arg5 = (long ) 0; | |
10652 | PyObject * _argo0 = 0; | |
10653 | PyObject * _argo1 = 0; | |
10654 | wxPoint temp; | |
10655 | PyObject * _obj3 = 0; | |
10656 | wxSize temp0; | |
10657 | PyObject * _obj4 = 0; | |
10658 | char *_kwnames[] = { "self","parent","id","pos","size","style", NULL }; | |
10659 | ||
10660 | self = self; | |
10661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
10662 | return NULL; | |
10663 | if (_argo0) { | |
10664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p."); | |
10667 | return NULL; | |
10668 | } | |
10669 | } | |
10670 | if (_argo1) { | |
10671 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10672 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) { | |
10673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p."); | |
10674 | return NULL; | |
10675 | } | |
10676 | } | |
10677 | if (_obj3) | |
10678 | { | |
10679 | _arg3 = &temp; | |
10680 | if (! wxPoint_helper(_obj3, &_arg3)) | |
10681 | return NULL; | |
10682 | } | |
10683 | if (_obj4) | |
10684 | { | |
10685 | _arg4 = &temp0; | |
10686 | if (! wxSize_helper(_obj4, &_arg4)) | |
10687 | return NULL; | |
10688 | } | |
10689 | { | |
10690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10691 | _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
10692 | ||
10693 | wxPyEndAllowThreads(__tstate); | |
10694 | if (PyErr_Occurred()) return NULL; | |
10695 | } _resultobj = Py_BuildValue("i",_result); | |
10696 | return _resultobj; | |
10697 | } | |
10698 | ||
10699 | #define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1)) | |
10700 | static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10701 | PyObject * _resultobj; | |
10702 | wxDirFilterListCtrl * _arg0; | |
10703 | wxString * _arg1; | |
10704 | int _arg2; | |
10705 | PyObject * _argo0 = 0; | |
10706 | PyObject * _obj1 = 0; | |
10707 | char *_kwnames[] = { "self","filter","defaultFilter", NULL }; | |
10708 | ||
10709 | self = self; | |
10710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2)) | |
10711 | return NULL; | |
10712 | if (_argo0) { | |
10713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) { | |
10715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p."); | |
10716 | return NULL; | |
10717 | } | |
10718 | } | |
10719 | { | |
10720 | _arg1 = wxString_in_helper(_obj1); | |
10721 | if (_arg1 == NULL) | |
10722 | return NULL; | |
10723 | } | |
10724 | { | |
10725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10726 | wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2); | |
10727 | ||
10728 | wxPyEndAllowThreads(__tstate); | |
10729 | if (PyErr_Occurred()) return NULL; | |
10730 | } Py_INCREF(Py_None); | |
10731 | _resultobj = Py_None; | |
10732 | { | |
10733 | if (_obj1) | |
10734 | delete _arg1; | |
10735 | } | |
10736 | return _resultobj; | |
10737 | } | |
10738 | ||
10739 | static PyMethodDef controls2cMethods[] = { | |
10740 | { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
10741 | { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10742 | { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10743 | { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10744 | { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10745 | { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10746 | { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
10747 | { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10748 | { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
10749 | { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10750 | { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
10751 | { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10752 | { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
10753 | { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
10754 | { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
10755 | { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
10756 | { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10757 | { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
10758 | { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
10759 | { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10760 | { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10761 | { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10762 | { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS }, | |
10763 | { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS }, | |
10764 | { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS }, | |
10765 | { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS }, | |
10766 | { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS }, | |
10767 | { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS }, | |
10768 | { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS }, | |
10769 | { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS }, | |
10770 | { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
10775 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
10776 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
10777 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10778 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10779 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
10780 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
10781 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
10782 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
10783 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10784 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
10785 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
10787 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10788 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
10789 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
10791 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10792 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
10793 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
10794 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
10795 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10796 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
10797 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
10798 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
10799 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
10800 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
10802 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
10803 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
10804 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
10805 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
10807 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
10811 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
10812 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
10813 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
10814 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
10825 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10826 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10827 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10828 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
10829 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10830 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10831 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10832 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10833 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10834 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10835 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10836 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10837 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
10838 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10839 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10840 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
10841 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
10842 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10843 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10844 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10845 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10846 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10847 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
10856 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10857 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
10858 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
10859 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10860 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10863 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10864 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10865 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10868 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
10869 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
10872 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10873 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
10874 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
10875 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
10876 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
10880 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
10881 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
10882 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
10883 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
10884 | { "wxListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10885 | { "wxListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10886 | { "wxListCtrl_GetItemTextColour", (PyCFunction) _wrap_wxListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10887 | { "wxListCtrl_SetItemTextColour", (PyCFunction) _wrap_wxListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10888 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
10889 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10890 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
10891 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
10892 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10893 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
10894 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10895 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
10896 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
10897 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
10898 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
10899 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
10900 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10902 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
10905 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
10906 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
10907 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
10908 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
10909 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
10910 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
10911 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
10912 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
10913 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10914 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
10915 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
10916 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
10917 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
10918 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
10919 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10920 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10921 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10922 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
10923 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
10924 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10934 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
10935 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
10936 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
10939 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
10940 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10941 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
10942 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10944 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10945 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10946 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10947 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
10948 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10949 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10955 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10956 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10957 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10958 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
10959 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
10960 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
10961 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
10962 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
10963 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
10964 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
10965 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
10966 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
10967 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
10968 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, | |
10969 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
10970 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
10973 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
10974 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
10975 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
10976 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
10977 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
10985 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
10986 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
10987 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
10988 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
10989 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10990 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10991 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
10992 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10993 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
10994 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
10995 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
10996 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
11003 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
11013 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
11014 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11015 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
11017 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11018 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11019 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
11020 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11021 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11022 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11025 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11026 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11027 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11028 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11029 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
11030 | { NULL, NULL } | |
11031 | }; | |
11032 | #ifdef __cplusplus | |
11033 | } | |
11034 | #endif | |
11035 | /* | |
11036 | * This table is used by the pointer type-checker | |
11037 | */ | |
11038 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
11039 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
11040 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
11041 | { "_signed_long","_long",0}, | |
11042 | { "_wxPrintQuality","_wxCoord",0}, | |
11043 | { "_wxPrintQuality","_int",0}, | |
11044 | { "_wxPrintQuality","_signed_int",0}, | |
11045 | { "_wxPrintQuality","_unsigned_int",0}, | |
11046 | { "_wxPrintQuality","_wxWindowID",0}, | |
11047 | { "_wxPrintQuality","_uint",0}, | |
11048 | { "_wxPrintQuality","_EBool",0}, | |
11049 | { "_wxPrintQuality","_size_t",0}, | |
11050 | { "_wxPrintQuality","_time_t",0}, | |
11051 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
11052 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
11053 | { "_byte","_unsigned_char",0}, | |
11054 | { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice}, | |
11055 | { "_long","_unsigned_long",0}, | |
11056 | { "_long","_signed_long",0}, | |
11057 | { "_size_t","_wxCoord",0}, | |
11058 | { "_size_t","_wxPrintQuality",0}, | |
11059 | { "_size_t","_time_t",0}, | |
11060 | { "_size_t","_unsigned_int",0}, | |
11061 | { "_size_t","_int",0}, | |
11062 | { "_size_t","_wxWindowID",0}, | |
11063 | { "_size_t","_uint",0}, | |
11064 | { "_uint","_wxCoord",0}, | |
11065 | { "_uint","_wxPrintQuality",0}, | |
11066 | { "_uint","_time_t",0}, | |
11067 | { "_uint","_size_t",0}, | |
11068 | { "_uint","_unsigned_int",0}, | |
11069 | { "_uint","_int",0}, | |
11070 | { "_uint","_wxWindowID",0}, | |
11071 | { "_wxChar","_char",0}, | |
11072 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
11073 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
11074 | { "_char","_wxChar",0}, | |
11075 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
11076 | { "_EBool","_wxCoord",0}, | |
11077 | { "_EBool","_wxPrintQuality",0}, | |
11078 | { "_EBool","_signed_int",0}, | |
11079 | { "_EBool","_int",0}, | |
11080 | { "_EBool","_wxWindowID",0}, | |
11081 | { "_unsigned_long","_long",0}, | |
11082 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
11083 | { "_signed_int","_wxCoord",0}, | |
11084 | { "_signed_int","_wxPrintQuality",0}, | |
11085 | { "_signed_int","_EBool",0}, | |
11086 | { "_signed_int","_wxWindowID",0}, | |
11087 | { "_signed_int","_int",0}, | |
11088 | { "_WXTYPE","_short",0}, | |
11089 | { "_WXTYPE","_signed_short",0}, | |
11090 | { "_WXTYPE","_unsigned_short",0}, | |
11091 | { "_unsigned_short","_WXTYPE",0}, | |
11092 | { "_unsigned_short","_short",0}, | |
11093 | { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject}, | |
11094 | { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject}, | |
11095 | { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject}, | |
11096 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
11097 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
11098 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
11099 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, | |
11100 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, | |
11101 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
11102 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
11103 | { "_signed_short","_WXTYPE",0}, | |
11104 | { "_signed_short","_short",0}, | |
11105 | { "_unsigned_char","_byte",0}, | |
11106 | { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl}, | |
11107 | { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl}, | |
11108 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
11109 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, | |
11110 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, | |
11111 | { "_unsigned_int","_wxCoord",0}, | |
11112 | { "_unsigned_int","_wxPrintQuality",0}, | |
11113 | { "_unsigned_int","_time_t",0}, | |
11114 | { "_unsigned_int","_size_t",0}, | |
11115 | { "_unsigned_int","_uint",0}, | |
11116 | { "_unsigned_int","_wxWindowID",0}, | |
11117 | { "_unsigned_int","_int",0}, | |
11118 | { "_short","_WXTYPE",0}, | |
11119 | { "_short","_unsigned_short",0}, | |
11120 | { "_short","_signed_short",0}, | |
11121 | { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems}, | |
11122 | { "_wxWindowID","_wxCoord",0}, | |
11123 | { "_wxWindowID","_wxPrintQuality",0}, | |
11124 | { "_wxWindowID","_time_t",0}, | |
11125 | { "_wxWindowID","_size_t",0}, | |
11126 | { "_wxWindowID","_EBool",0}, | |
11127 | { "_wxWindowID","_uint",0}, | |
11128 | { "_wxWindowID","_int",0}, | |
11129 | { "_wxWindowID","_signed_int",0}, | |
11130 | { "_wxWindowID","_unsigned_int",0}, | |
11131 | { "_int","_wxCoord",0}, | |
11132 | { "_int","_wxPrintQuality",0}, | |
11133 | { "_int","_time_t",0}, | |
11134 | { "_int","_size_t",0}, | |
11135 | { "_int","_EBool",0}, | |
11136 | { "_int","_uint",0}, | |
11137 | { "_int","_wxWindowID",0}, | |
11138 | { "_int","_unsigned_int",0}, | |
11139 | { "_int","_signed_int",0}, | |
11140 | { "_time_t","_wxCoord",0}, | |
11141 | { "_time_t","_wxPrintQuality",0}, | |
11142 | { "_time_t","_unsigned_int",0}, | |
11143 | { "_time_t","_int",0}, | |
11144 | { "_time_t","_wxWindowID",0}, | |
11145 | { "_time_t","_uint",0}, | |
11146 | { "_time_t","_size_t",0}, | |
11147 | { "_wxCoord","_int",0}, | |
11148 | { "_wxCoord","_signed_int",0}, | |
11149 | { "_wxCoord","_unsigned_int",0}, | |
11150 | { "_wxCoord","_wxWindowID",0}, | |
11151 | { "_wxCoord","_uint",0}, | |
11152 | { "_wxCoord","_EBool",0}, | |
11153 | { "_wxCoord","_size_t",0}, | |
11154 | { "_wxCoord","_time_t",0}, | |
11155 | { "_wxCoord","_wxPrintQuality",0}, | |
11156 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, | |
11157 | { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler}, | |
11158 | { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler}, | |
11159 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
11160 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, | |
11161 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, | |
11162 | { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow}, | |
11163 | { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow}, | |
11164 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
11165 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, | |
11166 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, | |
11167 | {0,0,0}}; | |
11168 | ||
11169 | static PyObject *SWIG_globals; | |
11170 | #ifdef __cplusplus | |
11171 | extern "C" | |
11172 | #endif | |
11173 | SWIGEXPORT(void) initcontrols2c() { | |
11174 | PyObject *m, *d; | |
11175 | SWIG_globals = SWIG_newvarlink(); | |
11176 | m = Py_InitModule("controls2c", controls2cMethods); | |
11177 | d = PyModule_GetDict(m); | |
11178 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
11179 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
11180 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
11181 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
11182 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
11183 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
11184 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
11185 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
11186 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
11187 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
11188 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
11189 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
11190 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
11191 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
11192 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
11193 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
11194 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
11195 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
11196 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
11197 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
11198 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
11199 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
11200 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); | |
11201 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
11202 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
11203 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
11204 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
11205 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
11206 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
11207 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
11208 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
11209 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
11210 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
11211 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
11212 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
11213 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
11214 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
11215 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
11216 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
11217 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
11218 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
11219 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); | |
11220 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); | |
11221 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); | |
11222 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
11223 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
11224 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); | |
11225 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); | |
11226 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
11227 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
11228 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
11229 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
11230 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
11231 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
11232 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
11233 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
11234 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
11235 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
11236 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
11237 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
11238 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
11239 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
11240 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
11241 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
11242 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
11243 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
11244 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
11245 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
11246 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
11247 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
11248 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
11249 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
11250 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
11251 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); | |
11252 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
11253 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
11254 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
11255 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
11256 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
11257 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
11258 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
11259 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
11260 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); | |
11261 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
11262 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
11263 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
11264 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); | |
11265 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
11266 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
11267 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
11268 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
11269 | PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS)); | |
11270 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); | |
11271 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
11272 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
11273 | PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT)); | |
11274 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); | |
11275 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
11276 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
11277 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
11278 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
11279 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
11280 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); | |
11281 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
11282 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
11283 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
11284 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
11285 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); | |
11286 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
11287 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
11288 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
11289 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
11290 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
11291 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
11292 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
11293 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
11294 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
11295 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
11296 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
11297 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
11298 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
11299 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
11300 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
11301 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
11302 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
11303 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
11304 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
11305 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
11306 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
11307 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
11308 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
11309 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
11310 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
11311 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
11312 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
11313 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
11314 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
11315 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
11316 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); | |
11317 | PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY)); | |
11318 | PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST)); | |
11319 | PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS)); | |
11320 | PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL)); | |
11321 | PyDict_SetItemString(d,"wxDIRCTRL_EDIT_LABELS", PyInt_FromLong((long) wxDIRCTRL_EDIT_LABELS)); | |
11322 | PyDict_SetItemString(d,"wxID_TREECTRL", PyInt_FromLong((long) wxID_TREECTRL)); | |
11323 | PyDict_SetItemString(d,"wxID_FILTERLISTCTRL", PyInt_FromLong((long) wxID_FILTERLISTCTRL)); | |
11324 | ||
11325 | // Map renamed classes back to their common name for OOR | |
11326 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
11327 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
11328 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
11329 | { | |
11330 | int i; | |
11331 | for (i = 0; _swig_mapping[i].n1; i++) | |
11332 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11333 | } | |
11334 | } |