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