]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/stattool.cpp
Added GetMaxSize virtual method for use by sizers.
[wxWidgets.git] / wxPython / src / gtk / stattool.cpp
1 /*
2 * FILE : src/gtk/stattool.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initstattoolc
55
56 #define SWIG_name "stattoolc"
57
58 #include "helpers.h"
59 #include <wx/toolbar.h>
60 #include <wx/tbarsmpl.h>
61
62
63 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
64 PyObject* o2;
65 PyObject* o3;
66
67 if (!target) {
68 target = o;
69 } else if (target == Py_None) {
70 Py_DECREF(Py_None);
71 target = o;
72 } else {
73 if (!PyTuple_Check(target)) {
74 o2 = target;
75 target = PyTuple_New(1);
76 PyTuple_SetItem(target, 0, o2);
77 }
78 o3 = PyTuple_New(1);
79 PyTuple_SetItem(o3, 0, o);
80
81 o2 = target;
82 target = PySequence_Concat(o2, o3);
83 Py_DECREF(o2);
84 Py_DECREF(o3);
85 }
86 return target;
87 }
88
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg = "String or Unicode type required";
91 #else
92 static char* wxStringErrorMsg = "String type required";
93 #endif
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97 static void *SwigwxStatusBarTowxWindow(void *ptr) {
98 wxStatusBar *src;
99 wxWindow *dest;
100 src = (wxStatusBar *) ptr;
101 dest = (wxWindow *) src;
102 return (void *) dest;
103 }
104
105 static void *SwigwxStatusBarTowxEvtHandler(void *ptr) {
106 wxStatusBar *src;
107 wxEvtHandler *dest;
108 src = (wxStatusBar *) ptr;
109 dest = (wxEvtHandler *) src;
110 return (void *) dest;
111 }
112
113 static void *SwigwxStatusBarTowxObject(void *ptr) {
114 wxStatusBar *src;
115 wxObject *dest;
116 src = (wxStatusBar *) ptr;
117 dest = (wxObject *) src;
118 return (void *) dest;
119 }
120
121 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
122 static PyObject *_wrap_new_wxStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
123 PyObject * _resultobj;
124 wxStatusBar * _result;
125 wxWindow * _arg0;
126 wxWindowID _arg1 = (wxWindowID ) -1;
127 long _arg2 = (long ) wxST_SIZEGRIP;
128 char * _arg3 = (char *) "statusBar";
129 PyObject * _argo0 = 0;
130 char *_kwnames[] = { "parent","id","style","name", NULL };
131 char _ptemp[128];
132
133 self = self;
134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ils:new_wxStatusBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
135 return NULL;
136 if (_argo0) {
137 if (_argo0 == Py_None) { _arg0 = NULL; }
138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
140 return NULL;
141 }
142 }
143 {
144 PyThreadState* __tstate = wxPyBeginAllowThreads();
145 _result = (wxStatusBar *)new_wxStatusBar(_arg0,_arg1,_arg2,_arg3);
146
147 wxPyEndAllowThreads(__tstate);
148 if (PyErr_Occurred()) return NULL;
149 } if (_result) {
150 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
151 _resultobj = Py_BuildValue("s",_ptemp);
152 } else {
153 Py_INCREF(Py_None);
154 _resultobj = Py_None;
155 }
156 return _resultobj;
157 }
158
159 #define new_wxPreStatusBar() (new wxStatusBar())
160 static PyObject *_wrap_new_wxPreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
161 PyObject * _resultobj;
162 wxStatusBar * _result;
163 char *_kwnames[] = { NULL };
164 char _ptemp[128];
165
166 self = self;
167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStatusBar",_kwnames))
168 return NULL;
169 {
170 PyThreadState* __tstate = wxPyBeginAllowThreads();
171 _result = (wxStatusBar *)new_wxPreStatusBar();
172
173 wxPyEndAllowThreads(__tstate);
174 if (PyErr_Occurred()) return NULL;
175 } if (_result) {
176 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
177 _resultobj = Py_BuildValue("s",_ptemp);
178 } else {
179 Py_INCREF(Py_None);
180 _resultobj = Py_None;
181 }
182 return _resultobj;
183 }
184
185 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
186 static PyObject *_wrap_wxStatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
187 PyObject * _resultobj;
188 bool _result;
189 wxStatusBar * _arg0;
190 wxWindow * _arg1;
191 wxWindowID _arg2;
192 long _arg3 = (long ) wxST_SIZEGRIP;
193 char * _arg4 = (char *) "statusBar";
194 PyObject * _argo0 = 0;
195 PyObject * _argo1 = 0;
196 char *_kwnames[] = { "self","parent","id","style","name", NULL };
197
198 self = self;
199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|ls:wxStatusBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
200 return NULL;
201 if (_argo0) {
202 if (_argo0 == Py_None) { _arg0 = NULL; }
203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
205 return NULL;
206 }
207 }
208 if (_argo1) {
209 if (_argo1 == Py_None) { _arg1 = NULL; }
210 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
211 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
212 return NULL;
213 }
214 }
215 {
216 PyThreadState* __tstate = wxPyBeginAllowThreads();
217 _result = (bool )wxStatusBar_Create(_arg0,_arg1,_arg2,_arg3,_arg4);
218
219 wxPyEndAllowThreads(__tstate);
220 if (PyErr_Occurred()) return NULL;
221 } _resultobj = Py_BuildValue("i",_result);
222 return _resultobj;
223 }
224
225 static wxRect * wxStatusBar_GetFieldRect(wxStatusBar *self,long item) {
226 wxRect* rect= new wxRect;
227 self->GetFieldRect(item, *rect);
228 return rect;
229 }
230 static PyObject *_wrap_wxStatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) {
231 PyObject * _resultobj;
232 wxRect * _result;
233 wxStatusBar * _arg0;
234 long _arg1;
235 PyObject * _argo0 = 0;
236 char *_kwnames[] = { "self","item", NULL };
237 char _ptemp[128];
238
239 self = self;
240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxStatusBar_GetFieldRect",_kwnames,&_argo0,&_arg1))
241 return NULL;
242 if (_argo0) {
243 if (_argo0 == Py_None) { _arg0 = NULL; }
244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
246 return NULL;
247 }
248 }
249 {
250 PyThreadState* __tstate = wxPyBeginAllowThreads();
251 _result = (wxRect *)wxStatusBar_GetFieldRect(_arg0,_arg1);
252
253 wxPyEndAllowThreads(__tstate);
254 if (PyErr_Occurred()) return NULL;
255 } if (_result) {
256 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
257 _resultobj = Py_BuildValue("s",_ptemp);
258 } else {
259 Py_INCREF(Py_None);
260 _resultobj = Py_None;
261 }
262 return _resultobj;
263 }
264
265 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
266 static PyObject *_wrap_wxStatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
267 PyObject * _resultobj;
268 int _result;
269 wxStatusBar * _arg0;
270 PyObject * _argo0 = 0;
271 char *_kwnames[] = { "self", NULL };
272
273 self = self;
274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetFieldsCount",_kwnames,&_argo0))
275 return NULL;
276 if (_argo0) {
277 if (_argo0 == Py_None) { _arg0 = NULL; }
278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
280 return NULL;
281 }
282 }
283 {
284 PyThreadState* __tstate = wxPyBeginAllowThreads();
285 _result = (int )wxStatusBar_GetFieldsCount(_arg0);
286
287 wxPyEndAllowThreads(__tstate);
288 if (PyErr_Occurred()) return NULL;
289 } _resultobj = Py_BuildValue("i",_result);
290 return _resultobj;
291 }
292
293 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
294 static PyObject *_wrap_wxStatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) {
295 PyObject * _resultobj;
296 wxString * _result;
297 wxStatusBar * _arg0;
298 int _arg1 = (int ) 0;
299 PyObject * _argo0 = 0;
300 char *_kwnames[] = { "self","ir", NULL };
301
302 self = self;
303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxStatusBar_GetStatusText",_kwnames,&_argo0,&_arg1))
304 return NULL;
305 if (_argo0) {
306 if (_argo0 == Py_None) { _arg0 = NULL; }
307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
309 return NULL;
310 }
311 }
312 {
313 PyThreadState* __tstate = wxPyBeginAllowThreads();
314 _result = new wxString (wxStatusBar_GetStatusText(_arg0,_arg1));
315
316 wxPyEndAllowThreads(__tstate);
317 if (PyErr_Occurred()) return NULL;
318 }{
319 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
320 }
321 {
322 delete _result;
323 }
324 return _resultobj;
325 }
326
327 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
328 static PyObject *_wrap_wxStatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) {
329 PyObject * _resultobj;
330 int _result;
331 wxStatusBar * _arg0;
332 PyObject * _argo0 = 0;
333 char *_kwnames[] = { "self", NULL };
334
335 self = self;
336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderX",_kwnames,&_argo0))
337 return NULL;
338 if (_argo0) {
339 if (_argo0 == Py_None) { _arg0 = NULL; }
340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
342 return NULL;
343 }
344 }
345 {
346 PyThreadState* __tstate = wxPyBeginAllowThreads();
347 _result = (int )wxStatusBar_GetBorderX(_arg0);
348
349 wxPyEndAllowThreads(__tstate);
350 if (PyErr_Occurred()) return NULL;
351 } _resultobj = Py_BuildValue("i",_result);
352 return _resultobj;
353 }
354
355 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
356 static PyObject *_wrap_wxStatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) {
357 PyObject * _resultobj;
358 int _result;
359 wxStatusBar * _arg0;
360 PyObject * _argo0 = 0;
361 char *_kwnames[] = { "self", NULL };
362
363 self = self;
364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderY",_kwnames,&_argo0))
365 return NULL;
366 if (_argo0) {
367 if (_argo0 == Py_None) { _arg0 = NULL; }
368 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
369 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
370 return NULL;
371 }
372 }
373 {
374 PyThreadState* __tstate = wxPyBeginAllowThreads();
375 _result = (int )wxStatusBar_GetBorderY(_arg0);
376
377 wxPyEndAllowThreads(__tstate);
378 if (PyErr_Occurred()) return NULL;
379 } _resultobj = Py_BuildValue("i",_result);
380 return _resultobj;
381 }
382
383 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
384 static PyObject *_wrap_wxStatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
385 PyObject * _resultobj;
386 wxStatusBar * _arg0;
387 int _arg1 = (int ) 1;
388 PyObject * _argo0 = 0;
389 char *_kwnames[] = { "self","number", NULL };
390
391 self = self;
392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxStatusBar_SetFieldsCount",_kwnames,&_argo0,&_arg1))
393 return NULL;
394 if (_argo0) {
395 if (_argo0 == Py_None) { _arg0 = NULL; }
396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
398 return NULL;
399 }
400 }
401 {
402 PyThreadState* __tstate = wxPyBeginAllowThreads();
403 wxStatusBar_SetFieldsCount(_arg0,_arg1);
404
405 wxPyEndAllowThreads(__tstate);
406 if (PyErr_Occurred()) return NULL;
407 } Py_INCREF(Py_None);
408 _resultobj = Py_None;
409 return _resultobj;
410 }
411
412 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
413 static PyObject *_wrap_wxStatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) {
414 PyObject * _resultobj;
415 wxStatusBar * _arg0;
416 wxString * _arg1;
417 int _arg2 = (int ) 0;
418 PyObject * _argo0 = 0;
419 PyObject * _obj1 = 0;
420 char *_kwnames[] = { "self","text","i", NULL };
421
422 self = self;
423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxStatusBar_SetStatusText",_kwnames,&_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 PYTHON_API_VERSION >= 1009
434 char* tmpPtr; int tmpSize;
435 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
436 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
437 return NULL;
438 }
439 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
440 return NULL;
441 _arg1 = new wxString(tmpPtr, tmpSize);
442 #else
443 if (!PyString_Check(_obj1)) {
444 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
445 return NULL;
446 }
447 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
448 #endif
449 }
450 {
451 PyThreadState* __tstate = wxPyBeginAllowThreads();
452 wxStatusBar_SetStatusText(_arg0,*_arg1,_arg2);
453
454 wxPyEndAllowThreads(__tstate);
455 if (PyErr_Occurred()) return NULL;
456 } Py_INCREF(Py_None);
457 _resultobj = Py_None;
458 {
459 if (_obj1)
460 delete _arg1;
461 }
462 return _resultobj;
463 }
464
465 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
466 static PyObject *_wrap_wxStatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
467 PyObject * _resultobj;
468 wxStatusBar * _arg0;
469 int _arg1;
470 int * _arg2;
471 PyObject * _argo0 = 0;
472 PyObject * _obj2 = 0;
473 char *_kwnames[] = { "self","choices", NULL };
474
475 self = self;
476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStatusBar_SetStatusWidths",_kwnames,&_argo0,&_obj2))
477 return NULL;
478 if (_argo0) {
479 if (_argo0 == Py_None) { _arg0 = NULL; }
480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
482 return NULL;
483 }
484 }
485 if (_obj2)
486 {
487 _arg2 = int_LIST_helper(_obj2);
488 if (_arg2 == NULL) {
489 return NULL;
490 }
491 }
492 {
493 if (_obj2) {
494 _arg1 = PyList_Size(_obj2);
495 }
496 else {
497 _arg1 = 0;
498 }
499 }
500 {
501 PyThreadState* __tstate = wxPyBeginAllowThreads();
502 wxStatusBar_SetStatusWidths(_arg0,_arg1,_arg2);
503
504 wxPyEndAllowThreads(__tstate);
505 if (PyErr_Occurred()) return NULL;
506 } Py_INCREF(Py_None);
507 _resultobj = Py_None;
508 {
509 delete [] _arg2;
510 }
511 return _resultobj;
512 }
513
514 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
515 static PyObject *_wrap_wxStatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
516 PyObject * _resultobj;
517 wxStatusBar * _arg0;
518 int _arg1;
519 PyObject * _argo0 = 0;
520 char *_kwnames[] = { "self","height", NULL };
521
522 self = self;
523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStatusBar_SetMinHeight",_kwnames,&_argo0,&_arg1))
524 return NULL;
525 if (_argo0) {
526 if (_argo0 == Py_None) { _arg0 = NULL; }
527 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
528 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
529 return NULL;
530 }
531 }
532 {
533 PyThreadState* __tstate = wxPyBeginAllowThreads();
534 wxStatusBar_SetMinHeight(_arg0,_arg1);
535
536 wxPyEndAllowThreads(__tstate);
537 if (PyErr_Occurred()) return NULL;
538 } Py_INCREF(Py_None);
539 _resultobj = Py_None;
540 return _resultobj;
541 }
542
543 static void *SwigwxToolBarToolBaseTowxObject(void *ptr) {
544 wxToolBarToolBase *src;
545 wxObject *dest;
546 src = (wxToolBarToolBase *) ptr;
547 dest = (wxObject *) src;
548 return (void *) dest;
549 }
550
551 static void wxToolBarToolBase_Destroy(wxToolBarToolBase *self) { delete self; }
552 static PyObject *_wrap_wxToolBarToolBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
553 PyObject * _resultobj;
554 wxToolBarToolBase * _arg0;
555 PyObject * _argo0 = 0;
556 char *_kwnames[] = { "self", NULL };
557
558 self = self;
559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_Destroy",_kwnames,&_argo0))
560 return NULL;
561 if (_argo0) {
562 if (_argo0 == Py_None) { _arg0 = NULL; }
563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
565 return NULL;
566 }
567 }
568 {
569 PyThreadState* __tstate = wxPyBeginAllowThreads();
570 wxToolBarToolBase_Destroy(_arg0);
571
572 wxPyEndAllowThreads(__tstate);
573 if (PyErr_Occurred()) return NULL;
574 } Py_INCREF(Py_None);
575 _resultobj = Py_None;
576 return _resultobj;
577 }
578
579 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
580 static PyObject *_wrap_wxToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
581 PyObject * _resultobj;
582 int _result;
583 wxToolBarToolBase * _arg0;
584 PyObject * _argo0 = 0;
585 char *_kwnames[] = { "self", NULL };
586
587 self = self;
588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetId",_kwnames,&_argo0))
589 return NULL;
590 if (_argo0) {
591 if (_argo0 == Py_None) { _arg0 = NULL; }
592 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
593 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
594 return NULL;
595 }
596 }
597 {
598 PyThreadState* __tstate = wxPyBeginAllowThreads();
599 _result = (int )wxToolBarToolBase_GetId(_arg0);
600
601 wxPyEndAllowThreads(__tstate);
602 if (PyErr_Occurred()) return NULL;
603 } _resultobj = Py_BuildValue("i",_result);
604 return _resultobj;
605 }
606
607 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
608 static PyObject *_wrap_wxToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
609 PyObject * _resultobj;
610 wxControl * _result;
611 wxToolBarToolBase * _arg0;
612 PyObject * _argo0 = 0;
613 char *_kwnames[] = { "self", NULL };
614
615 self = self;
616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetControl",_kwnames,&_argo0))
617 return NULL;
618 if (_argo0) {
619 if (_argo0 == Py_None) { _arg0 = NULL; }
620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
622 return NULL;
623 }
624 }
625 {
626 PyThreadState* __tstate = wxPyBeginAllowThreads();
627 _result = (wxControl *)wxToolBarToolBase_GetControl(_arg0);
628
629 wxPyEndAllowThreads(__tstate);
630 if (PyErr_Occurred()) return NULL;
631 }{ _resultobj = wxPyMake_wxObject(_result); }
632 return _resultobj;
633 }
634
635 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
636 static PyObject *_wrap_wxToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
637 PyObject * _resultobj;
638 wxToolBarBase * _result;
639 wxToolBarToolBase * _arg0;
640 PyObject * _argo0 = 0;
641 char *_kwnames[] = { "self", NULL };
642
643 self = self;
644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetToolBar",_kwnames,&_argo0))
645 return NULL;
646 if (_argo0) {
647 if (_argo0 == Py_None) { _arg0 = NULL; }
648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
650 return NULL;
651 }
652 }
653 {
654 PyThreadState* __tstate = wxPyBeginAllowThreads();
655 _result = (wxToolBarBase *)wxToolBarToolBase_GetToolBar(_arg0);
656
657 wxPyEndAllowThreads(__tstate);
658 if (PyErr_Occurred()) return NULL;
659 }{ _resultobj = wxPyMake_wxObject(_result); }
660 return _resultobj;
661 }
662
663 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
664 static PyObject *_wrap_wxToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
665 PyObject * _resultobj;
666 int _result;
667 wxToolBarToolBase * _arg0;
668 PyObject * _argo0 = 0;
669 char *_kwnames[] = { "self", NULL };
670
671 self = self;
672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsButton",_kwnames,&_argo0))
673 return NULL;
674 if (_argo0) {
675 if (_argo0 == Py_None) { _arg0 = NULL; }
676 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
677 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
678 return NULL;
679 }
680 }
681 {
682 PyThreadState* __tstate = wxPyBeginAllowThreads();
683 _result = (int )wxToolBarToolBase_IsButton(_arg0);
684
685 wxPyEndAllowThreads(__tstate);
686 if (PyErr_Occurred()) return NULL;
687 } _resultobj = Py_BuildValue("i",_result);
688 return _resultobj;
689 }
690
691 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
692 static PyObject *_wrap_wxToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
693 PyObject * _resultobj;
694 int _result;
695 wxToolBarToolBase * _arg0;
696 PyObject * _argo0 = 0;
697 char *_kwnames[] = { "self", NULL };
698
699 self = self;
700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsControl",_kwnames,&_argo0))
701 return NULL;
702 if (_argo0) {
703 if (_argo0 == Py_None) { _arg0 = NULL; }
704 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
705 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
706 return NULL;
707 }
708 }
709 {
710 PyThreadState* __tstate = wxPyBeginAllowThreads();
711 _result = (int )wxToolBarToolBase_IsControl(_arg0);
712
713 wxPyEndAllowThreads(__tstate);
714 if (PyErr_Occurred()) return NULL;
715 } _resultobj = Py_BuildValue("i",_result);
716 return _resultobj;
717 }
718
719 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
720 static PyObject *_wrap_wxToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
721 PyObject * _resultobj;
722 int _result;
723 wxToolBarToolBase * _arg0;
724 PyObject * _argo0 = 0;
725 char *_kwnames[] = { "self", NULL };
726
727 self = self;
728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsSeparator",_kwnames,&_argo0))
729 return NULL;
730 if (_argo0) {
731 if (_argo0 == Py_None) { _arg0 = NULL; }
732 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
733 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
734 return NULL;
735 }
736 }
737 {
738 PyThreadState* __tstate = wxPyBeginAllowThreads();
739 _result = (int )wxToolBarToolBase_IsSeparator(_arg0);
740
741 wxPyEndAllowThreads(__tstate);
742 if (PyErr_Occurred()) return NULL;
743 } _resultobj = Py_BuildValue("i",_result);
744 return _resultobj;
745 }
746
747 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
748 static PyObject *_wrap_wxToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
749 PyObject * _resultobj;
750 int _result;
751 wxToolBarToolBase * _arg0;
752 PyObject * _argo0 = 0;
753 char *_kwnames[] = { "self", NULL };
754
755 self = self;
756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetStyle",_kwnames,&_argo0))
757 return NULL;
758 if (_argo0) {
759 if (_argo0 == Py_None) { _arg0 = NULL; }
760 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
761 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
762 return NULL;
763 }
764 }
765 {
766 PyThreadState* __tstate = wxPyBeginAllowThreads();
767 _result = (int )wxToolBarToolBase_GetStyle(_arg0);
768
769 wxPyEndAllowThreads(__tstate);
770 if (PyErr_Occurred()) return NULL;
771 } _resultobj = Py_BuildValue("i",_result);
772 return _resultobj;
773 }
774
775 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
776 static PyObject *_wrap_wxToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
777 PyObject * _resultobj;
778 bool _result;
779 wxToolBarToolBase * _arg0;
780 PyObject * _argo0 = 0;
781 char *_kwnames[] = { "self", NULL };
782
783 self = self;
784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsEnabled",_kwnames,&_argo0))
785 return NULL;
786 if (_argo0) {
787 if (_argo0 == Py_None) { _arg0 = NULL; }
788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
790 return NULL;
791 }
792 }
793 {
794 PyThreadState* __tstate = wxPyBeginAllowThreads();
795 _result = (bool )wxToolBarToolBase_IsEnabled(_arg0);
796
797 wxPyEndAllowThreads(__tstate);
798 if (PyErr_Occurred()) return NULL;
799 } _resultobj = Py_BuildValue("i",_result);
800 return _resultobj;
801 }
802
803 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
804 static PyObject *_wrap_wxToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
805 PyObject * _resultobj;
806 bool _result;
807 wxToolBarToolBase * _arg0;
808 PyObject * _argo0 = 0;
809 char *_kwnames[] = { "self", NULL };
810
811 self = self;
812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsToggled",_kwnames,&_argo0))
813 return NULL;
814 if (_argo0) {
815 if (_argo0 == Py_None) { _arg0 = NULL; }
816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
818 return NULL;
819 }
820 }
821 {
822 PyThreadState* __tstate = wxPyBeginAllowThreads();
823 _result = (bool )wxToolBarToolBase_IsToggled(_arg0);
824
825 wxPyEndAllowThreads(__tstate);
826 if (PyErr_Occurred()) return NULL;
827 } _resultobj = Py_BuildValue("i",_result);
828 return _resultobj;
829 }
830
831 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
832 static PyObject *_wrap_wxToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
833 PyObject * _resultobj;
834 bool _result;
835 wxToolBarToolBase * _arg0;
836 PyObject * _argo0 = 0;
837 char *_kwnames[] = { "self", NULL };
838
839 self = self;
840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_CanBeToggled",_kwnames,&_argo0))
841 return NULL;
842 if (_argo0) {
843 if (_argo0 == Py_None) { _arg0 = NULL; }
844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
846 return NULL;
847 }
848 }
849 {
850 PyThreadState* __tstate = wxPyBeginAllowThreads();
851 _result = (bool )wxToolBarToolBase_CanBeToggled(_arg0);
852
853 wxPyEndAllowThreads(__tstate);
854 if (PyErr_Occurred()) return NULL;
855 } _resultobj = Py_BuildValue("i",_result);
856 return _resultobj;
857 }
858
859 #define wxToolBarToolBase_GetNormalBitmap(_swigobj) (_swigobj->GetNormalBitmap())
860 static PyObject *_wrap_wxToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
861 PyObject * _resultobj;
862 wxBitmap * _result;
863 wxToolBarToolBase * _arg0;
864 PyObject * _argo0 = 0;
865 char *_kwnames[] = { "self", NULL };
866 char _ptemp[128];
867
868 self = self;
869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetNormalBitmap",_kwnames,&_argo0))
870 return NULL;
871 if (_argo0) {
872 if (_argo0 == Py_None) { _arg0 = NULL; }
873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetNormalBitmap. Expected _wxToolBarToolBase_p.");
875 return NULL;
876 }
877 }
878 {
879 PyThreadState* __tstate = wxPyBeginAllowThreads();
880 const wxBitmap & _result_ref = wxToolBarToolBase_GetNormalBitmap(_arg0);
881 _result = (wxBitmap *) &_result_ref;
882
883 wxPyEndAllowThreads(__tstate);
884 if (PyErr_Occurred()) return NULL;
885 } if (_result) {
886 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
887 _resultobj = Py_BuildValue("s",_ptemp);
888 } else {
889 Py_INCREF(Py_None);
890 _resultobj = Py_None;
891 }
892 return _resultobj;
893 }
894
895 #define wxToolBarToolBase_GetDisabledBitmap(_swigobj) (_swigobj->GetDisabledBitmap())
896 static PyObject *_wrap_wxToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
897 PyObject * _resultobj;
898 wxBitmap * _result;
899 wxToolBarToolBase * _arg0;
900 PyObject * _argo0 = 0;
901 char *_kwnames[] = { "self", NULL };
902 char _ptemp[128];
903
904 self = self;
905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetDisabledBitmap",_kwnames,&_argo0))
906 return NULL;
907 if (_argo0) {
908 if (_argo0 == Py_None) { _arg0 = NULL; }
909 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
910 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetDisabledBitmap. Expected _wxToolBarToolBase_p.");
911 return NULL;
912 }
913 }
914 {
915 PyThreadState* __tstate = wxPyBeginAllowThreads();
916 const wxBitmap & _result_ref = wxToolBarToolBase_GetDisabledBitmap(_arg0);
917 _result = (wxBitmap *) &_result_ref;
918
919 wxPyEndAllowThreads(__tstate);
920 if (PyErr_Occurred()) return NULL;
921 } if (_result) {
922 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
923 _resultobj = Py_BuildValue("s",_ptemp);
924 } else {
925 Py_INCREF(Py_None);
926 _resultobj = Py_None;
927 }
928 return _resultobj;
929 }
930
931 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
932 static PyObject *_wrap_wxToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
933 PyObject * _resultobj;
934 wxBitmap * _result;
935 wxToolBarToolBase * _arg0;
936 PyObject * _argo0 = 0;
937 char *_kwnames[] = { "self", NULL };
938 char _ptemp[128];
939
940 self = self;
941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap",_kwnames,&_argo0))
942 return NULL;
943 if (_argo0) {
944 if (_argo0 == Py_None) { _arg0 = NULL; }
945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
947 return NULL;
948 }
949 }
950 {
951 PyThreadState* __tstate = wxPyBeginAllowThreads();
952 _result = new wxBitmap (wxToolBarToolBase_GetBitmap(_arg0));
953
954 wxPyEndAllowThreads(__tstate);
955 if (PyErr_Occurred()) return NULL;
956 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
957 _resultobj = Py_BuildValue("s",_ptemp);
958 return _resultobj;
959 }
960
961 #define wxToolBarToolBase_GetLabel(_swigobj) (_swigobj->GetLabel())
962 static PyObject *_wrap_wxToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
963 PyObject * _resultobj;
964 wxString * _result;
965 wxToolBarToolBase * _arg0;
966 PyObject * _argo0 = 0;
967 char *_kwnames[] = { "self", NULL };
968
969 self = self;
970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetLabel",_kwnames,&_argo0))
971 return NULL;
972 if (_argo0) {
973 if (_argo0 == Py_None) { _arg0 = NULL; }
974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetLabel. Expected _wxToolBarToolBase_p.");
976 return NULL;
977 }
978 }
979 {
980 PyThreadState* __tstate = wxPyBeginAllowThreads();
981 _result = new wxString (wxToolBarToolBase_GetLabel(_arg0));
982
983 wxPyEndAllowThreads(__tstate);
984 if (PyErr_Occurred()) return NULL;
985 }{
986 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
987 }
988 {
989 delete _result;
990 }
991 return _resultobj;
992 }
993
994 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
995 static PyObject *_wrap_wxToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
996 PyObject * _resultobj;
997 wxString * _result;
998 wxToolBarToolBase * _arg0;
999 PyObject * _argo0 = 0;
1000 char *_kwnames[] = { "self", NULL };
1001
1002 self = self;
1003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetShortHelp",_kwnames,&_argo0))
1004 return NULL;
1005 if (_argo0) {
1006 if (_argo0 == Py_None) { _arg0 = NULL; }
1007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
1009 return NULL;
1010 }
1011 }
1012 {
1013 PyThreadState* __tstate = wxPyBeginAllowThreads();
1014 _result = new wxString (wxToolBarToolBase_GetShortHelp(_arg0));
1015
1016 wxPyEndAllowThreads(__tstate);
1017 if (PyErr_Occurred()) return NULL;
1018 }{
1019 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1020 }
1021 {
1022 delete _result;
1023 }
1024 return _resultobj;
1025 }
1026
1027 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
1028 static PyObject *_wrap_wxToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
1029 PyObject * _resultobj;
1030 wxString * _result;
1031 wxToolBarToolBase * _arg0;
1032 PyObject * _argo0 = 0;
1033 char *_kwnames[] = { "self", NULL };
1034
1035 self = self;
1036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetLongHelp",_kwnames,&_argo0))
1037 return NULL;
1038 if (_argo0) {
1039 if (_argo0 == Py_None) { _arg0 = NULL; }
1040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1042 return NULL;
1043 }
1044 }
1045 {
1046 PyThreadState* __tstate = wxPyBeginAllowThreads();
1047 _result = new wxString (wxToolBarToolBase_GetLongHelp(_arg0));
1048
1049 wxPyEndAllowThreads(__tstate);
1050 if (PyErr_Occurred()) return NULL;
1051 }{
1052 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1053 }
1054 {
1055 delete _result;
1056 }
1057 return _resultobj;
1058 }
1059
1060 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1061 static PyObject *_wrap_wxToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
1062 PyObject * _resultobj;
1063 bool _result;
1064 wxToolBarToolBase * _arg0;
1065 bool _arg1;
1066 PyObject * _argo0 = 0;
1067 int tempbool1;
1068 char *_kwnames[] = { "self","enable", NULL };
1069
1070 self = self;
1071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_Enable",_kwnames,&_argo0,&tempbool1))
1072 return NULL;
1073 if (_argo0) {
1074 if (_argo0 == Py_None) { _arg0 = NULL; }
1075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1077 return NULL;
1078 }
1079 }
1080 _arg1 = (bool ) tempbool1;
1081 {
1082 PyThreadState* __tstate = wxPyBeginAllowThreads();
1083 _result = (bool )wxToolBarToolBase_Enable(_arg0,_arg1);
1084
1085 wxPyEndAllowThreads(__tstate);
1086 if (PyErr_Occurred()) return NULL;
1087 } _resultobj = Py_BuildValue("i",_result);
1088 return _resultobj;
1089 }
1090
1091 #define wxToolBarToolBase_Toggle(_swigobj) (_swigobj->Toggle())
1092 static PyObject *_wrap_wxToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
1093 PyObject * _resultobj;
1094 wxToolBarToolBase * _arg0;
1095 PyObject * _argo0 = 0;
1096 char *_kwnames[] = { "self", NULL };
1097
1098 self = self;
1099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_Toggle",_kwnames,&_argo0))
1100 return NULL;
1101 if (_argo0) {
1102 if (_argo0 == Py_None) { _arg0 = NULL; }
1103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1105 return NULL;
1106 }
1107 }
1108 {
1109 PyThreadState* __tstate = wxPyBeginAllowThreads();
1110 wxToolBarToolBase_Toggle(_arg0);
1111
1112 wxPyEndAllowThreads(__tstate);
1113 if (PyErr_Occurred()) return NULL;
1114 } Py_INCREF(Py_None);
1115 _resultobj = Py_None;
1116 return _resultobj;
1117 }
1118
1119 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1120 static PyObject *_wrap_wxToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
1121 PyObject * _resultobj;
1122 bool _result;
1123 wxToolBarToolBase * _arg0;
1124 bool _arg1;
1125 PyObject * _argo0 = 0;
1126 int tempbool1;
1127 char *_kwnames[] = { "self","toggle", NULL };
1128
1129 self = self;
1130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_SetToggle",_kwnames,&_argo0,&tempbool1))
1131 return NULL;
1132 if (_argo0) {
1133 if (_argo0 == Py_None) { _arg0 = NULL; }
1134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1136 return NULL;
1137 }
1138 }
1139 _arg1 = (bool ) tempbool1;
1140 {
1141 PyThreadState* __tstate = wxPyBeginAllowThreads();
1142 _result = (bool )wxToolBarToolBase_SetToggle(_arg0,_arg1);
1143
1144 wxPyEndAllowThreads(__tstate);
1145 if (PyErr_Occurred()) return NULL;
1146 } _resultobj = Py_BuildValue("i",_result);
1147 return _resultobj;
1148 }
1149
1150 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1151 static PyObject *_wrap_wxToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
1152 PyObject * _resultobj;
1153 bool _result;
1154 wxToolBarToolBase * _arg0;
1155 wxString * _arg1;
1156 PyObject * _argo0 = 0;
1157 PyObject * _obj1 = 0;
1158 char *_kwnames[] = { "self","help", NULL };
1159
1160 self = self;
1161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetShortHelp",_kwnames,&_argo0,&_obj1))
1162 return NULL;
1163 if (_argo0) {
1164 if (_argo0 == Py_None) { _arg0 = NULL; }
1165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1167 return NULL;
1168 }
1169 }
1170 {
1171 #if PYTHON_API_VERSION >= 1009
1172 char* tmpPtr; int tmpSize;
1173 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1174 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1175 return NULL;
1176 }
1177 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1178 return NULL;
1179 _arg1 = new wxString(tmpPtr, tmpSize);
1180 #else
1181 if (!PyString_Check(_obj1)) {
1182 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1183 return NULL;
1184 }
1185 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1186 #endif
1187 }
1188 {
1189 PyThreadState* __tstate = wxPyBeginAllowThreads();
1190 _result = (bool )wxToolBarToolBase_SetShortHelp(_arg0,*_arg1);
1191
1192 wxPyEndAllowThreads(__tstate);
1193 if (PyErr_Occurred()) return NULL;
1194 } _resultobj = Py_BuildValue("i",_result);
1195 {
1196 if (_obj1)
1197 delete _arg1;
1198 }
1199 return _resultobj;
1200 }
1201
1202 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1203 static PyObject *_wrap_wxToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
1204 PyObject * _resultobj;
1205 bool _result;
1206 wxToolBarToolBase * _arg0;
1207 wxString * _arg1;
1208 PyObject * _argo0 = 0;
1209 PyObject * _obj1 = 0;
1210 char *_kwnames[] = { "self","help", NULL };
1211
1212 self = self;
1213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetLongHelp",_kwnames,&_argo0,&_obj1))
1214 return NULL;
1215 if (_argo0) {
1216 if (_argo0 == Py_None) { _arg0 = NULL; }
1217 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1218 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1219 return NULL;
1220 }
1221 }
1222 {
1223 #if PYTHON_API_VERSION >= 1009
1224 char* tmpPtr; int tmpSize;
1225 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1226 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1227 return NULL;
1228 }
1229 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1230 return NULL;
1231 _arg1 = new wxString(tmpPtr, tmpSize);
1232 #else
1233 if (!PyString_Check(_obj1)) {
1234 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1235 return NULL;
1236 }
1237 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1238 #endif
1239 }
1240 {
1241 PyThreadState* __tstate = wxPyBeginAllowThreads();
1242 _result = (bool )wxToolBarToolBase_SetLongHelp(_arg0,*_arg1);
1243
1244 wxPyEndAllowThreads(__tstate);
1245 if (PyErr_Occurred()) return NULL;
1246 } _resultobj = Py_BuildValue("i",_result);
1247 {
1248 if (_obj1)
1249 delete _arg1;
1250 }
1251 return _resultobj;
1252 }
1253
1254 #define wxToolBarToolBase_SetNormalBitmap(_swigobj,_swigarg0) (_swigobj->SetNormalBitmap(_swigarg0))
1255 static PyObject *_wrap_wxToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1256 PyObject * _resultobj;
1257 wxToolBarToolBase * _arg0;
1258 wxBitmap * _arg1;
1259 PyObject * _argo0 = 0;
1260 PyObject * _argo1 = 0;
1261 char *_kwnames[] = { "self","bmp", NULL };
1262
1263 self = self;
1264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetNormalBitmap",_kwnames,&_argo0,&_argo1))
1265 return NULL;
1266 if (_argo0) {
1267 if (_argo0 == Py_None) { _arg0 = NULL; }
1268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetNormalBitmap. Expected _wxToolBarToolBase_p.");
1270 return NULL;
1271 }
1272 }
1273 if (_argo1) {
1274 if (_argo1 == Py_None) { _arg1 = NULL; }
1275 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1276 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_SetNormalBitmap. Expected _wxBitmap_p.");
1277 return NULL;
1278 }
1279 }
1280 {
1281 PyThreadState* __tstate = wxPyBeginAllowThreads();
1282 wxToolBarToolBase_SetNormalBitmap(_arg0,*_arg1);
1283
1284 wxPyEndAllowThreads(__tstate);
1285 if (PyErr_Occurred()) return NULL;
1286 } Py_INCREF(Py_None);
1287 _resultobj = Py_None;
1288 return _resultobj;
1289 }
1290
1291 #define wxToolBarToolBase_SetDisabledBitmap(_swigobj,_swigarg0) (_swigobj->SetDisabledBitmap(_swigarg0))
1292 static PyObject *_wrap_wxToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1293 PyObject * _resultobj;
1294 wxToolBarToolBase * _arg0;
1295 wxBitmap * _arg1;
1296 PyObject * _argo0 = 0;
1297 PyObject * _argo1 = 0;
1298 char *_kwnames[] = { "self","bmp", NULL };
1299
1300 self = self;
1301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetDisabledBitmap",_kwnames,&_argo0,&_argo1))
1302 return NULL;
1303 if (_argo0) {
1304 if (_argo0 == Py_None) { _arg0 = NULL; }
1305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetDisabledBitmap. Expected _wxToolBarToolBase_p.");
1307 return NULL;
1308 }
1309 }
1310 if (_argo1) {
1311 if (_argo1 == Py_None) { _arg1 = NULL; }
1312 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1313 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_SetDisabledBitmap. Expected _wxBitmap_p.");
1314 return NULL;
1315 }
1316 }
1317 {
1318 PyThreadState* __tstate = wxPyBeginAllowThreads();
1319 wxToolBarToolBase_SetDisabledBitmap(_arg0,*_arg1);
1320
1321 wxPyEndAllowThreads(__tstate);
1322 if (PyErr_Occurred()) return NULL;
1323 } Py_INCREF(Py_None);
1324 _resultobj = Py_None;
1325 return _resultobj;
1326 }
1327
1328 #define wxToolBarToolBase_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1329 static PyObject *_wrap_wxToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1330 PyObject * _resultobj;
1331 wxToolBarToolBase * _arg0;
1332 wxString * _arg1;
1333 PyObject * _argo0 = 0;
1334 PyObject * _obj1 = 0;
1335 char *_kwnames[] = { "self","label", NULL };
1336
1337 self = self;
1338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetLabel",_kwnames,&_argo0,&_obj1))
1339 return NULL;
1340 if (_argo0) {
1341 if (_argo0 == Py_None) { _arg0 = NULL; }
1342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetLabel. Expected _wxToolBarToolBase_p.");
1344 return NULL;
1345 }
1346 }
1347 {
1348 #if PYTHON_API_VERSION >= 1009
1349 char* tmpPtr; int tmpSize;
1350 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1351 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1352 return NULL;
1353 }
1354 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1355 return NULL;
1356 _arg1 = new wxString(tmpPtr, tmpSize);
1357 #else
1358 if (!PyString_Check(_obj1)) {
1359 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1360 return NULL;
1361 }
1362 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1363 #endif
1364 }
1365 {
1366 PyThreadState* __tstate = wxPyBeginAllowThreads();
1367 wxToolBarToolBase_SetLabel(_arg0,*_arg1);
1368
1369 wxPyEndAllowThreads(__tstate);
1370 if (PyErr_Occurred()) return NULL;
1371 } Py_INCREF(Py_None);
1372 _resultobj = Py_None;
1373 {
1374 if (_obj1)
1375 delete _arg1;
1376 }
1377 return _resultobj;
1378 }
1379
1380 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1381 static PyObject *_wrap_wxToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
1382 PyObject * _resultobj;
1383 wxToolBarToolBase * _arg0;
1384 PyObject * _argo0 = 0;
1385 char *_kwnames[] = { "self", NULL };
1386
1387 self = self;
1388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_Detach",_kwnames,&_argo0))
1389 return NULL;
1390 if (_argo0) {
1391 if (_argo0 == Py_None) { _arg0 = NULL; }
1392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1394 return NULL;
1395 }
1396 }
1397 {
1398 PyThreadState* __tstate = wxPyBeginAllowThreads();
1399 wxToolBarToolBase_Detach(_arg0);
1400
1401 wxPyEndAllowThreads(__tstate);
1402 if (PyErr_Occurred()) return NULL;
1403 } Py_INCREF(Py_None);
1404 _resultobj = Py_None;
1405 return _resultobj;
1406 }
1407
1408 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1409 static PyObject *_wrap_wxToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
1410 PyObject * _resultobj;
1411 wxToolBarToolBase * _arg0;
1412 wxToolBarBase * _arg1;
1413 PyObject * _argo0 = 0;
1414 PyObject * _argo1 = 0;
1415 char *_kwnames[] = { "self","tbar", NULL };
1416
1417 self = self;
1418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_Attach",_kwnames,&_argo0,&_argo1))
1419 return NULL;
1420 if (_argo0) {
1421 if (_argo0 == Py_None) { _arg0 = NULL; }
1422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1424 return NULL;
1425 }
1426 }
1427 if (_argo1) {
1428 if (_argo1 == Py_None) { _arg1 = NULL; }
1429 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBarBase_p")) {
1430 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1431 return NULL;
1432 }
1433 }
1434 {
1435 PyThreadState* __tstate = wxPyBeginAllowThreads();
1436 wxToolBarToolBase_Attach(_arg0,_arg1);
1437
1438 wxPyEndAllowThreads(__tstate);
1439 if (PyErr_Occurred()) return NULL;
1440 } Py_INCREF(Py_None);
1441 _resultobj = Py_None;
1442 return _resultobj;
1443 }
1444
1445 static PyObject * wxToolBarToolBase_GetClientData(wxToolBarToolBase *self) {
1446 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
1447 if (udata) {
1448 Py_INCREF(udata->m_obj);
1449 return udata->m_obj;
1450 } else {
1451 Py_INCREF(Py_None);
1452 return Py_None;
1453 }
1454 }
1455 static PyObject *_wrap_wxToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
1456 PyObject * _resultobj;
1457 PyObject * _result;
1458 wxToolBarToolBase * _arg0;
1459 PyObject * _argo0 = 0;
1460 char *_kwnames[] = { "self", NULL };
1461
1462 self = self;
1463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetClientData",_kwnames,&_argo0))
1464 return NULL;
1465 if (_argo0) {
1466 if (_argo0 == Py_None) { _arg0 = NULL; }
1467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1469 return NULL;
1470 }
1471 }
1472 {
1473 PyThreadState* __tstate = wxPyBeginAllowThreads();
1474 _result = (PyObject *)wxToolBarToolBase_GetClientData(_arg0);
1475
1476 wxPyEndAllowThreads(__tstate);
1477 if (PyErr_Occurred()) return NULL;
1478 }{
1479 _resultobj = _result;
1480 }
1481 return _resultobj;
1482 }
1483
1484 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject * clientData) {
1485 self->SetClientData(new wxPyUserData(clientData));
1486 }
1487 static PyObject *_wrap_wxToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
1488 PyObject * _resultobj;
1489 wxToolBarToolBase * _arg0;
1490 PyObject * _arg1;
1491 PyObject * _argo0 = 0;
1492 PyObject * _obj1 = 0;
1493 char *_kwnames[] = { "self","clientData", NULL };
1494
1495 self = self;
1496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetClientData",_kwnames,&_argo0,&_obj1))
1497 return NULL;
1498 if (_argo0) {
1499 if (_argo0 == Py_None) { _arg0 = NULL; }
1500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1502 return NULL;
1503 }
1504 }
1505 {
1506 _arg1 = _obj1;
1507 }
1508 {
1509 PyThreadState* __tstate = wxPyBeginAllowThreads();
1510 wxToolBarToolBase_SetClientData(_arg0,_arg1);
1511
1512 wxPyEndAllowThreads(__tstate);
1513 if (PyErr_Occurred()) return NULL;
1514 } Py_INCREF(Py_None);
1515 _resultobj = Py_None;
1516 return _resultobj;
1517 }
1518
1519 static void *SwigwxToolBarBaseTowxControl(void *ptr) {
1520 wxToolBarBase *src;
1521 wxControl *dest;
1522 src = (wxToolBarBase *) ptr;
1523 dest = (wxControl *) src;
1524 return (void *) dest;
1525 }
1526
1527 static void *SwigwxToolBarBaseTowxWindow(void *ptr) {
1528 wxToolBarBase *src;
1529 wxWindow *dest;
1530 src = (wxToolBarBase *) ptr;
1531 dest = (wxWindow *) src;
1532 return (void *) dest;
1533 }
1534
1535 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr) {
1536 wxToolBarBase *src;
1537 wxEvtHandler *dest;
1538 src = (wxToolBarBase *) ptr;
1539 dest = (wxEvtHandler *) src;
1540 return (void *) dest;
1541 }
1542
1543 static void *SwigwxToolBarBaseTowxObject(void *ptr) {
1544 wxToolBarBase *src;
1545 wxObject *dest;
1546 src = (wxToolBarBase *) ptr;
1547 dest = (wxObject *) src;
1548 return (void *) dest;
1549 }
1550
1551 static wxToolBarToolBase * wxToolBarBase_AddTool(wxToolBarBase *self,int id,const wxBitmap & bitmap,const wxBitmap & pushedBitmap,int isToggle,PyObject * clientData,const wxString & shortHelpString,const wxString & longHelpString) {
1552 wxPyUserData* udata = NULL;
1553 if (clientData)
1554 udata = new wxPyUserData(clientData);
1555 return self->AddTool(id, bitmap, pushedBitmap, (bool)isToggle,
1556 udata, shortHelpString, longHelpString);
1557 }
1558 static PyObject *_wrap_wxToolBarBase_AddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1559 PyObject * _resultobj;
1560 wxToolBarToolBase * _result;
1561 wxToolBarBase * _arg0;
1562 int _arg1;
1563 wxBitmap * _arg2;
1564 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
1565 int _arg4 = (int ) FALSE;
1566 PyObject * _arg5 = (PyObject *) NULL;
1567 wxString * _arg6 = (wxString *) &wxEmptyString;
1568 wxString * _arg7 = (wxString *) &wxEmptyString;
1569 PyObject * _argo0 = 0;
1570 PyObject * _argo2 = 0;
1571 PyObject * _argo3 = 0;
1572 PyObject * _obj5 = 0;
1573 PyObject * _obj6 = 0;
1574 PyObject * _obj7 = 0;
1575 char *_kwnames[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL };
1576
1577 self = self;
1578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_obj5,&_obj6,&_obj7))
1579 return NULL;
1580 if (_argo0) {
1581 if (_argo0 == Py_None) { _arg0 = NULL; }
1582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
1584 return NULL;
1585 }
1586 }
1587 if (_argo2) {
1588 if (_argo2 == Py_None) { _arg2 = NULL; }
1589 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1590 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1591 return NULL;
1592 }
1593 }
1594 if (_argo3) {
1595 if (_argo3 == Py_None) { _arg3 = NULL; }
1596 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1597 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1598 return NULL;
1599 }
1600 }
1601 if (_obj5)
1602 {
1603 _arg5 = _obj5;
1604 }
1605 if (_obj6)
1606 {
1607 #if PYTHON_API_VERSION >= 1009
1608 char* tmpPtr; int tmpSize;
1609 if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) {
1610 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1611 return NULL;
1612 }
1613 if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1)
1614 return NULL;
1615 _arg6 = new wxString(tmpPtr, tmpSize);
1616 #else
1617 if (!PyString_Check(_obj6)) {
1618 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1619 return NULL;
1620 }
1621 _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6));
1622 #endif
1623 }
1624 if (_obj7)
1625 {
1626 #if PYTHON_API_VERSION >= 1009
1627 char* tmpPtr; int tmpSize;
1628 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
1629 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1630 return NULL;
1631 }
1632 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
1633 return NULL;
1634 _arg7 = new wxString(tmpPtr, tmpSize);
1635 #else
1636 if (!PyString_Check(_obj7)) {
1637 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1638 return NULL;
1639 }
1640 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
1641 #endif
1642 }
1643 {
1644 PyThreadState* __tstate = wxPyBeginAllowThreads();
1645 _result = (wxToolBarToolBase *)wxToolBarBase_AddTool(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,*_arg6,*_arg7);
1646
1647 wxPyEndAllowThreads(__tstate);
1648 if (PyErr_Occurred()) return NULL;
1649 }{ _resultobj = wxPyMake_wxObject(_result); }
1650 {
1651 if (_obj6)
1652 delete _arg6;
1653 }
1654 {
1655 if (_obj7)
1656 delete _arg7;
1657 }
1658 return _resultobj;
1659 }
1660
1661 static wxToolBarToolBase * wxToolBarBase_AddSimpleTool(wxToolBarBase *self,int id,const wxBitmap & bitmap,const wxString & shortHelpString,const wxString & longHelpString,int isToggle) {
1662 return self->AddTool(id, bitmap, wxNullBitmap, isToggle, NULL,
1663 shortHelpString, longHelpString);
1664 }
1665 static PyObject *_wrap_wxToolBarBase_AddSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1666 PyObject * _resultobj;
1667 wxToolBarToolBase * _result;
1668 wxToolBarBase * _arg0;
1669 int _arg1;
1670 wxBitmap * _arg2;
1671 wxString * _arg3 = (wxString *) &wxEmptyString;
1672 wxString * _arg4 = (wxString *) &wxEmptyString;
1673 int _arg5 = (int ) FALSE;
1674 PyObject * _argo0 = 0;
1675 PyObject * _argo2 = 0;
1676 PyObject * _obj3 = 0;
1677 PyObject * _obj4 = 0;
1678 char *_kwnames[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL };
1679
1680 self = self;
1681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5))
1682 return NULL;
1683 if (_argo0) {
1684 if (_argo0 == Py_None) { _arg0 = NULL; }
1685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
1687 return NULL;
1688 }
1689 }
1690 if (_argo2) {
1691 if (_argo2 == Py_None) { _arg2 = NULL; }
1692 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1693 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1694 return NULL;
1695 }
1696 }
1697 if (_obj3)
1698 {
1699 #if PYTHON_API_VERSION >= 1009
1700 char* tmpPtr; int tmpSize;
1701 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
1702 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1703 return NULL;
1704 }
1705 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
1706 return NULL;
1707 _arg3 = new wxString(tmpPtr, tmpSize);
1708 #else
1709 if (!PyString_Check(_obj3)) {
1710 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1711 return NULL;
1712 }
1713 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
1714 #endif
1715 }
1716 if (_obj4)
1717 {
1718 #if PYTHON_API_VERSION >= 1009
1719 char* tmpPtr; int tmpSize;
1720 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
1721 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1722 return NULL;
1723 }
1724 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
1725 return NULL;
1726 _arg4 = new wxString(tmpPtr, tmpSize);
1727 #else
1728 if (!PyString_Check(_obj4)) {
1729 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1730 return NULL;
1731 }
1732 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
1733 #endif
1734 }
1735 {
1736 PyThreadState* __tstate = wxPyBeginAllowThreads();
1737 _result = (wxToolBarToolBase *)wxToolBarBase_AddSimpleTool(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5);
1738
1739 wxPyEndAllowThreads(__tstate);
1740 if (PyErr_Occurred()) return NULL;
1741 }{ _resultobj = wxPyMake_wxObject(_result); }
1742 {
1743 if (_obj3)
1744 delete _arg3;
1745 }
1746 {
1747 if (_obj4)
1748 delete _arg4;
1749 }
1750 return _resultobj;
1751 }
1752
1753 static wxToolBarToolBase * wxToolBarBase_InsertTool(wxToolBarBase *self,size_t pos,int id,const wxBitmap & bitmap,const wxBitmap & pushedBitmap,int isToggle,PyObject * clientData,const wxString & shortHelpString,const wxString & longHelpString) {
1754 wxPyUserData* udata = NULL;
1755 if (clientData)
1756 udata = new wxPyUserData(clientData);
1757 return self->InsertTool(pos, id, bitmap, pushedBitmap, (bool)isToggle,
1758 udata, shortHelpString, longHelpString);
1759 }
1760 static PyObject *_wrap_wxToolBarBase_InsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1761 PyObject * _resultobj;
1762 wxToolBarToolBase * _result;
1763 wxToolBarBase * _arg0;
1764 size_t _arg1;
1765 int _arg2;
1766 wxBitmap * _arg3;
1767 wxBitmap * _arg4 = (wxBitmap *) &wxNullBitmap;
1768 int _arg5 = (int ) FALSE;
1769 PyObject * _arg6 = (PyObject *) NULL;
1770 wxString * _arg7 = (wxString *) &wxEmptyString;
1771 wxString * _arg8 = (wxString *) &wxEmptyString;
1772 PyObject * _argo0 = 0;
1773 PyObject * _argo3 = 0;
1774 PyObject * _argo4 = 0;
1775 PyObject * _obj6 = 0;
1776 PyObject * _obj7 = 0;
1777 PyObject * _obj8 = 0;
1778 char *_kwnames[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL };
1779
1780 self = self;
1781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_argo4,&_arg5,&_obj6,&_obj7,&_obj8))
1782 return NULL;
1783 if (_argo0) {
1784 if (_argo0 == Py_None) { _arg0 = NULL; }
1785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1787 return NULL;
1788 }
1789 }
1790 if (_argo3) {
1791 if (_argo3 == Py_None) { _arg3 = NULL; }
1792 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1793 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1794 return NULL;
1795 }
1796 }
1797 if (_argo4) {
1798 if (_argo4 == Py_None) { _arg4 = NULL; }
1799 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxBitmap_p")) {
1800 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1801 return NULL;
1802 }
1803 }
1804 if (_obj6)
1805 {
1806 _arg6 = _obj6;
1807 }
1808 if (_obj7)
1809 {
1810 #if PYTHON_API_VERSION >= 1009
1811 char* tmpPtr; int tmpSize;
1812 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
1813 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1814 return NULL;
1815 }
1816 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
1817 return NULL;
1818 _arg7 = new wxString(tmpPtr, tmpSize);
1819 #else
1820 if (!PyString_Check(_obj7)) {
1821 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1822 return NULL;
1823 }
1824 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
1825 #endif
1826 }
1827 if (_obj8)
1828 {
1829 #if PYTHON_API_VERSION >= 1009
1830 char* tmpPtr; int tmpSize;
1831 if (!PyString_Check(_obj8) && !PyUnicode_Check(_obj8)) {
1832 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1833 return NULL;
1834 }
1835 if (PyString_AsStringAndSize(_obj8, &tmpPtr, &tmpSize) == -1)
1836 return NULL;
1837 _arg8 = new wxString(tmpPtr, tmpSize);
1838 #else
1839 if (!PyString_Check(_obj8)) {
1840 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1841 return NULL;
1842 }
1843 _arg8 = new wxString(PyString_AS_STRING(_obj8), PyString_GET_SIZE(_obj8));
1844 #endif
1845 }
1846 {
1847 PyThreadState* __tstate = wxPyBeginAllowThreads();
1848 _result = (wxToolBarToolBase *)wxToolBarBase_InsertTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,*_arg7,*_arg8);
1849
1850 wxPyEndAllowThreads(__tstate);
1851 if (PyErr_Occurred()) return NULL;
1852 }{ _resultobj = wxPyMake_wxObject(_result); }
1853 {
1854 if (_obj7)
1855 delete _arg7;
1856 }
1857 {
1858 if (_obj8)
1859 delete _arg8;
1860 }
1861 return _resultobj;
1862 }
1863
1864 static wxToolBarToolBase * wxToolBarBase_InsertSimpleTool(wxToolBarBase *self,size_t pos,int id,const wxBitmap & bitmap,const wxString & shortHelpString,const wxString & longHelpString,int isToggle) {
1865 return self->InsertTool(pos, id, bitmap, wxNullBitmap, isToggle, NULL,
1866 shortHelpString, longHelpString);
1867 }
1868 static PyObject *_wrap_wxToolBarBase_InsertSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1869 PyObject * _resultobj;
1870 wxToolBarToolBase * _result;
1871 wxToolBarBase * _arg0;
1872 size_t _arg1;
1873 int _arg2;
1874 wxBitmap * _arg3;
1875 wxString * _arg4 = (wxString *) &wxEmptyString;
1876 wxString * _arg5 = (wxString *) &wxEmptyString;
1877 int _arg6 = (int ) FALSE;
1878 PyObject * _argo0 = 0;
1879 PyObject * _argo3 = 0;
1880 PyObject * _obj4 = 0;
1881 PyObject * _obj5 = 0;
1882 char *_kwnames[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL };
1883
1884 self = self;
1885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6))
1886 return NULL;
1887 if (_argo0) {
1888 if (_argo0 == Py_None) { _arg0 = NULL; }
1889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
1891 return NULL;
1892 }
1893 }
1894 if (_argo3) {
1895 if (_argo3 == Py_None) { _arg3 = NULL; }
1896 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1897 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1898 return NULL;
1899 }
1900 }
1901 if (_obj4)
1902 {
1903 #if PYTHON_API_VERSION >= 1009
1904 char* tmpPtr; int tmpSize;
1905 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
1906 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1907 return NULL;
1908 }
1909 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
1910 return NULL;
1911 _arg4 = new wxString(tmpPtr, tmpSize);
1912 #else
1913 if (!PyString_Check(_obj4)) {
1914 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1915 return NULL;
1916 }
1917 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
1918 #endif
1919 }
1920 if (_obj5)
1921 {
1922 #if PYTHON_API_VERSION >= 1009
1923 char* tmpPtr; int tmpSize;
1924 if (!PyString_Check(_obj5) && !PyUnicode_Check(_obj5)) {
1925 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1926 return NULL;
1927 }
1928 if (PyString_AsStringAndSize(_obj5, &tmpPtr, &tmpSize) == -1)
1929 return NULL;
1930 _arg5 = new wxString(tmpPtr, tmpSize);
1931 #else
1932 if (!PyString_Check(_obj5)) {
1933 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1934 return NULL;
1935 }
1936 _arg5 = new wxString(PyString_AS_STRING(_obj5), PyString_GET_SIZE(_obj5));
1937 #endif
1938 }
1939 {
1940 PyThreadState* __tstate = wxPyBeginAllowThreads();
1941 _result = (wxToolBarToolBase *)wxToolBarBase_InsertSimpleTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6);
1942
1943 wxPyEndAllowThreads(__tstate);
1944 if (PyErr_Occurred()) return NULL;
1945 }{ _resultobj = wxPyMake_wxObject(_result); }
1946 {
1947 if (_obj4)
1948 delete _arg4;
1949 }
1950 {
1951 if (_obj5)
1952 delete _arg5;
1953 }
1954 return _resultobj;
1955 }
1956
1957 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1958 static PyObject *_wrap_wxToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
1959 PyObject * _resultobj;
1960 wxToolBarToolBase * _result;
1961 wxToolBarBase * _arg0;
1962 wxControl * _arg1;
1963 PyObject * _argo0 = 0;
1964 PyObject * _argo1 = 0;
1965 char *_kwnames[] = { "self","control", NULL };
1966
1967 self = self;
1968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_AddControl",_kwnames,&_argo0,&_argo1))
1969 return NULL;
1970 if (_argo0) {
1971 if (_argo0 == Py_None) { _arg0 = NULL; }
1972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1974 return NULL;
1975 }
1976 }
1977 if (_argo1) {
1978 if (_argo1 == Py_None) { _arg1 = NULL; }
1979 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxControl_p")) {
1980 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1981 return NULL;
1982 }
1983 }
1984 {
1985 PyThreadState* __tstate = wxPyBeginAllowThreads();
1986 _result = (wxToolBarToolBase *)wxToolBarBase_AddControl(_arg0,_arg1);
1987
1988 wxPyEndAllowThreads(__tstate);
1989 if (PyErr_Occurred()) return NULL;
1990 }{ _resultobj = wxPyMake_wxObject(_result); }
1991 return _resultobj;
1992 }
1993
1994 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1995 static PyObject *_wrap_wxToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
1996 PyObject * _resultobj;
1997 wxToolBarToolBase * _result;
1998 wxToolBarBase * _arg0;
1999 size_t _arg1;
2000 wxControl * _arg2;
2001 PyObject * _argo0 = 0;
2002 PyObject * _argo2 = 0;
2003 char *_kwnames[] = { "self","pos","control", NULL };
2004
2005 self = self;
2006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_InsertControl",_kwnames,&_argo0,&_arg1,&_argo2))
2007 return NULL;
2008 if (_argo0) {
2009 if (_argo0 == Py_None) { _arg0 = NULL; }
2010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
2012 return NULL;
2013 }
2014 }
2015 if (_argo2) {
2016 if (_argo2 == Py_None) { _arg2 = NULL; }
2017 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxControl_p")) {
2018 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
2019 return NULL;
2020 }
2021 }
2022 {
2023 PyThreadState* __tstate = wxPyBeginAllowThreads();
2024 _result = (wxToolBarToolBase *)wxToolBarBase_InsertControl(_arg0,_arg1,_arg2);
2025
2026 wxPyEndAllowThreads(__tstate);
2027 if (PyErr_Occurred()) return NULL;
2028 }{ _resultobj = wxPyMake_wxObject(_result); }
2029 return _resultobj;
2030 }
2031
2032 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
2033 static PyObject *_wrap_wxToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
2034 PyObject * _resultobj;
2035 wxToolBarToolBase * _result;
2036 wxToolBarBase * _arg0;
2037 PyObject * _argo0 = 0;
2038 char *_kwnames[] = { "self", NULL };
2039
2040 self = self;
2041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_AddSeparator",_kwnames,&_argo0))
2042 return NULL;
2043 if (_argo0) {
2044 if (_argo0 == Py_None) { _arg0 = NULL; }
2045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
2047 return NULL;
2048 }
2049 }
2050 {
2051 PyThreadState* __tstate = wxPyBeginAllowThreads();
2052 _result = (wxToolBarToolBase *)wxToolBarBase_AddSeparator(_arg0);
2053
2054 wxPyEndAllowThreads(__tstate);
2055 if (PyErr_Occurred()) return NULL;
2056 }{ _resultobj = wxPyMake_wxObject(_result); }
2057 return _resultobj;
2058 }
2059
2060 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
2061 static PyObject *_wrap_wxToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
2062 PyObject * _resultobj;
2063 wxToolBarToolBase * _result;
2064 wxToolBarBase * _arg0;
2065 size_t _arg1;
2066 PyObject * _argo0 = 0;
2067 char *_kwnames[] = { "self","pos", NULL };
2068
2069 self = self;
2070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_InsertSeparator",_kwnames,&_argo0,&_arg1))
2071 return NULL;
2072 if (_argo0) {
2073 if (_argo0 == Py_None) { _arg0 = NULL; }
2074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
2076 return NULL;
2077 }
2078 }
2079 {
2080 PyThreadState* __tstate = wxPyBeginAllowThreads();
2081 _result = (wxToolBarToolBase *)wxToolBarBase_InsertSeparator(_arg0,_arg1);
2082
2083 wxPyEndAllowThreads(__tstate);
2084 if (PyErr_Occurred()) return NULL;
2085 }{ _resultobj = wxPyMake_wxObject(_result); }
2086 return _resultobj;
2087 }
2088
2089 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
2090 static PyObject *_wrap_wxToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2091 PyObject * _resultobj;
2092 wxToolBarToolBase * _result;
2093 wxToolBarBase * _arg0;
2094 int _arg1;
2095 PyObject * _argo0 = 0;
2096 char *_kwnames[] = { "self","id", NULL };
2097
2098 self = self;
2099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_RemoveTool",_kwnames,&_argo0,&_arg1))
2100 return NULL;
2101 if (_argo0) {
2102 if (_argo0 == Py_None) { _arg0 = NULL; }
2103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
2105 return NULL;
2106 }
2107 }
2108 {
2109 PyThreadState* __tstate = wxPyBeginAllowThreads();
2110 _result = (wxToolBarToolBase *)wxToolBarBase_RemoveTool(_arg0,_arg1);
2111
2112 wxPyEndAllowThreads(__tstate);
2113 if (PyErr_Occurred()) return NULL;
2114 }{ _resultobj = wxPyMake_wxObject(_result); }
2115 return _resultobj;
2116 }
2117
2118 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2119 static PyObject *_wrap_wxToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
2120 PyObject * _resultobj;
2121 bool _result;
2122 wxToolBarBase * _arg0;
2123 size_t _arg1;
2124 PyObject * _argo0 = 0;
2125 char *_kwnames[] = { "self","pos", NULL };
2126
2127 self = self;
2128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames,&_argo0,&_arg1))
2129 return NULL;
2130 if (_argo0) {
2131 if (_argo0 == Py_None) { _arg0 = NULL; }
2132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2134 return NULL;
2135 }
2136 }
2137 {
2138 PyThreadState* __tstate = wxPyBeginAllowThreads();
2139 _result = (bool )wxToolBarBase_DeleteToolByPos(_arg0,_arg1);
2140
2141 wxPyEndAllowThreads(__tstate);
2142 if (PyErr_Occurred()) return NULL;
2143 } _resultobj = Py_BuildValue("i",_result);
2144 return _resultobj;
2145 }
2146
2147 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2148 static PyObject *_wrap_wxToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2149 PyObject * _resultobj;
2150 bool _result;
2151 wxToolBarBase * _arg0;
2152 int _arg1;
2153 PyObject * _argo0 = 0;
2154 char *_kwnames[] = { "self","id", NULL };
2155
2156 self = self;
2157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_DeleteTool",_kwnames,&_argo0,&_arg1))
2158 return NULL;
2159 if (_argo0) {
2160 if (_argo0 == Py_None) { _arg0 = NULL; }
2161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2163 return NULL;
2164 }
2165 }
2166 {
2167 PyThreadState* __tstate = wxPyBeginAllowThreads();
2168 _result = (bool )wxToolBarBase_DeleteTool(_arg0,_arg1);
2169
2170 wxPyEndAllowThreads(__tstate);
2171 if (PyErr_Occurred()) return NULL;
2172 } _resultobj = Py_BuildValue("i",_result);
2173 return _resultobj;
2174 }
2175
2176 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2177 static PyObject *_wrap_wxToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
2178 PyObject * _resultobj;
2179 wxToolBarBase * _arg0;
2180 PyObject * _argo0 = 0;
2181 char *_kwnames[] = { "self", NULL };
2182
2183 self = self;
2184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_ClearTools",_kwnames,&_argo0))
2185 return NULL;
2186 if (_argo0) {
2187 if (_argo0 == Py_None) { _arg0 = NULL; }
2188 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2189 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2190 return NULL;
2191 }
2192 }
2193 {
2194 PyThreadState* __tstate = wxPyBeginAllowThreads();
2195 wxToolBarBase_ClearTools(_arg0);
2196
2197 wxPyEndAllowThreads(__tstate);
2198 if (PyErr_Occurred()) return NULL;
2199 } Py_INCREF(Py_None);
2200 _resultobj = Py_None;
2201 return _resultobj;
2202 }
2203
2204 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2205 static PyObject *_wrap_wxToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
2206 PyObject * _resultobj;
2207 bool _result;
2208 wxToolBarBase * _arg0;
2209 PyObject * _argo0 = 0;
2210 char *_kwnames[] = { "self", NULL };
2211
2212 self = self;
2213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_Realize",_kwnames,&_argo0))
2214 return NULL;
2215 if (_argo0) {
2216 if (_argo0 == Py_None) { _arg0 = NULL; }
2217 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2218 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2219 return NULL;
2220 }
2221 }
2222 {
2223 PyThreadState* __tstate = wxPyBeginAllowThreads();
2224 _result = (bool )wxToolBarBase_Realize(_arg0);
2225
2226 wxPyEndAllowThreads(__tstate);
2227 if (PyErr_Occurred()) return NULL;
2228 } _resultobj = Py_BuildValue("i",_result);
2229 return _resultobj;
2230 }
2231
2232 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2233 static PyObject *_wrap_wxToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2234 PyObject * _resultobj;
2235 wxToolBarBase * _arg0;
2236 int _arg1;
2237 bool _arg2;
2238 PyObject * _argo0 = 0;
2239 int tempbool2;
2240 char *_kwnames[] = { "self","id","enable", NULL };
2241
2242 self = self;
2243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_EnableTool",_kwnames,&_argo0,&_arg1,&tempbool2))
2244 return NULL;
2245 if (_argo0) {
2246 if (_argo0 == Py_None) { _arg0 = NULL; }
2247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2249 return NULL;
2250 }
2251 }
2252 _arg2 = (bool ) tempbool2;
2253 {
2254 PyThreadState* __tstate = wxPyBeginAllowThreads();
2255 wxToolBarBase_EnableTool(_arg0,_arg1,_arg2);
2256
2257 wxPyEndAllowThreads(__tstate);
2258 if (PyErr_Occurred()) return NULL;
2259 } Py_INCREF(Py_None);
2260 _resultobj = Py_None;
2261 return _resultobj;
2262 }
2263
2264 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2265 static PyObject *_wrap_wxToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject * _resultobj;
2267 wxToolBarBase * _arg0;
2268 int _arg1;
2269 bool _arg2;
2270 PyObject * _argo0 = 0;
2271 int tempbool2;
2272 char *_kwnames[] = { "self","id","toggle", NULL };
2273
2274 self = self;
2275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_ToggleTool",_kwnames,&_argo0,&_arg1,&tempbool2))
2276 return NULL;
2277 if (_argo0) {
2278 if (_argo0 == Py_None) { _arg0 = NULL; }
2279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2281 return NULL;
2282 }
2283 }
2284 _arg2 = (bool ) tempbool2;
2285 {
2286 PyThreadState* __tstate = wxPyBeginAllowThreads();
2287 wxToolBarBase_ToggleTool(_arg0,_arg1,_arg2);
2288
2289 wxPyEndAllowThreads(__tstate);
2290 if (PyErr_Occurred()) return NULL;
2291 } Py_INCREF(Py_None);
2292 _resultobj = Py_None;
2293 return _resultobj;
2294 }
2295
2296 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2297 static PyObject *_wrap_wxToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
2298 PyObject * _resultobj;
2299 wxToolBarBase * _arg0;
2300 int _arg1;
2301 bool _arg2;
2302 PyObject * _argo0 = 0;
2303 int tempbool2;
2304 char *_kwnames[] = { "self","id","toggle", NULL };
2305
2306 self = self;
2307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetToggle",_kwnames,&_argo0,&_arg1,&tempbool2))
2308 return NULL;
2309 if (_argo0) {
2310 if (_argo0 == Py_None) { _arg0 = NULL; }
2311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2313 return NULL;
2314 }
2315 }
2316 _arg2 = (bool ) tempbool2;
2317 {
2318 PyThreadState* __tstate = wxPyBeginAllowThreads();
2319 wxToolBarBase_SetToggle(_arg0,_arg1,_arg2);
2320
2321 wxPyEndAllowThreads(__tstate);
2322 if (PyErr_Occurred()) return NULL;
2323 } Py_INCREF(Py_None);
2324 _resultobj = Py_None;
2325 return _resultobj;
2326 }
2327
2328 static PyObject * wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id) {
2329 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2330 if (udata) {
2331 Py_INCREF(udata->m_obj);
2332 return udata->m_obj;
2333 } else {
2334 Py_INCREF(Py_None);
2335 return Py_None;
2336 }
2337 }
2338 static PyObject *_wrap_wxToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
2339 PyObject * _resultobj;
2340 PyObject * _result;
2341 wxToolBarBase * _arg0;
2342 int _arg1;
2343 PyObject * _argo0 = 0;
2344 char *_kwnames[] = { "self","id", NULL };
2345
2346 self = self;
2347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolClientData",_kwnames,&_argo0,&_arg1))
2348 return NULL;
2349 if (_argo0) {
2350 if (_argo0 == Py_None) { _arg0 = NULL; }
2351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2353 return NULL;
2354 }
2355 }
2356 {
2357 PyThreadState* __tstate = wxPyBeginAllowThreads();
2358 _result = (PyObject *)wxToolBarBase_GetToolClientData(_arg0,_arg1);
2359
2360 wxPyEndAllowThreads(__tstate);
2361 if (PyErr_Occurred()) return NULL;
2362 }{
2363 _resultobj = _result;
2364 }
2365 return _resultobj;
2366 }
2367
2368 static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject * clientData) {
2369 self->SetToolClientData(id, new wxPyUserData(clientData));
2370 }
2371 static PyObject *_wrap_wxToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
2372 PyObject * _resultobj;
2373 wxToolBarBase * _arg0;
2374 int _arg1;
2375 PyObject * _arg2;
2376 PyObject * _argo0 = 0;
2377 PyObject * _obj2 = 0;
2378 char *_kwnames[] = { "self","id","clientData", NULL };
2379
2380 self = self;
2381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolClientData",_kwnames,&_argo0,&_arg1,&_obj2))
2382 return NULL;
2383 if (_argo0) {
2384 if (_argo0 == Py_None) { _arg0 = NULL; }
2385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2387 return NULL;
2388 }
2389 }
2390 {
2391 _arg2 = _obj2;
2392 }
2393 {
2394 PyThreadState* __tstate = wxPyBeginAllowThreads();
2395 wxToolBarBase_SetToolClientData(_arg0,_arg1,_arg2);
2396
2397 wxPyEndAllowThreads(__tstate);
2398 if (PyErr_Occurred()) return NULL;
2399 } Py_INCREF(Py_None);
2400 _resultobj = Py_None;
2401 return _resultobj;
2402 }
2403
2404 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2405 static PyObject *_wrap_wxToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
2406 PyObject * _resultobj;
2407 bool _result;
2408 wxToolBarBase * _arg0;
2409 int _arg1;
2410 PyObject * _argo0 = 0;
2411 char *_kwnames[] = { "self","id", NULL };
2412
2413 self = self;
2414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolState",_kwnames,&_argo0,&_arg1))
2415 return NULL;
2416 if (_argo0) {
2417 if (_argo0 == Py_None) { _arg0 = NULL; }
2418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2420 return NULL;
2421 }
2422 }
2423 {
2424 PyThreadState* __tstate = wxPyBeginAllowThreads();
2425 _result = (bool )wxToolBarBase_GetToolState(_arg0,_arg1);
2426
2427 wxPyEndAllowThreads(__tstate);
2428 if (PyErr_Occurred()) return NULL;
2429 } _resultobj = Py_BuildValue("i",_result);
2430 return _resultobj;
2431 }
2432
2433 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2434 static PyObject *_wrap_wxToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
2435 PyObject * _resultobj;
2436 bool _result;
2437 wxToolBarBase * _arg0;
2438 int _arg1;
2439 PyObject * _argo0 = 0;
2440 char *_kwnames[] = { "self","id", NULL };
2441
2442 self = self;
2443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolEnabled",_kwnames,&_argo0,&_arg1))
2444 return NULL;
2445 if (_argo0) {
2446 if (_argo0 == Py_None) { _arg0 = NULL; }
2447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2449 return NULL;
2450 }
2451 }
2452 {
2453 PyThreadState* __tstate = wxPyBeginAllowThreads();
2454 _result = (bool )wxToolBarBase_GetToolEnabled(_arg0,_arg1);
2455
2456 wxPyEndAllowThreads(__tstate);
2457 if (PyErr_Occurred()) return NULL;
2458 } _resultobj = Py_BuildValue("i",_result);
2459 return _resultobj;
2460 }
2461
2462 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2463 static PyObject *_wrap_wxToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2464 PyObject * _resultobj;
2465 wxToolBarBase * _arg0;
2466 int _arg1;
2467 wxString * _arg2;
2468 PyObject * _argo0 = 0;
2469 PyObject * _obj2 = 0;
2470 char *_kwnames[] = { "self","id","helpString", NULL };
2471
2472 self = self;
2473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames,&_argo0,&_arg1,&_obj2))
2474 return NULL;
2475 if (_argo0) {
2476 if (_argo0 == Py_None) { _arg0 = NULL; }
2477 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2478 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2479 return NULL;
2480 }
2481 }
2482 {
2483 #if PYTHON_API_VERSION >= 1009
2484 char* tmpPtr; int tmpSize;
2485 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
2486 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2487 return NULL;
2488 }
2489 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2490 return NULL;
2491 _arg2 = new wxString(tmpPtr, tmpSize);
2492 #else
2493 if (!PyString_Check(_obj2)) {
2494 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2495 return NULL;
2496 }
2497 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2498 #endif
2499 }
2500 {
2501 PyThreadState* __tstate = wxPyBeginAllowThreads();
2502 wxToolBarBase_SetToolShortHelp(_arg0,_arg1,*_arg2);
2503
2504 wxPyEndAllowThreads(__tstate);
2505 if (PyErr_Occurred()) return NULL;
2506 } Py_INCREF(Py_None);
2507 _resultobj = Py_None;
2508 {
2509 if (_obj2)
2510 delete _arg2;
2511 }
2512 return _resultobj;
2513 }
2514
2515 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2516 static PyObject *_wrap_wxToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2517 PyObject * _resultobj;
2518 wxString * _result;
2519 wxToolBarBase * _arg0;
2520 int _arg1;
2521 PyObject * _argo0 = 0;
2522 char *_kwnames[] = { "self","id", NULL };
2523
2524 self = self;
2525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames,&_argo0,&_arg1))
2526 return NULL;
2527 if (_argo0) {
2528 if (_argo0 == Py_None) { _arg0 = NULL; }
2529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2531 return NULL;
2532 }
2533 }
2534 {
2535 PyThreadState* __tstate = wxPyBeginAllowThreads();
2536 _result = new wxString (wxToolBarBase_GetToolShortHelp(_arg0,_arg1));
2537
2538 wxPyEndAllowThreads(__tstate);
2539 if (PyErr_Occurred()) return NULL;
2540 }{
2541 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2542 }
2543 {
2544 delete _result;
2545 }
2546 return _resultobj;
2547 }
2548
2549 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2550 static PyObject *_wrap_wxToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2551 PyObject * _resultobj;
2552 wxToolBarBase * _arg0;
2553 int _arg1;
2554 wxString * _arg2;
2555 PyObject * _argo0 = 0;
2556 PyObject * _obj2 = 0;
2557 char *_kwnames[] = { "self","id","helpString", NULL };
2558
2559 self = self;
2560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames,&_argo0,&_arg1,&_obj2))
2561 return NULL;
2562 if (_argo0) {
2563 if (_argo0 == Py_None) { _arg0 = NULL; }
2564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2566 return NULL;
2567 }
2568 }
2569 {
2570 #if PYTHON_API_VERSION >= 1009
2571 char* tmpPtr; int tmpSize;
2572 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
2573 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2574 return NULL;
2575 }
2576 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2577 return NULL;
2578 _arg2 = new wxString(tmpPtr, tmpSize);
2579 #else
2580 if (!PyString_Check(_obj2)) {
2581 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2582 return NULL;
2583 }
2584 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2585 #endif
2586 }
2587 {
2588 PyThreadState* __tstate = wxPyBeginAllowThreads();
2589 wxToolBarBase_SetToolLongHelp(_arg0,_arg1,*_arg2);
2590
2591 wxPyEndAllowThreads(__tstate);
2592 if (PyErr_Occurred()) return NULL;
2593 } Py_INCREF(Py_None);
2594 _resultobj = Py_None;
2595 {
2596 if (_obj2)
2597 delete _arg2;
2598 }
2599 return _resultobj;
2600 }
2601
2602 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2603 static PyObject *_wrap_wxToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2604 PyObject * _resultobj;
2605 wxString * _result;
2606 wxToolBarBase * _arg0;
2607 int _arg1;
2608 PyObject * _argo0 = 0;
2609 char *_kwnames[] = { "self","id", NULL };
2610
2611 self = self;
2612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames,&_argo0,&_arg1))
2613 return NULL;
2614 if (_argo0) {
2615 if (_argo0 == Py_None) { _arg0 = NULL; }
2616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2618 return NULL;
2619 }
2620 }
2621 {
2622 PyThreadState* __tstate = wxPyBeginAllowThreads();
2623 _result = new wxString (wxToolBarBase_GetToolLongHelp(_arg0,_arg1));
2624
2625 wxPyEndAllowThreads(__tstate);
2626 if (PyErr_Occurred()) return NULL;
2627 }{
2628 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2629 }
2630 {
2631 delete _result;
2632 }
2633 return _resultobj;
2634 }
2635
2636 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2637 static PyObject *_wrap_wxToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2638 PyObject * _resultobj;
2639 wxToolBarBase * _arg0;
2640 int _arg1;
2641 int _arg2;
2642 PyObject * _argo0 = 0;
2643 char *_kwnames[] = { "self","x","y", NULL };
2644
2645 self = self;
2646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetMarginsXY",_kwnames,&_argo0,&_arg1,&_arg2))
2647 return NULL;
2648 if (_argo0) {
2649 if (_argo0 == Py_None) { _arg0 = NULL; }
2650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2652 return NULL;
2653 }
2654 }
2655 {
2656 PyThreadState* __tstate = wxPyBeginAllowThreads();
2657 wxToolBarBase_SetMarginsXY(_arg0,_arg1,_arg2);
2658
2659 wxPyEndAllowThreads(__tstate);
2660 if (PyErr_Occurred()) return NULL;
2661 } Py_INCREF(Py_None);
2662 _resultobj = Py_None;
2663 return _resultobj;
2664 }
2665
2666 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2667 static PyObject *_wrap_wxToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2668 PyObject * _resultobj;
2669 wxToolBarBase * _arg0;
2670 wxSize * _arg1;
2671 PyObject * _argo0 = 0;
2672 wxSize temp;
2673 PyObject * _obj1 = 0;
2674 char *_kwnames[] = { "self","size", NULL };
2675
2676 self = self;
2677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_SetMargins",_kwnames,&_argo0,&_obj1))
2678 return NULL;
2679 if (_argo0) {
2680 if (_argo0 == Py_None) { _arg0 = NULL; }
2681 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2682 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2683 return NULL;
2684 }
2685 }
2686 {
2687 _arg1 = &temp;
2688 if (! wxSize_helper(_obj1, &_arg1))
2689 return NULL;
2690 }
2691 {
2692 PyThreadState* __tstate = wxPyBeginAllowThreads();
2693 wxToolBarBase_SetMargins(_arg0,*_arg1);
2694
2695 wxPyEndAllowThreads(__tstate);
2696 if (PyErr_Occurred()) return NULL;
2697 } Py_INCREF(Py_None);
2698 _resultobj = Py_None;
2699 return _resultobj;
2700 }
2701
2702 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2703 static PyObject *_wrap_wxToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
2704 PyObject * _resultobj;
2705 wxToolBarBase * _arg0;
2706 int _arg1;
2707 PyObject * _argo0 = 0;
2708 char *_kwnames[] = { "self","packing", NULL };
2709
2710 self = self;
2711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetToolPacking",_kwnames,&_argo0,&_arg1))
2712 return NULL;
2713 if (_argo0) {
2714 if (_argo0 == Py_None) { _arg0 = NULL; }
2715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2717 return NULL;
2718 }
2719 }
2720 {
2721 PyThreadState* __tstate = wxPyBeginAllowThreads();
2722 wxToolBarBase_SetToolPacking(_arg0,_arg1);
2723
2724 wxPyEndAllowThreads(__tstate);
2725 if (PyErr_Occurred()) return NULL;
2726 } Py_INCREF(Py_None);
2727 _resultobj = Py_None;
2728 return _resultobj;
2729 }
2730
2731 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2732 static PyObject *_wrap_wxToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
2733 PyObject * _resultobj;
2734 wxToolBarBase * _arg0;
2735 int _arg1;
2736 PyObject * _argo0 = 0;
2737 char *_kwnames[] = { "self","separation", NULL };
2738
2739 self = self;
2740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetToolSeparation",_kwnames,&_argo0,&_arg1))
2741 return NULL;
2742 if (_argo0) {
2743 if (_argo0 == Py_None) { _arg0 = NULL; }
2744 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2745 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2746 return NULL;
2747 }
2748 }
2749 {
2750 PyThreadState* __tstate = wxPyBeginAllowThreads();
2751 wxToolBarBase_SetToolSeparation(_arg0,_arg1);
2752
2753 wxPyEndAllowThreads(__tstate);
2754 if (PyErr_Occurred()) return NULL;
2755 } Py_INCREF(Py_None);
2756 _resultobj = Py_None;
2757 return _resultobj;
2758 }
2759
2760 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2761 static PyObject *_wrap_wxToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2762 PyObject * _resultobj;
2763 wxSize * _result;
2764 wxToolBarBase * _arg0;
2765 PyObject * _argo0 = 0;
2766 char *_kwnames[] = { "self", NULL };
2767 char _ptemp[128];
2768
2769 self = self;
2770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolMargins",_kwnames,&_argo0))
2771 return NULL;
2772 if (_argo0) {
2773 if (_argo0 == Py_None) { _arg0 = NULL; }
2774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2776 return NULL;
2777 }
2778 }
2779 {
2780 PyThreadState* __tstate = wxPyBeginAllowThreads();
2781 _result = new wxSize (wxToolBarBase_GetToolMargins(_arg0));
2782
2783 wxPyEndAllowThreads(__tstate);
2784 if (PyErr_Occurred()) return NULL;
2785 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2786 _resultobj = Py_BuildValue("s",_ptemp);
2787 return _resultobj;
2788 }
2789
2790 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2791 static PyObject *_wrap_wxToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2792 PyObject * _resultobj;
2793 wxSize * _result;
2794 wxToolBarBase * _arg0;
2795 PyObject * _argo0 = 0;
2796 char *_kwnames[] = { "self", NULL };
2797 char _ptemp[128];
2798
2799 self = self;
2800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMargins",_kwnames,&_argo0))
2801 return NULL;
2802 if (_argo0) {
2803 if (_argo0 == Py_None) { _arg0 = NULL; }
2804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2806 return NULL;
2807 }
2808 }
2809 {
2810 PyThreadState* __tstate = wxPyBeginAllowThreads();
2811 _result = new wxSize (wxToolBarBase_GetMargins(_arg0));
2812
2813 wxPyEndAllowThreads(__tstate);
2814 if (PyErr_Occurred()) return NULL;
2815 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2816 _resultobj = Py_BuildValue("s",_ptemp);
2817 return _resultobj;
2818 }
2819
2820 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2821 static PyObject *_wrap_wxToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
2822 PyObject * _resultobj;
2823 int _result;
2824 wxToolBarBase * _arg0;
2825 PyObject * _argo0 = 0;
2826 char *_kwnames[] = { "self", NULL };
2827
2828 self = self;
2829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolPacking",_kwnames,&_argo0))
2830 return NULL;
2831 if (_argo0) {
2832 if (_argo0 == Py_None) { _arg0 = NULL; }
2833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2835 return NULL;
2836 }
2837 }
2838 {
2839 PyThreadState* __tstate = wxPyBeginAllowThreads();
2840 _result = (int )wxToolBarBase_GetToolPacking(_arg0);
2841
2842 wxPyEndAllowThreads(__tstate);
2843 if (PyErr_Occurred()) return NULL;
2844 } _resultobj = Py_BuildValue("i",_result);
2845 return _resultobj;
2846 }
2847
2848 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2849 static PyObject *_wrap_wxToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
2850 PyObject * _resultobj;
2851 int _result;
2852 wxToolBarBase * _arg0;
2853 PyObject * _argo0 = 0;
2854 char *_kwnames[] = { "self", NULL };
2855
2856 self = self;
2857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolSeparation",_kwnames,&_argo0))
2858 return NULL;
2859 if (_argo0) {
2860 if (_argo0 == Py_None) { _arg0 = NULL; }
2861 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2862 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2863 return NULL;
2864 }
2865 }
2866 {
2867 PyThreadState* __tstate = wxPyBeginAllowThreads();
2868 _result = (int )wxToolBarBase_GetToolSeparation(_arg0);
2869
2870 wxPyEndAllowThreads(__tstate);
2871 if (PyErr_Occurred()) return NULL;
2872 } _resultobj = Py_BuildValue("i",_result);
2873 return _resultobj;
2874 }
2875
2876 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2877 static PyObject *_wrap_wxToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
2878 PyObject * _resultobj;
2879 wxToolBarBase * _arg0;
2880 int _arg1;
2881 PyObject * _argo0 = 0;
2882 char *_kwnames[] = { "self","nRows", NULL };
2883
2884 self = self;
2885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetRows",_kwnames,&_argo0,&_arg1))
2886 return NULL;
2887 if (_argo0) {
2888 if (_argo0 == Py_None) { _arg0 = NULL; }
2889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2891 return NULL;
2892 }
2893 }
2894 {
2895 PyThreadState* __tstate = wxPyBeginAllowThreads();
2896 wxToolBarBase_SetRows(_arg0,_arg1);
2897
2898 wxPyEndAllowThreads(__tstate);
2899 if (PyErr_Occurred()) return NULL;
2900 } Py_INCREF(Py_None);
2901 _resultobj = Py_None;
2902 return _resultobj;
2903 }
2904
2905 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2906 static PyObject *_wrap_wxToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
2907 PyObject * _resultobj;
2908 wxToolBarBase * _arg0;
2909 int _arg1;
2910 int _arg2;
2911 PyObject * _argo0 = 0;
2912 char *_kwnames[] = { "self","rows","cols", NULL };
2913
2914 self = self;
2915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames,&_argo0,&_arg1,&_arg2))
2916 return NULL;
2917 if (_argo0) {
2918 if (_argo0 == Py_None) { _arg0 = NULL; }
2919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2921 return NULL;
2922 }
2923 }
2924 {
2925 PyThreadState* __tstate = wxPyBeginAllowThreads();
2926 wxToolBarBase_SetMaxRowsCols(_arg0,_arg1,_arg2);
2927
2928 wxPyEndAllowThreads(__tstate);
2929 if (PyErr_Occurred()) return NULL;
2930 } Py_INCREF(Py_None);
2931 _resultobj = Py_None;
2932 return _resultobj;
2933 }
2934
2935 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2936 static PyObject *_wrap_wxToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
2937 PyObject * _resultobj;
2938 int _result;
2939 wxToolBarBase * _arg0;
2940 PyObject * _argo0 = 0;
2941 char *_kwnames[] = { "self", NULL };
2942
2943 self = self;
2944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMaxRows",_kwnames,&_argo0))
2945 return NULL;
2946 if (_argo0) {
2947 if (_argo0 == Py_None) { _arg0 = NULL; }
2948 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2950 return NULL;
2951 }
2952 }
2953 {
2954 PyThreadState* __tstate = wxPyBeginAllowThreads();
2955 _result = (int )wxToolBarBase_GetMaxRows(_arg0);
2956
2957 wxPyEndAllowThreads(__tstate);
2958 if (PyErr_Occurred()) return NULL;
2959 } _resultobj = Py_BuildValue("i",_result);
2960 return _resultobj;
2961 }
2962
2963 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2964 static PyObject *_wrap_wxToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
2965 PyObject * _resultobj;
2966 int _result;
2967 wxToolBarBase * _arg0;
2968 PyObject * _argo0 = 0;
2969 char *_kwnames[] = { "self", NULL };
2970
2971 self = self;
2972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMaxCols",_kwnames,&_argo0))
2973 return NULL;
2974 if (_argo0) {
2975 if (_argo0 == Py_None) { _arg0 = NULL; }
2976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2978 return NULL;
2979 }
2980 }
2981 {
2982 PyThreadState* __tstate = wxPyBeginAllowThreads();
2983 _result = (int )wxToolBarBase_GetMaxCols(_arg0);
2984
2985 wxPyEndAllowThreads(__tstate);
2986 if (PyErr_Occurred()) return NULL;
2987 } _resultobj = Py_BuildValue("i",_result);
2988 return _resultobj;
2989 }
2990
2991 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2992 static PyObject *_wrap_wxToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2993 PyObject * _resultobj;
2994 wxToolBarBase * _arg0;
2995 wxSize * _arg1;
2996 PyObject * _argo0 = 0;
2997 wxSize temp;
2998 PyObject * _obj1 = 0;
2999 char *_kwnames[] = { "self","size", NULL };
3000
3001 self = self;
3002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames,&_argo0,&_obj1))
3003 return NULL;
3004 if (_argo0) {
3005 if (_argo0 == Py_None) { _arg0 = NULL; }
3006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
3007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
3008 return NULL;
3009 }
3010 }
3011 {
3012 _arg1 = &temp;
3013 if (! wxSize_helper(_obj1, &_arg1))
3014 return NULL;
3015 }
3016 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 wxToolBarBase_SetToolBitmapSize(_arg0,*_arg1);
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) return NULL;
3022 } Py_INCREF(Py_None);
3023 _resultobj = Py_None;
3024 return _resultobj;
3025 }
3026
3027 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
3028 static PyObject *_wrap_wxToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3029 PyObject * _resultobj;
3030 wxSize * _result;
3031 wxToolBarBase * _arg0;
3032 PyObject * _argo0 = 0;
3033 char *_kwnames[] = { "self", NULL };
3034 char _ptemp[128];
3035
3036 self = self;
3037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolBitmapSize",_kwnames,&_argo0))
3038 return NULL;
3039 if (_argo0) {
3040 if (_argo0 == Py_None) { _arg0 = NULL; }
3041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
3042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
3043 return NULL;
3044 }
3045 }
3046 {
3047 PyThreadState* __tstate = wxPyBeginAllowThreads();
3048 _result = new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0));
3049
3050 wxPyEndAllowThreads(__tstate);
3051 if (PyErr_Occurred()) return NULL;
3052 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3053 _resultobj = Py_BuildValue("s",_ptemp);
3054 return _resultobj;
3055 }
3056
3057 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
3058 static PyObject *_wrap_wxToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3059 PyObject * _resultobj;
3060 wxSize * _result;
3061 wxToolBarBase * _arg0;
3062 PyObject * _argo0 = 0;
3063 char *_kwnames[] = { "self", NULL };
3064 char _ptemp[128];
3065
3066 self = self;
3067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolSize",_kwnames,&_argo0))
3068 return NULL;
3069 if (_argo0) {
3070 if (_argo0 == Py_None) { _arg0 = NULL; }
3071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
3072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
3073 return NULL;
3074 }
3075 }
3076 {
3077 PyThreadState* __tstate = wxPyBeginAllowThreads();
3078 _result = new wxSize (wxToolBarBase_GetToolSize(_arg0));
3079
3080 wxPyEndAllowThreads(__tstate);
3081 if (PyErr_Occurred()) return NULL;
3082 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3083 _resultobj = Py_BuildValue("s",_ptemp);
3084 return _resultobj;
3085 }
3086
3087 #define wxToolBarBase_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3088 static PyObject *_wrap_wxToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3089 PyObject * _resultobj;
3090 wxToolBarToolBase * _result;
3091 wxToolBarBase * _arg0;
3092 wxCoord _arg1;
3093 wxCoord _arg2;
3094 PyObject * _argo0 = 0;
3095 char *_kwnames[] = { "self","x","y", NULL };
3096
3097 self = self;
3098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
3099 return NULL;
3100 if (_argo0) {
3101 if (_argo0 == Py_None) { _arg0 = NULL; }
3102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
3103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_FindToolForPosition. Expected _wxToolBarBase_p.");
3104 return NULL;
3105 }
3106 }
3107 {
3108 PyThreadState* __tstate = wxPyBeginAllowThreads();
3109 _result = (wxToolBarToolBase *)wxToolBarBase_FindToolForPosition(_arg0,_arg1,_arg2);
3110
3111 wxPyEndAllowThreads(__tstate);
3112 if (PyErr_Occurred()) return NULL;
3113 }{ _resultobj = wxPyMake_wxObject(_result); }
3114 return _resultobj;
3115 }
3116
3117 #define wxToolBarBase_IsVertical(_swigobj) (_swigobj->IsVertical())
3118 static PyObject *_wrap_wxToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) {
3119 PyObject * _resultobj;
3120 bool _result;
3121 wxToolBarBase * _arg0;
3122 PyObject * _argo0 = 0;
3123 char *_kwnames[] = { "self", NULL };
3124
3125 self = self;
3126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_IsVertical",_kwnames,&_argo0))
3127 return NULL;
3128 if (_argo0) {
3129 if (_argo0 == Py_None) { _arg0 = NULL; }
3130 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
3131 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_IsVertical. Expected _wxToolBarBase_p.");
3132 return NULL;
3133 }
3134 }
3135 {
3136 PyThreadState* __tstate = wxPyBeginAllowThreads();
3137 _result = (bool )wxToolBarBase_IsVertical(_arg0);
3138
3139 wxPyEndAllowThreads(__tstate);
3140 if (PyErr_Occurred()) return NULL;
3141 } _resultobj = Py_BuildValue("i",_result);
3142 return _resultobj;
3143 }
3144
3145 static void *SwigwxToolBarTowxToolBarBase(void *ptr) {
3146 wxToolBar *src;
3147 wxToolBarBase *dest;
3148 src = (wxToolBar *) ptr;
3149 dest = (wxToolBarBase *) src;
3150 return (void *) dest;
3151 }
3152
3153 static void *SwigwxToolBarTowxControl(void *ptr) {
3154 wxToolBar *src;
3155 wxControl *dest;
3156 src = (wxToolBar *) ptr;
3157 dest = (wxControl *) src;
3158 return (void *) dest;
3159 }
3160
3161 static void *SwigwxToolBarTowxWindow(void *ptr) {
3162 wxToolBar *src;
3163 wxWindow *dest;
3164 src = (wxToolBar *) ptr;
3165 dest = (wxWindow *) src;
3166 return (void *) dest;
3167 }
3168
3169 static void *SwigwxToolBarTowxEvtHandler(void *ptr) {
3170 wxToolBar *src;
3171 wxEvtHandler *dest;
3172 src = (wxToolBar *) ptr;
3173 dest = (wxEvtHandler *) src;
3174 return (void *) dest;
3175 }
3176
3177 static void *SwigwxToolBarTowxObject(void *ptr) {
3178 wxToolBar *src;
3179 wxObject *dest;
3180 src = (wxToolBar *) ptr;
3181 dest = (wxObject *) src;
3182 return (void *) dest;
3183 }
3184
3185 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3186 static PyObject *_wrap_new_wxToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
3187 PyObject * _resultobj;
3188 wxToolBar * _result;
3189 wxWindow * _arg0;
3190 wxWindowID _arg1;
3191 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3192 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
3193 long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3194 char * _arg5 = (char *) wxToolBarNameStr;
3195 PyObject * _argo0 = 0;
3196 wxPoint temp;
3197 PyObject * _obj2 = 0;
3198 wxSize temp0;
3199 PyObject * _obj3 = 0;
3200 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3201 char _ptemp[128];
3202
3203 self = self;
3204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
3205 return NULL;
3206 if (_argo0) {
3207 if (_argo0 == Py_None) { _arg0 = NULL; }
3208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3210 return NULL;
3211 }
3212 }
3213 if (_obj2)
3214 {
3215 _arg2 = &temp;
3216 if (! wxPoint_helper(_obj2, &_arg2))
3217 return NULL;
3218 }
3219 if (_obj3)
3220 {
3221 _arg3 = &temp0;
3222 if (! wxSize_helper(_obj3, &_arg3))
3223 return NULL;
3224 }
3225 {
3226 PyThreadState* __tstate = wxPyBeginAllowThreads();
3227 _result = (wxToolBar *)new_wxToolBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
3228
3229 wxPyEndAllowThreads(__tstate);
3230 if (PyErr_Occurred()) return NULL;
3231 } if (_result) {
3232 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
3233 _resultobj = Py_BuildValue("s",_ptemp);
3234 } else {
3235 Py_INCREF(Py_None);
3236 _resultobj = Py_None;
3237 }
3238 return _resultobj;
3239 }
3240
3241 #define new_wxPreToolBar() (new wxToolBar())
3242 static PyObject *_wrap_new_wxPreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
3243 PyObject * _resultobj;
3244 wxToolBar * _result;
3245 char *_kwnames[] = { NULL };
3246 char _ptemp[128];
3247
3248 self = self;
3249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToolBar",_kwnames))
3250 return NULL;
3251 {
3252 PyThreadState* __tstate = wxPyBeginAllowThreads();
3253 _result = (wxToolBar *)new_wxPreToolBar();
3254
3255 wxPyEndAllowThreads(__tstate);
3256 if (PyErr_Occurred()) return NULL;
3257 } if (_result) {
3258 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
3259 _resultobj = Py_BuildValue("s",_ptemp);
3260 } else {
3261 Py_INCREF(Py_None);
3262 _resultobj = Py_None;
3263 }
3264 return _resultobj;
3265 }
3266
3267 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3268 static PyObject *_wrap_wxToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3269 PyObject * _resultobj;
3270 bool _result;
3271 wxToolBar * _arg0;
3272 wxWindow * _arg1;
3273 wxWindowID _arg2;
3274 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3275 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3276 long _arg5 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3277 char * _arg6 = (char *) wxToolBarNameStr;
3278 PyObject * _argo0 = 0;
3279 PyObject * _argo1 = 0;
3280 wxPoint temp;
3281 PyObject * _obj3 = 0;
3282 wxSize temp0;
3283 PyObject * _obj4 = 0;
3284 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
3285
3286 self = self;
3287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxToolBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
3288 return NULL;
3289 if (_argo0) {
3290 if (_argo0 == Py_None) { _arg0 = NULL; }
3291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
3292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3293 return NULL;
3294 }
3295 }
3296 if (_argo1) {
3297 if (_argo1 == Py_None) { _arg1 = NULL; }
3298 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3299 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3300 return NULL;
3301 }
3302 }
3303 if (_obj3)
3304 {
3305 _arg3 = &temp;
3306 if (! wxPoint_helper(_obj3, &_arg3))
3307 return NULL;
3308 }
3309 if (_obj4)
3310 {
3311 _arg4 = &temp0;
3312 if (! wxSize_helper(_obj4, &_arg4))
3313 return NULL;
3314 }
3315 {
3316 PyThreadState* __tstate = wxPyBeginAllowThreads();
3317 _result = (bool )wxToolBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
3318
3319 wxPyEndAllowThreads(__tstate);
3320 if (PyErr_Occurred()) return NULL;
3321 } _resultobj = Py_BuildValue("i",_result);
3322 return _resultobj;
3323 }
3324
3325 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3326 static PyObject *_wrap_wxToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3327 PyObject * _resultobj;
3328 wxToolBarToolBase * _result;
3329 wxToolBar * _arg0;
3330 wxCoord _arg1;
3331 wxCoord _arg2;
3332 PyObject * _argo0 = 0;
3333 char *_kwnames[] = { "self","x","y", NULL };
3334
3335 self = self;
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBar_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
3337 return NULL;
3338 if (_argo0) {
3339 if (_argo0 == Py_None) { _arg0 = NULL; }
3340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
3341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3342 return NULL;
3343 }
3344 }
3345 {
3346 PyThreadState* __tstate = wxPyBeginAllowThreads();
3347 _result = (wxToolBarToolBase *)wxToolBar_FindToolForPosition(_arg0,_arg1,_arg2);
3348
3349 wxPyEndAllowThreads(__tstate);
3350 if (PyErr_Occurred()) return NULL;
3351 }{ _resultobj = wxPyMake_wxObject(_result); }
3352 return _resultobj;
3353 }
3354
3355 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr) {
3356 wxToolBarSimple *src;
3357 wxToolBarBase *dest;
3358 src = (wxToolBarSimple *) ptr;
3359 dest = (wxToolBarBase *) src;
3360 return (void *) dest;
3361 }
3362
3363 static void *SwigwxToolBarSimpleTowxControl(void *ptr) {
3364 wxToolBarSimple *src;
3365 wxControl *dest;
3366 src = (wxToolBarSimple *) ptr;
3367 dest = (wxControl *) src;
3368 return (void *) dest;
3369 }
3370
3371 static void *SwigwxToolBarSimpleTowxWindow(void *ptr) {
3372 wxToolBarSimple *src;
3373 wxWindow *dest;
3374 src = (wxToolBarSimple *) ptr;
3375 dest = (wxWindow *) src;
3376 return (void *) dest;
3377 }
3378
3379 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr) {
3380 wxToolBarSimple *src;
3381 wxEvtHandler *dest;
3382 src = (wxToolBarSimple *) ptr;
3383 dest = (wxEvtHandler *) src;
3384 return (void *) dest;
3385 }
3386
3387 static void *SwigwxToolBarSimpleTowxObject(void *ptr) {
3388 wxToolBarSimple *src;
3389 wxObject *dest;
3390 src = (wxToolBarSimple *) ptr;
3391 dest = (wxObject *) src;
3392 return (void *) dest;
3393 }
3394
3395 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3396 static PyObject *_wrap_new_wxToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
3397 PyObject * _resultobj;
3398 wxToolBarSimple * _result;
3399 wxWindow * _arg0;
3400 wxWindowID _arg1;
3401 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3402 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
3403 long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3404 char * _arg5 = (char *) wxToolBarNameStr;
3405 PyObject * _argo0 = 0;
3406 wxPoint temp;
3407 PyObject * _obj2 = 0;
3408 wxSize temp0;
3409 PyObject * _obj3 = 0;
3410 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3411 char _ptemp[128];
3412
3413 self = self;
3414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBarSimple",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
3415 return NULL;
3416 if (_argo0) {
3417 if (_argo0 == Py_None) { _arg0 = NULL; }
3418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3420 return NULL;
3421 }
3422 }
3423 if (_obj2)
3424 {
3425 _arg2 = &temp;
3426 if (! wxPoint_helper(_obj2, &_arg2))
3427 return NULL;
3428 }
3429 if (_obj3)
3430 {
3431 _arg3 = &temp0;
3432 if (! wxSize_helper(_obj3, &_arg3))
3433 return NULL;
3434 }
3435 {
3436 PyThreadState* __tstate = wxPyBeginAllowThreads();
3437 _result = (wxToolBarSimple *)new_wxToolBarSimple(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
3438
3439 wxPyEndAllowThreads(__tstate);
3440 if (PyErr_Occurred()) return NULL;
3441 } if (_result) {
3442 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarSimple_p");
3443 _resultobj = Py_BuildValue("s",_ptemp);
3444 } else {
3445 Py_INCREF(Py_None);
3446 _resultobj = Py_None;
3447 }
3448 return _resultobj;
3449 }
3450
3451 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3452 static PyObject *_wrap_new_wxPreToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
3453 PyObject * _resultobj;
3454 wxToolBarSimple * _result;
3455 char *_kwnames[] = { NULL };
3456 char _ptemp[128];
3457
3458 self = self;
3459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToolBarSimple",_kwnames))
3460 return NULL;
3461 {
3462 PyThreadState* __tstate = wxPyBeginAllowThreads();
3463 _result = (wxToolBarSimple *)new_wxPreToolBarSimple();
3464
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) return NULL;
3467 } if (_result) {
3468 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarSimple_p");
3469 _resultobj = Py_BuildValue("s",_ptemp);
3470 } else {
3471 Py_INCREF(Py_None);
3472 _resultobj = Py_None;
3473 }
3474 return _resultobj;
3475 }
3476
3477 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3478 static PyObject *_wrap_wxToolBarSimple_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3479 PyObject * _resultobj;
3480 bool _result;
3481 wxToolBarSimple * _arg0;
3482 wxWindow * _arg1;
3483 wxWindowID _arg2;
3484 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3485 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3486 long _arg5 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3487 char * _arg6 = (char *) wxToolBarNameStr;
3488 PyObject * _argo0 = 0;
3489 PyObject * _argo1 = 0;
3490 wxPoint temp;
3491 PyObject * _obj3 = 0;
3492 wxSize temp0;
3493 PyObject * _obj4 = 0;
3494 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
3495
3496 self = self;
3497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxToolBarSimple_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
3498 return NULL;
3499 if (_argo0) {
3500 if (_argo0 == Py_None) { _arg0 = NULL; }
3501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarSimple_p")) {
3502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3503 return NULL;
3504 }
3505 }
3506 if (_argo1) {
3507 if (_argo1 == Py_None) { _arg1 = NULL; }
3508 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3509 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3510 return NULL;
3511 }
3512 }
3513 if (_obj3)
3514 {
3515 _arg3 = &temp;
3516 if (! wxPoint_helper(_obj3, &_arg3))
3517 return NULL;
3518 }
3519 if (_obj4)
3520 {
3521 _arg4 = &temp0;
3522 if (! wxSize_helper(_obj4, &_arg4))
3523 return NULL;
3524 }
3525 {
3526 PyThreadState* __tstate = wxPyBeginAllowThreads();
3527 _result = (bool )wxToolBarSimple_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
3528
3529 wxPyEndAllowThreads(__tstate);
3530 if (PyErr_Occurred()) return NULL;
3531 } _resultobj = Py_BuildValue("i",_result);
3532 return _resultobj;
3533 }
3534
3535 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3536 static PyObject *_wrap_wxToolBarSimple_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3537 PyObject * _resultobj;
3538 wxToolBarToolBase * _result;
3539 wxToolBarSimple * _arg0;
3540 wxCoord _arg1;
3541 wxCoord _arg2;
3542 PyObject * _argo0 = 0;
3543 char *_kwnames[] = { "self","x","y", NULL };
3544
3545 self = self;
3546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
3547 return NULL;
3548 if (_argo0) {
3549 if (_argo0 == Py_None) { _arg0 = NULL; }
3550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarSimple_p")) {
3551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3552 return NULL;
3553 }
3554 }
3555 {
3556 PyThreadState* __tstate = wxPyBeginAllowThreads();
3557 _result = (wxToolBarToolBase *)wxToolBarSimple_FindToolForPosition(_arg0,_arg1,_arg2);
3558
3559 wxPyEndAllowThreads(__tstate);
3560 if (PyErr_Occurred()) return NULL;
3561 }{ _resultobj = wxPyMake_wxObject(_result); }
3562 return _resultobj;
3563 }
3564
3565 static PyMethodDef stattoolcMethods[] = {
3566 { "wxToolBarSimple_FindToolForPosition", (PyCFunction) _wrap_wxToolBarSimple_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
3567 { "wxToolBarSimple_Create", (PyCFunction) _wrap_wxToolBarSimple_Create, METH_VARARGS | METH_KEYWORDS },
3568 { "new_wxPreToolBarSimple", (PyCFunction) _wrap_new_wxPreToolBarSimple, METH_VARARGS | METH_KEYWORDS },
3569 { "new_wxToolBarSimple", (PyCFunction) _wrap_new_wxToolBarSimple, METH_VARARGS | METH_KEYWORDS },
3570 { "wxToolBar_FindToolForPosition", (PyCFunction) _wrap_wxToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
3571 { "wxToolBar_Create", (PyCFunction) _wrap_wxToolBar_Create, METH_VARARGS | METH_KEYWORDS },
3572 { "new_wxPreToolBar", (PyCFunction) _wrap_new_wxPreToolBar, METH_VARARGS | METH_KEYWORDS },
3573 { "new_wxToolBar", (PyCFunction) _wrap_new_wxToolBar, METH_VARARGS | METH_KEYWORDS },
3574 { "wxToolBarBase_IsVertical", (PyCFunction) _wrap_wxToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS },
3575 { "wxToolBarBase_FindToolForPosition", (PyCFunction) _wrap_wxToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
3576 { "wxToolBarBase_GetToolSize", (PyCFunction) _wrap_wxToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
3577 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_wxToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
3578 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_wxToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
3579 { "wxToolBarBase_GetMaxCols", (PyCFunction) _wrap_wxToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
3580 { "wxToolBarBase_GetMaxRows", (PyCFunction) _wrap_wxToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
3581 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_wxToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
3582 { "wxToolBarBase_SetRows", (PyCFunction) _wrap_wxToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
3583 { "wxToolBarBase_GetToolSeparation", (PyCFunction) _wrap_wxToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
3584 { "wxToolBarBase_GetToolPacking", (PyCFunction) _wrap_wxToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
3585 { "wxToolBarBase_GetMargins", (PyCFunction) _wrap_wxToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
3586 { "wxToolBarBase_GetToolMargins", (PyCFunction) _wrap_wxToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
3587 { "wxToolBarBase_SetToolSeparation", (PyCFunction) _wrap_wxToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
3588 { "wxToolBarBase_SetToolPacking", (PyCFunction) _wrap_wxToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
3589 { "wxToolBarBase_SetMargins", (PyCFunction) _wrap_wxToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
3590 { "wxToolBarBase_SetMarginsXY", (PyCFunction) _wrap_wxToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
3591 { "wxToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_wxToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
3592 { "wxToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_wxToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
3593 { "wxToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_wxToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
3594 { "wxToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_wxToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
3595 { "wxToolBarBase_GetToolEnabled", (PyCFunction) _wrap_wxToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
3596 { "wxToolBarBase_GetToolState", (PyCFunction) _wrap_wxToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
3597 { "wxToolBarBase_SetToolClientData", (PyCFunction) _wrap_wxToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
3598 { "wxToolBarBase_GetToolClientData", (PyCFunction) _wrap_wxToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
3599 { "wxToolBarBase_SetToggle", (PyCFunction) _wrap_wxToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
3600 { "wxToolBarBase_ToggleTool", (PyCFunction) _wrap_wxToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
3601 { "wxToolBarBase_EnableTool", (PyCFunction) _wrap_wxToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
3602 { "wxToolBarBase_Realize", (PyCFunction) _wrap_wxToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
3603 { "wxToolBarBase_ClearTools", (PyCFunction) _wrap_wxToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
3604 { "wxToolBarBase_DeleteTool", (PyCFunction) _wrap_wxToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
3605 { "wxToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_wxToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
3606 { "wxToolBarBase_RemoveTool", (PyCFunction) _wrap_wxToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
3607 { "wxToolBarBase_InsertSeparator", (PyCFunction) _wrap_wxToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
3608 { "wxToolBarBase_AddSeparator", (PyCFunction) _wrap_wxToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
3609 { "wxToolBarBase_InsertControl", (PyCFunction) _wrap_wxToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
3610 { "wxToolBarBase_AddControl", (PyCFunction) _wrap_wxToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
3611 { "wxToolBarBase_InsertSimpleTool", (PyCFunction) _wrap_wxToolBarBase_InsertSimpleTool, METH_VARARGS | METH_KEYWORDS },
3612 { "wxToolBarBase_InsertTool", (PyCFunction) _wrap_wxToolBarBase_InsertTool, METH_VARARGS | METH_KEYWORDS },
3613 { "wxToolBarBase_AddSimpleTool", (PyCFunction) _wrap_wxToolBarBase_AddSimpleTool, METH_VARARGS | METH_KEYWORDS },
3614 { "wxToolBarBase_AddTool", (PyCFunction) _wrap_wxToolBarBase_AddTool, METH_VARARGS | METH_KEYWORDS },
3615 { "wxToolBarToolBase_SetClientData", (PyCFunction) _wrap_wxToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
3616 { "wxToolBarToolBase_GetClientData", (PyCFunction) _wrap_wxToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
3617 { "wxToolBarToolBase_Attach", (PyCFunction) _wrap_wxToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
3618 { "wxToolBarToolBase_Detach", (PyCFunction) _wrap_wxToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
3619 { "wxToolBarToolBase_SetLabel", (PyCFunction) _wrap_wxToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS },
3620 { "wxToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_wxToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
3621 { "wxToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_wxToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
3622 { "wxToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_wxToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
3623 { "wxToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_wxToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
3624 { "wxToolBarToolBase_SetToggle", (PyCFunction) _wrap_wxToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
3625 { "wxToolBarToolBase_Toggle", (PyCFunction) _wrap_wxToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
3626 { "wxToolBarToolBase_Enable", (PyCFunction) _wrap_wxToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
3627 { "wxToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_wxToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
3628 { "wxToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_wxToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
3629 { "wxToolBarToolBase_GetLabel", (PyCFunction) _wrap_wxToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS },
3630 { "wxToolBarToolBase_GetBitmap", (PyCFunction) _wrap_wxToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
3631 { "wxToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_wxToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
3632 { "wxToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_wxToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS },
3633 { "wxToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_wxToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
3634 { "wxToolBarToolBase_IsToggled", (PyCFunction) _wrap_wxToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
3635 { "wxToolBarToolBase_IsEnabled", (PyCFunction) _wrap_wxToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
3636 { "wxToolBarToolBase_GetStyle", (PyCFunction) _wrap_wxToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
3637 { "wxToolBarToolBase_IsSeparator", (PyCFunction) _wrap_wxToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
3638 { "wxToolBarToolBase_IsControl", (PyCFunction) _wrap_wxToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
3639 { "wxToolBarToolBase_IsButton", (PyCFunction) _wrap_wxToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
3640 { "wxToolBarToolBase_GetToolBar", (PyCFunction) _wrap_wxToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
3641 { "wxToolBarToolBase_GetControl", (PyCFunction) _wrap_wxToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
3642 { "wxToolBarToolBase_GetId", (PyCFunction) _wrap_wxToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
3643 { "wxToolBarToolBase_Destroy", (PyCFunction) _wrap_wxToolBarToolBase_Destroy, METH_VARARGS | METH_KEYWORDS },
3644 { "wxStatusBar_SetMinHeight", (PyCFunction) _wrap_wxStatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS },
3645 { "wxStatusBar_SetStatusWidths", (PyCFunction) _wrap_wxStatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS },
3646 { "wxStatusBar_SetStatusText", (PyCFunction) _wrap_wxStatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS },
3647 { "wxStatusBar_SetFieldsCount", (PyCFunction) _wrap_wxStatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS },
3648 { "wxStatusBar_GetBorderY", (PyCFunction) _wrap_wxStatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS },
3649 { "wxStatusBar_GetBorderX", (PyCFunction) _wrap_wxStatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS },
3650 { "wxStatusBar_GetStatusText", (PyCFunction) _wrap_wxStatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS },
3651 { "wxStatusBar_GetFieldsCount", (PyCFunction) _wrap_wxStatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS },
3652 { "wxStatusBar_GetFieldRect", (PyCFunction) _wrap_wxStatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS },
3653 { "wxStatusBar_Create", (PyCFunction) _wrap_wxStatusBar_Create, METH_VARARGS | METH_KEYWORDS },
3654 { "new_wxPreStatusBar", (PyCFunction) _wrap_new_wxPreStatusBar, METH_VARARGS | METH_KEYWORDS },
3655 { "new_wxStatusBar", (PyCFunction) _wrap_new_wxStatusBar, METH_VARARGS | METH_KEYWORDS },
3656 { NULL, NULL }
3657 };
3658 #ifdef __cplusplus
3659 }
3660 #endif
3661 /*
3662 * This table is used by the pointer type-checker
3663 */
3664 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
3665 { "_signed_long","_long",0},
3666 { "_wxPrintQuality","_wxCoord",0},
3667 { "_wxPrintQuality","_int",0},
3668 { "_wxPrintQuality","_signed_int",0},
3669 { "_wxPrintQuality","_unsigned_int",0},
3670 { "_wxPrintQuality","_wxWindowID",0},
3671 { "_wxPrintQuality","_uint",0},
3672 { "_wxPrintQuality","_EBool",0},
3673 { "_wxPrintQuality","_size_t",0},
3674 { "_wxPrintQuality","_time_t",0},
3675 { "_byte","_unsigned_char",0},
3676 { "_long","_unsigned_long",0},
3677 { "_long","_signed_long",0},
3678 { "_size_t","_wxCoord",0},
3679 { "_size_t","_wxPrintQuality",0},
3680 { "_size_t","_time_t",0},
3681 { "_size_t","_unsigned_int",0},
3682 { "_size_t","_int",0},
3683 { "_size_t","_wxWindowID",0},
3684 { "_size_t","_uint",0},
3685 { "_uint","_wxCoord",0},
3686 { "_uint","_wxPrintQuality",0},
3687 { "_uint","_time_t",0},
3688 { "_uint","_size_t",0},
3689 { "_uint","_unsigned_int",0},
3690 { "_uint","_int",0},
3691 { "_uint","_wxWindowID",0},
3692 { "_wxChar","_char",0},
3693 { "_char","_wxChar",0},
3694 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3695 { "_EBool","_wxCoord",0},
3696 { "_EBool","_wxPrintQuality",0},
3697 { "_EBool","_signed_int",0},
3698 { "_EBool","_int",0},
3699 { "_EBool","_wxWindowID",0},
3700 { "_unsigned_long","_long",0},
3701 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3702 { "_signed_int","_wxCoord",0},
3703 { "_signed_int","_wxPrintQuality",0},
3704 { "_signed_int","_EBool",0},
3705 { "_signed_int","_wxWindowID",0},
3706 { "_signed_int","_int",0},
3707 { "_WXTYPE","_short",0},
3708 { "_WXTYPE","_signed_short",0},
3709 { "_WXTYPE","_unsigned_short",0},
3710 { "_unsigned_short","_WXTYPE",0},
3711 { "_unsigned_short","_short",0},
3712 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
3713 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject},
3714 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject},
3715 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
3716 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject},
3717 { "_signed_short","_WXTYPE",0},
3718 { "_signed_short","_short",0},
3719 { "_unsigned_char","_byte",0},
3720 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl},
3721 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl},
3722 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl},
3723 { "_unsigned_int","_wxCoord",0},
3724 { "_unsigned_int","_wxPrintQuality",0},
3725 { "_unsigned_int","_time_t",0},
3726 { "_unsigned_int","_size_t",0},
3727 { "_unsigned_int","_uint",0},
3728 { "_unsigned_int","_wxWindowID",0},
3729 { "_unsigned_int","_int",0},
3730 { "_short","_WXTYPE",0},
3731 { "_short","_unsigned_short",0},
3732 { "_short","_signed_short",0},
3733 { "_wxWindowID","_wxCoord",0},
3734 { "_wxWindowID","_wxPrintQuality",0},
3735 { "_wxWindowID","_time_t",0},
3736 { "_wxWindowID","_size_t",0},
3737 { "_wxWindowID","_EBool",0},
3738 { "_wxWindowID","_uint",0},
3739 { "_wxWindowID","_int",0},
3740 { "_wxWindowID","_signed_int",0},
3741 { "_wxWindowID","_unsigned_int",0},
3742 { "_int","_wxCoord",0},
3743 { "_int","_wxPrintQuality",0},
3744 { "_int","_time_t",0},
3745 { "_int","_size_t",0},
3746 { "_int","_EBool",0},
3747 { "_int","_uint",0},
3748 { "_int","_wxWindowID",0},
3749 { "_int","_unsigned_int",0},
3750 { "_int","_signed_int",0},
3751 { "_time_t","_wxCoord",0},
3752 { "_time_t","_wxPrintQuality",0},
3753 { "_time_t","_unsigned_int",0},
3754 { "_time_t","_int",0},
3755 { "_time_t","_wxWindowID",0},
3756 { "_time_t","_uint",0},
3757 { "_time_t","_size_t",0},
3758 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase},
3759 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase},
3760 { "_wxCoord","_int",0},
3761 { "_wxCoord","_signed_int",0},
3762 { "_wxCoord","_unsigned_int",0},
3763 { "_wxCoord","_wxWindowID",0},
3764 { "_wxCoord","_uint",0},
3765 { "_wxCoord","_EBool",0},
3766 { "_wxCoord","_size_t",0},
3767 { "_wxCoord","_time_t",0},
3768 { "_wxCoord","_wxPrintQuality",0},
3769 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler},
3770 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler},
3771 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler},
3772 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
3773 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow},
3774 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow},
3775 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow},
3776 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow},
3777 {0,0,0}};
3778
3779 static PyObject *SWIG_globals;
3780 #ifdef __cplusplus
3781 extern "C"
3782 #endif
3783 SWIGEXPORT(void) initstattoolc() {
3784 PyObject *m, *d;
3785 SWIG_globals = SWIG_newvarlink();
3786 m = Py_InitModule("stattoolc", stattoolcMethods);
3787 d = PyModule_GetDict(m);
3788 PyDict_SetItemString(d,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON));
3789 PyDict_SetItemString(d,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR));
3790 PyDict_SetItemString(d,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL));
3791 {
3792 int i;
3793 for (i = 0; _swig_mapping[i].n1; i++)
3794 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3795 }
3796 }