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