]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/mdi.cpp
patch from Dimitri fixing a few memory leaks and unTABbing the sources
[wxWidgets.git] / wxPython / src / msw / mdi.cpp
1 /*
2 * FILE : src/msw/mdi.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initmdic
55
56 #define SWIG_name "mdic"
57
58 #include "helpers.h"
59
60
61 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
62 PyObject* o2;
63 PyObject* o3;
64
65 if (!target) {
66 target = o;
67 } else if (target == Py_None) {
68 Py_DECREF(Py_None);
69 target = o;
70 } else {
71 if (!PyTuple_Check(target)) {
72 o2 = target;
73 target = PyTuple_New(1);
74 PyTuple_SetItem(target, 0, o2);
75 }
76 o3 = PyTuple_New(1);
77 PyTuple_SetItem(o3, 0, o);
78
79 o2 = target;
80 target = PySequence_Concat(o2, o3);
81 Py_DECREF(o2);
82 Py_DECREF(o3);
83 }
84 return target;
85 }
86 #ifdef __cplusplus
87 extern "C" {
88 #endif
89 static void *SwigwxMDIParentFrameTowxFrame(void *ptr) {
90 wxMDIParentFrame *src;
91 wxFrame *dest;
92 src = (wxMDIParentFrame *) ptr;
93 dest = (wxFrame *) src;
94 return (void *) dest;
95 }
96
97 static void *SwigwxMDIParentFrameTowxTopLevelWindow(void *ptr) {
98 wxMDIParentFrame *src;
99 wxTopLevelWindow *dest;
100 src = (wxMDIParentFrame *) ptr;
101 dest = (wxTopLevelWindow *) src;
102 return (void *) dest;
103 }
104
105 static void *SwigwxMDIParentFrameTowxWindow(void *ptr) {
106 wxMDIParentFrame *src;
107 wxWindow *dest;
108 src = (wxMDIParentFrame *) ptr;
109 dest = (wxWindow *) src;
110 return (void *) dest;
111 }
112
113 static void *SwigwxMDIParentFrameTowxEvtHandler(void *ptr) {
114 wxMDIParentFrame *src;
115 wxEvtHandler *dest;
116 src = (wxMDIParentFrame *) ptr;
117 dest = (wxEvtHandler *) src;
118 return (void *) dest;
119 }
120
121 static void *SwigwxMDIParentFrameTowxObject(void *ptr) {
122 wxMDIParentFrame *src;
123 wxObject *dest;
124 src = (wxMDIParentFrame *) ptr;
125 dest = (wxObject *) src;
126 return (void *) dest;
127 }
128
129 #define new_wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
130 static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
131 PyObject * _resultobj;
132 wxMDIParentFrame * _result;
133 wxWindow * _arg0;
134 wxWindowID _arg1;
135 wxString * _arg2;
136 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
137 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
138 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL;
139 char * _arg6 = (char *) "frame";
140 PyObject * _argo0 = 0;
141 PyObject * _obj2 = 0;
142 wxPoint temp;
143 PyObject * _obj3 = 0;
144 wxSize temp0;
145 PyObject * _obj4 = 0;
146 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
147 char _ptemp[128];
148
149 self = self;
150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMDIParentFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
151 return NULL;
152 if (_argo0) {
153 if (_argo0 == Py_None) { _arg0 = NULL; }
154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIParentFrame. Expected _wxWindow_p.");
156 return NULL;
157 }
158 }
159 {
160 _arg2 = wxString_in_helper(_obj2);
161 if (_arg2 == NULL)
162 return NULL;
163 }
164 if (_obj3)
165 {
166 _arg3 = &temp;
167 if (! wxPoint_helper(_obj3, &_arg3))
168 return NULL;
169 }
170 if (_obj4)
171 {
172 _arg4 = &temp0;
173 if (! wxSize_helper(_obj4, &_arg4))
174 return NULL;
175 }
176 {
177 PyThreadState* __tstate = wxPyBeginAllowThreads();
178 _result = (wxMDIParentFrame *)new_wxMDIParentFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
179
180 wxPyEndAllowThreads(__tstate);
181 if (PyErr_Occurred()) return NULL;
182 } if (_result) {
183 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p");
184 _resultobj = Py_BuildValue("s",_ptemp);
185 } else {
186 Py_INCREF(Py_None);
187 _resultobj = Py_None;
188 }
189 {
190 if (_obj2)
191 delete _arg2;
192 }
193 return _resultobj;
194 }
195
196 #define new_wxPreMDIParentFrame() (new wxMDIParentFrame())
197 static PyObject *_wrap_new_wxPreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
198 PyObject * _resultobj;
199 wxMDIParentFrame * _result;
200 char *_kwnames[] = { NULL };
201 char _ptemp[128];
202
203 self = self;
204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreMDIParentFrame",_kwnames))
205 return NULL;
206 {
207 PyThreadState* __tstate = wxPyBeginAllowThreads();
208 _result = (wxMDIParentFrame *)new_wxPreMDIParentFrame();
209
210 wxPyEndAllowThreads(__tstate);
211 if (PyErr_Occurred()) return NULL;
212 } if (_result) {
213 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p");
214 _resultobj = Py_BuildValue("s",_ptemp);
215 } else {
216 Py_INCREF(Py_None);
217 _resultobj = Py_None;
218 }
219 return _resultobj;
220 }
221
222 #define wxMDIParentFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
223 static PyObject *_wrap_wxMDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
224 PyObject * _resultobj;
225 bool _result;
226 wxMDIParentFrame * _arg0;
227 wxWindow * _arg1;
228 wxWindowID _arg2;
229 wxString * _arg3;
230 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
231 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
232 long _arg6 = (long ) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL;
233 char * _arg7 = (char *) "frame";
234 PyObject * _argo0 = 0;
235 PyObject * _argo1 = 0;
236 PyObject * _obj3 = 0;
237 wxPoint temp;
238 PyObject * _obj4 = 0;
239 wxSize temp0;
240 PyObject * _obj5 = 0;
241 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
242
243 self = self;
244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxMDIParentFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
245 return NULL;
246 if (_argo0) {
247 if (_argo0 == Py_None) { _arg0 = NULL; }
248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Create. Expected _wxMDIParentFrame_p.");
250 return NULL;
251 }
252 }
253 if (_argo1) {
254 if (_argo1 == Py_None) { _arg1 = NULL; }
255 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
256 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIParentFrame_Create. Expected _wxWindow_p.");
257 return NULL;
258 }
259 }
260 {
261 _arg3 = wxString_in_helper(_obj3);
262 if (_arg3 == NULL)
263 return NULL;
264 }
265 if (_obj4)
266 {
267 _arg4 = &temp;
268 if (! wxPoint_helper(_obj4, &_arg4))
269 return NULL;
270 }
271 if (_obj5)
272 {
273 _arg5 = &temp0;
274 if (! wxSize_helper(_obj5, &_arg5))
275 return NULL;
276 }
277 {
278 PyThreadState* __tstate = wxPyBeginAllowThreads();
279 _result = (bool )wxMDIParentFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
280
281 wxPyEndAllowThreads(__tstate);
282 if (PyErr_Occurred()) return NULL;
283 } _resultobj = Py_BuildValue("i",_result);
284 {
285 if (_obj3)
286 delete _arg3;
287 }
288 return _resultobj;
289 }
290
291 #define wxMDIParentFrame_ActivateNext(_swigobj) (_swigobj->ActivateNext())
292 static PyObject *_wrap_wxMDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) {
293 PyObject * _resultobj;
294 wxMDIParentFrame * _arg0;
295 PyObject * _argo0 = 0;
296 char *_kwnames[] = { "self", NULL };
297
298 self = self;
299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_ActivateNext",_kwnames,&_argo0))
300 return NULL;
301 if (_argo0) {
302 if (_argo0 == Py_None) { _arg0 = NULL; }
303 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivateNext. Expected _wxMDIParentFrame_p.");
305 return NULL;
306 }
307 }
308 {
309 PyThreadState* __tstate = wxPyBeginAllowThreads();
310 wxMDIParentFrame_ActivateNext(_arg0);
311
312 wxPyEndAllowThreads(__tstate);
313 if (PyErr_Occurred()) return NULL;
314 } Py_INCREF(Py_None);
315 _resultobj = Py_None;
316 return _resultobj;
317 }
318
319 #define wxMDIParentFrame_ActivatePrevious(_swigobj) (_swigobj->ActivatePrevious())
320 static PyObject *_wrap_wxMDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) {
321 PyObject * _resultobj;
322 wxMDIParentFrame * _arg0;
323 PyObject * _argo0 = 0;
324 char *_kwnames[] = { "self", NULL };
325
326 self = self;
327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_ActivatePrevious",_kwnames,&_argo0))
328 return NULL;
329 if (_argo0) {
330 if (_argo0 == Py_None) { _arg0 = NULL; }
331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ActivatePrevious. Expected _wxMDIParentFrame_p.");
333 return NULL;
334 }
335 }
336 {
337 PyThreadState* __tstate = wxPyBeginAllowThreads();
338 wxMDIParentFrame_ActivatePrevious(_arg0);
339
340 wxPyEndAllowThreads(__tstate);
341 if (PyErr_Occurred()) return NULL;
342 } Py_INCREF(Py_None);
343 _resultobj = Py_None;
344 return _resultobj;
345 }
346
347 #define wxMDIParentFrame_ArrangeIcons(_swigobj) (_swigobj->ArrangeIcons())
348 static PyObject *_wrap_wxMDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) {
349 PyObject * _resultobj;
350 wxMDIParentFrame * _arg0;
351 PyObject * _argo0 = 0;
352 char *_kwnames[] = { "self", NULL };
353
354 self = self;
355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_ArrangeIcons",_kwnames,&_argo0))
356 return NULL;
357 if (_argo0) {
358 if (_argo0 == Py_None) { _arg0 = NULL; }
359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_ArrangeIcons. Expected _wxMDIParentFrame_p.");
361 return NULL;
362 }
363 }
364 {
365 PyThreadState* __tstate = wxPyBeginAllowThreads();
366 wxMDIParentFrame_ArrangeIcons(_arg0);
367
368 wxPyEndAllowThreads(__tstate);
369 if (PyErr_Occurred()) return NULL;
370 } Py_INCREF(Py_None);
371 _resultobj = Py_None;
372 return _resultobj;
373 }
374
375 #define wxMDIParentFrame_Cascade(_swigobj) (_swigobj->Cascade())
376 static PyObject *_wrap_wxMDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) {
377 PyObject * _resultobj;
378 wxMDIParentFrame * _arg0;
379 PyObject * _argo0 = 0;
380 char *_kwnames[] = { "self", NULL };
381
382 self = self;
383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_Cascade",_kwnames,&_argo0))
384 return NULL;
385 if (_argo0) {
386 if (_argo0 == Py_None) { _arg0 = NULL; }
387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Cascade. Expected _wxMDIParentFrame_p.");
389 return NULL;
390 }
391 }
392 {
393 PyThreadState* __tstate = wxPyBeginAllowThreads();
394 wxMDIParentFrame_Cascade(_arg0);
395
396 wxPyEndAllowThreads(__tstate);
397 if (PyErr_Occurred()) return NULL;
398 } Py_INCREF(Py_None);
399 _resultobj = Py_None;
400 return _resultobj;
401 }
402
403 #define wxMDIParentFrame_GetActiveChild(_swigobj) (_swigobj->GetActiveChild())
404 static PyObject *_wrap_wxMDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
405 PyObject * _resultobj;
406 wxMDIChildFrame * _result;
407 wxMDIParentFrame * _arg0;
408 PyObject * _argo0 = 0;
409 char *_kwnames[] = { "self", NULL };
410
411 self = self;
412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetActiveChild",_kwnames,&_argo0))
413 return NULL;
414 if (_argo0) {
415 if (_argo0 == Py_None) { _arg0 = NULL; }
416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetActiveChild. Expected _wxMDIParentFrame_p.");
418 return NULL;
419 }
420 }
421 {
422 PyThreadState* __tstate = wxPyBeginAllowThreads();
423 _result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0);
424
425 wxPyEndAllowThreads(__tstate);
426 if (PyErr_Occurred()) return NULL;
427 }{ _resultobj = wxPyMake_wxObject(_result); }
428 return _resultobj;
429 }
430
431 #define wxMDIParentFrame_GetClientWindow(_swigobj) (_swigobj->GetClientWindow())
432 static PyObject *_wrap_wxMDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
433 PyObject * _resultobj;
434 wxMDIClientWindow * _result;
435 wxMDIParentFrame * _arg0;
436 PyObject * _argo0 = 0;
437 char *_kwnames[] = { "self", NULL };
438
439 self = self;
440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetClientWindow",_kwnames,&_argo0))
441 return NULL;
442 if (_argo0) {
443 if (_argo0 == Py_None) { _arg0 = NULL; }
444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetClientWindow. Expected _wxMDIParentFrame_p.");
446 return NULL;
447 }
448 }
449 {
450 PyThreadState* __tstate = wxPyBeginAllowThreads();
451 _result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0);
452
453 wxPyEndAllowThreads(__tstate);
454 if (PyErr_Occurred()) return NULL;
455 }{ _resultobj = wxPyMake_wxObject(_result); }
456 return _resultobj;
457 }
458
459 #define wxMDIParentFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
460 static PyObject *_wrap_wxMDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
461 PyObject * _resultobj;
462 wxWindow * _result;
463 wxMDIParentFrame * _arg0;
464 PyObject * _argo0 = 0;
465 char *_kwnames[] = { "self", NULL };
466
467 self = self;
468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetToolBar",_kwnames,&_argo0))
469 return NULL;
470 if (_argo0) {
471 if (_argo0 == Py_None) { _arg0 = NULL; }
472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetToolBar. Expected _wxMDIParentFrame_p.");
474 return NULL;
475 }
476 }
477 {
478 PyThreadState* __tstate = wxPyBeginAllowThreads();
479 _result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0);
480
481 wxPyEndAllowThreads(__tstate);
482 if (PyErr_Occurred()) return NULL;
483 }{ _resultobj = wxPyMake_wxObject(_result); }
484 return _resultobj;
485 }
486
487 #define wxMDIParentFrame_GetWindowMenu(_swigobj) (_swigobj->GetWindowMenu())
488 static PyObject *_wrap_wxMDIParentFrame_GetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
489 PyObject * _resultobj;
490 wxMenu * _result;
491 wxMDIParentFrame * _arg0;
492 PyObject * _argo0 = 0;
493 char *_kwnames[] = { "self", NULL };
494
495 self = self;
496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetWindowMenu",_kwnames,&_argo0))
497 return NULL;
498 if (_argo0) {
499 if (_argo0 == Py_None) { _arg0 = NULL; }
500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_GetWindowMenu. Expected _wxMDIParentFrame_p.");
502 return NULL;
503 }
504 }
505 {
506 PyThreadState* __tstate = wxPyBeginAllowThreads();
507 _result = (wxMenu *)wxMDIParentFrame_GetWindowMenu(_arg0);
508
509 wxPyEndAllowThreads(__tstate);
510 if (PyErr_Occurred()) return NULL;
511 }{ _resultobj = wxPyMake_wxObject(_result); }
512 return _resultobj;
513 }
514
515 #define wxMDIParentFrame_SetWindowMenu(_swigobj,_swigarg0) (_swigobj->SetWindowMenu(_swigarg0))
516 static PyObject *_wrap_wxMDIParentFrame_SetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
517 PyObject * _resultobj;
518 wxMDIParentFrame * _arg0;
519 wxMenu * _arg1;
520 PyObject * _argo0 = 0;
521 PyObject * _argo1 = 0;
522 char *_kwnames[] = { "self","menu", NULL };
523
524 self = self;
525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMDIParentFrame_SetWindowMenu",_kwnames,&_argo0,&_argo1))
526 return NULL;
527 if (_argo0) {
528 if (_argo0 == Py_None) { _arg0 = NULL; }
529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_SetWindowMenu. Expected _wxMDIParentFrame_p.");
531 return NULL;
532 }
533 }
534 if (_argo1) {
535 if (_argo1 == Py_None) { _arg1 = NULL; }
536 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
537 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIParentFrame_SetWindowMenu. Expected _wxMenu_p.");
538 return NULL;
539 }
540 }
541 {
542 PyThreadState* __tstate = wxPyBeginAllowThreads();
543 wxMDIParentFrame_SetWindowMenu(_arg0,_arg1);
544
545 wxPyEndAllowThreads(__tstate);
546 if (PyErr_Occurred()) return NULL;
547 } Py_INCREF(Py_None);
548 _resultobj = Py_None;
549 return _resultobj;
550 }
551
552 #define wxMDIParentFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0))
553 static PyObject *_wrap_wxMDIParentFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
554 PyObject * _resultobj;
555 wxMDIParentFrame * _arg0;
556 wxToolBar * _arg1;
557 PyObject * _argo0 = 0;
558 PyObject * _argo1 = 0;
559 char *_kwnames[] = { "self","toolbar", NULL };
560
561 self = self;
562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMDIParentFrame_SetToolBar",_kwnames,&_argo0,&_argo1))
563 return NULL;
564 if (_argo0) {
565 if (_argo0 == Py_None) { _arg0 = NULL; }
566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_SetToolBar. Expected _wxMDIParentFrame_p.");
568 return NULL;
569 }
570 }
571 if (_argo1) {
572 if (_argo1 == Py_None) { _arg1 = NULL; }
573 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBar_p")) {
574 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIParentFrame_SetToolBar. Expected _wxToolBar_p.");
575 return NULL;
576 }
577 }
578 {
579 PyThreadState* __tstate = wxPyBeginAllowThreads();
580 wxMDIParentFrame_SetToolBar(_arg0,_arg1);
581
582 wxPyEndAllowThreads(__tstate);
583 if (PyErr_Occurred()) return NULL;
584 } Py_INCREF(Py_None);
585 _resultobj = Py_None;
586 return _resultobj;
587 }
588
589 #define wxMDIParentFrame_Tile(_swigobj) (_swigobj->Tile())
590 static PyObject *_wrap_wxMDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) {
591 PyObject * _resultobj;
592 wxMDIParentFrame * _arg0;
593 PyObject * _argo0 = 0;
594 char *_kwnames[] = { "self", NULL };
595
596 self = self;
597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_Tile",_kwnames,&_argo0))
598 return NULL;
599 if (_argo0) {
600 if (_argo0 == Py_None) { _arg0 = NULL; }
601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIParentFrame_Tile. Expected _wxMDIParentFrame_p.");
603 return NULL;
604 }
605 }
606 {
607 PyThreadState* __tstate = wxPyBeginAllowThreads();
608 wxMDIParentFrame_Tile(_arg0);
609
610 wxPyEndAllowThreads(__tstate);
611 if (PyErr_Occurred()) return NULL;
612 } Py_INCREF(Py_None);
613 _resultobj = Py_None;
614 return _resultobj;
615 }
616
617 static void *SwigwxMDIChildFrameTowxFrame(void *ptr) {
618 wxMDIChildFrame *src;
619 wxFrame *dest;
620 src = (wxMDIChildFrame *) ptr;
621 dest = (wxFrame *) src;
622 return (void *) dest;
623 }
624
625 static void *SwigwxMDIChildFrameTowxTopLevelWindow(void *ptr) {
626 wxMDIChildFrame *src;
627 wxTopLevelWindow *dest;
628 src = (wxMDIChildFrame *) ptr;
629 dest = (wxTopLevelWindow *) src;
630 return (void *) dest;
631 }
632
633 static void *SwigwxMDIChildFrameTowxWindow(void *ptr) {
634 wxMDIChildFrame *src;
635 wxWindow *dest;
636 src = (wxMDIChildFrame *) ptr;
637 dest = (wxWindow *) src;
638 return (void *) dest;
639 }
640
641 static void *SwigwxMDIChildFrameTowxEvtHandler(void *ptr) {
642 wxMDIChildFrame *src;
643 wxEvtHandler *dest;
644 src = (wxMDIChildFrame *) ptr;
645 dest = (wxEvtHandler *) src;
646 return (void *) dest;
647 }
648
649 static void *SwigwxMDIChildFrameTowxObject(void *ptr) {
650 wxMDIChildFrame *src;
651 wxObject *dest;
652 src = (wxMDIChildFrame *) ptr;
653 dest = (wxObject *) src;
654 return (void *) dest;
655 }
656
657 #define new_wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
658 static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
659 PyObject * _resultobj;
660 wxMDIChildFrame * _result;
661 wxMDIParentFrame * _arg0;
662 wxWindowID _arg1;
663 wxString * _arg2;
664 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
665 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
666 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
667 char * _arg6 = (char *) "frame";
668 PyObject * _argo0 = 0;
669 PyObject * _obj2 = 0;
670 wxPoint temp;
671 PyObject * _obj3 = 0;
672 wxSize temp0;
673 PyObject * _obj4 = 0;
674 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
675 char _ptemp[128];
676
677 self = self;
678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMDIChildFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
679 return NULL;
680 if (_argo0) {
681 if (_argo0 == Py_None) { _arg0 = NULL; }
682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIChildFrame. Expected _wxMDIParentFrame_p.");
684 return NULL;
685 }
686 }
687 {
688 _arg2 = wxString_in_helper(_obj2);
689 if (_arg2 == NULL)
690 return NULL;
691 }
692 if (_obj3)
693 {
694 _arg3 = &temp;
695 if (! wxPoint_helper(_obj3, &_arg3))
696 return NULL;
697 }
698 if (_obj4)
699 {
700 _arg4 = &temp0;
701 if (! wxSize_helper(_obj4, &_arg4))
702 return NULL;
703 }
704 {
705 PyThreadState* __tstate = wxPyBeginAllowThreads();
706 _result = (wxMDIChildFrame *)new_wxMDIChildFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
707
708 wxPyEndAllowThreads(__tstate);
709 if (PyErr_Occurred()) return NULL;
710 } if (_result) {
711 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
712 _resultobj = Py_BuildValue("s",_ptemp);
713 } else {
714 Py_INCREF(Py_None);
715 _resultobj = Py_None;
716 }
717 {
718 if (_obj2)
719 delete _arg2;
720 }
721 return _resultobj;
722 }
723
724 #define new_wxPreMDIChildFrame() (new wxMDIChildFrame())
725 static PyObject *_wrap_new_wxPreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
726 PyObject * _resultobj;
727 wxMDIChildFrame * _result;
728 char *_kwnames[] = { NULL };
729 char _ptemp[128];
730
731 self = self;
732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreMDIChildFrame",_kwnames))
733 return NULL;
734 {
735 PyThreadState* __tstate = wxPyBeginAllowThreads();
736 _result = (wxMDIChildFrame *)new_wxPreMDIChildFrame();
737
738 wxPyEndAllowThreads(__tstate);
739 if (PyErr_Occurred()) return NULL;
740 } if (_result) {
741 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
742 _resultobj = Py_BuildValue("s",_ptemp);
743 } else {
744 Py_INCREF(Py_None);
745 _resultobj = Py_None;
746 }
747 return _resultobj;
748 }
749
750 #define wxMDIChildFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
751 static PyObject *_wrap_wxMDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
752 PyObject * _resultobj;
753 bool _result;
754 wxMDIChildFrame * _arg0;
755 wxMDIParentFrame * _arg1;
756 wxWindowID _arg2;
757 wxString * _arg3;
758 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
759 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
760 long _arg6 = (long ) wxDEFAULT_FRAME_STYLE;
761 char * _arg7 = (char *) "frame";
762 PyObject * _argo0 = 0;
763 PyObject * _argo1 = 0;
764 PyObject * _obj3 = 0;
765 wxPoint temp;
766 PyObject * _obj4 = 0;
767 wxSize temp0;
768 PyObject * _obj5 = 0;
769 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
770
771 self = self;
772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxMDIChildFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
773 return NULL;
774 if (_argo0) {
775 if (_argo0 == Py_None) { _arg0 = NULL; }
776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Create. Expected _wxMDIChildFrame_p.");
778 return NULL;
779 }
780 }
781 if (_argo1) {
782 if (_argo1 == Py_None) { _arg1 = NULL; }
783 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMDIParentFrame_p")) {
784 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIChildFrame_Create. Expected _wxMDIParentFrame_p.");
785 return NULL;
786 }
787 }
788 {
789 _arg3 = wxString_in_helper(_obj3);
790 if (_arg3 == NULL)
791 return NULL;
792 }
793 if (_obj4)
794 {
795 _arg4 = &temp;
796 if (! wxPoint_helper(_obj4, &_arg4))
797 return NULL;
798 }
799 if (_obj5)
800 {
801 _arg5 = &temp0;
802 if (! wxSize_helper(_obj5, &_arg5))
803 return NULL;
804 }
805 {
806 PyThreadState* __tstate = wxPyBeginAllowThreads();
807 _result = (bool )wxMDIChildFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
808
809 wxPyEndAllowThreads(__tstate);
810 if (PyErr_Occurred()) return NULL;
811 } _resultobj = Py_BuildValue("i",_result);
812 {
813 if (_obj3)
814 delete _arg3;
815 }
816 return _resultobj;
817 }
818
819 #define wxMDIChildFrame_Activate(_swigobj) (_swigobj->Activate())
820 static PyObject *_wrap_wxMDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) {
821 PyObject * _resultobj;
822 wxMDIChildFrame * _arg0;
823 PyObject * _argo0 = 0;
824 char *_kwnames[] = { "self", NULL };
825
826 self = self;
827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIChildFrame_Activate",_kwnames,&_argo0))
828 return NULL;
829 if (_argo0) {
830 if (_argo0 == Py_None) { _arg0 = NULL; }
831 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
832 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Activate. Expected _wxMDIChildFrame_p.");
833 return NULL;
834 }
835 }
836 {
837 PyThreadState* __tstate = wxPyBeginAllowThreads();
838 wxMDIChildFrame_Activate(_arg0);
839
840 wxPyEndAllowThreads(__tstate);
841 if (PyErr_Occurred()) return NULL;
842 } Py_INCREF(Py_None);
843 _resultobj = Py_None;
844 return _resultobj;
845 }
846
847 #define wxMDIChildFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0))
848 static PyObject *_wrap_wxMDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) {
849 PyObject * _resultobj;
850 wxMDIChildFrame * _arg0;
851 bool _arg1;
852 PyObject * _argo0 = 0;
853 int tempbool1;
854 char *_kwnames[] = { "self","maximize", NULL };
855
856 self = self;
857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMDIChildFrame_Maximize",_kwnames,&_argo0,&tempbool1))
858 return NULL;
859 if (_argo0) {
860 if (_argo0 == Py_None) { _arg0 = NULL; }
861 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
862 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Maximize. Expected _wxMDIChildFrame_p.");
863 return NULL;
864 }
865 }
866 _arg1 = (bool ) tempbool1;
867 {
868 PyThreadState* __tstate = wxPyBeginAllowThreads();
869 wxMDIChildFrame_Maximize(_arg0,_arg1);
870
871 wxPyEndAllowThreads(__tstate);
872 if (PyErr_Occurred()) return NULL;
873 } Py_INCREF(Py_None);
874 _resultobj = Py_None;
875 return _resultobj;
876 }
877
878 #define wxMDIChildFrame_Restore(_swigobj) (_swigobj->Restore())
879 static PyObject *_wrap_wxMDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) {
880 PyObject * _resultobj;
881 wxMDIChildFrame * _arg0;
882 PyObject * _argo0 = 0;
883 char *_kwnames[] = { "self", NULL };
884
885 self = self;
886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIChildFrame_Restore",_kwnames,&_argo0))
887 return NULL;
888 if (_argo0) {
889 if (_argo0 == Py_None) { _arg0 = NULL; }
890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIChildFrame_Restore. Expected _wxMDIChildFrame_p.");
892 return NULL;
893 }
894 }
895 {
896 PyThreadState* __tstate = wxPyBeginAllowThreads();
897 wxMDIChildFrame_Restore(_arg0);
898
899 wxPyEndAllowThreads(__tstate);
900 if (PyErr_Occurred()) return NULL;
901 } Py_INCREF(Py_None);
902 _resultobj = Py_None;
903 return _resultobj;
904 }
905
906 static void *SwigwxMDIClientWindowTowxWindow(void *ptr) {
907 wxMDIClientWindow *src;
908 wxWindow *dest;
909 src = (wxMDIClientWindow *) ptr;
910 dest = (wxWindow *) src;
911 return (void *) dest;
912 }
913
914 static void *SwigwxMDIClientWindowTowxEvtHandler(void *ptr) {
915 wxMDIClientWindow *src;
916 wxEvtHandler *dest;
917 src = (wxMDIClientWindow *) ptr;
918 dest = (wxEvtHandler *) src;
919 return (void *) dest;
920 }
921
922 static void *SwigwxMDIClientWindowTowxObject(void *ptr) {
923 wxMDIClientWindow *src;
924 wxObject *dest;
925 src = (wxMDIClientWindow *) ptr;
926 dest = (wxObject *) src;
927 return (void *) dest;
928 }
929
930 #define new_wxMDIClientWindow(_swigarg0,_swigarg1) (new wxMDIClientWindow(_swigarg0,_swigarg1))
931 static PyObject *_wrap_new_wxMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
932 PyObject * _resultobj;
933 wxMDIClientWindow * _result;
934 wxMDIParentFrame * _arg0;
935 long _arg1 = (long ) 0;
936 PyObject * _argo0 = 0;
937 char *_kwnames[] = { "parent","style", NULL };
938 char _ptemp[128];
939
940 self = self;
941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:new_wxMDIClientWindow",_kwnames,&_argo0,&_arg1))
942 return NULL;
943 if (_argo0) {
944 if (_argo0 == Py_None) { _arg0 = NULL; }
945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIParentFrame_p")) {
946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMDIClientWindow. Expected _wxMDIParentFrame_p.");
947 return NULL;
948 }
949 }
950 {
951 PyThreadState* __tstate = wxPyBeginAllowThreads();
952 _result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1);
953
954 wxPyEndAllowThreads(__tstate);
955 if (PyErr_Occurred()) return NULL;
956 } if (_result) {
957 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
958 _resultobj = Py_BuildValue("s",_ptemp);
959 } else {
960 Py_INCREF(Py_None);
961 _resultobj = Py_None;
962 }
963 return _resultobj;
964 }
965
966 #define new_wxPreMDIClientWindow() (new wxMDIClientWindow())
967 static PyObject *_wrap_new_wxPreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
968 PyObject * _resultobj;
969 wxMDIClientWindow * _result;
970 char *_kwnames[] = { NULL };
971 char _ptemp[128];
972
973 self = self;
974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreMDIClientWindow",_kwnames))
975 return NULL;
976 {
977 PyThreadState* __tstate = wxPyBeginAllowThreads();
978 _result = (wxMDIClientWindow *)new_wxPreMDIClientWindow();
979
980 wxPyEndAllowThreads(__tstate);
981 if (PyErr_Occurred()) return NULL;
982 } if (_result) {
983 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
984 _resultobj = Py_BuildValue("s",_ptemp);
985 } else {
986 Py_INCREF(Py_None);
987 _resultobj = Py_None;
988 }
989 return _resultobj;
990 }
991
992 #define wxMDIClientWindow_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
993 static PyObject *_wrap_wxMDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
994 PyObject * _resultobj;
995 bool _result;
996 wxMDIClientWindow * _arg0;
997 wxMDIParentFrame * _arg1;
998 long _arg2 = (long ) 0;
999 PyObject * _argo0 = 0;
1000 PyObject * _argo1 = 0;
1001 char *_kwnames[] = { "self","parent","style", NULL };
1002
1003 self = self;
1004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxMDIClientWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2))
1005 return NULL;
1006 if (_argo0) {
1007 if (_argo0 == Py_None) { _arg0 = NULL; }
1008 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMDIClientWindow_p")) {
1009 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMDIClientWindow_Create. Expected _wxMDIClientWindow_p.");
1010 return NULL;
1011 }
1012 }
1013 if (_argo1) {
1014 if (_argo1 == Py_None) { _arg1 = NULL; }
1015 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMDIParentFrame_p")) {
1016 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMDIClientWindow_Create. Expected _wxMDIParentFrame_p.");
1017 return NULL;
1018 }
1019 }
1020 {
1021 PyThreadState* __tstate = wxPyBeginAllowThreads();
1022 _result = (bool )wxMDIClientWindow_Create(_arg0,_arg1,_arg2);
1023
1024 wxPyEndAllowThreads(__tstate);
1025 if (PyErr_Occurred()) return NULL;
1026 } _resultobj = Py_BuildValue("i",_result);
1027 return _resultobj;
1028 }
1029
1030 static PyMethodDef mdicMethods[] = {
1031 { "wxMDIClientWindow_Create", (PyCFunction) _wrap_wxMDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS },
1032 { "new_wxPreMDIClientWindow", (PyCFunction) _wrap_new_wxPreMDIClientWindow, METH_VARARGS | METH_KEYWORDS },
1033 { "new_wxMDIClientWindow", (PyCFunction) _wrap_new_wxMDIClientWindow, METH_VARARGS | METH_KEYWORDS },
1034 { "wxMDIChildFrame_Restore", (PyCFunction) _wrap_wxMDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS },
1035 { "wxMDIChildFrame_Maximize", (PyCFunction) _wrap_wxMDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS },
1036 { "wxMDIChildFrame_Activate", (PyCFunction) _wrap_wxMDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS },
1037 { "wxMDIChildFrame_Create", (PyCFunction) _wrap_wxMDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS },
1038 { "new_wxPreMDIChildFrame", (PyCFunction) _wrap_new_wxPreMDIChildFrame, METH_VARARGS | METH_KEYWORDS },
1039 { "new_wxMDIChildFrame", (PyCFunction) _wrap_new_wxMDIChildFrame, METH_VARARGS | METH_KEYWORDS },
1040 { "wxMDIParentFrame_Tile", (PyCFunction) _wrap_wxMDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS },
1041 { "wxMDIParentFrame_SetToolBar", (PyCFunction) _wrap_wxMDIParentFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS },
1042 { "wxMDIParentFrame_SetWindowMenu", (PyCFunction) _wrap_wxMDIParentFrame_SetWindowMenu, METH_VARARGS | METH_KEYWORDS },
1043 { "wxMDIParentFrame_GetWindowMenu", (PyCFunction) _wrap_wxMDIParentFrame_GetWindowMenu, METH_VARARGS | METH_KEYWORDS },
1044 { "wxMDIParentFrame_GetToolBar", (PyCFunction) _wrap_wxMDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS },
1045 { "wxMDIParentFrame_GetClientWindow", (PyCFunction) _wrap_wxMDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS },
1046 { "wxMDIParentFrame_GetActiveChild", (PyCFunction) _wrap_wxMDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS },
1047 { "wxMDIParentFrame_Cascade", (PyCFunction) _wrap_wxMDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS },
1048 { "wxMDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_wxMDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS },
1049 { "wxMDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_wxMDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS },
1050 { "wxMDIParentFrame_ActivateNext", (PyCFunction) _wrap_wxMDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS },
1051 { "wxMDIParentFrame_Create", (PyCFunction) _wrap_wxMDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS },
1052 { "new_wxPreMDIParentFrame", (PyCFunction) _wrap_new_wxPreMDIParentFrame, METH_VARARGS | METH_KEYWORDS },
1053 { "new_wxMDIParentFrame", (PyCFunction) _wrap_new_wxMDIParentFrame, METH_VARARGS | METH_KEYWORDS },
1054 { NULL, NULL }
1055 };
1056 #ifdef __cplusplus
1057 }
1058 #endif
1059 /*
1060 * This table is used by the pointer type-checker
1061 */
1062 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1063 { "_signed_long","_long",0},
1064 { "_wxPrintQuality","_wxCoord",0},
1065 { "_wxPrintQuality","_int",0},
1066 { "_wxPrintQuality","_signed_int",0},
1067 { "_wxPrintQuality","_unsigned_int",0},
1068 { "_wxPrintQuality","_wxWindowID",0},
1069 { "_wxPrintQuality","_uint",0},
1070 { "_wxPrintQuality","_EBool",0},
1071 { "_wxPrintQuality","_size_t",0},
1072 { "_wxPrintQuality","_time_t",0},
1073 { "_byte","_unsigned_char",0},
1074 { "_long","_unsigned_long",0},
1075 { "_long","_signed_long",0},
1076 { "_size_t","_wxCoord",0},
1077 { "_size_t","_wxPrintQuality",0},
1078 { "_size_t","_time_t",0},
1079 { "_size_t","_unsigned_int",0},
1080 { "_size_t","_int",0},
1081 { "_size_t","_wxWindowID",0},
1082 { "_size_t","_uint",0},
1083 { "_wxTopLevelWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxTopLevelWindow},
1084 { "_wxTopLevelWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxTopLevelWindow},
1085 { "_uint","_wxCoord",0},
1086 { "_uint","_wxPrintQuality",0},
1087 { "_uint","_time_t",0},
1088 { "_uint","_size_t",0},
1089 { "_uint","_unsigned_int",0},
1090 { "_uint","_int",0},
1091 { "_uint","_wxWindowID",0},
1092 { "_wxChar","_char",0},
1093 { "_char","_wxChar",0},
1094 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1095 { "_EBool","_wxCoord",0},
1096 { "_EBool","_wxPrintQuality",0},
1097 { "_EBool","_signed_int",0},
1098 { "_EBool","_int",0},
1099 { "_EBool","_wxWindowID",0},
1100 { "_unsigned_long","_long",0},
1101 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1102 { "_signed_int","_wxCoord",0},
1103 { "_signed_int","_wxPrintQuality",0},
1104 { "_signed_int","_EBool",0},
1105 { "_signed_int","_wxWindowID",0},
1106 { "_signed_int","_int",0},
1107 { "_WXTYPE","_short",0},
1108 { "_WXTYPE","_signed_short",0},
1109 { "_WXTYPE","_unsigned_short",0},
1110 { "_unsigned_short","_WXTYPE",0},
1111 { "_unsigned_short","_short",0},
1112 { "_wxObject","_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject},
1113 { "_wxObject","_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject},
1114 { "_wxObject","_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject},
1115 { "_signed_short","_WXTYPE",0},
1116 { "_signed_short","_short",0},
1117 { "_unsigned_char","_byte",0},
1118 { "_unsigned_int","_wxCoord",0},
1119 { "_unsigned_int","_wxPrintQuality",0},
1120 { "_unsigned_int","_time_t",0},
1121 { "_unsigned_int","_size_t",0},
1122 { "_unsigned_int","_uint",0},
1123 { "_unsigned_int","_wxWindowID",0},
1124 { "_unsigned_int","_int",0},
1125 { "_short","_WXTYPE",0},
1126 { "_short","_unsigned_short",0},
1127 { "_short","_signed_short",0},
1128 { "_wxFrame","_wxMDIChildFrame",SwigwxMDIChildFrameTowxFrame},
1129 { "_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame},
1130 { "_wxWindowID","_wxCoord",0},
1131 { "_wxWindowID","_wxPrintQuality",0},
1132 { "_wxWindowID","_time_t",0},
1133 { "_wxWindowID","_size_t",0},
1134 { "_wxWindowID","_EBool",0},
1135 { "_wxWindowID","_uint",0},
1136 { "_wxWindowID","_int",0},
1137 { "_wxWindowID","_signed_int",0},
1138 { "_wxWindowID","_unsigned_int",0},
1139 { "_int","_wxCoord",0},
1140 { "_int","_wxPrintQuality",0},
1141 { "_int","_time_t",0},
1142 { "_int","_size_t",0},
1143 { "_int","_EBool",0},
1144 { "_int","_uint",0},
1145 { "_int","_wxWindowID",0},
1146 { "_int","_unsigned_int",0},
1147 { "_int","_signed_int",0},
1148 { "_time_t","_wxCoord",0},
1149 { "_time_t","_wxPrintQuality",0},
1150 { "_time_t","_unsigned_int",0},
1151 { "_time_t","_int",0},
1152 { "_time_t","_wxWindowID",0},
1153 { "_time_t","_uint",0},
1154 { "_time_t","_size_t",0},
1155 { "_wxCoord","_int",0},
1156 { "_wxCoord","_signed_int",0},
1157 { "_wxCoord","_unsigned_int",0},
1158 { "_wxCoord","_wxWindowID",0},
1159 { "_wxCoord","_uint",0},
1160 { "_wxCoord","_EBool",0},
1161 { "_wxCoord","_size_t",0},
1162 { "_wxCoord","_time_t",0},
1163 { "_wxCoord","_wxPrintQuality",0},
1164 { "_wxEvtHandler","_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler},
1165 { "_wxEvtHandler","_wxMDIChildFrame",SwigwxMDIChildFrameTowxEvtHandler},
1166 { "_wxEvtHandler","_wxMDIParentFrame",SwigwxMDIParentFrameTowxEvtHandler},
1167 { "_wxWindow","_wxMDIClientWindow",SwigwxMDIClientWindowTowxWindow},
1168 { "_wxWindow","_wxMDIChildFrame",SwigwxMDIChildFrameTowxWindow},
1169 { "_wxWindow","_wxMDIParentFrame",SwigwxMDIParentFrameTowxWindow},
1170 {0,0,0}};
1171
1172 static PyObject *SWIG_globals;
1173 #ifdef __cplusplus
1174 extern "C"
1175 #endif
1176 SWIGEXPORT(void) initmdic() {
1177 PyObject *m, *d;
1178 SWIG_globals = SWIG_newvarlink();
1179 m = Py_InitModule("mdic", mdicMethods);
1180 d = PyModule_GetDict(m);
1181 PyDict_SetItemString(d,"IDM_WINDOWTILE", PyInt_FromLong((long) 4001));
1182 PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", PyInt_FromLong((long) 4001));
1183 PyDict_SetItemString(d,"IDM_WINDOWCASCADE", PyInt_FromLong((long) 4002));
1184 PyDict_SetItemString(d,"IDM_WINDOWICONS", PyInt_FromLong((long) 4003));
1185 PyDict_SetItemString(d,"IDM_WINDOWNEXT", PyInt_FromLong((long) 4004));
1186 PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", PyInt_FromLong((long) 4005));
1187 PyDict_SetItemString(d,"wxFIRST_MDI_CHILD", PyInt_FromLong((long) 4100));
1188 PyDict_SetItemString(d,"wxLAST_MDI_CHILD", PyInt_FromLong((long) 4600));
1189 {
1190 int i;
1191 for (i = 0; _swig_mapping[i].n1; i++)
1192 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1193 }
1194 }