]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/stattool.cpp
Version 0.4.1 for wxGTK
[wxWidgets.git] / utils / wxPython / src / gtk / stattool.cpp
1 /*
2 * FILE : gtk/stattool.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 5)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a,b) __declspec(dllexport) a b
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a,b) a _export b
31 # else
32 # define SWIGEXPORT(a,b) a b
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a,b) a b
37 #endif
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
47 extern PyObject *SWIG_newvarlink(void);
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #define SWIG_init initstattoolc
53
54 #define SWIG_name "stattoolc"
55
56 #include "helpers.h"
57 #include <wx/toolbar.h>
58 #include <wx/tbarsmpl.h>
59
60 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
61 PyObject* o2;
62 PyObject* o3;
63 if (!target) {
64 target = o;
65 } else if (target == Py_None) {
66 Py_DECREF(Py_None);
67 target = o;
68 } else {
69 if (!PyList_Check(target)) {
70 o2 = target;
71 target = PyList_New(0);
72 PyList_Append(target, o2);
73 Py_XDECREF(o2);
74 }
75 PyList_Append(target,o);
76 Py_XDECREF(o);
77 }
78 return target;
79 }
80
81 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
82 PyObject* o2;
83 PyObject* o3;
84
85 if (!target) {
86 target = o;
87 } else if (target == Py_None) {
88 Py_DECREF(Py_None);
89 target = o;
90 } else {
91 if (!PyTuple_Check(target)) {
92 o2 = target;
93 target = PyTuple_New(1);
94 PyTuple_SetItem(target, 0, o2);
95 }
96 o3 = PyTuple_New(1);
97 PyTuple_SetItem(o3, 0, o);
98
99 o2 = target;
100 target = PySequence_Concat(o2, o3);
101 Py_DECREF(o2);
102 Py_DECREF(o3);
103 }
104 return target;
105 }
106
107
108 extern int* int_LIST_helper(PyObject* source);
109 extern long* long_LIST_helper(PyObject* source);
110 extern char** string_LIST_helper(PyObject* source);
111 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
112 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
113 extern wxString* wxString_LIST_helper(PyObject* source);
114 #ifdef __WXMSW__
115 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
116 #endif
117
118
119 static char* wxStringErrorMsg = "string type is required for parameter";
120 static void *SwigwxStatusBarTowxWindow(void *ptr) {
121 wxStatusBar *src;
122 wxWindow *dest;
123 src = (wxStatusBar *) ptr;
124 dest = (wxWindow *) src;
125 return (void *) dest;
126 }
127
128 static void *SwigwxStatusBarTowxEvtHandler(void *ptr) {
129 wxStatusBar *src;
130 wxEvtHandler *dest;
131 src = (wxStatusBar *) ptr;
132 dest = (wxEvtHandler *) src;
133 return (void *) dest;
134 }
135
136 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
137 static PyObject *_wrap_new_wxStatusBar(PyObject *self, PyObject *args) {
138 PyObject * _resultobj;
139 wxStatusBar * _result;
140 wxWindow * _arg0;
141 wxWindowID _arg1;
142 wxPoint * _arg2 = &wxPyDefaultPosition;
143 wxSize * _arg3 = &wxPyDefaultSize;
144 long _arg4 = wxST_SIZEGRIP;
145 char * _arg5 = "statusBar";
146 char * _argc0 = 0;
147 char * _argc2 = 0;
148 char * _argc3 = 0;
149 char _ptemp[128];
150
151 self = self;
152 if(!PyArg_ParseTuple(args,"si|ssls:new_wxStatusBar",&_argc0,&_arg1,&_argc2,&_argc3,&_arg4,&_arg5))
153 return NULL;
154 if (_argc0) {
155 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) {
156 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
157 return NULL;
158 }
159 }
160 if (_argc2) {
161 if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_wxPoint_p")) {
162 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxStatusBar. Expected _wxPoint_p.");
163 return NULL;
164 }
165 }
166 if (_argc3) {
167 if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxSize_p")) {
168 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxStatusBar. Expected _wxSize_p.");
169 return NULL;
170 }
171 }
172 _result = (wxStatusBar *)new_wxStatusBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
173 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
174 _resultobj = Py_BuildValue("s",_ptemp);
175 return _resultobj;
176 }
177
178 static wxRect * wxStatusBar_GetFieldRect(wxStatusBar *self,long item) {
179 wxRect* rect= new wxRect;
180 self->GetFieldRect(item, *rect);
181 return rect;
182 }
183 static PyObject *_wrap_wxStatusBar_GetFieldRect(PyObject *self, PyObject *args) {
184 PyObject * _resultobj;
185 wxRect * _result;
186 wxStatusBar * _arg0;
187 long _arg1;
188 char * _argc0 = 0;
189 char _ptemp[128];
190
191 self = self;
192 if(!PyArg_ParseTuple(args,"sl:wxStatusBar_GetFieldRect",&_argc0,&_arg1))
193 return NULL;
194 if (_argc0) {
195 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxStatusBar_p")) {
196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
197 return NULL;
198 }
199 }
200 _result = (wxRect *)wxStatusBar_GetFieldRect(_arg0,_arg1);
201 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
202 _resultobj = Py_BuildValue("s",_ptemp);
203 return _resultobj;
204 }
205
206 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
207 static PyObject *_wrap_wxStatusBar_GetFieldsCount(PyObject *self, PyObject *args) {
208 PyObject * _resultobj;
209 int _result;
210 wxStatusBar * _arg0;
211 char * _argc0 = 0;
212
213 self = self;
214 if(!PyArg_ParseTuple(args,"s:wxStatusBar_GetFieldsCount",&_argc0))
215 return NULL;
216 if (_argc0) {
217 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxStatusBar_p")) {
218 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
219 return NULL;
220 }
221 }
222 _result = (int )wxStatusBar_GetFieldsCount(_arg0);
223 _resultobj = Py_BuildValue("i",_result);
224 return _resultobj;
225 }
226
227 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
228 static PyObject *_wrap_wxStatusBar_GetStatusText(PyObject *self, PyObject *args) {
229 PyObject * _resultobj;
230 wxString * _result;
231 wxStatusBar * _arg0;
232 int _arg1 = 0;
233 char * _argc0 = 0;
234
235 self = self;
236 if(!PyArg_ParseTuple(args,"s|i:wxStatusBar_GetStatusText",&_argc0,&_arg1))
237 return NULL;
238 if (_argc0) {
239 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxStatusBar_p")) {
240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
241 return NULL;
242 }
243 }
244 _result = new wxString (wxStatusBar_GetStatusText(_arg0,_arg1));
245 {
246 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
247 }
248 {
249 delete _result;
250 }
251 return _resultobj;
252 }
253
254 #define wxStatusBar_DrawField(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawField(_swigarg0,_swigarg1))
255 static PyObject *_wrap_wxStatusBar_DrawField(PyObject *self, PyObject *args) {
256 PyObject * _resultobj;
257 wxStatusBar * _arg0;
258 wxDC * _arg1;
259 int _arg2;
260 char * _argc0 = 0;
261 char * _argc1 = 0;
262
263 self = self;
264 if(!PyArg_ParseTuple(args,"ssi:wxStatusBar_DrawField",&_argc0,&_argc1,&_arg2))
265 return NULL;
266 if (_argc0) {
267 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxStatusBar_p")) {
268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_DrawField. Expected _wxStatusBar_p.");
269 return NULL;
270 }
271 }
272 if (_argc1) {
273 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxDC_p")) {
274 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_DrawField. Expected _wxDC_p.");
275 return NULL;
276 }
277 }
278 wxStatusBar_DrawField(_arg0,*_arg1,_arg2);
279 Py_INCREF(Py_None);
280 _resultobj = Py_None;
281 return _resultobj;
282 }
283
284 #define wxStatusBar_DrawFieldText(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawFieldText(_swigarg0,_swigarg1))
285 static PyObject *_wrap_wxStatusBar_DrawFieldText(PyObject *self, PyObject *args) {
286 PyObject * _resultobj;
287 wxStatusBar * _arg0;
288 wxDC * _arg1;
289 int _arg2;
290 char * _argc0 = 0;
291 char * _argc1 = 0;
292
293 self = self;
294 if(!PyArg_ParseTuple(args,"ssi:wxStatusBar_DrawFieldText",&_argc0,&_argc1,&_arg2))
295 return NULL;
296 if (_argc0) {
297 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxStatusBar_p")) {
298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_DrawFieldText. Expected _wxStatusBar_p.");
299 return NULL;
300 }
301 }
302 if (_argc1) {
303 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxDC_p")) {
304 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_DrawFieldText. Expected _wxDC_p.");
305 return NULL;
306 }
307 }
308 wxStatusBar_DrawFieldText(_arg0,*_arg1,_arg2);
309 Py_INCREF(Py_None);
310 _resultobj = Py_None;
311 return _resultobj;
312 }
313
314 #define wxStatusBar_InitColours(_swigobj) (_swigobj->InitColours())
315 static PyObject *_wrap_wxStatusBar_InitColours(PyObject *self, PyObject *args) {
316 PyObject * _resultobj;
317 wxStatusBar * _arg0;
318 char * _argc0 = 0;
319
320 self = self;
321 if(!PyArg_ParseTuple(args,"s:wxStatusBar_InitColours",&_argc0))
322 return NULL;
323 if (_argc0) {
324 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxStatusBar_p")) {
325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_InitColours. Expected _wxStatusBar_p.");
326 return NULL;
327 }
328 }
329 wxStatusBar_InitColours(_arg0);
330 Py_INCREF(Py_None);
331 _resultobj = Py_None;
332 return _resultobj;
333 }
334
335 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
336 static PyObject *_wrap_wxStatusBar_SetFieldsCount(PyObject *self, PyObject *args) {
337 PyObject * _resultobj;
338 wxStatusBar * _arg0;
339 int _arg1 = 1;
340 char * _argc0 = 0;
341
342 self = self;
343 if(!PyArg_ParseTuple(args,"s|i:wxStatusBar_SetFieldsCount",&_argc0,&_arg1))
344 return NULL;
345 if (_argc0) {
346 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxStatusBar_p")) {
347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
348 return NULL;
349 }
350 }
351 wxStatusBar_SetFieldsCount(_arg0,_arg1);
352 Py_INCREF(Py_None);
353 _resultobj = Py_None;
354 return _resultobj;
355 }
356
357 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
358 static PyObject *_wrap_wxStatusBar_SetStatusText(PyObject *self, PyObject *args) {
359 PyObject * _resultobj;
360 wxStatusBar * _arg0;
361 wxString * _arg1;
362 int _arg2 = 0;
363 char * _argc0 = 0;
364 PyObject * _obj1 = 0;
365
366 self = self;
367 if(!PyArg_ParseTuple(args,"sO|i:wxStatusBar_SetStatusText",&_argc0,&_obj1,&_arg2))
368 return NULL;
369 if (_argc0) {
370 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxStatusBar_p")) {
371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
372 return NULL;
373 }
374 }
375 {
376 if (!PyString_Check(_obj1)) {
377 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
378 return NULL;
379 }
380 _arg1 = new wxString(PyString_AsString(_obj1));
381 }
382 wxStatusBar_SetStatusText(_arg0,*_arg1,_arg2);
383 Py_INCREF(Py_None);
384 _resultobj = Py_None;
385 {
386 if (_obj1)
387 delete _arg1;
388 }
389 return _resultobj;
390 }
391
392 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
393 static PyObject *_wrap_wxStatusBar_SetStatusWidths(PyObject *self, PyObject *args) {
394 PyObject * _resultobj;
395 wxStatusBar * _arg0;
396 int _arg1;
397 int * _arg2;
398 char * _argc0 = 0;
399 PyObject * _obj2 = 0;
400
401 self = self;
402 if(!PyArg_ParseTuple(args,"sO:wxStatusBar_SetStatusWidths",&_argc0,&_obj2))
403 return NULL;
404 if (_argc0) {
405 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxStatusBar_p")) {
406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
407 return NULL;
408 }
409 }
410 if (_obj2)
411 {
412 _arg2 = int_LIST_helper(_obj2);
413 if (_arg2 == NULL) {
414 return NULL;
415 }
416 }
417 {
418 _arg1 = PyList_Size(_obj2);
419 }
420 wxStatusBar_SetStatusWidths(_arg0,_arg1,_arg2);
421 Py_INCREF(Py_None);
422 _resultobj = Py_None;
423 {
424 delete [] _arg2;
425 }
426 return _resultobj;
427 }
428
429 #define new_wxToolBarTool() (new wxToolBarTool())
430 static PyObject *_wrap_new_wxToolBarTool(PyObject *self, PyObject *args) {
431 PyObject * _resultobj;
432 wxToolBarTool * _result;
433 char _ptemp[128];
434
435 self = self;
436 if(!PyArg_ParseTuple(args,":new_wxToolBarTool"))
437 return NULL;
438 _result = (wxToolBarTool *)new_wxToolBarTool();
439 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarTool_p");
440 _resultobj = Py_BuildValue("s",_ptemp);
441 return _resultobj;
442 }
443
444 #define delete_wxToolBarTool(_swigobj) (delete _swigobj)
445 static PyObject *_wrap_delete_wxToolBarTool(PyObject *self, PyObject *args) {
446 PyObject * _resultobj;
447 wxToolBarTool * _arg0;
448 char * _argc0 = 0;
449
450 self = self;
451 if(!PyArg_ParseTuple(args,"s:delete_wxToolBarTool",&_argc0))
452 return NULL;
453 if (_argc0) {
454 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxToolBarTool. Expected _wxToolBarTool_p.");
456 return NULL;
457 }
458 }
459 delete_wxToolBarTool(_arg0);
460 Py_INCREF(Py_None);
461 _resultobj = Py_None;
462 return _resultobj;
463 }
464
465 #define wxToolBarTool_m_toolStyle_get(_swigobj) ((int ) _swigobj->m_toolStyle)
466 static PyObject *_wrap_wxToolBarTool_m_toolStyle_get(PyObject *self, PyObject *args) {
467 PyObject * _resultobj;
468 int _result;
469 wxToolBarTool * _arg0;
470 char * _argc0 = 0;
471
472 self = self;
473 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_toolStyle_get",&_argc0))
474 return NULL;
475 if (_argc0) {
476 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_toolStyle_get. Expected _wxToolBarTool_p.");
478 return NULL;
479 }
480 }
481 _result = (int )wxToolBarTool_m_toolStyle_get(_arg0);
482 _resultobj = Py_BuildValue("i",_result);
483 return _resultobj;
484 }
485
486 #define wxToolBarTool_m_clientData_get(_swigobj) ((wxObject *) _swigobj->m_clientData)
487 static PyObject *_wrap_wxToolBarTool_m_clientData_get(PyObject *self, PyObject *args) {
488 PyObject * _resultobj;
489 wxObject * _result;
490 wxToolBarTool * _arg0;
491 char * _argc0 = 0;
492 char _ptemp[128];
493
494 self = self;
495 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_clientData_get",&_argc0))
496 return NULL;
497 if (_argc0) {
498 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_clientData_get. Expected _wxToolBarTool_p.");
500 return NULL;
501 }
502 }
503 _result = (wxObject *)wxToolBarTool_m_clientData_get(_arg0);
504 SWIG_MakePtr(_ptemp, (char *) _result,"_wxObject_p");
505 _resultobj = Py_BuildValue("s",_ptemp);
506 return _resultobj;
507 }
508
509 #define wxToolBarTool_m_index_get(_swigobj) ((int ) _swigobj->m_index)
510 static PyObject *_wrap_wxToolBarTool_m_index_get(PyObject *self, PyObject *args) {
511 PyObject * _resultobj;
512 int _result;
513 wxToolBarTool * _arg0;
514 char * _argc0 = 0;
515
516 self = self;
517 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_index_get",&_argc0))
518 return NULL;
519 if (_argc0) {
520 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_index_get. Expected _wxToolBarTool_p.");
522 return NULL;
523 }
524 }
525 _result = (int )wxToolBarTool_m_index_get(_arg0);
526 _resultobj = Py_BuildValue("i",_result);
527 return _resultobj;
528 }
529
530 #define wxToolBarTool_m_toggleState_get(_swigobj) ((bool ) _swigobj->m_toggleState)
531 static PyObject *_wrap_wxToolBarTool_m_toggleState_get(PyObject *self, PyObject *args) {
532 PyObject * _resultobj;
533 bool _result;
534 wxToolBarTool * _arg0;
535 char * _argc0 = 0;
536
537 self = self;
538 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_toggleState_get",&_argc0))
539 return NULL;
540 if (_argc0) {
541 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_toggleState_get. Expected _wxToolBarTool_p.");
543 return NULL;
544 }
545 }
546 _result = (bool )wxToolBarTool_m_toggleState_get(_arg0);
547 _resultobj = Py_BuildValue("i",_result);
548 return _resultobj;
549 }
550
551 #define wxToolBarTool_m_isToggle_get(_swigobj) ((bool ) _swigobj->m_isToggle)
552 static PyObject *_wrap_wxToolBarTool_m_isToggle_get(PyObject *self, PyObject *args) {
553 PyObject * _resultobj;
554 bool _result;
555 wxToolBarTool * _arg0;
556 char * _argc0 = 0;
557
558 self = self;
559 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_isToggle_get",&_argc0))
560 return NULL;
561 if (_argc0) {
562 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_isToggle_get. Expected _wxToolBarTool_p.");
564 return NULL;
565 }
566 }
567 _result = (bool )wxToolBarTool_m_isToggle_get(_arg0);
568 _resultobj = Py_BuildValue("i",_result);
569 return _resultobj;
570 }
571
572 #define wxToolBarTool_m_deleteSecondBitmap_get(_swigobj) ((bool ) _swigobj->m_deleteSecondBitmap)
573 static PyObject *_wrap_wxToolBarTool_m_deleteSecondBitmap_get(PyObject *self, PyObject *args) {
574 PyObject * _resultobj;
575 bool _result;
576 wxToolBarTool * _arg0;
577 char * _argc0 = 0;
578
579 self = self;
580 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_deleteSecondBitmap_get",&_argc0))
581 return NULL;
582 if (_argc0) {
583 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_deleteSecondBitmap_get. Expected _wxToolBarTool_p.");
585 return NULL;
586 }
587 }
588 _result = (bool )wxToolBarTool_m_deleteSecondBitmap_get(_arg0);
589 _resultobj = Py_BuildValue("i",_result);
590 return _resultobj;
591 }
592
593 #define wxToolBarTool_m_enabled_get(_swigobj) ((bool ) _swigobj->m_enabled)
594 static PyObject *_wrap_wxToolBarTool_m_enabled_get(PyObject *self, PyObject *args) {
595 PyObject * _resultobj;
596 bool _result;
597 wxToolBarTool * _arg0;
598 char * _argc0 = 0;
599
600 self = self;
601 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_enabled_get",&_argc0))
602 return NULL;
603 if (_argc0) {
604 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_enabled_get. Expected _wxToolBarTool_p.");
606 return NULL;
607 }
608 }
609 _result = (bool )wxToolBarTool_m_enabled_get(_arg0);
610 _resultobj = Py_BuildValue("i",_result);
611 return _resultobj;
612 }
613
614 #define wxToolBarTool_m_bitmap1_get(_swigobj) (&_swigobj->m_bitmap1)
615 static PyObject *_wrap_wxToolBarTool_m_bitmap1_get(PyObject *self, PyObject *args) {
616 PyObject * _resultobj;
617 wxBitmap * _result;
618 wxToolBarTool * _arg0;
619 char * _argc0 = 0;
620 char _ptemp[128];
621
622 self = self;
623 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_bitmap1_get",&_argc0))
624 return NULL;
625 if (_argc0) {
626 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_bitmap1_get. Expected _wxToolBarTool_p.");
628 return NULL;
629 }
630 }
631 _result = (wxBitmap *)wxToolBarTool_m_bitmap1_get(_arg0);
632 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
633 _resultobj = Py_BuildValue("s",_ptemp);
634 return _resultobj;
635 }
636
637 #define wxToolBarTool_m_bitmap2_get(_swigobj) (&_swigobj->m_bitmap2)
638 static PyObject *_wrap_wxToolBarTool_m_bitmap2_get(PyObject *self, PyObject *args) {
639 PyObject * _resultobj;
640 wxBitmap * _result;
641 wxToolBarTool * _arg0;
642 char * _argc0 = 0;
643 char _ptemp[128];
644
645 self = self;
646 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_bitmap2_get",&_argc0))
647 return NULL;
648 if (_argc0) {
649 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_bitmap2_get. Expected _wxToolBarTool_p.");
651 return NULL;
652 }
653 }
654 _result = (wxBitmap *)wxToolBarTool_m_bitmap2_get(_arg0);
655 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
656 _resultobj = Py_BuildValue("s",_ptemp);
657 return _resultobj;
658 }
659
660 #define wxToolBarTool_m_isMenuCommand_get(_swigobj) ((bool ) _swigobj->m_isMenuCommand)
661 static PyObject *_wrap_wxToolBarTool_m_isMenuCommand_get(PyObject *self, PyObject *args) {
662 PyObject * _resultobj;
663 bool _result;
664 wxToolBarTool * _arg0;
665 char * _argc0 = 0;
666
667 self = self;
668 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_isMenuCommand_get",&_argc0))
669 return NULL;
670 if (_argc0) {
671 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
672 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_isMenuCommand_get. Expected _wxToolBarTool_p.");
673 return NULL;
674 }
675 }
676 _result = (bool )wxToolBarTool_m_isMenuCommand_get(_arg0);
677 _resultobj = Py_BuildValue("i",_result);
678 return _resultobj;
679 }
680
681 #define wxToolBarTool_m_shortHelpString_get(_swigobj) (&_swigobj->m_shortHelpString)
682 static PyObject *_wrap_wxToolBarTool_m_shortHelpString_get(PyObject *self, PyObject *args) {
683 PyObject * _resultobj;
684 wxString * _result;
685 wxToolBarTool * _arg0;
686 char * _argc0 = 0;
687
688 self = self;
689 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_shortHelpString_get",&_argc0))
690 return NULL;
691 if (_argc0) {
692 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_shortHelpString_get. Expected _wxToolBarTool_p.");
694 return NULL;
695 }
696 }
697 _result = (wxString *)wxToolBarTool_m_shortHelpString_get(_arg0);
698 {
699 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
700 }
701 return _resultobj;
702 }
703
704 #define wxToolBarTool_m_longHelpString_get(_swigobj) (&_swigobj->m_longHelpString)
705 static PyObject *_wrap_wxToolBarTool_m_longHelpString_get(PyObject *self, PyObject *args) {
706 PyObject * _resultobj;
707 wxString * _result;
708 wxToolBarTool * _arg0;
709 char * _argc0 = 0;
710
711 self = self;
712 if(!PyArg_ParseTuple(args,"s:wxToolBarTool_m_longHelpString_get",&_argc0))
713 return NULL;
714 if (_argc0) {
715 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBarTool_p")) {
716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarTool_m_longHelpString_get. Expected _wxToolBarTool_p.");
717 return NULL;
718 }
719 }
720 _result = (wxString *)wxToolBarTool_m_longHelpString_get(_arg0);
721 {
722 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
723 }
724 return _resultobj;
725 }
726
727 static void *SwigwxToolBarTowxControl(void *ptr) {
728 wxToolBar *src;
729 wxControl *dest;
730 src = (wxToolBar *) ptr;
731 dest = (wxControl *) src;
732 return (void *) dest;
733 }
734
735 static void *SwigwxToolBarTowxWindow(void *ptr) {
736 wxToolBar *src;
737 wxWindow *dest;
738 src = (wxToolBar *) ptr;
739 dest = (wxWindow *) src;
740 return (void *) dest;
741 }
742
743 static void *SwigwxToolBarTowxEvtHandler(void *ptr) {
744 wxToolBar *src;
745 wxEvtHandler *dest;
746 src = (wxToolBar *) ptr;
747 dest = (wxEvtHandler *) src;
748 return (void *) dest;
749 }
750
751 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
752 static PyObject *_wrap_new_wxToolBar(PyObject *self, PyObject *args) {
753 PyObject * _resultobj;
754 wxToolBar * _result;
755 wxWindow * _arg0;
756 wxWindowID _arg1;
757 wxPoint * _arg2 = &wxPyDefaultPosition;
758 wxSize * _arg3 = &wxPyDefaultSize;
759 long _arg4 = (wxTB_HORIZONTAL)|(wxNO_BORDER);
760 char * _arg5 = "toolBar";
761 char * _argc0 = 0;
762 char * _argc2 = 0;
763 char * _argc3 = 0;
764 char _ptemp[128];
765
766 self = self;
767 if(!PyArg_ParseTuple(args,"si|ssls:new_wxToolBar",&_argc0,&_arg1,&_argc2,&_argc3,&_arg4,&_arg5))
768 return NULL;
769 if (_argc0) {
770 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) {
771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
772 return NULL;
773 }
774 }
775 if (_argc2) {
776 if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_wxPoint_p")) {
777 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxToolBar. Expected _wxPoint_p.");
778 return NULL;
779 }
780 }
781 if (_argc3) {
782 if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxSize_p")) {
783 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxToolBar. Expected _wxSize_p.");
784 return NULL;
785 }
786 }
787 _result = (wxToolBar *)new_wxToolBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
788 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
789 _resultobj = Py_BuildValue("s",_ptemp);
790 return _resultobj;
791 }
792
793 #define wxToolBar_AddSeparator(_swigobj) (_swigobj->AddSeparator())
794 static PyObject *_wrap_wxToolBar_AddSeparator(PyObject *self, PyObject *args) {
795 PyObject * _resultobj;
796 wxToolBar * _arg0;
797 char * _argc0 = 0;
798
799 self = self;
800 if(!PyArg_ParseTuple(args,"s:wxToolBar_AddSeparator",&_argc0))
801 return NULL;
802 if (_argc0) {
803 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBar_p")) {
804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_AddSeparator. Expected _wxToolBar_p.");
805 return NULL;
806 }
807 }
808 wxToolBar_AddSeparator(_arg0);
809 Py_INCREF(Py_None);
810 _resultobj = Py_None;
811 return _resultobj;
812 }
813
814 static wxToolBarTool * wxToolBar_AddTool(wxToolBar *self,int toolIndex,const wxBitmap & bitmap1,const wxBitmap & bitmap2,int isToggle,long xPos,long yPos,const wxString & shortHelpString,const wxString & longHelpString) {
815 return self->AddTool(toolIndex, bitmap1, bitmap2,
816 isToggle, xPos, yPos, NULL,
817 shortHelpString, longHelpString);
818 }
819 static PyObject *_wrap_wxToolBar_AddTool(PyObject *self, PyObject *args) {
820 PyObject * _resultobj;
821 wxToolBarTool * _result;
822 wxToolBar * _arg0;
823 int _arg1;
824 wxBitmap * _arg2;
825 wxBitmap * _arg3 = &wxNullBitmap;
826 int _arg4 = (0);
827 long _arg5 = -1;
828 long _arg6 = -1;
829 wxString * _arg7 = &wxPyEmptyStr;
830 wxString * _arg8 = &wxPyEmptyStr;
831 char * _argc0 = 0;
832 char * _argc2 = 0;
833 char * _argc3 = 0;
834 PyObject * _obj7 = 0;
835 PyObject * _obj8 = 0;
836 char _ptemp[128];
837
838 self = self;
839 if(!PyArg_ParseTuple(args,"sis|sillOO:wxToolBar_AddTool",&_argc0,&_arg1,&_argc2,&_argc3,&_arg4,&_arg5,&_arg6,&_obj7,&_obj8))
840 return NULL;
841 if (_argc0) {
842 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBar_p")) {
843 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_AddTool. Expected _wxToolBar_p.");
844 return NULL;
845 }
846 }
847 if (_argc2) {
848 if (SWIG_GetPtr(_argc2,(void **) &_arg2,"_wxBitmap_p")) {
849 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBar_AddTool. Expected _wxBitmap_p.");
850 return NULL;
851 }
852 }
853 if (_argc3) {
854 if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxBitmap_p")) {
855 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBar_AddTool. Expected _wxBitmap_p.");
856 return NULL;
857 }
858 }
859 if (_obj7)
860 {
861 if (!PyString_Check(_obj7)) {
862 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
863 return NULL;
864 }
865 _arg7 = new wxString(PyString_AsString(_obj7));
866 }
867 if (_obj8)
868 {
869 if (!PyString_Check(_obj8)) {
870 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
871 return NULL;
872 }
873 _arg8 = new wxString(PyString_AsString(_obj8));
874 }
875 _result = (wxToolBarTool *)wxToolBar_AddTool(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7,*_arg8);
876 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarTool_p");
877 _resultobj = Py_BuildValue("s",_ptemp);
878 {
879 if (_obj7)
880 delete _arg7;
881 }
882 {
883 if (_obj8)
884 delete _arg8;
885 }
886 return _resultobj;
887 }
888
889 #define wxToolBar_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
890 static PyObject *_wrap_wxToolBar_EnableTool(PyObject *self, PyObject *args) {
891 PyObject * _resultobj;
892 wxToolBar * _arg0;
893 int _arg1;
894 bool _arg2;
895 char * _argc0 = 0;
896 int tempbool2;
897
898 self = self;
899 if(!PyArg_ParseTuple(args,"sii:wxToolBar_EnableTool",&_argc0,&_arg1,&tempbool2))
900 return NULL;
901 if (_argc0) {
902 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBar_p")) {
903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_EnableTool. Expected _wxToolBar_p.");
904 return NULL;
905 }
906 }
907 _arg2 = (bool ) tempbool2;
908 wxToolBar_EnableTool(_arg0,_arg1,_arg2);
909 Py_INCREF(Py_None);
910 _resultobj = Py_None;
911 return _resultobj;
912 }
913
914 #define wxToolBar_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
915 static PyObject *_wrap_wxToolBar_GetToolEnabled(PyObject *self, PyObject *args) {
916 PyObject * _resultobj;
917 bool _result;
918 wxToolBar * _arg0;
919 int _arg1;
920 char * _argc0 = 0;
921
922 self = self;
923 if(!PyArg_ParseTuple(args,"si:wxToolBar_GetToolEnabled",&_argc0,&_arg1))
924 return NULL;
925 if (_argc0) {
926 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBar_p")) {
927 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolEnabled. Expected _wxToolBar_p.");
928 return NULL;
929 }
930 }
931 _result = (bool )wxToolBar_GetToolEnabled(_arg0,_arg1);
932 _resultobj = Py_BuildValue("i",_result);
933 return _resultobj;
934 }
935
936 #define wxToolBar_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
937 static PyObject *_wrap_wxToolBar_GetToolState(PyObject *self, PyObject *args) {
938 PyObject * _resultobj;
939 bool _result;
940 wxToolBar * _arg0;
941 int _arg1;
942 char * _argc0 = 0;
943
944 self = self;
945 if(!PyArg_ParseTuple(args,"si:wxToolBar_GetToolState",&_argc0,&_arg1))
946 return NULL;
947 if (_argc0) {
948 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBar_p")) {
949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_GetToolState. Expected _wxToolBar_p.");
950 return NULL;
951 }
952 }
953 _result = (bool )wxToolBar_GetToolState(_arg0,_arg1);
954 _resultobj = Py_BuildValue("i",_result);
955 return _resultobj;
956 }
957
958 #define wxToolBar_Realize(_swigobj) (_swigobj->Realize())
959 static PyObject *_wrap_wxToolBar_Realize(PyObject *self, PyObject *args) {
960 PyObject * _resultobj;
961 wxToolBar * _arg0;
962 char * _argc0 = 0;
963
964 self = self;
965 if(!PyArg_ParseTuple(args,"s:wxToolBar_Realize",&_argc0))
966 return NULL;
967 if (_argc0) {
968 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBar_p")) {
969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_Realize. Expected _wxToolBar_p.");
970 return NULL;
971 }
972 }
973 wxToolBar_Realize(_arg0);
974 Py_INCREF(Py_None);
975 _resultobj = Py_None;
976 return _resultobj;
977 }
978
979 #define wxToolBar_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
980 static PyObject *_wrap_wxToolBar_SetMargins(PyObject *self, PyObject *args) {
981 PyObject * _resultobj;
982 wxToolBar * _arg0;
983 wxSize * _arg1;
984 char * _argc0 = 0;
985 char * _argc1 = 0;
986
987 self = self;
988 if(!PyArg_ParseTuple(args,"ss:wxToolBar_SetMargins",&_argc0,&_argc1))
989 return NULL;
990 if (_argc0) {
991 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBar_p")) {
992 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetMargins. Expected _wxToolBar_p.");
993 return NULL;
994 }
995 }
996 if (_argc1) {
997 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxSize_p")) {
998 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBar_SetMargins. Expected _wxSize_p.");
999 return NULL;
1000 }
1001 }
1002 wxToolBar_SetMargins(_arg0,*_arg1);
1003 Py_INCREF(Py_None);
1004 _resultobj = Py_None;
1005 return _resultobj;
1006 }
1007
1008 #define wxToolBar_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
1009 static PyObject *_wrap_wxToolBar_SetToolPacking(PyObject *self, PyObject *args) {
1010 PyObject * _resultobj;
1011 wxToolBar * _arg0;
1012 int _arg1;
1013 char * _argc0 = 0;
1014
1015 self = self;
1016 if(!PyArg_ParseTuple(args,"si:wxToolBar_SetToolPacking",&_argc0,&_arg1))
1017 return NULL;
1018 if (_argc0) {
1019 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBar_p")) {
1020 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolPacking. Expected _wxToolBar_p.");
1021 return NULL;
1022 }
1023 }
1024 wxToolBar_SetToolPacking(_arg0,_arg1);
1025 Py_INCREF(Py_None);
1026 _resultobj = Py_None;
1027 return _resultobj;
1028 }
1029
1030 #define wxToolBar_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
1031 static PyObject *_wrap_wxToolBar_SetToolSeparation(PyObject *self, PyObject *args) {
1032 PyObject * _resultobj;
1033 wxToolBar * _arg0;
1034 int _arg1;
1035 char * _argc0 = 0;
1036
1037 self = self;
1038 if(!PyArg_ParseTuple(args,"si:wxToolBar_SetToolSeparation",&_argc0,&_arg1))
1039 return NULL;
1040 if (_argc0) {
1041 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBar_p")) {
1042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_SetToolSeparation. Expected _wxToolBar_p.");
1043 return NULL;
1044 }
1045 }
1046 wxToolBar_SetToolSeparation(_arg0,_arg1);
1047 Py_INCREF(Py_None);
1048 _resultobj = Py_None;
1049 return _resultobj;
1050 }
1051
1052 #define wxToolBar_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
1053 static PyObject *_wrap_wxToolBar_ToggleTool(PyObject *self, PyObject *args) {
1054 PyObject * _resultobj;
1055 wxToolBar * _arg0;
1056 int _arg1;
1057 bool _arg2;
1058 char * _argc0 = 0;
1059 int tempbool2;
1060
1061 self = self;
1062 if(!PyArg_ParseTuple(args,"sii:wxToolBar_ToggleTool",&_argc0,&_arg1,&tempbool2))
1063 return NULL;
1064 if (_argc0) {
1065 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxToolBar_p")) {
1066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_ToggleTool. Expected _wxToolBar_p.");
1067 return NULL;
1068 }
1069 }
1070 _arg2 = (bool ) tempbool2;
1071 wxToolBar_ToggleTool(_arg0,_arg1,_arg2);
1072 Py_INCREF(Py_None);
1073 _resultobj = Py_None;
1074 return _resultobj;
1075 }
1076
1077 static PyMethodDef stattoolcMethods[] = {
1078 { "wxToolBar_ToggleTool", _wrap_wxToolBar_ToggleTool, 1 },
1079 { "wxToolBar_SetToolSeparation", _wrap_wxToolBar_SetToolSeparation, 1 },
1080 { "wxToolBar_SetToolPacking", _wrap_wxToolBar_SetToolPacking, 1 },
1081 { "wxToolBar_SetMargins", _wrap_wxToolBar_SetMargins, 1 },
1082 { "wxToolBar_Realize", _wrap_wxToolBar_Realize, 1 },
1083 { "wxToolBar_GetToolState", _wrap_wxToolBar_GetToolState, 1 },
1084 { "wxToolBar_GetToolEnabled", _wrap_wxToolBar_GetToolEnabled, 1 },
1085 { "wxToolBar_EnableTool", _wrap_wxToolBar_EnableTool, 1 },
1086 { "wxToolBar_AddTool", _wrap_wxToolBar_AddTool, 1 },
1087 { "wxToolBar_AddSeparator", _wrap_wxToolBar_AddSeparator, 1 },
1088 { "new_wxToolBar", _wrap_new_wxToolBar, 1 },
1089 { "wxToolBarTool_m_longHelpString_get", _wrap_wxToolBarTool_m_longHelpString_get, 1 },
1090 { "wxToolBarTool_m_shortHelpString_get", _wrap_wxToolBarTool_m_shortHelpString_get, 1 },
1091 { "wxToolBarTool_m_isMenuCommand_get", _wrap_wxToolBarTool_m_isMenuCommand_get, 1 },
1092 { "wxToolBarTool_m_bitmap2_get", _wrap_wxToolBarTool_m_bitmap2_get, 1 },
1093 { "wxToolBarTool_m_bitmap1_get", _wrap_wxToolBarTool_m_bitmap1_get, 1 },
1094 { "wxToolBarTool_m_enabled_get", _wrap_wxToolBarTool_m_enabled_get, 1 },
1095 { "wxToolBarTool_m_deleteSecondBitmap_get", _wrap_wxToolBarTool_m_deleteSecondBitmap_get, 1 },
1096 { "wxToolBarTool_m_isToggle_get", _wrap_wxToolBarTool_m_isToggle_get, 1 },
1097 { "wxToolBarTool_m_toggleState_get", _wrap_wxToolBarTool_m_toggleState_get, 1 },
1098 { "wxToolBarTool_m_index_get", _wrap_wxToolBarTool_m_index_get, 1 },
1099 { "wxToolBarTool_m_clientData_get", _wrap_wxToolBarTool_m_clientData_get, 1 },
1100 { "wxToolBarTool_m_toolStyle_get", _wrap_wxToolBarTool_m_toolStyle_get, 1 },
1101 { "delete_wxToolBarTool", _wrap_delete_wxToolBarTool, 1 },
1102 { "new_wxToolBarTool", _wrap_new_wxToolBarTool, 1 },
1103 { "wxStatusBar_SetStatusWidths", _wrap_wxStatusBar_SetStatusWidths, 1 },
1104 { "wxStatusBar_SetStatusText", _wrap_wxStatusBar_SetStatusText, 1 },
1105 { "wxStatusBar_SetFieldsCount", _wrap_wxStatusBar_SetFieldsCount, 1 },
1106 { "wxStatusBar_InitColours", _wrap_wxStatusBar_InitColours, 1 },
1107 { "wxStatusBar_DrawFieldText", _wrap_wxStatusBar_DrawFieldText, 1 },
1108 { "wxStatusBar_DrawField", _wrap_wxStatusBar_DrawField, 1 },
1109 { "wxStatusBar_GetStatusText", _wrap_wxStatusBar_GetStatusText, 1 },
1110 { "wxStatusBar_GetFieldsCount", _wrap_wxStatusBar_GetFieldsCount, 1 },
1111 { "wxStatusBar_GetFieldRect", _wrap_wxStatusBar_GetFieldRect, 1 },
1112 { "new_wxStatusBar", _wrap_new_wxStatusBar, 1 },
1113 { NULL, NULL }
1114 };
1115 static PyObject *SWIG_globals;
1116 #ifdef __cplusplus
1117 extern "C"
1118 #endif
1119 SWIGEXPORT(void,initstattoolc)() {
1120 PyObject *m, *d;
1121 SWIG_globals = SWIG_newvarlink();
1122 m = Py_InitModule("stattoolc", stattoolcMethods);
1123 d = PyModule_GetDict(m);
1124 /*
1125 * These are the pointer type-equivalency mappings.
1126 * (Used by the SWIG pointer type-checker).
1127 */
1128 SWIG_RegisterMapping("_wxEvent","_class_wxEvent",0);
1129 SWIG_RegisterMapping("_class_wxActivateEvent","_wxActivateEvent",0);
1130 SWIG_RegisterMapping("_signed_long","_long",0);
1131 SWIG_RegisterMapping("_wxMenuEvent","_class_wxMenuEvent",0);
1132 SWIG_RegisterMapping("_class_wxMenuBar","_wxMenuBar",0);
1133 SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler);
1134 SWIG_RegisterMapping("_class_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler);
1135 SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler);
1136 SWIG_RegisterMapping("_class_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler);
1137 SWIG_RegisterMapping("_class_wxEvtHandler","_wxEvtHandler",0);
1138 SWIG_RegisterMapping("_wxPaintEvent","_class_wxPaintEvent",0);
1139 SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0);
1140 SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0);
1141 SWIG_RegisterMapping("_wxMask","_class_wxMask",0);
1142 SWIG_RegisterMapping("_wxPyMenu","_class_wxPyMenu",0);
1143 SWIG_RegisterMapping("_wxPen","_class_wxPen",0);
1144 SWIG_RegisterMapping("_wxUpdateUIEvent","_class_wxUpdateUIEvent",0);
1145 SWIG_RegisterMapping("_byte","_unsigned_char",0);
1146 SWIG_RegisterMapping("_wxStaticBox","_class_wxStaticBox",0);
1147 SWIG_RegisterMapping("_wxChoice","_class_wxChoice",0);
1148 SWIG_RegisterMapping("_wxSlider","_class_wxSlider",0);
1149 SWIG_RegisterMapping("_long","_wxDash",0);
1150 SWIG_RegisterMapping("_long","_unsigned_long",0);
1151 SWIG_RegisterMapping("_long","_signed_long",0);
1152 SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0);
1153 SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0);
1154 SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0);
1155 SWIG_RegisterMapping("_wxDC","_class_wxDC",0);
1156 SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0);
1157 SWIG_RegisterMapping("_class_wxMenuItem","_wxMenuItem",0);
1158 SWIG_RegisterMapping("_class_wxPaintEvent","_wxPaintEvent",0);
1159 SWIG_RegisterMapping("_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0);
1160 SWIG_RegisterMapping("_class_wxStatusBar","_wxStatusBar",0);
1161 SWIG_RegisterMapping("_class_wxPostScriptDC","_wxPostScriptDC",0);
1162 SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0);
1163 SWIG_RegisterMapping("_wxInitDialogEvent","_class_wxInitDialogEvent",0);
1164 SWIG_RegisterMapping("_wxCheckBox","_class_wxCheckBox",0);
1165 SWIG_RegisterMapping("_wxTextCtrl","_class_wxTextCtrl",0);
1166 SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
1167 SWIG_RegisterMapping("_class_wxKeyEvent","_wxKeyEvent",0);
1168 SWIG_RegisterMapping("_wxColour","_class_wxColour",0);
1169 SWIG_RegisterMapping("_class_wxDialog","_wxDialog",0);
1170 SWIG_RegisterMapping("_wxIdleEvent","_class_wxIdleEvent",0);
1171 SWIG_RegisterMapping("_class_wxUpdateUIEvent","_wxUpdateUIEvent",0);
1172 SWIG_RegisterMapping("_wxToolBar","_class_wxToolBar",0);
1173 SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0);
1174 SWIG_RegisterMapping("_wxShowEvent","_class_wxShowEvent",0);
1175 SWIG_RegisterMapping("_uint","_unsigned_int",0);
1176 SWIG_RegisterMapping("_uint","_int",0);
1177 SWIG_RegisterMapping("_uint","_wxWindowID",0);
1178 SWIG_RegisterMapping("_class_wxEvent","_wxEvent",0);
1179 SWIG_RegisterMapping("_wxRect","_class_wxRect",0);
1180 SWIG_RegisterMapping("_wxCommandEvent","_class_wxCommandEvent",0);
1181 SWIG_RegisterMapping("_wxSizeEvent","_class_wxSizeEvent",0);
1182 SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0);
1183 SWIG_RegisterMapping("_class_wxButton","_wxButton",0);
1184 SWIG_RegisterMapping("_wxRadioBox","_class_wxRadioBox",0);
1185 SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0);
1186 SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0);
1187 SWIG_RegisterMapping("_wxScrollBar","_class_wxScrollBar",0);
1188 SWIG_RegisterMapping("_wxToolBarTool","_class_wxToolBarTool",0);
1189 SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
1190 SWIG_RegisterMapping("_class_wxIconizeEvent","_wxIconizeEvent",0);
1191 SWIG_RegisterMapping("_class_wxStaticBitmap","_wxStaticBitmap",0);
1192 SWIG_RegisterMapping("_class_wxToolBar","_wxToolBar",0);
1193 SWIG_RegisterMapping("_wxScrollEvent","_class_wxScrollEvent",0);
1194 SWIG_RegisterMapping("_EBool","_signed_int",0);
1195 SWIG_RegisterMapping("_EBool","_int",0);
1196 SWIG_RegisterMapping("_EBool","_wxWindowID",0);
1197 SWIG_RegisterMapping("_class_wxDropFilesEvent","_wxDropFilesEvent",0);
1198 SWIG_RegisterMapping("_wxStaticText","_class_wxStaticText",0);
1199 SWIG_RegisterMapping("_wxFont","_class_wxFont",0);
1200 SWIG_RegisterMapping("_wxCloseEvent","_class_wxCloseEvent",0);
1201 SWIG_RegisterMapping("_unsigned_long","_wxDash",0);
1202 SWIG_RegisterMapping("_unsigned_long","_long",0);
1203 SWIG_RegisterMapping("_class_wxRect","_wxRect",0);
1204 SWIG_RegisterMapping("_class_wxDC","_wxDC",0);
1205 SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0);
1206 SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0);
1207 SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0);
1208 SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0);
1209 SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0);
1210 SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0);
1211 SWIG_RegisterMapping("_wxRadioButton","_class_wxRadioButton",0);
1212 SWIG_RegisterMapping("_signed_int","_EBool",0);
1213 SWIG_RegisterMapping("_signed_int","_wxWindowID",0);
1214 SWIG_RegisterMapping("_signed_int","_int",0);
1215 SWIG_RegisterMapping("_class_wxTextCtrl","_wxTextCtrl",0);
1216 SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0);
1217 SWIG_RegisterMapping("_wxMenu","_class_wxMenu",0);
1218 SWIG_RegisterMapping("_class_wxMoveEvent","_wxMoveEvent",0);
1219 SWIG_RegisterMapping("_wxListBox","_class_wxListBox",0);
1220 SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0);
1221 SWIG_RegisterMapping("_WXTYPE","_short",0);
1222 SWIG_RegisterMapping("_WXTYPE","_signed_short",0);
1223 SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0);
1224 SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0);
1225 SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0);
1226 SWIG_RegisterMapping("_unsigned_short","_short",0);
1227 SWIG_RegisterMapping("_class_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow);
1228 SWIG_RegisterMapping("_class_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow);
1229 SWIG_RegisterMapping("_class_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow);
1230 SWIG_RegisterMapping("_class_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow);
1231 SWIG_RegisterMapping("_class_wxWindow","_wxWindow",0);
1232 SWIG_RegisterMapping("_class_wxStaticText","_wxStaticText",0);
1233 SWIG_RegisterMapping("_class_wxFont","_wxFont",0);
1234 SWIG_RegisterMapping("_class_wxCloseEvent","_wxCloseEvent",0);
1235 SWIG_RegisterMapping("_class_wxMenuEvent","_wxMenuEvent",0);
1236 SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0);
1237 SWIG_RegisterMapping("_wxMouseEvent","_class_wxMouseEvent",0);
1238 SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0);
1239 SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0);
1240 SWIG_RegisterMapping("_class_wxRadioBox","_wxRadioBox",0);
1241 SWIG_RegisterMapping("_signed_short","_WXTYPE",0);
1242 SWIG_RegisterMapping("_signed_short","_short",0);
1243 SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0);
1244 SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0);
1245 SWIG_RegisterMapping("_class_wxFocusEvent","_wxFocusEvent",0);
1246 SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0);
1247 SWIG_RegisterMapping("_wxStatusBar","_class_wxStatusBar",0);
1248 SWIG_RegisterMapping("_class_wxToolBarTool","_wxToolBarTool",0);
1249 SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0);
1250 SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0);
1251 SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0);
1252 SWIG_RegisterMapping("_unsigned_char","_byte",0);
1253 SWIG_RegisterMapping("_class_wxMenu","_wxMenu",0);
1254 SWIG_RegisterMapping("_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl);
1255 SWIG_RegisterMapping("_wxControl","_wxToolBar",SwigwxToolBarTowxControl);
1256 SWIG_RegisterMapping("_wxControl","_class_wxControl",0);
1257 SWIG_RegisterMapping("_class_wxListBox","_wxListBox",0);
1258 SWIG_RegisterMapping("_unsigned_int","_uint",0);
1259 SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0);
1260 SWIG_RegisterMapping("_unsigned_int","_int",0);
1261 SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0);
1262 SWIG_RegisterMapping("_wxDialog","_class_wxDialog",0);
1263 SWIG_RegisterMapping("_class_wxPyMenu","_wxPyMenu",0);
1264 SWIG_RegisterMapping("_class_wxPen","_wxPen",0);
1265 SWIG_RegisterMapping("_short","_WXTYPE",0);
1266 SWIG_RegisterMapping("_short","_unsigned_short",0);
1267 SWIG_RegisterMapping("_short","_signed_short",0);
1268 SWIG_RegisterMapping("_class_wxStaticBox","_wxStaticBox",0);
1269 SWIG_RegisterMapping("_class_wxScrollEvent","_wxScrollEvent",0);
1270 SWIG_RegisterMapping("_wxJoystickEvent","_class_wxJoystickEvent",0);
1271 SWIG_RegisterMapping("_class_wxChoice","_wxChoice",0);
1272 SWIG_RegisterMapping("_class_wxSlider","_wxSlider",0);
1273 SWIG_RegisterMapping("_class_wxBitmapButton","_wxBitmapButton",0);
1274 SWIG_RegisterMapping("_wxWindowID","_EBool",0);
1275 SWIG_RegisterMapping("_wxWindowID","_uint",0);
1276 SWIG_RegisterMapping("_wxWindowID","_int",0);
1277 SWIG_RegisterMapping("_wxWindowID","_signed_int",0);
1278 SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0);
1279 SWIG_RegisterMapping("_int","_EBool",0);
1280 SWIG_RegisterMapping("_int","_uint",0);
1281 SWIG_RegisterMapping("_int","_wxWindowID",0);
1282 SWIG_RegisterMapping("_int","_unsigned_int",0);
1283 SWIG_RegisterMapping("_int","_signed_int",0);
1284 SWIG_RegisterMapping("_class_wxMouseEvent","_wxMouseEvent",0);
1285 SWIG_RegisterMapping("_wxButton","_class_wxButton",0);
1286 SWIG_RegisterMapping("_wxSize","_class_wxSize",0);
1287 SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0);
1288 SWIG_RegisterMapping("_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0);
1289 SWIG_RegisterMapping("_class_wxInitDialogEvent","_wxInitDialogEvent",0);
1290 SWIG_RegisterMapping("_class_wxComboBox","_wxComboBox",0);
1291 SWIG_RegisterMapping("_class_wxRadioButton","_wxRadioButton",0);
1292 SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0);
1293 SWIG_RegisterMapping("_wxIconizeEvent","_class_wxIconizeEvent",0);
1294 SWIG_RegisterMapping("_class_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl);
1295 SWIG_RegisterMapping("_class_wxControl","_wxToolBar",SwigwxToolBarTowxControl);
1296 SWIG_RegisterMapping("_class_wxControl","_wxControl",0);
1297 SWIG_RegisterMapping("_wxStaticBitmap","_class_wxStaticBitmap",0);
1298 SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0);
1299 SWIG_RegisterMapping("_class_wxColour","_wxColour",0);
1300 SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0);
1301 SWIG_RegisterMapping("_class_wxIdleEvent","_wxIdleEvent",0);
1302 SWIG_RegisterMapping("_wxEraseEvent","_class_wxEraseEvent",0);
1303 SWIG_RegisterMapping("_class_wxJoystickEvent","_wxJoystickEvent",0);
1304 SWIG_RegisterMapping("_class_wxShowEvent","_wxShowEvent",0);
1305 SWIG_RegisterMapping("_wxActivateEvent","_class_wxActivateEvent",0);
1306 SWIG_RegisterMapping("_wxGauge","_class_wxGauge",0);
1307 SWIG_RegisterMapping("_class_wxCommandEvent","_wxCommandEvent",0);
1308 SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0);
1309 SWIG_RegisterMapping("_class_wxSizeEvent","_wxSizeEvent",0);
1310 SWIG_RegisterMapping("_class_wxSize","_wxSize",0);
1311 SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0);
1312 SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0);
1313 SWIG_RegisterMapping("_wxMenuBar","_class_wxMenuBar",0);
1314 SWIG_RegisterMapping("_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler);
1315 SWIG_RegisterMapping("_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler);
1316 SWIG_RegisterMapping("_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler);
1317 SWIG_RegisterMapping("_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler);
1318 SWIG_RegisterMapping("_wxEvtHandler","_class_wxEvtHandler",0);
1319 SWIG_RegisterMapping("_wxMenuItem","_class_wxMenuItem",0);
1320 SWIG_RegisterMapping("_class_wxScrollBar","_wxScrollBar",0);
1321 SWIG_RegisterMapping("_wxDash","_unsigned_long",0);
1322 SWIG_RegisterMapping("_wxDash","_long",0);
1323 SWIG_RegisterMapping("_class_wxScrolledWindow","_wxScrolledWindow",0);
1324 SWIG_RegisterMapping("_wxKeyEvent","_class_wxKeyEvent",0);
1325 SWIG_RegisterMapping("_wxMoveEvent","_class_wxMoveEvent",0);
1326 SWIG_RegisterMapping("_class_wxEraseEvent","_wxEraseEvent",0);
1327 SWIG_RegisterMapping("_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow);
1328 SWIG_RegisterMapping("_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow);
1329 SWIG_RegisterMapping("_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow);
1330 SWIG_RegisterMapping("_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow);
1331 SWIG_RegisterMapping("_wxWindow","_class_wxWindow",0);
1332 }