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