]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/mdi.cpp
GTK version of the SWIG-generated files
[wxWidgets.git] / utils / wxPython / src / gtk / mdi.cpp
1 /*
2 * FILE : gtk/mdi.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 initmdic
53
54 #define SWIG_name "mdic"
55
56 #include "helpers.h"
57
58 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
59 PyObject* o2;
60 PyObject* o3;
61 if (!target) {
62 target = o;
63 } else if (target == Py_None) {
64 Py_DECREF(Py_None);
65 target = o;
66 } else {
67 if (!PyList_Check(target)) {
68 o2 = target;
69 target = PyList_New(0);
70 PyList_Append(target, o2);
71 Py_XDECREF(o2);
72 }
73 PyList_Append(target,o);
74 Py_XDECREF(o);
75 }
76 return target;
77 }
78
79 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
80 PyObject* o2;
81 PyObject* o3;
82
83 if (!target) {
84 target = o;
85 } else if (target == Py_None) {
86 Py_DECREF(Py_None);
87 target = o;
88 } else {
89 if (!PyTuple_Check(target)) {
90 o2 = target;
91 target = PyTuple_New(1);
92 PyTuple_SetItem(target, 0, o2);
93 }
94 o3 = PyTuple_New(1);
95 PyTuple_SetItem(o3, 0, o);
96
97 o2 = target;
98 target = PySequence_Concat(o2, o3);
99 Py_DECREF(o2);
100 Py_DECREF(o3);
101 }
102 return target;
103 }
104
105
106 extern int* int_LIST_helper(PyObject* source);
107 extern long* long_LIST_helper(PyObject* source);
108 extern char** string_LIST_helper(PyObject* source);
109 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
110 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
111 extern wxString* wxString_LIST_helper(PyObject* source);
112 #ifdef __WXMSW__
113 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
114 #endif
115
116
117 static char* wxStringErrorMsg = "string type is required for parameter";
118 static void *SwigwxMDIParentFrameTowxFrame(void *ptr) {
119 wxMDIParentFrame *src;
120 wxFrame *dest;
121 src = (wxMDIParentFrame *) ptr;
122 dest = (wxFrame *) src;
123 return (void *) dest;
124 }
125
126 static void *SwigwxMDIParentFrameTowxWindow(void *ptr) {
127 wxMDIParentFrame *src;
128 wxWindow *dest;
129 src = (wxMDIParentFrame *) ptr;
130 dest = (wxWindow *) src;
131 return (void *) dest;
132 }
133
134 static void *SwigwxMDIParentFrameTowxEvtHandler(void *ptr) {
135 wxMDIParentFrame *src;
136 wxEvtHandler *dest;
137 src = (wxMDIParentFrame *) ptr;
138 dest = (wxEvtHandler *) src;
139 return (void *) dest;
140 }
141
142 #define new_wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
143 static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args) {
144 PyObject * _resultobj;
145 wxMDIParentFrame * _result;
146 wxWindow * _arg0;
147 wxWindowID _arg1;
148 wxString * _arg2;
149 wxPoint * _arg3 = &wxPyDefaultPosition;
150 wxSize * _arg4 = &wxPyDefaultSize;
151 long _arg5 = (wxDEFAULT_FRAME_STYLE)|(wxVSCROLL)|(wxHSCROLL);
152 char * _arg6 = "frame";
153 char * _argc0 = 0;
154 PyObject * _obj2 = 0;
155 char * _argc3 = 0;
156 char * _argc4 = 0;
157 char _ptemp[128];
158
159 self = self;
160 if(!PyArg_ParseTuple(args,"siO|ssls:new_wxMDIParentFrame",&_argc0,&_arg1,&_obj2,&_argc3,&_argc4,&_arg5,&_arg6))
161 return NULL;
162 if (_argc0) {
163 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) {
164 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIParentFrame. Expected _wxWindow_p.");
165 return NULL;
166 }
167 }
168 {
169 if (!PyString_Check(_obj2)) {
170 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
171 return NULL;
172 }
173 _arg2 = new wxString(PyString_AsString(_obj2));
174 }
175 if (_argc3) {
176 if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
177 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxMDIParentFrame. Expected _wxPoint_p.");
178 return NULL;
179 }
180 }
181 if (_argc4) {
182 if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_wxSize_p")) {
183 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxMDIParentFrame. Expected _wxSize_p.");
184 return NULL;
185 }
186 }
187 _result = (wxMDIParentFrame *)new_wxMDIParentFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
188 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p");
189 _resultobj = Py_BuildValue("s",_ptemp);
190 {
191 if (_obj2)
192 delete _arg2;
193 }
194 return _resultobj;
195 }
196
197 #define wxMDIParentFrame_ActivateNext(_swigobj) (_swigobj->ActivateNext())
198 static PyObject *_wrap_wxMDIParentFrame_ActivateNext(PyObject *self, PyObject *args) {
199 PyObject * _resultobj;
200 wxMDIParentFrame * _arg0;
201 char * _argc0 = 0;
202
203 self = self;
204 if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_ActivateNext",&_argc0))
205 return NULL;
206 if (_argc0) {
207 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivateNext. Expected _wxMDIParentFrame_p.");
209 return NULL;
210 }
211 }
212 wxMDIParentFrame_ActivateNext(_arg0);
213 Py_INCREF(Py_None);
214 _resultobj = Py_None;
215 return _resultobj;
216 }
217
218 #define wxMDIParentFrame_ActivatePrevious(_swigobj) (_swigobj->ActivatePrevious())
219 static PyObject *_wrap_wxMDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args) {
220 PyObject * _resultobj;
221 wxMDIParentFrame * _arg0;
222 char * _argc0 = 0;
223
224 self = self;
225 if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_ActivatePrevious",&_argc0))
226 return NULL;
227 if (_argc0) {
228 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivatePrevious. Expected _wxMDIParentFrame_p.");
230 return NULL;
231 }
232 }
233 wxMDIParentFrame_ActivatePrevious(_arg0);
234 Py_INCREF(Py_None);
235 _resultobj = Py_None;
236 return _resultobj;
237 }
238
239 #define wxMDIParentFrame_ArrangeIcons(_swigobj) (_swigobj->ArrangeIcons())
240 static PyObject *_wrap_wxMDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args) {
241 PyObject * _resultobj;
242 wxMDIParentFrame * _arg0;
243 char * _argc0 = 0;
244
245 self = self;
246 if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_ArrangeIcons",&_argc0))
247 return NULL;
248 if (_argc0) {
249 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ArrangeIcons. Expected _wxMDIParentFrame_p.");
251 return NULL;
252 }
253 }
254 wxMDIParentFrame_ArrangeIcons(_arg0);
255 Py_INCREF(Py_None);
256 _resultobj = Py_None;
257 return _resultobj;
258 }
259
260 #define wxMDIParentFrame_Cascade(_swigobj) (_swigobj->Cascade())
261 static PyObject *_wrap_wxMDIParentFrame_Cascade(PyObject *self, PyObject *args) {
262 PyObject * _resultobj;
263 wxMDIParentFrame * _arg0;
264 char * _argc0 = 0;
265
266 self = self;
267 if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_Cascade",&_argc0))
268 return NULL;
269 if (_argc0) {
270 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Cascade. Expected _wxMDIParentFrame_p.");
272 return NULL;
273 }
274 }
275 wxMDIParentFrame_Cascade(_arg0);
276 Py_INCREF(Py_None);
277 _resultobj = Py_None;
278 return _resultobj;
279 }
280
281 #define wxMDIParentFrame_GetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
282 static PyObject *_wrap_wxMDIParentFrame_GetClientSize(PyObject *self, PyObject *args) {
283 PyObject * _resultobj;
284 wxMDIParentFrame * _arg0;
285 int * _arg1;
286 int temp;
287 int * _arg2;
288 int temp0;
289 char * _argc0 = 0;
290
291 self = self;
292 {
293 _arg1 = &temp;
294 }
295 {
296 _arg2 = &temp0;
297 }
298 if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetClientSize",&_argc0))
299 return NULL;
300 if (_argc0) {
301 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
302 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetClientSize. Expected _wxMDIParentFrame_p.");
303 return NULL;
304 }
305 }
306 wxMDIParentFrame_GetClientSize(_arg0,_arg1,_arg2);
307 Py_INCREF(Py_None);
308 _resultobj = Py_None;
309 {
310 PyObject *o;
311 o = PyInt_FromLong((long) (*_arg1));
312 _resultobj = t_output_helper(_resultobj, o);
313 }
314 {
315 PyObject *o;
316 o = PyInt_FromLong((long) (*_arg2));
317 _resultobj = t_output_helper(_resultobj, o);
318 }
319 return _resultobj;
320 }
321
322 #define wxMDIParentFrame_GetActiveChild(_swigobj) (_swigobj->GetActiveChild())
323 static PyObject *_wrap_wxMDIParentFrame_GetActiveChild(PyObject *self, PyObject *args) {
324 PyObject * _resultobj;
325 wxMDIChildFrame * _result;
326 wxMDIParentFrame * _arg0;
327 char * _argc0 = 0;
328 char _ptemp[128];
329
330 self = self;
331 if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetActiveChild",&_argc0))
332 return NULL;
333 if (_argc0) {
334 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetActiveChild. Expected _wxMDIParentFrame_p.");
336 return NULL;
337 }
338 }
339 _result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0);
340 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
341 _resultobj = Py_BuildValue("s",_ptemp);
342 return _resultobj;
343 }
344
345 #define wxMDIParentFrame_GetClientWindow(_swigobj) (_swigobj->GetClientWindow())
346 static PyObject *_wrap_wxMDIParentFrame_GetClientWindow(PyObject *self, PyObject *args) {
347 PyObject * _resultobj;
348 wxMDIClientWindow * _result;
349 wxMDIParentFrame * _arg0;
350 char * _argc0 = 0;
351 char _ptemp[128];
352
353 self = self;
354 if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetClientWindow",&_argc0))
355 return NULL;
356 if (_argc0) {
357 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetClientWindow. Expected _wxMDIParentFrame_p.");
359 return NULL;
360 }
361 }
362 _result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0);
363 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
364 _resultobj = Py_BuildValue("s",_ptemp);
365 return _resultobj;
366 }
367
368 #define wxMDIParentFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
369 static PyObject *_wrap_wxMDIParentFrame_GetToolBar(PyObject *self, PyObject *args) {
370 PyObject * _resultobj;
371 wxWindow * _result;
372 wxMDIParentFrame * _arg0;
373 char * _argc0 = 0;
374 char _ptemp[128];
375
376 self = self;
377 if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_GetToolBar",&_argc0))
378 return NULL;
379 if (_argc0) {
380 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetToolBar. Expected _wxMDIParentFrame_p.");
382 return NULL;
383 }
384 }
385 _result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0);
386 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
387 _resultobj = Py_BuildValue("s",_ptemp);
388 return _resultobj;
389 }
390
391 #define wxMDIParentFrame_Tile(_swigobj) (_swigobj->Tile())
392 static PyObject *_wrap_wxMDIParentFrame_Tile(PyObject *self, PyObject *args) {
393 PyObject * _resultobj;
394 wxMDIParentFrame * _arg0;
395 char * _argc0 = 0;
396
397 self = self;
398 if(!PyArg_ParseTuple(args,"s:wxMDIParentFrame_Tile",&_argc0))
399 return NULL;
400 if (_argc0) {
401 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Tile. Expected _wxMDIParentFrame_p.");
403 return NULL;
404 }
405 }
406 wxMDIParentFrame_Tile(_arg0);
407 Py_INCREF(Py_None);
408 _resultobj = Py_None;
409 return _resultobj;
410 }
411
412 static void *SwigwxMDIChildFrameTowxFrame(void *ptr) {
413 wxMDIChildFrame *src;
414 wxFrame *dest;
415 src = (wxMDIChildFrame *) ptr;
416 dest = (wxFrame *) src;
417 return (void *) dest;
418 }
419
420 static void *SwigwxMDIChildFrameTowxWindow(void *ptr) {
421 wxMDIChildFrame *src;
422 wxWindow *dest;
423 src = (wxMDIChildFrame *) ptr;
424 dest = (wxWindow *) src;
425 return (void *) dest;
426 }
427
428 static void *SwigwxMDIChildFrameTowxEvtHandler(void *ptr) {
429 wxMDIChildFrame *src;
430 wxEvtHandler *dest;
431 src = (wxMDIChildFrame *) ptr;
432 dest = (wxEvtHandler *) src;
433 return (void *) dest;
434 }
435
436 #define new_wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
437 static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args) {
438 PyObject * _resultobj;
439 wxMDIChildFrame * _result;
440 wxMDIParentFrame * _arg0;
441 wxWindowID _arg1;
442 wxString * _arg2;
443 wxPoint * _arg3 = &wxPyDefaultPosition;
444 wxSize * _arg4 = &wxPyDefaultSize;
445 long _arg5 = (wxDEFAULT_FRAME_STYLE);
446 char * _arg6 = "frame";
447 char * _argc0 = 0;
448 PyObject * _obj2 = 0;
449 char * _argc3 = 0;
450 char * _argc4 = 0;
451 char _ptemp[128];
452
453 self = self;
454 if(!PyArg_ParseTuple(args,"siO|ssls:new_wxMDIChildFrame",&_argc0,&_arg1,&_obj2,&_argc3,&_argc4,&_arg5,&_arg6))
455 return NULL;
456 if (_argc0) {
457 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIChildFrame. Expected _wxMDIParentFrame_p.");
459 return NULL;
460 }
461 }
462 {
463 if (!PyString_Check(_obj2)) {
464 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
465 return NULL;
466 }
467 _arg2 = new wxString(PyString_AsString(_obj2));
468 }
469 if (_argc3) {
470 if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
471 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxMDIChildFrame. Expected _wxPoint_p.");
472 return NULL;
473 }
474 }
475 if (_argc4) {
476 if (SWIG_GetPtr(_argc4,(void **) &_arg4,"_wxSize_p")) {
477 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxMDIChildFrame. Expected _wxSize_p.");
478 return NULL;
479 }
480 }
481 _result = (wxMDIChildFrame *)new_wxMDIChildFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
482 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
483 _resultobj = Py_BuildValue("s",_ptemp);
484 {
485 if (_obj2)
486 delete _arg2;
487 }
488 return _resultobj;
489 }
490
491 #define wxMDIChildFrame_Activate(_swigobj) (_swigobj->Activate())
492 static PyObject *_wrap_wxMDIChildFrame_Activate(PyObject *self, PyObject *args) {
493 PyObject * _resultobj;
494 wxMDIChildFrame * _arg0;
495 char * _argc0 = 0;
496
497 self = self;
498 if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Activate",&_argc0))
499 return NULL;
500 if (_argc0) {
501 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Activate. Expected _wxMDIChildFrame_p.");
503 return NULL;
504 }
505 }
506 wxMDIChildFrame_Activate(_arg0);
507 Py_INCREF(Py_None);
508 _resultobj = Py_None;
509 return _resultobj;
510 }
511
512 #define wxMDIChildFrame_Maximize(_swigobj) (_swigobj->Maximize())
513 static PyObject *_wrap_wxMDIChildFrame_Maximize(PyObject *self, PyObject *args) {
514 PyObject * _resultobj;
515 wxMDIChildFrame * _arg0;
516 char * _argc0 = 0;
517
518 self = self;
519 if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Maximize",&_argc0))
520 return NULL;
521 if (_argc0) {
522 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
523 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Maximize. Expected _wxMDIChildFrame_p.");
524 return NULL;
525 }
526 }
527 wxMDIChildFrame_Maximize(_arg0);
528 Py_INCREF(Py_None);
529 _resultobj = Py_None;
530 return _resultobj;
531 }
532
533 #define wxMDIChildFrame_Restore(_swigobj) (_swigobj->Restore())
534 static PyObject *_wrap_wxMDIChildFrame_Restore(PyObject *self, PyObject *args) {
535 PyObject * _resultobj;
536 wxMDIChildFrame * _arg0;
537 char * _argc0 = 0;
538
539 self = self;
540 if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Restore",&_argc0))
541 return NULL;
542 if (_argc0) {
543 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Restore. Expected _wxMDIChildFrame_p.");
545 return NULL;
546 }
547 }
548 wxMDIChildFrame_Restore(_arg0);
549 Py_INCREF(Py_None);
550 _resultobj = Py_None;
551 return _resultobj;
552 }
553
554 #define wxMDIChildFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0))
555 static PyObject *_wrap_wxMDIChildFrame_SetMenuBar(PyObject *self, PyObject *args) {
556 PyObject * _resultobj;
557 wxMDIChildFrame * _arg0;
558 wxMenuBar * _arg1;
559 char * _argc0 = 0;
560 char * _argc1 = 0;
561
562 self = self;
563 if(!PyArg_ParseTuple(args,"ss:wxMDIChildFrame_SetMenuBar",&_argc0,&_argc1))
564 return NULL;
565 if (_argc0) {
566 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_SetMenuBar. Expected _wxMDIChildFrame_p.");
568 return NULL;
569 }
570 }
571 if (_argc1) {
572 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxMenuBar_p")) {
573 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIChildFrame_SetMenuBar. Expected _wxMenuBar_p.");
574 return NULL;
575 }
576 }
577 wxMDIChildFrame_SetMenuBar(_arg0,_arg1);
578 Py_INCREF(Py_None);
579 _resultobj = Py_None;
580 return _resultobj;
581 }
582
583 #define wxMDIChildFrame_SetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
584 static PyObject *_wrap_wxMDIChildFrame_SetClientSize(PyObject *self, PyObject *args) {
585 PyObject * _resultobj;
586 wxMDIChildFrame * _arg0;
587 int _arg1;
588 int _arg2;
589 char * _argc0 = 0;
590
591 self = self;
592 if(!PyArg_ParseTuple(args,"sii:wxMDIChildFrame_SetClientSize",&_argc0,&_arg1,&_arg2))
593 return NULL;
594 if (_argc0) {
595 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_SetClientSize. Expected _wxMDIChildFrame_p.");
597 return NULL;
598 }
599 }
600 wxMDIChildFrame_SetClientSize(_arg0,_arg1,_arg2);
601 Py_INCREF(Py_None);
602 _resultobj = Py_None;
603 return _resultobj;
604 }
605
606 #define wxMDIChildFrame_GetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
607 static PyObject *_wrap_wxMDIChildFrame_GetPosition(PyObject *self, PyObject *args) {
608 PyObject * _resultobj;
609 wxMDIChildFrame * _arg0;
610 int * _arg1;
611 int temp;
612 int * _arg2;
613 int temp0;
614 char * _argc0 = 0;
615
616 self = self;
617 {
618 _arg1 = &temp;
619 }
620 {
621 _arg2 = &temp0;
622 }
623 if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_GetPosition",&_argc0))
624 return NULL;
625 if (_argc0) {
626 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_GetPosition. Expected _wxMDIChildFrame_p.");
628 return NULL;
629 }
630 }
631 wxMDIChildFrame_GetPosition(_arg0,_arg1,_arg2);
632 Py_INCREF(Py_None);
633 _resultobj = Py_None;
634 {
635 PyObject *o;
636 o = PyInt_FromLong((long) (*_arg1));
637 _resultobj = t_output_helper(_resultobj, o);
638 }
639 {
640 PyObject *o;
641 o = PyInt_FromLong((long) (*_arg2));
642 _resultobj = t_output_helper(_resultobj, o);
643 }
644 return _resultobj;
645 }
646
647 static void *SwigwxMDIClientWindowTowxWindow(void *ptr) {
648 wxMDIClientWindow *src;
649 wxWindow *dest;
650 src = (wxMDIClientWindow *) ptr;
651 dest = (wxWindow *) src;
652 return (void *) dest;
653 }
654
655 static void *SwigwxMDIClientWindowTowxEvtHandler(void *ptr) {
656 wxMDIClientWindow *src;
657 wxEvtHandler *dest;
658 src = (wxMDIClientWindow *) ptr;
659 dest = (wxEvtHandler *) src;
660 return (void *) dest;
661 }
662
663 #define new_wxMDIClientWindow(_swigarg0,_swigarg1) (new wxMDIClientWindow(_swigarg0,_swigarg1))
664 static PyObject *_wrap_new_wxMDIClientWindow(PyObject *self, PyObject *args) {
665 PyObject * _resultobj;
666 wxMDIClientWindow * _result;
667 wxMDIParentFrame * _arg0;
668 long _arg1 = 0;
669 char * _argc0 = 0;
670 char _ptemp[128];
671
672 self = self;
673 if(!PyArg_ParseTuple(args,"s|l:new_wxMDIClientWindow",&_argc0,&_arg1))
674 return NULL;
675 if (_argc0) {
676 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
677 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIClientWindow. Expected _wxMDIParentFrame_p.");
678 return NULL;
679 }
680 }
681 _result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1);
682 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
683 _resultobj = Py_BuildValue("s",_ptemp);
684 return _resultobj;
685 }
686
687 static PyMethodDef mdicMethods[] = {
688 { "new_wxMDIClientWindow", _wrap_new_wxMDIClientWindow, 1 },
689 { "wxMDIChildFrame_GetPosition", _wrap_wxMDIChildFrame_GetPosition, 1 },
690 { "wxMDIChildFrame_SetClientSize", _wrap_wxMDIChildFrame_SetClientSize, 1 },
691 { "wxMDIChildFrame_SetMenuBar", _wrap_wxMDIChildFrame_SetMenuBar, 1 },
692 { "wxMDIChildFrame_Restore", _wrap_wxMDIChildFrame_Restore, 1 },
693 { "wxMDIChildFrame_Maximize", _wrap_wxMDIChildFrame_Maximize, 1 },
694 { "wxMDIChildFrame_Activate", _wrap_wxMDIChildFrame_Activate, 1 },
695 { "new_wxMDIChildFrame", _wrap_new_wxMDIChildFrame, 1 },
696 { "wxMDIParentFrame_Tile", _wrap_wxMDIParentFrame_Tile, 1 },
697 { "wxMDIParentFrame_GetToolBar", _wrap_wxMDIParentFrame_GetToolBar, 1 },
698 { "wxMDIParentFrame_GetClientWindow", _wrap_wxMDIParentFrame_GetClientWindow, 1 },
699 { "wxMDIParentFrame_GetActiveChild", _wrap_wxMDIParentFrame_GetActiveChild, 1 },
700 { "wxMDIParentFrame_GetClientSize", _wrap_wxMDIParentFrame_GetClientSize, 1 },
701 { "wxMDIParentFrame_Cascade", _wrap_wxMDIParentFrame_Cascade, 1 },
702 { "wxMDIParentFrame_ArrangeIcons", _wrap_wxMDIParentFrame_ArrangeIcons, 1 },
703 { "wxMDIParentFrame_ActivatePrevious", _wrap_wxMDIParentFrame_ActivatePrevious, 1 },
704 { "wxMDIParentFrame_ActivateNext", _wrap_wxMDIParentFrame_ActivateNext, 1 },
705 { "new_wxMDIParentFrame", _wrap_new_wxMDIParentFrame, 1 },
706 { NULL, NULL }
707 };
708 static PyObject *SWIG_globals;
709 #ifdef __cplusplus
710 extern "C"
711 #endif
712 SWIGEXPORT(void,initmdic)() {
713 PyObject *m, *d;
714 SWIG_globals = SWIG_newvarlink();
715 m = Py_InitModule("mdic", mdicMethods);
716 d = PyModule_GetDict(m);
717 /*
718 * These are the pointer type-equivalency mappings.
719 * (Used by the SWIG pointer type-checker).
720 */
721 SWIG_RegisterMapping("_signed_long","_long",0);
722 SWIG_RegisterMapping("_class_wxMenuBar","_wxMenuBar",0);
723 SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
724 SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
725 SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
726 SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
727 SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
728 SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
729 SWIG_RegisterMapping("_class_wxEvtHandler","_wxEvtHandler",0);
730 SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0);
731 SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0);
732 SWIG_RegisterMapping("_wxMask","_class_wxMask",0);
733 SWIG_RegisterMapping("_wxPyMenu","_class_wxPyMenu",0);
734 SWIG_RegisterMapping("_wxPen","_class_wxPen",0);
735 SWIG_RegisterMapping("_byte","_unsigned_char",0);
736 SWIG_RegisterMapping("_long","_wxDash",0);
737 SWIG_RegisterMapping("_long","_unsigned_long",0);
738 SWIG_RegisterMapping("_long","_signed_long",0);
739 SWIG_RegisterMapping("_wxDC","_class_wxDC",0);
740 SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0);
741 SWIG_RegisterMapping("_class_wxMenuItem","_wxMenuItem",0);
742 SWIG_RegisterMapping("_class_wxPostScriptDC","_wxPostScriptDC",0);
743 SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0);
744 SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
745 SWIG_RegisterMapping("_wxColour","_class_wxColour",0);
746 SWIG_RegisterMapping("_class_wxDialog","_wxDialog",0);
747 SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0);
748 SWIG_RegisterMapping("_uint","_unsigned_int",0);
749 SWIG_RegisterMapping("_uint","_int",0);
750 SWIG_RegisterMapping("_uint","_wxWindowID",0);
751 SWIG_RegisterMapping("_wxRect","_class_wxRect",0);
752 SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0);
753 SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0);
754 SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0);
755 SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
756 SWIG_RegisterMapping("_wxMDIChildFrame","_class_wxMDIChildFrame",0);
757 SWIG_RegisterMapping("_EBool","_signed_int",0);
758 SWIG_RegisterMapping("_EBool","_int",0);
759 SWIG_RegisterMapping("_EBool","_wxWindowID",0);
760 SWIG_RegisterMapping("_wxFont","_class_wxFont",0);
761 SWIG_RegisterMapping("_unsigned_long","_wxDash",0);
762 SWIG_RegisterMapping("_unsigned_long","_long",0);
763 SWIG_RegisterMapping("_class_wxRect","_wxRect",0);
764 SWIG_RegisterMapping("_class_wxDC","_wxDC",0);
765 SWIG_RegisterMapping("_wxMDIParentFrame","_class_wxMDIParentFrame",0);
766 SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0);
767 SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0);
768 SWIG_RegisterMapping("_signed_int","_EBool",0);
769 SWIG_RegisterMapping("_signed_int","_wxWindowID",0);
770 SWIG_RegisterMapping("_signed_int","_int",0);
771 SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0);
772 SWIG_RegisterMapping("_wxMenu","_class_wxMenu",0);
773 SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0);
774 SWIG_RegisterMapping("_class_wxMDIChildFrame","_wxMDIChildFrame",0);
775 SWIG_RegisterMapping("_WXTYPE","_short",0);
776 SWIG_RegisterMapping("_WXTYPE","_signed_short",0);
777 SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0);
778 SWIG_RegisterMapping("_class_wxMDIClientWindow","_wxMDIClientWindow",0);
779 SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0);
780 SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0);
781 SWIG_RegisterMapping("_unsigned_short","_short",0);
782 SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
783 SWIG_RegisterMapping("_class_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
784 SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
785 SWIG_RegisterMapping("_class_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
786 SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
787 SWIG_RegisterMapping("_class_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
788 SWIG_RegisterMapping("_class_wxWindow","_wxWindow",0);
789 SWIG_RegisterMapping("_class_wxFont","_wxFont",0);
790 SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0);
791 SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0);
792 SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0);
793 SWIG_RegisterMapping("_signed_short","_WXTYPE",0);
794 SWIG_RegisterMapping("_signed_short","_short",0);
795 SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0);
796 SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0);
797 SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0);
798 SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0);
799 SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0);
800 SWIG_RegisterMapping("_unsigned_char","_byte",0);
801 SWIG_RegisterMapping("_class_wxMenu","_wxMenu",0);
802 SWIG_RegisterMapping("_unsigned_int","_uint",0);
803 SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0);
804 SWIG_RegisterMapping("_unsigned_int","_int",0);
805 SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0);
806 SWIG_RegisterMapping("_wxDialog","_class_wxDialog",0);
807 SWIG_RegisterMapping("_class_wxPyMenu","_wxPyMenu",0);
808 SWIG_RegisterMapping("_class_wxPen","_wxPen",0);
809 SWIG_RegisterMapping("_short","_WXTYPE",0);
810 SWIG_RegisterMapping("_short","_unsigned_short",0);
811 SWIG_RegisterMapping("_short","_signed_short",0);
812 SWIG_RegisterMapping("_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
813 SWIG_RegisterMapping("_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
814 SWIG_RegisterMapping("_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
815 SWIG_RegisterMapping("_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
816 SWIG_RegisterMapping("_wxFrame","_class_wxFrame",0);
817 SWIG_RegisterMapping("_wxWindowID","_EBool",0);
818 SWIG_RegisterMapping("_wxWindowID","_uint",0);
819 SWIG_RegisterMapping("_wxWindowID","_int",0);
820 SWIG_RegisterMapping("_wxWindowID","_signed_int",0);
821 SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0);
822 SWIG_RegisterMapping("_int","_EBool",0);
823 SWIG_RegisterMapping("_int","_uint",0);
824 SWIG_RegisterMapping("_int","_wxWindowID",0);
825 SWIG_RegisterMapping("_int","_unsigned_int",0);
826 SWIG_RegisterMapping("_int","_signed_int",0);
827 SWIG_RegisterMapping("_wxSize","_class_wxSize",0);
828 SWIG_RegisterMapping("_class_wxMDIParentFrame","_wxMDIParentFrame",0);
829 SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0);
830 SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0);
831 SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0);
832 SWIG_RegisterMapping("_class_wxColour","_wxColour",0);
833 SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0);
834 SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0);
835 SWIG_RegisterMapping("_class_wxSize","_wxSize",0);
836 SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0);
837 SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0);
838 SWIG_RegisterMapping("_wxMenuBar","_class_wxMenuBar",0);
839 SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
840 SWIG_RegisterMapping("_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
841 SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
842 SWIG_RegisterMapping("_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
843 SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
844 SWIG_RegisterMapping("_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
845 SWIG_RegisterMapping("_wxEvtHandler","_class_wxEvtHandler",0);
846 SWIG_RegisterMapping("_wxMenuItem","_class_wxMenuItem",0);
847 SWIG_RegisterMapping("_wxDash","_unsigned_long",0);
848 SWIG_RegisterMapping("_wxDash","_long",0);
849 SWIG_RegisterMapping("_class_wxScrolledWindow","_wxScrolledWindow",0);
850 SWIG_RegisterMapping("_wxMDIClientWindow","_class_wxMDIClientWindow",0);
851 SWIG_RegisterMapping("_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
852 SWIG_RegisterMapping("_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
853 SWIG_RegisterMapping("_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
854 SWIG_RegisterMapping("_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
855 SWIG_RegisterMapping("_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
856 SWIG_RegisterMapping("_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
857 SWIG_RegisterMapping("_wxWindow","_class_wxWindow",0);
858 SWIG_RegisterMapping("_class_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
859 SWIG_RegisterMapping("_class_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
860 SWIG_RegisterMapping("_class_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
861 SWIG_RegisterMapping("_class_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
862 SWIG_RegisterMapping("_class_wxFrame","_wxFrame",0);
863 }