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