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