]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/cmndlgs.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 initcmndlgsc |
55 | ||
56 | #define SWIG_name "cmndlgsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/colordlg.h> | |
60 | #include <wx/dirdlg.h> | |
61 | #include <wx/fontdlg.h> | |
bb0054cd | 62 | #include <wx/progdlg.h> |
8ab979d7 | 63 | |
8ab979d7 RD |
64 | |
65 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
66 | PyObject* o2; | |
67 | PyObject* o3; | |
68 | ||
e0672e2f | 69 | if (!target) { |
8ab979d7 | 70 | target = o; |
e0672e2f | 71 | } else if (target == Py_None) { |
8ab979d7 RD |
72 | Py_DECREF(Py_None); |
73 | target = o; | |
e0672e2f | 74 | } else { |
8ab979d7 RD |
75 | if (!PyTuple_Check(target)) { |
76 | o2 = target; | |
77 | target = PyTuple_New(1); | |
78 | PyTuple_SetItem(target, 0, o2); | |
79 | } | |
e0672e2f RD |
80 | o3 = PyTuple_New(1); |
81 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
82 | |
83 | o2 = target; | |
e0672e2f RD |
84 | target = PySequence_Concat(o2, o3); |
85 | Py_DECREF(o2); | |
8ab979d7 RD |
86 | Py_DECREF(o3); |
87 | } | |
88 | return target; | |
89 | } | |
90 | ||
794c5cb1 RD |
91 | #if PYTHON_API_VERSION >= 1009 |
92 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
93 | #else | |
94 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
95 | #endif | |
1d99702e RD |
96 | #ifdef __cplusplus |
97 | extern "C" { | |
98 | #endif | |
9416aa89 RD |
99 | static void *SwigwxColourDataTowxObject(void *ptr) { |
100 | wxColourData *src; | |
101 | wxObject *dest; | |
102 | src = (wxColourData *) ptr; | |
103 | dest = (wxObject *) src; | |
104 | return (void *) dest; | |
105 | } | |
106 | ||
8ab979d7 | 107 | #define new_wxColourData() (new wxColourData()) |
efc5f224 | 108 | static PyObject *_wrap_new_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
109 | PyObject * _resultobj; |
110 | wxColourData * _result; | |
efc5f224 | 111 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
112 | char _ptemp[128]; |
113 | ||
114 | self = self; | |
efc5f224 | 115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxColourData",_kwnames)) |
8ab979d7 | 116 | return NULL; |
cf694132 RD |
117 | { |
118 | wxPy_BEGIN_ALLOW_THREADS; | |
119 | _result = (wxColourData *)new_wxColourData(); | |
120 | ||
121 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 122 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
123 | } if (_result) { |
124 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColourData_p"); | |
125 | _resultobj = Py_BuildValue("s",_ptemp); | |
126 | } else { | |
127 | Py_INCREF(Py_None); | |
128 | _resultobj = Py_None; | |
129 | } | |
8ab979d7 RD |
130 | return _resultobj; |
131 | } | |
132 | ||
133 | #define delete_wxColourData(_swigobj) (delete _swigobj) | |
efc5f224 | 134 | static PyObject *_wrap_delete_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
135 | PyObject * _resultobj; |
136 | wxColourData * _arg0; | |
1d99702e | 137 | PyObject * _argo0 = 0; |
efc5f224 | 138 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
139 | |
140 | self = self; | |
efc5f224 | 141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColourData",_kwnames,&_argo0)) |
8ab979d7 | 142 | return NULL; |
1d99702e RD |
143 | if (_argo0) { |
144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxColourData. Expected _wxColourData_p."); |
147 | return NULL; | |
148 | } | |
149 | } | |
cf694132 RD |
150 | { |
151 | wxPy_BEGIN_ALLOW_THREADS; | |
152 | delete_wxColourData(_arg0); | |
153 | ||
154 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 155 | if (PyErr_Occurred()) return NULL; |
cf694132 | 156 | } Py_INCREF(Py_None); |
8ab979d7 RD |
157 | _resultobj = Py_None; |
158 | return _resultobj; | |
159 | } | |
160 | ||
161 | #define wxColourData_GetChooseFull(_swigobj) (_swigobj->GetChooseFull()) | |
efc5f224 | 162 | static PyObject *_wrap_wxColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
163 | PyObject * _resultobj; |
164 | bool _result; | |
165 | wxColourData * _arg0; | |
1d99702e | 166 | PyObject * _argo0 = 0; |
efc5f224 | 167 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
168 | |
169 | self = self; | |
efc5f224 | 170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourData_GetChooseFull",_kwnames,&_argo0)) |
8ab979d7 | 171 | return NULL; |
1d99702e RD |
172 | if (_argo0) { |
173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetChooseFull. Expected _wxColourData_p."); |
176 | return NULL; | |
177 | } | |
178 | } | |
cf694132 RD |
179 | { |
180 | wxPy_BEGIN_ALLOW_THREADS; | |
181 | _result = (bool )wxColourData_GetChooseFull(_arg0); | |
182 | ||
183 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 184 | if (PyErr_Occurred()) return NULL; |
cf694132 | 185 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
186 | return _resultobj; |
187 | } | |
188 | ||
189 | #define wxColourData_GetColour(_swigobj) (_swigobj->GetColour()) | |
efc5f224 | 190 | static PyObject *_wrap_wxColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
191 | PyObject * _resultobj; |
192 | wxColour * _result; | |
193 | wxColourData * _arg0; | |
1d99702e | 194 | PyObject * _argo0 = 0; |
efc5f224 | 195 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
196 | char _ptemp[128]; |
197 | ||
198 | self = self; | |
efc5f224 | 199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourData_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 200 | return NULL; |
1d99702e RD |
201 | if (_argo0) { |
202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetColour. Expected _wxColourData_p."); |
205 | return NULL; | |
206 | } | |
207 | } | |
cf694132 RD |
208 | { |
209 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 210 | _result = new wxColour (wxColourData_GetColour(_arg0)); |
cf694132 RD |
211 | |
212 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 213 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
214 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
215 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
216 | return _resultobj; |
217 | } | |
218 | ||
219 | #define wxColourData_GetCustomColour(_swigobj,_swigarg0) (_swigobj->GetCustomColour(_swigarg0)) | |
efc5f224 | 220 | static PyObject *_wrap_wxColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
221 | PyObject * _resultobj; |
222 | wxColour * _result; | |
223 | wxColourData * _arg0; | |
224 | int _arg1; | |
1d99702e | 225 | PyObject * _argo0 = 0; |
efc5f224 | 226 | char *_kwnames[] = { "self","i", NULL }; |
8ab979d7 RD |
227 | char _ptemp[128]; |
228 | ||
229 | self = self; | |
efc5f224 | 230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxColourData_GetCustomColour",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 231 | return NULL; |
1d99702e RD |
232 | if (_argo0) { |
233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetCustomColour. Expected _wxColourData_p."); |
236 | return NULL; | |
237 | } | |
238 | } | |
cf694132 RD |
239 | { |
240 | wxPy_BEGIN_ALLOW_THREADS; | |
241 | _result = new wxColour (wxColourData_GetCustomColour(_arg0,_arg1)); | |
242 | ||
243 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 244 | if (PyErr_Occurred()) return NULL; |
cf694132 | 245 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
246 | _resultobj = Py_BuildValue("s",_ptemp); |
247 | return _resultobj; | |
248 | } | |
249 | ||
250 | #define wxColourData_SetChooseFull(_swigobj,_swigarg0) (_swigobj->SetChooseFull(_swigarg0)) | |
efc5f224 | 251 | static PyObject *_wrap_wxColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
252 | PyObject * _resultobj; |
253 | wxColourData * _arg0; | |
254 | int _arg1; | |
1d99702e | 255 | PyObject * _argo0 = 0; |
efc5f224 | 256 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
257 | |
258 | self = self; | |
efc5f224 | 259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxColourData_SetChooseFull",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 260 | return NULL; |
1d99702e RD |
261 | if (_argo0) { |
262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetChooseFull. Expected _wxColourData_p."); |
265 | return NULL; | |
266 | } | |
267 | } | |
cf694132 RD |
268 | { |
269 | wxPy_BEGIN_ALLOW_THREADS; | |
270 | wxColourData_SetChooseFull(_arg0,_arg1); | |
271 | ||
272 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 273 | if (PyErr_Occurred()) return NULL; |
cf694132 | 274 | } Py_INCREF(Py_None); |
8ab979d7 RD |
275 | _resultobj = Py_None; |
276 | return _resultobj; | |
277 | } | |
278 | ||
279 | #define wxColourData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
efc5f224 | 280 | static PyObject *_wrap_wxColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
281 | PyObject * _resultobj; |
282 | wxColourData * _arg0; | |
283 | wxColour * _arg1; | |
1d99702e | 284 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
285 | wxColour temp; |
286 | PyObject * _obj1 = 0; | |
efc5f224 | 287 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
288 | |
289 | self = self; | |
f6bcfd97 | 290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourData_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 291 | return NULL; |
1d99702e RD |
292 | if (_argo0) { |
293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetColour. Expected _wxColourData_p."); |
296 | return NULL; | |
297 | } | |
298 | } | |
f6bcfd97 BP |
299 | { |
300 | _arg1 = &temp; | |
301 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 302 | return NULL; |
f6bcfd97 | 303 | } |
cf694132 RD |
304 | { |
305 | wxPy_BEGIN_ALLOW_THREADS; | |
306 | wxColourData_SetColour(_arg0,*_arg1); | |
307 | ||
308 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 309 | if (PyErr_Occurred()) return NULL; |
cf694132 | 310 | } Py_INCREF(Py_None); |
8ab979d7 RD |
311 | _resultobj = Py_None; |
312 | return _resultobj; | |
313 | } | |
314 | ||
315 | #define wxColourData_SetCustomColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCustomColour(_swigarg0,_swigarg1)) | |
efc5f224 | 316 | static PyObject *_wrap_wxColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
317 | PyObject * _resultobj; |
318 | wxColourData * _arg0; | |
319 | int _arg1; | |
320 | wxColour * _arg2; | |
1d99702e | 321 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
322 | wxColour temp; |
323 | PyObject * _obj2 = 0; | |
efc5f224 | 324 | char *_kwnames[] = { "self","i","colour", NULL }; |
8ab979d7 RD |
325 | |
326 | self = self; | |
f6bcfd97 | 327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxColourData_SetCustomColour",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 328 | return NULL; |
1d99702e RD |
329 | if (_argo0) { |
330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetCustomColour. Expected _wxColourData_p."); |
333 | return NULL; | |
334 | } | |
335 | } | |
f6bcfd97 BP |
336 | { |
337 | _arg2 = &temp; | |
338 | if (! wxColour_helper(_obj2, &_arg2)) | |
8ab979d7 | 339 | return NULL; |
f6bcfd97 | 340 | } |
cf694132 RD |
341 | { |
342 | wxPy_BEGIN_ALLOW_THREADS; | |
343 | wxColourData_SetCustomColour(_arg0,_arg1,*_arg2); | |
344 | ||
345 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 346 | if (PyErr_Occurred()) return NULL; |
cf694132 | 347 | } Py_INCREF(Py_None); |
8ab979d7 RD |
348 | _resultobj = Py_None; |
349 | return _resultobj; | |
350 | } | |
351 | ||
352 | static void *SwigwxColourDialogTowxDialog(void *ptr) { | |
353 | wxColourDialog *src; | |
354 | wxDialog *dest; | |
355 | src = (wxColourDialog *) ptr; | |
356 | dest = (wxDialog *) src; | |
357 | return (void *) dest; | |
358 | } | |
359 | ||
65fe3842 | 360 | static void *SwigwxColourDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 361 | wxColourDialog *src; |
65fe3842 | 362 | wxTopLevelWindow *dest; |
8ab979d7 | 363 | src = (wxColourDialog *) ptr; |
65fe3842 | 364 | dest = (wxTopLevelWindow *) src; |
8ab979d7 RD |
365 | return (void *) dest; |
366 | } | |
367 | ||
368 | static void *SwigwxColourDialogTowxWindow(void *ptr) { | |
369 | wxColourDialog *src; | |
370 | wxWindow *dest; | |
371 | src = (wxColourDialog *) ptr; | |
372 | dest = (wxWindow *) src; | |
373 | return (void *) dest; | |
374 | } | |
375 | ||
376 | static void *SwigwxColourDialogTowxEvtHandler(void *ptr) { | |
377 | wxColourDialog *src; | |
378 | wxEvtHandler *dest; | |
379 | src = (wxColourDialog *) ptr; | |
380 | dest = (wxEvtHandler *) src; | |
381 | return (void *) dest; | |
382 | } | |
383 | ||
9416aa89 RD |
384 | static void *SwigwxColourDialogTowxObject(void *ptr) { |
385 | wxColourDialog *src; | |
386 | wxObject *dest; | |
387 | src = (wxColourDialog *) ptr; | |
388 | dest = (wxObject *) src; | |
389 | return (void *) dest; | |
390 | } | |
391 | ||
8ab979d7 | 392 | #define new_wxColourDialog(_swigarg0,_swigarg1) (new wxColourDialog(_swigarg0,_swigarg1)) |
efc5f224 | 393 | static PyObject *_wrap_new_wxColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
394 | PyObject * _resultobj; |
395 | wxColourDialog * _result; | |
396 | wxWindow * _arg0; | |
1d99702e RD |
397 | wxColourData * _arg1 = (wxColourData *) NULL; |
398 | PyObject * _argo0 = 0; | |
399 | PyObject * _argo1 = 0; | |
efc5f224 | 400 | char *_kwnames[] = { "parent","data", NULL }; |
8ab979d7 RD |
401 | char _ptemp[128]; |
402 | ||
403 | self = self; | |
efc5f224 | 404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxColourDialog",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 405 | return NULL; |
1d99702e RD |
406 | if (_argo0) { |
407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxColourDialog. Expected _wxWindow_p."); |
410 | return NULL; | |
411 | } | |
412 | } | |
1d99702e RD |
413 | if (_argo1) { |
414 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
415 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColourData_p")) { | |
8ab979d7 RD |
416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxColourDialog. Expected _wxColourData_p."); |
417 | return NULL; | |
418 | } | |
419 | } | |
cf694132 RD |
420 | { |
421 | wxPy_BEGIN_ALLOW_THREADS; | |
422 | _result = (wxColourDialog *)new_wxColourDialog(_arg0,_arg1); | |
423 | ||
424 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 425 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
426 | } if (_result) { |
427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColourDialog_p"); | |
428 | _resultobj = Py_BuildValue("s",_ptemp); | |
429 | } else { | |
430 | Py_INCREF(Py_None); | |
431 | _resultobj = Py_None; | |
432 | } | |
8ab979d7 RD |
433 | return _resultobj; |
434 | } | |
435 | ||
436 | #define wxColourDialog_GetColourData(_swigobj) (_swigobj->GetColourData()) | |
efc5f224 | 437 | static PyObject *_wrap_wxColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
438 | PyObject * _resultobj; |
439 | wxColourData * _result; | |
440 | wxColourDialog * _arg0; | |
1d99702e | 441 | PyObject * _argo0 = 0; |
efc5f224 | 442 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
443 | char _ptemp[128]; |
444 | ||
445 | self = self; | |
efc5f224 | 446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourDialog_GetColourData",_kwnames,&_argo0)) |
8ab979d7 | 447 | return NULL; |
1d99702e RD |
448 | if (_argo0) { |
449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDialog_p")) { | |
8ab979d7 RD |
451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDialog_GetColourData. Expected _wxColourDialog_p."); |
452 | return NULL; | |
453 | } | |
454 | } | |
cf694132 RD |
455 | { |
456 | wxPy_BEGIN_ALLOW_THREADS; | |
457 | wxColourData & _result_ref = wxColourDialog_GetColourData(_arg0); | |
8ab979d7 | 458 | _result = (wxColourData *) &_result_ref; |
cf694132 RD |
459 | |
460 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 461 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
462 | } if (_result) { |
463 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColourData_p"); | |
464 | _resultobj = Py_BuildValue("s",_ptemp); | |
465 | } else { | |
466 | Py_INCREF(Py_None); | |
467 | _resultobj = Py_None; | |
468 | } | |
8ab979d7 RD |
469 | return _resultobj; |
470 | } | |
471 | ||
472 | #define wxColourDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 473 | static PyObject *_wrap_wxColourDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
474 | PyObject * _resultobj; |
475 | int _result; | |
476 | wxColourDialog * _arg0; | |
1d99702e | 477 | PyObject * _argo0 = 0; |
efc5f224 | 478 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
479 | |
480 | self = self; | |
efc5f224 | 481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 482 | return NULL; |
1d99702e RD |
483 | if (_argo0) { |
484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDialog_p")) { | |
8ab979d7 RD |
486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDialog_ShowModal. Expected _wxColourDialog_p."); |
487 | return NULL; | |
488 | } | |
489 | } | |
cf694132 RD |
490 | { |
491 | wxPy_BEGIN_ALLOW_THREADS; | |
492 | _result = (int )wxColourDialog_ShowModal(_arg0); | |
493 | ||
494 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 495 | if (PyErr_Occurred()) return NULL; |
cf694132 | 496 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
497 | return _resultobj; |
498 | } | |
499 | ||
500 | static void *SwigwxDirDialogTowxDialog(void *ptr) { | |
501 | wxDirDialog *src; | |
502 | wxDialog *dest; | |
503 | src = (wxDirDialog *) ptr; | |
504 | dest = (wxDialog *) src; | |
505 | return (void *) dest; | |
506 | } | |
507 | ||
65fe3842 | 508 | static void *SwigwxDirDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 509 | wxDirDialog *src; |
65fe3842 | 510 | wxTopLevelWindow *dest; |
8ab979d7 | 511 | src = (wxDirDialog *) ptr; |
65fe3842 | 512 | dest = (wxTopLevelWindow *) src; |
8ab979d7 RD |
513 | return (void *) dest; |
514 | } | |
515 | ||
516 | static void *SwigwxDirDialogTowxWindow(void *ptr) { | |
517 | wxDirDialog *src; | |
518 | wxWindow *dest; | |
519 | src = (wxDirDialog *) ptr; | |
520 | dest = (wxWindow *) src; | |
521 | return (void *) dest; | |
522 | } | |
523 | ||
524 | static void *SwigwxDirDialogTowxEvtHandler(void *ptr) { | |
525 | wxDirDialog *src; | |
526 | wxEvtHandler *dest; | |
527 | src = (wxDirDialog *) ptr; | |
528 | dest = (wxEvtHandler *) src; | |
529 | return (void *) dest; | |
530 | } | |
531 | ||
9416aa89 RD |
532 | static void *SwigwxDirDialogTowxObject(void *ptr) { |
533 | wxDirDialog *src; | |
534 | wxObject *dest; | |
535 | src = (wxDirDialog *) ptr; | |
536 | dest = (wxObject *) src; | |
537 | return (void *) dest; | |
538 | } | |
539 | ||
8ab979d7 | 540 | #define new_wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 541 | static PyObject *_wrap_new_wxDirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
542 | PyObject * _resultobj; |
543 | wxDirDialog * _result; | |
544 | wxWindow * _arg0; | |
1d99702e RD |
545 | char * _arg1 = (char *) "Choose a directory"; |
546 | char * _arg2 = (char *) ""; | |
547 | long _arg3 = (long ) 0; | |
e508a2b6 | 548 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
1d99702e | 549 | PyObject * _argo0 = 0; |
2f90df85 RD |
550 | wxPoint temp; |
551 | PyObject * _obj4 = 0; | |
efc5f224 | 552 | char *_kwnames[] = { "parent","message","defaultPath","style","pos", NULL }; |
8ab979d7 RD |
553 | char _ptemp[128]; |
554 | ||
555 | self = self; | |
2f90df85 | 556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sslO:new_wxDirDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) |
8ab979d7 | 557 | return NULL; |
1d99702e RD |
558 | if (_argo0) { |
559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirDialog. Expected _wxWindow_p."); |
562 | return NULL; | |
563 | } | |
564 | } | |
2f90df85 RD |
565 | if (_obj4) |
566 | { | |
567 | _arg4 = &temp; | |
568 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 569 | return NULL; |
2f90df85 | 570 | } |
cf694132 RD |
571 | { |
572 | wxPy_BEGIN_ALLOW_THREADS; | |
573 | _result = (wxDirDialog *)new_wxDirDialog(_arg0,_arg1,_arg2,_arg3,*_arg4); | |
574 | ||
575 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 576 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
577 | } if (_result) { |
578 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirDialog_p"); | |
579 | _resultobj = Py_BuildValue("s",_ptemp); | |
580 | } else { | |
581 | Py_INCREF(Py_None); | |
582 | _resultobj = Py_None; | |
583 | } | |
8ab979d7 RD |
584 | return _resultobj; |
585 | } | |
586 | ||
587 | #define wxDirDialog_GetPath(_swigobj) (_swigobj->GetPath()) | |
efc5f224 | 588 | static PyObject *_wrap_wxDirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
589 | PyObject * _resultobj; |
590 | wxString * _result; | |
591 | wxDirDialog * _arg0; | |
1d99702e | 592 | PyObject * _argo0 = 0; |
efc5f224 | 593 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
594 | |
595 | self = self; | |
efc5f224 | 596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetPath",_kwnames,&_argo0)) |
8ab979d7 | 597 | return NULL; |
1d99702e RD |
598 | if (_argo0) { |
599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 RD |
601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetPath. Expected _wxDirDialog_p."); |
602 | return NULL; | |
603 | } | |
604 | } | |
8ab979d7 | 605 | { |
cf694132 RD |
606 | wxPy_BEGIN_ALLOW_THREADS; |
607 | _result = new wxString (wxDirDialog_GetPath(_arg0)); | |
608 | ||
609 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 610 | if (PyErr_Occurred()) return NULL; |
cf694132 | 611 | }{ |
eec92d76 | 612 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
613 | } |
614 | { | |
615 | delete _result; | |
616 | } | |
617 | return _resultobj; | |
618 | } | |
619 | ||
620 | #define wxDirDialog_GetMessage(_swigobj) (_swigobj->GetMessage()) | |
efc5f224 | 621 | static PyObject *_wrap_wxDirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
622 | PyObject * _resultobj; |
623 | wxString * _result; | |
624 | wxDirDialog * _arg0; | |
1d99702e | 625 | PyObject * _argo0 = 0; |
efc5f224 | 626 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
627 | |
628 | self = self; | |
efc5f224 | 629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetMessage",_kwnames,&_argo0)) |
8ab979d7 | 630 | return NULL; |
1d99702e RD |
631 | if (_argo0) { |
632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 RD |
634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetMessage. Expected _wxDirDialog_p."); |
635 | return NULL; | |
636 | } | |
637 | } | |
8ab979d7 | 638 | { |
cf694132 RD |
639 | wxPy_BEGIN_ALLOW_THREADS; |
640 | _result = new wxString (wxDirDialog_GetMessage(_arg0)); | |
641 | ||
642 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 643 | if (PyErr_Occurred()) return NULL; |
cf694132 | 644 | }{ |
eec92d76 | 645 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
646 | } |
647 | { | |
648 | delete _result; | |
649 | } | |
650 | return _resultobj; | |
651 | } | |
652 | ||
653 | #define wxDirDialog_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
efc5f224 | 654 | static PyObject *_wrap_wxDirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
655 | PyObject * _resultobj; |
656 | long _result; | |
657 | wxDirDialog * _arg0; | |
1d99702e | 658 | PyObject * _argo0 = 0; |
efc5f224 | 659 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
660 | |
661 | self = self; | |
efc5f224 | 662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 663 | return NULL; |
1d99702e RD |
664 | if (_argo0) { |
665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 RD |
667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetStyle. Expected _wxDirDialog_p."); |
668 | return NULL; | |
669 | } | |
670 | } | |
cf694132 RD |
671 | { |
672 | wxPy_BEGIN_ALLOW_THREADS; | |
673 | _result = (long )wxDirDialog_GetStyle(_arg0); | |
674 | ||
675 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 676 | if (PyErr_Occurred()) return NULL; |
cf694132 | 677 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
678 | return _resultobj; |
679 | } | |
680 | ||
681 | #define wxDirDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0)) | |
efc5f224 | 682 | static PyObject *_wrap_wxDirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
683 | PyObject * _resultobj; |
684 | wxDirDialog * _arg0; | |
685 | wxString * _arg1; | |
1d99702e | 686 | PyObject * _argo0 = 0; |
8ab979d7 | 687 | PyObject * _obj1 = 0; |
efc5f224 | 688 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
689 | |
690 | self = self; | |
efc5f224 | 691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirDialog_SetMessage",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 692 | return NULL; |
1d99702e RD |
693 | if (_argo0) { |
694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 RD |
696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_SetMessage. Expected _wxDirDialog_p."); |
697 | return NULL; | |
698 | } | |
699 | } | |
700 | { | |
185d7c3e RD |
701 | #if PYTHON_API_VERSION >= 1009 |
702 | char* tmpPtr; int tmpSize; | |
703 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 704 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
705 | return NULL; |
706 | } | |
707 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
708 | return NULL; | |
709 | _arg1 = new wxString(tmpPtr, tmpSize); | |
710 | #else | |
8ab979d7 RD |
711 | if (!PyString_Check(_obj1)) { |
712 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
713 | return NULL; | |
714 | } | |
185d7c3e RD |
715 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
716 | #endif | |
8ab979d7 | 717 | } |
cf694132 RD |
718 | { |
719 | wxPy_BEGIN_ALLOW_THREADS; | |
720 | wxDirDialog_SetMessage(_arg0,*_arg1); | |
721 | ||
722 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 723 | if (PyErr_Occurred()) return NULL; |
cf694132 | 724 | } Py_INCREF(Py_None); |
8ab979d7 RD |
725 | _resultobj = Py_None; |
726 | { | |
727 | if (_obj1) | |
728 | delete _arg1; | |
729 | } | |
730 | return _resultobj; | |
731 | } | |
732 | ||
733 | #define wxDirDialog_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
efc5f224 | 734 | static PyObject *_wrap_wxDirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
735 | PyObject * _resultobj; |
736 | wxDirDialog * _arg0; | |
737 | wxString * _arg1; | |
1d99702e | 738 | PyObject * _argo0 = 0; |
8ab979d7 | 739 | PyObject * _obj1 = 0; |
efc5f224 | 740 | char *_kwnames[] = { "self","path", NULL }; |
8ab979d7 RD |
741 | |
742 | self = self; | |
efc5f224 | 743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirDialog_SetPath",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 744 | return NULL; |
1d99702e RD |
745 | if (_argo0) { |
746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 RD |
748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_SetPath. Expected _wxDirDialog_p."); |
749 | return NULL; | |
750 | } | |
751 | } | |
752 | { | |
185d7c3e RD |
753 | #if PYTHON_API_VERSION >= 1009 |
754 | char* tmpPtr; int tmpSize; | |
755 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 756 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
757 | return NULL; |
758 | } | |
759 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
760 | return NULL; | |
761 | _arg1 = new wxString(tmpPtr, tmpSize); | |
762 | #else | |
8ab979d7 RD |
763 | if (!PyString_Check(_obj1)) { |
764 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
765 | return NULL; | |
766 | } | |
185d7c3e RD |
767 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
768 | #endif | |
8ab979d7 | 769 | } |
cf694132 RD |
770 | { |
771 | wxPy_BEGIN_ALLOW_THREADS; | |
772 | wxDirDialog_SetPath(_arg0,*_arg1); | |
773 | ||
774 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 775 | if (PyErr_Occurred()) return NULL; |
cf694132 | 776 | } Py_INCREF(Py_None); |
8ab979d7 RD |
777 | _resultobj = Py_None; |
778 | { | |
779 | if (_obj1) | |
780 | delete _arg1; | |
781 | } | |
782 | return _resultobj; | |
783 | } | |
784 | ||
785 | #define wxDirDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 786 | static PyObject *_wrap_wxDirDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
787 | PyObject * _resultobj; |
788 | int _result; | |
789 | wxDirDialog * _arg0; | |
1d99702e | 790 | PyObject * _argo0 = 0; |
efc5f224 | 791 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
792 | |
793 | self = self; | |
efc5f224 | 794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 795 | return NULL; |
1d99702e RD |
796 | if (_argo0) { |
797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 RD |
799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_ShowModal. Expected _wxDirDialog_p."); |
800 | return NULL; | |
801 | } | |
802 | } | |
cf694132 RD |
803 | { |
804 | wxPy_BEGIN_ALLOW_THREADS; | |
805 | _result = (int )wxDirDialog_ShowModal(_arg0); | |
806 | ||
807 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 808 | if (PyErr_Occurred()) return NULL; |
cf694132 | 809 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
810 | return _resultobj; |
811 | } | |
812 | ||
813 | static void *SwigwxFileDialogTowxDialog(void *ptr) { | |
814 | wxFileDialog *src; | |
815 | wxDialog *dest; | |
816 | src = (wxFileDialog *) ptr; | |
817 | dest = (wxDialog *) src; | |
818 | return (void *) dest; | |
819 | } | |
820 | ||
65fe3842 | 821 | static void *SwigwxFileDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 822 | wxFileDialog *src; |
65fe3842 | 823 | wxTopLevelWindow *dest; |
8ab979d7 | 824 | src = (wxFileDialog *) ptr; |
65fe3842 | 825 | dest = (wxTopLevelWindow *) src; |
8ab979d7 RD |
826 | return (void *) dest; |
827 | } | |
828 | ||
829 | static void *SwigwxFileDialogTowxWindow(void *ptr) { | |
830 | wxFileDialog *src; | |
831 | wxWindow *dest; | |
832 | src = (wxFileDialog *) ptr; | |
833 | dest = (wxWindow *) src; | |
834 | return (void *) dest; | |
835 | } | |
836 | ||
837 | static void *SwigwxFileDialogTowxEvtHandler(void *ptr) { | |
838 | wxFileDialog *src; | |
839 | wxEvtHandler *dest; | |
840 | src = (wxFileDialog *) ptr; | |
841 | dest = (wxEvtHandler *) src; | |
842 | return (void *) dest; | |
843 | } | |
844 | ||
9416aa89 RD |
845 | static void *SwigwxFileDialogTowxObject(void *ptr) { |
846 | wxFileDialog *src; | |
847 | wxObject *dest; | |
848 | src = (wxFileDialog *) ptr; | |
849 | dest = (wxObject *) src; | |
850 | return (void *) dest; | |
851 | } | |
852 | ||
8ab979d7 | 853 | #define new_wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 854 | static PyObject *_wrap_new_wxFileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
855 | PyObject * _resultobj; |
856 | wxFileDialog * _result; | |
857 | wxWindow * _arg0; | |
1d99702e RD |
858 | char * _arg1 = (char *) "Choose a file"; |
859 | char * _arg2 = (char *) ""; | |
860 | char * _arg3 = (char *) ""; | |
861 | char * _arg4 = (char *) "*.*"; | |
862 | long _arg5 = (long ) 0; | |
e508a2b6 | 863 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; |
1d99702e | 864 | PyObject * _argo0 = 0; |
2f90df85 RD |
865 | wxPoint temp; |
866 | PyObject * _obj6 = 0; | |
efc5f224 | 867 | char *_kwnames[] = { "parent","message","defaultDir","defaultFile","wildcard","style","pos", NULL }; |
8ab979d7 RD |
868 | char _ptemp[128]; |
869 | ||
870 | self = self; | |
2f90df85 | 871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sssslO:new_wxFileDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6)) |
8ab979d7 | 872 | return NULL; |
1d99702e RD |
873 | if (_argo0) { |
874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileDialog. Expected _wxWindow_p."); |
877 | return NULL; | |
878 | } | |
879 | } | |
2f90df85 RD |
880 | if (_obj6) |
881 | { | |
882 | _arg6 = &temp; | |
883 | if (! wxPoint_helper(_obj6, &_arg6)) | |
8ab979d7 | 884 | return NULL; |
2f90df85 | 885 | } |
cf694132 RD |
886 | { |
887 | wxPy_BEGIN_ALLOW_THREADS; | |
888 | _result = (wxFileDialog *)new_wxFileDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6); | |
889 | ||
890 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 891 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
892 | } if (_result) { |
893 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileDialog_p"); | |
894 | _resultobj = Py_BuildValue("s",_ptemp); | |
895 | } else { | |
896 | Py_INCREF(Py_None); | |
897 | _resultobj = Py_None; | |
898 | } | |
8ab979d7 RD |
899 | return _resultobj; |
900 | } | |
901 | ||
902 | #define wxFileDialog_GetDirectory(_swigobj) (_swigobj->GetDirectory()) | |
efc5f224 | 903 | static PyObject *_wrap_wxFileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
904 | PyObject * _resultobj; |
905 | wxString * _result; | |
906 | wxFileDialog * _arg0; | |
1d99702e | 907 | PyObject * _argo0 = 0; |
efc5f224 | 908 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
909 | |
910 | self = self; | |
efc5f224 | 911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetDirectory",_kwnames,&_argo0)) |
8ab979d7 | 912 | return NULL; |
1d99702e RD |
913 | if (_argo0) { |
914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetDirectory. Expected _wxFileDialog_p."); |
917 | return NULL; | |
918 | } | |
919 | } | |
8ab979d7 | 920 | { |
cf694132 RD |
921 | wxPy_BEGIN_ALLOW_THREADS; |
922 | _result = new wxString (wxFileDialog_GetDirectory(_arg0)); | |
923 | ||
924 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 925 | if (PyErr_Occurred()) return NULL; |
cf694132 | 926 | }{ |
eec92d76 | 927 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
928 | } |
929 | { | |
930 | delete _result; | |
931 | } | |
932 | return _resultobj; | |
933 | } | |
934 | ||
935 | #define wxFileDialog_GetFilename(_swigobj) (_swigobj->GetFilename()) | |
efc5f224 | 936 | static PyObject *_wrap_wxFileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
937 | PyObject * _resultobj; |
938 | wxString * _result; | |
939 | wxFileDialog * _arg0; | |
1d99702e | 940 | PyObject * _argo0 = 0; |
efc5f224 | 941 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
942 | |
943 | self = self; | |
efc5f224 | 944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilename",_kwnames,&_argo0)) |
8ab979d7 | 945 | return NULL; |
1d99702e RD |
946 | if (_argo0) { |
947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilename. Expected _wxFileDialog_p."); |
950 | return NULL; | |
951 | } | |
952 | } | |
8ab979d7 | 953 | { |
cf694132 RD |
954 | wxPy_BEGIN_ALLOW_THREADS; |
955 | _result = new wxString (wxFileDialog_GetFilename(_arg0)); | |
956 | ||
957 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 958 | if (PyErr_Occurred()) return NULL; |
cf694132 | 959 | }{ |
eec92d76 | 960 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
961 | } |
962 | { | |
963 | delete _result; | |
964 | } | |
965 | return _resultobj; | |
966 | } | |
967 | ||
968 | #define wxFileDialog_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
efc5f224 | 969 | static PyObject *_wrap_wxFileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
970 | PyObject * _resultobj; |
971 | int _result; | |
972 | wxFileDialog * _arg0; | |
1d99702e | 973 | PyObject * _argo0 = 0; |
efc5f224 | 974 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
975 | |
976 | self = self; | |
efc5f224 | 977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilterIndex",_kwnames,&_argo0)) |
8ab979d7 | 978 | return NULL; |
1d99702e RD |
979 | if (_argo0) { |
980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilterIndex. Expected _wxFileDialog_p."); |
983 | return NULL; | |
984 | } | |
985 | } | |
cf694132 RD |
986 | { |
987 | wxPy_BEGIN_ALLOW_THREADS; | |
988 | _result = (int )wxFileDialog_GetFilterIndex(_arg0); | |
989 | ||
990 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 991 | if (PyErr_Occurred()) return NULL; |
cf694132 | 992 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
993 | return _resultobj; |
994 | } | |
995 | ||
996 | #define wxFileDialog_GetMessage(_swigobj) (_swigobj->GetMessage()) | |
efc5f224 | 997 | static PyObject *_wrap_wxFileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
998 | PyObject * _resultobj; |
999 | wxString * _result; | |
1000 | wxFileDialog * _arg0; | |
1d99702e | 1001 | PyObject * _argo0 = 0; |
efc5f224 | 1002 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1003 | |
1004 | self = self; | |
efc5f224 | 1005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetMessage",_kwnames,&_argo0)) |
8ab979d7 | 1006 | return NULL; |
1d99702e RD |
1007 | if (_argo0) { |
1008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetMessage. Expected _wxFileDialog_p."); |
1011 | return NULL; | |
1012 | } | |
1013 | } | |
8ab979d7 | 1014 | { |
cf694132 RD |
1015 | wxPy_BEGIN_ALLOW_THREADS; |
1016 | _result = new wxString (wxFileDialog_GetMessage(_arg0)); | |
1017 | ||
1018 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1019 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1020 | }{ |
eec92d76 | 1021 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1022 | } |
1023 | { | |
1024 | delete _result; | |
1025 | } | |
1026 | return _resultobj; | |
1027 | } | |
1028 | ||
1029 | #define wxFileDialog_GetPath(_swigobj) (_swigobj->GetPath()) | |
efc5f224 | 1030 | static PyObject *_wrap_wxFileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1031 | PyObject * _resultobj; |
1032 | wxString * _result; | |
1033 | wxFileDialog * _arg0; | |
1d99702e | 1034 | PyObject * _argo0 = 0; |
efc5f224 | 1035 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1036 | |
1037 | self = self; | |
efc5f224 | 1038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetPath",_kwnames,&_argo0)) |
8ab979d7 | 1039 | return NULL; |
1d99702e RD |
1040 | if (_argo0) { |
1041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetPath. Expected _wxFileDialog_p."); |
1044 | return NULL; | |
1045 | } | |
1046 | } | |
8ab979d7 | 1047 | { |
cf694132 RD |
1048 | wxPy_BEGIN_ALLOW_THREADS; |
1049 | _result = new wxString (wxFileDialog_GetPath(_arg0)); | |
1050 | ||
1051 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1052 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1053 | }{ |
eec92d76 | 1054 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1055 | } |
1056 | { | |
1057 | delete _result; | |
1058 | } | |
1059 | return _resultobj; | |
1060 | } | |
1061 | ||
1062 | #define wxFileDialog_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
efc5f224 | 1063 | static PyObject *_wrap_wxFileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1064 | PyObject * _resultobj; |
1065 | long _result; | |
1066 | wxFileDialog * _arg0; | |
1d99702e | 1067 | PyObject * _argo0 = 0; |
efc5f224 | 1068 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1069 | |
1070 | self = self; | |
efc5f224 | 1071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 1072 | return NULL; |
1d99702e RD |
1073 | if (_argo0) { |
1074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetStyle. Expected _wxFileDialog_p."); |
1077 | return NULL; | |
1078 | } | |
1079 | } | |
cf694132 RD |
1080 | { |
1081 | wxPy_BEGIN_ALLOW_THREADS; | |
1082 | _result = (long )wxFileDialog_GetStyle(_arg0); | |
1083 | ||
1084 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1085 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1086 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1087 | return _resultobj; |
1088 | } | |
1089 | ||
1090 | #define wxFileDialog_GetWildcard(_swigobj) (_swigobj->GetWildcard()) | |
efc5f224 | 1091 | static PyObject *_wrap_wxFileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1092 | PyObject * _resultobj; |
1093 | wxString * _result; | |
1094 | wxFileDialog * _arg0; | |
1d99702e | 1095 | PyObject * _argo0 = 0; |
efc5f224 | 1096 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1097 | |
1098 | self = self; | |
efc5f224 | 1099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetWildcard",_kwnames,&_argo0)) |
8ab979d7 | 1100 | return NULL; |
1d99702e RD |
1101 | if (_argo0) { |
1102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetWildcard. Expected _wxFileDialog_p."); |
1105 | return NULL; | |
1106 | } | |
1107 | } | |
8ab979d7 | 1108 | { |
cf694132 RD |
1109 | wxPy_BEGIN_ALLOW_THREADS; |
1110 | _result = new wxString (wxFileDialog_GetWildcard(_arg0)); | |
1111 | ||
1112 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1113 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1114 | }{ |
eec92d76 | 1115 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1116 | } |
1117 | { | |
1118 | delete _result; | |
1119 | } | |
1120 | return _resultobj; | |
1121 | } | |
1122 | ||
1123 | #define wxFileDialog_SetDirectory(_swigobj,_swigarg0) (_swigobj->SetDirectory(_swigarg0)) | |
efc5f224 | 1124 | static PyObject *_wrap_wxFileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1125 | PyObject * _resultobj; |
1126 | wxFileDialog * _arg0; | |
1127 | wxString * _arg1; | |
1d99702e | 1128 | PyObject * _argo0 = 0; |
8ab979d7 | 1129 | PyObject * _obj1 = 0; |
efc5f224 | 1130 | char *_kwnames[] = { "self","directory", NULL }; |
8ab979d7 RD |
1131 | |
1132 | self = self; | |
efc5f224 | 1133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetDirectory",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1134 | return NULL; |
1d99702e RD |
1135 | if (_argo0) { |
1136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetDirectory. Expected _wxFileDialog_p."); |
1139 | return NULL; | |
1140 | } | |
1141 | } | |
1142 | { | |
185d7c3e RD |
1143 | #if PYTHON_API_VERSION >= 1009 |
1144 | char* tmpPtr; int tmpSize; | |
1145 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1146 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1147 | return NULL; |
1148 | } | |
1149 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1150 | return NULL; | |
1151 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1152 | #else | |
8ab979d7 RD |
1153 | if (!PyString_Check(_obj1)) { |
1154 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1155 | return NULL; | |
1156 | } | |
185d7c3e RD |
1157 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1158 | #endif | |
8ab979d7 | 1159 | } |
cf694132 RD |
1160 | { |
1161 | wxPy_BEGIN_ALLOW_THREADS; | |
1162 | wxFileDialog_SetDirectory(_arg0,*_arg1); | |
1163 | ||
1164 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1165 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1166 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1167 | _resultobj = Py_None; |
1168 | { | |
1169 | if (_obj1) | |
1170 | delete _arg1; | |
1171 | } | |
1172 | return _resultobj; | |
1173 | } | |
1174 | ||
1175 | #define wxFileDialog_SetFilename(_swigobj,_swigarg0) (_swigobj->SetFilename(_swigarg0)) | |
efc5f224 | 1176 | static PyObject *_wrap_wxFileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1177 | PyObject * _resultobj; |
1178 | wxFileDialog * _arg0; | |
1179 | wxString * _arg1; | |
1d99702e | 1180 | PyObject * _argo0 = 0; |
8ab979d7 | 1181 | PyObject * _obj1 = 0; |
efc5f224 | 1182 | char *_kwnames[] = { "self","setfilename", NULL }; |
8ab979d7 RD |
1183 | |
1184 | self = self; | |
efc5f224 | 1185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetFilename",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1186 | return NULL; |
1d99702e RD |
1187 | if (_argo0) { |
1188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetFilename. Expected _wxFileDialog_p."); |
1191 | return NULL; | |
1192 | } | |
1193 | } | |
1194 | { | |
185d7c3e RD |
1195 | #if PYTHON_API_VERSION >= 1009 |
1196 | char* tmpPtr; int tmpSize; | |
1197 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1198 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1199 | return NULL; |
1200 | } | |
1201 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1202 | return NULL; | |
1203 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1204 | #else | |
8ab979d7 RD |
1205 | if (!PyString_Check(_obj1)) { |
1206 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1207 | return NULL; | |
1208 | } | |
185d7c3e RD |
1209 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1210 | #endif | |
8ab979d7 | 1211 | } |
cf694132 RD |
1212 | { |
1213 | wxPy_BEGIN_ALLOW_THREADS; | |
1214 | wxFileDialog_SetFilename(_arg0,*_arg1); | |
1215 | ||
1216 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1217 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1218 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1219 | _resultobj = Py_None; |
1220 | { | |
1221 | if (_obj1) | |
1222 | delete _arg1; | |
1223 | } | |
1224 | return _resultobj; | |
1225 | } | |
1226 | ||
1227 | #define wxFileDialog_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
efc5f224 | 1228 | static PyObject *_wrap_wxFileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1229 | PyObject * _resultobj; |
1230 | wxFileDialog * _arg0; | |
1231 | int _arg1; | |
1d99702e | 1232 | PyObject * _argo0 = 0; |
efc5f224 | 1233 | char *_kwnames[] = { "self","filterIndex", NULL }; |
8ab979d7 RD |
1234 | |
1235 | self = self; | |
efc5f224 | 1236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileDialog_SetFilterIndex",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1237 | return NULL; |
1d99702e RD |
1238 | if (_argo0) { |
1239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetFilterIndex. Expected _wxFileDialog_p."); |
1242 | return NULL; | |
1243 | } | |
1244 | } | |
cf694132 RD |
1245 | { |
1246 | wxPy_BEGIN_ALLOW_THREADS; | |
1247 | wxFileDialog_SetFilterIndex(_arg0,_arg1); | |
1248 | ||
1249 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1250 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1251 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1252 | _resultobj = Py_None; |
1253 | return _resultobj; | |
1254 | } | |
1255 | ||
1256 | #define wxFileDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0)) | |
efc5f224 | 1257 | static PyObject *_wrap_wxFileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1258 | PyObject * _resultobj; |
1259 | wxFileDialog * _arg0; | |
1260 | wxString * _arg1; | |
1d99702e | 1261 | PyObject * _argo0 = 0; |
8ab979d7 | 1262 | PyObject * _obj1 = 0; |
efc5f224 | 1263 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
1264 | |
1265 | self = self; | |
efc5f224 | 1266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetMessage",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1267 | return NULL; |
1d99702e RD |
1268 | if (_argo0) { |
1269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetMessage. Expected _wxFileDialog_p."); |
1272 | return NULL; | |
1273 | } | |
1274 | } | |
1275 | { | |
185d7c3e RD |
1276 | #if PYTHON_API_VERSION >= 1009 |
1277 | char* tmpPtr; int tmpSize; | |
1278 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1279 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1280 | return NULL; |
1281 | } | |
1282 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1283 | return NULL; | |
1284 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1285 | #else | |
8ab979d7 RD |
1286 | if (!PyString_Check(_obj1)) { |
1287 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1288 | return NULL; | |
1289 | } | |
185d7c3e RD |
1290 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1291 | #endif | |
8ab979d7 | 1292 | } |
cf694132 RD |
1293 | { |
1294 | wxPy_BEGIN_ALLOW_THREADS; | |
1295 | wxFileDialog_SetMessage(_arg0,*_arg1); | |
1296 | ||
1297 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1298 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1299 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1300 | _resultobj = Py_None; |
1301 | { | |
1302 | if (_obj1) | |
1303 | delete _arg1; | |
1304 | } | |
1305 | return _resultobj; | |
1306 | } | |
1307 | ||
1308 | #define wxFileDialog_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
efc5f224 | 1309 | static PyObject *_wrap_wxFileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1310 | PyObject * _resultobj; |
1311 | wxFileDialog * _arg0; | |
1312 | wxString * _arg1; | |
1d99702e | 1313 | PyObject * _argo0 = 0; |
8ab979d7 | 1314 | PyObject * _obj1 = 0; |
efc5f224 | 1315 | char *_kwnames[] = { "self","path", NULL }; |
8ab979d7 RD |
1316 | |
1317 | self = self; | |
efc5f224 | 1318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetPath",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1319 | return NULL; |
1d99702e RD |
1320 | if (_argo0) { |
1321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetPath. Expected _wxFileDialog_p."); |
1324 | return NULL; | |
1325 | } | |
1326 | } | |
1327 | { | |
185d7c3e RD |
1328 | #if PYTHON_API_VERSION >= 1009 |
1329 | char* tmpPtr; int tmpSize; | |
1330 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1331 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1332 | return NULL; |
1333 | } | |
1334 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1335 | return NULL; | |
1336 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1337 | #else | |
8ab979d7 RD |
1338 | if (!PyString_Check(_obj1)) { |
1339 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1340 | return NULL; | |
1341 | } | |
185d7c3e RD |
1342 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1343 | #endif | |
8ab979d7 | 1344 | } |
cf694132 RD |
1345 | { |
1346 | wxPy_BEGIN_ALLOW_THREADS; | |
1347 | wxFileDialog_SetPath(_arg0,*_arg1); | |
1348 | ||
1349 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1350 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1351 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1352 | _resultobj = Py_None; |
1353 | { | |
1354 | if (_obj1) | |
1355 | delete _arg1; | |
1356 | } | |
1357 | return _resultobj; | |
1358 | } | |
1359 | ||
1360 | #define wxFileDialog_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
efc5f224 | 1361 | static PyObject *_wrap_wxFileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1362 | PyObject * _resultobj; |
1363 | wxFileDialog * _arg0; | |
1364 | long _arg1; | |
1d99702e | 1365 | PyObject * _argo0 = 0; |
efc5f224 | 1366 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
1367 | |
1368 | self = self; | |
efc5f224 | 1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxFileDialog_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1370 | return NULL; |
1d99702e RD |
1371 | if (_argo0) { |
1372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetStyle. Expected _wxFileDialog_p."); |
1375 | return NULL; | |
1376 | } | |
1377 | } | |
cf694132 RD |
1378 | { |
1379 | wxPy_BEGIN_ALLOW_THREADS; | |
1380 | wxFileDialog_SetStyle(_arg0,_arg1); | |
1381 | ||
1382 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1383 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1384 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1385 | _resultobj = Py_None; |
1386 | return _resultobj; | |
1387 | } | |
1388 | ||
1389 | #define wxFileDialog_SetWildcard(_swigobj,_swigarg0) (_swigobj->SetWildcard(_swigarg0)) | |
efc5f224 | 1390 | static PyObject *_wrap_wxFileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1391 | PyObject * _resultobj; |
1392 | wxFileDialog * _arg0; | |
1393 | wxString * _arg1; | |
1d99702e | 1394 | PyObject * _argo0 = 0; |
8ab979d7 | 1395 | PyObject * _obj1 = 0; |
efc5f224 | 1396 | char *_kwnames[] = { "self","wildCard", NULL }; |
8ab979d7 RD |
1397 | |
1398 | self = self; | |
efc5f224 | 1399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetWildcard",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1400 | return NULL; |
1d99702e RD |
1401 | if (_argo0) { |
1402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetWildcard. Expected _wxFileDialog_p."); |
1405 | return NULL; | |
1406 | } | |
1407 | } | |
1408 | { | |
185d7c3e RD |
1409 | #if PYTHON_API_VERSION >= 1009 |
1410 | char* tmpPtr; int tmpSize; | |
1411 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1412 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1413 | return NULL; |
1414 | } | |
1415 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1416 | return NULL; | |
1417 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1418 | #else | |
8ab979d7 RD |
1419 | if (!PyString_Check(_obj1)) { |
1420 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1421 | return NULL; | |
1422 | } | |
185d7c3e RD |
1423 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1424 | #endif | |
8ab979d7 | 1425 | } |
cf694132 RD |
1426 | { |
1427 | wxPy_BEGIN_ALLOW_THREADS; | |
1428 | wxFileDialog_SetWildcard(_arg0,*_arg1); | |
1429 | ||
1430 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1431 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1432 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1433 | _resultobj = Py_None; |
1434 | { | |
1435 | if (_obj1) | |
1436 | delete _arg1; | |
1437 | } | |
1438 | return _resultobj; | |
1439 | } | |
1440 | ||
1441 | #define wxFileDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 1442 | static PyObject *_wrap_wxFileDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1443 | PyObject * _resultobj; |
1444 | int _result; | |
1445 | wxFileDialog * _arg0; | |
1d99702e | 1446 | PyObject * _argo0 = 0; |
efc5f224 | 1447 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1448 | |
1449 | self = self; | |
efc5f224 | 1450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 1451 | return NULL; |
1d99702e RD |
1452 | if (_argo0) { |
1453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_ShowModal. Expected _wxFileDialog_p."); |
1456 | return NULL; | |
1457 | } | |
1458 | } | |
cf694132 RD |
1459 | { |
1460 | wxPy_BEGIN_ALLOW_THREADS; | |
1461 | _result = (int )wxFileDialog_ShowModal(_arg0); | |
1462 | ||
1463 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1464 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1465 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1466 | return _resultobj; |
1467 | } | |
1468 | ||
f6bcfd97 BP |
1469 | static PyObject * wxFileDialog_GetFilenames(wxFileDialog *self) { |
1470 | wxArrayString arr; | |
1471 | self->GetFilenames(arr); | |
1472 | size_t count = arr.GetCount(); | |
1473 | PyObject* listObj = PyList_New(0); | |
1474 | for(size_t x=0; x<count; x++) { | |
1475 | PyObject* name = PyString_FromString(arr[x]); | |
1476 | PyList_Append(listObj, name); | |
1477 | } | |
1478 | return listObj; | |
1479 | } | |
1480 | static PyObject *_wrap_wxFileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1481 | PyObject * _resultobj; | |
1482 | PyObject * _result; | |
1483 | wxFileDialog * _arg0; | |
1484 | PyObject * _argo0 = 0; | |
1485 | char *_kwnames[] = { "self", NULL }; | |
1486 | ||
1487 | self = self; | |
1488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilenames",_kwnames,&_argo0)) | |
1489 | return NULL; | |
1490 | if (_argo0) { | |
1491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilenames. Expected _wxFileDialog_p."); | |
1494 | return NULL; | |
1495 | } | |
1496 | } | |
1497 | { | |
1498 | wxPy_BEGIN_ALLOW_THREADS; | |
1499 | _result = (PyObject *)wxFileDialog_GetFilenames(_arg0); | |
1500 | ||
1501 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1502 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1503 | }{ |
1504 | _resultobj = _result; | |
1505 | } | |
1506 | return _resultobj; | |
1507 | } | |
1508 | ||
1509 | static PyObject * wxFileDialog_GetPaths(wxFileDialog *self) { | |
1510 | wxArrayString arr; | |
1511 | self->GetPaths(arr); | |
1512 | size_t count = arr.GetCount(); | |
1513 | PyObject* listObj = PyList_New(0); | |
1514 | for(size_t x=0; x<count; x++) { | |
1515 | PyObject* name = PyString_FromString(arr[x]); | |
1516 | PyList_Append(listObj, name); | |
1517 | } | |
1518 | return listObj; | |
1519 | } | |
1520 | static PyObject *_wrap_wxFileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1521 | PyObject * _resultobj; | |
1522 | PyObject * _result; | |
1523 | wxFileDialog * _arg0; | |
1524 | PyObject * _argo0 = 0; | |
1525 | char *_kwnames[] = { "self", NULL }; | |
1526 | ||
1527 | self = self; | |
1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetPaths",_kwnames,&_argo0)) | |
1529 | return NULL; | |
1530 | if (_argo0) { | |
1531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetPaths. Expected _wxFileDialog_p."); | |
1534 | return NULL; | |
1535 | } | |
1536 | } | |
1537 | { | |
1538 | wxPy_BEGIN_ALLOW_THREADS; | |
1539 | _result = (PyObject *)wxFileDialog_GetPaths(_arg0); | |
1540 | ||
1541 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1542 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1543 | }{ |
1544 | _resultobj = _result; | |
1545 | } | |
1546 | return _resultobj; | |
1547 | } | |
1548 | ||
8ab979d7 RD |
1549 | static void *SwigwxSingleChoiceDialogTowxDialog(void *ptr) { |
1550 | wxSingleChoiceDialog *src; | |
1551 | wxDialog *dest; | |
1552 | src = (wxSingleChoiceDialog *) ptr; | |
1553 | dest = (wxDialog *) src; | |
1554 | return (void *) dest; | |
1555 | } | |
1556 | ||
65fe3842 | 1557 | static void *SwigwxSingleChoiceDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 1558 | wxSingleChoiceDialog *src; |
65fe3842 | 1559 | wxTopLevelWindow *dest; |
8ab979d7 | 1560 | src = (wxSingleChoiceDialog *) ptr; |
65fe3842 | 1561 | dest = (wxTopLevelWindow *) src; |
8ab979d7 RD |
1562 | return (void *) dest; |
1563 | } | |
1564 | ||
1565 | static void *SwigwxSingleChoiceDialogTowxWindow(void *ptr) { | |
1566 | wxSingleChoiceDialog *src; | |
1567 | wxWindow *dest; | |
1568 | src = (wxSingleChoiceDialog *) ptr; | |
1569 | dest = (wxWindow *) src; | |
1570 | return (void *) dest; | |
1571 | } | |
1572 | ||
1573 | static void *SwigwxSingleChoiceDialogTowxEvtHandler(void *ptr) { | |
1574 | wxSingleChoiceDialog *src; | |
1575 | wxEvtHandler *dest; | |
1576 | src = (wxSingleChoiceDialog *) ptr; | |
1577 | dest = (wxEvtHandler *) src; | |
1578 | return (void *) dest; | |
1579 | } | |
1580 | ||
9416aa89 RD |
1581 | static void *SwigwxSingleChoiceDialogTowxObject(void *ptr) { |
1582 | wxSingleChoiceDialog *src; | |
1583 | wxObject *dest; | |
1584 | src = (wxSingleChoiceDialog *) ptr; | |
1585 | dest = (wxObject *) src; | |
1586 | return (void *) dest; | |
1587 | } | |
1588 | ||
eec92d76 | 1589 | static wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString *message,wxString *caption,int LCOUNT,wxString *choices,long style,wxPoint *pos) { |
8ab979d7 | 1590 | return new wxSingleChoiceDialog(parent, *message, *caption, |
eec92d76 | 1591 | LCOUNT, choices, NULL, style, *pos); |
8ab979d7 RD |
1592 | } |
1593 | ||
efc5f224 | 1594 | static PyObject *_wrap_new_wxSingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1595 | PyObject * _resultobj; |
1596 | wxSingleChoiceDialog * _result; | |
1597 | wxWindow * _arg0; | |
1598 | wxString * _arg1; | |
1599 | wxString * _arg2; | |
1600 | int _arg3; | |
1601 | wxString * _arg4; | |
1d99702e | 1602 | long _arg5 = (long ) wxOK|wxCANCEL|wxCENTRE; |
e508a2b6 | 1603 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; |
1d99702e | 1604 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1605 | PyObject * _obj1 = 0; |
1606 | PyObject * _obj2 = 0; | |
1607 | PyObject * _obj4 = 0; | |
2f90df85 RD |
1608 | wxPoint temp; |
1609 | PyObject * _obj6 = 0; | |
eec92d76 | 1610 | char *_kwnames[] = { "parent","message","caption","choices","style","pos", NULL }; |
8ab979d7 RD |
1611 | char _ptemp[128]; |
1612 | ||
1613 | self = self; | |
2f90df85 | 1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|lO:new_wxSingleChoiceDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj4,&_arg5,&_obj6)) |
8ab979d7 | 1615 | return NULL; |
1d99702e RD |
1616 | if (_argo0) { |
1617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSingleChoiceDialog. Expected _wxWindow_p."); |
1620 | return NULL; | |
1621 | } | |
1622 | } | |
1623 | { | |
185d7c3e RD |
1624 | #if PYTHON_API_VERSION >= 1009 |
1625 | char* tmpPtr; int tmpSize; | |
1626 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1627 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1628 | return NULL; |
1629 | } | |
1630 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1631 | return NULL; | |
1632 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1633 | #else | |
8ab979d7 RD |
1634 | if (!PyString_Check(_obj1)) { |
1635 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1636 | return NULL; | |
1637 | } | |
185d7c3e RD |
1638 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1639 | #endif | |
8ab979d7 RD |
1640 | } |
1641 | { | |
185d7c3e RD |
1642 | #if PYTHON_API_VERSION >= 1009 |
1643 | char* tmpPtr; int tmpSize; | |
1644 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 1645 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1646 | return NULL; |
1647 | } | |
1648 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1649 | return NULL; | |
1650 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1651 | #else | |
8ab979d7 RD |
1652 | if (!PyString_Check(_obj2)) { |
1653 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1654 | return NULL; | |
1655 | } | |
185d7c3e RD |
1656 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1657 | #endif | |
8ab979d7 RD |
1658 | } |
1659 | if (_obj4) | |
1660 | { | |
1661 | _arg4 = wxString_LIST_helper(_obj4); | |
1662 | if (_arg4 == NULL) { | |
1663 | return NULL; | |
1664 | } | |
1665 | } | |
2f90df85 RD |
1666 | if (_obj6) |
1667 | { | |
1668 | _arg6 = &temp; | |
1669 | if (! wxPoint_helper(_obj6, &_arg6)) | |
8ab979d7 | 1670 | return NULL; |
2f90df85 | 1671 | } |
8ab979d7 | 1672 | { |
cf694132 RD |
1673 | if (_obj4) { |
1674 | _arg3 = PyList_Size(_obj4); | |
1675 | } | |
1676 | else { | |
1677 | _arg3 = 0; | |
1678 | } | |
8ab979d7 | 1679 | } |
cf694132 RD |
1680 | { |
1681 | wxPy_BEGIN_ALLOW_THREADS; | |
1682 | _result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
1683 | ||
1684 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1685 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1686 | } if (_result) { |
1687 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleChoiceDialog_p"); | |
1688 | _resultobj = Py_BuildValue("s",_ptemp); | |
1689 | } else { | |
1690 | Py_INCREF(Py_None); | |
1691 | _resultobj = Py_None; | |
1692 | } | |
8ab979d7 RD |
1693 | { |
1694 | if (_obj1) | |
1695 | delete _arg1; | |
1696 | } | |
1697 | { | |
1698 | if (_obj2) | |
1699 | delete _arg2; | |
1700 | } | |
1701 | { | |
1702 | delete [] _arg4; | |
1703 | } | |
1704 | return _resultobj; | |
1705 | } | |
1706 | ||
1707 | #define wxSingleChoiceDialog_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 1708 | static PyObject *_wrap_wxSingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1709 | PyObject * _resultobj; |
1710 | int _result; | |
1711 | wxSingleChoiceDialog * _arg0; | |
1d99702e | 1712 | PyObject * _argo0 = 0; |
efc5f224 | 1713 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1714 | |
1715 | self = self; | |
efc5f224 | 1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 1717 | return NULL; |
1d99702e RD |
1718 | if (_argo0) { |
1719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
8ab979d7 RD |
1721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetSelection. Expected _wxSingleChoiceDialog_p."); |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
cf694132 RD |
1725 | { |
1726 | wxPy_BEGIN_ALLOW_THREADS; | |
1727 | _result = (int )wxSingleChoiceDialog_GetSelection(_arg0); | |
1728 | ||
1729 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1730 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1731 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1732 | return _resultobj; |
1733 | } | |
1734 | ||
1735 | #define wxSingleChoiceDialog_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
efc5f224 | 1736 | static PyObject *_wrap_wxSingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1737 | PyObject * _resultobj; |
1738 | wxString * _result; | |
1739 | wxSingleChoiceDialog * _arg0; | |
1d99702e | 1740 | PyObject * _argo0 = 0; |
efc5f224 | 1741 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1742 | |
1743 | self = self; | |
efc5f224 | 1744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 1745 | return NULL; |
1d99702e RD |
1746 | if (_argo0) { |
1747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
8ab979d7 RD |
1749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetStringSelection. Expected _wxSingleChoiceDialog_p."); |
1750 | return NULL; | |
1751 | } | |
1752 | } | |
8ab979d7 | 1753 | { |
cf694132 RD |
1754 | wxPy_BEGIN_ALLOW_THREADS; |
1755 | _result = new wxString (wxSingleChoiceDialog_GetStringSelection(_arg0)); | |
1756 | ||
1757 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1758 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1759 | }{ |
eec92d76 | 1760 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1761 | } |
1762 | { | |
1763 | delete _result; | |
1764 | } | |
1765 | return _resultobj; | |
1766 | } | |
1767 | ||
1768 | #define wxSingleChoiceDialog_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 1769 | static PyObject *_wrap_wxSingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1770 | PyObject * _resultobj; |
1771 | wxSingleChoiceDialog * _arg0; | |
1772 | int _arg1; | |
1d99702e | 1773 | PyObject * _argo0 = 0; |
efc5f224 | 1774 | char *_kwnames[] = { "self","sel", NULL }; |
8ab979d7 RD |
1775 | |
1776 | self = self; | |
efc5f224 | 1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSingleChoiceDialog_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1778 | return NULL; |
1d99702e RD |
1779 | if (_argo0) { |
1780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
8ab979d7 RD |
1782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_SetSelection. Expected _wxSingleChoiceDialog_p."); |
1783 | return NULL; | |
1784 | } | |
1785 | } | |
cf694132 RD |
1786 | { |
1787 | wxPy_BEGIN_ALLOW_THREADS; | |
1788 | wxSingleChoiceDialog_SetSelection(_arg0,_arg1); | |
1789 | ||
1790 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1791 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1792 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1793 | _resultobj = Py_None; |
1794 | return _resultobj; | |
1795 | } | |
1796 | ||
1797 | #define wxSingleChoiceDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 1798 | static PyObject *_wrap_wxSingleChoiceDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1799 | PyObject * _resultobj; |
1800 | int _result; | |
1801 | wxSingleChoiceDialog * _arg0; | |
1d99702e | 1802 | PyObject * _argo0 = 0; |
efc5f224 | 1803 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1804 | |
1805 | self = self; | |
efc5f224 | 1806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 1807 | return NULL; |
1d99702e RD |
1808 | if (_argo0) { |
1809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
8ab979d7 RD |
1811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_ShowModal. Expected _wxSingleChoiceDialog_p."); |
1812 | return NULL; | |
1813 | } | |
1814 | } | |
cf694132 RD |
1815 | { |
1816 | wxPy_BEGIN_ALLOW_THREADS; | |
1817 | _result = (int )wxSingleChoiceDialog_ShowModal(_arg0); | |
1818 | ||
1819 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1820 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1821 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1822 | return _resultobj; |
1823 | } | |
1824 | ||
1825 | static void *SwigwxTextEntryDialogTowxDialog(void *ptr) { | |
1826 | wxTextEntryDialog *src; | |
1827 | wxDialog *dest; | |
1828 | src = (wxTextEntryDialog *) ptr; | |
1829 | dest = (wxDialog *) src; | |
1830 | return (void *) dest; | |
1831 | } | |
1832 | ||
65fe3842 | 1833 | static void *SwigwxTextEntryDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 1834 | wxTextEntryDialog *src; |
65fe3842 | 1835 | wxTopLevelWindow *dest; |
8ab979d7 | 1836 | src = (wxTextEntryDialog *) ptr; |
65fe3842 | 1837 | dest = (wxTopLevelWindow *) src; |
8ab979d7 RD |
1838 | return (void *) dest; |
1839 | } | |
1840 | ||
1841 | static void *SwigwxTextEntryDialogTowxWindow(void *ptr) { | |
1842 | wxTextEntryDialog *src; | |
1843 | wxWindow *dest; | |
1844 | src = (wxTextEntryDialog *) ptr; | |
1845 | dest = (wxWindow *) src; | |
1846 | return (void *) dest; | |
1847 | } | |
1848 | ||
1849 | static void *SwigwxTextEntryDialogTowxEvtHandler(void *ptr) { | |
1850 | wxTextEntryDialog *src; | |
1851 | wxEvtHandler *dest; | |
1852 | src = (wxTextEntryDialog *) ptr; | |
1853 | dest = (wxEvtHandler *) src; | |
1854 | return (void *) dest; | |
1855 | } | |
1856 | ||
9416aa89 RD |
1857 | static void *SwigwxTextEntryDialogTowxObject(void *ptr) { |
1858 | wxTextEntryDialog *src; | |
1859 | wxObject *dest; | |
1860 | src = (wxTextEntryDialog *) ptr; | |
1861 | dest = (wxObject *) src; | |
1862 | return (void *) dest; | |
1863 | } | |
1864 | ||
8ab979d7 | 1865 | #define new_wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 1866 | static PyObject *_wrap_new_wxTextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1867 | PyObject * _resultobj; |
1868 | wxTextEntryDialog * _result; | |
1869 | wxWindow * _arg0; | |
1870 | char * _arg1; | |
1d99702e RD |
1871 | char * _arg2 = (char *) "Input Text"; |
1872 | char * _arg3 = (char *) ""; | |
1873 | long _arg4 = (long ) wxOK|wxCANCEL|wxCENTRE; | |
e508a2b6 | 1874 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
1d99702e | 1875 | PyObject * _argo0 = 0; |
2f90df85 RD |
1876 | wxPoint temp; |
1877 | PyObject * _obj5 = 0; | |
efc5f224 | 1878 | char *_kwnames[] = { "parent","message","caption","defaultValue","style","pos", NULL }; |
8ab979d7 RD |
1879 | char _ptemp[128]; |
1880 | ||
1881 | self = self; | |
2f90df85 | 1882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|sslO:new_wxTextEntryDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5)) |
8ab979d7 | 1883 | return NULL; |
1d99702e RD |
1884 | if (_argo0) { |
1885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextEntryDialog. Expected _wxWindow_p."); |
1888 | return NULL; | |
1889 | } | |
1890 | } | |
2f90df85 RD |
1891 | if (_obj5) |
1892 | { | |
1893 | _arg5 = &temp; | |
1894 | if (! wxPoint_helper(_obj5, &_arg5)) | |
8ab979d7 | 1895 | return NULL; |
2f90df85 | 1896 | } |
cf694132 RD |
1897 | { |
1898 | wxPy_BEGIN_ALLOW_THREADS; | |
1899 | _result = (wxTextEntryDialog *)new_wxTextEntryDialog(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5); | |
1900 | ||
1901 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1902 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1903 | } if (_result) { |
1904 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextEntryDialog_p"); | |
1905 | _resultobj = Py_BuildValue("s",_ptemp); | |
1906 | } else { | |
1907 | Py_INCREF(Py_None); | |
1908 | _resultobj = Py_None; | |
1909 | } | |
8ab979d7 RD |
1910 | return _resultobj; |
1911 | } | |
1912 | ||
1913 | #define wxTextEntryDialog_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 1914 | static PyObject *_wrap_wxTextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1915 | PyObject * _resultobj; |
1916 | wxString * _result; | |
1917 | wxTextEntryDialog * _arg0; | |
1d99702e | 1918 | PyObject * _argo0 = 0; |
efc5f224 | 1919 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1920 | |
1921 | self = self; | |
efc5f224 | 1922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 1923 | return NULL; |
1d99702e RD |
1924 | if (_argo0) { |
1925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
8ab979d7 RD |
1927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_GetValue. Expected _wxTextEntryDialog_p."); |
1928 | return NULL; | |
1929 | } | |
1930 | } | |
8ab979d7 | 1931 | { |
cf694132 RD |
1932 | wxPy_BEGIN_ALLOW_THREADS; |
1933 | _result = new wxString (wxTextEntryDialog_GetValue(_arg0)); | |
1934 | ||
1935 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1936 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1937 | }{ |
eec92d76 | 1938 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
1939 | } |
1940 | { | |
1941 | delete _result; | |
1942 | } | |
1943 | return _resultobj; | |
1944 | } | |
1945 | ||
1946 | #define wxTextEntryDialog_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 1947 | static PyObject *_wrap_wxTextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1948 | PyObject * _resultobj; |
1949 | wxTextEntryDialog * _arg0; | |
1950 | wxString * _arg1; | |
1d99702e | 1951 | PyObject * _argo0 = 0; |
8ab979d7 | 1952 | PyObject * _obj1 = 0; |
efc5f224 | 1953 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
1954 | |
1955 | self = self; | |
efc5f224 | 1956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextEntryDialog_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1957 | return NULL; |
1d99702e RD |
1958 | if (_argo0) { |
1959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
8ab979d7 RD |
1961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_SetValue. Expected _wxTextEntryDialog_p."); |
1962 | return NULL; | |
1963 | } | |
1964 | } | |
1965 | { | |
185d7c3e RD |
1966 | #if PYTHON_API_VERSION >= 1009 |
1967 | char* tmpPtr; int tmpSize; | |
1968 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1969 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1970 | return NULL; |
1971 | } | |
1972 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1973 | return NULL; | |
1974 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1975 | #else | |
8ab979d7 RD |
1976 | if (!PyString_Check(_obj1)) { |
1977 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1978 | return NULL; | |
1979 | } | |
185d7c3e RD |
1980 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1981 | #endif | |
8ab979d7 | 1982 | } |
cf694132 RD |
1983 | { |
1984 | wxPy_BEGIN_ALLOW_THREADS; | |
1985 | wxTextEntryDialog_SetValue(_arg0,*_arg1); | |
1986 | ||
1987 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1988 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1989 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1990 | _resultobj = Py_None; |
1991 | { | |
1992 | if (_obj1) | |
1993 | delete _arg1; | |
1994 | } | |
1995 | return _resultobj; | |
1996 | } | |
1997 | ||
1998 | #define wxTextEntryDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 1999 | static PyObject *_wrap_wxTextEntryDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2000 | PyObject * _resultobj; |
2001 | int _result; | |
2002 | wxTextEntryDialog * _arg0; | |
1d99702e | 2003 | PyObject * _argo0 = 0; |
efc5f224 | 2004 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2005 | |
2006 | self = self; | |
efc5f224 | 2007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 2008 | return NULL; |
1d99702e RD |
2009 | if (_argo0) { |
2010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
8ab979d7 RD |
2012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_ShowModal. Expected _wxTextEntryDialog_p."); |
2013 | return NULL; | |
2014 | } | |
2015 | } | |
cf694132 RD |
2016 | { |
2017 | wxPy_BEGIN_ALLOW_THREADS; | |
2018 | _result = (int )wxTextEntryDialog_ShowModal(_arg0); | |
2019 | ||
2020 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2021 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2022 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2023 | return _resultobj; |
2024 | } | |
2025 | ||
9416aa89 RD |
2026 | static void *SwigwxFontDataTowxObject(void *ptr) { |
2027 | wxFontData *src; | |
2028 | wxObject *dest; | |
2029 | src = (wxFontData *) ptr; | |
2030 | dest = (wxObject *) src; | |
2031 | return (void *) dest; | |
2032 | } | |
2033 | ||
8ab979d7 | 2034 | #define new_wxFontData() (new wxFontData()) |
efc5f224 | 2035 | static PyObject *_wrap_new_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2036 | PyObject * _resultobj; |
2037 | wxFontData * _result; | |
efc5f224 | 2038 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
2039 | char _ptemp[128]; |
2040 | ||
2041 | self = self; | |
efc5f224 | 2042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontData",_kwnames)) |
8ab979d7 | 2043 | return NULL; |
cf694132 RD |
2044 | { |
2045 | wxPy_BEGIN_ALLOW_THREADS; | |
2046 | _result = (wxFontData *)new_wxFontData(); | |
2047 | ||
2048 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2049 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2050 | } if (_result) { |
2051 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontData_p"); | |
2052 | _resultobj = Py_BuildValue("s",_ptemp); | |
2053 | } else { | |
2054 | Py_INCREF(Py_None); | |
2055 | _resultobj = Py_None; | |
2056 | } | |
8ab979d7 RD |
2057 | return _resultobj; |
2058 | } | |
2059 | ||
2060 | #define delete_wxFontData(_swigobj) (delete _swigobj) | |
efc5f224 | 2061 | static PyObject *_wrap_delete_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2062 | PyObject * _resultobj; |
2063 | wxFontData * _arg0; | |
1d99702e | 2064 | PyObject * _argo0 = 0; |
efc5f224 | 2065 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2066 | |
2067 | self = self; | |
efc5f224 | 2068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontData",_kwnames,&_argo0)) |
8ab979d7 | 2069 | return NULL; |
1d99702e RD |
2070 | if (_argo0) { |
2071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontData. Expected _wxFontData_p."); |
2074 | return NULL; | |
2075 | } | |
2076 | } | |
cf694132 RD |
2077 | { |
2078 | wxPy_BEGIN_ALLOW_THREADS; | |
2079 | delete_wxFontData(_arg0); | |
2080 | ||
2081 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2082 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2083 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2084 | _resultobj = Py_None; |
2085 | return _resultobj; | |
2086 | } | |
2087 | ||
2088 | #define wxFontData_EnableEffects(_swigobj,_swigarg0) (_swigobj->EnableEffects(_swigarg0)) | |
efc5f224 | 2089 | static PyObject *_wrap_wxFontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2090 | PyObject * _resultobj; |
2091 | wxFontData * _arg0; | |
2092 | bool _arg1; | |
1d99702e | 2093 | PyObject * _argo0 = 0; |
8ab979d7 | 2094 | int tempbool1; |
efc5f224 | 2095 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
2096 | |
2097 | self = self; | |
efc5f224 | 2098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_EnableEffects",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2099 | return NULL; |
1d99702e RD |
2100 | if (_argo0) { |
2101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_EnableEffects. Expected _wxFontData_p."); |
2104 | return NULL; | |
2105 | } | |
2106 | } | |
2107 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
2108 | { |
2109 | wxPy_BEGIN_ALLOW_THREADS; | |
2110 | wxFontData_EnableEffects(_arg0,_arg1); | |
2111 | ||
2112 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2113 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2114 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2115 | _resultobj = Py_None; |
2116 | return _resultobj; | |
2117 | } | |
2118 | ||
2119 | #define wxFontData_GetAllowSymbols(_swigobj) (_swigobj->GetAllowSymbols()) | |
efc5f224 | 2120 | static PyObject *_wrap_wxFontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2121 | PyObject * _resultobj; |
2122 | bool _result; | |
2123 | wxFontData * _arg0; | |
1d99702e | 2124 | PyObject * _argo0 = 0; |
efc5f224 | 2125 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2126 | |
2127 | self = self; | |
efc5f224 | 2128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetAllowSymbols",_kwnames,&_argo0)) |
8ab979d7 | 2129 | return NULL; |
1d99702e RD |
2130 | if (_argo0) { |
2131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetAllowSymbols. Expected _wxFontData_p."); |
2134 | return NULL; | |
2135 | } | |
2136 | } | |
cf694132 RD |
2137 | { |
2138 | wxPy_BEGIN_ALLOW_THREADS; | |
2139 | _result = (bool )wxFontData_GetAllowSymbols(_arg0); | |
2140 | ||
2141 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2142 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2143 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2144 | return _resultobj; |
2145 | } | |
2146 | ||
2147 | #define wxFontData_GetColour(_swigobj) (_swigobj->GetColour()) | |
efc5f224 | 2148 | static PyObject *_wrap_wxFontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2149 | PyObject * _resultobj; |
2150 | wxColour * _result; | |
2151 | wxFontData * _arg0; | |
1d99702e | 2152 | PyObject * _argo0 = 0; |
efc5f224 | 2153 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2154 | char _ptemp[128]; |
2155 | ||
2156 | self = self; | |
efc5f224 | 2157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 2158 | return NULL; |
1d99702e RD |
2159 | if (_argo0) { |
2160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetColour. Expected _wxFontData_p."); |
2163 | return NULL; | |
2164 | } | |
2165 | } | |
cf694132 RD |
2166 | { |
2167 | wxPy_BEGIN_ALLOW_THREADS; | |
25832b3f | 2168 | _result = new wxColour (wxFontData_GetColour(_arg0)); |
cf694132 RD |
2169 | |
2170 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2171 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
2172 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
2173 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2174 | return _resultobj; |
2175 | } | |
2176 | ||
2177 | #define wxFontData_GetChosenFont(_swigobj) (_swigobj->GetChosenFont()) | |
efc5f224 | 2178 | static PyObject *_wrap_wxFontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2179 | PyObject * _resultobj; |
2180 | wxFont * _result; | |
2181 | wxFontData * _arg0; | |
1d99702e | 2182 | PyObject * _argo0 = 0; |
efc5f224 | 2183 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2184 | char _ptemp[128]; |
2185 | ||
2186 | self = self; | |
efc5f224 | 2187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetChosenFont",_kwnames,&_argo0)) |
8ab979d7 | 2188 | return NULL; |
1d99702e RD |
2189 | if (_argo0) { |
2190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetChosenFont. Expected _wxFontData_p."); |
2193 | return NULL; | |
2194 | } | |
2195 | } | |
cf694132 RD |
2196 | { |
2197 | wxPy_BEGIN_ALLOW_THREADS; | |
2198 | _result = new wxFont (wxFontData_GetChosenFont(_arg0)); | |
2199 | ||
2200 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2201 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2202 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
8ab979d7 RD |
2203 | _resultobj = Py_BuildValue("s",_ptemp); |
2204 | return _resultobj; | |
2205 | } | |
2206 | ||
2207 | #define wxFontData_GetEnableEffects(_swigobj) (_swigobj->GetEnableEffects()) | |
efc5f224 | 2208 | static PyObject *_wrap_wxFontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2209 | PyObject * _resultobj; |
2210 | bool _result; | |
2211 | wxFontData * _arg0; | |
1d99702e | 2212 | PyObject * _argo0 = 0; |
efc5f224 | 2213 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2214 | |
2215 | self = self; | |
efc5f224 | 2216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetEnableEffects",_kwnames,&_argo0)) |
8ab979d7 | 2217 | return NULL; |
1d99702e RD |
2218 | if (_argo0) { |
2219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetEnableEffects. Expected _wxFontData_p."); |
2222 | return NULL; | |
2223 | } | |
2224 | } | |
cf694132 RD |
2225 | { |
2226 | wxPy_BEGIN_ALLOW_THREADS; | |
2227 | _result = (bool )wxFontData_GetEnableEffects(_arg0); | |
2228 | ||
2229 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2230 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2231 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2232 | return _resultobj; |
2233 | } | |
2234 | ||
2235 | #define wxFontData_GetInitialFont(_swigobj) (_swigobj->GetInitialFont()) | |
efc5f224 | 2236 | static PyObject *_wrap_wxFontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2237 | PyObject * _resultobj; |
2238 | wxFont * _result; | |
2239 | wxFontData * _arg0; | |
1d99702e | 2240 | PyObject * _argo0 = 0; |
efc5f224 | 2241 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2242 | char _ptemp[128]; |
2243 | ||
2244 | self = self; | |
efc5f224 | 2245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetInitialFont",_kwnames,&_argo0)) |
8ab979d7 | 2246 | return NULL; |
1d99702e RD |
2247 | if (_argo0) { |
2248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetInitialFont. Expected _wxFontData_p."); |
2251 | return NULL; | |
2252 | } | |
2253 | } | |
cf694132 RD |
2254 | { |
2255 | wxPy_BEGIN_ALLOW_THREADS; | |
2256 | _result = new wxFont (wxFontData_GetInitialFont(_arg0)); | |
2257 | ||
2258 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2259 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2260 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
8ab979d7 RD |
2261 | _resultobj = Py_BuildValue("s",_ptemp); |
2262 | return _resultobj; | |
2263 | } | |
2264 | ||
2265 | #define wxFontData_GetShowHelp(_swigobj) (_swigobj->GetShowHelp()) | |
efc5f224 | 2266 | static PyObject *_wrap_wxFontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2267 | PyObject * _resultobj; |
2268 | bool _result; | |
2269 | wxFontData * _arg0; | |
1d99702e | 2270 | PyObject * _argo0 = 0; |
efc5f224 | 2271 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2272 | |
2273 | self = self; | |
efc5f224 | 2274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetShowHelp",_kwnames,&_argo0)) |
8ab979d7 | 2275 | return NULL; |
1d99702e RD |
2276 | if (_argo0) { |
2277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetShowHelp. Expected _wxFontData_p."); |
2280 | return NULL; | |
2281 | } | |
2282 | } | |
cf694132 RD |
2283 | { |
2284 | wxPy_BEGIN_ALLOW_THREADS; | |
2285 | _result = (bool )wxFontData_GetShowHelp(_arg0); | |
2286 | ||
2287 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2288 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2289 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2290 | return _resultobj; |
2291 | } | |
2292 | ||
2293 | #define wxFontData_SetAllowSymbols(_swigobj,_swigarg0) (_swigobj->SetAllowSymbols(_swigarg0)) | |
efc5f224 | 2294 | static PyObject *_wrap_wxFontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2295 | PyObject * _resultobj; |
2296 | wxFontData * _arg0; | |
2297 | bool _arg1; | |
1d99702e | 2298 | PyObject * _argo0 = 0; |
8ab979d7 | 2299 | int tempbool1; |
efc5f224 | 2300 | char *_kwnames[] = { "self","allowSymbols", NULL }; |
8ab979d7 RD |
2301 | |
2302 | self = self; | |
efc5f224 | 2303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetAllowSymbols",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2304 | return NULL; |
1d99702e RD |
2305 | if (_argo0) { |
2306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetAllowSymbols. Expected _wxFontData_p."); |
2309 | return NULL; | |
2310 | } | |
2311 | } | |
2312 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
2313 | { |
2314 | wxPy_BEGIN_ALLOW_THREADS; | |
2315 | wxFontData_SetAllowSymbols(_arg0,_arg1); | |
2316 | ||
2317 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2318 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2319 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2320 | _resultobj = Py_None; |
2321 | return _resultobj; | |
2322 | } | |
2323 | ||
2324 | #define wxFontData_SetChosenFont(_swigobj,_swigarg0) (_swigobj->SetChosenFont(_swigarg0)) | |
efc5f224 | 2325 | static PyObject *_wrap_wxFontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2326 | PyObject * _resultobj; |
2327 | wxFontData * _arg0; | |
2328 | wxFont * _arg1; | |
1d99702e RD |
2329 | PyObject * _argo0 = 0; |
2330 | PyObject * _argo1 = 0; | |
efc5f224 | 2331 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
2332 | |
2333 | self = self; | |
efc5f224 | 2334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetChosenFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2335 | return NULL; |
1d99702e RD |
2336 | if (_argo0) { |
2337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetChosenFont. Expected _wxFontData_p."); |
2340 | return NULL; | |
2341 | } | |
2342 | } | |
1d99702e RD |
2343 | if (_argo1) { |
2344 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2345 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
2346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetChosenFont. Expected _wxFont_p."); |
2347 | return NULL; | |
2348 | } | |
2349 | } | |
cf694132 RD |
2350 | { |
2351 | wxPy_BEGIN_ALLOW_THREADS; | |
2352 | wxFontData_SetChosenFont(_arg0,*_arg1); | |
2353 | ||
2354 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2355 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2356 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2357 | _resultobj = Py_None; |
2358 | return _resultobj; | |
2359 | } | |
2360 | ||
2361 | #define wxFontData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
efc5f224 | 2362 | static PyObject *_wrap_wxFontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2363 | PyObject * _resultobj; |
2364 | wxFontData * _arg0; | |
2365 | wxColour * _arg1; | |
1d99702e | 2366 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2367 | wxColour temp; |
2368 | PyObject * _obj1 = 0; | |
efc5f224 | 2369 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
2370 | |
2371 | self = self; | |
f6bcfd97 | 2372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2373 | return NULL; |
1d99702e RD |
2374 | if (_argo0) { |
2375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetColour. Expected _wxFontData_p."); |
2378 | return NULL; | |
2379 | } | |
2380 | } | |
f6bcfd97 BP |
2381 | { |
2382 | _arg1 = &temp; | |
2383 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 2384 | return NULL; |
f6bcfd97 | 2385 | } |
cf694132 RD |
2386 | { |
2387 | wxPy_BEGIN_ALLOW_THREADS; | |
2388 | wxFontData_SetColour(_arg0,*_arg1); | |
2389 | ||
2390 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2391 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2392 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2393 | _resultobj = Py_None; |
2394 | return _resultobj; | |
2395 | } | |
2396 | ||
2397 | #define wxFontData_SetInitialFont(_swigobj,_swigarg0) (_swigobj->SetInitialFont(_swigarg0)) | |
efc5f224 | 2398 | static PyObject *_wrap_wxFontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2399 | PyObject * _resultobj; |
2400 | wxFontData * _arg0; | |
2401 | wxFont * _arg1; | |
1d99702e RD |
2402 | PyObject * _argo0 = 0; |
2403 | PyObject * _argo1 = 0; | |
efc5f224 | 2404 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
2405 | |
2406 | self = self; | |
efc5f224 | 2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetInitialFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2408 | return NULL; |
1d99702e RD |
2409 | if (_argo0) { |
2410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetInitialFont. Expected _wxFontData_p."); |
2413 | return NULL; | |
2414 | } | |
2415 | } | |
1d99702e RD |
2416 | if (_argo1) { |
2417 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2418 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
2419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetInitialFont. Expected _wxFont_p."); |
2420 | return NULL; | |
2421 | } | |
2422 | } | |
cf694132 RD |
2423 | { |
2424 | wxPy_BEGIN_ALLOW_THREADS; | |
2425 | wxFontData_SetInitialFont(_arg0,*_arg1); | |
2426 | ||
2427 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2428 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2429 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2430 | _resultobj = Py_None; |
2431 | return _resultobj; | |
2432 | } | |
2433 | ||
2434 | #define wxFontData_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 2435 | static PyObject *_wrap_wxFontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2436 | PyObject * _resultobj; |
2437 | wxFontData * _arg0; | |
2438 | int _arg1; | |
2439 | int _arg2; | |
1d99702e | 2440 | PyObject * _argo0 = 0; |
efc5f224 | 2441 | char *_kwnames[] = { "self","min","max", NULL }; |
8ab979d7 RD |
2442 | |
2443 | self = self; | |
efc5f224 | 2444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxFontData_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2445 | return NULL; |
1d99702e RD |
2446 | if (_argo0) { |
2447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetRange. Expected _wxFontData_p."); |
2450 | return NULL; | |
2451 | } | |
2452 | } | |
cf694132 RD |
2453 | { |
2454 | wxPy_BEGIN_ALLOW_THREADS; | |
2455 | wxFontData_SetRange(_arg0,_arg1,_arg2); | |
2456 | ||
2457 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2458 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2459 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2460 | _resultobj = Py_None; |
2461 | return _resultobj; | |
2462 | } | |
2463 | ||
2464 | #define wxFontData_SetShowHelp(_swigobj,_swigarg0) (_swigobj->SetShowHelp(_swigarg0)) | |
efc5f224 | 2465 | static PyObject *_wrap_wxFontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2466 | PyObject * _resultobj; |
2467 | wxFontData * _arg0; | |
2468 | bool _arg1; | |
1d99702e | 2469 | PyObject * _argo0 = 0; |
8ab979d7 | 2470 | int tempbool1; |
efc5f224 | 2471 | char *_kwnames[] = { "self","showHelp", NULL }; |
8ab979d7 RD |
2472 | |
2473 | self = self; | |
efc5f224 | 2474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetShowHelp",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2475 | return NULL; |
1d99702e RD |
2476 | if (_argo0) { |
2477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetShowHelp. Expected _wxFontData_p."); |
2480 | return NULL; | |
2481 | } | |
2482 | } | |
2483 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
2484 | { |
2485 | wxPy_BEGIN_ALLOW_THREADS; | |
2486 | wxFontData_SetShowHelp(_arg0,_arg1); | |
2487 | ||
2488 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2489 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2490 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2491 | _resultobj = Py_None; |
2492 | return _resultobj; | |
2493 | } | |
2494 | ||
2495 | static void *SwigwxFontDialogTowxDialog(void *ptr) { | |
2496 | wxFontDialog *src; | |
2497 | wxDialog *dest; | |
2498 | src = (wxFontDialog *) ptr; | |
2499 | dest = (wxDialog *) src; | |
2500 | return (void *) dest; | |
2501 | } | |
2502 | ||
65fe3842 | 2503 | static void *SwigwxFontDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 2504 | wxFontDialog *src; |
65fe3842 | 2505 | wxTopLevelWindow *dest; |
8ab979d7 | 2506 | src = (wxFontDialog *) ptr; |
65fe3842 | 2507 | dest = (wxTopLevelWindow *) src; |
8ab979d7 RD |
2508 | return (void *) dest; |
2509 | } | |
2510 | ||
2511 | static void *SwigwxFontDialogTowxWindow(void *ptr) { | |
2512 | wxFontDialog *src; | |
2513 | wxWindow *dest; | |
2514 | src = (wxFontDialog *) ptr; | |
2515 | dest = (wxWindow *) src; | |
2516 | return (void *) dest; | |
2517 | } | |
2518 | ||
2519 | static void *SwigwxFontDialogTowxEvtHandler(void *ptr) { | |
2520 | wxFontDialog *src; | |
2521 | wxEvtHandler *dest; | |
2522 | src = (wxFontDialog *) ptr; | |
2523 | dest = (wxEvtHandler *) src; | |
2524 | return (void *) dest; | |
2525 | } | |
2526 | ||
9416aa89 RD |
2527 | static void *SwigwxFontDialogTowxObject(void *ptr) { |
2528 | wxFontDialog *src; | |
2529 | wxObject *dest; | |
2530 | src = (wxFontDialog *) ptr; | |
2531 | dest = (wxObject *) src; | |
2532 | return (void *) dest; | |
2533 | } | |
2534 | ||
8ab979d7 | 2535 | #define new_wxFontDialog(_swigarg0,_swigarg1) (new wxFontDialog(_swigarg0,_swigarg1)) |
efc5f224 | 2536 | static PyObject *_wrap_new_wxFontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2537 | PyObject * _resultobj; |
2538 | wxFontDialog * _result; | |
2539 | wxWindow * _arg0; | |
990416e0 | 2540 | wxFontData * _arg1; |
1d99702e RD |
2541 | PyObject * _argo0 = 0; |
2542 | PyObject * _argo1 = 0; | |
efc5f224 | 2543 | char *_kwnames[] = { "parent","data", NULL }; |
8ab979d7 RD |
2544 | char _ptemp[128]; |
2545 | ||
2546 | self = self; | |
990416e0 | 2547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxFontDialog",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2548 | return NULL; |
1d99702e RD |
2549 | if (_argo0) { |
2550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontDialog. Expected _wxWindow_p."); |
2553 | return NULL; | |
2554 | } | |
2555 | } | |
1d99702e RD |
2556 | if (_argo1) { |
2557 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2558 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFontData_p")) { | |
8ab979d7 RD |
2559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxFontDialog. Expected _wxFontData_p."); |
2560 | return NULL; | |
2561 | } | |
2562 | } | |
cf694132 RD |
2563 | { |
2564 | wxPy_BEGIN_ALLOW_THREADS; | |
2565 | _result = (wxFontDialog *)new_wxFontDialog(_arg0,_arg1); | |
2566 | ||
2567 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2568 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2569 | } if (_result) { |
2570 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontDialog_p"); | |
2571 | _resultobj = Py_BuildValue("s",_ptemp); | |
2572 | } else { | |
2573 | Py_INCREF(Py_None); | |
2574 | _resultobj = Py_None; | |
2575 | } | |
8ab979d7 RD |
2576 | return _resultobj; |
2577 | } | |
2578 | ||
2579 | #define wxFontDialog_GetFontData(_swigobj) (_swigobj->GetFontData()) | |
efc5f224 | 2580 | static PyObject *_wrap_wxFontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2581 | PyObject * _resultobj; |
2582 | wxFontData * _result; | |
2583 | wxFontDialog * _arg0; | |
1d99702e | 2584 | PyObject * _argo0 = 0; |
efc5f224 | 2585 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2586 | char _ptemp[128]; |
2587 | ||
2588 | self = self; | |
efc5f224 | 2589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_GetFontData",_kwnames,&_argo0)) |
8ab979d7 | 2590 | return NULL; |
1d99702e RD |
2591 | if (_argo0) { |
2592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) { | |
8ab979d7 RD |
2594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_GetFontData. Expected _wxFontDialog_p."); |
2595 | return NULL; | |
2596 | } | |
2597 | } | |
cf694132 RD |
2598 | { |
2599 | wxPy_BEGIN_ALLOW_THREADS; | |
2600 | wxFontData & _result_ref = wxFontDialog_GetFontData(_arg0); | |
8ab979d7 | 2601 | _result = (wxFontData *) &_result_ref; |
cf694132 RD |
2602 | |
2603 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2604 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2605 | } if (_result) { |
2606 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontData_p"); | |
2607 | _resultobj = Py_BuildValue("s",_ptemp); | |
2608 | } else { | |
2609 | Py_INCREF(Py_None); | |
2610 | _resultobj = Py_None; | |
2611 | } | |
8ab979d7 RD |
2612 | return _resultobj; |
2613 | } | |
2614 | ||
2615 | #define wxFontDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 2616 | static PyObject *_wrap_wxFontDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2617 | PyObject * _resultobj; |
2618 | int _result; | |
2619 | wxFontDialog * _arg0; | |
1d99702e | 2620 | PyObject * _argo0 = 0; |
efc5f224 | 2621 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2622 | |
2623 | self = self; | |
efc5f224 | 2624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 2625 | return NULL; |
1d99702e RD |
2626 | if (_argo0) { |
2627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) { | |
8ab979d7 RD |
2629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_ShowModal. Expected _wxFontDialog_p."); |
2630 | return NULL; | |
2631 | } | |
2632 | } | |
cf694132 RD |
2633 | { |
2634 | wxPy_BEGIN_ALLOW_THREADS; | |
2635 | _result = (int )wxFontDialog_ShowModal(_arg0); | |
2636 | ||
2637 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2638 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2639 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2640 | return _resultobj; |
2641 | } | |
2642 | ||
bb0054cd RD |
2643 | static void *SwigwxMessageDialogTowxDialog(void *ptr) { |
2644 | wxMessageDialog *src; | |
8ab979d7 | 2645 | wxDialog *dest; |
bb0054cd | 2646 | src = (wxMessageDialog *) ptr; |
8ab979d7 RD |
2647 | dest = (wxDialog *) src; |
2648 | return (void *) dest; | |
2649 | } | |
2650 | ||
65fe3842 | 2651 | static void *SwigwxMessageDialogTowxTopLevelWindow(void *ptr) { |
bb0054cd | 2652 | wxMessageDialog *src; |
65fe3842 | 2653 | wxTopLevelWindow *dest; |
bb0054cd | 2654 | src = (wxMessageDialog *) ptr; |
65fe3842 | 2655 | dest = (wxTopLevelWindow *) src; |
8ab979d7 RD |
2656 | return (void *) dest; |
2657 | } | |
2658 | ||
bb0054cd RD |
2659 | static void *SwigwxMessageDialogTowxWindow(void *ptr) { |
2660 | wxMessageDialog *src; | |
8ab979d7 | 2661 | wxWindow *dest; |
bb0054cd | 2662 | src = (wxMessageDialog *) ptr; |
8ab979d7 RD |
2663 | dest = (wxWindow *) src; |
2664 | return (void *) dest; | |
2665 | } | |
2666 | ||
bb0054cd RD |
2667 | static void *SwigwxMessageDialogTowxEvtHandler(void *ptr) { |
2668 | wxMessageDialog *src; | |
8ab979d7 | 2669 | wxEvtHandler *dest; |
bb0054cd | 2670 | src = (wxMessageDialog *) ptr; |
8ab979d7 RD |
2671 | dest = (wxEvtHandler *) src; |
2672 | return (void *) dest; | |
2673 | } | |
2674 | ||
9416aa89 RD |
2675 | static void *SwigwxMessageDialogTowxObject(void *ptr) { |
2676 | wxMessageDialog *src; | |
2677 | wxObject *dest; | |
2678 | src = (wxMessageDialog *) ptr; | |
2679 | dest = (wxObject *) src; | |
2680 | return (void *) dest; | |
2681 | } | |
2682 | ||
bb0054cd | 2683 | #define new_wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 2684 | static PyObject *_wrap_new_wxMessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2685 | PyObject * _resultobj; |
bb0054cd | 2686 | wxMessageDialog * _result; |
8ab979d7 | 2687 | wxWindow * _arg0; |
bb0054cd | 2688 | char * _arg1; |
1d99702e RD |
2689 | char * _arg2 = (char *) "Message box"; |
2690 | long _arg3 = (long ) wxOK|wxCANCEL|wxCENTRE; | |
e508a2b6 | 2691 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
1d99702e | 2692 | PyObject * _argo0 = 0; |
2f90df85 RD |
2693 | wxPoint temp; |
2694 | PyObject * _obj4 = 0; | |
efc5f224 | 2695 | char *_kwnames[] = { "parent","message","caption","style","pos", NULL }; |
8ab979d7 RD |
2696 | char _ptemp[128]; |
2697 | ||
2698 | self = self; | |
2f90df85 | 2699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|slO:new_wxMessageDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) |
8ab979d7 | 2700 | return NULL; |
1d99702e RD |
2701 | if (_argo0) { |
2702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd | 2704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMessageDialog. Expected _wxWindow_p."); |
8ab979d7 RD |
2705 | return NULL; |
2706 | } | |
2707 | } | |
2f90df85 RD |
2708 | if (_obj4) |
2709 | { | |
2710 | _arg4 = &temp; | |
2711 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 2712 | return NULL; |
2f90df85 | 2713 | } |
cf694132 RD |
2714 | { |
2715 | wxPy_BEGIN_ALLOW_THREADS; | |
bb0054cd | 2716 | _result = (wxMessageDialog *)new_wxMessageDialog(_arg0,_arg1,_arg2,_arg3,*_arg4); |
cf694132 RD |
2717 | |
2718 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2719 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2720 | } if (_result) { |
2721 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMessageDialog_p"); | |
2722 | _resultobj = Py_BuildValue("s",_ptemp); | |
2723 | } else { | |
2724 | Py_INCREF(Py_None); | |
2725 | _resultobj = Py_None; | |
2726 | } | |
8ab979d7 RD |
2727 | return _resultobj; |
2728 | } | |
2729 | ||
bb0054cd | 2730 | #define wxMessageDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) |
efc5f224 | 2731 | static PyObject *_wrap_wxMessageDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2732 | PyObject * _resultobj; |
bb0054cd RD |
2733 | int _result; |
2734 | wxMessageDialog * _arg0; | |
1d99702e | 2735 | PyObject * _argo0 = 0; |
efc5f224 | 2736 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2737 | |
2738 | self = self; | |
efc5f224 | 2739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMessageDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 2740 | return NULL; |
1d99702e RD |
2741 | if (_argo0) { |
2742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMessageDialog_p")) { | |
bb0054cd | 2744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMessageDialog_ShowModal. Expected _wxMessageDialog_p."); |
8ab979d7 RD |
2745 | return NULL; |
2746 | } | |
2747 | } | |
cf694132 RD |
2748 | { |
2749 | wxPy_BEGIN_ALLOW_THREADS; | |
bb0054cd | 2750 | _result = (int )wxMessageDialog_ShowModal(_arg0); |
cf694132 RD |
2751 | |
2752 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2753 | if (PyErr_Occurred()) return NULL; |
bb0054cd | 2754 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2755 | return _resultobj; |
2756 | } | |
2757 | ||
bb0054cd RD |
2758 | static void *SwigwxProgressDialogTowxFrame(void *ptr) { |
2759 | wxProgressDialog *src; | |
2760 | wxFrame *dest; | |
2761 | src = (wxProgressDialog *) ptr; | |
2762 | dest = (wxFrame *) src; | |
2763 | return (void *) dest; | |
2764 | } | |
2765 | ||
65fe3842 RD |
2766 | static void *SwigwxProgressDialogTowxTopLevelWindow(void *ptr) { |
2767 | wxProgressDialog *src; | |
2768 | wxTopLevelWindow *dest; | |
2769 | src = (wxProgressDialog *) ptr; | |
2770 | dest = (wxTopLevelWindow *) src; | |
2771 | return (void *) dest; | |
2772 | } | |
2773 | ||
bb0054cd RD |
2774 | static void *SwigwxProgressDialogTowxWindow(void *ptr) { |
2775 | wxProgressDialog *src; | |
2776 | wxWindow *dest; | |
2777 | src = (wxProgressDialog *) ptr; | |
2778 | dest = (wxWindow *) src; | |
2779 | return (void *) dest; | |
2780 | } | |
2781 | ||
2782 | static void *SwigwxProgressDialogTowxEvtHandler(void *ptr) { | |
2783 | wxProgressDialog *src; | |
2784 | wxEvtHandler *dest; | |
2785 | src = (wxProgressDialog *) ptr; | |
2786 | dest = (wxEvtHandler *) src; | |
2787 | return (void *) dest; | |
2788 | } | |
2789 | ||
9416aa89 RD |
2790 | static void *SwigwxProgressDialogTowxObject(void *ptr) { |
2791 | wxProgressDialog *src; | |
2792 | wxObject *dest; | |
2793 | src = (wxProgressDialog *) ptr; | |
2794 | dest = (wxObject *) src; | |
2795 | return (void *) dest; | |
2796 | } | |
2797 | ||
bb0054cd | 2798 | #define new_wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 2799 | static PyObject *_wrap_new_wxProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2800 | PyObject * _resultobj; |
bb0054cd RD |
2801 | wxProgressDialog * _result; |
2802 | wxString * _arg0; | |
2803 | wxString * _arg1; | |
1d99702e RD |
2804 | int _arg2 = (int ) 100; |
2805 | wxWindow * _arg3 = (wxWindow *) NULL; | |
2806 | int _arg4 = (int ) wxPD_AUTO_HIDE|wxPD_APP_MODAL; | |
bb0054cd RD |
2807 | PyObject * _obj0 = 0; |
2808 | PyObject * _obj1 = 0; | |
1d99702e | 2809 | PyObject * _argo3 = 0; |
efc5f224 | 2810 | char *_kwnames[] = { "title","message","maximum","parent","style", NULL }; |
8ab979d7 RD |
2811 | char _ptemp[128]; |
2812 | ||
2813 | self = self; | |
efc5f224 | 2814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOi:new_wxProgressDialog",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4)) |
8ab979d7 | 2815 | return NULL; |
bb0054cd | 2816 | { |
185d7c3e RD |
2817 | #if PYTHON_API_VERSION >= 1009 |
2818 | char* tmpPtr; int tmpSize; | |
2819 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2820 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2821 | return NULL; |
2822 | } | |
2823 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2824 | return NULL; | |
2825 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2826 | #else | |
bb0054cd RD |
2827 | if (!PyString_Check(_obj0)) { |
2828 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 2829 | return NULL; |
8ab979d7 | 2830 | } |
185d7c3e RD |
2831 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2832 | #endif | |
8ab979d7 | 2833 | } |
bb0054cd | 2834 | { |
185d7c3e RD |
2835 | #if PYTHON_API_VERSION >= 1009 |
2836 | char* tmpPtr; int tmpSize; | |
2837 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2838 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2839 | return NULL; |
2840 | } | |
2841 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2842 | return NULL; | |
2843 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2844 | #else | |
bb0054cd RD |
2845 | if (!PyString_Check(_obj1)) { |
2846 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 2847 | return NULL; |
bb0054cd | 2848 | } |
185d7c3e RD |
2849 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2850 | #endif | |
bb0054cd | 2851 | } |
1d99702e RD |
2852 | if (_argo3) { |
2853 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
2854 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
bb0054cd | 2855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxProgressDialog. Expected _wxWindow_p."); |
8ab979d7 RD |
2856 | return NULL; |
2857 | } | |
2858 | } | |
cf694132 RD |
2859 | { |
2860 | wxPy_BEGIN_ALLOW_THREADS; | |
bb0054cd | 2861 | _result = (wxProgressDialog *)new_wxProgressDialog(*_arg0,*_arg1,_arg2,_arg3,_arg4); |
cf694132 RD |
2862 | |
2863 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2864 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2865 | } if (_result) { |
2866 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProgressDialog_p"); | |
2867 | _resultobj = Py_BuildValue("s",_ptemp); | |
2868 | } else { | |
2869 | Py_INCREF(Py_None); | |
2870 | _resultobj = Py_None; | |
2871 | } | |
bb0054cd RD |
2872 | { |
2873 | if (_obj0) | |
2874 | delete _arg0; | |
8ab979d7 | 2875 | } |
bb0054cd RD |
2876 | { |
2877 | if (_obj1) | |
2878 | delete _arg1; | |
8ab979d7 | 2879 | } |
bb0054cd | 2880 | return _resultobj; |
8ab979d7 RD |
2881 | } |
2882 | ||
bb0054cd | 2883 | #define wxProgressDialog_Update(_swigobj,_swigarg0,_swigarg1) (_swigobj->Update(_swigarg0,_swigarg1)) |
efc5f224 | 2884 | static PyObject *_wrap_wxProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2885 | PyObject * _resultobj; |
bb0054cd RD |
2886 | bool _result; |
2887 | wxProgressDialog * _arg0; | |
1d99702e RD |
2888 | int _arg1 = (int ) -1; |
2889 | char * _arg2 = (char *) NULL; | |
2890 | PyObject * _argo0 = 0; | |
efc5f224 | 2891 | char *_kwnames[] = { "self","value","newmsg", NULL }; |
8ab979d7 RD |
2892 | |
2893 | self = self; | |
efc5f224 | 2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|is:wxProgressDialog_Update",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2895 | return NULL; |
1d99702e RD |
2896 | if (_argo0) { |
2897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) { | |
bb0054cd | 2899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Update. Expected _wxProgressDialog_p."); |
8ab979d7 RD |
2900 | return NULL; |
2901 | } | |
2902 | } | |
cf694132 RD |
2903 | { |
2904 | wxPy_BEGIN_ALLOW_THREADS; | |
bb0054cd | 2905 | _result = (bool )wxProgressDialog_Update(_arg0,_arg1,_arg2); |
cf694132 RD |
2906 | |
2907 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2908 | if (PyErr_Occurred()) return NULL; |
bb0054cd | 2909 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2910 | return _resultobj; |
2911 | } | |
2912 | ||
bb0054cd | 2913 | #define wxProgressDialog_Resume(_swigobj) (_swigobj->Resume()) |
efc5f224 | 2914 | static PyObject *_wrap_wxProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2915 | PyObject * _resultobj; |
bb0054cd | 2916 | wxProgressDialog * _arg0; |
1d99702e | 2917 | PyObject * _argo0 = 0; |
efc5f224 | 2918 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2919 | |
2920 | self = self; | |
efc5f224 | 2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProgressDialog_Resume",_kwnames,&_argo0)) |
8ab979d7 | 2922 | return NULL; |
1d99702e RD |
2923 | if (_argo0) { |
2924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) { | |
bb0054cd | 2926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Resume. Expected _wxProgressDialog_p."); |
8ab979d7 RD |
2927 | return NULL; |
2928 | } | |
2929 | } | |
cf694132 RD |
2930 | { |
2931 | wxPy_BEGIN_ALLOW_THREADS; | |
bb0054cd | 2932 | wxProgressDialog_Resume(_arg0); |
cf694132 RD |
2933 | |
2934 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2935 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2936 | } Py_INCREF(Py_None); |
2937 | _resultobj = Py_None; | |
8ab979d7 RD |
2938 | return _resultobj; |
2939 | } | |
2940 | ||
2941 | static PyMethodDef cmndlgscMethods[] = { | |
efc5f224 RD |
2942 | { "wxProgressDialog_Resume", (PyCFunction) _wrap_wxProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, |
2943 | { "wxProgressDialog_Update", (PyCFunction) _wrap_wxProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
2944 | { "new_wxProgressDialog", (PyCFunction) _wrap_new_wxProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
2945 | { "wxMessageDialog_ShowModal", (PyCFunction) _wrap_wxMessageDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
2946 | { "new_wxMessageDialog", (PyCFunction) _wrap_new_wxMessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
2947 | { "wxFontDialog_ShowModal", (PyCFunction) _wrap_wxFontDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
2948 | { "wxFontDialog_GetFontData", (PyCFunction) _wrap_wxFontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
2949 | { "new_wxFontDialog", (PyCFunction) _wrap_new_wxFontDialog, METH_VARARGS | METH_KEYWORDS }, | |
2950 | { "wxFontData_SetShowHelp", (PyCFunction) _wrap_wxFontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
2951 | { "wxFontData_SetRange", (PyCFunction) _wrap_wxFontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
2952 | { "wxFontData_SetInitialFont", (PyCFunction) _wrap_wxFontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
2953 | { "wxFontData_SetColour", (PyCFunction) _wrap_wxFontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
2954 | { "wxFontData_SetChosenFont", (PyCFunction) _wrap_wxFontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
2955 | { "wxFontData_SetAllowSymbols", (PyCFunction) _wrap_wxFontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
2956 | { "wxFontData_GetShowHelp", (PyCFunction) _wrap_wxFontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
2957 | { "wxFontData_GetInitialFont", (PyCFunction) _wrap_wxFontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
2958 | { "wxFontData_GetEnableEffects", (PyCFunction) _wrap_wxFontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
2959 | { "wxFontData_GetChosenFont", (PyCFunction) _wrap_wxFontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
2960 | { "wxFontData_GetColour", (PyCFunction) _wrap_wxFontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
2961 | { "wxFontData_GetAllowSymbols", (PyCFunction) _wrap_wxFontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
2962 | { "wxFontData_EnableEffects", (PyCFunction) _wrap_wxFontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
2963 | { "delete_wxFontData", (PyCFunction) _wrap_delete_wxFontData, METH_VARARGS | METH_KEYWORDS }, | |
2964 | { "new_wxFontData", (PyCFunction) _wrap_new_wxFontData, METH_VARARGS | METH_KEYWORDS }, | |
2965 | { "wxTextEntryDialog_ShowModal", (PyCFunction) _wrap_wxTextEntryDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
2966 | { "wxTextEntryDialog_SetValue", (PyCFunction) _wrap_wxTextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
2967 | { "wxTextEntryDialog_GetValue", (PyCFunction) _wrap_wxTextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
2968 | { "new_wxTextEntryDialog", (PyCFunction) _wrap_new_wxTextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
2969 | { "wxSingleChoiceDialog_ShowModal", (PyCFunction) _wrap_wxSingleChoiceDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
2970 | { "wxSingleChoiceDialog_SetSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
2971 | { "wxSingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
2972 | { "wxSingleChoiceDialog_GetSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
2973 | { "new_wxSingleChoiceDialog", (PyCFunction) _wrap_new_wxSingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
2974 | { "wxFileDialog_GetPaths", (PyCFunction) _wrap_wxFileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, |
2975 | { "wxFileDialog_GetFilenames", (PyCFunction) _wrap_wxFileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
2976 | { "wxFileDialog_ShowModal", (PyCFunction) _wrap_wxFileDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, |
2977 | { "wxFileDialog_SetWildcard", (PyCFunction) _wrap_wxFileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
2978 | { "wxFileDialog_SetStyle", (PyCFunction) _wrap_wxFileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
2979 | { "wxFileDialog_SetPath", (PyCFunction) _wrap_wxFileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
2980 | { "wxFileDialog_SetMessage", (PyCFunction) _wrap_wxFileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
2981 | { "wxFileDialog_SetFilterIndex", (PyCFunction) _wrap_wxFileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
2982 | { "wxFileDialog_SetFilename", (PyCFunction) _wrap_wxFileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
2983 | { "wxFileDialog_SetDirectory", (PyCFunction) _wrap_wxFileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
2984 | { "wxFileDialog_GetWildcard", (PyCFunction) _wrap_wxFileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
2985 | { "wxFileDialog_GetStyle", (PyCFunction) _wrap_wxFileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
2986 | { "wxFileDialog_GetPath", (PyCFunction) _wrap_wxFileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
2987 | { "wxFileDialog_GetMessage", (PyCFunction) _wrap_wxFileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
2988 | { "wxFileDialog_GetFilterIndex", (PyCFunction) _wrap_wxFileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
2989 | { "wxFileDialog_GetFilename", (PyCFunction) _wrap_wxFileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
2990 | { "wxFileDialog_GetDirectory", (PyCFunction) _wrap_wxFileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
2991 | { "new_wxFileDialog", (PyCFunction) _wrap_new_wxFileDialog, METH_VARARGS | METH_KEYWORDS }, | |
2992 | { "wxDirDialog_ShowModal", (PyCFunction) _wrap_wxDirDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
2993 | { "wxDirDialog_SetPath", (PyCFunction) _wrap_wxDirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
2994 | { "wxDirDialog_SetMessage", (PyCFunction) _wrap_wxDirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
2995 | { "wxDirDialog_GetStyle", (PyCFunction) _wrap_wxDirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
2996 | { "wxDirDialog_GetMessage", (PyCFunction) _wrap_wxDirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
2997 | { "wxDirDialog_GetPath", (PyCFunction) _wrap_wxDirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
2998 | { "new_wxDirDialog", (PyCFunction) _wrap_new_wxDirDialog, METH_VARARGS | METH_KEYWORDS }, | |
2999 | { "wxColourDialog_ShowModal", (PyCFunction) _wrap_wxColourDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
3000 | { "wxColourDialog_GetColourData", (PyCFunction) _wrap_wxColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
3001 | { "new_wxColourDialog", (PyCFunction) _wrap_new_wxColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
3002 | { "wxColourData_SetCustomColour", (PyCFunction) _wrap_wxColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
3003 | { "wxColourData_SetColour", (PyCFunction) _wrap_wxColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
3004 | { "wxColourData_SetChooseFull", (PyCFunction) _wrap_wxColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
3005 | { "wxColourData_GetCustomColour", (PyCFunction) _wrap_wxColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
3006 | { "wxColourData_GetColour", (PyCFunction) _wrap_wxColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
3007 | { "wxColourData_GetChooseFull", (PyCFunction) _wrap_wxColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
3008 | { "delete_wxColourData", (PyCFunction) _wrap_delete_wxColourData, METH_VARARGS | METH_KEYWORDS }, | |
3009 | { "new_wxColourData", (PyCFunction) _wrap_new_wxColourData, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
3010 | { NULL, NULL } |
3011 | }; | |
1d99702e RD |
3012 | #ifdef __cplusplus |
3013 | } | |
3014 | #endif | |
3015 | /* | |
3016 | * This table is used by the pointer type-checker | |
3017 | */ | |
3018 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 3019 | { "_signed_long","_long",0}, |
b1462dfa | 3020 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
3021 | { "_wxPrintQuality","_int",0}, |
3022 | { "_wxPrintQuality","_signed_int",0}, | |
3023 | { "_wxPrintQuality","_unsigned_int",0}, | |
3024 | { "_wxPrintQuality","_wxWindowID",0}, | |
3025 | { "_wxPrintQuality","_uint",0}, | |
3026 | { "_wxPrintQuality","_EBool",0}, | |
3027 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 3028 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 3029 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
3030 | { "_long","_unsigned_long",0}, |
3031 | { "_long","_signed_long",0}, | |
b1462dfa | 3032 | { "_size_t","_wxCoord",0}, |
1d99702e | 3033 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 3034 | { "_size_t","_time_t",0}, |
1d99702e RD |
3035 | { "_size_t","_unsigned_int",0}, |
3036 | { "_size_t","_int",0}, | |
3037 | { "_size_t","_wxWindowID",0}, | |
3038 | { "_size_t","_uint",0}, | |
65fe3842 RD |
3039 | { "_wxTopLevelWindow","_wxProgressDialog",SwigwxProgressDialogTowxTopLevelWindow}, |
3040 | { "_wxTopLevelWindow","_wxMessageDialog",SwigwxMessageDialogTowxTopLevelWindow}, | |
3041 | { "_wxTopLevelWindow","_wxFontDialog",SwigwxFontDialogTowxTopLevelWindow}, | |
3042 | { "_wxTopLevelWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxTopLevelWindow}, | |
3043 | { "_wxTopLevelWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxTopLevelWindow}, | |
3044 | { "_wxTopLevelWindow","_wxFileDialog",SwigwxFileDialogTowxTopLevelWindow}, | |
3045 | { "_wxTopLevelWindow","_wxDirDialog",SwigwxDirDialogTowxTopLevelWindow}, | |
3046 | { "_wxTopLevelWindow","_wxColourDialog",SwigwxColourDialogTowxTopLevelWindow}, | |
b1462dfa | 3047 | { "_uint","_wxCoord",0}, |
1d99702e | 3048 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 3049 | { "_uint","_time_t",0}, |
1d99702e RD |
3050 | { "_uint","_size_t",0}, |
3051 | { "_uint","_unsigned_int",0}, | |
3052 | { "_uint","_int",0}, | |
3053 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 3054 | { "_wxChar","_char",0}, |
f6bcfd97 | 3055 | { "_char","_wxChar",0}, |
cdf14688 | 3056 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 3057 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
3058 | { "_EBool","_wxPrintQuality",0}, |
3059 | { "_EBool","_signed_int",0}, | |
3060 | { "_EBool","_int",0}, | |
3061 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 3062 | { "_unsigned_long","_long",0}, |
cdf14688 | 3063 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 3064 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
3065 | { "_signed_int","_wxPrintQuality",0}, |
3066 | { "_signed_int","_EBool",0}, | |
3067 | { "_signed_int","_wxWindowID",0}, | |
3068 | { "_signed_int","_int",0}, | |
1d99702e RD |
3069 | { "_WXTYPE","_short",0}, |
3070 | { "_WXTYPE","_signed_short",0}, | |
3071 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
3072 | { "_unsigned_short","_WXTYPE",0}, |
3073 | { "_unsigned_short","_short",0}, | |
9416aa89 | 3074 | { "_wxObject","_wxProgressDialog",SwigwxProgressDialogTowxObject}, |
9416aa89 | 3075 | { "_wxObject","_wxMessageDialog",SwigwxMessageDialogTowxObject}, |
9416aa89 | 3076 | { "_wxObject","_wxFontDialog",SwigwxFontDialogTowxObject}, |
9416aa89 | 3077 | { "_wxObject","_wxFontData",SwigwxFontDataTowxObject}, |
9416aa89 | 3078 | { "_wxObject","_wxTextEntryDialog",SwigwxTextEntryDialogTowxObject}, |
9416aa89 | 3079 | { "_wxObject","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxObject}, |
9416aa89 | 3080 | { "_wxObject","_wxFileDialog",SwigwxFileDialogTowxObject}, |
9416aa89 | 3081 | { "_wxObject","_wxDirDialog",SwigwxDirDialogTowxObject}, |
9416aa89 | 3082 | { "_wxObject","_wxColourDialog",SwigwxColourDialogTowxObject}, |
9416aa89 | 3083 | { "_wxObject","_wxColourData",SwigwxColourDataTowxObject}, |
1d99702e RD |
3084 | { "_signed_short","_WXTYPE",0}, |
3085 | { "_signed_short","_short",0}, | |
1d99702e | 3086 | { "_unsigned_char","_byte",0}, |
b1462dfa | 3087 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 3088 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 3089 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
3090 | { "_unsigned_int","_size_t",0}, |
3091 | { "_unsigned_int","_uint",0}, | |
3092 | { "_unsigned_int","_wxWindowID",0}, | |
3093 | { "_unsigned_int","_int",0}, | |
1d99702e | 3094 | { "_wxDialog","_wxMessageDialog",SwigwxMessageDialogTowxDialog}, |
1d99702e | 3095 | { "_wxDialog","_wxFontDialog",SwigwxFontDialogTowxDialog}, |
1d99702e | 3096 | { "_wxDialog","_wxTextEntryDialog",SwigwxTextEntryDialogTowxDialog}, |
1d99702e | 3097 | { "_wxDialog","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxDialog}, |
1d99702e | 3098 | { "_wxDialog","_wxFileDialog",SwigwxFileDialogTowxDialog}, |
1d99702e | 3099 | { "_wxDialog","_wxDirDialog",SwigwxDirDialogTowxDialog}, |
1d99702e | 3100 | { "_wxDialog","_wxColourDialog",SwigwxColourDialogTowxDialog}, |
1d99702e RD |
3101 | { "_short","_WXTYPE",0}, |
3102 | { "_short","_unsigned_short",0}, | |
3103 | { "_short","_signed_short",0}, | |
1d99702e | 3104 | { "_wxFrame","_wxProgressDialog",SwigwxProgressDialogTowxFrame}, |
b1462dfa | 3105 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 3106 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 3107 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
3108 | { "_wxWindowID","_size_t",0}, |
3109 | { "_wxWindowID","_EBool",0}, | |
3110 | { "_wxWindowID","_uint",0}, | |
3111 | { "_wxWindowID","_int",0}, | |
3112 | { "_wxWindowID","_signed_int",0}, | |
3113 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 3114 | { "_int","_wxCoord",0}, |
1d99702e | 3115 | { "_int","_wxPrintQuality",0}, |
c368d904 | 3116 | { "_int","_time_t",0}, |
1d99702e RD |
3117 | { "_int","_size_t",0}, |
3118 | { "_int","_EBool",0}, | |
3119 | { "_int","_uint",0}, | |
3120 | { "_int","_wxWindowID",0}, | |
3121 | { "_int","_unsigned_int",0}, | |
3122 | { "_int","_signed_int",0}, | |
c368d904 RD |
3123 | { "_time_t","_wxCoord",0}, |
3124 | { "_time_t","_wxPrintQuality",0}, | |
3125 | { "_time_t","_unsigned_int",0}, | |
3126 | { "_time_t","_int",0}, | |
3127 | { "_time_t","_wxWindowID",0}, | |
3128 | { "_time_t","_uint",0}, | |
3129 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
3130 | { "_wxCoord","_int",0}, |
3131 | { "_wxCoord","_signed_int",0}, | |
3132 | { "_wxCoord","_unsigned_int",0}, | |
3133 | { "_wxCoord","_wxWindowID",0}, | |
3134 | { "_wxCoord","_uint",0}, | |
3135 | { "_wxCoord","_EBool",0}, | |
3136 | { "_wxCoord","_size_t",0}, | |
c368d904 | 3137 | { "_wxCoord","_time_t",0}, |
b1462dfa | 3138 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 3139 | { "_wxEvtHandler","_wxProgressDialog",SwigwxProgressDialogTowxEvtHandler}, |
1d99702e | 3140 | { "_wxEvtHandler","_wxMessageDialog",SwigwxMessageDialogTowxEvtHandler}, |
1d99702e | 3141 | { "_wxEvtHandler","_wxFontDialog",SwigwxFontDialogTowxEvtHandler}, |
1d99702e | 3142 | { "_wxEvtHandler","_wxTextEntryDialog",SwigwxTextEntryDialogTowxEvtHandler}, |
1d99702e | 3143 | { "_wxEvtHandler","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxEvtHandler}, |
1d99702e | 3144 | { "_wxEvtHandler","_wxFileDialog",SwigwxFileDialogTowxEvtHandler}, |
1d99702e | 3145 | { "_wxEvtHandler","_wxDirDialog",SwigwxDirDialogTowxEvtHandler}, |
1d99702e | 3146 | { "_wxEvtHandler","_wxColourDialog",SwigwxColourDialogTowxEvtHandler}, |
1d99702e | 3147 | { "_wxWindow","_wxProgressDialog",SwigwxProgressDialogTowxWindow}, |
1d99702e | 3148 | { "_wxWindow","_wxMessageDialog",SwigwxMessageDialogTowxWindow}, |
1d99702e | 3149 | { "_wxWindow","_wxFontDialog",SwigwxFontDialogTowxWindow}, |
1d99702e | 3150 | { "_wxWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxWindow}, |
1d99702e | 3151 | { "_wxWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxWindow}, |
1d99702e | 3152 | { "_wxWindow","_wxFileDialog",SwigwxFileDialogTowxWindow}, |
1d99702e | 3153 | { "_wxWindow","_wxDirDialog",SwigwxDirDialogTowxWindow}, |
1d99702e | 3154 | { "_wxWindow","_wxColourDialog",SwigwxColourDialogTowxWindow}, |
1d99702e RD |
3155 | {0,0,0}}; |
3156 | ||
8ab979d7 RD |
3157 | static PyObject *SWIG_globals; |
3158 | #ifdef __cplusplus | |
3159 | extern "C" | |
3160 | #endif | |
1d99702e | 3161 | SWIGEXPORT(void) initcmndlgsc() { |
8ab979d7 RD |
3162 | PyObject *m, *d; |
3163 | SWIG_globals = SWIG_newvarlink(); | |
3164 | m = Py_InitModule("cmndlgsc", cmndlgscMethods); | |
3165 | d = PyModule_GetDict(m); | |
1d99702e RD |
3166 | { |
3167 | int i; | |
3168 | for (i = 0; _swig_mapping[i].n1; i++) | |
3169 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
3170 | } | |
8ab979d7 | 3171 | } |