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