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