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