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