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