]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/gizmos/gizmos.cpp
2.4 -> 2.5; build in another directory than source one; mention --disable-shared
[wxWidgets.git] / wxPython / contrib / gizmos / gizmos.cpp
1 /*
2 * FILE : contrib/gizmos/gizmos.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 "Python.h"
23
24 #include <string.h>
25 #include <stdlib.h>
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
30 # else
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
33 # else
34 # define SWIGEXPORT(a) a
35 # endif
36 # endif
37 #else
38 # define SWIGEXPORT(a) a
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
48 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49 extern PyObject *SWIG_newvarlink(void);
50 #ifdef __cplusplus
51 }
52 #endif
53 #define SWIG_init initgizmosc
54
55 #define SWIG_name "gizmosc"
56
57 #include "wxPython.h"
58 #include <wx/gizmos/dynamicsash.h>
59 #include <wx/gizmos/editlbox.h>
60 #include <wx/gizmos/splittree.h>
61 #include <wx/gizmos/ledctrl.h>
62 #include <wx/listctrl.h>
63
64
65 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
66 PyObject* o2;
67 PyObject* o3;
68
69 if (!target) {
70 target = o;
71 } else if (target == Py_None) {
72 Py_DECREF(Py_None);
73 target = o;
74 } else {
75 if (!PyTuple_Check(target)) {
76 o2 = target;
77 target = PyTuple_New(1);
78 PyTuple_SetItem(target, 0, o2);
79 }
80 o3 = PyTuple_New(1);
81 PyTuple_SetItem(o3, 0, o);
82
83 o2 = target;
84 target = PySequence_Concat(o2, o3);
85 Py_DECREF(o2);
86 Py_DECREF(o3);
87 }
88 return target;
89 }
90
91 // Put some wx default wxChar* values into wxStrings.
92 static const wxString wxPyDynamicSashNameStr(wxT("dynamicSashWindow"));
93 static const wxString wxPyEditableListBoxNameStr(wxT("editableListBox"));
94
95 typedef wxTreeCtrl wxPyTreeCtrl;
96
97 class wxPyTreeCompanionWindow: public wxTreeCompanionWindow
98 {
99 public:
100 wxPyTreeCompanionWindow(wxWindow* parent, wxWindowID id = -1,
101 const wxPoint& pos = wxDefaultPosition,
102 const wxSize& size = wxDefaultSize,
103 long style = 0)
104 : wxTreeCompanionWindow(parent, id, pos, size, style) {}
105
106
107 virtual void DrawItem(wxDC& dc, wxTreeItemId id, const wxRect& rect) {
108 bool found;
109 wxPyBeginBlockThreads();
110 if ((found = wxPyCBH_findCallback(m_myInst, "DrawItem"))) {
111 PyObject* dcobj = wxPyMake_wxObject(&dc);
112 PyObject* idobj = wxPyConstructObject((void*)&id, wxT("wxTreeItemId"), FALSE);
113 PyObject* recobj= wxPyConstructObject((void*)&rect, wxT("wxRect"), FALSE);
114 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOO)", dcobj, idobj, recobj));
115 Py_DECREF(dcobj);
116 Py_DECREF(idobj);
117 Py_DECREF(recobj);
118 }
119 wxPyEndBlockThreads();
120 if (! found)
121 wxTreeCompanionWindow::DrawItem(dc, id, rect);
122 }
123
124 PYPRIVATE;
125 };
126 #ifdef __cplusplus
127 extern "C" {
128 #endif
129 static void *SwigwxDynamicSashSplitEventTowxCommandEvent(void *ptr) {
130 wxDynamicSashSplitEvent *src;
131 wxCommandEvent *dest;
132 src = (wxDynamicSashSplitEvent *) ptr;
133 dest = (wxCommandEvent *) src;
134 return (void *) dest;
135 }
136
137 static void *SwigwxDynamicSashSplitEventTowxEvent(void *ptr) {
138 wxDynamicSashSplitEvent *src;
139 wxEvent *dest;
140 src = (wxDynamicSashSplitEvent *) ptr;
141 dest = (wxEvent *) src;
142 return (void *) dest;
143 }
144
145 static void *SwigwxDynamicSashSplitEventTowxObject(void *ptr) {
146 wxDynamicSashSplitEvent *src;
147 wxObject *dest;
148 src = (wxDynamicSashSplitEvent *) ptr;
149 dest = (wxObject *) src;
150 return (void *) dest;
151 }
152
153 #define new_wxDynamicSashSplitEvent(_swigarg0) (new wxDynamicSashSplitEvent(_swigarg0))
154 static PyObject *_wrap_new_wxDynamicSashSplitEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
155 PyObject * _resultobj;
156 wxDynamicSashSplitEvent * _result;
157 wxObject * _arg0;
158 PyObject * _argo0 = 0;
159 char *_kwnames[] = { "target", NULL };
160 char _ptemp[128];
161
162 self = self;
163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxDynamicSashSplitEvent",_kwnames,&_argo0))
164 return NULL;
165 if (_argo0) {
166 if (_argo0 == Py_None) { _arg0 = NULL; }
167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) {
168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDynamicSashSplitEvent. Expected _wxObject_p.");
169 return NULL;
170 }
171 }
172 {
173 PyThreadState* __tstate = wxPyBeginAllowThreads();
174 _result = (wxDynamicSashSplitEvent *)new_wxDynamicSashSplitEvent(_arg0);
175
176 wxPyEndAllowThreads(__tstate);
177 if (PyErr_Occurred()) return NULL;
178 } if (_result) {
179 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashSplitEvent_p");
180 _resultobj = Py_BuildValue("s",_ptemp);
181 } else {
182 Py_INCREF(Py_None);
183 _resultobj = Py_None;
184 }
185 return _resultobj;
186 }
187
188 static void *SwigwxDynamicSashUnifyEventTowxCommandEvent(void *ptr) {
189 wxDynamicSashUnifyEvent *src;
190 wxCommandEvent *dest;
191 src = (wxDynamicSashUnifyEvent *) ptr;
192 dest = (wxCommandEvent *) src;
193 return (void *) dest;
194 }
195
196 static void *SwigwxDynamicSashUnifyEventTowxEvent(void *ptr) {
197 wxDynamicSashUnifyEvent *src;
198 wxEvent *dest;
199 src = (wxDynamicSashUnifyEvent *) ptr;
200 dest = (wxEvent *) src;
201 return (void *) dest;
202 }
203
204 static void *SwigwxDynamicSashUnifyEventTowxObject(void *ptr) {
205 wxDynamicSashUnifyEvent *src;
206 wxObject *dest;
207 src = (wxDynamicSashUnifyEvent *) ptr;
208 dest = (wxObject *) src;
209 return (void *) dest;
210 }
211
212 #define new_wxDynamicSashUnifyEvent(_swigarg0) (new wxDynamicSashUnifyEvent(_swigarg0))
213 static PyObject *_wrap_new_wxDynamicSashUnifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
214 PyObject * _resultobj;
215 wxDynamicSashUnifyEvent * _result;
216 wxObject * _arg0;
217 PyObject * _argo0 = 0;
218 char *_kwnames[] = { "target", NULL };
219 char _ptemp[128];
220
221 self = self;
222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxDynamicSashUnifyEvent",_kwnames,&_argo0))
223 return NULL;
224 if (_argo0) {
225 if (_argo0 == Py_None) { _arg0 = NULL; }
226 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) {
227 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDynamicSashUnifyEvent. Expected _wxObject_p.");
228 return NULL;
229 }
230 }
231 {
232 PyThreadState* __tstate = wxPyBeginAllowThreads();
233 _result = (wxDynamicSashUnifyEvent *)new_wxDynamicSashUnifyEvent(_arg0);
234
235 wxPyEndAllowThreads(__tstate);
236 if (PyErr_Occurred()) return NULL;
237 } if (_result) {
238 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashUnifyEvent_p");
239 _resultobj = Py_BuildValue("s",_ptemp);
240 } else {
241 Py_INCREF(Py_None);
242 _resultobj = Py_None;
243 }
244 return _resultobj;
245 }
246
247 static void *SwigwxDynamicSashWindowTowxWindow(void *ptr) {
248 wxDynamicSashWindow *src;
249 wxWindow *dest;
250 src = (wxDynamicSashWindow *) ptr;
251 dest = (wxWindow *) src;
252 return (void *) dest;
253 }
254
255 static void *SwigwxDynamicSashWindowTowxEvtHandler(void *ptr) {
256 wxDynamicSashWindow *src;
257 wxEvtHandler *dest;
258 src = (wxDynamicSashWindow *) ptr;
259 dest = (wxEvtHandler *) src;
260 return (void *) dest;
261 }
262
263 static void *SwigwxDynamicSashWindowTowxObject(void *ptr) {
264 wxDynamicSashWindow *src;
265 wxObject *dest;
266 src = (wxDynamicSashWindow *) ptr;
267 dest = (wxObject *) src;
268 return (void *) dest;
269 }
270
271 #define new_wxDynamicSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxDynamicSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
272 static PyObject *_wrap_new_wxDynamicSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
273 PyObject * _resultobj;
274 wxDynamicSashWindow * _result;
275 wxWindow * _arg0;
276 wxWindowID _arg1;
277 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
278 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
279 long _arg4 = (long ) wxCLIP_CHILDREN|(wxDS_MANAGE_SCROLLBARS)|(wxDS_DRAG_CORNER);
280 wxString * _arg5 = (wxString *) &wxPyDynamicSashNameStr;
281 PyObject * _argo0 = 0;
282 wxPoint temp;
283 PyObject * _obj2 = 0;
284 wxSize temp0;
285 PyObject * _obj3 = 0;
286 PyObject * _obj5 = 0;
287 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
288 char _ptemp[128];
289
290 self = self;
291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxDynamicSashWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
292 return NULL;
293 if (_argo0) {
294 if (_argo0 == Py_None) { _arg0 = NULL; }
295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDynamicSashWindow. Expected _wxWindow_p.");
297 return NULL;
298 }
299 }
300 if (_obj2)
301 {
302 _arg2 = &temp;
303 if (! wxPoint_helper(_obj2, &_arg2))
304 return NULL;
305 }
306 if (_obj3)
307 {
308 _arg3 = &temp0;
309 if (! wxSize_helper(_obj3, &_arg3))
310 return NULL;
311 }
312 if (_obj5)
313 {
314 _arg5 = wxString_in_helper(_obj5);
315 if (_arg5 == NULL)
316 return NULL;
317 }
318 {
319 PyThreadState* __tstate = wxPyBeginAllowThreads();
320 _result = (wxDynamicSashWindow *)new_wxDynamicSashWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
321
322 wxPyEndAllowThreads(__tstate);
323 if (PyErr_Occurred()) return NULL;
324 } if (_result) {
325 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashWindow_p");
326 _resultobj = Py_BuildValue("s",_ptemp);
327 } else {
328 Py_INCREF(Py_None);
329 _resultobj = Py_None;
330 }
331 {
332 if (_obj5)
333 delete _arg5;
334 }
335 return _resultobj;
336 }
337
338 #define new_wxPreDynamicSashWindow() (new wxDynamicSashWindow())
339 static PyObject *_wrap_new_wxPreDynamicSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
340 PyObject * _resultobj;
341 wxDynamicSashWindow * _result;
342 char *_kwnames[] = { NULL };
343 char _ptemp[128];
344
345 self = self;
346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDynamicSashWindow",_kwnames))
347 return NULL;
348 {
349 PyThreadState* __tstate = wxPyBeginAllowThreads();
350 _result = (wxDynamicSashWindow *)new_wxPreDynamicSashWindow();
351
352 wxPyEndAllowThreads(__tstate);
353 if (PyErr_Occurred()) return NULL;
354 } if (_result) {
355 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDynamicSashWindow_p");
356 _resultobj = Py_BuildValue("s",_ptemp);
357 } else {
358 Py_INCREF(Py_None);
359 _resultobj = Py_None;
360 }
361 return _resultobj;
362 }
363
364 #define wxDynamicSashWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
365 static PyObject *_wrap_wxDynamicSashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
366 PyObject * _resultobj;
367 bool _result;
368 wxDynamicSashWindow * _arg0;
369 wxWindow * _arg1;
370 wxWindowID _arg2;
371 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
372 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
373 long _arg5 = (long ) wxCLIP_CHILDREN|(wxDS_MANAGE_SCROLLBARS)|(wxDS_DRAG_CORNER);
374 wxString * _arg6 = (wxString *) &wxPyDynamicSashNameStr;
375 PyObject * _argo0 = 0;
376 PyObject * _argo1 = 0;
377 wxPoint temp;
378 PyObject * _obj3 = 0;
379 wxSize temp0;
380 PyObject * _obj4 = 0;
381 PyObject * _obj6 = 0;
382 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
383
384 self = self;
385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxDynamicSashWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6))
386 return NULL;
387 if (_argo0) {
388 if (_argo0 == Py_None) { _arg0 = NULL; }
389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDynamicSashWindow_p")) {
390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDynamicSashWindow_Create. Expected _wxDynamicSashWindow_p.");
391 return NULL;
392 }
393 }
394 if (_argo1) {
395 if (_argo1 == Py_None) { _arg1 = NULL; }
396 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
397 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDynamicSashWindow_Create. Expected _wxWindow_p.");
398 return NULL;
399 }
400 }
401 if (_obj3)
402 {
403 _arg3 = &temp;
404 if (! wxPoint_helper(_obj3, &_arg3))
405 return NULL;
406 }
407 if (_obj4)
408 {
409 _arg4 = &temp0;
410 if (! wxSize_helper(_obj4, &_arg4))
411 return NULL;
412 }
413 if (_obj6)
414 {
415 _arg6 = wxString_in_helper(_obj6);
416 if (_arg6 == NULL)
417 return NULL;
418 }
419 {
420 PyThreadState* __tstate = wxPyBeginAllowThreads();
421 _result = (bool )wxDynamicSashWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
422
423 wxPyEndAllowThreads(__tstate);
424 if (PyErr_Occurred()) return NULL;
425 } _resultobj = Py_BuildValue("i",_result);
426 {
427 if (_obj6)
428 delete _arg6;
429 }
430 return _resultobj;
431 }
432
433 #define wxDynamicSashWindow_GetHScrollBar(_swigobj,_swigarg0) (_swigobj->GetHScrollBar(_swigarg0))
434 static PyObject *_wrap_wxDynamicSashWindow_GetHScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
435 PyObject * _resultobj;
436 wxScrollBar * _result;
437 wxDynamicSashWindow * _arg0;
438 wxWindow * _arg1;
439 PyObject * _argo0 = 0;
440 PyObject * _argo1 = 0;
441 char *_kwnames[] = { "self","child", NULL };
442 char _ptemp[128];
443
444 self = self;
445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDynamicSashWindow_GetHScrollBar",_kwnames,&_argo0,&_argo1))
446 return NULL;
447 if (_argo0) {
448 if (_argo0 == Py_None) { _arg0 = NULL; }
449 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDynamicSashWindow_p")) {
450 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDynamicSashWindow_GetHScrollBar. Expected _wxDynamicSashWindow_p.");
451 return NULL;
452 }
453 }
454 if (_argo1) {
455 if (_argo1 == Py_None) { _arg1 = NULL; }
456 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
457 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDynamicSashWindow_GetHScrollBar. Expected _wxWindow_p.");
458 return NULL;
459 }
460 }
461 {
462 PyThreadState* __tstate = wxPyBeginAllowThreads();
463 _result = (wxScrollBar *)wxDynamicSashWindow_GetHScrollBar(_arg0,_arg1);
464
465 wxPyEndAllowThreads(__tstate);
466 if (PyErr_Occurred()) return NULL;
467 } if (_result) {
468 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
469 _resultobj = Py_BuildValue("s",_ptemp);
470 } else {
471 Py_INCREF(Py_None);
472 _resultobj = Py_None;
473 }
474 return _resultobj;
475 }
476
477 #define wxDynamicSashWindow_GetVScrollBar(_swigobj,_swigarg0) (_swigobj->GetVScrollBar(_swigarg0))
478 static PyObject *_wrap_wxDynamicSashWindow_GetVScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
479 PyObject * _resultobj;
480 wxScrollBar * _result;
481 wxDynamicSashWindow * _arg0;
482 wxWindow * _arg1;
483 PyObject * _argo0 = 0;
484 PyObject * _argo1 = 0;
485 char *_kwnames[] = { "self","child", NULL };
486 char _ptemp[128];
487
488 self = self;
489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDynamicSashWindow_GetVScrollBar",_kwnames,&_argo0,&_argo1))
490 return NULL;
491 if (_argo0) {
492 if (_argo0 == Py_None) { _arg0 = NULL; }
493 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDynamicSashWindow_p")) {
494 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDynamicSashWindow_GetVScrollBar. Expected _wxDynamicSashWindow_p.");
495 return NULL;
496 }
497 }
498 if (_argo1) {
499 if (_argo1 == Py_None) { _arg1 = NULL; }
500 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
501 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDynamicSashWindow_GetVScrollBar. Expected _wxWindow_p.");
502 return NULL;
503 }
504 }
505 {
506 PyThreadState* __tstate = wxPyBeginAllowThreads();
507 _result = (wxScrollBar *)wxDynamicSashWindow_GetVScrollBar(_arg0,_arg1);
508
509 wxPyEndAllowThreads(__tstate);
510 if (PyErr_Occurred()) return NULL;
511 } if (_result) {
512 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrollBar_p");
513 _resultobj = Py_BuildValue("s",_ptemp);
514 } else {
515 Py_INCREF(Py_None);
516 _resultobj = Py_None;
517 }
518 return _resultobj;
519 }
520
521 static void *SwigwxEditableListBoxTowxPanel(void *ptr) {
522 wxEditableListBox *src;
523 wxPanel *dest;
524 src = (wxEditableListBox *) ptr;
525 dest = (wxPanel *) src;
526 return (void *) dest;
527 }
528
529 static void *SwigwxEditableListBoxTowxWindow(void *ptr) {
530 wxEditableListBox *src;
531 wxWindow *dest;
532 src = (wxEditableListBox *) ptr;
533 dest = (wxWindow *) src;
534 return (void *) dest;
535 }
536
537 static void *SwigwxEditableListBoxTowxEvtHandler(void *ptr) {
538 wxEditableListBox *src;
539 wxEvtHandler *dest;
540 src = (wxEditableListBox *) ptr;
541 dest = (wxEvtHandler *) src;
542 return (void *) dest;
543 }
544
545 static void *SwigwxEditableListBoxTowxObject(void *ptr) {
546 wxEditableListBox *src;
547 wxObject *dest;
548 src = (wxEditableListBox *) ptr;
549 dest = (wxObject *) src;
550 return (void *) dest;
551 }
552
553 #define new_wxEditableListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxEditableListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
554 static PyObject *_wrap_new_wxEditableListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
555 PyObject * _resultobj;
556 wxEditableListBox * _result;
557 wxWindow * _arg0;
558 wxWindowID _arg1;
559 wxString * _arg2;
560 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
561 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
562 long _arg5 = (long ) (wxEL_ALLOW_NEW)|(wxEL_ALLOW_EDIT)|(wxEL_ALLOW_DELETE);
563 wxString * _arg6 = (wxString *) &wxPyEditableListBoxNameStr;
564 PyObject * _argo0 = 0;
565 PyObject * _obj2 = 0;
566 wxPoint temp;
567 PyObject * _obj3 = 0;
568 wxSize temp0;
569 PyObject * _obj4 = 0;
570 PyObject * _obj6 = 0;
571 char *_kwnames[] = { "parent","id","label","pos","size","style","name", NULL };
572 char _ptemp[128];
573
574 self = self;
575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOlO:new_wxEditableListBox",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6))
576 return NULL;
577 if (_argo0) {
578 if (_argo0 == Py_None) { _arg0 = NULL; }
579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxEditableListBox. Expected _wxWindow_p.");
581 return NULL;
582 }
583 }
584 {
585 _arg2 = wxString_in_helper(_obj2);
586 if (_arg2 == NULL)
587 return NULL;
588 }
589 if (_obj3)
590 {
591 _arg3 = &temp;
592 if (! wxPoint_helper(_obj3, &_arg3))
593 return NULL;
594 }
595 if (_obj4)
596 {
597 _arg4 = &temp0;
598 if (! wxSize_helper(_obj4, &_arg4))
599 return NULL;
600 }
601 if (_obj6)
602 {
603 _arg6 = wxString_in_helper(_obj6);
604 if (_arg6 == NULL)
605 return NULL;
606 }
607 {
608 PyThreadState* __tstate = wxPyBeginAllowThreads();
609 _result = (wxEditableListBox *)new_wxEditableListBox(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6);
610
611 wxPyEndAllowThreads(__tstate);
612 if (PyErr_Occurred()) return NULL;
613 } if (_result) {
614 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEditableListBox_p");
615 _resultobj = Py_BuildValue("s",_ptemp);
616 } else {
617 Py_INCREF(Py_None);
618 _resultobj = Py_None;
619 }
620 {
621 if (_obj2)
622 delete _arg2;
623 }
624 {
625 if (_obj6)
626 delete _arg6;
627 }
628 return _resultobj;
629 }
630
631 #define wxEditableListBox_SetStrings(_swigobj,_swigarg0) (_swigobj->SetStrings(_swigarg0))
632 static PyObject *_wrap_wxEditableListBox_SetStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
633 PyObject * _resultobj;
634 wxEditableListBox * _arg0;
635 wxArrayString * _arg1;
636 PyObject * _argo0 = 0;
637 PyObject * _obj1 = 0;
638 char *_kwnames[] = { "self","strings", NULL };
639
640 self = self;
641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEditableListBox_SetStrings",_kwnames,&_argo0,&_obj1))
642 return NULL;
643 if (_argo0) {
644 if (_argo0 == Py_None) { _arg0 = NULL; }
645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) {
646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_SetStrings. Expected _wxEditableListBox_p.");
647 return NULL;
648 }
649 }
650 {
651 if (! PySequence_Check(_obj1)) {
652 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
653 return NULL;
654 }
655 _arg1 = new wxArrayString;
656 int i, len=PySequence_Length(_obj1);
657 for (i=0; i<len; i++) {
658 PyObject* item = PySequence_GetItem(_obj1, i);
659 #if wxUSE_UNICODE
660 PyObject* str = PyObject_Unicode(item);
661 #else
662 PyObject* str = PyObject_Str(item);
663 #endif
664 _arg1->Add(Py2wxString(str));
665 Py_DECREF(item);
666 Py_DECREF(str);
667 }
668 }
669 {
670 PyThreadState* __tstate = wxPyBeginAllowThreads();
671 wxEditableListBox_SetStrings(_arg0,*_arg1);
672
673 wxPyEndAllowThreads(__tstate);
674 if (PyErr_Occurred()) return NULL;
675 } Py_INCREF(Py_None);
676 _resultobj = Py_None;
677 {
678 if (_obj1)
679 delete _arg1;
680 }
681 return _resultobj;
682 }
683
684 static PyObject * wxEditableListBox_GetStrings(wxEditableListBox *self) {
685 wxArrayString strings;
686 self->GetStrings(strings);
687 return wxArrayString2PyList_helper(strings);
688 }
689 static PyObject *_wrap_wxEditableListBox_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
690 PyObject * _resultobj;
691 PyObject * _result;
692 wxEditableListBox * _arg0;
693 PyObject * _argo0 = 0;
694 char *_kwnames[] = { "self", NULL };
695
696 self = self;
697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEditableListBox_GetStrings",_kwnames,&_argo0))
698 return NULL;
699 if (_argo0) {
700 if (_argo0 == Py_None) { _arg0 = NULL; }
701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) {
702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_GetStrings. Expected _wxEditableListBox_p.");
703 return NULL;
704 }
705 }
706 {
707 PyThreadState* __tstate = wxPyBeginAllowThreads();
708 _result = (PyObject *)wxEditableListBox_GetStrings(_arg0);
709
710 wxPyEndAllowThreads(__tstate);
711 if (PyErr_Occurred()) return NULL;
712 }{
713 _resultobj = _result;
714 }
715 return _resultobj;
716 }
717
718 #define wxEditableListBox_GetListCtrl(_swigobj) (_swigobj->GetListCtrl())
719 static PyObject *_wrap_wxEditableListBox_GetListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
720 PyObject * _resultobj;
721 wxListCtrl * _result;
722 wxEditableListBox * _arg0;
723 PyObject * _argo0 = 0;
724 char *_kwnames[] = { "self", NULL };
725
726 self = self;
727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEditableListBox_GetListCtrl",_kwnames,&_argo0))
728 return NULL;
729 if (_argo0) {
730 if (_argo0 == Py_None) { _arg0 = NULL; }
731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) {
732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_GetListCtrl. Expected _wxEditableListBox_p.");
733 return NULL;
734 }
735 }
736 {
737 PyThreadState* __tstate = wxPyBeginAllowThreads();
738 _result = (wxListCtrl *)wxEditableListBox_GetListCtrl(_arg0);
739
740 wxPyEndAllowThreads(__tstate);
741 if (PyErr_Occurred()) return NULL;
742 }{ _resultobj = wxPyMake_wxObject(_result); }
743 return _resultobj;
744 }
745
746 #define wxEditableListBox_GetDelButton(_swigobj) (_swigobj->GetDelButton())
747 static PyObject *_wrap_wxEditableListBox_GetDelButton(PyObject *self, PyObject *args, PyObject *kwargs) {
748 PyObject * _resultobj;
749 wxBitmapButton * _result;
750 wxEditableListBox * _arg0;
751 PyObject * _argo0 = 0;
752 char *_kwnames[] = { "self", NULL };
753
754 self = self;
755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEditableListBox_GetDelButton",_kwnames,&_argo0))
756 return NULL;
757 if (_argo0) {
758 if (_argo0 == Py_None) { _arg0 = NULL; }
759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) {
760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_GetDelButton. Expected _wxEditableListBox_p.");
761 return NULL;
762 }
763 }
764 {
765 PyThreadState* __tstate = wxPyBeginAllowThreads();
766 _result = (wxBitmapButton *)wxEditableListBox_GetDelButton(_arg0);
767
768 wxPyEndAllowThreads(__tstate);
769 if (PyErr_Occurred()) return NULL;
770 }{ _resultobj = wxPyMake_wxObject(_result); }
771 return _resultobj;
772 }
773
774 #define wxEditableListBox_GetNewButton(_swigobj) (_swigobj->GetNewButton())
775 static PyObject *_wrap_wxEditableListBox_GetNewButton(PyObject *self, PyObject *args, PyObject *kwargs) {
776 PyObject * _resultobj;
777 wxBitmapButton * _result;
778 wxEditableListBox * _arg0;
779 PyObject * _argo0 = 0;
780 char *_kwnames[] = { "self", NULL };
781
782 self = self;
783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEditableListBox_GetNewButton",_kwnames,&_argo0))
784 return NULL;
785 if (_argo0) {
786 if (_argo0 == Py_None) { _arg0 = NULL; }
787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) {
788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_GetNewButton. Expected _wxEditableListBox_p.");
789 return NULL;
790 }
791 }
792 {
793 PyThreadState* __tstate = wxPyBeginAllowThreads();
794 _result = (wxBitmapButton *)wxEditableListBox_GetNewButton(_arg0);
795
796 wxPyEndAllowThreads(__tstate);
797 if (PyErr_Occurred()) return NULL;
798 }{ _resultobj = wxPyMake_wxObject(_result); }
799 return _resultobj;
800 }
801
802 #define wxEditableListBox_GetUpButton(_swigobj) (_swigobj->GetUpButton())
803 static PyObject *_wrap_wxEditableListBox_GetUpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
804 PyObject * _resultobj;
805 wxBitmapButton * _result;
806 wxEditableListBox * _arg0;
807 PyObject * _argo0 = 0;
808 char *_kwnames[] = { "self", NULL };
809
810 self = self;
811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEditableListBox_GetUpButton",_kwnames,&_argo0))
812 return NULL;
813 if (_argo0) {
814 if (_argo0 == Py_None) { _arg0 = NULL; }
815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) {
816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_GetUpButton. Expected _wxEditableListBox_p.");
817 return NULL;
818 }
819 }
820 {
821 PyThreadState* __tstate = wxPyBeginAllowThreads();
822 _result = (wxBitmapButton *)wxEditableListBox_GetUpButton(_arg0);
823
824 wxPyEndAllowThreads(__tstate);
825 if (PyErr_Occurred()) return NULL;
826 }{ _resultobj = wxPyMake_wxObject(_result); }
827 return _resultobj;
828 }
829
830 #define wxEditableListBox_GetDownButton(_swigobj) (_swigobj->GetDownButton())
831 static PyObject *_wrap_wxEditableListBox_GetDownButton(PyObject *self, PyObject *args, PyObject *kwargs) {
832 PyObject * _resultobj;
833 wxBitmapButton * _result;
834 wxEditableListBox * _arg0;
835 PyObject * _argo0 = 0;
836 char *_kwnames[] = { "self", NULL };
837
838 self = self;
839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEditableListBox_GetDownButton",_kwnames,&_argo0))
840 return NULL;
841 if (_argo0) {
842 if (_argo0 == Py_None) { _arg0 = NULL; }
843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) {
844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_GetDownButton. Expected _wxEditableListBox_p.");
845 return NULL;
846 }
847 }
848 {
849 PyThreadState* __tstate = wxPyBeginAllowThreads();
850 _result = (wxBitmapButton *)wxEditableListBox_GetDownButton(_arg0);
851
852 wxPyEndAllowThreads(__tstate);
853 if (PyErr_Occurred()) return NULL;
854 }{ _resultobj = wxPyMake_wxObject(_result); }
855 return _resultobj;
856 }
857
858 #define wxEditableListBox_GetEditButton(_swigobj) (_swigobj->GetEditButton())
859 static PyObject *_wrap_wxEditableListBox_GetEditButton(PyObject *self, PyObject *args, PyObject *kwargs) {
860 PyObject * _resultobj;
861 wxBitmapButton * _result;
862 wxEditableListBox * _arg0;
863 PyObject * _argo0 = 0;
864 char *_kwnames[] = { "self", NULL };
865
866 self = self;
867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEditableListBox_GetEditButton",_kwnames,&_argo0))
868 return NULL;
869 if (_argo0) {
870 if (_argo0 == Py_None) { _arg0 = NULL; }
871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEditableListBox_p")) {
872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEditableListBox_GetEditButton. Expected _wxEditableListBox_p.");
873 return NULL;
874 }
875 }
876 {
877 PyThreadState* __tstate = wxPyBeginAllowThreads();
878 _result = (wxBitmapButton *)wxEditableListBox_GetEditButton(_arg0);
879
880 wxPyEndAllowThreads(__tstate);
881 if (PyErr_Occurred()) return NULL;
882 }{ _resultobj = wxPyMake_wxObject(_result); }
883 return _resultobj;
884 }
885
886 static void *SwigwxRemotelyScrolledTreeCtrlTowxPyTreeCtrl(void *ptr) {
887 wxRemotelyScrolledTreeCtrl *src;
888 wxPyTreeCtrl *dest;
889 src = (wxRemotelyScrolledTreeCtrl *) ptr;
890 dest = (wxPyTreeCtrl *) src;
891 return (void *) dest;
892 }
893
894 static void *SwigwxRemotelyScrolledTreeCtrlTowxControl(void *ptr) {
895 wxRemotelyScrolledTreeCtrl *src;
896 wxControl *dest;
897 src = (wxRemotelyScrolledTreeCtrl *) ptr;
898 dest = (wxControl *) src;
899 return (void *) dest;
900 }
901
902 static void *SwigwxRemotelyScrolledTreeCtrlTowxWindow(void *ptr) {
903 wxRemotelyScrolledTreeCtrl *src;
904 wxWindow *dest;
905 src = (wxRemotelyScrolledTreeCtrl *) ptr;
906 dest = (wxWindow *) src;
907 return (void *) dest;
908 }
909
910 static void *SwigwxRemotelyScrolledTreeCtrlTowxEvtHandler(void *ptr) {
911 wxRemotelyScrolledTreeCtrl *src;
912 wxEvtHandler *dest;
913 src = (wxRemotelyScrolledTreeCtrl *) ptr;
914 dest = (wxEvtHandler *) src;
915 return (void *) dest;
916 }
917
918 static void *SwigwxRemotelyScrolledTreeCtrlTowxObject(void *ptr) {
919 wxRemotelyScrolledTreeCtrl *src;
920 wxObject *dest;
921 src = (wxRemotelyScrolledTreeCtrl *) ptr;
922 dest = (wxObject *) src;
923 return (void *) dest;
924 }
925
926 #define new_wxRemotelyScrolledTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxRemotelyScrolledTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
927 static PyObject *_wrap_new_wxRemotelyScrolledTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
928 PyObject * _resultobj;
929 wxRemotelyScrolledTreeCtrl * _result;
930 wxWindow * _arg0;
931 wxWindowID _arg1;
932 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
933 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
934 long _arg4 = (long ) wxTR_HAS_BUTTONS;
935 PyObject * _argo0 = 0;
936 wxPoint temp;
937 PyObject * _obj2 = 0;
938 wxSize temp0;
939 PyObject * _obj3 = 0;
940 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
941 char _ptemp[128];
942
943 self = self;
944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOl:new_wxRemotelyScrolledTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
945 return NULL;
946 if (_argo0) {
947 if (_argo0 == Py_None) { _arg0 = NULL; }
948 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRemotelyScrolledTreeCtrl. Expected _wxWindow_p.");
950 return NULL;
951 }
952 }
953 if (_obj2)
954 {
955 _arg2 = &temp;
956 if (! wxPoint_helper(_obj2, &_arg2))
957 return NULL;
958 }
959 if (_obj3)
960 {
961 _arg3 = &temp0;
962 if (! wxSize_helper(_obj3, &_arg3))
963 return NULL;
964 }
965 {
966 PyThreadState* __tstate = wxPyBeginAllowThreads();
967 _result = (wxRemotelyScrolledTreeCtrl *)new_wxRemotelyScrolledTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4);
968
969 wxPyEndAllowThreads(__tstate);
970 if (PyErr_Occurred()) return NULL;
971 } if (_result) {
972 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRemotelyScrolledTreeCtrl_p");
973 _resultobj = Py_BuildValue("s",_ptemp);
974 } else {
975 Py_INCREF(Py_None);
976 _resultobj = Py_None;
977 }
978 return _resultobj;
979 }
980
981 #define wxRemotelyScrolledTreeCtrl_HideVScrollbar(_swigobj) (_swigobj->HideVScrollbar())
982 static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_HideVScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
983 PyObject * _resultobj;
984 wxRemotelyScrolledTreeCtrl * _arg0;
985 PyObject * _argo0 = 0;
986 char *_kwnames[] = { "self", NULL };
987
988 self = self;
989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_HideVScrollbar",_kwnames,&_argo0))
990 return NULL;
991 if (_argo0) {
992 if (_argo0 == Py_None) { _arg0 = NULL; }
993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) {
994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_HideVScrollbar. Expected _wxRemotelyScrolledTreeCtrl_p.");
995 return NULL;
996 }
997 }
998 {
999 PyThreadState* __tstate = wxPyBeginAllowThreads();
1000 wxRemotelyScrolledTreeCtrl_HideVScrollbar(_arg0);
1001
1002 wxPyEndAllowThreads(__tstate);
1003 if (PyErr_Occurred()) return NULL;
1004 } Py_INCREF(Py_None);
1005 _resultobj = Py_None;
1006 return _resultobj;
1007 }
1008
1009 #define wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(_swigobj) (_swigobj->AdjustRemoteScrollbars())
1010 static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
1011 PyObject * _resultobj;
1012 wxRemotelyScrolledTreeCtrl * _arg0;
1013 PyObject * _argo0 = 0;
1014 char *_kwnames[] = { "self", NULL };
1015
1016 self = self;
1017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars",_kwnames,&_argo0))
1018 return NULL;
1019 if (_argo0) {
1020 if (_argo0 == Py_None) { _arg0 = NULL; }
1021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) {
1022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars. Expected _wxRemotelyScrolledTreeCtrl_p.");
1023 return NULL;
1024 }
1025 }
1026 {
1027 PyThreadState* __tstate = wxPyBeginAllowThreads();
1028 wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars(_arg0);
1029
1030 wxPyEndAllowThreads(__tstate);
1031 if (PyErr_Occurred()) return NULL;
1032 } Py_INCREF(Py_None);
1033 _resultobj = Py_None;
1034 return _resultobj;
1035 }
1036
1037 #define wxRemotelyScrolledTreeCtrl_GetScrolledWindow(_swigobj) (_swigobj->GetScrolledWindow())
1038 static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_GetScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1039 PyObject * _resultobj;
1040 wxScrolledWindow * _result;
1041 wxRemotelyScrolledTreeCtrl * _arg0;
1042 PyObject * _argo0 = 0;
1043 char *_kwnames[] = { "self", NULL };
1044 char _ptemp[128];
1045
1046 self = self;
1047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_GetScrolledWindow",_kwnames,&_argo0))
1048 return NULL;
1049 if (_argo0) {
1050 if (_argo0 == Py_None) { _arg0 = NULL; }
1051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) {
1052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_GetScrolledWindow. Expected _wxRemotelyScrolledTreeCtrl_p.");
1053 return NULL;
1054 }
1055 }
1056 {
1057 PyThreadState* __tstate = wxPyBeginAllowThreads();
1058 _result = (wxScrolledWindow *)wxRemotelyScrolledTreeCtrl_GetScrolledWindow(_arg0);
1059
1060 wxPyEndAllowThreads(__tstate);
1061 if (PyErr_Occurred()) return NULL;
1062 } if (_result) {
1063 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
1064 _resultobj = Py_BuildValue("s",_ptemp);
1065 } else {
1066 Py_INCREF(Py_None);
1067 _resultobj = Py_None;
1068 }
1069 return _resultobj;
1070 }
1071
1072 #define wxRemotelyScrolledTreeCtrl_ScrollToLine(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollToLine(_swigarg0,_swigarg1))
1073 static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) {
1074 PyObject * _resultobj;
1075 wxRemotelyScrolledTreeCtrl * _arg0;
1076 int _arg1;
1077 int _arg2;
1078 PyObject * _argo0 = 0;
1079 char *_kwnames[] = { "self","posHoriz","posVert", NULL };
1080
1081 self = self;
1082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRemotelyScrolledTreeCtrl_ScrollToLine",_kwnames,&_argo0,&_arg1,&_arg2))
1083 return NULL;
1084 if (_argo0) {
1085 if (_argo0 == Py_None) { _arg0 = NULL; }
1086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) {
1087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_ScrollToLine. Expected _wxRemotelyScrolledTreeCtrl_p.");
1088 return NULL;
1089 }
1090 }
1091 {
1092 PyThreadState* __tstate = wxPyBeginAllowThreads();
1093 wxRemotelyScrolledTreeCtrl_ScrollToLine(_arg0,_arg1,_arg2);
1094
1095 wxPyEndAllowThreads(__tstate);
1096 if (PyErr_Occurred()) return NULL;
1097 } Py_INCREF(Py_None);
1098 _resultobj = Py_None;
1099 return _resultobj;
1100 }
1101
1102 #define wxRemotelyScrolledTreeCtrl_SetCompanionWindow(_swigobj,_swigarg0) (_swigobj->SetCompanionWindow(_swigarg0))
1103 static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_SetCompanionWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1104 PyObject * _resultobj;
1105 wxRemotelyScrolledTreeCtrl * _arg0;
1106 wxWindow * _arg1;
1107 PyObject * _argo0 = 0;
1108 PyObject * _argo1 = 0;
1109 char *_kwnames[] = { "self","companion", NULL };
1110
1111 self = self;
1112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRemotelyScrolledTreeCtrl_SetCompanionWindow",_kwnames,&_argo0,&_argo1))
1113 return NULL;
1114 if (_argo0) {
1115 if (_argo0 == Py_None) { _arg0 = NULL; }
1116 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) {
1117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_SetCompanionWindow. Expected _wxRemotelyScrolledTreeCtrl_p.");
1118 return NULL;
1119 }
1120 }
1121 if (_argo1) {
1122 if (_argo1 == Py_None) { _arg1 = NULL; }
1123 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1124 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRemotelyScrolledTreeCtrl_SetCompanionWindow. Expected _wxWindow_p.");
1125 return NULL;
1126 }
1127 }
1128 {
1129 PyThreadState* __tstate = wxPyBeginAllowThreads();
1130 wxRemotelyScrolledTreeCtrl_SetCompanionWindow(_arg0,_arg1);
1131
1132 wxPyEndAllowThreads(__tstate);
1133 if (PyErr_Occurred()) return NULL;
1134 } Py_INCREF(Py_None);
1135 _resultobj = Py_None;
1136 return _resultobj;
1137 }
1138
1139 #define wxRemotelyScrolledTreeCtrl_GetCompanionWindow(_swigobj) (_swigobj->GetCompanionWindow())
1140 static PyObject *_wrap_wxRemotelyScrolledTreeCtrl_GetCompanionWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1141 PyObject * _resultobj;
1142 wxWindow * _result;
1143 wxRemotelyScrolledTreeCtrl * _arg0;
1144 PyObject * _argo0 = 0;
1145 char *_kwnames[] = { "self", NULL };
1146
1147 self = self;
1148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRemotelyScrolledTreeCtrl_GetCompanionWindow",_kwnames,&_argo0))
1149 return NULL;
1150 if (_argo0) {
1151 if (_argo0 == Py_None) { _arg0 = NULL; }
1152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRemotelyScrolledTreeCtrl_p")) {
1153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRemotelyScrolledTreeCtrl_GetCompanionWindow. Expected _wxRemotelyScrolledTreeCtrl_p.");
1154 return NULL;
1155 }
1156 }
1157 {
1158 PyThreadState* __tstate = wxPyBeginAllowThreads();
1159 _result = (wxWindow *)wxRemotelyScrolledTreeCtrl_GetCompanionWindow(_arg0);
1160
1161 wxPyEndAllowThreads(__tstate);
1162 if (PyErr_Occurred()) return NULL;
1163 }{ _resultobj = wxPyMake_wxObject(_result); }
1164 return _resultobj;
1165 }
1166
1167 static void *SwigwxPyTreeCompanionWindowTowxWindow(void *ptr) {
1168 wxPyTreeCompanionWindow *src;
1169 wxWindow *dest;
1170 src = (wxPyTreeCompanionWindow *) ptr;
1171 dest = (wxWindow *) src;
1172 return (void *) dest;
1173 }
1174
1175 static void *SwigwxPyTreeCompanionWindowTowxEvtHandler(void *ptr) {
1176 wxPyTreeCompanionWindow *src;
1177 wxEvtHandler *dest;
1178 src = (wxPyTreeCompanionWindow *) ptr;
1179 dest = (wxEvtHandler *) src;
1180 return (void *) dest;
1181 }
1182
1183 static void *SwigwxPyTreeCompanionWindowTowxObject(void *ptr) {
1184 wxPyTreeCompanionWindow *src;
1185 wxObject *dest;
1186 src = (wxPyTreeCompanionWindow *) ptr;
1187 dest = (wxObject *) src;
1188 return (void *) dest;
1189 }
1190
1191 #define new_wxTreeCompanionWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxPyTreeCompanionWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1192 static PyObject *_wrap_new_wxTreeCompanionWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1193 PyObject * _resultobj;
1194 wxPyTreeCompanionWindow * _result;
1195 wxWindow * _arg0;
1196 wxWindowID _arg1 = (wxWindowID ) -1;
1197 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
1198 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
1199 long _arg4 = (long ) 0;
1200 PyObject * _argo0 = 0;
1201 wxPoint temp;
1202 PyObject * _obj2 = 0;
1203 wxSize temp0;
1204 PyObject * _obj3 = 0;
1205 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
1206 char _ptemp[128];
1207
1208 self = self;
1209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxTreeCompanionWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
1210 return NULL;
1211 if (_argo0) {
1212 if (_argo0 == Py_None) { _arg0 = NULL; }
1213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCompanionWindow. Expected _wxWindow_p.");
1215 return NULL;
1216 }
1217 }
1218 if (_obj2)
1219 {
1220 _arg2 = &temp;
1221 if (! wxPoint_helper(_obj2, &_arg2))
1222 return NULL;
1223 }
1224 if (_obj3)
1225 {
1226 _arg3 = &temp0;
1227 if (! wxSize_helper(_obj3, &_arg3))
1228 return NULL;
1229 }
1230 {
1231 PyThreadState* __tstate = wxPyBeginAllowThreads();
1232 _result = (wxPyTreeCompanionWindow *)new_wxTreeCompanionWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4);
1233
1234 wxPyEndAllowThreads(__tstate);
1235 if (PyErr_Occurred()) return NULL;
1236 } if (_result) {
1237 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCompanionWindow_p");
1238 _resultobj = Py_BuildValue("s",_ptemp);
1239 } else {
1240 Py_INCREF(Py_None);
1241 _resultobj = Py_None;
1242 }
1243 return _resultobj;
1244 }
1245
1246 #define wxTreeCompanionWindow__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
1247 static PyObject *_wrap_wxTreeCompanionWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1248 PyObject * _resultobj;
1249 wxPyTreeCompanionWindow * _arg0;
1250 PyObject * _arg1;
1251 PyObject * _arg2;
1252 PyObject * _argo0 = 0;
1253 PyObject * _obj1 = 0;
1254 PyObject * _obj2 = 0;
1255 char *_kwnames[] = { "self","self","_class", NULL };
1256
1257 self = self;
1258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCompanionWindow__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
1259 return NULL;
1260 if (_argo0) {
1261 if (_argo0 == Py_None) { _arg0 = NULL; }
1262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCompanionWindow_p")) {
1263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCompanionWindow__setCallbackInfo. Expected _wxPyTreeCompanionWindow_p.");
1264 return NULL;
1265 }
1266 }
1267 {
1268 _arg1 = _obj1;
1269 }
1270 {
1271 _arg2 = _obj2;
1272 }
1273 {
1274 PyThreadState* __tstate = wxPyBeginAllowThreads();
1275 wxTreeCompanionWindow__setCallbackInfo(_arg0,_arg1,_arg2);
1276
1277 wxPyEndAllowThreads(__tstate);
1278 if (PyErr_Occurred()) return NULL;
1279 } Py_INCREF(Py_None);
1280 _resultobj = Py_None;
1281 return _resultobj;
1282 }
1283
1284 #define wxTreeCompanionWindow_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl())
1285 static PyObject *_wrap_wxTreeCompanionWindow_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
1286 PyObject * _resultobj;
1287 wxRemotelyScrolledTreeCtrl * _result;
1288 wxPyTreeCompanionWindow * _arg0;
1289 PyObject * _argo0 = 0;
1290 char *_kwnames[] = { "self", NULL };
1291 char _ptemp[128];
1292
1293 self = self;
1294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCompanionWindow_GetTreeCtrl",_kwnames,&_argo0))
1295 return NULL;
1296 if (_argo0) {
1297 if (_argo0 == Py_None) { _arg0 = NULL; }
1298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCompanionWindow_p")) {
1299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCompanionWindow_GetTreeCtrl. Expected _wxPyTreeCompanionWindow_p.");
1300 return NULL;
1301 }
1302 }
1303 {
1304 PyThreadState* __tstate = wxPyBeginAllowThreads();
1305 _result = (wxRemotelyScrolledTreeCtrl *)wxTreeCompanionWindow_GetTreeCtrl(_arg0);
1306
1307 wxPyEndAllowThreads(__tstate);
1308 if (PyErr_Occurred()) return NULL;
1309 } if (_result) {
1310 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRemotelyScrolledTreeCtrl_p");
1311 _resultobj = Py_BuildValue("s",_ptemp);
1312 } else {
1313 Py_INCREF(Py_None);
1314 _resultobj = Py_None;
1315 }
1316 return _resultobj;
1317 }
1318
1319 #define wxTreeCompanionWindow_SetTreeCtrl(_swigobj,_swigarg0) (_swigobj->SetTreeCtrl(_swigarg0))
1320 static PyObject *_wrap_wxTreeCompanionWindow_SetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
1321 PyObject * _resultobj;
1322 wxPyTreeCompanionWindow * _arg0;
1323 wxRemotelyScrolledTreeCtrl * _arg1;
1324 PyObject * _argo0 = 0;
1325 PyObject * _argo1 = 0;
1326 char *_kwnames[] = { "self","treeCtrl", NULL };
1327
1328 self = self;
1329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCompanionWindow_SetTreeCtrl",_kwnames,&_argo0,&_argo1))
1330 return NULL;
1331 if (_argo0) {
1332 if (_argo0 == Py_None) { _arg0 = NULL; }
1333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCompanionWindow_p")) {
1334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCompanionWindow_SetTreeCtrl. Expected _wxPyTreeCompanionWindow_p.");
1335 return NULL;
1336 }
1337 }
1338 if (_argo1) {
1339 if (_argo1 == Py_None) { _arg1 = NULL; }
1340 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRemotelyScrolledTreeCtrl_p")) {
1341 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCompanionWindow_SetTreeCtrl. Expected _wxRemotelyScrolledTreeCtrl_p.");
1342 return NULL;
1343 }
1344 }
1345 {
1346 PyThreadState* __tstate = wxPyBeginAllowThreads();
1347 wxTreeCompanionWindow_SetTreeCtrl(_arg0,_arg1);
1348
1349 wxPyEndAllowThreads(__tstate);
1350 if (PyErr_Occurred()) return NULL;
1351 } Py_INCREF(Py_None);
1352 _resultobj = Py_None;
1353 return _resultobj;
1354 }
1355
1356 static void *SwigwxThinSplitterWindowTowxSplitterWindow(void *ptr) {
1357 wxThinSplitterWindow *src;
1358 wxSplitterWindow *dest;
1359 src = (wxThinSplitterWindow *) ptr;
1360 dest = (wxSplitterWindow *) src;
1361 return (void *) dest;
1362 }
1363
1364 static void *SwigwxThinSplitterWindowTowxWindow(void *ptr) {
1365 wxThinSplitterWindow *src;
1366 wxWindow *dest;
1367 src = (wxThinSplitterWindow *) ptr;
1368 dest = (wxWindow *) src;
1369 return (void *) dest;
1370 }
1371
1372 static void *SwigwxThinSplitterWindowTowxEvtHandler(void *ptr) {
1373 wxThinSplitterWindow *src;
1374 wxEvtHandler *dest;
1375 src = (wxThinSplitterWindow *) ptr;
1376 dest = (wxEvtHandler *) src;
1377 return (void *) dest;
1378 }
1379
1380 static void *SwigwxThinSplitterWindowTowxObject(void *ptr) {
1381 wxThinSplitterWindow *src;
1382 wxObject *dest;
1383 src = (wxThinSplitterWindow *) ptr;
1384 dest = (wxObject *) src;
1385 return (void *) dest;
1386 }
1387
1388 #define new_wxThinSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxThinSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1389 static PyObject *_wrap_new_wxThinSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1390 PyObject * _resultobj;
1391 wxThinSplitterWindow * _result;
1392 wxWindow * _arg0;
1393 wxWindowID _arg1 = (wxWindowID ) -1;
1394 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
1395 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
1396 long _arg4 = (long ) wxSP_3D|wxCLIP_CHILDREN;
1397 PyObject * _argo0 = 0;
1398 wxPoint temp;
1399 PyObject * _obj2 = 0;
1400 wxSize temp0;
1401 PyObject * _obj3 = 0;
1402 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
1403 char _ptemp[128];
1404
1405 self = self;
1406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxThinSplitterWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
1407 return NULL;
1408 if (_argo0) {
1409 if (_argo0 == Py_None) { _arg0 = NULL; }
1410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxThinSplitterWindow. Expected _wxWindow_p.");
1412 return NULL;
1413 }
1414 }
1415 if (_obj2)
1416 {
1417 _arg2 = &temp;
1418 if (! wxPoint_helper(_obj2, &_arg2))
1419 return NULL;
1420 }
1421 if (_obj3)
1422 {
1423 _arg3 = &temp0;
1424 if (! wxSize_helper(_obj3, &_arg3))
1425 return NULL;
1426 }
1427 {
1428 PyThreadState* __tstate = wxPyBeginAllowThreads();
1429 _result = (wxThinSplitterWindow *)new_wxThinSplitterWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4);
1430
1431 wxPyEndAllowThreads(__tstate);
1432 if (PyErr_Occurred()) return NULL;
1433 } if (_result) {
1434 SWIG_MakePtr(_ptemp, (char *) _result,"_wxThinSplitterWindow_p");
1435 _resultobj = Py_BuildValue("s",_ptemp);
1436 } else {
1437 Py_INCREF(Py_None);
1438 _resultobj = Py_None;
1439 }
1440 return _resultobj;
1441 }
1442
1443 static void *SwigwxSplitterScrolledWindowTowxScrolledWindow(void *ptr) {
1444 wxSplitterScrolledWindow *src;
1445 wxScrolledWindow *dest;
1446 src = (wxSplitterScrolledWindow *) ptr;
1447 dest = (wxScrolledWindow *) src;
1448 return (void *) dest;
1449 }
1450
1451 static void *SwigwxSplitterScrolledWindowTowxPanel(void *ptr) {
1452 wxSplitterScrolledWindow *src;
1453 wxPanel *dest;
1454 src = (wxSplitterScrolledWindow *) ptr;
1455 dest = (wxPanel *) src;
1456 return (void *) dest;
1457 }
1458
1459 static void *SwigwxSplitterScrolledWindowTowxWindow(void *ptr) {
1460 wxSplitterScrolledWindow *src;
1461 wxWindow *dest;
1462 src = (wxSplitterScrolledWindow *) ptr;
1463 dest = (wxWindow *) src;
1464 return (void *) dest;
1465 }
1466
1467 static void *SwigwxSplitterScrolledWindowTowxEvtHandler(void *ptr) {
1468 wxSplitterScrolledWindow *src;
1469 wxEvtHandler *dest;
1470 src = (wxSplitterScrolledWindow *) ptr;
1471 dest = (wxEvtHandler *) src;
1472 return (void *) dest;
1473 }
1474
1475 static void *SwigwxSplitterScrolledWindowTowxObject(void *ptr) {
1476 wxSplitterScrolledWindow *src;
1477 wxObject *dest;
1478 src = (wxSplitterScrolledWindow *) ptr;
1479 dest = (wxObject *) src;
1480 return (void *) dest;
1481 }
1482
1483 #define new_wxSplitterScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxSplitterScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1484 static PyObject *_wrap_new_wxSplitterScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1485 PyObject * _resultobj;
1486 wxSplitterScrolledWindow * _result;
1487 wxWindow * _arg0;
1488 wxWindowID _arg1 = (wxWindowID ) -1;
1489 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
1490 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
1491 long _arg4 = (long ) 0;
1492 PyObject * _argo0 = 0;
1493 wxPoint temp;
1494 PyObject * _obj2 = 0;
1495 wxSize temp0;
1496 PyObject * _obj3 = 0;
1497 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
1498 char _ptemp[128];
1499
1500 self = self;
1501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxSplitterScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
1502 return NULL;
1503 if (_argo0) {
1504 if (_argo0 == Py_None) { _arg0 = NULL; }
1505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSplitterScrolledWindow. Expected _wxWindow_p.");
1507 return NULL;
1508 }
1509 }
1510 if (_obj2)
1511 {
1512 _arg2 = &temp;
1513 if (! wxPoint_helper(_obj2, &_arg2))
1514 return NULL;
1515 }
1516 if (_obj3)
1517 {
1518 _arg3 = &temp0;
1519 if (! wxSize_helper(_obj3, &_arg3))
1520 return NULL;
1521 }
1522 {
1523 PyThreadState* __tstate = wxPyBeginAllowThreads();
1524 _result = (wxSplitterScrolledWindow *)new_wxSplitterScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4);
1525
1526 wxPyEndAllowThreads(__tstate);
1527 if (PyErr_Occurred()) return NULL;
1528 } if (_result) {
1529 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSplitterScrolledWindow_p");
1530 _resultobj = Py_BuildValue("s",_ptemp);
1531 } else {
1532 Py_INCREF(Py_None);
1533 _resultobj = Py_None;
1534 }
1535 return _resultobj;
1536 }
1537
1538 static void *SwigwxLEDNumberCtrlTowxControl(void *ptr) {
1539 wxLEDNumberCtrl *src;
1540 wxControl *dest;
1541 src = (wxLEDNumberCtrl *) ptr;
1542 dest = (wxControl *) src;
1543 return (void *) dest;
1544 }
1545
1546 static void *SwigwxLEDNumberCtrlTowxWindow(void *ptr) {
1547 wxLEDNumberCtrl *src;
1548 wxWindow *dest;
1549 src = (wxLEDNumberCtrl *) ptr;
1550 dest = (wxWindow *) src;
1551 return (void *) dest;
1552 }
1553
1554 static void *SwigwxLEDNumberCtrlTowxEvtHandler(void *ptr) {
1555 wxLEDNumberCtrl *src;
1556 wxEvtHandler *dest;
1557 src = (wxLEDNumberCtrl *) ptr;
1558 dest = (wxEvtHandler *) src;
1559 return (void *) dest;
1560 }
1561
1562 static void *SwigwxLEDNumberCtrlTowxObject(void *ptr) {
1563 wxLEDNumberCtrl *src;
1564 wxObject *dest;
1565 src = (wxLEDNumberCtrl *) ptr;
1566 dest = (wxObject *) src;
1567 return (void *) dest;
1568 }
1569
1570 #define new_wxLEDNumberCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxLEDNumberCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1571 static PyObject *_wrap_new_wxLEDNumberCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
1572 PyObject * _resultobj;
1573 wxLEDNumberCtrl * _result;
1574 wxWindow * _arg0;
1575 wxWindowID _arg1 = (wxWindowID ) -1;
1576 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
1577 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
1578 long _arg4 = (long ) (wxLED_ALIGN_LEFT)|(wxLED_DRAW_FADED);
1579 PyObject * _argo0 = 0;
1580 wxPoint temp;
1581 PyObject * _obj2 = 0;
1582 wxSize temp0;
1583 PyObject * _obj3 = 0;
1584 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
1585 char _ptemp[128];
1586
1587 self = self;
1588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxLEDNumberCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
1589 return NULL;
1590 if (_argo0) {
1591 if (_argo0 == Py_None) { _arg0 = NULL; }
1592 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1593 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLEDNumberCtrl. Expected _wxWindow_p.");
1594 return NULL;
1595 }
1596 }
1597 if (_obj2)
1598 {
1599 _arg2 = &temp;
1600 if (! wxPoint_helper(_obj2, &_arg2))
1601 return NULL;
1602 }
1603 if (_obj3)
1604 {
1605 _arg3 = &temp0;
1606 if (! wxSize_helper(_obj3, &_arg3))
1607 return NULL;
1608 }
1609 {
1610 PyThreadState* __tstate = wxPyBeginAllowThreads();
1611 _result = (wxLEDNumberCtrl *)new_wxLEDNumberCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4);
1612
1613 wxPyEndAllowThreads(__tstate);
1614 if (PyErr_Occurred()) return NULL;
1615 } if (_result) {
1616 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLEDNumberCtrl_p");
1617 _resultobj = Py_BuildValue("s",_ptemp);
1618 } else {
1619 Py_INCREF(Py_None);
1620 _resultobj = Py_None;
1621 }
1622 return _resultobj;
1623 }
1624
1625 #define new_wxPreLEDNumberCtrl() (new wxLEDNumberCtrl())
1626 static PyObject *_wrap_new_wxPreLEDNumberCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
1627 PyObject * _resultobj;
1628 wxLEDNumberCtrl * _result;
1629 char *_kwnames[] = { NULL };
1630 char _ptemp[128];
1631
1632 self = self;
1633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreLEDNumberCtrl",_kwnames))
1634 return NULL;
1635 {
1636 PyThreadState* __tstate = wxPyBeginAllowThreads();
1637 _result = (wxLEDNumberCtrl *)new_wxPreLEDNumberCtrl();
1638
1639 wxPyEndAllowThreads(__tstate);
1640 if (PyErr_Occurred()) return NULL;
1641 } if (_result) {
1642 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLEDNumberCtrl_p");
1643 _resultobj = Py_BuildValue("s",_ptemp);
1644 } else {
1645 Py_INCREF(Py_None);
1646 _resultobj = Py_None;
1647 }
1648 return _resultobj;
1649 }
1650
1651 #define wxLEDNumberCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1652 static PyObject *_wrap_wxLEDNumberCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1653 PyObject * _resultobj;
1654 bool _result;
1655 wxLEDNumberCtrl * _arg0;
1656 wxWindow * _arg1;
1657 wxWindowID _arg2 = (wxWindowID ) -1;
1658 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1659 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1660 long _arg5 = (long ) (wxLED_ALIGN_LEFT)|(wxLED_DRAW_FADED);
1661 PyObject * _argo0 = 0;
1662 PyObject * _argo1 = 0;
1663 wxPoint temp;
1664 PyObject * _obj3 = 0;
1665 wxSize temp0;
1666 PyObject * _obj4 = 0;
1667 char *_kwnames[] = { "self","parent","id","pos","size","style", NULL };
1668
1669 self = self;
1670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxLEDNumberCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5))
1671 return NULL;
1672 if (_argo0) {
1673 if (_argo0 == Py_None) { _arg0 = NULL; }
1674 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) {
1675 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_Create. Expected _wxLEDNumberCtrl_p.");
1676 return NULL;
1677 }
1678 }
1679 if (_argo1) {
1680 if (_argo1 == Py_None) { _arg1 = NULL; }
1681 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1682 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLEDNumberCtrl_Create. Expected _wxWindow_p.");
1683 return NULL;
1684 }
1685 }
1686 if (_obj3)
1687 {
1688 _arg3 = &temp;
1689 if (! wxPoint_helper(_obj3, &_arg3))
1690 return NULL;
1691 }
1692 if (_obj4)
1693 {
1694 _arg4 = &temp0;
1695 if (! wxSize_helper(_obj4, &_arg4))
1696 return NULL;
1697 }
1698 {
1699 PyThreadState* __tstate = wxPyBeginAllowThreads();
1700 _result = (bool )wxLEDNumberCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5);
1701
1702 wxPyEndAllowThreads(__tstate);
1703 if (PyErr_Occurred()) return NULL;
1704 } _resultobj = Py_BuildValue("i",_result);
1705 return _resultobj;
1706 }
1707
1708 #define wxLEDNumberCtrl_GetAlignment(_swigobj) (_swigobj->GetAlignment())
1709 static PyObject *_wrap_wxLEDNumberCtrl_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
1710 PyObject * _resultobj;
1711 wxLEDValueAlign _result;
1712 wxLEDNumberCtrl * _arg0;
1713 PyObject * _argo0 = 0;
1714 char *_kwnames[] = { "self", NULL };
1715
1716 self = self;
1717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLEDNumberCtrl_GetAlignment",_kwnames,&_argo0))
1718 return NULL;
1719 if (_argo0) {
1720 if (_argo0 == Py_None) { _arg0 = NULL; }
1721 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) {
1722 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_GetAlignment. Expected _wxLEDNumberCtrl_p.");
1723 return NULL;
1724 }
1725 }
1726 {
1727 PyThreadState* __tstate = wxPyBeginAllowThreads();
1728 _result = (wxLEDValueAlign )wxLEDNumberCtrl_GetAlignment(_arg0);
1729
1730 wxPyEndAllowThreads(__tstate);
1731 if (PyErr_Occurred()) return NULL;
1732 } _resultobj = Py_BuildValue("i",_result);
1733 return _resultobj;
1734 }
1735
1736 #define wxLEDNumberCtrl_GetDrawFaded(_swigobj) (_swigobj->GetDrawFaded())
1737 static PyObject *_wrap_wxLEDNumberCtrl_GetDrawFaded(PyObject *self, PyObject *args, PyObject *kwargs) {
1738 PyObject * _resultobj;
1739 bool _result;
1740 wxLEDNumberCtrl * _arg0;
1741 PyObject * _argo0 = 0;
1742 char *_kwnames[] = { "self", NULL };
1743
1744 self = self;
1745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLEDNumberCtrl_GetDrawFaded",_kwnames,&_argo0))
1746 return NULL;
1747 if (_argo0) {
1748 if (_argo0 == Py_None) { _arg0 = NULL; }
1749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) {
1750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_GetDrawFaded. Expected _wxLEDNumberCtrl_p.");
1751 return NULL;
1752 }
1753 }
1754 {
1755 PyThreadState* __tstate = wxPyBeginAllowThreads();
1756 _result = (bool )wxLEDNumberCtrl_GetDrawFaded(_arg0);
1757
1758 wxPyEndAllowThreads(__tstate);
1759 if (PyErr_Occurred()) return NULL;
1760 } _resultobj = Py_BuildValue("i",_result);
1761 return _resultobj;
1762 }
1763
1764 #define wxLEDNumberCtrl_GetValue(_swigobj) (_swigobj->GetValue())
1765 static PyObject *_wrap_wxLEDNumberCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1766 PyObject * _resultobj;
1767 wxString * _result;
1768 wxLEDNumberCtrl * _arg0;
1769 PyObject * _argo0 = 0;
1770 char *_kwnames[] = { "self", NULL };
1771
1772 self = self;
1773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLEDNumberCtrl_GetValue",_kwnames,&_argo0))
1774 return NULL;
1775 if (_argo0) {
1776 if (_argo0 == Py_None) { _arg0 = NULL; }
1777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) {
1778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_GetValue. Expected _wxLEDNumberCtrl_p.");
1779 return NULL;
1780 }
1781 }
1782 {
1783 PyThreadState* __tstate = wxPyBeginAllowThreads();
1784 const wxString & _result_ref = wxLEDNumberCtrl_GetValue(_arg0);
1785 _result = (wxString *) &_result_ref;
1786
1787 wxPyEndAllowThreads(__tstate);
1788 if (PyErr_Occurred()) return NULL;
1789 }{
1790 #if wxUSE_UNICODE
1791 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
1792 #else
1793 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1794 #endif
1795 }
1796 return _resultobj;
1797 }
1798
1799 #define wxLEDNumberCtrl_SetAlignment(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAlignment(_swigarg0,_swigarg1))
1800 static PyObject *_wrap_wxLEDNumberCtrl_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
1801 PyObject * _resultobj;
1802 wxLEDNumberCtrl * _arg0;
1803 wxLEDValueAlign _arg1;
1804 bool _arg2 = (bool ) true;
1805 PyObject * _argo0 = 0;
1806 int tempbool2 = (int) true;
1807 char *_kwnames[] = { "self","Alignment","Redraw", NULL };
1808
1809 self = self;
1810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxLEDNumberCtrl_SetAlignment",_kwnames,&_argo0,&_arg1,&tempbool2))
1811 return NULL;
1812 if (_argo0) {
1813 if (_argo0 == Py_None) { _arg0 = NULL; }
1814 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) {
1815 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_SetAlignment. Expected _wxLEDNumberCtrl_p.");
1816 return NULL;
1817 }
1818 }
1819 _arg2 = (bool ) tempbool2;
1820 {
1821 PyThreadState* __tstate = wxPyBeginAllowThreads();
1822 wxLEDNumberCtrl_SetAlignment(_arg0,_arg1,_arg2);
1823
1824 wxPyEndAllowThreads(__tstate);
1825 if (PyErr_Occurred()) return NULL;
1826 } Py_INCREF(Py_None);
1827 _resultobj = Py_None;
1828 return _resultobj;
1829 }
1830
1831 #define wxLEDNumberCtrl_SetDrawFaded(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDrawFaded(_swigarg0,_swigarg1))
1832 static PyObject *_wrap_wxLEDNumberCtrl_SetDrawFaded(PyObject *self, PyObject *args, PyObject *kwargs) {
1833 PyObject * _resultobj;
1834 wxLEDNumberCtrl * _arg0;
1835 bool _arg1;
1836 bool _arg2 = (bool ) true;
1837 PyObject * _argo0 = 0;
1838 int tempbool1;
1839 int tempbool2 = (int) true;
1840 char *_kwnames[] = { "self","DrawFaded","Redraw", NULL };
1841
1842 self = self;
1843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxLEDNumberCtrl_SetDrawFaded",_kwnames,&_argo0,&tempbool1,&tempbool2))
1844 return NULL;
1845 if (_argo0) {
1846 if (_argo0 == Py_None) { _arg0 = NULL; }
1847 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) {
1848 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_SetDrawFaded. Expected _wxLEDNumberCtrl_p.");
1849 return NULL;
1850 }
1851 }
1852 _arg1 = (bool ) tempbool1;
1853 _arg2 = (bool ) tempbool2;
1854 {
1855 PyThreadState* __tstate = wxPyBeginAllowThreads();
1856 wxLEDNumberCtrl_SetDrawFaded(_arg0,_arg1,_arg2);
1857
1858 wxPyEndAllowThreads(__tstate);
1859 if (PyErr_Occurred()) return NULL;
1860 } Py_INCREF(Py_None);
1861 _resultobj = Py_None;
1862 return _resultobj;
1863 }
1864
1865 #define wxLEDNumberCtrl_SetValue(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetValue(_swigarg0,_swigarg1))
1866 static PyObject *_wrap_wxLEDNumberCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1867 PyObject * _resultobj;
1868 wxLEDNumberCtrl * _arg0;
1869 wxString * _arg1;
1870 bool _arg2 = (bool ) true;
1871 PyObject * _argo0 = 0;
1872 PyObject * _obj1 = 0;
1873 int tempbool2 = (int) true;
1874 char *_kwnames[] = { "self","Value","Redraw", NULL };
1875
1876 self = self;
1877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxLEDNumberCtrl_SetValue",_kwnames,&_argo0,&_obj1,&tempbool2))
1878 return NULL;
1879 if (_argo0) {
1880 if (_argo0 == Py_None) { _arg0 = NULL; }
1881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLEDNumberCtrl_p")) {
1882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLEDNumberCtrl_SetValue. Expected _wxLEDNumberCtrl_p.");
1883 return NULL;
1884 }
1885 }
1886 {
1887 _arg1 = wxString_in_helper(_obj1);
1888 if (_arg1 == NULL)
1889 return NULL;
1890 }
1891 _arg2 = (bool ) tempbool2;
1892 {
1893 PyThreadState* __tstate = wxPyBeginAllowThreads();
1894 wxLEDNumberCtrl_SetValue(_arg0,*_arg1,_arg2);
1895
1896 wxPyEndAllowThreads(__tstate);
1897 if (PyErr_Occurred()) return NULL;
1898 } Py_INCREF(Py_None);
1899 _resultobj = Py_None;
1900 {
1901 if (_obj1)
1902 delete _arg1;
1903 }
1904 return _resultobj;
1905 }
1906
1907 static PyMethodDef gizmoscMethods[] = {
1908 { "wxLEDNumberCtrl_SetValue", (PyCFunction) _wrap_wxLEDNumberCtrl_SetValue, METH_VARARGS | METH_KEYWORDS },
1909 { "wxLEDNumberCtrl_SetDrawFaded", (PyCFunction) _wrap_wxLEDNumberCtrl_SetDrawFaded, METH_VARARGS | METH_KEYWORDS },
1910 { "wxLEDNumberCtrl_SetAlignment", (PyCFunction) _wrap_wxLEDNumberCtrl_SetAlignment, METH_VARARGS | METH_KEYWORDS },
1911 { "wxLEDNumberCtrl_GetValue", (PyCFunction) _wrap_wxLEDNumberCtrl_GetValue, METH_VARARGS | METH_KEYWORDS },
1912 { "wxLEDNumberCtrl_GetDrawFaded", (PyCFunction) _wrap_wxLEDNumberCtrl_GetDrawFaded, METH_VARARGS | METH_KEYWORDS },
1913 { "wxLEDNumberCtrl_GetAlignment", (PyCFunction) _wrap_wxLEDNumberCtrl_GetAlignment, METH_VARARGS | METH_KEYWORDS },
1914 { "wxLEDNumberCtrl_Create", (PyCFunction) _wrap_wxLEDNumberCtrl_Create, METH_VARARGS | METH_KEYWORDS },
1915 { "new_wxPreLEDNumberCtrl", (PyCFunction) _wrap_new_wxPreLEDNumberCtrl, METH_VARARGS | METH_KEYWORDS },
1916 { "new_wxLEDNumberCtrl", (PyCFunction) _wrap_new_wxLEDNumberCtrl, METH_VARARGS | METH_KEYWORDS },
1917 { "new_wxSplitterScrolledWindow", (PyCFunction) _wrap_new_wxSplitterScrolledWindow, METH_VARARGS | METH_KEYWORDS },
1918 { "new_wxThinSplitterWindow", (PyCFunction) _wrap_new_wxThinSplitterWindow, METH_VARARGS | METH_KEYWORDS },
1919 { "wxTreeCompanionWindow_SetTreeCtrl", (PyCFunction) _wrap_wxTreeCompanionWindow_SetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
1920 { "wxTreeCompanionWindow_GetTreeCtrl", (PyCFunction) _wrap_wxTreeCompanionWindow_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
1921 { "wxTreeCompanionWindow__setCallbackInfo", (PyCFunction) _wrap_wxTreeCompanionWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
1922 { "new_wxTreeCompanionWindow", (PyCFunction) _wrap_new_wxTreeCompanionWindow, METH_VARARGS | METH_KEYWORDS },
1923 { "wxRemotelyScrolledTreeCtrl_GetCompanionWindow", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_GetCompanionWindow, METH_VARARGS | METH_KEYWORDS },
1924 { "wxRemotelyScrolledTreeCtrl_SetCompanionWindow", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_SetCompanionWindow, METH_VARARGS | METH_KEYWORDS },
1925 { "wxRemotelyScrolledTreeCtrl_ScrollToLine", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_ScrollToLine, METH_VARARGS | METH_KEYWORDS },
1926 { "wxRemotelyScrolledTreeCtrl_GetScrolledWindow", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_GetScrolledWindow, METH_VARARGS | METH_KEYWORDS },
1927 { "wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars, METH_VARARGS | METH_KEYWORDS },
1928 { "wxRemotelyScrolledTreeCtrl_HideVScrollbar", (PyCFunction) _wrap_wxRemotelyScrolledTreeCtrl_HideVScrollbar, METH_VARARGS | METH_KEYWORDS },
1929 { "new_wxRemotelyScrolledTreeCtrl", (PyCFunction) _wrap_new_wxRemotelyScrolledTreeCtrl, METH_VARARGS | METH_KEYWORDS },
1930 { "wxEditableListBox_GetEditButton", (PyCFunction) _wrap_wxEditableListBox_GetEditButton, METH_VARARGS | METH_KEYWORDS },
1931 { "wxEditableListBox_GetDownButton", (PyCFunction) _wrap_wxEditableListBox_GetDownButton, METH_VARARGS | METH_KEYWORDS },
1932 { "wxEditableListBox_GetUpButton", (PyCFunction) _wrap_wxEditableListBox_GetUpButton, METH_VARARGS | METH_KEYWORDS },
1933 { "wxEditableListBox_GetNewButton", (PyCFunction) _wrap_wxEditableListBox_GetNewButton, METH_VARARGS | METH_KEYWORDS },
1934 { "wxEditableListBox_GetDelButton", (PyCFunction) _wrap_wxEditableListBox_GetDelButton, METH_VARARGS | METH_KEYWORDS },
1935 { "wxEditableListBox_GetListCtrl", (PyCFunction) _wrap_wxEditableListBox_GetListCtrl, METH_VARARGS | METH_KEYWORDS },
1936 { "wxEditableListBox_GetStrings", (PyCFunction) _wrap_wxEditableListBox_GetStrings, METH_VARARGS | METH_KEYWORDS },
1937 { "wxEditableListBox_SetStrings", (PyCFunction) _wrap_wxEditableListBox_SetStrings, METH_VARARGS | METH_KEYWORDS },
1938 { "new_wxEditableListBox", (PyCFunction) _wrap_new_wxEditableListBox, METH_VARARGS | METH_KEYWORDS },
1939 { "wxDynamicSashWindow_GetVScrollBar", (PyCFunction) _wrap_wxDynamicSashWindow_GetVScrollBar, METH_VARARGS | METH_KEYWORDS },
1940 { "wxDynamicSashWindow_GetHScrollBar", (PyCFunction) _wrap_wxDynamicSashWindow_GetHScrollBar, METH_VARARGS | METH_KEYWORDS },
1941 { "wxDynamicSashWindow_Create", (PyCFunction) _wrap_wxDynamicSashWindow_Create, METH_VARARGS | METH_KEYWORDS },
1942 { "new_wxPreDynamicSashWindow", (PyCFunction) _wrap_new_wxPreDynamicSashWindow, METH_VARARGS | METH_KEYWORDS },
1943 { "new_wxDynamicSashWindow", (PyCFunction) _wrap_new_wxDynamicSashWindow, METH_VARARGS | METH_KEYWORDS },
1944 { "new_wxDynamicSashUnifyEvent", (PyCFunction) _wrap_new_wxDynamicSashUnifyEvent, METH_VARARGS | METH_KEYWORDS },
1945 { "new_wxDynamicSashSplitEvent", (PyCFunction) _wrap_new_wxDynamicSashSplitEvent, METH_VARARGS | METH_KEYWORDS },
1946 { NULL, NULL }
1947 };
1948 #ifdef __cplusplus
1949 }
1950 #endif
1951 /*
1952 * This table is used by the pointer type-checker
1953 */
1954 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1955 { "_wxEvent","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxEvent},
1956 { "_wxEvent","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxEvent},
1957 { "_signed_long","_long",0},
1958 { "_wxPrintQuality","_wxCoord",0},
1959 { "_wxPrintQuality","_int",0},
1960 { "_wxPrintQuality","_signed_int",0},
1961 { "_wxPrintQuality","_unsigned_int",0},
1962 { "_wxPrintQuality","_wxWindowID",0},
1963 { "_wxPrintQuality","_uint",0},
1964 { "_wxPrintQuality","_EBool",0},
1965 { "_wxPrintQuality","_size_t",0},
1966 { "_wxPrintQuality","_time_t",0},
1967 { "_wxPyTreeCtrl","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxPyTreeCtrl},
1968 { "_byte","_unsigned_char",0},
1969 { "_long","_unsigned_long",0},
1970 { "_long","_signed_long",0},
1971 { "_size_t","_wxCoord",0},
1972 { "_size_t","_wxPrintQuality",0},
1973 { "_size_t","_time_t",0},
1974 { "_size_t","_unsigned_int",0},
1975 { "_size_t","_int",0},
1976 { "_size_t","_wxWindowID",0},
1977 { "_size_t","_uint",0},
1978 { "_wxPanel","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxPanel},
1979 { "_wxPanel","_wxEditableListBox",SwigwxEditableListBoxTowxPanel},
1980 { "_uint","_wxCoord",0},
1981 { "_uint","_wxPrintQuality",0},
1982 { "_uint","_time_t",0},
1983 { "_uint","_size_t",0},
1984 { "_uint","_unsigned_int",0},
1985 { "_uint","_int",0},
1986 { "_uint","_wxWindowID",0},
1987 { "_wxChar","_char",0},
1988 { "_wxCommandEvent","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxCommandEvent},
1989 { "_wxCommandEvent","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxCommandEvent},
1990 { "_char","_wxChar",0},
1991 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1992 { "_EBool","_wxCoord",0},
1993 { "_EBool","_wxPrintQuality",0},
1994 { "_EBool","_signed_int",0},
1995 { "_EBool","_int",0},
1996 { "_EBool","_wxWindowID",0},
1997 { "_unsigned_long","_long",0},
1998 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1999 { "_signed_int","_wxCoord",0},
2000 { "_signed_int","_wxPrintQuality",0},
2001 { "_signed_int","_EBool",0},
2002 { "_signed_int","_wxWindowID",0},
2003 { "_signed_int","_int",0},
2004 { "_WXTYPE","_wxDateTime_t",0},
2005 { "_WXTYPE","_short",0},
2006 { "_WXTYPE","_signed_short",0},
2007 { "_WXTYPE","_unsigned_short",0},
2008 { "_unsigned_short","_wxDateTime_t",0},
2009 { "_unsigned_short","_WXTYPE",0},
2010 { "_unsigned_short","_short",0},
2011 { "_wxSplitterWindow","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxSplitterWindow},
2012 { "_wxObject","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxObject},
2013 { "_wxObject","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxObject},
2014 { "_wxObject","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxObject},
2015 { "_wxObject","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxObject},
2016 { "_wxObject","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxObject},
2017 { "_wxObject","_wxEditableListBox",SwigwxEditableListBoxTowxObject},
2018 { "_wxObject","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxObject},
2019 { "_wxObject","_wxDynamicSashUnifyEvent",SwigwxDynamicSashUnifyEventTowxObject},
2020 { "_wxObject","_wxDynamicSashSplitEvent",SwigwxDynamicSashSplitEventTowxObject},
2021 { "_signed_short","_WXTYPE",0},
2022 { "_signed_short","_short",0},
2023 { "_wxScrolledWindow","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxScrolledWindow},
2024 { "_unsigned_char","_byte",0},
2025 { "_wxControl","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxControl},
2026 { "_wxControl","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxControl},
2027 { "_unsigned_int","_wxCoord",0},
2028 { "_unsigned_int","_wxPrintQuality",0},
2029 { "_unsigned_int","_time_t",0},
2030 { "_unsigned_int","_size_t",0},
2031 { "_unsigned_int","_uint",0},
2032 { "_unsigned_int","_wxWindowID",0},
2033 { "_unsigned_int","_int",0},
2034 { "_short","_wxDateTime_t",0},
2035 { "_short","_WXTYPE",0},
2036 { "_short","_unsigned_short",0},
2037 { "_short","_signed_short",0},
2038 { "_wxWindowID","_wxCoord",0},
2039 { "_wxWindowID","_wxPrintQuality",0},
2040 { "_wxWindowID","_time_t",0},
2041 { "_wxWindowID","_size_t",0},
2042 { "_wxWindowID","_EBool",0},
2043 { "_wxWindowID","_uint",0},
2044 { "_wxWindowID","_int",0},
2045 { "_wxWindowID","_signed_int",0},
2046 { "_wxWindowID","_unsigned_int",0},
2047 { "_int","_wxCoord",0},
2048 { "_int","_wxPrintQuality",0},
2049 { "_int","_time_t",0},
2050 { "_int","_size_t",0},
2051 { "_int","_EBool",0},
2052 { "_int","_uint",0},
2053 { "_int","_wxWindowID",0},
2054 { "_int","_unsigned_int",0},
2055 { "_int","_signed_int",0},
2056 { "_wxDateTime_t","_unsigned_short",0},
2057 { "_wxDateTime_t","_short",0},
2058 { "_wxDateTime_t","_WXTYPE",0},
2059 { "_time_t","_wxCoord",0},
2060 { "_time_t","_wxPrintQuality",0},
2061 { "_time_t","_unsigned_int",0},
2062 { "_time_t","_int",0},
2063 { "_time_t","_wxWindowID",0},
2064 { "_time_t","_uint",0},
2065 { "_time_t","_size_t",0},
2066 { "_wxCoord","_int",0},
2067 { "_wxCoord","_signed_int",0},
2068 { "_wxCoord","_unsigned_int",0},
2069 { "_wxCoord","_wxWindowID",0},
2070 { "_wxCoord","_uint",0},
2071 { "_wxCoord","_EBool",0},
2072 { "_wxCoord","_size_t",0},
2073 { "_wxCoord","_time_t",0},
2074 { "_wxCoord","_wxPrintQuality",0},
2075 { "_wxEvtHandler","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxEvtHandler},
2076 { "_wxEvtHandler","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxEvtHandler},
2077 { "_wxEvtHandler","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxEvtHandler},
2078 { "_wxEvtHandler","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxEvtHandler},
2079 { "_wxEvtHandler","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxEvtHandler},
2080 { "_wxEvtHandler","_wxEditableListBox",SwigwxEditableListBoxTowxEvtHandler},
2081 { "_wxEvtHandler","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxEvtHandler},
2082 { "_wxWindow","_wxLEDNumberCtrl",SwigwxLEDNumberCtrlTowxWindow},
2083 { "_wxWindow","_wxSplitterScrolledWindow",SwigwxSplitterScrolledWindowTowxWindow},
2084 { "_wxWindow","_wxThinSplitterWindow",SwigwxThinSplitterWindowTowxWindow},
2085 { "_wxWindow","_wxPyTreeCompanionWindow",SwigwxPyTreeCompanionWindowTowxWindow},
2086 { "_wxWindow","_wxRemotelyScrolledTreeCtrl",SwigwxRemotelyScrolledTreeCtrlTowxWindow},
2087 { "_wxWindow","_wxEditableListBox",SwigwxEditableListBoxTowxWindow},
2088 { "_wxWindow","_wxDynamicSashWindow",SwigwxDynamicSashWindowTowxWindow},
2089 {0,0,0}};
2090
2091 static PyObject *SWIG_globals;
2092 #ifdef __cplusplus
2093 extern "C"
2094 #endif
2095 SWIGEXPORT(void) initgizmosc() {
2096 PyObject *m, *d;
2097 SWIG_globals = SWIG_newvarlink();
2098 m = Py_InitModule("gizmosc", gizmoscMethods);
2099 d = PyModule_GetDict(m);
2100 PyDict_SetItemString(d,"wxEVT_DYNAMIC_SASH_SPLIT", PyInt_FromLong((long) wxEVT_DYNAMIC_SASH_SPLIT));
2101 PyDict_SetItemString(d,"wxEVT_DYNAMIC_SASH_UNIFY", PyInt_FromLong((long) wxEVT_DYNAMIC_SASH_UNIFY));
2102 PyDict_SetItemString(d,"wxDS_MANAGE_SCROLLBARS", PyInt_FromLong((long) wxDS_MANAGE_SCROLLBARS));
2103 PyDict_SetItemString(d,"wxDS_DRAG_CORNER", PyInt_FromLong((long) wxDS_DRAG_CORNER));
2104 PyDict_SetItemString(d,"wxEL_ALLOW_NEW", PyInt_FromLong((long) wxEL_ALLOW_NEW));
2105 PyDict_SetItemString(d,"wxEL_ALLOW_EDIT", PyInt_FromLong((long) wxEL_ALLOW_EDIT));
2106 PyDict_SetItemString(d,"wxEL_ALLOW_DELETE", PyInt_FromLong((long) wxEL_ALLOW_DELETE));
2107 PyDict_SetItemString(d,"wxLED_ALIGN_LEFT", PyInt_FromLong((long) wxLED_ALIGN_LEFT));
2108 PyDict_SetItemString(d,"wxLED_ALIGN_RIGHT", PyInt_FromLong((long) wxLED_ALIGN_RIGHT));
2109 PyDict_SetItemString(d,"wxLED_ALIGN_CENTER", PyInt_FromLong((long) wxLED_ALIGN_CENTER));
2110 PyDict_SetItemString(d,"wxLED_ALIGN_MASK", PyInt_FromLong((long) wxLED_ALIGN_MASK));
2111 PyDict_SetItemString(d,"wxLED_DRAW_FADED", PyInt_FromLong((long) wxLED_DRAW_FADED));
2112
2113
2114 wxClassInfo::CleanUpClasses();
2115 wxClassInfo::InitializeClasses();
2116
2117 wxPyPtrTypeMap_Add("wxTreeCompanionWindow", "wxPyTreeCompanionWindow");
2118 {
2119 int i;
2120 for (i = 0; _swig_mapping[i].n1; i++)
2121 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2122 }
2123 }