]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/msw/mdi.cpp
Some chicken-and-egg problems solved for wxPython on wxGTK
[wxWidgets.git] / utils / wxPython / src / msw / mdi.cpp
CommitLineData
8ab979d7
RD
1/*
2 * FILE : msw\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
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);
111#ifdef __WXMSW__
112extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
113#endif
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
582#define wxMDIChildFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0))
583static PyObject *_wrap_wxMDIChildFrame_SetMenuBar(PyObject *self, PyObject *args) {
584 PyObject * _resultobj;
585 wxMDIChildFrame * _arg0;
586 wxMenuBar * _arg1;
587 char * _argc0 = 0;
588 char * _argc1 = 0;
589
590 self = self;
591 if(!PyArg_ParseTuple(args,"ss:wxMDIChildFrame_SetMenuBar",&_argc0,&_argc1))
592 return NULL;
593 if (_argc0) {
594 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_SetMenuBar. Expected _wxMDIChildFrame_p.");
596 return NULL;
597 }
598 }
599 if (_argc1) {
600 if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxMenuBar_p")) {
601 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIChildFrame_SetMenuBar. Expected _wxMenuBar_p.");
602 return NULL;
603 }
604 }
605 wxMDIChildFrame_SetMenuBar(_arg0,_arg1);
606 Py_INCREF(Py_None);
607 _resultobj = Py_None;
608 return _resultobj;
609}
610
611#define wxMDIChildFrame_SetClientSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
612static PyObject *_wrap_wxMDIChildFrame_SetClientSize(PyObject *self, PyObject *args) {
613 PyObject * _resultobj;
614 wxMDIChildFrame * _arg0;
615 int _arg1;
616 int _arg2;
617 char * _argc0 = 0;
618
619 self = self;
620 if(!PyArg_ParseTuple(args,"sii:wxMDIChildFrame_SetClientSize",&_argc0,&_arg1,&_arg2))
621 return NULL;
622 if (_argc0) {
623 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_SetClientSize. Expected _wxMDIChildFrame_p.");
625 return NULL;
626 }
627 }
628 wxMDIChildFrame_SetClientSize(_arg0,_arg1,_arg2);
629 Py_INCREF(Py_None);
630 _resultobj = Py_None;
631 return _resultobj;
632}
633
634#define wxMDIChildFrame_GetPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
635static PyObject *_wrap_wxMDIChildFrame_GetPosition(PyObject *self, PyObject *args) {
636 PyObject * _resultobj;
637 wxMDIChildFrame * _arg0;
638 int * _arg1;
639 int temp;
640 int * _arg2;
641 int temp0;
642 char * _argc0 = 0;
643
644 self = self;
645{
646 _arg1 = &temp;
647}
648{
649 _arg2 = &temp0;
650}
651 if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_GetPosition",&_argc0))
652 return NULL;
653 if (_argc0) {
654 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_GetPosition. Expected _wxMDIChildFrame_p.");
656 return NULL;
657 }
658 }
659 wxMDIChildFrame_GetPosition(_arg0,_arg1,_arg2);
660 Py_INCREF(Py_None);
661 _resultobj = Py_None;
662{
663 PyObject *o;
664 o = PyInt_FromLong((long) (*_arg1));
665 _resultobj = t_output_helper(_resultobj, o);
666}
667{
668 PyObject *o;
669 o = PyInt_FromLong((long) (*_arg2));
670 _resultobj = t_output_helper(_resultobj, o);
671}
672 return _resultobj;
673}
674
675static void *SwigwxMDIClientWindowTowxWindow(void *ptr) {
676 wxMDIClientWindow *src;
677 wxWindow *dest;
678 src = (wxMDIClientWindow *) ptr;
679 dest = (wxWindow *) src;
680 return (void *) dest;
681}
682
683static void *SwigwxMDIClientWindowTowxEvtHandler(void *ptr) {
684 wxMDIClientWindow *src;
685 wxEvtHandler *dest;
686 src = (wxMDIClientWindow *) ptr;
687 dest = (wxEvtHandler *) src;
688 return (void *) dest;
689}
690
691#define new_wxMDIClientWindow(_swigarg0,_swigarg1) (new wxMDIClientWindow(_swigarg0,_swigarg1))
692static PyObject *_wrap_new_wxMDIClientWindow(PyObject *self, PyObject *args) {
693 PyObject * _resultobj;
694 wxMDIClientWindow * _result;
695 wxMDIParentFrame * _arg0;
696 long _arg1 = 0;
697 char * _argc0 = 0;
698 char _ptemp[128];
699
700 self = self;
701 if(!PyArg_ParseTuple(args,"s|l:new_wxMDIClientWindow",&_argc0,&_arg1))
702 return NULL;
703 if (_argc0) {
704 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
705 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIClientWindow. Expected _wxMDIParentFrame_p.");
706 return NULL;
707 }
708 }
709 _result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1);
710 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
711 _resultobj = Py_BuildValue("s",_ptemp);
712 return _resultobj;
713}
714
715static PyMethodDef mdicMethods[] = {
716 { "new_wxMDIClientWindow", _wrap_new_wxMDIClientWindow, 1 },
717 { "wxMDIChildFrame_GetPosition", _wrap_wxMDIChildFrame_GetPosition, 1 },
718 { "wxMDIChildFrame_SetClientSize", _wrap_wxMDIChildFrame_SetClientSize, 1 },
719 { "wxMDIChildFrame_SetMenuBar", _wrap_wxMDIChildFrame_SetMenuBar, 1 },
720 { "wxMDIChildFrame_Restore", _wrap_wxMDIChildFrame_Restore, 1 },
721 { "wxMDIChildFrame_Maximize", _wrap_wxMDIChildFrame_Maximize, 1 },
722 { "wxMDIChildFrame_Activate", _wrap_wxMDIChildFrame_Activate, 1 },
723 { "new_wxMDIChildFrame", _wrap_new_wxMDIChildFrame, 1 },
724 { "wxMDIParentFrame_Tile", _wrap_wxMDIParentFrame_Tile, 1 },
725 { "wxMDIParentFrame_SetToolBar", _wrap_wxMDIParentFrame_SetToolBar, 1 },
726 { "wxMDIParentFrame_GetToolBar", _wrap_wxMDIParentFrame_GetToolBar, 1 },
727 { "wxMDIParentFrame_GetClientWindow", _wrap_wxMDIParentFrame_GetClientWindow, 1 },
728 { "wxMDIParentFrame_GetActiveChild", _wrap_wxMDIParentFrame_GetActiveChild, 1 },
729 { "wxMDIParentFrame_GetClientSize", _wrap_wxMDIParentFrame_GetClientSize, 1 },
730 { "wxMDIParentFrame_Cascade", _wrap_wxMDIParentFrame_Cascade, 1 },
731 { "wxMDIParentFrame_ArrangeIcons", _wrap_wxMDIParentFrame_ArrangeIcons, 1 },
732 { "wxMDIParentFrame_ActivatePrevious", _wrap_wxMDIParentFrame_ActivatePrevious, 1 },
733 { "wxMDIParentFrame_ActivateNext", _wrap_wxMDIParentFrame_ActivateNext, 1 },
734 { "new_wxMDIParentFrame", _wrap_new_wxMDIParentFrame, 1 },
735 { NULL, NULL }
736};
737static PyObject *SWIG_globals;
738#ifdef __cplusplus
739extern "C"
740#endif
741SWIGEXPORT(void,initmdic)() {
742 PyObject *m, *d;
743 SWIG_globals = SWIG_newvarlink();
744 m = Py_InitModule("mdic", mdicMethods);
745 d = PyModule_GetDict(m);
746/*
747 * These are the pointer type-equivalency mappings.
748 * (Used by the SWIG pointer type-checker).
749 */
750 SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0);
751 SWIG_RegisterMapping("_signed_long","_long",0);
752 SWIG_RegisterMapping("_class_wxMenuBar","_wxMenuBar",0);
753 SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
754 SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
755 SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
756 SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
757 SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
758 SWIG_RegisterMapping("_class_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
759 SWIG_RegisterMapping("_class_wxEvtHandler","_wxEvtHandler",0);
760 SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0);
761 SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0);
762 SWIG_RegisterMapping("_wxMask","_class_wxMask",0);
763 SWIG_RegisterMapping("_wxPyMenu","_class_wxPyMenu",0);
764 SWIG_RegisterMapping("_wxPen","_class_wxPen",0);
765 SWIG_RegisterMapping("_byte","_unsigned_char",0);
766 SWIG_RegisterMapping("_long","_wxDash",0);
767 SWIG_RegisterMapping("_long","_unsigned_long",0);
768 SWIG_RegisterMapping("_long","_signed_long",0);
769 SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0);
770 SWIG_RegisterMapping("_wxDC","_class_wxDC",0);
771 SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0);
772 SWIG_RegisterMapping("_wxPrinterDC","_class_wxPrinterDC",0);
773 SWIG_RegisterMapping("_class_wxMenuItem","_wxMenuItem",0);
774 SWIG_RegisterMapping("_class_wxPostScriptDC","_wxPostScriptDC",0);
775 SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0);
776 SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
777 SWIG_RegisterMapping("_wxColour","_class_wxColour",0);
778 SWIG_RegisterMapping("_class_wxDialog","_wxDialog",0);
779 SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0);
780 SWIG_RegisterMapping("_wxMiniFrame","_class_wxMiniFrame",0);
781 SWIG_RegisterMapping("_uint","_unsigned_int",0);
782 SWIG_RegisterMapping("_uint","_int",0);
783 SWIG_RegisterMapping("_uint","_wxWindowID",0);
784 SWIG_RegisterMapping("_wxRect","_class_wxRect",0);
785 SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0);
786 SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0);
787 SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0);
788 SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
789 SWIG_RegisterMapping("_wxMDIChildFrame","_class_wxMDIChildFrame",0);
790 SWIG_RegisterMapping("_EBool","_signed_int",0);
791 SWIG_RegisterMapping("_EBool","_int",0);
792 SWIG_RegisterMapping("_EBool","_wxWindowID",0);
793 SWIG_RegisterMapping("_wxFont","_class_wxFont",0);
794 SWIG_RegisterMapping("_unsigned_long","_wxDash",0);
795 SWIG_RegisterMapping("_unsigned_long","_long",0);
796 SWIG_RegisterMapping("_class_wxRect","_wxRect",0);
797 SWIG_RegisterMapping("_class_wxDC","_wxDC",0);
798 SWIG_RegisterMapping("_wxMDIParentFrame","_class_wxMDIParentFrame",0);
799 SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0);
800 SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0);
801 SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0);
802 SWIG_RegisterMapping("_signed_int","_EBool",0);
803 SWIG_RegisterMapping("_signed_int","_wxWindowID",0);
804 SWIG_RegisterMapping("_signed_int","_int",0);
805 SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0);
806 SWIG_RegisterMapping("_wxMetaFileDC","_class_wxMetaFileDC",0);
807 SWIG_RegisterMapping("_wxMenu","_class_wxMenu",0);
808 SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0);
809 SWIG_RegisterMapping("_class_wxMDIChildFrame","_wxMDIChildFrame",0);
810 SWIG_RegisterMapping("_WXTYPE","_short",0);
811 SWIG_RegisterMapping("_WXTYPE","_signed_short",0);
812 SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0);
813 SWIG_RegisterMapping("_class_wxMDIClientWindow","_wxMDIClientWindow",0);
814 SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0);
815 SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0);
816 SWIG_RegisterMapping("_unsigned_short","_short",0);
817 SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
818 SWIG_RegisterMapping("_class_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
819 SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
820 SWIG_RegisterMapping("_class_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
821 SWIG_RegisterMapping("_class_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
822 SWIG_RegisterMapping("_class_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
823 SWIG_RegisterMapping("_class_wxWindow","_wxWindow",0);
824 SWIG_RegisterMapping("_class_wxFont","_wxFont",0);
825 SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0);
826 SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0);
827 SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0);
828 SWIG_RegisterMapping("_signed_short","_WXTYPE",0);
829 SWIG_RegisterMapping("_signed_short","_short",0);
830 SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0);
831 SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0);
832 SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0);
833 SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0);
834 SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0);
835 SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0);
836 SWIG_RegisterMapping("_unsigned_char","_byte",0);
837 SWIG_RegisterMapping("_class_wxMetaFileDC","_wxMetaFileDC",0);
838 SWIG_RegisterMapping("_class_wxMenu","_wxMenu",0);
839 SWIG_RegisterMapping("_unsigned_int","_uint",0);
840 SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0);
841 SWIG_RegisterMapping("_unsigned_int","_int",0);
842 SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0);
843 SWIG_RegisterMapping("_wxDialog","_class_wxDialog",0);
844 SWIG_RegisterMapping("_class_wxPyMenu","_wxPyMenu",0);
845 SWIG_RegisterMapping("_class_wxPen","_wxPen",0);
846 SWIG_RegisterMapping("_short","_WXTYPE",0);
847 SWIG_RegisterMapping("_short","_unsigned_short",0);
848 SWIG_RegisterMapping("_short","_signed_short",0);
849 SWIG_RegisterMapping("_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
850 SWIG_RegisterMapping("_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
851 SWIG_RegisterMapping("_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
852 SWIG_RegisterMapping("_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
853 SWIG_RegisterMapping("_wxFrame","_class_wxFrame",0);
854 SWIG_RegisterMapping("_wxWindowID","_EBool",0);
855 SWIG_RegisterMapping("_wxWindowID","_uint",0);
856 SWIG_RegisterMapping("_wxWindowID","_int",0);
857 SWIG_RegisterMapping("_wxWindowID","_signed_int",0);
858 SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0);
859 SWIG_RegisterMapping("_int","_EBool",0);
860 SWIG_RegisterMapping("_int","_uint",0);
861 SWIG_RegisterMapping("_int","_wxWindowID",0);
862 SWIG_RegisterMapping("_int","_unsigned_int",0);
863 SWIG_RegisterMapping("_int","_signed_int",0);
864 SWIG_RegisterMapping("_wxSize","_class_wxSize",0);
865 SWIG_RegisterMapping("_class_wxPrinterDC","_wxPrinterDC",0);
866 SWIG_RegisterMapping("_class_wxMDIParentFrame","_wxMDIParentFrame",0);
867 SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0);
868 SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0);
869 SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0);
870 SWIG_RegisterMapping("_class_wxColour","_wxColour",0);
871 SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0);
872 SWIG_RegisterMapping("_class_wxMiniFrame","_wxMiniFrame",0);
873 SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0);
874 SWIG_RegisterMapping("_class_wxSize","_wxSize",0);
875 SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0);
876 SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0);
877 SWIG_RegisterMapping("_wxMenuBar","_class_wxMenuBar",0);
878 SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
879 SWIG_RegisterMapping("_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler);
880 SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
881 SWIG_RegisterMapping("_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler);
882 SWIG_RegisterMapping("_wxEvtHandler","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
883 SWIG_RegisterMapping("_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler);
884 SWIG_RegisterMapping("_wxEvtHandler","_class_wxEvtHandler",0);
885 SWIG_RegisterMapping("_wxMenuItem","_class_wxMenuItem",0);
886 SWIG_RegisterMapping("_wxDash","_unsigned_long",0);
887 SWIG_RegisterMapping("_wxDash","_long",0);
888 SWIG_RegisterMapping("_class_wxScrolledWindow","_wxScrolledWindow",0);
889 SWIG_RegisterMapping("_wxMDIClientWindow","_class_wxMDIClientWindow",0);
890 SWIG_RegisterMapping("_wxWindow","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
891 SWIG_RegisterMapping("_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow);
892 SWIG_RegisterMapping("_wxWindow","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
893 SWIG_RegisterMapping("_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow);
894 SWIG_RegisterMapping("_wxWindow","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
895 SWIG_RegisterMapping("_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow);
896 SWIG_RegisterMapping("_wxWindow","_class_wxWindow",0);
897 SWIG_RegisterMapping("_class_wxFrame","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
898 SWIG_RegisterMapping("_class_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame);
899 SWIG_RegisterMapping("_class_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
900 SWIG_RegisterMapping("_class_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame);
901 SWIG_RegisterMapping("_class_wxFrame","_wxFrame",0);
902}