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