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