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