]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/stattool.cpp
Using a new version of SWIG
[wxWidgets.git] / utils / wxPython / src / gtk / stattool.cpp
1 /*
2 * FILE : gtk/stattool.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 6)
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 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initstattoolc
53
54 #define SWIG_name "stattoolc"
55
56 #include "helpers.h"
57 #include <wx/toolbar.h>
58 #include <wx/tbarsmpl.h>
59
60 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
61 PyObject* o2;
62 PyObject* o3;
63 if (!target) {
64 target = o;
65 } else if (target == Py_None) {
66 Py_DECREF(Py_None);
67 target = o;
68 } else {
69 if (!PyList_Check(target)) {
70 o2 = target;
71 target = PyList_New(0);
72 PyList_Append(target, o2);
73 Py_XDECREF(o2);
74 }
75 PyList_Append(target,o);
76 Py_XDECREF(o);
77 }
78 return target;
79 }
80
81 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
82 PyObject* o2;
83 PyObject* o3;
84
85 if (!target) {
86 target = o;
87 } else if (target == Py_None) {
88 Py_DECREF(Py_None);
89 target = o;
90 } else {
91 if (!PyTuple_Check(target)) {
92 o2 = target;
93 target = PyTuple_New(1);
94 PyTuple_SetItem(target, 0, o2);
95 }
96 o3 = PyTuple_New(1);
97 PyTuple_SetItem(o3, 0, o);
98
99 o2 = target;
100 target = PySequence_Concat(o2, o3);
101 Py_DECREF(o2);
102 Py_DECREF(o3);
103 }
104 return target;
105 }
106
107
108 extern byte* byte_LIST_helper(PyObject* source);
109 extern int* int_LIST_helper(PyObject* source);
110 extern long* long_LIST_helper(PyObject* source);
111 extern char** string_LIST_helper(PyObject* source);
112 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
113 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
114 extern wxString* wxString_LIST_helper(PyObject* source);
115 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
116
117
118 static char* wxStringErrorMsg = "string type is required for parameter";
119 #ifdef __cplusplus
120 extern "C" {
121 #endif
122 static void *SwigwxStatusBarTowxWindow(void *ptr) {
123 wxStatusBar *src;
124 wxWindow *dest;
125 src = (wxStatusBar *) ptr;
126 dest = (wxWindow *) src;
127 return (void *) dest;
128 }
129
130 static void *SwigwxStatusBarTowxEvtHandler(void *ptr) {
131 wxStatusBar *src;
132 wxEvtHandler *dest;
133 src = (wxStatusBar *) ptr;
134 dest = (wxEvtHandler *) src;
135 return (void *) dest;
136 }
137
138 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
139 static PyObject *_wrap_new_wxStatusBar(PyObject *self, PyObject *args) {
140 PyObject * _resultobj;
141 wxStatusBar * _result;
142 wxWindow * _arg0;
143 wxWindowID _arg1;
144 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
145 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
146 long _arg4 = (long ) wxST_SIZEGRIP;
147 char * _arg5 = (char *) "statusBar";
148 PyObject * _argo0 = 0;
149 PyObject * _argo2 = 0;
150 PyObject * _argo3 = 0;
151 char _ptemp[128];
152
153 self = self;
154 if(!PyArg_ParseTuple(args,"Oi|OOls:new_wxStatusBar",&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_arg5))
155 return NULL;
156 if (_argo0) {
157 if (_argo0 == Py_None) { _arg0 = NULL; }
158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
160 return NULL;
161 }
162 }
163 if (_argo2) {
164 if (_argo2 == Py_None) { _arg2 = NULL; }
165 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
166 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStatusBar. Expected _wxPoint_p.");
167 return NULL;
168 }
169 }
170 if (_argo3) {
171 if (_argo3 == Py_None) { _arg3 = NULL; }
172 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxSize_p")) {
173 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxStatusBar. Expected _wxSize_p.");
174 return NULL;
175 }
176 }
177 {
178 wxPy_BEGIN_ALLOW_THREADS;
179 _result = (wxStatusBar *)new_wxStatusBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
180
181 wxPy_END_ALLOW_THREADS;
182 } if (_result) {
183 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
184 _resultobj = Py_BuildValue("s",_ptemp);
185 } else {
186 Py_INCREF(Py_None);
187 _resultobj = Py_None;
188 }
189 return _resultobj;
190 }
191
192 static wxRect * wxStatusBar_GetFieldRect(wxStatusBar *self,long item) {
193 wxRect* rect= new wxRect;
194 self->GetFieldRect(item, *rect);
195 return rect;
196 }
197 static PyObject *_wrap_wxStatusBar_GetFieldRect(PyObject *self, PyObject *args) {
198 PyObject * _resultobj;
199 wxRect * _result;
200 wxStatusBar * _arg0;
201 long _arg1;
202 PyObject * _argo0 = 0;
203 char _ptemp[128];
204
205 self = self;
206 if(!PyArg_ParseTuple(args,"Ol:wxStatusBar_GetFieldRect",&_argo0,&_arg1))
207 return NULL;
208 if (_argo0) {
209 if (_argo0 == Py_None) { _arg0 = NULL; }
210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
212 return NULL;
213 }
214 }
215 {
216 wxPy_BEGIN_ALLOW_THREADS;
217 _result = (wxRect *)wxStatusBar_GetFieldRect(_arg0,_arg1);
218
219 wxPy_END_ALLOW_THREADS;
220 } if (_result) {
221 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
222 _resultobj = Py_BuildValue("s",_ptemp);
223 } else {
224 Py_INCREF(Py_None);
225 _resultobj = Py_None;
226 }
227 return _resultobj;
228 }
229
230 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
231 static PyObject *_wrap_wxStatusBar_GetFieldsCount(PyObject *self, PyObject *args) {
232 PyObject * _resultobj;
233 int _result;
234 wxStatusBar * _arg0;
235 PyObject * _argo0 = 0;
236
237 self = self;
238 if(!PyArg_ParseTuple(args,"O:wxStatusBar_GetFieldsCount",&_argo0))
239 return NULL;
240 if (_argo0) {
241 if (_argo0 == Py_None) { _arg0 = NULL; }
242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
244 return NULL;
245 }
246 }
247 {
248 wxPy_BEGIN_ALLOW_THREADS;
249 _result = (int )wxStatusBar_GetFieldsCount(_arg0);
250
251 wxPy_END_ALLOW_THREADS;
252 } _resultobj = Py_BuildValue("i",_result);
253 return _resultobj;
254 }
255
256 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
257 static PyObject *_wrap_wxStatusBar_GetStatusText(PyObject *self, PyObject *args) {
258 PyObject * _resultobj;
259 wxString * _result;
260 wxStatusBar * _arg0;
261 int _arg1 = (int ) 0;
262 PyObject * _argo0 = 0;
263
264 self = self;
265 if(!PyArg_ParseTuple(args,"O|i:wxStatusBar_GetStatusText",&_argo0,&_arg1))
266 return NULL;
267 if (_argo0) {
268 if (_argo0 == Py_None) { _arg0 = NULL; }
269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
271 return NULL;
272 }
273 }
274 {
275 wxPy_BEGIN_ALLOW_THREADS;
276 _result = new wxString (wxStatusBar_GetStatusText(_arg0,_arg1));
277
278 wxPy_END_ALLOW_THREADS;
279 }{
280 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
281 }
282 {
283 delete _result;
284 }
285 return _resultobj;
286 }
287
288 #define wxStatusBar_DrawField(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawField(_swigarg0,_swigarg1))
289 static PyObject *_wrap_wxStatusBar_DrawField(PyObject *self, PyObject *args) {
290 PyObject * _resultobj;
291 wxStatusBar * _arg0;
292 wxDC * _arg1;
293 int _arg2;
294 PyObject * _argo0 = 0;
295 PyObject * _argo1 = 0;
296
297 self = self;
298 if(!PyArg_ParseTuple(args,"OOi:wxStatusBar_DrawField",&_argo0,&_argo1,&_arg2))
299 return NULL;
300 if (_argo0) {
301 if (_argo0 == Py_None) { _arg0 = NULL; }
302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_DrawField. Expected _wxStatusBar_p.");
304 return NULL;
305 }
306 }
307 if (_argo1) {
308 if (_argo1 == Py_None) { _arg1 = NULL; }
309 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
310 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_DrawField. Expected _wxDC_p.");
311 return NULL;
312 }
313 }
314 {
315 wxPy_BEGIN_ALLOW_THREADS;
316 wxStatusBar_DrawField(_arg0,*_arg1,_arg2);
317
318 wxPy_END_ALLOW_THREADS;
319 } Py_INCREF(Py_None);
320 _resultobj = Py_None;
321 return _resultobj;
322 }
323
324 #define wxStatusBar_DrawFieldText(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawFieldText(_swigarg0,_swigarg1))
325 static PyObject *_wrap_wxStatusBar_DrawFieldText(PyObject *self, PyObject *args) {
326 PyObject * _resultobj;
327 wxStatusBar * _arg0;
328 wxDC * _arg1;
329 int _arg2;
330 PyObject * _argo0 = 0;
331 PyObject * _argo1 = 0;
332
333 self = self;
334 if(!PyArg_ParseTuple(args,"OOi:wxStatusBar_DrawFieldText",&_argo0,&_argo1,&_arg2))
335 return NULL;
336 if (_argo0) {
337 if (_argo0 == Py_None) { _arg0 = NULL; }
338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_DrawFieldText. Expected _wxStatusBar_p.");
340 return NULL;
341 }
342 }
343 if (_argo1) {
344 if (_argo1 == Py_None) { _arg1 = NULL; }
345 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
346 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_DrawFieldText. Expected _wxDC_p.");
347 return NULL;
348 }
349 }
350 {
351 wxPy_BEGIN_ALLOW_THREADS;
352 wxStatusBar_DrawFieldText(_arg0,*_arg1,_arg2);
353
354 wxPy_END_ALLOW_THREADS;
355 } Py_INCREF(Py_None);
356 _resultobj = Py_None;
357 return _resultobj;
358 }
359
360 #define wxStatusBar_InitColours(_swigobj) (_swigobj->InitColours())
361 static PyObject *_wrap_wxStatusBar_InitColours(PyObject *self, PyObject *args) {
362 PyObject * _resultobj;
363 wxStatusBar * _arg0;
364 PyObject * _argo0 = 0;
365
366 self = self;
367 if(!PyArg_ParseTuple(args,"O:wxStatusBar_InitColours",&_argo0))
368 return NULL;
369 if (_argo0) {
370 if (_argo0 == Py_None) { _arg0 = NULL; }
371 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
372 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_InitColours. Expected _wxStatusBar_p.");
373 return NULL;
374 }
375 }
376 {
377 wxPy_BEGIN_ALLOW_THREADS;
378 wxStatusBar_InitColours(_arg0);
379
380 wxPy_END_ALLOW_THREADS;
381 } Py_INCREF(Py_None);
382 _resultobj = Py_None;
383 return _resultobj;
384 }
385
386 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
387 static PyObject *_wrap_wxStatusBar_SetFieldsCount(PyObject *self, PyObject *args) {
388 PyObject * _resultobj;
389 wxStatusBar * _arg0;
390 int _arg1 = (int ) 1;
391 PyObject * _argo0 = 0;
392
393 self = self;
394 if(!PyArg_ParseTuple(args,"O|i:wxStatusBar_SetFieldsCount",&_argo0,&_arg1))
395 return NULL;
396 if (_argo0) {
397 if (_argo0 == Py_None) { _arg0 = NULL; }
398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
400 return NULL;
401 }
402 }
403 {
404 wxPy_BEGIN_ALLOW_THREADS;
405 wxStatusBar_SetFieldsCount(_arg0,_arg1);
406
407 wxPy_END_ALLOW_THREADS;
408 } Py_INCREF(Py_None);
409 _resultobj = Py_None;
410 return _resultobj;
411 }
412
413 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
414 static PyObject *_wrap_wxStatusBar_SetStatusText(PyObject *self, PyObject *args) {
415 PyObject * _resultobj;
416 wxStatusBar * _arg0;
417 wxString * _arg1;
418 int _arg2 = (int ) 0;
419 PyObject * _argo0 = 0;
420 PyObject * _obj1 = 0;
421
422 self = self;
423 if(!PyArg_ParseTuple(args,"OO|i:wxStatusBar_SetStatusText",&_argo0,&_obj1,&_arg2))
424 return NULL;
425 if (_argo0) {
426 if (_argo0 == Py_None) { _arg0 = NULL; }
427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
429 return NULL;
430 }
431 }
432 {
433 if (!PyString_Check(_obj1)) {
434 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
435 return NULL;
436 }
437 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
438 }
439 {
440 wxPy_BEGIN_ALLOW_THREADS;
441 wxStatusBar_SetStatusText(_arg0,*_arg1,_arg2);
442
443 wxPy_END_ALLOW_THREADS;
444 } Py_INCREF(Py_None);
445 _resultobj = Py_None;
446 {
447 if (_obj1)
448 delete _arg1;
449 }
450 return _resultobj;
451 }
452
453 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
454 static PyObject *_wrap_wxStatusBar_SetStatusWidths(PyObject *self, PyObject *args) {
455 PyObject * _resultobj;
456 wxStatusBar * _arg0;
457 int _arg1;
458 int * _arg2;
459 PyObject * _argo0 = 0;
460 PyObject * _obj2 = 0;
461
462 self = self;
463 if(!PyArg_ParseTuple(args,"OO:wxStatusBar_SetStatusWidths",&_argo0,&_obj2))
464 return NULL;
465 if (_argo0) {
466 if (_argo0 == Py_None) { _arg0 = NULL; }
467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
469 return NULL;
470 }
471 }
472 if (_obj2)
473 {
474 _arg2 = int_LIST_helper(_obj2);
475 if (_arg2 == NULL) {
476 return NULL;
477 }
478 }
479 {
480 if (_obj2) {
481 _arg1 = PyList_Size(_obj2);
482 }
483 else {
484 _arg1 = 0;
485 }
486 }
487 {
488 wxPy_BEGIN_ALLOW_THREADS;
489 wxStatusBar_SetStatusWidths(_arg0,_arg1,_arg2);
490
491 wxPy_END_ALLOW_THREADS;
492 } Py_INCREF(Py_None);
493 _resultobj = Py_None;
494 {
495 delete [] _arg2;
496 }
497 return _resultobj;
498 }
499
500 #define new_wxToolBarTool() (new wxToolBarTool())
501 static PyObject *_wrap_new_wxToolBarTool(PyObject *self, PyObject *args) {
502 PyObject * _resultobj;
503 wxToolBarTool * _result;
504 char _ptemp[128];
505
506 self = self;
507 if(!PyArg_ParseTuple(args,":new_wxToolBarTool"))
508 return NULL;
509 {
510 wxPy_BEGIN_ALLOW_THREADS;
511 _result = (wxToolBarTool *)new_wxToolBarTool();
512
513 wxPy_END_ALLOW_THREADS;
514 } if (_result) {
515 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarTool_p");
516 _resultobj = Py_BuildValue("s",_ptemp);
517 } else {
518 Py_INCREF(Py_None);
519 _resultobj = Py_None;
520 }
521 return _resultobj;
522 }
523
524 #define delete_wxToolBarTool(_swigobj) (delete _swigobj)
525 static PyObject *_wrap_delete_wxToolBarTool(PyObject *self, PyObject *args) {
526 PyObject * _resultobj;
527 wxToolBarTool * _arg0;
528 PyObject * _argo0 = 0;
529
530 self = self;
531 if(!PyArg_ParseTuple(args,"O:delete_wxToolBarTool",&_argo0))
532 return NULL;
533 if (_argo0) {
534 if (_argo0 == Py_None) { _arg0 = NULL; }
535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxToolBarTool. Expected _wxToolBarTool_p.");
537 return NULL;
538 }
539 }
540 {
541 wxPy_BEGIN_ALLOW_THREADS;
542 delete_wxToolBarTool(_arg0);
543
544 wxPy_END_ALLOW_THREADS;
545 } Py_INCREF(Py_None);
546 _resultobj = Py_None;
547 return _resultobj;
548 }
549
550 #define wxToolBarTool_m_toolStyle_set(_swigobj,_swigval) (_swigobj->m_toolStyle = _swigval,_swigval)
551 static PyObject *_wrap_wxToolBarTool_m_toolStyle_set(PyObject *self, PyObject *args) {
552 PyObject * _resultobj;
553 int _result;
554 wxToolBarTool * _arg0;
555 int _arg1;
556 PyObject * _argo0 = 0;
557
558 self = self;
559 if(!PyArg_ParseTuple(args,"Oi:wxToolBarTool_m_toolStyle_set",&_argo0,&_arg1))
560 return NULL;
561 if (_argo0) {
562 if (_argo0 == Py_None) { _arg0 = NULL; }
563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_toolStyle_set. Expected _wxToolBarTool_p.");
565 return NULL;
566 }
567 }
568 {
569 wxPy_BEGIN_ALLOW_THREADS;
570 _result = (int )wxToolBarTool_m_toolStyle_set(_arg0,_arg1);
571
572 wxPy_END_ALLOW_THREADS;
573 } _resultobj = Py_BuildValue("i",_result);
574 return _resultobj;
575 }
576
577 #define wxToolBarTool_m_toolStyle_get(_swigobj) ((int ) _swigobj->m_toolStyle)
578 static PyObject *_wrap_wxToolBarTool_m_toolStyle_get(PyObject *self, PyObject *args) {
579 PyObject * _resultobj;
580 int _result;
581 wxToolBarTool * _arg0;
582 PyObject * _argo0 = 0;
583
584 self = self;
585 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_toolStyle_get",&_argo0))
586 return NULL;
587 if (_argo0) {
588 if (_argo0 == Py_None) { _arg0 = NULL; }
589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_toolStyle_get. Expected _wxToolBarTool_p.");
591 return NULL;
592 }
593 }
594 {
595 wxPy_BEGIN_ALLOW_THREADS;
596 _result = (int )wxToolBarTool_m_toolStyle_get(_arg0);
597
598 wxPy_END_ALLOW_THREADS;
599 } _resultobj = Py_BuildValue("i",_result);
600 return _resultobj;
601 }
602
603 #define wxToolBarTool_m_clientData_set(_swigobj,_swigval) (_swigobj->m_clientData = _swigval,_swigval)
604 static PyObject *_wrap_wxToolBarTool_m_clientData_set(PyObject *self, PyObject *args) {
605 PyObject * _resultobj;
606 wxObject * _result;
607 wxToolBarTool * _arg0;
608 wxObject * _arg1;
609 PyObject * _argo0 = 0;
610 PyObject * _argo1 = 0;
611 char _ptemp[128];
612
613 self = self;
614 if(!PyArg_ParseTuple(args,"OO:wxToolBarTool_m_clientData_set",&_argo0,&_argo1))
615 return NULL;
616 if (_argo0) {
617 if (_argo0 == Py_None) { _arg0 = NULL; }
618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_clientData_set. Expected _wxToolBarTool_p.");
620 return NULL;
621 }
622 }
623 if (_argo1) {
624 if (_argo1 == Py_None) { _arg1 = NULL; }
625 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxObject_p")) {
626 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarTool_m_clientData_set. Expected _wxObject_p.");
627 return NULL;
628 }
629 }
630 {
631 wxPy_BEGIN_ALLOW_THREADS;
632 _result = (wxObject *)wxToolBarTool_m_clientData_set(_arg0,_arg1);
633
634 wxPy_END_ALLOW_THREADS;
635 } if (_result) {
636 SWIG_MakePtr(_ptemp, (char *) _result,"_wxObject_p");
637 _resultobj = Py_BuildValue("s",_ptemp);
638 } else {
639 Py_INCREF(Py_None);
640 _resultobj = Py_None;
641 }
642 return _resultobj;
643 }
644
645 #define wxToolBarTool_m_clientData_get(_swigobj) ((wxObject *) _swigobj->m_clientData)
646 static PyObject *_wrap_wxToolBarTool_m_clientData_get(PyObject *self, PyObject *args) {
647 PyObject * _resultobj;
648 wxObject * _result;
649 wxToolBarTool * _arg0;
650 PyObject * _argo0 = 0;
651 char _ptemp[128];
652
653 self = self;
654 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_clientData_get",&_argo0))
655 return NULL;
656 if (_argo0) {
657 if (_argo0 == Py_None) { _arg0 = NULL; }
658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_clientData_get. Expected _wxToolBarTool_p.");
660 return NULL;
661 }
662 }
663 {
664 wxPy_BEGIN_ALLOW_THREADS;
665 _result = (wxObject *)wxToolBarTool_m_clientData_get(_arg0);
666
667 wxPy_END_ALLOW_THREADS;
668 } if (_result) {
669 SWIG_MakePtr(_ptemp, (char *) _result,"_wxObject_p");
670 _resultobj = Py_BuildValue("s",_ptemp);
671 } else {
672 Py_INCREF(Py_None);
673 _resultobj = Py_None;
674 }
675 return _resultobj;
676 }
677
678 #define wxToolBarTool_m_index_set(_swigobj,_swigval) (_swigobj->m_index = _swigval,_swigval)
679 static PyObject *_wrap_wxToolBarTool_m_index_set(PyObject *self, PyObject *args) {
680 PyObject * _resultobj;
681 int _result;
682 wxToolBarTool * _arg0;
683 int _arg1;
684 PyObject * _argo0 = 0;
685
686 self = self;
687 if(!PyArg_ParseTuple(args,"Oi:wxToolBarTool_m_index_set",&_argo0,&_arg1))
688 return NULL;
689 if (_argo0) {
690 if (_argo0 == Py_None) { _arg0 = NULL; }
691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_index_set. Expected _wxToolBarTool_p.");
693 return NULL;
694 }
695 }
696 {
697 wxPy_BEGIN_ALLOW_THREADS;
698 _result = (int )wxToolBarTool_m_index_set(_arg0,_arg1);
699
700 wxPy_END_ALLOW_THREADS;
701 } _resultobj = Py_BuildValue("i",_result);
702 return _resultobj;
703 }
704
705 #define wxToolBarTool_m_index_get(_swigobj) ((int ) _swigobj->m_index)
706 static PyObject *_wrap_wxToolBarTool_m_index_get(PyObject *self, PyObject *args) {
707 PyObject * _resultobj;
708 int _result;
709 wxToolBarTool * _arg0;
710 PyObject * _argo0 = 0;
711
712 self = self;
713 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_index_get",&_argo0))
714 return NULL;
715 if (_argo0) {
716 if (_argo0 == Py_None) { _arg0 = NULL; }
717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_index_get. Expected _wxToolBarTool_p.");
719 return NULL;
720 }
721 }
722 {
723 wxPy_BEGIN_ALLOW_THREADS;
724 _result = (int )wxToolBarTool_m_index_get(_arg0);
725
726 wxPy_END_ALLOW_THREADS;
727 } _resultobj = Py_BuildValue("i",_result);
728 return _resultobj;
729 }
730
731 #define wxToolBarTool_m_toggleState_set(_swigobj,_swigval) (_swigobj->m_toggleState = _swigval,_swigval)
732 static PyObject *_wrap_wxToolBarTool_m_toggleState_set(PyObject *self, PyObject *args) {
733 PyObject * _resultobj;
734 bool _result;
735 wxToolBarTool * _arg0;
736 bool _arg1;
737 PyObject * _argo0 = 0;
738 int tempbool1;
739
740 self = self;
741 if(!PyArg_ParseTuple(args,"Oi:wxToolBarTool_m_toggleState_set",&_argo0,&tempbool1))
742 return NULL;
743 if (_argo0) {
744 if (_argo0 == Py_None) { _arg0 = NULL; }
745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_toggleState_set. Expected _wxToolBarTool_p.");
747 return NULL;
748 }
749 }
750 _arg1 = (bool ) tempbool1;
751 {
752 wxPy_BEGIN_ALLOW_THREADS;
753 _result = (bool )wxToolBarTool_m_toggleState_set(_arg0,_arg1);
754
755 wxPy_END_ALLOW_THREADS;
756 } _resultobj = Py_BuildValue("i",_result);
757 return _resultobj;
758 }
759
760 #define wxToolBarTool_m_toggleState_get(_swigobj) ((bool ) _swigobj->m_toggleState)
761 static PyObject *_wrap_wxToolBarTool_m_toggleState_get(PyObject *self, PyObject *args) {
762 PyObject * _resultobj;
763 bool _result;
764 wxToolBarTool * _arg0;
765 PyObject * _argo0 = 0;
766
767 self = self;
768 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_toggleState_get",&_argo0))
769 return NULL;
770 if (_argo0) {
771 if (_argo0 == Py_None) { _arg0 = NULL; }
772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_toggleState_get. Expected _wxToolBarTool_p.");
774 return NULL;
775 }
776 }
777 {
778 wxPy_BEGIN_ALLOW_THREADS;
779 _result = (bool )wxToolBarTool_m_toggleState_get(_arg0);
780
781 wxPy_END_ALLOW_THREADS;
782 } _resultobj = Py_BuildValue("i",_result);
783 return _resultobj;
784 }
785
786 #define wxToolBarTool_m_isToggle_set(_swigobj,_swigval) (_swigobj->m_isToggle = _swigval,_swigval)
787 static PyObject *_wrap_wxToolBarTool_m_isToggle_set(PyObject *self, PyObject *args) {
788 PyObject * _resultobj;
789 bool _result;
790 wxToolBarTool * _arg0;
791 bool _arg1;
792 PyObject * _argo0 = 0;
793 int tempbool1;
794
795 self = self;
796 if(!PyArg_ParseTuple(args,"Oi:wxToolBarTool_m_isToggle_set",&_argo0,&tempbool1))
797 return NULL;
798 if (_argo0) {
799 if (_argo0 == Py_None) { _arg0 = NULL; }
800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_isToggle_set. Expected _wxToolBarTool_p.");
802 return NULL;
803 }
804 }
805 _arg1 = (bool ) tempbool1;
806 {
807 wxPy_BEGIN_ALLOW_THREADS;
808 _result = (bool )wxToolBarTool_m_isToggle_set(_arg0,_arg1);
809
810 wxPy_END_ALLOW_THREADS;
811 } _resultobj = Py_BuildValue("i",_result);
812 return _resultobj;
813 }
814
815 #define wxToolBarTool_m_isToggle_get(_swigobj) ((bool ) _swigobj->m_isToggle)
816 static PyObject *_wrap_wxToolBarTool_m_isToggle_get(PyObject *self, PyObject *args) {
817 PyObject * _resultobj;
818 bool _result;
819 wxToolBarTool * _arg0;
820 PyObject * _argo0 = 0;
821
822 self = self;
823 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_isToggle_get",&_argo0))
824 return NULL;
825 if (_argo0) {
826 if (_argo0 == Py_None) { _arg0 = NULL; }
827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_isToggle_get. Expected _wxToolBarTool_p.");
829 return NULL;
830 }
831 }
832 {
833 wxPy_BEGIN_ALLOW_THREADS;
834 _result = (bool )wxToolBarTool_m_isToggle_get(_arg0);
835
836 wxPy_END_ALLOW_THREADS;
837 } _resultobj = Py_BuildValue("i",_result);
838 return _resultobj;
839 }
840
841 #define wxToolBarTool_m_deleteSecondBitmap_set(_swigobj,_swigval) (_swigobj->m_deleteSecondBitmap = _swigval,_swigval)
842 static PyObject *_wrap_wxToolBarTool_m_deleteSecondBitmap_set(PyObject *self, PyObject *args) {
843 PyObject * _resultobj;
844 bool _result;
845 wxToolBarTool * _arg0;
846 bool _arg1;
847 PyObject * _argo0 = 0;
848 int tempbool1;
849
850 self = self;
851 if(!PyArg_ParseTuple(args,"Oi:wxToolBarTool_m_deleteSecondBitmap_set",&_argo0,&tempbool1))
852 return NULL;
853 if (_argo0) {
854 if (_argo0 == Py_None) { _arg0 = NULL; }
855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_deleteSecondBitmap_set. Expected _wxToolBarTool_p.");
857 return NULL;
858 }
859 }
860 _arg1 = (bool ) tempbool1;
861 {
862 wxPy_BEGIN_ALLOW_THREADS;
863 _result = (bool )wxToolBarTool_m_deleteSecondBitmap_set(_arg0,_arg1);
864
865 wxPy_END_ALLOW_THREADS;
866 } _resultobj = Py_BuildValue("i",_result);
867 return _resultobj;
868 }
869
870 #define wxToolBarTool_m_deleteSecondBitmap_get(_swigobj) ((bool ) _swigobj->m_deleteSecondBitmap)
871 static PyObject *_wrap_wxToolBarTool_m_deleteSecondBitmap_get(PyObject *self, PyObject *args) {
872 PyObject * _resultobj;
873 bool _result;
874 wxToolBarTool * _arg0;
875 PyObject * _argo0 = 0;
876
877 self = self;
878 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_deleteSecondBitmap_get",&_argo0))
879 return NULL;
880 if (_argo0) {
881 if (_argo0 == Py_None) { _arg0 = NULL; }
882 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
883 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_deleteSecondBitmap_get. Expected _wxToolBarTool_p.");
884 return NULL;
885 }
886 }
887 {
888 wxPy_BEGIN_ALLOW_THREADS;
889 _result = (bool )wxToolBarTool_m_deleteSecondBitmap_get(_arg0);
890
891 wxPy_END_ALLOW_THREADS;
892 } _resultobj = Py_BuildValue("i",_result);
893 return _resultobj;
894 }
895
896 #define wxToolBarTool_m_enabled_set(_swigobj,_swigval) (_swigobj->m_enabled = _swigval,_swigval)
897 static PyObject *_wrap_wxToolBarTool_m_enabled_set(PyObject *self, PyObject *args) {
898 PyObject * _resultobj;
899 bool _result;
900 wxToolBarTool * _arg0;
901 bool _arg1;
902 PyObject * _argo0 = 0;
903 int tempbool1;
904
905 self = self;
906 if(!PyArg_ParseTuple(args,"Oi:wxToolBarTool_m_enabled_set",&_argo0,&tempbool1))
907 return NULL;
908 if (_argo0) {
909 if (_argo0 == Py_None) { _arg0 = NULL; }
910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_enabled_set. Expected _wxToolBarTool_p.");
912 return NULL;
913 }
914 }
915 _arg1 = (bool ) tempbool1;
916 {
917 wxPy_BEGIN_ALLOW_THREADS;
918 _result = (bool )wxToolBarTool_m_enabled_set(_arg0,_arg1);
919
920 wxPy_END_ALLOW_THREADS;
921 } _resultobj = Py_BuildValue("i",_result);
922 return _resultobj;
923 }
924
925 #define wxToolBarTool_m_enabled_get(_swigobj) ((bool ) _swigobj->m_enabled)
926 static PyObject *_wrap_wxToolBarTool_m_enabled_get(PyObject *self, PyObject *args) {
927 PyObject * _resultobj;
928 bool _result;
929 wxToolBarTool * _arg0;
930 PyObject * _argo0 = 0;
931
932 self = self;
933 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_enabled_get",&_argo0))
934 return NULL;
935 if (_argo0) {
936 if (_argo0 == Py_None) { _arg0 = NULL; }
937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_enabled_get. Expected _wxToolBarTool_p.");
939 return NULL;
940 }
941 }
942 {
943 wxPy_BEGIN_ALLOW_THREADS;
944 _result = (bool )wxToolBarTool_m_enabled_get(_arg0);
945
946 wxPy_END_ALLOW_THREADS;
947 } _resultobj = Py_BuildValue("i",_result);
948 return _resultobj;
949 }
950
951 #define wxToolBarTool_m_bitmap1_set(_swigobj,_swigval) (_swigobj->m_bitmap1 = *(_swigval),_swigval)
952 static PyObject *_wrap_wxToolBarTool_m_bitmap1_set(PyObject *self, PyObject *args) {
953 PyObject * _resultobj;
954 wxBitmap * _result;
955 wxToolBarTool * _arg0;
956 wxBitmap * _arg1;
957 PyObject * _argo0 = 0;
958 PyObject * _argo1 = 0;
959 char _ptemp[128];
960
961 self = self;
962 if(!PyArg_ParseTuple(args,"OO:wxToolBarTool_m_bitmap1_set",&_argo0,&_argo1))
963 return NULL;
964 if (_argo0) {
965 if (_argo0 == Py_None) { _arg0 = NULL; }
966 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
967 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_bitmap1_set. Expected _wxToolBarTool_p.");
968 return NULL;
969 }
970 }
971 if (_argo1) {
972 if (_argo1 == Py_None) { _arg1 = NULL; }
973 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
974 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarTool_m_bitmap1_set. Expected _wxBitmap_p.");
975 return NULL;
976 }
977 }
978 {
979 wxPy_BEGIN_ALLOW_THREADS;
980 _result = (wxBitmap *)wxToolBarTool_m_bitmap1_set(_arg0,_arg1);
981
982 wxPy_END_ALLOW_THREADS;
983 } if (_result) {
984 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
985 _resultobj = Py_BuildValue("s",_ptemp);
986 } else {
987 Py_INCREF(Py_None);
988 _resultobj = Py_None;
989 }
990 return _resultobj;
991 }
992
993 #define wxToolBarTool_m_bitmap1_get(_swigobj) (&_swigobj->m_bitmap1)
994 static PyObject *_wrap_wxToolBarTool_m_bitmap1_get(PyObject *self, PyObject *args) {
995 PyObject * _resultobj;
996 wxBitmap * _result;
997 wxToolBarTool * _arg0;
998 PyObject * _argo0 = 0;
999 char _ptemp[128];
1000
1001 self = self;
1002 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_bitmap1_get",&_argo0))
1003 return NULL;
1004 if (_argo0) {
1005 if (_argo0 == Py_None) { _arg0 = NULL; }
1006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
1007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_bitmap1_get. Expected _wxToolBarTool_p.");
1008 return NULL;
1009 }
1010 }
1011 {
1012 wxPy_BEGIN_ALLOW_THREADS;
1013 _result = (wxBitmap *)wxToolBarTool_m_bitmap1_get(_arg0);
1014
1015 wxPy_END_ALLOW_THREADS;
1016 } if (_result) {
1017 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1018 _resultobj = Py_BuildValue("s",_ptemp);
1019 } else {
1020 Py_INCREF(Py_None);
1021 _resultobj = Py_None;
1022 }
1023 return _resultobj;
1024 }
1025
1026 #define wxToolBarTool_m_bitmap2_set(_swigobj,_swigval) (_swigobj->m_bitmap2 = *(_swigval),_swigval)
1027 static PyObject *_wrap_wxToolBarTool_m_bitmap2_set(PyObject *self, PyObject *args) {
1028 PyObject * _resultobj;
1029 wxBitmap * _result;
1030 wxToolBarTool * _arg0;
1031 wxBitmap * _arg1;
1032 PyObject * _argo0 = 0;
1033 PyObject * _argo1 = 0;
1034 char _ptemp[128];
1035
1036 self = self;
1037 if(!PyArg_ParseTuple(args,"OO:wxToolBarTool_m_bitmap2_set",&_argo0,&_argo1))
1038 return NULL;
1039 if (_argo0) {
1040 if (_argo0 == Py_None) { _arg0 = NULL; }
1041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
1042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_bitmap2_set. Expected _wxToolBarTool_p.");
1043 return NULL;
1044 }
1045 }
1046 if (_argo1) {
1047 if (_argo1 == Py_None) { _arg1 = NULL; }
1048 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1049 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarTool_m_bitmap2_set. Expected _wxBitmap_p.");
1050 return NULL;
1051 }
1052 }
1053 {
1054 wxPy_BEGIN_ALLOW_THREADS;
1055 _result = (wxBitmap *)wxToolBarTool_m_bitmap2_set(_arg0,_arg1);
1056
1057 wxPy_END_ALLOW_THREADS;
1058 } if (_result) {
1059 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1060 _resultobj = Py_BuildValue("s",_ptemp);
1061 } else {
1062 Py_INCREF(Py_None);
1063 _resultobj = Py_None;
1064 }
1065 return _resultobj;
1066 }
1067
1068 #define wxToolBarTool_m_bitmap2_get(_swigobj) (&_swigobj->m_bitmap2)
1069 static PyObject *_wrap_wxToolBarTool_m_bitmap2_get(PyObject *self, PyObject *args) {
1070 PyObject * _resultobj;
1071 wxBitmap * _result;
1072 wxToolBarTool * _arg0;
1073 PyObject * _argo0 = 0;
1074 char _ptemp[128];
1075
1076 self = self;
1077 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_bitmap2_get",&_argo0))
1078 return NULL;
1079 if (_argo0) {
1080 if (_argo0 == Py_None) { _arg0 = NULL; }
1081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
1082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_bitmap2_get. Expected _wxToolBarTool_p.");
1083 return NULL;
1084 }
1085 }
1086 {
1087 wxPy_BEGIN_ALLOW_THREADS;
1088 _result = (wxBitmap *)wxToolBarTool_m_bitmap2_get(_arg0);
1089
1090 wxPy_END_ALLOW_THREADS;
1091 } if (_result) {
1092 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1093 _resultobj = Py_BuildValue("s",_ptemp);
1094 } else {
1095 Py_INCREF(Py_None);
1096 _resultobj = Py_None;
1097 }
1098 return _resultobj;
1099 }
1100
1101 #define wxToolBarTool_m_isMenuCommand_set(_swigobj,_swigval) (_swigobj->m_isMenuCommand = _swigval,_swigval)
1102 static PyObject *_wrap_wxToolBarTool_m_isMenuCommand_set(PyObject *self, PyObject *args) {
1103 PyObject * _resultobj;
1104 bool _result;
1105 wxToolBarTool * _arg0;
1106 bool _arg1;
1107 PyObject * _argo0 = 0;
1108 int tempbool1;
1109
1110 self = self;
1111 if(!PyArg_ParseTuple(args,"Oi:wxToolBarTool_m_isMenuCommand_set",&_argo0,&tempbool1))
1112 return NULL;
1113 if (_argo0) {
1114 if (_argo0 == Py_None) { _arg0 = NULL; }
1115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
1116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_isMenuCommand_set. Expected _wxToolBarTool_p.");
1117 return NULL;
1118 }
1119 }
1120 _arg1 = (bool ) tempbool1;
1121 {
1122 wxPy_BEGIN_ALLOW_THREADS;
1123 _result = (bool )wxToolBarTool_m_isMenuCommand_set(_arg0,_arg1);
1124
1125 wxPy_END_ALLOW_THREADS;
1126 } _resultobj = Py_BuildValue("i",_result);
1127 return _resultobj;
1128 }
1129
1130 #define wxToolBarTool_m_isMenuCommand_get(_swigobj) ((bool ) _swigobj->m_isMenuCommand)
1131 static PyObject *_wrap_wxToolBarTool_m_isMenuCommand_get(PyObject *self, PyObject *args) {
1132 PyObject * _resultobj;
1133 bool _result;
1134 wxToolBarTool * _arg0;
1135 PyObject * _argo0 = 0;
1136
1137 self = self;
1138 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_isMenuCommand_get",&_argo0))
1139 return NULL;
1140 if (_argo0) {
1141 if (_argo0 == Py_None) { _arg0 = NULL; }
1142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
1143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_isMenuCommand_get. Expected _wxToolBarTool_p.");
1144 return NULL;
1145 }
1146 }
1147 {
1148 wxPy_BEGIN_ALLOW_THREADS;
1149 _result = (bool )wxToolBarTool_m_isMenuCommand_get(_arg0);
1150
1151 wxPy_END_ALLOW_THREADS;
1152 } _resultobj = Py_BuildValue("i",_result);
1153 return _resultobj;
1154 }
1155
1156 #define wxToolBarTool_m_shortHelpString_set(_swigobj,_swigval) (_swigobj->m_shortHelpString = *(_swigval),_swigval)
1157 static PyObject *_wrap_wxToolBarTool_m_shortHelpString_set(PyObject *self, PyObject *args) {
1158 PyObject * _resultobj;
1159 wxString * _result;
1160 wxToolBarTool * _arg0;
1161 wxString * _arg1;
1162 PyObject * _argo0 = 0;
1163 PyObject * _obj1 = 0;
1164
1165 self = self;
1166 if(!PyArg_ParseTuple(args,"OO:wxToolBarTool_m_shortHelpString_set",&_argo0,&_obj1))
1167 return NULL;
1168 if (_argo0) {
1169 if (_argo0 == Py_None) { _arg0 = NULL; }
1170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
1171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_shortHelpString_set. Expected _wxToolBarTool_p.");
1172 return NULL;
1173 }
1174 }
1175 {
1176 if (!PyString_Check(_obj1)) {
1177 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1178 return NULL;
1179 }
1180 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1181 }
1182 {
1183 wxPy_BEGIN_ALLOW_THREADS;
1184 _result = (wxString *)wxToolBarTool_m_shortHelpString_set(_arg0,_arg1);
1185
1186 wxPy_END_ALLOW_THREADS;
1187 }{
1188 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
1189 }
1190 {
1191 if (_obj1)
1192 delete _arg1;
1193 }
1194 return _resultobj;
1195 }
1196
1197 #define wxToolBarTool_m_shortHelpString_get(_swigobj) (&_swigobj->m_shortHelpString)
1198 static PyObject *_wrap_wxToolBarTool_m_shortHelpString_get(PyObject *self, PyObject *args) {
1199 PyObject * _resultobj;
1200 wxString * _result;
1201 wxToolBarTool * _arg0;
1202 PyObject * _argo0 = 0;
1203
1204 self = self;
1205 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_shortHelpString_get",&_argo0))
1206 return NULL;
1207 if (_argo0) {
1208 if (_argo0 == Py_None) { _arg0 = NULL; }
1209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
1210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_shortHelpString_get. Expected _wxToolBarTool_p.");
1211 return NULL;
1212 }
1213 }
1214 {
1215 wxPy_BEGIN_ALLOW_THREADS;
1216 _result = (wxString *)wxToolBarTool_m_shortHelpString_get(_arg0);
1217
1218 wxPy_END_ALLOW_THREADS;
1219 }{
1220 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
1221 }
1222 return _resultobj;
1223 }
1224
1225 #define wxToolBarTool_m_longHelpString_set(_swigobj,_swigval) (_swigobj->m_longHelpString = *(_swigval),_swigval)
1226 static PyObject *_wrap_wxToolBarTool_m_longHelpString_set(PyObject *self, PyObject *args) {
1227 PyObject * _resultobj;
1228 wxString * _result;
1229 wxToolBarTool * _arg0;
1230 wxString * _arg1;
1231 PyObject * _argo0 = 0;
1232 PyObject * _obj1 = 0;
1233
1234 self = self;
1235 if(!PyArg_ParseTuple(args,"OO:wxToolBarTool_m_longHelpString_set",&_argo0,&_obj1))
1236 return NULL;
1237 if (_argo0) {
1238 if (_argo0 == Py_None) { _arg0 = NULL; }
1239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
1240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_longHelpString_set. Expected _wxToolBarTool_p.");
1241 return NULL;
1242 }
1243 }
1244 {
1245 if (!PyString_Check(_obj1)) {
1246 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1247 return NULL;
1248 }
1249 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1250 }
1251 {
1252 wxPy_BEGIN_ALLOW_THREADS;
1253 _result = (wxString *)wxToolBarTool_m_longHelpString_set(_arg0,_arg1);
1254
1255 wxPy_END_ALLOW_THREADS;
1256 }{
1257 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
1258 }
1259 {
1260 if (_obj1)
1261 delete _arg1;
1262 }
1263 return _resultobj;
1264 }
1265
1266 #define wxToolBarTool_m_longHelpString_get(_swigobj) (&_swigobj->m_longHelpString)
1267 static PyObject *_wrap_wxToolBarTool_m_longHelpString_get(PyObject *self, PyObject *args) {
1268 PyObject * _resultobj;
1269 wxString * _result;
1270 wxToolBarTool * _arg0;
1271 PyObject * _argo0 = 0;
1272
1273 self = self;
1274 if(!PyArg_ParseTuple(args,"O:wxToolBarTool_m_longHelpString_get",&_argo0))
1275 return NULL;
1276 if (_argo0) {
1277 if (_argo0 == Py_None) { _arg0 = NULL; }
1278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarTool_p")) {
1279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_longHelpString_get. Expected _wxToolBarTool_p.");
1280 return NULL;
1281 }
1282 }
1283 {
1284 wxPy_BEGIN_ALLOW_THREADS;
1285 _result = (wxString *)wxToolBarTool_m_longHelpString_get(_arg0);
1286
1287 wxPy_END_ALLOW_THREADS;
1288 }{
1289 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
1290 }
1291 return _resultobj;
1292 }
1293
1294 static void *SwigwxToolBarTowxControl(void *ptr) {
1295 wxToolBar *src;
1296 wxControl *dest;
1297 src = (wxToolBar *) ptr;
1298 dest = (wxControl *) src;
1299 return (void *) dest;
1300 }
1301
1302 static void *SwigwxToolBarTowxWindow(void *ptr) {
1303 wxToolBar *src;
1304 wxWindow *dest;
1305 src = (wxToolBar *) ptr;
1306 dest = (wxWindow *) src;
1307 return (void *) dest;
1308 }
1309
1310 static void *SwigwxToolBarTowxEvtHandler(void *ptr) {
1311 wxToolBar *src;
1312 wxEvtHandler *dest;
1313 src = (wxToolBar *) ptr;
1314 dest = (wxEvtHandler *) src;
1315 return (void *) dest;
1316 }
1317
1318 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1319 static PyObject *_wrap_new_wxToolBar(PyObject *self, PyObject *args) {
1320 PyObject * _resultobj;
1321 wxToolBar * _result;
1322 wxWindow * _arg0;
1323 wxWindowID _arg1;
1324 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
1325 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
1326 long _arg4 = (long ) wxTB_HORIZONTAL|wxNO_BORDER;
1327 char * _arg5 = (char *) "toolBar";
1328 PyObject * _argo0 = 0;
1329 PyObject * _argo2 = 0;
1330 PyObject * _argo3 = 0;
1331 char _ptemp[128];
1332
1333 self = self;
1334 if(!PyArg_ParseTuple(args,"Oi|OOls:new_wxToolBar",&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_arg5))
1335 return NULL;
1336 if (_argo0) {
1337 if (_argo0 == Py_None) { _arg0 = NULL; }
1338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
1340 return NULL;
1341 }
1342 }
1343 if (_argo2) {
1344 if (_argo2 == Py_None) { _arg2 = NULL; }
1345 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
1346 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxToolBar. Expected _wxPoint_p.");
1347 return NULL;
1348 }
1349 }
1350 if (_argo3) {
1351 if (_argo3 == Py_None) { _arg3 = NULL; }
1352 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxSize_p")) {
1353 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxToolBar. Expected _wxSize_p.");
1354 return NULL;
1355 }
1356 }
1357 {
1358 wxPy_BEGIN_ALLOW_THREADS;
1359 _result = (wxToolBar *)new_wxToolBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
1360
1361 wxPy_END_ALLOW_THREADS;
1362 } if (_result) {
1363 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
1364 _resultobj = Py_BuildValue("s",_ptemp);
1365 } else {
1366 Py_INCREF(Py_None);
1367 _resultobj = Py_None;
1368 }
1369 return _resultobj;
1370 }
1371
1372 #define wxToolBar_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1373 static PyObject *_wrap_wxToolBar_AddSeparator(PyObject *self, PyObject *args) {
1374 PyObject * _resultobj;
1375 wxToolBar * _arg0;
1376 PyObject * _argo0 = 0;
1377
1378 self = self;
1379 if(!PyArg_ParseTuple(args,"O:wxToolBar_AddSeparator",&_argo0))
1380 return NULL;
1381 if (_argo0) {
1382 if (_argo0 == Py_None) { _arg0 = NULL; }
1383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_AddSeparator. Expected _wxToolBar_p.");
1385 return NULL;
1386 }
1387 }
1388 {
1389 wxPy_BEGIN_ALLOW_THREADS;
1390 wxToolBar_AddSeparator(_arg0);
1391
1392 wxPy_END_ALLOW_THREADS;
1393 } Py_INCREF(Py_None);
1394 _resultobj = Py_None;
1395 return _resultobj;
1396 }
1397
1398 static wxToolBarTool * wxToolBar_AddTool(wxToolBar *self,int toolIndex,const wxBitmap & bitmap1,const wxBitmap & bitmap2,int isToggle,long xPos,long yPos,const wxString & shortHelpString,const wxString & longHelpString) {
1399 return self->AddTool(toolIndex, bitmap1, bitmap2,
1400 isToggle, xPos, yPos, NULL,
1401 shortHelpString, longHelpString);
1402 }
1403 static PyObject *_wrap_wxToolBar_AddTool(PyObject *self, PyObject *args) {
1404 PyObject * _resultobj;
1405 wxToolBarTool * _result;
1406 wxToolBar * _arg0;
1407 int _arg1;
1408 wxBitmap * _arg2;
1409 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
1410 int _arg4 = (int ) FALSE;
1411 long _arg5 = (long ) -1;
1412 long _arg6 = (long ) -1;
1413 wxString * _arg7 = (wxString *) &wxPyEmptyStr;
1414 wxString * _arg8 = (wxString *) &wxPyEmptyStr;
1415 PyObject * _argo0 = 0;
1416 PyObject * _argo2 = 0;
1417 PyObject * _argo3 = 0;
1418 PyObject * _obj7 = 0;
1419 PyObject * _obj8 = 0;
1420 char _ptemp[128];
1421
1422 self = self;
1423 if(!PyArg_ParseTuple(args,"OiO|OillOO:wxToolBar_AddTool",&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_arg5,&_arg6,&_obj7,&_obj8))
1424 return NULL;
1425 if (_argo0) {
1426 if (_argo0 == Py_None) { _arg0 = NULL; }
1427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_AddTool. Expected _wxToolBar_p.");
1429 return NULL;
1430 }
1431 }
1432 if (_argo2) {
1433 if (_argo2 == Py_None) { _arg2 = NULL; }
1434 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1435 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBar_AddTool. Expected _wxBitmap_p.");
1436 return NULL;
1437 }
1438 }
1439 if (_argo3) {
1440 if (_argo3 == Py_None) { _arg3 = NULL; }
1441 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1442 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBar_AddTool. Expected _wxBitmap_p.");
1443 return NULL;
1444 }
1445 }
1446 if (_obj7)
1447 {
1448 if (!PyString_Check(_obj7)) {
1449 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1450 return NULL;
1451 }
1452 _arg7 = new wxString(PyString_AsString(_obj7), PyString_Size(_obj7));
1453 }
1454 if (_obj8)
1455 {
1456 if (!PyString_Check(_obj8)) {
1457 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1458 return NULL;
1459 }
1460 _arg8 = new wxString(PyString_AsString(_obj8), PyString_Size(_obj8));
1461 }
1462 {
1463 wxPy_BEGIN_ALLOW_THREADS;
1464 _result = (wxToolBarTool *)wxToolBar_AddTool(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8);
1465
1466 wxPy_END_ALLOW_THREADS;
1467 } if (_result) {
1468 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarTool_p");
1469 _resultobj = Py_BuildValue("s",_ptemp);
1470 } else {
1471 Py_INCREF(Py_None);
1472 _resultobj = Py_None;
1473 }
1474 {
1475 if (_obj7)
1476 delete _arg7;
1477 }
1478 {
1479 if (_obj8)
1480 delete _arg8;
1481 }
1482 return _resultobj;
1483 }
1484
1485 static wxToolBarTool * wxToolBar_AddSimpleTool(wxToolBar *self,int toolIndex,const wxBitmap & bitmap,const wxString & shortHelpString,const wxString & longHelpString) {
1486 return self->AddTool(toolIndex, bitmap, wxNullBitmap,
1487 FALSE, -1, -1, NULL,
1488 shortHelpString, longHelpString);
1489 }
1490 static PyObject *_wrap_wxToolBar_AddSimpleTool(PyObject *self, PyObject *args) {
1491 PyObject * _resultobj;
1492 wxToolBarTool * _result;
1493 wxToolBar * _arg0;
1494 int _arg1;
1495 wxBitmap * _arg2;
1496 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
1497 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
1498 PyObject * _argo0 = 0;
1499 PyObject * _argo2 = 0;
1500 PyObject * _obj3 = 0;
1501 PyObject * _obj4 = 0;
1502 char _ptemp[128];
1503
1504 self = self;
1505 if(!PyArg_ParseTuple(args,"OiO|OO:wxToolBar_AddSimpleTool",&_argo0,&_arg1,&_argo2,&_obj3,&_obj4))
1506 return NULL;
1507 if (_argo0) {
1508 if (_argo0 == Py_None) { _arg0 = NULL; }
1509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_AddSimpleTool. Expected _wxToolBar_p.");
1511 return NULL;
1512 }
1513 }
1514 if (_argo2) {
1515 if (_argo2 == Py_None) { _arg2 = NULL; }
1516 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1517 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBar_AddSimpleTool. Expected _wxBitmap_p.");
1518 return NULL;
1519 }
1520 }
1521 if (_obj3)
1522 {
1523 if (!PyString_Check(_obj3)) {
1524 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1525 return NULL;
1526 }
1527 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
1528 }
1529 if (_obj4)
1530 {
1531 if (!PyString_Check(_obj4)) {
1532 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1533 return NULL;
1534 }
1535 _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4));
1536 }
1537 {
1538 wxPy_BEGIN_ALLOW_THREADS;
1539 _result = (wxToolBarTool *)wxToolBar_AddSimpleTool(_arg0,_arg1,*_arg2,*_arg3,*_arg4);
1540
1541 wxPy_END_ALLOW_THREADS;
1542 } if (_result) {
1543 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarTool_p");
1544 _resultobj = Py_BuildValue("s",_ptemp);
1545 } else {
1546 Py_INCREF(Py_None);
1547 _resultobj = Py_None;
1548 }
1549 {
1550 if (_obj3)
1551 delete _arg3;
1552 }
1553 {
1554 if (_obj4)
1555 delete _arg4;
1556 }
1557 return _resultobj;
1558 }
1559
1560 #define wxToolBar_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
1561 static PyObject *_wrap_wxToolBar_EnableTool(PyObject *self, PyObject *args) {
1562 PyObject * _resultobj;
1563 wxToolBar * _arg0;
1564 int _arg1;
1565 bool _arg2;
1566 PyObject * _argo0 = 0;
1567 int tempbool2;
1568
1569 self = self;
1570 if(!PyArg_ParseTuple(args,"Oii:wxToolBar_EnableTool",&_argo0,&_arg1,&tempbool2))
1571 return NULL;
1572 if (_argo0) {
1573 if (_argo0 == Py_None) { _arg0 = NULL; }
1574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_EnableTool. Expected _wxToolBar_p.");
1576 return NULL;
1577 }
1578 }
1579 _arg2 = (bool ) tempbool2;
1580 {
1581 wxPy_BEGIN_ALLOW_THREADS;
1582 wxToolBar_EnableTool(_arg0,_arg1,_arg2);
1583
1584 wxPy_END_ALLOW_THREADS;
1585 } Py_INCREF(Py_None);
1586 _resultobj = Py_None;
1587 return _resultobj;
1588 }
1589
1590 #define wxToolBar_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
1591 static PyObject *_wrap_wxToolBar_GetToolEnabled(PyObject *self, PyObject *args) {
1592 PyObject * _resultobj;
1593 bool _result;
1594 wxToolBar * _arg0;
1595 int _arg1;
1596 PyObject * _argo0 = 0;
1597
1598 self = self;
1599 if(!PyArg_ParseTuple(args,"Oi:wxToolBar_GetToolEnabled",&_argo0,&_arg1))
1600 return NULL;
1601 if (_argo0) {
1602 if (_argo0 == Py_None) { _arg0 = NULL; }
1603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolEnabled. Expected _wxToolBar_p.");
1605 return NULL;
1606 }
1607 }
1608 {
1609 wxPy_BEGIN_ALLOW_THREADS;
1610 _result = (bool )wxToolBar_GetToolEnabled(_arg0,_arg1);
1611
1612 wxPy_END_ALLOW_THREADS;
1613 } _resultobj = Py_BuildValue("i",_result);
1614 return _resultobj;
1615 }
1616
1617 #define wxToolBar_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
1618 static PyObject *_wrap_wxToolBar_GetToolLongHelp(PyObject *self, PyObject *args) {
1619 PyObject * _resultobj;
1620 wxString * _result;
1621 wxToolBar * _arg0;
1622 int _arg1;
1623 PyObject * _argo0 = 0;
1624
1625 self = self;
1626 if(!PyArg_ParseTuple(args,"Oi:wxToolBar_GetToolLongHelp",&_argo0,&_arg1))
1627 return NULL;
1628 if (_argo0) {
1629 if (_argo0 == Py_None) { _arg0 = NULL; }
1630 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1631 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolLongHelp. Expected _wxToolBar_p.");
1632 return NULL;
1633 }
1634 }
1635 {
1636 wxPy_BEGIN_ALLOW_THREADS;
1637 _result = new wxString (wxToolBar_GetToolLongHelp(_arg0,_arg1));
1638
1639 wxPy_END_ALLOW_THREADS;
1640 }{
1641 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1642 }
1643 {
1644 delete _result;
1645 }
1646 return _resultobj;
1647 }
1648
1649 #define wxToolBar_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
1650 static PyObject *_wrap_wxToolBar_GetToolPacking(PyObject *self, PyObject *args) {
1651 PyObject * _resultobj;
1652 int _result;
1653 wxToolBar * _arg0;
1654 PyObject * _argo0 = 0;
1655
1656 self = self;
1657 if(!PyArg_ParseTuple(args,"O:wxToolBar_GetToolPacking",&_argo0))
1658 return NULL;
1659 if (_argo0) {
1660 if (_argo0 == Py_None) { _arg0 = NULL; }
1661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolPacking. Expected _wxToolBar_p.");
1663 return NULL;
1664 }
1665 }
1666 {
1667 wxPy_BEGIN_ALLOW_THREADS;
1668 _result = (int )wxToolBar_GetToolPacking(_arg0);
1669
1670 wxPy_END_ALLOW_THREADS;
1671 } _resultobj = Py_BuildValue("i",_result);
1672 return _resultobj;
1673 }
1674
1675 #define wxToolBar_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
1676 static PyObject *_wrap_wxToolBar_GetToolSeparation(PyObject *self, PyObject *args) {
1677 PyObject * _resultobj;
1678 int _result;
1679 wxToolBar * _arg0;
1680 PyObject * _argo0 = 0;
1681
1682 self = self;
1683 if(!PyArg_ParseTuple(args,"O:wxToolBar_GetToolSeparation",&_argo0))
1684 return NULL;
1685 if (_argo0) {
1686 if (_argo0 == Py_None) { _arg0 = NULL; }
1687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolSeparation. Expected _wxToolBar_p.");
1689 return NULL;
1690 }
1691 }
1692 {
1693 wxPy_BEGIN_ALLOW_THREADS;
1694 _result = (int )wxToolBar_GetToolSeparation(_arg0);
1695
1696 wxPy_END_ALLOW_THREADS;
1697 } _resultobj = Py_BuildValue("i",_result);
1698 return _resultobj;
1699 }
1700
1701 #define wxToolBar_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
1702 static PyObject *_wrap_wxToolBar_GetToolShortHelp(PyObject *self, PyObject *args) {
1703 PyObject * _resultobj;
1704 wxString * _result;
1705 wxToolBar * _arg0;
1706 int _arg1;
1707 PyObject * _argo0 = 0;
1708
1709 self = self;
1710 if(!PyArg_ParseTuple(args,"Oi:wxToolBar_GetToolShortHelp",&_argo0,&_arg1))
1711 return NULL;
1712 if (_argo0) {
1713 if (_argo0 == Py_None) { _arg0 = NULL; }
1714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolShortHelp. Expected _wxToolBar_p.");
1716 return NULL;
1717 }
1718 }
1719 {
1720 wxPy_BEGIN_ALLOW_THREADS;
1721 _result = new wxString (wxToolBar_GetToolShortHelp(_arg0,_arg1));
1722
1723 wxPy_END_ALLOW_THREADS;
1724 }{
1725 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1726 }
1727 {
1728 delete _result;
1729 }
1730 return _resultobj;
1731 }
1732
1733 #define wxToolBar_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
1734 static PyObject *_wrap_wxToolBar_GetToolState(PyObject *self, PyObject *args) {
1735 PyObject * _resultobj;
1736 bool _result;
1737 wxToolBar * _arg0;
1738 int _arg1;
1739 PyObject * _argo0 = 0;
1740
1741 self = self;
1742 if(!PyArg_ParseTuple(args,"Oi:wxToolBar_GetToolState",&_argo0,&_arg1))
1743 return NULL;
1744 if (_argo0) {
1745 if (_argo0 == Py_None) { _arg0 = NULL; }
1746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolState. Expected _wxToolBar_p.");
1748 return NULL;
1749 }
1750 }
1751 {
1752 wxPy_BEGIN_ALLOW_THREADS;
1753 _result = (bool )wxToolBar_GetToolState(_arg0,_arg1);
1754
1755 wxPy_END_ALLOW_THREADS;
1756 } _resultobj = Py_BuildValue("i",_result);
1757 return _resultobj;
1758 }
1759
1760 #define wxToolBar_Realize(_swigobj) (_swigobj->Realize())
1761 static PyObject *_wrap_wxToolBar_Realize(PyObject *self, PyObject *args) {
1762 PyObject * _resultobj;
1763 bool _result;
1764 wxToolBar * _arg0;
1765 PyObject * _argo0 = 0;
1766
1767 self = self;
1768 if(!PyArg_ParseTuple(args,"O:wxToolBar_Realize",&_argo0))
1769 return NULL;
1770 if (_argo0) {
1771 if (_argo0 == Py_None) { _arg0 = NULL; }
1772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_Realize. Expected _wxToolBar_p.");
1774 return NULL;
1775 }
1776 }
1777 {
1778 wxPy_BEGIN_ALLOW_THREADS;
1779 _result = (bool )wxToolBar_Realize(_arg0);
1780
1781 wxPy_END_ALLOW_THREADS;
1782 } _resultobj = Py_BuildValue("i",_result);
1783 return _resultobj;
1784 }
1785
1786 #define wxToolBar_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
1787 static PyObject *_wrap_wxToolBar_SetToolLongHelp(PyObject *self, PyObject *args) {
1788 PyObject * _resultobj;
1789 wxToolBar * _arg0;
1790 int _arg1;
1791 wxString * _arg2;
1792 PyObject * _argo0 = 0;
1793 PyObject * _obj2 = 0;
1794
1795 self = self;
1796 if(!PyArg_ParseTuple(args,"OiO:wxToolBar_SetToolLongHelp",&_argo0,&_arg1,&_obj2))
1797 return NULL;
1798 if (_argo0) {
1799 if (_argo0 == Py_None) { _arg0 = NULL; }
1800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolLongHelp. Expected _wxToolBar_p.");
1802 return NULL;
1803 }
1804 }
1805 {
1806 if (!PyString_Check(_obj2)) {
1807 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1808 return NULL;
1809 }
1810 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1811 }
1812 {
1813 wxPy_BEGIN_ALLOW_THREADS;
1814 wxToolBar_SetToolLongHelp(_arg0,_arg1,*_arg2);
1815
1816 wxPy_END_ALLOW_THREADS;
1817 } Py_INCREF(Py_None);
1818 _resultobj = Py_None;
1819 {
1820 if (_obj2)
1821 delete _arg2;
1822 }
1823 return _resultobj;
1824 }
1825
1826 #define wxToolBar_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
1827 static PyObject *_wrap_wxToolBar_SetToolShortHelp(PyObject *self, PyObject *args) {
1828 PyObject * _resultobj;
1829 wxToolBar * _arg0;
1830 int _arg1;
1831 wxString * _arg2;
1832 PyObject * _argo0 = 0;
1833 PyObject * _obj2 = 0;
1834
1835 self = self;
1836 if(!PyArg_ParseTuple(args,"OiO:wxToolBar_SetToolShortHelp",&_argo0,&_arg1,&_obj2))
1837 return NULL;
1838 if (_argo0) {
1839 if (_argo0 == Py_None) { _arg0 = NULL; }
1840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolShortHelp. Expected _wxToolBar_p.");
1842 return NULL;
1843 }
1844 }
1845 {
1846 if (!PyString_Check(_obj2)) {
1847 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1848 return NULL;
1849 }
1850 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1851 }
1852 {
1853 wxPy_BEGIN_ALLOW_THREADS;
1854 wxToolBar_SetToolShortHelp(_arg0,_arg1,*_arg2);
1855
1856 wxPy_END_ALLOW_THREADS;
1857 } Py_INCREF(Py_None);
1858 _resultobj = Py_None;
1859 {
1860 if (_obj2)
1861 delete _arg2;
1862 }
1863 return _resultobj;
1864 }
1865
1866 #define wxToolBar_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
1867 static PyObject *_wrap_wxToolBar_SetMargins(PyObject *self, PyObject *args) {
1868 PyObject * _resultobj;
1869 wxToolBar * _arg0;
1870 wxSize * _arg1;
1871 PyObject * _argo0 = 0;
1872 PyObject * _argo1 = 0;
1873
1874 self = self;
1875 if(!PyArg_ParseTuple(args,"OO:wxToolBar_SetMargins",&_argo0,&_argo1))
1876 return NULL;
1877 if (_argo0) {
1878 if (_argo0 == Py_None) { _arg0 = NULL; }
1879 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1880 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetMargins. Expected _wxToolBar_p.");
1881 return NULL;
1882 }
1883 }
1884 if (_argo1) {
1885 if (_argo1 == Py_None) { _arg1 = NULL; }
1886 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSize_p")) {
1887 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBar_SetMargins. Expected _wxSize_p.");
1888 return NULL;
1889 }
1890 }
1891 {
1892 wxPy_BEGIN_ALLOW_THREADS;
1893 wxToolBar_SetMargins(_arg0,*_arg1);
1894
1895 wxPy_END_ALLOW_THREADS;
1896 } Py_INCREF(Py_None);
1897 _resultobj = Py_None;
1898 return _resultobj;
1899 }
1900
1901 #define wxToolBar_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
1902 static PyObject *_wrap_wxToolBar_SetToolPacking(PyObject *self, PyObject *args) {
1903 PyObject * _resultobj;
1904 wxToolBar * _arg0;
1905 int _arg1;
1906 PyObject * _argo0 = 0;
1907
1908 self = self;
1909 if(!PyArg_ParseTuple(args,"Oi:wxToolBar_SetToolPacking",&_argo0,&_arg1))
1910 return NULL;
1911 if (_argo0) {
1912 if (_argo0 == Py_None) { _arg0 = NULL; }
1913 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1914 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolPacking. Expected _wxToolBar_p.");
1915 return NULL;
1916 }
1917 }
1918 {
1919 wxPy_BEGIN_ALLOW_THREADS;
1920 wxToolBar_SetToolPacking(_arg0,_arg1);
1921
1922 wxPy_END_ALLOW_THREADS;
1923 } Py_INCREF(Py_None);
1924 _resultobj = Py_None;
1925 return _resultobj;
1926 }
1927
1928 #define wxToolBar_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
1929 static PyObject *_wrap_wxToolBar_SetToolSeparation(PyObject *self, PyObject *args) {
1930 PyObject * _resultobj;
1931 wxToolBar * _arg0;
1932 int _arg1;
1933 PyObject * _argo0 = 0;
1934
1935 self = self;
1936 if(!PyArg_ParseTuple(args,"Oi:wxToolBar_SetToolSeparation",&_argo0,&_arg1))
1937 return NULL;
1938 if (_argo0) {
1939 if (_argo0 == Py_None) { _arg0 = NULL; }
1940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolSeparation. Expected _wxToolBar_p.");
1942 return NULL;
1943 }
1944 }
1945 {
1946 wxPy_BEGIN_ALLOW_THREADS;
1947 wxToolBar_SetToolSeparation(_arg0,_arg1);
1948
1949 wxPy_END_ALLOW_THREADS;
1950 } Py_INCREF(Py_None);
1951 _resultobj = Py_None;
1952 return _resultobj;
1953 }
1954
1955 #define wxToolBar_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
1956 static PyObject *_wrap_wxToolBar_ToggleTool(PyObject *self, PyObject *args) {
1957 PyObject * _resultobj;
1958 wxToolBar * _arg0;
1959 int _arg1;
1960 bool _arg2;
1961 PyObject * _argo0 = 0;
1962 int tempbool2;
1963
1964 self = self;
1965 if(!PyArg_ParseTuple(args,"Oii:wxToolBar_ToggleTool",&_argo0,&_arg1,&tempbool2))
1966 return NULL;
1967 if (_argo0) {
1968 if (_argo0 == Py_None) { _arg0 = NULL; }
1969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
1970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_ToggleTool. Expected _wxToolBar_p.");
1971 return NULL;
1972 }
1973 }
1974 _arg2 = (bool ) tempbool2;
1975 {
1976 wxPy_BEGIN_ALLOW_THREADS;
1977 wxToolBar_ToggleTool(_arg0,_arg1,_arg2);
1978
1979 wxPy_END_ALLOW_THREADS;
1980 } Py_INCREF(Py_None);
1981 _resultobj = Py_None;
1982 return _resultobj;
1983 }
1984
1985 static PyMethodDef stattoolcMethods[] = {
1986 { "wxToolBar_ToggleTool", _wrap_wxToolBar_ToggleTool, METH_VARARGS },
1987 { "wxToolBar_SetToolSeparation", _wrap_wxToolBar_SetToolSeparation, METH_VARARGS },
1988 { "wxToolBar_SetToolPacking", _wrap_wxToolBar_SetToolPacking, METH_VARARGS },
1989 { "wxToolBar_SetMargins", _wrap_wxToolBar_SetMargins, METH_VARARGS },
1990 { "wxToolBar_SetToolShortHelp", _wrap_wxToolBar_SetToolShortHelp, METH_VARARGS },
1991 { "wxToolBar_SetToolLongHelp", _wrap_wxToolBar_SetToolLongHelp, METH_VARARGS },
1992 { "wxToolBar_Realize", _wrap_wxToolBar_Realize, METH_VARARGS },
1993 { "wxToolBar_GetToolState", _wrap_wxToolBar_GetToolState, METH_VARARGS },
1994 { "wxToolBar_GetToolShortHelp", _wrap_wxToolBar_GetToolShortHelp, METH_VARARGS },
1995 { "wxToolBar_GetToolSeparation", _wrap_wxToolBar_GetToolSeparation, METH_VARARGS },
1996 { "wxToolBar_GetToolPacking", _wrap_wxToolBar_GetToolPacking, METH_VARARGS },
1997 { "wxToolBar_GetToolLongHelp", _wrap_wxToolBar_GetToolLongHelp, METH_VARARGS },
1998 { "wxToolBar_GetToolEnabled", _wrap_wxToolBar_GetToolEnabled, METH_VARARGS },
1999 { "wxToolBar_EnableTool", _wrap_wxToolBar_EnableTool, METH_VARARGS },
2000 { "wxToolBar_AddSimpleTool", _wrap_wxToolBar_AddSimpleTool, METH_VARARGS },
2001 { "wxToolBar_AddTool", _wrap_wxToolBar_AddTool, METH_VARARGS },
2002 { "wxToolBar_AddSeparator", _wrap_wxToolBar_AddSeparator, METH_VARARGS },
2003 { "new_wxToolBar", _wrap_new_wxToolBar, METH_VARARGS },
2004 { "wxToolBarTool_m_longHelpString_get", _wrap_wxToolBarTool_m_longHelpString_get, METH_VARARGS },
2005 { "wxToolBarTool_m_longHelpString_set", _wrap_wxToolBarTool_m_longHelpString_set, METH_VARARGS },
2006 { "wxToolBarTool_m_shortHelpString_get", _wrap_wxToolBarTool_m_shortHelpString_get, METH_VARARGS },
2007 { "wxToolBarTool_m_shortHelpString_set", _wrap_wxToolBarTool_m_shortHelpString_set, METH_VARARGS },
2008 { "wxToolBarTool_m_isMenuCommand_get", _wrap_wxToolBarTool_m_isMenuCommand_get, METH_VARARGS },
2009 { "wxToolBarTool_m_isMenuCommand_set", _wrap_wxToolBarTool_m_isMenuCommand_set, METH_VARARGS },
2010 { "wxToolBarTool_m_bitmap2_get", _wrap_wxToolBarTool_m_bitmap2_get, METH_VARARGS },
2011 { "wxToolBarTool_m_bitmap2_set", _wrap_wxToolBarTool_m_bitmap2_set, METH_VARARGS },
2012 { "wxToolBarTool_m_bitmap1_get", _wrap_wxToolBarTool_m_bitmap1_get, METH_VARARGS },
2013 { "wxToolBarTool_m_bitmap1_set", _wrap_wxToolBarTool_m_bitmap1_set, METH_VARARGS },
2014 { "wxToolBarTool_m_enabled_get", _wrap_wxToolBarTool_m_enabled_get, METH_VARARGS },
2015 { "wxToolBarTool_m_enabled_set", _wrap_wxToolBarTool_m_enabled_set, METH_VARARGS },
2016 { "wxToolBarTool_m_deleteSecondBitmap_get", _wrap_wxToolBarTool_m_deleteSecondBitmap_get, METH_VARARGS },
2017 { "wxToolBarTool_m_deleteSecondBitmap_set", _wrap_wxToolBarTool_m_deleteSecondBitmap_set, METH_VARARGS },
2018 { "wxToolBarTool_m_isToggle_get", _wrap_wxToolBarTool_m_isToggle_get, METH_VARARGS },
2019 { "wxToolBarTool_m_isToggle_set", _wrap_wxToolBarTool_m_isToggle_set, METH_VARARGS },
2020 { "wxToolBarTool_m_toggleState_get", _wrap_wxToolBarTool_m_toggleState_get, METH_VARARGS },
2021 { "wxToolBarTool_m_toggleState_set", _wrap_wxToolBarTool_m_toggleState_set, METH_VARARGS },
2022 { "wxToolBarTool_m_index_get", _wrap_wxToolBarTool_m_index_get, METH_VARARGS },
2023 { "wxToolBarTool_m_index_set", _wrap_wxToolBarTool_m_index_set, METH_VARARGS },
2024 { "wxToolBarTool_m_clientData_get", _wrap_wxToolBarTool_m_clientData_get, METH_VARARGS },
2025 { "wxToolBarTool_m_clientData_set", _wrap_wxToolBarTool_m_clientData_set, METH_VARARGS },
2026 { "wxToolBarTool_m_toolStyle_get", _wrap_wxToolBarTool_m_toolStyle_get, METH_VARARGS },
2027 { "wxToolBarTool_m_toolStyle_set", _wrap_wxToolBarTool_m_toolStyle_set, METH_VARARGS },
2028 { "delete_wxToolBarTool", _wrap_delete_wxToolBarTool, METH_VARARGS },
2029 { "new_wxToolBarTool", _wrap_new_wxToolBarTool, METH_VARARGS },
2030 { "wxStatusBar_SetStatusWidths", _wrap_wxStatusBar_SetStatusWidths, METH_VARARGS },
2031 { "wxStatusBar_SetStatusText", _wrap_wxStatusBar_SetStatusText, METH_VARARGS },
2032 { "wxStatusBar_SetFieldsCount", _wrap_wxStatusBar_SetFieldsCount, METH_VARARGS },
2033 { "wxStatusBar_InitColours", _wrap_wxStatusBar_InitColours, METH_VARARGS },
2034 { "wxStatusBar_DrawFieldText", _wrap_wxStatusBar_DrawFieldText, METH_VARARGS },
2035 { "wxStatusBar_DrawField", _wrap_wxStatusBar_DrawField, METH_VARARGS },
2036 { "wxStatusBar_GetStatusText", _wrap_wxStatusBar_GetStatusText, METH_VARARGS },
2037 { "wxStatusBar_GetFieldsCount", _wrap_wxStatusBar_GetFieldsCount, METH_VARARGS },
2038 { "wxStatusBar_GetFieldRect", _wrap_wxStatusBar_GetFieldRect, METH_VARARGS },
2039 { "new_wxStatusBar", _wrap_new_wxStatusBar, METH_VARARGS },
2040 { NULL, NULL }
2041 };
2042 #ifdef __cplusplus
2043 }
2044 #endif
2045 /*
2046 * This table is used by the pointer type-checker
2047 */
2048 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2049 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
2050 { "_wxEvent","_class_wxEvent",0},
2051 { "_class_wxActivateEvent","_wxActivateEvent",0},
2052 { "_signed_long","_long",0},
2053 { "_wxMenuEvent","_class_wxMenuEvent",0},
2054 { "_wxPrintQuality","_int",0},
2055 { "_wxPrintQuality","_signed_int",0},
2056 { "_wxPrintQuality","_unsigned_int",0},
2057 { "_wxPrintQuality","_wxWindowID",0},
2058 { "_wxPrintQuality","_uint",0},
2059 { "_wxPrintQuality","_EBool",0},
2060 { "_wxPrintQuality","_size_t",0},
2061 { "_class_wxRegionIterator","_wxRegionIterator",0},
2062 { "_class_wxMenuBar","_wxMenuBar",0},
2063 { "_class_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler},
2064 { "_class_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler},
2065 { "_class_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
2066 { "_class_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
2067 { "_class_wxEvtHandler","_wxEvtHandler",0},
2068 { "_wxPaintEvent","_class_wxPaintEvent",0},
2069 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
2070 { "_wxCursor","_class_wxCursor",0},
2071 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
2072 { "_wxMask","_class_wxMask",0},
2073 { "_wxPen","_class_wxPen",0},
2074 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
2075 { "_byte","_unsigned_char",0},
2076 { "_wxStaticBox","_class_wxStaticBox",0},
2077 { "_wxChoice","_class_wxChoice",0},
2078 { "_wxSlider","_class_wxSlider",0},
2079 { "_long","_wxDash",0},
2080 { "_long","_unsigned_long",0},
2081 { "_long","_signed_long",0},
2082 { "_wxImageList","_class_wxImageList",0},
2083 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
2084 { "_wxBitmapButton","_class_wxBitmapButton",0},
2085 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
2086 { "_class_wxGauge","_wxGauge",0},
2087 { "_wxDC","_class_wxDC",0},
2088 { "_wxSpinEvent","_class_wxSpinEvent",0},
2089 { "_size_t","_wxPrintQuality",0},
2090 { "_size_t","_unsigned_int",0},
2091 { "_size_t","_int",0},
2092 { "_size_t","_wxWindowID",0},
2093 { "_size_t","_uint",0},
2094 { "_class_wxRealPoint","_wxRealPoint",0},
2095 { "_class_wxMenuItem","_wxMenuItem",0},
2096 { "_class_wxPaintEvent","_wxPaintEvent",0},
2097 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
2098 { "_class_wxStatusBar","_wxStatusBar",0},
2099 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
2100 { "_wxPanel","_class_wxPanel",0},
2101 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
2102 { "_wxCheckBox","_class_wxCheckBox",0},
2103 { "_wxPyEvent","_class_wxPyEvent",0},
2104 { "_wxTextCtrl","_class_wxTextCtrl",0},
2105 { "_class_wxMask","_wxMask",0},
2106 { "_class_wxKeyEvent","_wxKeyEvent",0},
2107 { "_wxColour","_class_wxColour",0},
2108 { "_class_wxDialog","_wxDialog",0},
2109 { "_wxIdleEvent","_class_wxIdleEvent",0},
2110 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
2111 { "_wxToolBar","_class_wxToolBar",0},
2112 { "_wxStaticLine","_class_wxStaticLine",0},
2113 { "_wxBrush","_class_wxBrush",0},
2114 { "_wxShowEvent","_class_wxShowEvent",0},
2115 { "_uint","_wxPrintQuality",0},
2116 { "_uint","_size_t",0},
2117 { "_uint","_unsigned_int",0},
2118 { "_uint","_int",0},
2119 { "_uint","_wxWindowID",0},
2120 { "_class_wxEvent","_wxEvent",0},
2121 { "_wxCheckListBox","_class_wxCheckListBox",0},
2122 { "_wxRect","_class_wxRect",0},
2123 { "_wxCommandEvent","_class_wxCommandEvent",0},
2124 { "_wxSizeEvent","_class_wxSizeEvent",0},
2125 { "_wxPoint","_class_wxPoint",0},
2126 { "_class_wxButton","_wxButton",0},
2127 { "_wxRadioBox","_class_wxRadioBox",0},
2128 { "_wxBitmap","_class_wxBitmap",0},
2129 { "_wxPyTimer","_class_wxPyTimer",0},
2130 { "_wxWindowDC","_class_wxWindowDC",0},
2131 { "_wxScrollBar","_class_wxScrollBar",0},
2132 { "_wxSpinButton","_class_wxSpinButton",0},
2133 { "_wxToolBarTool","_class_wxToolBarTool",0},
2134 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
2135 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
2136 { "_class_wxPyEvent","_wxPyEvent",0},
2137 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
2138 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
2139 { "_class_wxToolBar","_wxToolBar",0},
2140 { "_class_wxStaticLine","_wxStaticLine",0},
2141 { "_wxScrollEvent","_class_wxScrollEvent",0},
2142 { "_EBool","_wxPrintQuality",0},
2143 { "_EBool","_signed_int",0},
2144 { "_EBool","_int",0},
2145 { "_EBool","_wxWindowID",0},
2146 { "_class_wxRegion","_wxRegion",0},
2147 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
2148 { "_wxStaticText","_class_wxStaticText",0},
2149 { "_wxFont","_class_wxFont",0},
2150 { "_wxCloseEvent","_class_wxCloseEvent",0},
2151 { "_unsigned_long","_wxDash",0},
2152 { "_unsigned_long","_long",0},
2153 { "_class_wxRect","_wxRect",0},
2154 { "_class_wxDC","_wxDC",0},
2155 { "_class_wxPyTimer","_wxPyTimer",0},
2156 { "_wxFocusEvent","_class_wxFocusEvent",0},
2157 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
2158 { "_class_wxSpinButton","_wxSpinButton",0},
2159 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
2160 { "_class_wxPanel","_wxPanel",0},
2161 { "_class_wxCheckBox","_wxCheckBox",0},
2162 { "_wxComboBox","_class_wxComboBox",0},
2163 { "_wxRadioButton","_class_wxRadioButton",0},
2164 { "_signed_int","_wxPrintQuality",0},
2165 { "_signed_int","_EBool",0},
2166 { "_signed_int","_wxWindowID",0},
2167 { "_signed_int","_int",0},
2168 { "_class_wxTextCtrl","_wxTextCtrl",0},
2169 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
2170 { "_wxMenu","_class_wxMenu",0},
2171 { "_class_wxMoveEvent","_wxMoveEvent",0},
2172 { "_wxListBox","_class_wxListBox",0},
2173 { "_wxScreenDC","_class_wxScreenDC",0},
2174 { "_WXTYPE","_short",0},
2175 { "_WXTYPE","_signed_short",0},
2176 { "_WXTYPE","_unsigned_short",0},
2177 { "_class_wxBrush","_wxBrush",0},
2178 { "_unsigned_short","_WXTYPE",0},
2179 { "_unsigned_short","_short",0},
2180 { "_class_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow},
2181 { "_class_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow},
2182 { "_class_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow},
2183 { "_class_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow},
2184 { "_class_wxWindow","_wxWindow",0},
2185 { "_class_wxStaticText","_wxStaticText",0},
2186 { "_class_wxFont","_wxFont",0},
2187 { "_class_wxCloseEvent","_wxCloseEvent",0},
2188 { "_class_wxMenuEvent","_wxMenuEvent",0},
2189 { "_wxClientDC","_class_wxClientDC",0},
2190 { "_wxMouseEvent","_class_wxMouseEvent",0},
2191 { "_class_wxPoint","_wxPoint",0},
2192 { "_wxRealPoint","_class_wxRealPoint",0},
2193 { "_class_wxRadioBox","_wxRadioBox",0},
2194 { "_signed_short","_WXTYPE",0},
2195 { "_signed_short","_short",0},
2196 { "_wxMemoryDC","_class_wxMemoryDC",0},
2197 { "_wxPaintDC","_class_wxPaintDC",0},
2198 { "_class_wxWindowDC","_wxWindowDC",0},
2199 { "_class_wxFocusEvent","_wxFocusEvent",0},
2200 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
2201 { "_wxStatusBar","_class_wxStatusBar",0},
2202 { "_class_wxToolBarTool","_wxToolBarTool",0},
2203 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
2204 { "_class_wxCursor","_wxCursor",0},
2205 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
2206 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
2207 { "_unsigned_char","_byte",0},
2208 { "_class_wxMenu","_wxMenu",0},
2209 { "_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl},
2210 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl},
2211 { "_wxControl","_class_wxControl",0},
2212 { "_class_wxListBox","_wxListBox",0},
2213 { "_unsigned_int","_wxPrintQuality",0},
2214 { "_unsigned_int","_size_t",0},
2215 { "_unsigned_int","_uint",0},
2216 { "_unsigned_int","_wxWindowID",0},
2217 { "_unsigned_int","_int",0},
2218 { "_wxIcon","_class_wxIcon",0},
2219 { "_wxDialog","_class_wxDialog",0},
2220 { "_class_wxPen","_wxPen",0},
2221 { "_short","_WXTYPE",0},
2222 { "_short","_unsigned_short",0},
2223 { "_short","_signed_short",0},
2224 { "_class_wxStaticBox","_wxStaticBox",0},
2225 { "_class_wxScrollEvent","_wxScrollEvent",0},
2226 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
2227 { "_class_wxChoice","_wxChoice",0},
2228 { "_class_wxSlider","_wxSlider",0},
2229 { "_class_wxImageList","_wxImageList",0},
2230 { "_class_wxBitmapButton","_wxBitmapButton",0},
2231 { "_wxWindowID","_wxPrintQuality",0},
2232 { "_wxWindowID","_size_t",0},
2233 { "_wxWindowID","_EBool",0},
2234 { "_wxWindowID","_uint",0},
2235 { "_wxWindowID","_int",0},
2236 { "_wxWindowID","_signed_int",0},
2237 { "_wxWindowID","_unsigned_int",0},
2238 { "_int","_wxPrintQuality",0},
2239 { "_int","_size_t",0},
2240 { "_int","_EBool",0},
2241 { "_int","_uint",0},
2242 { "_int","_wxWindowID",0},
2243 { "_int","_unsigned_int",0},
2244 { "_int","_signed_int",0},
2245 { "_class_wxMouseEvent","_wxMouseEvent",0},
2246 { "_class_wxSpinEvent","_wxSpinEvent",0},
2247 { "_wxButton","_class_wxButton",0},
2248 { "_wxSize","_class_wxSize",0},
2249 { "_wxRegionIterator","_class_wxRegionIterator",0},
2250 { "_class_wxPaintDC","_wxPaintDC",0},
2251 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
2252 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
2253 { "_class_wxComboBox","_wxComboBox",0},
2254 { "_class_wxRadioButton","_wxRadioButton",0},
2255 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
2256 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
2257 { "_class_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl},
2258 { "_class_wxControl","_wxToolBar",SwigwxToolBarTowxControl},
2259 { "_class_wxControl","_wxControl",0},
2260 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
2261 { "_class_wxIcon","_wxIcon",0},
2262 { "_class_wxColour","_wxColour",0},
2263 { "_class_wxScreenDC","_wxScreenDC",0},
2264 { "_wxPalette","_class_wxPalette",0},
2265 { "_class_wxIdleEvent","_wxIdleEvent",0},
2266 { "_wxEraseEvent","_class_wxEraseEvent",0},
2267 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
2268 { "_wxRegion","_class_wxRegion",0},
2269 { "_class_wxShowEvent","_wxShowEvent",0},
2270 { "_wxActivateEvent","_class_wxActivateEvent",0},
2271 { "_wxGauge","_class_wxGauge",0},
2272 { "_class_wxCheckListBox","_wxCheckListBox",0},
2273 { "_class_wxCommandEvent","_wxCommandEvent",0},
2274 { "_class_wxClientDC","_wxClientDC",0},
2275 { "_class_wxSizeEvent","_wxSizeEvent",0},
2276 { "_class_wxSize","_wxSize",0},
2277 { "_class_wxBitmap","_wxBitmap",0},
2278 { "_class_wxMemoryDC","_wxMemoryDC",0},
2279 { "_wxMenuBar","_class_wxMenuBar",0},
2280 { "_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler},
2281 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler},
2282 { "_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
2283 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
2284 { "_wxEvtHandler","_class_wxEvtHandler",0},
2285 { "_wxMenuItem","_class_wxMenuItem",0},
2286 { "_class_wxScrollBar","_wxScrollBar",0},
2287 { "_wxDash","_unsigned_long",0},
2288 { "_wxDash","_long",0},
2289 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
2290 { "_wxKeyEvent","_class_wxKeyEvent",0},
2291 { "_wxMoveEvent","_class_wxMoveEvent",0},
2292 { "_class_wxPalette","_wxPalette",0},
2293 { "_class_wxEraseEvent","_wxEraseEvent",0},
2294 { "_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow},
2295 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow},
2296 { "_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow},
2297 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow},
2298 { "_wxWindow","_class_wxWindow",0},
2299 {0,0,0}};
2300
2301 static PyObject *SWIG_globals;
2302 #ifdef __cplusplus
2303 extern "C"
2304 #endif
2305 SWIGEXPORT(void) initstattoolc() {
2306 PyObject *m, *d;
2307 SWIG_globals = SWIG_newvarlink();
2308 m = Py_InitModule("stattoolc", stattoolcMethods);
2309 d = PyModule_GetDict(m);
2310 {
2311 int i;
2312 for (i = 0; _swig_mapping[i].n1; i++)
2313 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2314 }
2315 }