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