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