]>
Commit | Line | Data |
---|---|---|
70551f47 | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/cmndlgs.cpp |
70551f47 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
70551f47 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
70551f47 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
70551f47 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
70551f47 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
70551f47 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
70551f47 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
70551f47 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
70551f47 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
70551f47 RD |
54 | #define SWIG_init 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> | |
d24a34bb | 62 | #include <wx/progdlg.h> |
0220cbc1 | 63 | #include <wx/fdrepdlg.h> |
70551f47 | 64 | |
70551f47 RD |
65 | |
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
3bcd5e1c | 70 | if (!target) { |
70551f47 | 71 | target = o; |
3bcd5e1c | 72 | } else if (target == Py_None) { |
70551f47 RD |
73 | Py_DECREF(Py_None); |
74 | target = o; | |
3bcd5e1c | 75 | } else { |
70551f47 RD |
76 | if (!PyTuple_Check(target)) { |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
3bcd5e1c RD |
81 | o3 = PyTuple_New(1); |
82 | PyTuple_SetItem(o3, 0, o); | |
70551f47 RD |
83 | |
84 | o2 = target; | |
3bcd5e1c RD |
85 | target = PySequence_Concat(o2, o3); |
86 | Py_DECREF(o2); | |
70551f47 RD |
87 | Py_DECREF(o3); |
88 | } | |
89 | return target; | |
90 | } | |
91 | ||
7a446686 RD |
92 | #if PYTHON_API_VERSION >= 1009 |
93 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
94 | #else | |
0220cbc1 | 95 | static char* wxStringErrorMsg = "String type required"; |
7a446686 | 96 | #endif |
2d091820 RD |
97 | #ifdef __cplusplus |
98 | extern "C" { | |
99 | #endif | |
9df61a29 RD |
100 | static void *SwigwxColourDataTowxObject(void *ptr) { |
101 | wxColourData *src; | |
102 | wxObject *dest; | |
103 | src = (wxColourData *) ptr; | |
104 | dest = (wxObject *) src; | |
105 | return (void *) dest; | |
106 | } | |
107 | ||
70551f47 | 108 | #define new_wxColourData() (new wxColourData()) |
107e4716 | 109 | static PyObject *_wrap_new_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
110 | PyObject * _resultobj; |
111 | wxColourData * _result; | |
107e4716 | 112 | char *_kwnames[] = { NULL }; |
70551f47 RD |
113 | char _ptemp[128]; |
114 | ||
115 | self = self; | |
107e4716 | 116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxColourData",_kwnames)) |
70551f47 | 117 | return NULL; |
ab9bc19b | 118 | { |
474c48f9 | 119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
120 | _result = (wxColourData *)new_wxColourData(); |
121 | ||
474c48f9 | 122 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 123 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
124 | } if (_result) { |
125 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColourData_p"); | |
126 | _resultobj = Py_BuildValue("s",_ptemp); | |
127 | } else { | |
128 | Py_INCREF(Py_None); | |
129 | _resultobj = Py_None; | |
130 | } | |
70551f47 RD |
131 | return _resultobj; |
132 | } | |
133 | ||
134 | #define delete_wxColourData(_swigobj) (delete _swigobj) | |
107e4716 | 135 | static PyObject *_wrap_delete_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
136 | PyObject * _resultobj; |
137 | wxColourData * _arg0; | |
2d091820 | 138 | PyObject * _argo0 = 0; |
107e4716 | 139 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
140 | |
141 | self = self; | |
107e4716 | 142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColourData",_kwnames,&_argo0)) |
70551f47 | 143 | return NULL; |
2d091820 RD |
144 | if (_argo0) { |
145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
70551f47 RD |
147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxColourData. Expected _wxColourData_p."); |
148 | return NULL; | |
149 | } | |
150 | } | |
ab9bc19b | 151 | { |
474c48f9 | 152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
153 | delete_wxColourData(_arg0); |
154 | ||
474c48f9 | 155 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 156 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 157 | } Py_INCREF(Py_None); |
70551f47 RD |
158 | _resultobj = Py_None; |
159 | return _resultobj; | |
160 | } | |
161 | ||
162 | #define wxColourData_GetChooseFull(_swigobj) (_swigobj->GetChooseFull()) | |
107e4716 | 163 | static PyObject *_wrap_wxColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
164 | PyObject * _resultobj; |
165 | bool _result; | |
166 | wxColourData * _arg0; | |
2d091820 | 167 | PyObject * _argo0 = 0; |
107e4716 | 168 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
169 | |
170 | self = self; | |
107e4716 | 171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourData_GetChooseFull",_kwnames,&_argo0)) |
70551f47 | 172 | return NULL; |
2d091820 RD |
173 | if (_argo0) { |
174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
70551f47 RD |
176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetChooseFull. Expected _wxColourData_p."); |
177 | return NULL; | |
178 | } | |
179 | } | |
ab9bc19b | 180 | { |
474c48f9 | 181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
182 | _result = (bool )wxColourData_GetChooseFull(_arg0); |
183 | ||
474c48f9 | 184 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 185 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 186 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
187 | return _resultobj; |
188 | } | |
189 | ||
190 | #define wxColourData_GetColour(_swigobj) (_swigobj->GetColour()) | |
107e4716 | 191 | static PyObject *_wrap_wxColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
192 | PyObject * _resultobj; |
193 | wxColour * _result; | |
194 | wxColourData * _arg0; | |
2d091820 | 195 | PyObject * _argo0 = 0; |
107e4716 | 196 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
197 | char _ptemp[128]; |
198 | ||
199 | self = self; | |
107e4716 | 200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourData_GetColour",_kwnames,&_argo0)) |
70551f47 | 201 | return NULL; |
2d091820 RD |
202 | if (_argo0) { |
203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
70551f47 RD |
205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetColour. Expected _wxColourData_p."); |
206 | return NULL; | |
207 | } | |
208 | } | |
ab9bc19b | 209 | { |
474c48f9 | 210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
84a81942 | 211 | _result = new wxColour (wxColourData_GetColour(_arg0)); |
ab9bc19b | 212 | |
474c48f9 | 213 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 214 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
215 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
216 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
217 | return _resultobj; |
218 | } | |
219 | ||
220 | #define wxColourData_GetCustomColour(_swigobj,_swigarg0) (_swigobj->GetCustomColour(_swigarg0)) | |
107e4716 | 221 | static PyObject *_wrap_wxColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
222 | PyObject * _resultobj; |
223 | wxColour * _result; | |
224 | wxColourData * _arg0; | |
225 | int _arg1; | |
2d091820 | 226 | PyObject * _argo0 = 0; |
107e4716 | 227 | char *_kwnames[] = { "self","i", NULL }; |
70551f47 RD |
228 | char _ptemp[128]; |
229 | ||
230 | self = self; | |
107e4716 | 231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxColourData_GetCustomColour",_kwnames,&_argo0,&_arg1)) |
70551f47 | 232 | return NULL; |
2d091820 RD |
233 | if (_argo0) { |
234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
70551f47 RD |
236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetCustomColour. Expected _wxColourData_p."); |
237 | return NULL; | |
238 | } | |
239 | } | |
ab9bc19b | 240 | { |
474c48f9 | 241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
242 | _result = new wxColour (wxColourData_GetCustomColour(_arg0,_arg1)); |
243 | ||
474c48f9 | 244 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 245 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 246 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
70551f47 RD |
247 | _resultobj = Py_BuildValue("s",_ptemp); |
248 | return _resultobj; | |
249 | } | |
250 | ||
251 | #define wxColourData_SetChooseFull(_swigobj,_swigarg0) (_swigobj->SetChooseFull(_swigarg0)) | |
107e4716 | 252 | static PyObject *_wrap_wxColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
253 | PyObject * _resultobj; |
254 | wxColourData * _arg0; | |
255 | int _arg1; | |
2d091820 | 256 | PyObject * _argo0 = 0; |
107e4716 | 257 | char *_kwnames[] = { "self","flag", NULL }; |
70551f47 RD |
258 | |
259 | self = self; | |
107e4716 | 260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxColourData_SetChooseFull",_kwnames,&_argo0,&_arg1)) |
70551f47 | 261 | return NULL; |
2d091820 RD |
262 | if (_argo0) { |
263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
70551f47 RD |
265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetChooseFull. Expected _wxColourData_p."); |
266 | return NULL; | |
267 | } | |
268 | } | |
ab9bc19b | 269 | { |
474c48f9 | 270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
271 | wxColourData_SetChooseFull(_arg0,_arg1); |
272 | ||
474c48f9 | 273 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 274 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 275 | } Py_INCREF(Py_None); |
70551f47 RD |
276 | _resultobj = Py_None; |
277 | return _resultobj; | |
278 | } | |
279 | ||
280 | #define wxColourData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 281 | static PyObject *_wrap_wxColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
282 | PyObject * _resultobj; |
283 | wxColourData * _arg0; | |
284 | wxColour * _arg1; | |
2d091820 | 285 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
286 | wxColour temp; |
287 | PyObject * _obj1 = 0; | |
107e4716 | 288 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
289 | |
290 | self = self; | |
f6bcfd97 | 291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourData_SetColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 292 | return NULL; |
2d091820 RD |
293 | if (_argo0) { |
294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
70551f47 RD |
296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetColour. Expected _wxColourData_p."); |
297 | return NULL; | |
298 | } | |
299 | } | |
f6bcfd97 BP |
300 | { |
301 | _arg1 = &temp; | |
302 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 303 | return NULL; |
f6bcfd97 | 304 | } |
ab9bc19b | 305 | { |
474c48f9 | 306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
307 | wxColourData_SetColour(_arg0,*_arg1); |
308 | ||
474c48f9 | 309 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 310 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 311 | } Py_INCREF(Py_None); |
70551f47 RD |
312 | _resultobj = Py_None; |
313 | return _resultobj; | |
314 | } | |
315 | ||
316 | #define wxColourData_SetCustomColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCustomColour(_swigarg0,_swigarg1)) | |
107e4716 | 317 | static PyObject *_wrap_wxColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
318 | PyObject * _resultobj; |
319 | wxColourData * _arg0; | |
320 | int _arg1; | |
321 | wxColour * _arg2; | |
2d091820 | 322 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
323 | wxColour temp; |
324 | PyObject * _obj2 = 0; | |
107e4716 | 325 | char *_kwnames[] = { "self","i","colour", NULL }; |
70551f47 RD |
326 | |
327 | self = self; | |
f6bcfd97 | 328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxColourData_SetCustomColour",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 329 | return NULL; |
2d091820 RD |
330 | if (_argo0) { |
331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
70551f47 RD |
333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetCustomColour. Expected _wxColourData_p."); |
334 | return NULL; | |
335 | } | |
336 | } | |
f6bcfd97 BP |
337 | { |
338 | _arg2 = &temp; | |
339 | if (! wxColour_helper(_obj2, &_arg2)) | |
70551f47 | 340 | return NULL; |
f6bcfd97 | 341 | } |
ab9bc19b | 342 | { |
474c48f9 | 343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
344 | wxColourData_SetCustomColour(_arg0,_arg1,*_arg2); |
345 | ||
474c48f9 | 346 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 347 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 348 | } Py_INCREF(Py_None); |
70551f47 RD |
349 | _resultobj = Py_None; |
350 | return _resultobj; | |
351 | } | |
352 | ||
353 | static void *SwigwxColourDialogTowxDialog(void *ptr) { | |
354 | wxColourDialog *src; | |
355 | wxDialog *dest; | |
356 | src = (wxColourDialog *) ptr; | |
357 | dest = (wxDialog *) src; | |
358 | return (void *) dest; | |
359 | } | |
360 | ||
32c988a3 | 361 | static void *SwigwxColourDialogTowxTopLevelWindow(void *ptr) { |
70551f47 | 362 | wxColourDialog *src; |
32c988a3 | 363 | wxTopLevelWindow *dest; |
70551f47 | 364 | src = (wxColourDialog *) ptr; |
32c988a3 | 365 | dest = (wxTopLevelWindow *) src; |
70551f47 RD |
366 | return (void *) dest; |
367 | } | |
368 | ||
369 | static void *SwigwxColourDialogTowxWindow(void *ptr) { | |
370 | wxColourDialog *src; | |
371 | wxWindow *dest; | |
372 | src = (wxColourDialog *) ptr; | |
373 | dest = (wxWindow *) src; | |
374 | return (void *) dest; | |
375 | } | |
376 | ||
377 | static void *SwigwxColourDialogTowxEvtHandler(void *ptr) { | |
378 | wxColourDialog *src; | |
379 | wxEvtHandler *dest; | |
380 | src = (wxColourDialog *) ptr; | |
381 | dest = (wxEvtHandler *) src; | |
382 | return (void *) dest; | |
383 | } | |
384 | ||
9df61a29 RD |
385 | static void *SwigwxColourDialogTowxObject(void *ptr) { |
386 | wxColourDialog *src; | |
387 | wxObject *dest; | |
388 | src = (wxColourDialog *) ptr; | |
389 | dest = (wxObject *) src; | |
390 | return (void *) dest; | |
391 | } | |
392 | ||
70551f47 | 393 | #define new_wxColourDialog(_swigarg0,_swigarg1) (new wxColourDialog(_swigarg0,_swigarg1)) |
107e4716 | 394 | static PyObject *_wrap_new_wxColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
395 | PyObject * _resultobj; |
396 | wxColourDialog * _result; | |
397 | wxWindow * _arg0; | |
2d091820 RD |
398 | wxColourData * _arg1 = (wxColourData *) NULL; |
399 | PyObject * _argo0 = 0; | |
400 | PyObject * _argo1 = 0; | |
107e4716 | 401 | char *_kwnames[] = { "parent","data", NULL }; |
70551f47 RD |
402 | char _ptemp[128]; |
403 | ||
404 | self = self; | |
107e4716 | 405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxColourDialog",_kwnames,&_argo0,&_argo1)) |
70551f47 | 406 | return NULL; |
2d091820 RD |
407 | if (_argo0) { |
408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxColourDialog. Expected _wxWindow_p."); |
411 | return NULL; | |
412 | } | |
413 | } | |
2d091820 RD |
414 | if (_argo1) { |
415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColourData_p")) { | |
70551f47 RD |
417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxColourDialog. Expected _wxColourData_p."); |
418 | return NULL; | |
419 | } | |
420 | } | |
ab9bc19b | 421 | { |
474c48f9 | 422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
423 | _result = (wxColourDialog *)new_wxColourDialog(_arg0,_arg1); |
424 | ||
474c48f9 | 425 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 426 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
427 | } if (_result) { |
428 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColourDialog_p"); | |
429 | _resultobj = Py_BuildValue("s",_ptemp); | |
430 | } else { | |
431 | Py_INCREF(Py_None); | |
432 | _resultobj = Py_None; | |
433 | } | |
70551f47 RD |
434 | return _resultobj; |
435 | } | |
436 | ||
437 | #define wxColourDialog_GetColourData(_swigobj) (_swigobj->GetColourData()) | |
107e4716 | 438 | static PyObject *_wrap_wxColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
439 | PyObject * _resultobj; |
440 | wxColourData * _result; | |
441 | wxColourDialog * _arg0; | |
2d091820 | 442 | PyObject * _argo0 = 0; |
107e4716 | 443 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
444 | char _ptemp[128]; |
445 | ||
446 | self = self; | |
107e4716 | 447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourDialog_GetColourData",_kwnames,&_argo0)) |
70551f47 | 448 | return NULL; |
2d091820 RD |
449 | if (_argo0) { |
450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDialog_p")) { | |
70551f47 RD |
452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDialog_GetColourData. Expected _wxColourDialog_p."); |
453 | return NULL; | |
454 | } | |
455 | } | |
ab9bc19b | 456 | { |
474c48f9 | 457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b | 458 | wxColourData & _result_ref = wxColourDialog_GetColourData(_arg0); |
c95e68d8 | 459 | _result = (wxColourData *) &_result_ref; |
ab9bc19b | 460 | |
474c48f9 | 461 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 462 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
463 | } if (_result) { |
464 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColourData_p"); | |
465 | _resultobj = Py_BuildValue("s",_ptemp); | |
466 | } else { | |
467 | Py_INCREF(Py_None); | |
468 | _resultobj = Py_None; | |
469 | } | |
70551f47 RD |
470 | return _resultobj; |
471 | } | |
472 | ||
473 | #define wxColourDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
107e4716 | 474 | static PyObject *_wrap_wxColourDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
475 | PyObject * _resultobj; |
476 | int _result; | |
477 | wxColourDialog * _arg0; | |
2d091820 | 478 | PyObject * _argo0 = 0; |
107e4716 | 479 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
480 | |
481 | self = self; | |
107e4716 | 482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourDialog_ShowModal",_kwnames,&_argo0)) |
70551f47 | 483 | return NULL; |
2d091820 RD |
484 | if (_argo0) { |
485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDialog_p")) { | |
70551f47 RD |
487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDialog_ShowModal. Expected _wxColourDialog_p."); |
488 | return NULL; | |
489 | } | |
490 | } | |
ab9bc19b | 491 | { |
474c48f9 | 492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
493 | _result = (int )wxColourDialog_ShowModal(_arg0); |
494 | ||
474c48f9 | 495 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 496 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 497 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
498 | return _resultobj; |
499 | } | |
500 | ||
c95e68d8 RD |
501 | static void *SwigwxDirDialogTowxDialog(void *ptr) { |
502 | wxDirDialog *src; | |
503 | wxDialog *dest; | |
504 | src = (wxDirDialog *) ptr; | |
505 | dest = (wxDialog *) src; | |
506 | return (void *) dest; | |
507 | } | |
508 | ||
32c988a3 | 509 | static void *SwigwxDirDialogTowxTopLevelWindow(void *ptr) { |
c95e68d8 | 510 | wxDirDialog *src; |
32c988a3 | 511 | wxTopLevelWindow *dest; |
c95e68d8 | 512 | src = (wxDirDialog *) ptr; |
32c988a3 | 513 | dest = (wxTopLevelWindow *) src; |
c95e68d8 RD |
514 | return (void *) dest; |
515 | } | |
516 | ||
517 | static void *SwigwxDirDialogTowxWindow(void *ptr) { | |
518 | wxDirDialog *src; | |
519 | wxWindow *dest; | |
520 | src = (wxDirDialog *) ptr; | |
521 | dest = (wxWindow *) src; | |
522 | return (void *) dest; | |
523 | } | |
524 | ||
525 | static void *SwigwxDirDialogTowxEvtHandler(void *ptr) { | |
526 | wxDirDialog *src; | |
527 | wxEvtHandler *dest; | |
528 | src = (wxDirDialog *) ptr; | |
529 | dest = (wxEvtHandler *) src; | |
530 | return (void *) dest; | |
531 | } | |
532 | ||
9df61a29 RD |
533 | static void *SwigwxDirDialogTowxObject(void *ptr) { |
534 | wxDirDialog *src; | |
535 | wxObject *dest; | |
536 | src = (wxDirDialog *) ptr; | |
537 | dest = (wxObject *) src; | |
538 | return (void *) dest; | |
539 | } | |
540 | ||
c95e68d8 | 541 | #define new_wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 542 | static PyObject *_wrap_new_wxDirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
543 | PyObject * _resultobj; |
544 | wxDirDialog * _result; | |
545 | wxWindow * _arg0; | |
2d091820 RD |
546 | char * _arg1 = (char *) "Choose a directory"; |
547 | char * _arg2 = (char *) ""; | |
548 | long _arg3 = (long ) 0; | |
b68dc582 | 549 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
2d091820 | 550 | PyObject * _argo0 = 0; |
37f6a977 RD |
551 | wxPoint temp; |
552 | PyObject * _obj4 = 0; | |
107e4716 | 553 | char *_kwnames[] = { "parent","message","defaultPath","style","pos", NULL }; |
c95e68d8 RD |
554 | char _ptemp[128]; |
555 | ||
556 | self = self; | |
37f6a977 | 557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sslO:new_wxDirDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) |
c95e68d8 | 558 | return NULL; |
2d091820 RD |
559 | if (_argo0) { |
560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirDialog. Expected _wxWindow_p."); |
563 | return NULL; | |
564 | } | |
565 | } | |
37f6a977 RD |
566 | if (_obj4) |
567 | { | |
568 | _arg4 = &temp; | |
569 | if (! wxPoint_helper(_obj4, &_arg4)) | |
c95e68d8 | 570 | return NULL; |
37f6a977 | 571 | } |
ab9bc19b | 572 | { |
474c48f9 | 573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
574 | _result = (wxDirDialog *)new_wxDirDialog(_arg0,_arg1,_arg2,_arg3,*_arg4); |
575 | ||
474c48f9 | 576 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 577 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
578 | } if (_result) { |
579 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirDialog_p"); | |
580 | _resultobj = Py_BuildValue("s",_ptemp); | |
581 | } else { | |
582 | Py_INCREF(Py_None); | |
583 | _resultobj = Py_None; | |
584 | } | |
c95e68d8 RD |
585 | return _resultobj; |
586 | } | |
587 | ||
588 | #define wxDirDialog_GetPath(_swigobj) (_swigobj->GetPath()) | |
107e4716 | 589 | static PyObject *_wrap_wxDirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
590 | PyObject * _resultobj; |
591 | wxString * _result; | |
592 | wxDirDialog * _arg0; | |
2d091820 | 593 | PyObject * _argo0 = 0; |
107e4716 | 594 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
595 | |
596 | self = self; | |
107e4716 | 597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetPath",_kwnames,&_argo0)) |
c95e68d8 | 598 | return NULL; |
2d091820 RD |
599 | if (_argo0) { |
600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
c95e68d8 RD |
602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetPath. Expected _wxDirDialog_p."); |
603 | return NULL; | |
604 | } | |
605 | } | |
c95e68d8 | 606 | { |
474c48f9 | 607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
608 | _result = new wxString (wxDirDialog_GetPath(_arg0)); |
609 | ||
474c48f9 | 610 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 611 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 612 | }{ |
e02c03a4 | 613 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c95e68d8 RD |
614 | } |
615 | { | |
616 | delete _result; | |
617 | } | |
618 | return _resultobj; | |
619 | } | |
620 | ||
621 | #define wxDirDialog_GetMessage(_swigobj) (_swigobj->GetMessage()) | |
107e4716 | 622 | static PyObject *_wrap_wxDirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
623 | PyObject * _resultobj; |
624 | wxString * _result; | |
625 | wxDirDialog * _arg0; | |
2d091820 | 626 | PyObject * _argo0 = 0; |
107e4716 | 627 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
628 | |
629 | self = self; | |
107e4716 | 630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetMessage",_kwnames,&_argo0)) |
c95e68d8 | 631 | return NULL; |
2d091820 RD |
632 | if (_argo0) { |
633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
c95e68d8 RD |
635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetMessage. Expected _wxDirDialog_p."); |
636 | return NULL; | |
637 | } | |
638 | } | |
c95e68d8 | 639 | { |
474c48f9 | 640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
641 | _result = new wxString (wxDirDialog_GetMessage(_arg0)); |
642 | ||
474c48f9 | 643 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 644 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 645 | }{ |
e02c03a4 | 646 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c95e68d8 RD |
647 | } |
648 | { | |
649 | delete _result; | |
650 | } | |
651 | return _resultobj; | |
652 | } | |
653 | ||
654 | #define wxDirDialog_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 655 | static PyObject *_wrap_wxDirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
656 | PyObject * _resultobj; |
657 | long _result; | |
658 | wxDirDialog * _arg0; | |
2d091820 | 659 | PyObject * _argo0 = 0; |
107e4716 | 660 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
661 | |
662 | self = self; | |
107e4716 | 663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetStyle",_kwnames,&_argo0)) |
c95e68d8 | 664 | return NULL; |
2d091820 RD |
665 | if (_argo0) { |
666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
c95e68d8 RD |
668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetStyle. Expected _wxDirDialog_p."); |
669 | return NULL; | |
670 | } | |
671 | } | |
ab9bc19b | 672 | { |
474c48f9 | 673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
674 | _result = (long )wxDirDialog_GetStyle(_arg0); |
675 | ||
474c48f9 | 676 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 677 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 678 | } _resultobj = Py_BuildValue("l",_result); |
c95e68d8 RD |
679 | return _resultobj; |
680 | } | |
681 | ||
682 | #define wxDirDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0)) | |
107e4716 | 683 | static PyObject *_wrap_wxDirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
684 | PyObject * _resultobj; |
685 | wxDirDialog * _arg0; | |
686 | wxString * _arg1; | |
2d091820 | 687 | PyObject * _argo0 = 0; |
c95e68d8 | 688 | PyObject * _obj1 = 0; |
107e4716 | 689 | char *_kwnames[] = { "self","message", NULL }; |
c95e68d8 RD |
690 | |
691 | self = self; | |
107e4716 | 692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirDialog_SetMessage",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 693 | return NULL; |
2d091820 RD |
694 | if (_argo0) { |
695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
c95e68d8 RD |
697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_SetMessage. Expected _wxDirDialog_p."); |
698 | return NULL; | |
699 | } | |
700 | } | |
701 | { | |
2cd2fac8 RD |
702 | #if PYTHON_API_VERSION >= 1009 |
703 | char* tmpPtr; int tmpSize; | |
704 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 705 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
706 | return NULL; |
707 | } | |
708 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
709 | return NULL; | |
710 | _arg1 = new wxString(tmpPtr, tmpSize); | |
711 | #else | |
c95e68d8 RD |
712 | if (!PyString_Check(_obj1)) { |
713 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
714 | return NULL; | |
715 | } | |
2cd2fac8 RD |
716 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
717 | #endif | |
c95e68d8 | 718 | } |
ab9bc19b | 719 | { |
474c48f9 | 720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
721 | wxDirDialog_SetMessage(_arg0,*_arg1); |
722 | ||
474c48f9 | 723 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 724 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 725 | } Py_INCREF(Py_None); |
c95e68d8 RD |
726 | _resultobj = Py_None; |
727 | { | |
728 | if (_obj1) | |
729 | delete _arg1; | |
730 | } | |
731 | return _resultobj; | |
732 | } | |
733 | ||
734 | #define wxDirDialog_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
107e4716 | 735 | static PyObject *_wrap_wxDirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
736 | PyObject * _resultobj; |
737 | wxDirDialog * _arg0; | |
738 | wxString * _arg1; | |
2d091820 | 739 | PyObject * _argo0 = 0; |
c95e68d8 | 740 | PyObject * _obj1 = 0; |
107e4716 | 741 | char *_kwnames[] = { "self","path", NULL }; |
c95e68d8 RD |
742 | |
743 | self = self; | |
107e4716 | 744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirDialog_SetPath",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 745 | return NULL; |
2d091820 RD |
746 | if (_argo0) { |
747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
c95e68d8 RD |
749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_SetPath. Expected _wxDirDialog_p."); |
750 | return NULL; | |
751 | } | |
752 | } | |
753 | { | |
2cd2fac8 RD |
754 | #if PYTHON_API_VERSION >= 1009 |
755 | char* tmpPtr; int tmpSize; | |
756 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 757 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
758 | return NULL; |
759 | } | |
760 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
761 | return NULL; | |
762 | _arg1 = new wxString(tmpPtr, tmpSize); | |
763 | #else | |
c95e68d8 RD |
764 | if (!PyString_Check(_obj1)) { |
765 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
766 | return NULL; | |
767 | } | |
2cd2fac8 RD |
768 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
769 | #endif | |
c95e68d8 | 770 | } |
ab9bc19b | 771 | { |
474c48f9 | 772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
773 | wxDirDialog_SetPath(_arg0,*_arg1); |
774 | ||
474c48f9 | 775 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 776 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 777 | } Py_INCREF(Py_None); |
c95e68d8 RD |
778 | _resultobj = Py_None; |
779 | { | |
780 | if (_obj1) | |
781 | delete _arg1; | |
782 | } | |
783 | return _resultobj; | |
784 | } | |
785 | ||
786 | #define wxDirDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
107e4716 | 787 | static PyObject *_wrap_wxDirDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
788 | PyObject * _resultobj; |
789 | int _result; | |
790 | wxDirDialog * _arg0; | |
2d091820 | 791 | PyObject * _argo0 = 0; |
107e4716 | 792 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
793 | |
794 | self = self; | |
107e4716 | 795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_ShowModal",_kwnames,&_argo0)) |
c95e68d8 | 796 | return NULL; |
2d091820 RD |
797 | if (_argo0) { |
798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
c95e68d8 RD |
800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_ShowModal. Expected _wxDirDialog_p."); |
801 | return NULL; | |
802 | } | |
803 | } | |
ab9bc19b | 804 | { |
474c48f9 | 805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
806 | _result = (int )wxDirDialog_ShowModal(_arg0); |
807 | ||
474c48f9 | 808 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 809 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 810 | } _resultobj = Py_BuildValue("i",_result); |
c95e68d8 RD |
811 | return _resultobj; |
812 | } | |
813 | ||
70551f47 RD |
814 | static void *SwigwxFileDialogTowxDialog(void *ptr) { |
815 | wxFileDialog *src; | |
816 | wxDialog *dest; | |
817 | src = (wxFileDialog *) ptr; | |
818 | dest = (wxDialog *) src; | |
819 | return (void *) dest; | |
820 | } | |
821 | ||
32c988a3 | 822 | static void *SwigwxFileDialogTowxTopLevelWindow(void *ptr) { |
70551f47 | 823 | wxFileDialog *src; |
32c988a3 | 824 | wxTopLevelWindow *dest; |
70551f47 | 825 | src = (wxFileDialog *) ptr; |
32c988a3 | 826 | dest = (wxTopLevelWindow *) src; |
70551f47 RD |
827 | return (void *) dest; |
828 | } | |
829 | ||
830 | static void *SwigwxFileDialogTowxWindow(void *ptr) { | |
831 | wxFileDialog *src; | |
832 | wxWindow *dest; | |
833 | src = (wxFileDialog *) ptr; | |
834 | dest = (wxWindow *) src; | |
835 | return (void *) dest; | |
836 | } | |
837 | ||
838 | static void *SwigwxFileDialogTowxEvtHandler(void *ptr) { | |
839 | wxFileDialog *src; | |
840 | wxEvtHandler *dest; | |
841 | src = (wxFileDialog *) ptr; | |
842 | dest = (wxEvtHandler *) src; | |
843 | return (void *) dest; | |
844 | } | |
845 | ||
9df61a29 RD |
846 | static void *SwigwxFileDialogTowxObject(void *ptr) { |
847 | wxFileDialog *src; | |
848 | wxObject *dest; | |
849 | src = (wxFileDialog *) ptr; | |
850 | dest = (wxObject *) src; | |
851 | return (void *) dest; | |
852 | } | |
853 | ||
70551f47 | 854 | #define new_wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
107e4716 | 855 | static PyObject *_wrap_new_wxFileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
856 | PyObject * _resultobj; |
857 | wxFileDialog * _result; | |
858 | wxWindow * _arg0; | |
2d091820 RD |
859 | char * _arg1 = (char *) "Choose a file"; |
860 | char * _arg2 = (char *) ""; | |
861 | char * _arg3 = (char *) ""; | |
862 | char * _arg4 = (char *) "*.*"; | |
863 | long _arg5 = (long ) 0; | |
b68dc582 | 864 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; |
2d091820 | 865 | PyObject * _argo0 = 0; |
37f6a977 RD |
866 | wxPoint temp; |
867 | PyObject * _obj6 = 0; | |
107e4716 | 868 | char *_kwnames[] = { "parent","message","defaultDir","defaultFile","wildcard","style","pos", NULL }; |
70551f47 RD |
869 | char _ptemp[128]; |
870 | ||
871 | self = self; | |
37f6a977 | 872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sssslO:new_wxFileDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6)) |
70551f47 | 873 | return NULL; |
2d091820 RD |
874 | if (_argo0) { |
875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileDialog. Expected _wxWindow_p."); |
878 | return NULL; | |
879 | } | |
880 | } | |
37f6a977 RD |
881 | if (_obj6) |
882 | { | |
883 | _arg6 = &temp; | |
884 | if (! wxPoint_helper(_obj6, &_arg6)) | |
70551f47 | 885 | return NULL; |
37f6a977 | 886 | } |
ab9bc19b | 887 | { |
474c48f9 | 888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
889 | _result = (wxFileDialog *)new_wxFileDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6); |
890 | ||
474c48f9 | 891 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 892 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
893 | } if (_result) { |
894 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileDialog_p"); | |
895 | _resultobj = Py_BuildValue("s",_ptemp); | |
896 | } else { | |
897 | Py_INCREF(Py_None); | |
898 | _resultobj = Py_None; | |
899 | } | |
70551f47 RD |
900 | return _resultobj; |
901 | } | |
902 | ||
903 | #define wxFileDialog_GetDirectory(_swigobj) (_swigobj->GetDirectory()) | |
107e4716 | 904 | static PyObject *_wrap_wxFileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
905 | PyObject * _resultobj; |
906 | wxString * _result; | |
907 | wxFileDialog * _arg0; | |
2d091820 | 908 | PyObject * _argo0 = 0; |
107e4716 | 909 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
910 | |
911 | self = self; | |
107e4716 | 912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetDirectory",_kwnames,&_argo0)) |
70551f47 | 913 | return NULL; |
2d091820 RD |
914 | if (_argo0) { |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetDirectory. Expected _wxFileDialog_p."); |
918 | return NULL; | |
919 | } | |
920 | } | |
70551f47 | 921 | { |
474c48f9 | 922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
923 | _result = new wxString (wxFileDialog_GetDirectory(_arg0)); |
924 | ||
474c48f9 | 925 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 926 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 927 | }{ |
e02c03a4 | 928 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
929 | } |
930 | { | |
931 | delete _result; | |
932 | } | |
933 | return _resultobj; | |
934 | } | |
935 | ||
936 | #define wxFileDialog_GetFilename(_swigobj) (_swigobj->GetFilename()) | |
107e4716 | 937 | static PyObject *_wrap_wxFileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
938 | PyObject * _resultobj; |
939 | wxString * _result; | |
940 | wxFileDialog * _arg0; | |
2d091820 | 941 | PyObject * _argo0 = 0; |
107e4716 | 942 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
943 | |
944 | self = self; | |
107e4716 | 945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilename",_kwnames,&_argo0)) |
70551f47 | 946 | return NULL; |
2d091820 RD |
947 | if (_argo0) { |
948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilename. Expected _wxFileDialog_p."); |
951 | return NULL; | |
952 | } | |
953 | } | |
70551f47 | 954 | { |
474c48f9 | 955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
956 | _result = new wxString (wxFileDialog_GetFilename(_arg0)); |
957 | ||
474c48f9 | 958 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 959 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 960 | }{ |
e02c03a4 | 961 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
962 | } |
963 | { | |
964 | delete _result; | |
965 | } | |
966 | return _resultobj; | |
967 | } | |
968 | ||
969 | #define wxFileDialog_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
107e4716 | 970 | static PyObject *_wrap_wxFileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
971 | PyObject * _resultobj; |
972 | int _result; | |
973 | wxFileDialog * _arg0; | |
2d091820 | 974 | PyObject * _argo0 = 0; |
107e4716 | 975 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
976 | |
977 | self = self; | |
107e4716 | 978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilterIndex",_kwnames,&_argo0)) |
70551f47 | 979 | return NULL; |
2d091820 RD |
980 | if (_argo0) { |
981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilterIndex. Expected _wxFileDialog_p."); |
984 | return NULL; | |
985 | } | |
986 | } | |
ab9bc19b | 987 | { |
474c48f9 | 988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
989 | _result = (int )wxFileDialog_GetFilterIndex(_arg0); |
990 | ||
474c48f9 | 991 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 992 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 993 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
994 | return _resultobj; |
995 | } | |
996 | ||
997 | #define wxFileDialog_GetMessage(_swigobj) (_swigobj->GetMessage()) | |
107e4716 | 998 | static PyObject *_wrap_wxFileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
999 | PyObject * _resultobj; |
1000 | wxString * _result; | |
1001 | wxFileDialog * _arg0; | |
2d091820 | 1002 | PyObject * _argo0 = 0; |
107e4716 | 1003 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1004 | |
1005 | self = self; | |
107e4716 | 1006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetMessage",_kwnames,&_argo0)) |
70551f47 | 1007 | return NULL; |
2d091820 RD |
1008 | if (_argo0) { |
1009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetMessage. Expected _wxFileDialog_p."); |
1012 | return NULL; | |
1013 | } | |
1014 | } | |
70551f47 | 1015 | { |
474c48f9 | 1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1017 | _result = new wxString (wxFileDialog_GetMessage(_arg0)); |
1018 | ||
474c48f9 | 1019 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1020 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1021 | }{ |
e02c03a4 | 1022 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
1023 | } |
1024 | { | |
1025 | delete _result; | |
1026 | } | |
1027 | return _resultobj; | |
1028 | } | |
1029 | ||
1030 | #define wxFileDialog_GetPath(_swigobj) (_swigobj->GetPath()) | |
107e4716 | 1031 | static PyObject *_wrap_wxFileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1032 | PyObject * _resultobj; |
1033 | wxString * _result; | |
1034 | wxFileDialog * _arg0; | |
2d091820 | 1035 | PyObject * _argo0 = 0; |
107e4716 | 1036 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1037 | |
1038 | self = self; | |
107e4716 | 1039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetPath",_kwnames,&_argo0)) |
70551f47 | 1040 | return NULL; |
2d091820 RD |
1041 | if (_argo0) { |
1042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetPath. Expected _wxFileDialog_p."); |
1045 | return NULL; | |
1046 | } | |
1047 | } | |
70551f47 | 1048 | { |
474c48f9 | 1049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1050 | _result = new wxString (wxFileDialog_GetPath(_arg0)); |
1051 | ||
474c48f9 | 1052 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1053 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1054 | }{ |
e02c03a4 | 1055 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
1056 | } |
1057 | { | |
1058 | delete _result; | |
1059 | } | |
1060 | return _resultobj; | |
1061 | } | |
1062 | ||
1063 | #define wxFileDialog_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
107e4716 | 1064 | static PyObject *_wrap_wxFileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1065 | PyObject * _resultobj; |
1066 | long _result; | |
1067 | wxFileDialog * _arg0; | |
2d091820 | 1068 | PyObject * _argo0 = 0; |
107e4716 | 1069 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1070 | |
1071 | self = self; | |
107e4716 | 1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetStyle",_kwnames,&_argo0)) |
70551f47 | 1073 | return NULL; |
2d091820 RD |
1074 | if (_argo0) { |
1075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetStyle. Expected _wxFileDialog_p."); |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
ab9bc19b | 1081 | { |
474c48f9 | 1082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1083 | _result = (long )wxFileDialog_GetStyle(_arg0); |
1084 | ||
474c48f9 | 1085 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1086 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1087 | } _resultobj = Py_BuildValue("l",_result); |
70551f47 RD |
1088 | return _resultobj; |
1089 | } | |
1090 | ||
1091 | #define wxFileDialog_GetWildcard(_swigobj) (_swigobj->GetWildcard()) | |
107e4716 | 1092 | static PyObject *_wrap_wxFileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1093 | PyObject * _resultobj; |
1094 | wxString * _result; | |
1095 | wxFileDialog * _arg0; | |
2d091820 | 1096 | PyObject * _argo0 = 0; |
107e4716 | 1097 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1098 | |
1099 | self = self; | |
107e4716 | 1100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetWildcard",_kwnames,&_argo0)) |
70551f47 | 1101 | return NULL; |
2d091820 RD |
1102 | if (_argo0) { |
1103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetWildcard. Expected _wxFileDialog_p."); |
1106 | return NULL; | |
1107 | } | |
1108 | } | |
70551f47 | 1109 | { |
474c48f9 | 1110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1111 | _result = new wxString (wxFileDialog_GetWildcard(_arg0)); |
1112 | ||
474c48f9 | 1113 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1114 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1115 | }{ |
e02c03a4 | 1116 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
1117 | } |
1118 | { | |
1119 | delete _result; | |
1120 | } | |
1121 | return _resultobj; | |
1122 | } | |
1123 | ||
1124 | #define wxFileDialog_SetDirectory(_swigobj,_swigarg0) (_swigobj->SetDirectory(_swigarg0)) | |
107e4716 | 1125 | static PyObject *_wrap_wxFileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1126 | PyObject * _resultobj; |
1127 | wxFileDialog * _arg0; | |
1128 | wxString * _arg1; | |
2d091820 | 1129 | PyObject * _argo0 = 0; |
70551f47 | 1130 | PyObject * _obj1 = 0; |
107e4716 | 1131 | char *_kwnames[] = { "self","directory", NULL }; |
70551f47 RD |
1132 | |
1133 | self = self; | |
107e4716 | 1134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetDirectory",_kwnames,&_argo0,&_obj1)) |
70551f47 | 1135 | return NULL; |
2d091820 RD |
1136 | if (_argo0) { |
1137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetDirectory. Expected _wxFileDialog_p."); |
1140 | return NULL; | |
1141 | } | |
1142 | } | |
1143 | { | |
2cd2fac8 RD |
1144 | #if PYTHON_API_VERSION >= 1009 |
1145 | char* tmpPtr; int tmpSize; | |
1146 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1147 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1148 | return NULL; |
1149 | } | |
1150 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1151 | return NULL; | |
1152 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1153 | #else | |
70551f47 RD |
1154 | if (!PyString_Check(_obj1)) { |
1155 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1156 | return NULL; | |
1157 | } | |
2cd2fac8 RD |
1158 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1159 | #endif | |
70551f47 | 1160 | } |
ab9bc19b | 1161 | { |
474c48f9 | 1162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1163 | wxFileDialog_SetDirectory(_arg0,*_arg1); |
1164 | ||
474c48f9 | 1165 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1166 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1167 | } Py_INCREF(Py_None); |
70551f47 RD |
1168 | _resultobj = Py_None; |
1169 | { | |
1170 | if (_obj1) | |
1171 | delete _arg1; | |
1172 | } | |
1173 | return _resultobj; | |
1174 | } | |
1175 | ||
1176 | #define wxFileDialog_SetFilename(_swigobj,_swigarg0) (_swigobj->SetFilename(_swigarg0)) | |
107e4716 | 1177 | static PyObject *_wrap_wxFileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1178 | PyObject * _resultobj; |
1179 | wxFileDialog * _arg0; | |
1180 | wxString * _arg1; | |
2d091820 | 1181 | PyObject * _argo0 = 0; |
70551f47 | 1182 | PyObject * _obj1 = 0; |
107e4716 | 1183 | char *_kwnames[] = { "self","setfilename", NULL }; |
70551f47 RD |
1184 | |
1185 | self = self; | |
107e4716 | 1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetFilename",_kwnames,&_argo0,&_obj1)) |
70551f47 | 1187 | return NULL; |
2d091820 RD |
1188 | if (_argo0) { |
1189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetFilename. Expected _wxFileDialog_p."); |
1192 | return NULL; | |
1193 | } | |
1194 | } | |
1195 | { | |
2cd2fac8 RD |
1196 | #if PYTHON_API_VERSION >= 1009 |
1197 | char* tmpPtr; int tmpSize; | |
1198 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1199 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1200 | return NULL; |
1201 | } | |
1202 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1203 | return NULL; | |
1204 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1205 | #else | |
70551f47 RD |
1206 | if (!PyString_Check(_obj1)) { |
1207 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1208 | return NULL; | |
1209 | } | |
2cd2fac8 RD |
1210 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1211 | #endif | |
70551f47 | 1212 | } |
ab9bc19b | 1213 | { |
474c48f9 | 1214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1215 | wxFileDialog_SetFilename(_arg0,*_arg1); |
1216 | ||
474c48f9 | 1217 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1218 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1219 | } Py_INCREF(Py_None); |
70551f47 RD |
1220 | _resultobj = Py_None; |
1221 | { | |
1222 | if (_obj1) | |
1223 | delete _arg1; | |
1224 | } | |
1225 | return _resultobj; | |
1226 | } | |
1227 | ||
1228 | #define wxFileDialog_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0)) | |
107e4716 | 1229 | static PyObject *_wrap_wxFileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1230 | PyObject * _resultobj; |
1231 | wxFileDialog * _arg0; | |
1232 | int _arg1; | |
2d091820 | 1233 | PyObject * _argo0 = 0; |
107e4716 | 1234 | char *_kwnames[] = { "self","filterIndex", NULL }; |
70551f47 RD |
1235 | |
1236 | self = self; | |
107e4716 | 1237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileDialog_SetFilterIndex",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1238 | return NULL; |
2d091820 RD |
1239 | if (_argo0) { |
1240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetFilterIndex. Expected _wxFileDialog_p."); |
1243 | return NULL; | |
1244 | } | |
1245 | } | |
ab9bc19b | 1246 | { |
474c48f9 | 1247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1248 | wxFileDialog_SetFilterIndex(_arg0,_arg1); |
1249 | ||
474c48f9 | 1250 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1251 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1252 | } Py_INCREF(Py_None); |
70551f47 RD |
1253 | _resultobj = Py_None; |
1254 | return _resultobj; | |
1255 | } | |
1256 | ||
1257 | #define wxFileDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0)) | |
107e4716 | 1258 | static PyObject *_wrap_wxFileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1259 | PyObject * _resultobj; |
1260 | wxFileDialog * _arg0; | |
1261 | wxString * _arg1; | |
2d091820 | 1262 | PyObject * _argo0 = 0; |
70551f47 | 1263 | PyObject * _obj1 = 0; |
107e4716 | 1264 | char *_kwnames[] = { "self","message", NULL }; |
70551f47 RD |
1265 | |
1266 | self = self; | |
107e4716 | 1267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetMessage",_kwnames,&_argo0,&_obj1)) |
70551f47 | 1268 | return NULL; |
2d091820 RD |
1269 | if (_argo0) { |
1270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetMessage. Expected _wxFileDialog_p."); |
1273 | return NULL; | |
1274 | } | |
1275 | } | |
1276 | { | |
2cd2fac8 RD |
1277 | #if PYTHON_API_VERSION >= 1009 |
1278 | char* tmpPtr; int tmpSize; | |
1279 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1280 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1281 | return NULL; |
1282 | } | |
1283 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1284 | return NULL; | |
1285 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1286 | #else | |
70551f47 RD |
1287 | if (!PyString_Check(_obj1)) { |
1288 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1289 | return NULL; | |
1290 | } | |
2cd2fac8 RD |
1291 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1292 | #endif | |
70551f47 | 1293 | } |
ab9bc19b | 1294 | { |
474c48f9 | 1295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1296 | wxFileDialog_SetMessage(_arg0,*_arg1); |
1297 | ||
474c48f9 | 1298 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1299 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1300 | } Py_INCREF(Py_None); |
70551f47 RD |
1301 | _resultobj = Py_None; |
1302 | { | |
1303 | if (_obj1) | |
1304 | delete _arg1; | |
1305 | } | |
1306 | return _resultobj; | |
1307 | } | |
1308 | ||
1309 | #define wxFileDialog_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
107e4716 | 1310 | static PyObject *_wrap_wxFileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1311 | PyObject * _resultobj; |
1312 | wxFileDialog * _arg0; | |
1313 | wxString * _arg1; | |
2d091820 | 1314 | PyObject * _argo0 = 0; |
70551f47 | 1315 | PyObject * _obj1 = 0; |
107e4716 | 1316 | char *_kwnames[] = { "self","path", NULL }; |
70551f47 RD |
1317 | |
1318 | self = self; | |
107e4716 | 1319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetPath",_kwnames,&_argo0,&_obj1)) |
70551f47 | 1320 | return NULL; |
2d091820 RD |
1321 | if (_argo0) { |
1322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetPath. Expected _wxFileDialog_p."); |
1325 | return NULL; | |
1326 | } | |
1327 | } | |
1328 | { | |
2cd2fac8 RD |
1329 | #if PYTHON_API_VERSION >= 1009 |
1330 | char* tmpPtr; int tmpSize; | |
1331 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1332 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1333 | return NULL; |
1334 | } | |
1335 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1336 | return NULL; | |
1337 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1338 | #else | |
70551f47 RD |
1339 | if (!PyString_Check(_obj1)) { |
1340 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1341 | return NULL; | |
1342 | } | |
2cd2fac8 RD |
1343 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1344 | #endif | |
70551f47 | 1345 | } |
ab9bc19b | 1346 | { |
474c48f9 | 1347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1348 | wxFileDialog_SetPath(_arg0,*_arg1); |
1349 | ||
474c48f9 | 1350 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1351 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1352 | } Py_INCREF(Py_None); |
70551f47 RD |
1353 | _resultobj = Py_None; |
1354 | { | |
1355 | if (_obj1) | |
1356 | delete _arg1; | |
1357 | } | |
1358 | return _resultobj; | |
1359 | } | |
1360 | ||
1361 | #define wxFileDialog_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
107e4716 | 1362 | static PyObject *_wrap_wxFileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1363 | PyObject * _resultobj; |
1364 | wxFileDialog * _arg0; | |
1365 | long _arg1; | |
2d091820 | 1366 | PyObject * _argo0 = 0; |
107e4716 | 1367 | char *_kwnames[] = { "self","style", NULL }; |
70551f47 RD |
1368 | |
1369 | self = self; | |
107e4716 | 1370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxFileDialog_SetStyle",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1371 | return NULL; |
2d091820 RD |
1372 | if (_argo0) { |
1373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetStyle. Expected _wxFileDialog_p."); |
1376 | return NULL; | |
1377 | } | |
1378 | } | |
ab9bc19b | 1379 | { |
474c48f9 | 1380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1381 | wxFileDialog_SetStyle(_arg0,_arg1); |
1382 | ||
474c48f9 | 1383 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1384 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1385 | } Py_INCREF(Py_None); |
70551f47 RD |
1386 | _resultobj = Py_None; |
1387 | return _resultobj; | |
1388 | } | |
1389 | ||
1390 | #define wxFileDialog_SetWildcard(_swigobj,_swigarg0) (_swigobj->SetWildcard(_swigarg0)) | |
107e4716 | 1391 | static PyObject *_wrap_wxFileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1392 | PyObject * _resultobj; |
1393 | wxFileDialog * _arg0; | |
1394 | wxString * _arg1; | |
2d091820 | 1395 | PyObject * _argo0 = 0; |
70551f47 | 1396 | PyObject * _obj1 = 0; |
107e4716 | 1397 | char *_kwnames[] = { "self","wildCard", NULL }; |
70551f47 RD |
1398 | |
1399 | self = self; | |
107e4716 | 1400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetWildcard",_kwnames,&_argo0,&_obj1)) |
70551f47 | 1401 | return NULL; |
2d091820 RD |
1402 | if (_argo0) { |
1403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetWildcard. Expected _wxFileDialog_p."); |
1406 | return NULL; | |
1407 | } | |
1408 | } | |
1409 | { | |
2cd2fac8 RD |
1410 | #if PYTHON_API_VERSION >= 1009 |
1411 | char* tmpPtr; int tmpSize; | |
1412 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1413 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1414 | return NULL; |
1415 | } | |
1416 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1417 | return NULL; | |
1418 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1419 | #else | |
70551f47 RD |
1420 | if (!PyString_Check(_obj1)) { |
1421 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1422 | return NULL; | |
1423 | } | |
2cd2fac8 RD |
1424 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1425 | #endif | |
70551f47 | 1426 | } |
ab9bc19b | 1427 | { |
474c48f9 | 1428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1429 | wxFileDialog_SetWildcard(_arg0,*_arg1); |
1430 | ||
474c48f9 | 1431 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1432 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1433 | } Py_INCREF(Py_None); |
70551f47 RD |
1434 | _resultobj = Py_None; |
1435 | { | |
1436 | if (_obj1) | |
1437 | delete _arg1; | |
1438 | } | |
1439 | return _resultobj; | |
1440 | } | |
1441 | ||
1442 | #define wxFileDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
107e4716 | 1443 | static PyObject *_wrap_wxFileDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1444 | PyObject * _resultobj; |
1445 | int _result; | |
1446 | wxFileDialog * _arg0; | |
2d091820 | 1447 | PyObject * _argo0 = 0; |
107e4716 | 1448 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1449 | |
1450 | self = self; | |
107e4716 | 1451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_ShowModal",_kwnames,&_argo0)) |
70551f47 | 1452 | return NULL; |
2d091820 RD |
1453 | if (_argo0) { |
1454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
70551f47 RD |
1456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_ShowModal. Expected _wxFileDialog_p."); |
1457 | return NULL; | |
1458 | } | |
1459 | } | |
ab9bc19b | 1460 | { |
474c48f9 | 1461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1462 | _result = (int )wxFileDialog_ShowModal(_arg0); |
1463 | ||
474c48f9 | 1464 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1465 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1466 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1467 | return _resultobj; |
1468 | } | |
1469 | ||
f6bcfd97 BP |
1470 | static PyObject * wxFileDialog_GetFilenames(wxFileDialog *self) { |
1471 | wxArrayString arr; | |
1472 | self->GetFilenames(arr); | |
5c0282d5 | 1473 | return wxArrayString2PyList_helper(arr); |
f6bcfd97 BP |
1474 | } |
1475 | static PyObject *_wrap_wxFileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1476 | PyObject * _resultobj; | |
1477 | PyObject * _result; | |
1478 | wxFileDialog * _arg0; | |
1479 | PyObject * _argo0 = 0; | |
1480 | char *_kwnames[] = { "self", NULL }; | |
1481 | ||
1482 | self = self; | |
1483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilenames",_kwnames,&_argo0)) | |
1484 | return NULL; | |
1485 | if (_argo0) { | |
1486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilenames. Expected _wxFileDialog_p."); | |
1489 | return NULL; | |
1490 | } | |
1491 | } | |
1492 | { | |
474c48f9 | 1493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1494 | _result = (PyObject *)wxFileDialog_GetFilenames(_arg0); |
1495 | ||
474c48f9 | 1496 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1497 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1498 | }{ |
1499 | _resultobj = _result; | |
1500 | } | |
1501 | return _resultobj; | |
1502 | } | |
1503 | ||
1504 | static PyObject * wxFileDialog_GetPaths(wxFileDialog *self) { | |
1505 | wxArrayString arr; | |
1506 | self->GetPaths(arr); | |
5c0282d5 | 1507 | return wxArrayString2PyList_helper(arr); |
f6bcfd97 BP |
1508 | } |
1509 | static PyObject *_wrap_wxFileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1510 | PyObject * _resultobj; | |
1511 | PyObject * _result; | |
1512 | wxFileDialog * _arg0; | |
1513 | PyObject * _argo0 = 0; | |
1514 | char *_kwnames[] = { "self", NULL }; | |
1515 | ||
1516 | self = self; | |
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetPaths",_kwnames,&_argo0)) | |
1518 | return NULL; | |
1519 | if (_argo0) { | |
1520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetPaths. Expected _wxFileDialog_p."); | |
1523 | return NULL; | |
1524 | } | |
1525 | } | |
1526 | { | |
474c48f9 | 1527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1528 | _result = (PyObject *)wxFileDialog_GetPaths(_arg0); |
1529 | ||
474c48f9 | 1530 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1531 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1532 | }{ |
1533 | _resultobj = _result; | |
1534 | } | |
1535 | return _resultobj; | |
1536 | } | |
1537 | ||
85247b36 RD |
1538 | static void *SwigwxMultiChoiceDialogTowxDialog(void *ptr) { |
1539 | wxMultiChoiceDialog *src; | |
1540 | wxDialog *dest; | |
1541 | src = (wxMultiChoiceDialog *) ptr; | |
1542 | dest = (wxDialog *) src; | |
1543 | return (void *) dest; | |
1544 | } | |
1545 | ||
1546 | static void *SwigwxMultiChoiceDialogTowxTopLevelWindow(void *ptr) { | |
1547 | wxMultiChoiceDialog *src; | |
1548 | wxTopLevelWindow *dest; | |
1549 | src = (wxMultiChoiceDialog *) ptr; | |
1550 | dest = (wxTopLevelWindow *) src; | |
1551 | return (void *) dest; | |
1552 | } | |
1553 | ||
1554 | static void *SwigwxMultiChoiceDialogTowxWindow(void *ptr) { | |
1555 | wxMultiChoiceDialog *src; | |
1556 | wxWindow *dest; | |
1557 | src = (wxMultiChoiceDialog *) ptr; | |
1558 | dest = (wxWindow *) src; | |
1559 | return (void *) dest; | |
1560 | } | |
1561 | ||
1562 | static void *SwigwxMultiChoiceDialogTowxEvtHandler(void *ptr) { | |
1563 | wxMultiChoiceDialog *src; | |
1564 | wxEvtHandler *dest; | |
1565 | src = (wxMultiChoiceDialog *) ptr; | |
1566 | dest = (wxEvtHandler *) src; | |
1567 | return (void *) dest; | |
1568 | } | |
1569 | ||
1570 | static void *SwigwxMultiChoiceDialogTowxObject(void *ptr) { | |
1571 | wxMultiChoiceDialog *src; | |
1572 | wxObject *dest; | |
1573 | src = (wxMultiChoiceDialog *) ptr; | |
1574 | dest = (wxObject *) src; | |
1575 | return (void *) dest; | |
1576 | } | |
1577 | ||
1578 | #define new_wxMultiChoiceDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMultiChoiceDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
1579 | static PyObject *_wrap_new_wxMultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1580 | PyObject * _resultobj; | |
1581 | wxMultiChoiceDialog * _result; | |
1582 | wxWindow * _arg0; | |
1583 | wxString * _arg1; | |
1584 | wxString * _arg2; | |
1585 | int _arg3; | |
1586 | wxString * _arg4; | |
1587 | long _arg5 = (long ) (wxCHOICEDLG_STYLE); | |
1588 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
1589 | PyObject * _argo0 = 0; | |
1590 | PyObject * _obj1 = 0; | |
1591 | PyObject * _obj2 = 0; | |
1592 | PyObject * _obj4 = 0; | |
1593 | wxPoint temp; | |
1594 | PyObject * _obj6 = 0; | |
1595 | char *_kwnames[] = { "parent","message","caption","choices","style","pos", NULL }; | |
1596 | char _ptemp[128]; | |
1597 | ||
1598 | self = self; | |
1599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|lO:new_wxMultiChoiceDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj4,&_arg5,&_obj6)) | |
1600 | return NULL; | |
1601 | if (_argo0) { | |
1602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMultiChoiceDialog. Expected _wxWindow_p."); | |
1605 | return NULL; | |
1606 | } | |
1607 | } | |
1608 | { | |
1609 | #if PYTHON_API_VERSION >= 1009 | |
1610 | char* tmpPtr; int tmpSize; | |
1611 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1612 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1613 | return NULL; | |
1614 | } | |
1615 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1616 | return NULL; | |
1617 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1618 | #else | |
1619 | if (!PyString_Check(_obj1)) { | |
1620 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1621 | return NULL; | |
1622 | } | |
1623 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1624 | #endif | |
1625 | } | |
1626 | { | |
1627 | #if PYTHON_API_VERSION >= 1009 | |
1628 | char* tmpPtr; int tmpSize; | |
1629 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1630 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1631 | return NULL; | |
1632 | } | |
1633 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1634 | return NULL; | |
1635 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1636 | #else | |
1637 | if (!PyString_Check(_obj2)) { | |
1638 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1639 | return NULL; | |
1640 | } | |
1641 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
1642 | #endif | |
1643 | } | |
1644 | if (_obj4) | |
1645 | { | |
1646 | _arg4 = wxString_LIST_helper(_obj4); | |
1647 | if (_arg4 == NULL) { | |
1648 | return NULL; | |
1649 | } | |
1650 | } | |
1651 | if (_obj6) | |
1652 | { | |
1653 | _arg6 = &temp; | |
1654 | if (! wxPoint_helper(_obj6, &_arg6)) | |
1655 | return NULL; | |
1656 | } | |
1657 | { | |
1658 | if (_obj4) { | |
1659 | _arg3 = PyList_Size(_obj4); | |
1660 | } | |
1661 | else { | |
1662 | _arg3 = 0; | |
1663 | } | |
1664 | } | |
1665 | { | |
1666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1667 | _result = (wxMultiChoiceDialog *)new_wxMultiChoiceDialog(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,*_arg6); | |
1668 | ||
1669 | wxPyEndAllowThreads(__tstate); | |
1670 | if (PyErr_Occurred()) return NULL; | |
1671 | } if (_result) { | |
1672 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMultiChoiceDialog_p"); | |
1673 | _resultobj = Py_BuildValue("s",_ptemp); | |
1674 | } else { | |
1675 | Py_INCREF(Py_None); | |
1676 | _resultobj = Py_None; | |
1677 | } | |
1678 | { | |
1679 | if (_obj1) | |
1680 | delete _arg1; | |
1681 | } | |
1682 | { | |
1683 | if (_obj2) | |
1684 | delete _arg2; | |
1685 | } | |
1686 | { | |
1687 | delete [] _arg4; | |
1688 | } | |
1689 | return _resultobj; | |
1690 | } | |
1691 | ||
1692 | #define wxMultiChoiceDialog_SetSelections(_swigobj,_swigarg0) (_swigobj->SetSelections(_swigarg0)) | |
1693 | static PyObject *_wrap_wxMultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1694 | PyObject * _resultobj; | |
1695 | wxMultiChoiceDialog * _arg0; | |
1696 | wxArrayInt * _arg1; | |
1697 | PyObject * _argo0 = 0; | |
1698 | PyObject * _obj1 = 0; | |
1699 | char *_kwnames[] = { "self","selections", NULL }; | |
1700 | ||
1701 | self = self; | |
1702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMultiChoiceDialog_SetSelections",_kwnames,&_argo0,&_obj1)) | |
1703 | return NULL; | |
1704 | if (_argo0) { | |
1705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMultiChoiceDialog_p")) { | |
1707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMultiChoiceDialog_SetSelections. Expected _wxMultiChoiceDialog_p."); | |
1708 | return NULL; | |
1709 | } | |
1710 | } | |
1711 | { | |
1712 | if (! PySequence_Check(_obj1)) { | |
1713 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
1714 | return NULL; | |
1715 | } | |
1716 | _arg1 = new wxArrayInt; | |
1717 | int i, len=PySequence_Length(_obj1); | |
1718 | for (i=0; i<len; i++) { | |
1719 | PyObject* item = PySequence_GetItem(_obj1, i); | |
1720 | PyObject* number = PyNumber_Int(item); | |
1721 | _arg1->Add(PyInt_AS_LONG(number)); | |
1722 | Py_DECREF(item); | |
1723 | Py_DECREF(number); | |
1724 | } | |
1725 | } | |
1726 | { | |
1727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1728 | wxMultiChoiceDialog_SetSelections(_arg0,*_arg1); | |
1729 | ||
1730 | wxPyEndAllowThreads(__tstate); | |
1731 | if (PyErr_Occurred()) return NULL; | |
1732 | } Py_INCREF(Py_None); | |
1733 | _resultobj = Py_None; | |
1734 | { | |
1735 | if (_obj1) | |
1736 | delete _arg1; | |
1737 | } | |
1738 | return _resultobj; | |
1739 | } | |
1740 | ||
1741 | static PyObject * wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self) { | |
1742 | return wxArrayInt2PyList_helper(self->GetSelections()); | |
1743 | } | |
1744 | static PyObject *_wrap_wxMultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1745 | PyObject * _resultobj; | |
1746 | PyObject * _result; | |
1747 | wxMultiChoiceDialog * _arg0; | |
1748 | PyObject * _argo0 = 0; | |
1749 | char *_kwnames[] = { "self", NULL }; | |
1750 | ||
1751 | self = self; | |
1752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMultiChoiceDialog_GetSelections",_kwnames,&_argo0)) | |
1753 | return NULL; | |
1754 | if (_argo0) { | |
1755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMultiChoiceDialog_p")) { | |
1757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMultiChoiceDialog_GetSelections. Expected _wxMultiChoiceDialog_p."); | |
1758 | return NULL; | |
1759 | } | |
1760 | } | |
1761 | { | |
1762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1763 | _result = (PyObject *)wxMultiChoiceDialog_GetSelections(_arg0); | |
1764 | ||
1765 | wxPyEndAllowThreads(__tstate); | |
1766 | if (PyErr_Occurred()) return NULL; | |
1767 | }{ | |
1768 | _resultobj = _result; | |
1769 | } | |
1770 | return _resultobj; | |
1771 | } | |
1772 | ||
70551f47 RD |
1773 | static void *SwigwxSingleChoiceDialogTowxDialog(void *ptr) { |
1774 | wxSingleChoiceDialog *src; | |
1775 | wxDialog *dest; | |
1776 | src = (wxSingleChoiceDialog *) ptr; | |
1777 | dest = (wxDialog *) src; | |
1778 | return (void *) dest; | |
1779 | } | |
1780 | ||
32c988a3 | 1781 | static void *SwigwxSingleChoiceDialogTowxTopLevelWindow(void *ptr) { |
70551f47 | 1782 | wxSingleChoiceDialog *src; |
32c988a3 | 1783 | wxTopLevelWindow *dest; |
70551f47 | 1784 | src = (wxSingleChoiceDialog *) ptr; |
32c988a3 | 1785 | dest = (wxTopLevelWindow *) src; |
70551f47 RD |
1786 | return (void *) dest; |
1787 | } | |
1788 | ||
1789 | static void *SwigwxSingleChoiceDialogTowxWindow(void *ptr) { | |
1790 | wxSingleChoiceDialog *src; | |
1791 | wxWindow *dest; | |
1792 | src = (wxSingleChoiceDialog *) ptr; | |
1793 | dest = (wxWindow *) src; | |
1794 | return (void *) dest; | |
1795 | } | |
1796 | ||
1797 | static void *SwigwxSingleChoiceDialogTowxEvtHandler(void *ptr) { | |
1798 | wxSingleChoiceDialog *src; | |
1799 | wxEvtHandler *dest; | |
1800 | src = (wxSingleChoiceDialog *) ptr; | |
1801 | dest = (wxEvtHandler *) src; | |
1802 | return (void *) dest; | |
1803 | } | |
1804 | ||
9df61a29 RD |
1805 | static void *SwigwxSingleChoiceDialogTowxObject(void *ptr) { |
1806 | wxSingleChoiceDialog *src; | |
1807 | wxObject *dest; | |
1808 | src = (wxSingleChoiceDialog *) ptr; | |
1809 | dest = (wxObject *) src; | |
1810 | return (void *) dest; | |
1811 | } | |
1812 | ||
e02c03a4 | 1813 | static wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString *message,wxString *caption,int LCOUNT,wxString *choices,long style,wxPoint *pos) { |
70551f47 | 1814 | return new wxSingleChoiceDialog(parent, *message, *caption, |
e02c03a4 | 1815 | LCOUNT, choices, NULL, style, *pos); |
70551f47 RD |
1816 | } |
1817 | ||
107e4716 | 1818 | static PyObject *_wrap_new_wxSingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1819 | PyObject * _resultobj; |
1820 | wxSingleChoiceDialog * _result; | |
1821 | wxWindow * _arg0; | |
1822 | wxString * _arg1; | |
1823 | wxString * _arg2; | |
1824 | int _arg3; | |
1825 | wxString * _arg4; | |
85247b36 | 1826 | long _arg5 = (long ) (wxCHOICEDLG_STYLE); |
b68dc582 | 1827 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; |
2d091820 | 1828 | PyObject * _argo0 = 0; |
70551f47 RD |
1829 | PyObject * _obj1 = 0; |
1830 | PyObject * _obj2 = 0; | |
1831 | PyObject * _obj4 = 0; | |
37f6a977 RD |
1832 | wxPoint temp; |
1833 | PyObject * _obj6 = 0; | |
e02c03a4 | 1834 | char *_kwnames[] = { "parent","message","caption","choices","style","pos", NULL }; |
70551f47 RD |
1835 | char _ptemp[128]; |
1836 | ||
1837 | self = self; | |
37f6a977 | 1838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|lO:new_wxSingleChoiceDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj4,&_arg5,&_obj6)) |
70551f47 | 1839 | return NULL; |
2d091820 RD |
1840 | if (_argo0) { |
1841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSingleChoiceDialog. Expected _wxWindow_p."); |
1844 | return NULL; | |
1845 | } | |
1846 | } | |
1847 | { | |
2cd2fac8 RD |
1848 | #if PYTHON_API_VERSION >= 1009 |
1849 | char* tmpPtr; int tmpSize; | |
1850 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1851 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1852 | return NULL; |
1853 | } | |
1854 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1855 | return NULL; | |
1856 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1857 | #else | |
70551f47 RD |
1858 | if (!PyString_Check(_obj1)) { |
1859 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1860 | return NULL; | |
1861 | } | |
2cd2fac8 RD |
1862 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1863 | #endif | |
70551f47 RD |
1864 | } |
1865 | { | |
2cd2fac8 RD |
1866 | #if PYTHON_API_VERSION >= 1009 |
1867 | char* tmpPtr; int tmpSize; | |
1868 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1869 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1870 | return NULL; |
1871 | } | |
1872 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1873 | return NULL; | |
1874 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1875 | #else | |
70551f47 RD |
1876 | if (!PyString_Check(_obj2)) { |
1877 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1878 | return NULL; | |
1879 | } | |
2cd2fac8 RD |
1880 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1881 | #endif | |
70551f47 RD |
1882 | } |
1883 | if (_obj4) | |
1884 | { | |
1885 | _arg4 = wxString_LIST_helper(_obj4); | |
1886 | if (_arg4 == NULL) { | |
1887 | return NULL; | |
1888 | } | |
1889 | } | |
37f6a977 RD |
1890 | if (_obj6) |
1891 | { | |
1892 | _arg6 = &temp; | |
1893 | if (! wxPoint_helper(_obj6, &_arg6)) | |
70551f47 | 1894 | return NULL; |
37f6a977 | 1895 | } |
70551f47 | 1896 | { |
ab9bc19b RD |
1897 | if (_obj4) { |
1898 | _arg3 = PyList_Size(_obj4); | |
1899 | } | |
1900 | else { | |
1901 | _arg3 = 0; | |
1902 | } | |
70551f47 | 1903 | } |
ab9bc19b | 1904 | { |
474c48f9 | 1905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1906 | _result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
1907 | ||
474c48f9 | 1908 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1909 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1910 | } if (_result) { |
1911 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleChoiceDialog_p"); | |
1912 | _resultobj = Py_BuildValue("s",_ptemp); | |
1913 | } else { | |
1914 | Py_INCREF(Py_None); | |
1915 | _resultobj = Py_None; | |
1916 | } | |
70551f47 RD |
1917 | { |
1918 | if (_obj1) | |
1919 | delete _arg1; | |
1920 | } | |
1921 | { | |
1922 | if (_obj2) | |
1923 | delete _arg2; | |
1924 | } | |
1925 | { | |
1926 | delete [] _arg4; | |
1927 | } | |
1928 | return _resultobj; | |
1929 | } | |
1930 | ||
1931 | #define wxSingleChoiceDialog_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
107e4716 | 1932 | static PyObject *_wrap_wxSingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1933 | PyObject * _resultobj; |
1934 | int _result; | |
1935 | wxSingleChoiceDialog * _arg0; | |
2d091820 | 1936 | PyObject * _argo0 = 0; |
107e4716 | 1937 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1938 | |
1939 | self = self; | |
107e4716 | 1940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetSelection",_kwnames,&_argo0)) |
70551f47 | 1941 | return NULL; |
2d091820 RD |
1942 | if (_argo0) { |
1943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
70551f47 RD |
1945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetSelection. Expected _wxSingleChoiceDialog_p."); |
1946 | return NULL; | |
1947 | } | |
1948 | } | |
ab9bc19b | 1949 | { |
474c48f9 | 1950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1951 | _result = (int )wxSingleChoiceDialog_GetSelection(_arg0); |
1952 | ||
474c48f9 | 1953 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1954 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1955 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
1956 | return _resultobj; |
1957 | } | |
1958 | ||
1959 | #define wxSingleChoiceDialog_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
107e4716 | 1960 | static PyObject *_wrap_wxSingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1961 | PyObject * _resultobj; |
1962 | wxString * _result; | |
1963 | wxSingleChoiceDialog * _arg0; | |
2d091820 | 1964 | PyObject * _argo0 = 0; |
107e4716 | 1965 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1966 | |
1967 | self = self; | |
107e4716 | 1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetStringSelection",_kwnames,&_argo0)) |
70551f47 | 1969 | return NULL; |
2d091820 RD |
1970 | if (_argo0) { |
1971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
70551f47 RD |
1973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetStringSelection. Expected _wxSingleChoiceDialog_p."); |
1974 | return NULL; | |
1975 | } | |
1976 | } | |
70551f47 | 1977 | { |
474c48f9 | 1978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
1979 | _result = new wxString (wxSingleChoiceDialog_GetStringSelection(_arg0)); |
1980 | ||
474c48f9 | 1981 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1982 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 1983 | }{ |
e02c03a4 | 1984 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
1985 | } |
1986 | { | |
1987 | delete _result; | |
1988 | } | |
1989 | return _resultobj; | |
1990 | } | |
1991 | ||
1992 | #define wxSingleChoiceDialog_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
107e4716 | 1993 | static PyObject *_wrap_wxSingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1994 | PyObject * _resultobj; |
1995 | wxSingleChoiceDialog * _arg0; | |
1996 | int _arg1; | |
2d091820 | 1997 | PyObject * _argo0 = 0; |
107e4716 | 1998 | char *_kwnames[] = { "self","sel", NULL }; |
70551f47 RD |
1999 | |
2000 | self = self; | |
107e4716 | 2001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSingleChoiceDialog_SetSelection",_kwnames,&_argo0,&_arg1)) |
70551f47 | 2002 | return NULL; |
2d091820 RD |
2003 | if (_argo0) { |
2004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
70551f47 RD |
2006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_SetSelection. Expected _wxSingleChoiceDialog_p."); |
2007 | return NULL; | |
2008 | } | |
2009 | } | |
ab9bc19b | 2010 | { |
474c48f9 | 2011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2012 | wxSingleChoiceDialog_SetSelection(_arg0,_arg1); |
2013 | ||
474c48f9 | 2014 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2015 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2016 | } Py_INCREF(Py_None); |
70551f47 RD |
2017 | _resultobj = Py_None; |
2018 | return _resultobj; | |
2019 | } | |
2020 | ||
2021 | #define wxSingleChoiceDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
107e4716 | 2022 | static PyObject *_wrap_wxSingleChoiceDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2023 | PyObject * _resultobj; |
2024 | int _result; | |
2025 | wxSingleChoiceDialog * _arg0; | |
2d091820 | 2026 | PyObject * _argo0 = 0; |
107e4716 | 2027 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2028 | |
2029 | self = self; | |
107e4716 | 2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_ShowModal",_kwnames,&_argo0)) |
70551f47 | 2031 | return NULL; |
2d091820 RD |
2032 | if (_argo0) { |
2033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
70551f47 RD |
2035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_ShowModal. Expected _wxSingleChoiceDialog_p."); |
2036 | return NULL; | |
2037 | } | |
2038 | } | |
ab9bc19b | 2039 | { |
474c48f9 | 2040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2041 | _result = (int )wxSingleChoiceDialog_ShowModal(_arg0); |
2042 | ||
474c48f9 | 2043 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2044 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2045 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2046 | return _resultobj; |
2047 | } | |
2048 | ||
2049 | static void *SwigwxTextEntryDialogTowxDialog(void *ptr) { | |
2050 | wxTextEntryDialog *src; | |
2051 | wxDialog *dest; | |
2052 | src = (wxTextEntryDialog *) ptr; | |
2053 | dest = (wxDialog *) src; | |
2054 | return (void *) dest; | |
2055 | } | |
2056 | ||
32c988a3 | 2057 | static void *SwigwxTextEntryDialogTowxTopLevelWindow(void *ptr) { |
70551f47 | 2058 | wxTextEntryDialog *src; |
32c988a3 | 2059 | wxTopLevelWindow *dest; |
70551f47 | 2060 | src = (wxTextEntryDialog *) ptr; |
32c988a3 | 2061 | dest = (wxTopLevelWindow *) src; |
70551f47 RD |
2062 | return (void *) dest; |
2063 | } | |
2064 | ||
2065 | static void *SwigwxTextEntryDialogTowxWindow(void *ptr) { | |
2066 | wxTextEntryDialog *src; | |
2067 | wxWindow *dest; | |
2068 | src = (wxTextEntryDialog *) ptr; | |
2069 | dest = (wxWindow *) src; | |
2070 | return (void *) dest; | |
2071 | } | |
2072 | ||
2073 | static void *SwigwxTextEntryDialogTowxEvtHandler(void *ptr) { | |
2074 | wxTextEntryDialog *src; | |
2075 | wxEvtHandler *dest; | |
2076 | src = (wxTextEntryDialog *) ptr; | |
2077 | dest = (wxEvtHandler *) src; | |
2078 | return (void *) dest; | |
2079 | } | |
2080 | ||
9df61a29 RD |
2081 | static void *SwigwxTextEntryDialogTowxObject(void *ptr) { |
2082 | wxTextEntryDialog *src; | |
2083 | wxObject *dest; | |
2084 | src = (wxTextEntryDialog *) ptr; | |
2085 | dest = (wxObject *) src; | |
2086 | return (void *) dest; | |
2087 | } | |
2088 | ||
70551f47 | 2089 | #define new_wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 2090 | static PyObject *_wrap_new_wxTextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2091 | PyObject * _resultobj; |
2092 | wxTextEntryDialog * _result; | |
2093 | wxWindow * _arg0; | |
2094 | char * _arg1; | |
2d091820 RD |
2095 | char * _arg2 = (char *) "Input Text"; |
2096 | char * _arg3 = (char *) ""; | |
2097 | long _arg4 = (long ) wxOK|wxCANCEL|wxCENTRE; | |
b68dc582 | 2098 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
2d091820 | 2099 | PyObject * _argo0 = 0; |
37f6a977 RD |
2100 | wxPoint temp; |
2101 | PyObject * _obj5 = 0; | |
107e4716 | 2102 | char *_kwnames[] = { "parent","message","caption","defaultValue","style","pos", NULL }; |
70551f47 RD |
2103 | char _ptemp[128]; |
2104 | ||
2105 | self = self; | |
37f6a977 | 2106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|sslO:new_wxTextEntryDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5)) |
70551f47 | 2107 | return NULL; |
2d091820 RD |
2108 | if (_argo0) { |
2109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextEntryDialog. Expected _wxWindow_p."); |
2112 | return NULL; | |
2113 | } | |
2114 | } | |
37f6a977 RD |
2115 | if (_obj5) |
2116 | { | |
2117 | _arg5 = &temp; | |
2118 | if (! wxPoint_helper(_obj5, &_arg5)) | |
70551f47 | 2119 | return NULL; |
37f6a977 | 2120 | } |
ab9bc19b | 2121 | { |
474c48f9 | 2122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2123 | _result = (wxTextEntryDialog *)new_wxTextEntryDialog(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5); |
2124 | ||
474c48f9 | 2125 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2126 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2127 | } if (_result) { |
2128 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextEntryDialog_p"); | |
2129 | _resultobj = Py_BuildValue("s",_ptemp); | |
2130 | } else { | |
2131 | Py_INCREF(Py_None); | |
2132 | _resultobj = Py_None; | |
2133 | } | |
70551f47 RD |
2134 | return _resultobj; |
2135 | } | |
2136 | ||
2137 | #define wxTextEntryDialog_GetValue(_swigobj) (_swigobj->GetValue()) | |
107e4716 | 2138 | static PyObject *_wrap_wxTextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2139 | PyObject * _resultobj; |
2140 | wxString * _result; | |
2141 | wxTextEntryDialog * _arg0; | |
2d091820 | 2142 | PyObject * _argo0 = 0; |
107e4716 | 2143 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2144 | |
2145 | self = self; | |
107e4716 | 2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_GetValue",_kwnames,&_argo0)) |
70551f47 | 2147 | return NULL; |
2d091820 RD |
2148 | if (_argo0) { |
2149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
70551f47 RD |
2151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_GetValue. Expected _wxTextEntryDialog_p."); |
2152 | return NULL; | |
2153 | } | |
2154 | } | |
70551f47 | 2155 | { |
474c48f9 | 2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2157 | _result = new wxString (wxTextEntryDialog_GetValue(_arg0)); |
2158 | ||
474c48f9 | 2159 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2160 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2161 | }{ |
e02c03a4 | 2162 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
70551f47 RD |
2163 | } |
2164 | { | |
2165 | delete _result; | |
2166 | } | |
2167 | return _resultobj; | |
2168 | } | |
2169 | ||
2170 | #define wxTextEntryDialog_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
107e4716 | 2171 | static PyObject *_wrap_wxTextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2172 | PyObject * _resultobj; |
2173 | wxTextEntryDialog * _arg0; | |
2174 | wxString * _arg1; | |
2d091820 | 2175 | PyObject * _argo0 = 0; |
70551f47 | 2176 | PyObject * _obj1 = 0; |
107e4716 | 2177 | char *_kwnames[] = { "self","value", NULL }; |
70551f47 RD |
2178 | |
2179 | self = self; | |
107e4716 | 2180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextEntryDialog_SetValue",_kwnames,&_argo0,&_obj1)) |
70551f47 | 2181 | return NULL; |
2d091820 RD |
2182 | if (_argo0) { |
2183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
70551f47 RD |
2185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_SetValue. Expected _wxTextEntryDialog_p."); |
2186 | return NULL; | |
2187 | } | |
2188 | } | |
2189 | { | |
2cd2fac8 RD |
2190 | #if PYTHON_API_VERSION >= 1009 |
2191 | char* tmpPtr; int tmpSize; | |
2192 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2193 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2194 | return NULL; |
2195 | } | |
2196 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2197 | return NULL; | |
2198 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2199 | #else | |
70551f47 RD |
2200 | if (!PyString_Check(_obj1)) { |
2201 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2202 | return NULL; | |
2203 | } | |
2cd2fac8 RD |
2204 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2205 | #endif | |
70551f47 | 2206 | } |
ab9bc19b | 2207 | { |
474c48f9 | 2208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2209 | wxTextEntryDialog_SetValue(_arg0,*_arg1); |
2210 | ||
474c48f9 | 2211 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2212 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2213 | } Py_INCREF(Py_None); |
70551f47 RD |
2214 | _resultobj = Py_None; |
2215 | { | |
2216 | if (_obj1) | |
2217 | delete _arg1; | |
2218 | } | |
2219 | return _resultobj; | |
2220 | } | |
2221 | ||
2222 | #define wxTextEntryDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
107e4716 | 2223 | static PyObject *_wrap_wxTextEntryDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2224 | PyObject * _resultobj; |
2225 | int _result; | |
2226 | wxTextEntryDialog * _arg0; | |
2d091820 | 2227 | PyObject * _argo0 = 0; |
107e4716 | 2228 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2229 | |
2230 | self = self; | |
107e4716 | 2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_ShowModal",_kwnames,&_argo0)) |
70551f47 | 2232 | return NULL; |
2d091820 RD |
2233 | if (_argo0) { |
2234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
70551f47 RD |
2236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_ShowModal. Expected _wxTextEntryDialog_p."); |
2237 | return NULL; | |
2238 | } | |
2239 | } | |
ab9bc19b | 2240 | { |
474c48f9 | 2241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2242 | _result = (int )wxTextEntryDialog_ShowModal(_arg0); |
2243 | ||
474c48f9 | 2244 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2245 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2246 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2247 | return _resultobj; |
2248 | } | |
2249 | ||
9df61a29 RD |
2250 | static void *SwigwxFontDataTowxObject(void *ptr) { |
2251 | wxFontData *src; | |
2252 | wxObject *dest; | |
2253 | src = (wxFontData *) ptr; | |
2254 | dest = (wxObject *) src; | |
2255 | return (void *) dest; | |
2256 | } | |
2257 | ||
70551f47 | 2258 | #define new_wxFontData() (new wxFontData()) |
107e4716 | 2259 | static PyObject *_wrap_new_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2260 | PyObject * _resultobj; |
2261 | wxFontData * _result; | |
107e4716 | 2262 | char *_kwnames[] = { NULL }; |
70551f47 RD |
2263 | char _ptemp[128]; |
2264 | ||
2265 | self = self; | |
107e4716 | 2266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontData",_kwnames)) |
70551f47 | 2267 | return NULL; |
ab9bc19b | 2268 | { |
474c48f9 | 2269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2270 | _result = (wxFontData *)new_wxFontData(); |
2271 | ||
474c48f9 | 2272 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2273 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2274 | } if (_result) { |
2275 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontData_p"); | |
2276 | _resultobj = Py_BuildValue("s",_ptemp); | |
2277 | } else { | |
2278 | Py_INCREF(Py_None); | |
2279 | _resultobj = Py_None; | |
2280 | } | |
70551f47 RD |
2281 | return _resultobj; |
2282 | } | |
2283 | ||
2284 | #define delete_wxFontData(_swigobj) (delete _swigobj) | |
107e4716 | 2285 | static PyObject *_wrap_delete_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2286 | PyObject * _resultobj; |
2287 | wxFontData * _arg0; | |
2d091820 | 2288 | PyObject * _argo0 = 0; |
107e4716 | 2289 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2290 | |
2291 | self = self; | |
107e4716 | 2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontData",_kwnames,&_argo0)) |
70551f47 | 2293 | return NULL; |
2d091820 RD |
2294 | if (_argo0) { |
2295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontData. Expected _wxFontData_p."); |
2298 | return NULL; | |
2299 | } | |
2300 | } | |
ab9bc19b | 2301 | { |
474c48f9 | 2302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2303 | delete_wxFontData(_arg0); |
2304 | ||
474c48f9 | 2305 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2306 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2307 | } Py_INCREF(Py_None); |
70551f47 RD |
2308 | _resultobj = Py_None; |
2309 | return _resultobj; | |
2310 | } | |
2311 | ||
2312 | #define wxFontData_EnableEffects(_swigobj,_swigarg0) (_swigobj->EnableEffects(_swigarg0)) | |
107e4716 | 2313 | static PyObject *_wrap_wxFontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2314 | PyObject * _resultobj; |
2315 | wxFontData * _arg0; | |
2316 | bool _arg1; | |
2d091820 | 2317 | PyObject * _argo0 = 0; |
70551f47 | 2318 | int tempbool1; |
107e4716 | 2319 | char *_kwnames[] = { "self","enable", NULL }; |
70551f47 RD |
2320 | |
2321 | self = self; | |
107e4716 | 2322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_EnableEffects",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 2323 | return NULL; |
2d091820 RD |
2324 | if (_argo0) { |
2325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_EnableEffects. Expected _wxFontData_p."); |
2328 | return NULL; | |
2329 | } | |
2330 | } | |
2331 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 2332 | { |
474c48f9 | 2333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2334 | wxFontData_EnableEffects(_arg0,_arg1); |
2335 | ||
474c48f9 | 2336 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2337 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2338 | } Py_INCREF(Py_None); |
70551f47 RD |
2339 | _resultobj = Py_None; |
2340 | return _resultobj; | |
2341 | } | |
2342 | ||
2343 | #define wxFontData_GetAllowSymbols(_swigobj) (_swigobj->GetAllowSymbols()) | |
107e4716 | 2344 | static PyObject *_wrap_wxFontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2345 | PyObject * _resultobj; |
2346 | bool _result; | |
2347 | wxFontData * _arg0; | |
2d091820 | 2348 | PyObject * _argo0 = 0; |
107e4716 | 2349 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2350 | |
2351 | self = self; | |
107e4716 | 2352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetAllowSymbols",_kwnames,&_argo0)) |
70551f47 | 2353 | return NULL; |
2d091820 RD |
2354 | if (_argo0) { |
2355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetAllowSymbols. Expected _wxFontData_p."); |
2358 | return NULL; | |
2359 | } | |
2360 | } | |
ab9bc19b | 2361 | { |
474c48f9 | 2362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2363 | _result = (bool )wxFontData_GetAllowSymbols(_arg0); |
2364 | ||
474c48f9 | 2365 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2366 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2367 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2368 | return _resultobj; |
2369 | } | |
2370 | ||
2371 | #define wxFontData_GetColour(_swigobj) (_swigobj->GetColour()) | |
107e4716 | 2372 | static PyObject *_wrap_wxFontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2373 | PyObject * _resultobj; |
2374 | wxColour * _result; | |
2375 | wxFontData * _arg0; | |
2d091820 | 2376 | PyObject * _argo0 = 0; |
107e4716 | 2377 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2378 | char _ptemp[128]; |
2379 | ||
2380 | self = self; | |
107e4716 | 2381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetColour",_kwnames,&_argo0)) |
70551f47 | 2382 | return NULL; |
2d091820 RD |
2383 | if (_argo0) { |
2384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetColour. Expected _wxFontData_p."); |
2387 | return NULL; | |
2388 | } | |
2389 | } | |
ab9bc19b | 2390 | { |
474c48f9 | 2391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
84a81942 | 2392 | _result = new wxColour (wxFontData_GetColour(_arg0)); |
ab9bc19b | 2393 | |
474c48f9 | 2394 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2395 | if (PyErr_Occurred()) return NULL; |
84a81942 RD |
2396 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
2397 | _resultobj = Py_BuildValue("s",_ptemp); | |
70551f47 RD |
2398 | return _resultobj; |
2399 | } | |
2400 | ||
2401 | #define wxFontData_GetChosenFont(_swigobj) (_swigobj->GetChosenFont()) | |
107e4716 | 2402 | static PyObject *_wrap_wxFontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2403 | PyObject * _resultobj; |
2404 | wxFont * _result; | |
2405 | wxFontData * _arg0; | |
2d091820 | 2406 | PyObject * _argo0 = 0; |
107e4716 | 2407 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2408 | char _ptemp[128]; |
2409 | ||
2410 | self = self; | |
107e4716 | 2411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetChosenFont",_kwnames,&_argo0)) |
70551f47 | 2412 | return NULL; |
2d091820 RD |
2413 | if (_argo0) { |
2414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetChosenFont. Expected _wxFontData_p."); |
2417 | return NULL; | |
2418 | } | |
2419 | } | |
ab9bc19b | 2420 | { |
474c48f9 | 2421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2422 | _result = new wxFont (wxFontData_GetChosenFont(_arg0)); |
2423 | ||
474c48f9 | 2424 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2425 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2426 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
70551f47 RD |
2427 | _resultobj = Py_BuildValue("s",_ptemp); |
2428 | return _resultobj; | |
2429 | } | |
2430 | ||
2431 | #define wxFontData_GetEnableEffects(_swigobj) (_swigobj->GetEnableEffects()) | |
107e4716 | 2432 | static PyObject *_wrap_wxFontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2433 | PyObject * _resultobj; |
2434 | bool _result; | |
2435 | wxFontData * _arg0; | |
2d091820 | 2436 | PyObject * _argo0 = 0; |
107e4716 | 2437 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2438 | |
2439 | self = self; | |
107e4716 | 2440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetEnableEffects",_kwnames,&_argo0)) |
70551f47 | 2441 | return NULL; |
2d091820 RD |
2442 | if (_argo0) { |
2443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetEnableEffects. Expected _wxFontData_p."); |
2446 | return NULL; | |
2447 | } | |
2448 | } | |
ab9bc19b | 2449 | { |
474c48f9 | 2450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2451 | _result = (bool )wxFontData_GetEnableEffects(_arg0); |
2452 | ||
474c48f9 | 2453 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2454 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2455 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2456 | return _resultobj; |
2457 | } | |
2458 | ||
2459 | #define wxFontData_GetInitialFont(_swigobj) (_swigobj->GetInitialFont()) | |
107e4716 | 2460 | static PyObject *_wrap_wxFontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2461 | PyObject * _resultobj; |
2462 | wxFont * _result; | |
2463 | wxFontData * _arg0; | |
2d091820 | 2464 | PyObject * _argo0 = 0; |
107e4716 | 2465 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2466 | char _ptemp[128]; |
2467 | ||
2468 | self = self; | |
107e4716 | 2469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetInitialFont",_kwnames,&_argo0)) |
70551f47 | 2470 | return NULL; |
2d091820 RD |
2471 | if (_argo0) { |
2472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetInitialFont. Expected _wxFontData_p."); |
2475 | return NULL; | |
2476 | } | |
2477 | } | |
ab9bc19b | 2478 | { |
474c48f9 | 2479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2480 | _result = new wxFont (wxFontData_GetInitialFont(_arg0)); |
2481 | ||
474c48f9 | 2482 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2483 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2484 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
70551f47 RD |
2485 | _resultobj = Py_BuildValue("s",_ptemp); |
2486 | return _resultobj; | |
2487 | } | |
2488 | ||
2489 | #define wxFontData_GetShowHelp(_swigobj) (_swigobj->GetShowHelp()) | |
107e4716 | 2490 | static PyObject *_wrap_wxFontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2491 | PyObject * _resultobj; |
2492 | bool _result; | |
2493 | wxFontData * _arg0; | |
2d091820 | 2494 | PyObject * _argo0 = 0; |
107e4716 | 2495 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2496 | |
2497 | self = self; | |
107e4716 | 2498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetShowHelp",_kwnames,&_argo0)) |
70551f47 | 2499 | return NULL; |
2d091820 RD |
2500 | if (_argo0) { |
2501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetShowHelp. Expected _wxFontData_p."); |
2504 | return NULL; | |
2505 | } | |
2506 | } | |
ab9bc19b | 2507 | { |
474c48f9 | 2508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2509 | _result = (bool )wxFontData_GetShowHelp(_arg0); |
2510 | ||
474c48f9 | 2511 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2512 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2513 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2514 | return _resultobj; |
2515 | } | |
2516 | ||
2517 | #define wxFontData_SetAllowSymbols(_swigobj,_swigarg0) (_swigobj->SetAllowSymbols(_swigarg0)) | |
107e4716 | 2518 | static PyObject *_wrap_wxFontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2519 | PyObject * _resultobj; |
2520 | wxFontData * _arg0; | |
2521 | bool _arg1; | |
2d091820 | 2522 | PyObject * _argo0 = 0; |
70551f47 | 2523 | int tempbool1; |
107e4716 | 2524 | char *_kwnames[] = { "self","allowSymbols", NULL }; |
70551f47 RD |
2525 | |
2526 | self = self; | |
107e4716 | 2527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetAllowSymbols",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 2528 | return NULL; |
2d091820 RD |
2529 | if (_argo0) { |
2530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetAllowSymbols. Expected _wxFontData_p."); |
2533 | return NULL; | |
2534 | } | |
2535 | } | |
2536 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 2537 | { |
474c48f9 | 2538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2539 | wxFontData_SetAllowSymbols(_arg0,_arg1); |
2540 | ||
474c48f9 | 2541 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2542 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2543 | } Py_INCREF(Py_None); |
70551f47 RD |
2544 | _resultobj = Py_None; |
2545 | return _resultobj; | |
2546 | } | |
2547 | ||
2548 | #define wxFontData_SetChosenFont(_swigobj,_swigarg0) (_swigobj->SetChosenFont(_swigarg0)) | |
107e4716 | 2549 | static PyObject *_wrap_wxFontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2550 | PyObject * _resultobj; |
2551 | wxFontData * _arg0; | |
2552 | wxFont * _arg1; | |
2d091820 RD |
2553 | PyObject * _argo0 = 0; |
2554 | PyObject * _argo1 = 0; | |
107e4716 | 2555 | char *_kwnames[] = { "self","font", NULL }; |
70551f47 RD |
2556 | |
2557 | self = self; | |
107e4716 | 2558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetChosenFont",_kwnames,&_argo0,&_argo1)) |
70551f47 | 2559 | return NULL; |
2d091820 RD |
2560 | if (_argo0) { |
2561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetChosenFont. Expected _wxFontData_p."); |
2564 | return NULL; | |
2565 | } | |
2566 | } | |
2d091820 RD |
2567 | if (_argo1) { |
2568 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2569 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
70551f47 RD |
2570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetChosenFont. Expected _wxFont_p."); |
2571 | return NULL; | |
2572 | } | |
2573 | } | |
ab9bc19b | 2574 | { |
474c48f9 | 2575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2576 | wxFontData_SetChosenFont(_arg0,*_arg1); |
2577 | ||
474c48f9 | 2578 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2579 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2580 | } Py_INCREF(Py_None); |
70551f47 RD |
2581 | _resultobj = Py_None; |
2582 | return _resultobj; | |
2583 | } | |
2584 | ||
2585 | #define wxFontData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 2586 | static PyObject *_wrap_wxFontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2587 | PyObject * _resultobj; |
2588 | wxFontData * _arg0; | |
2589 | wxColour * _arg1; | |
2d091820 | 2590 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2591 | wxColour temp; |
2592 | PyObject * _obj1 = 0; | |
107e4716 | 2593 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
2594 | |
2595 | self = self; | |
f6bcfd97 | 2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetColour",_kwnames,&_argo0,&_obj1)) |
70551f47 | 2597 | return NULL; |
2d091820 RD |
2598 | if (_argo0) { |
2599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetColour. Expected _wxFontData_p."); |
2602 | return NULL; | |
2603 | } | |
2604 | } | |
f6bcfd97 BP |
2605 | { |
2606 | _arg1 = &temp; | |
2607 | if (! wxColour_helper(_obj1, &_arg1)) | |
70551f47 | 2608 | return NULL; |
f6bcfd97 | 2609 | } |
ab9bc19b | 2610 | { |
474c48f9 | 2611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2612 | wxFontData_SetColour(_arg0,*_arg1); |
2613 | ||
474c48f9 | 2614 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2615 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2616 | } Py_INCREF(Py_None); |
70551f47 RD |
2617 | _resultobj = Py_None; |
2618 | return _resultobj; | |
2619 | } | |
2620 | ||
2621 | #define wxFontData_SetInitialFont(_swigobj,_swigarg0) (_swigobj->SetInitialFont(_swigarg0)) | |
107e4716 | 2622 | static PyObject *_wrap_wxFontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2623 | PyObject * _resultobj; |
2624 | wxFontData * _arg0; | |
2625 | wxFont * _arg1; | |
2d091820 RD |
2626 | PyObject * _argo0 = 0; |
2627 | PyObject * _argo1 = 0; | |
107e4716 | 2628 | char *_kwnames[] = { "self","font", NULL }; |
70551f47 RD |
2629 | |
2630 | self = self; | |
107e4716 | 2631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetInitialFont",_kwnames,&_argo0,&_argo1)) |
70551f47 | 2632 | return NULL; |
2d091820 RD |
2633 | if (_argo0) { |
2634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetInitialFont. Expected _wxFontData_p."); |
2637 | return NULL; | |
2638 | } | |
2639 | } | |
2d091820 RD |
2640 | if (_argo1) { |
2641 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2642 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
70551f47 RD |
2643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetInitialFont. Expected _wxFont_p."); |
2644 | return NULL; | |
2645 | } | |
2646 | } | |
ab9bc19b | 2647 | { |
474c48f9 | 2648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2649 | wxFontData_SetInitialFont(_arg0,*_arg1); |
2650 | ||
474c48f9 | 2651 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2652 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2653 | } Py_INCREF(Py_None); |
70551f47 RD |
2654 | _resultobj = Py_None; |
2655 | return _resultobj; | |
2656 | } | |
2657 | ||
2658 | #define wxFontData_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
107e4716 | 2659 | static PyObject *_wrap_wxFontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2660 | PyObject * _resultobj; |
2661 | wxFontData * _arg0; | |
2662 | int _arg1; | |
2663 | int _arg2; | |
2d091820 | 2664 | PyObject * _argo0 = 0; |
107e4716 | 2665 | char *_kwnames[] = { "self","min","max", NULL }; |
70551f47 RD |
2666 | |
2667 | self = self; | |
107e4716 | 2668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxFontData_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 2669 | return NULL; |
2d091820 RD |
2670 | if (_argo0) { |
2671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetRange. Expected _wxFontData_p."); |
2674 | return NULL; | |
2675 | } | |
2676 | } | |
ab9bc19b | 2677 | { |
474c48f9 | 2678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2679 | wxFontData_SetRange(_arg0,_arg1,_arg2); |
2680 | ||
474c48f9 | 2681 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2682 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2683 | } Py_INCREF(Py_None); |
70551f47 RD |
2684 | _resultobj = Py_None; |
2685 | return _resultobj; | |
2686 | } | |
2687 | ||
2688 | #define wxFontData_SetShowHelp(_swigobj,_swigarg0) (_swigobj->SetShowHelp(_swigarg0)) | |
107e4716 | 2689 | static PyObject *_wrap_wxFontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2690 | PyObject * _resultobj; |
2691 | wxFontData * _arg0; | |
2692 | bool _arg1; | |
2d091820 | 2693 | PyObject * _argo0 = 0; |
70551f47 | 2694 | int tempbool1; |
107e4716 | 2695 | char *_kwnames[] = { "self","showHelp", NULL }; |
70551f47 RD |
2696 | |
2697 | self = self; | |
107e4716 | 2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetShowHelp",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 2699 | return NULL; |
2d091820 RD |
2700 | if (_argo0) { |
2701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
70551f47 RD |
2703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetShowHelp. Expected _wxFontData_p."); |
2704 | return NULL; | |
2705 | } | |
2706 | } | |
2707 | _arg1 = (bool ) tempbool1; | |
ab9bc19b | 2708 | { |
474c48f9 | 2709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2710 | wxFontData_SetShowHelp(_arg0,_arg1); |
2711 | ||
474c48f9 | 2712 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2713 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2714 | } Py_INCREF(Py_None); |
70551f47 RD |
2715 | _resultobj = Py_None; |
2716 | return _resultobj; | |
2717 | } | |
2718 | ||
2719 | static void *SwigwxFontDialogTowxDialog(void *ptr) { | |
2720 | wxFontDialog *src; | |
2721 | wxDialog *dest; | |
2722 | src = (wxFontDialog *) ptr; | |
2723 | dest = (wxDialog *) src; | |
2724 | return (void *) dest; | |
2725 | } | |
2726 | ||
32c988a3 | 2727 | static void *SwigwxFontDialogTowxTopLevelWindow(void *ptr) { |
70551f47 | 2728 | wxFontDialog *src; |
32c988a3 | 2729 | wxTopLevelWindow *dest; |
70551f47 | 2730 | src = (wxFontDialog *) ptr; |
32c988a3 | 2731 | dest = (wxTopLevelWindow *) src; |
70551f47 RD |
2732 | return (void *) dest; |
2733 | } | |
2734 | ||
2735 | static void *SwigwxFontDialogTowxWindow(void *ptr) { | |
2736 | wxFontDialog *src; | |
2737 | wxWindow *dest; | |
2738 | src = (wxFontDialog *) ptr; | |
2739 | dest = (wxWindow *) src; | |
2740 | return (void *) dest; | |
2741 | } | |
2742 | ||
2743 | static void *SwigwxFontDialogTowxEvtHandler(void *ptr) { | |
2744 | wxFontDialog *src; | |
2745 | wxEvtHandler *dest; | |
2746 | src = (wxFontDialog *) ptr; | |
2747 | dest = (wxEvtHandler *) src; | |
2748 | return (void *) dest; | |
2749 | } | |
2750 | ||
9df61a29 RD |
2751 | static void *SwigwxFontDialogTowxObject(void *ptr) { |
2752 | wxFontDialog *src; | |
2753 | wxObject *dest; | |
2754 | src = (wxFontDialog *) ptr; | |
2755 | dest = (wxObject *) src; | |
2756 | return (void *) dest; | |
2757 | } | |
2758 | ||
70551f47 | 2759 | #define new_wxFontDialog(_swigarg0,_swigarg1) (new wxFontDialog(_swigarg0,_swigarg1)) |
107e4716 | 2760 | static PyObject *_wrap_new_wxFontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2761 | PyObject * _resultobj; |
2762 | wxFontDialog * _result; | |
2763 | wxWindow * _arg0; | |
e02c03a4 | 2764 | wxFontData * _arg1; |
2d091820 RD |
2765 | PyObject * _argo0 = 0; |
2766 | PyObject * _argo1 = 0; | |
107e4716 | 2767 | char *_kwnames[] = { "parent","data", NULL }; |
70551f47 RD |
2768 | char _ptemp[128]; |
2769 | ||
2770 | self = self; | |
e02c03a4 | 2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxFontDialog",_kwnames,&_argo0,&_argo1)) |
70551f47 | 2772 | return NULL; |
2d091820 RD |
2773 | if (_argo0) { |
2774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontDialog. Expected _wxWindow_p."); |
2777 | return NULL; | |
2778 | } | |
2779 | } | |
2d091820 RD |
2780 | if (_argo1) { |
2781 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2782 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFontData_p")) { | |
70551f47 RD |
2783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxFontDialog. Expected _wxFontData_p."); |
2784 | return NULL; | |
2785 | } | |
2786 | } | |
ab9bc19b | 2787 | { |
474c48f9 | 2788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2789 | _result = (wxFontDialog *)new_wxFontDialog(_arg0,_arg1); |
2790 | ||
474c48f9 | 2791 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2792 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2793 | } if (_result) { |
2794 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontDialog_p"); | |
2795 | _resultobj = Py_BuildValue("s",_ptemp); | |
2796 | } else { | |
2797 | Py_INCREF(Py_None); | |
2798 | _resultobj = Py_None; | |
2799 | } | |
70551f47 RD |
2800 | return _resultobj; |
2801 | } | |
2802 | ||
2803 | #define wxFontDialog_GetFontData(_swigobj) (_swigobj->GetFontData()) | |
107e4716 | 2804 | static PyObject *_wrap_wxFontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2805 | PyObject * _resultobj; |
2806 | wxFontData * _result; | |
2807 | wxFontDialog * _arg0; | |
2d091820 | 2808 | PyObject * _argo0 = 0; |
107e4716 | 2809 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2810 | char _ptemp[128]; |
2811 | ||
2812 | self = self; | |
107e4716 | 2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_GetFontData",_kwnames,&_argo0)) |
70551f47 | 2814 | return NULL; |
2d091820 RD |
2815 | if (_argo0) { |
2816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) { | |
70551f47 RD |
2818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_GetFontData. Expected _wxFontDialog_p."); |
2819 | return NULL; | |
2820 | } | |
2821 | } | |
ab9bc19b | 2822 | { |
474c48f9 | 2823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b | 2824 | wxFontData & _result_ref = wxFontDialog_GetFontData(_arg0); |
70551f47 | 2825 | _result = (wxFontData *) &_result_ref; |
ab9bc19b | 2826 | |
474c48f9 | 2827 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2828 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2829 | } if (_result) { |
2830 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontData_p"); | |
2831 | _resultobj = Py_BuildValue("s",_ptemp); | |
2832 | } else { | |
2833 | Py_INCREF(Py_None); | |
2834 | _resultobj = Py_None; | |
2835 | } | |
70551f47 RD |
2836 | return _resultobj; |
2837 | } | |
2838 | ||
2839 | #define wxFontDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
107e4716 | 2840 | static PyObject *_wrap_wxFontDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2841 | PyObject * _resultobj; |
2842 | int _result; | |
2843 | wxFontDialog * _arg0; | |
2d091820 | 2844 | PyObject * _argo0 = 0; |
107e4716 | 2845 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2846 | |
2847 | self = self; | |
107e4716 | 2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_ShowModal",_kwnames,&_argo0)) |
70551f47 | 2849 | return NULL; |
2d091820 RD |
2850 | if (_argo0) { |
2851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) { | |
70551f47 RD |
2853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_ShowModal. Expected _wxFontDialog_p."); |
2854 | return NULL; | |
2855 | } | |
2856 | } | |
ab9bc19b | 2857 | { |
474c48f9 | 2858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ab9bc19b RD |
2859 | _result = (int )wxFontDialog_ShowModal(_arg0); |
2860 | ||
474c48f9 | 2861 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2862 | if (PyErr_Occurred()) return NULL; |
ab9bc19b | 2863 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
2864 | return _resultobj; |
2865 | } | |
2866 | ||
d24a34bb RD |
2867 | static void *SwigwxMessageDialogTowxDialog(void *ptr) { |
2868 | wxMessageDialog *src; | |
faf3cb35 | 2869 | wxDialog *dest; |
d24a34bb | 2870 | src = (wxMessageDialog *) ptr; |
faf3cb35 RD |
2871 | dest = (wxDialog *) src; |
2872 | return (void *) dest; | |
2873 | } | |
2874 | ||
32c988a3 | 2875 | static void *SwigwxMessageDialogTowxTopLevelWindow(void *ptr) { |
d24a34bb | 2876 | wxMessageDialog *src; |
32c988a3 | 2877 | wxTopLevelWindow *dest; |
d24a34bb | 2878 | src = (wxMessageDialog *) ptr; |
32c988a3 | 2879 | dest = (wxTopLevelWindow *) src; |
faf3cb35 RD |
2880 | return (void *) dest; |
2881 | } | |
2882 | ||
d24a34bb RD |
2883 | static void *SwigwxMessageDialogTowxWindow(void *ptr) { |
2884 | wxMessageDialog *src; | |
faf3cb35 | 2885 | wxWindow *dest; |
d24a34bb | 2886 | src = (wxMessageDialog *) ptr; |
faf3cb35 RD |
2887 | dest = (wxWindow *) src; |
2888 | return (void *) dest; | |
2889 | } | |
2890 | ||
d24a34bb RD |
2891 | static void *SwigwxMessageDialogTowxEvtHandler(void *ptr) { |
2892 | wxMessageDialog *src; | |
faf3cb35 | 2893 | wxEvtHandler *dest; |
d24a34bb | 2894 | src = (wxMessageDialog *) ptr; |
faf3cb35 RD |
2895 | dest = (wxEvtHandler *) src; |
2896 | return (void *) dest; | |
2897 | } | |
2898 | ||
9df61a29 RD |
2899 | static void *SwigwxMessageDialogTowxObject(void *ptr) { |
2900 | wxMessageDialog *src; | |
2901 | wxObject *dest; | |
2902 | src = (wxMessageDialog *) ptr; | |
2903 | dest = (wxObject *) src; | |
2904 | return (void *) dest; | |
2905 | } | |
2906 | ||
d24a34bb | 2907 | #define new_wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 2908 | static PyObject *_wrap_new_wxMessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 | 2909 | PyObject * _resultobj; |
d24a34bb | 2910 | wxMessageDialog * _result; |
faf3cb35 | 2911 | wxWindow * _arg0; |
d24a34bb | 2912 | char * _arg1; |
2d091820 RD |
2913 | char * _arg2 = (char *) "Message box"; |
2914 | long _arg3 = (long ) wxOK|wxCANCEL|wxCENTRE; | |
b68dc582 | 2915 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
2d091820 | 2916 | PyObject * _argo0 = 0; |
37f6a977 RD |
2917 | wxPoint temp; |
2918 | PyObject * _obj4 = 0; | |
107e4716 | 2919 | char *_kwnames[] = { "parent","message","caption","style","pos", NULL }; |
faf3cb35 RD |
2920 | char _ptemp[128]; |
2921 | ||
2922 | self = self; | |
37f6a977 | 2923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|slO:new_wxMessageDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) |
faf3cb35 | 2924 | return NULL; |
2d091820 RD |
2925 | if (_argo0) { |
2926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb | 2928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMessageDialog. Expected _wxWindow_p."); |
faf3cb35 RD |
2929 | return NULL; |
2930 | } | |
2931 | } | |
37f6a977 RD |
2932 | if (_obj4) |
2933 | { | |
2934 | _arg4 = &temp; | |
2935 | if (! wxPoint_helper(_obj4, &_arg4)) | |
faf3cb35 | 2936 | return NULL; |
37f6a977 | 2937 | } |
ab9bc19b | 2938 | { |
474c48f9 | 2939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d24a34bb | 2940 | _result = (wxMessageDialog *)new_wxMessageDialog(_arg0,_arg1,_arg2,_arg3,*_arg4); |
ab9bc19b | 2941 | |
474c48f9 | 2942 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2943 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2944 | } if (_result) { |
2945 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMessageDialog_p"); | |
2946 | _resultobj = Py_BuildValue("s",_ptemp); | |
2947 | } else { | |
2948 | Py_INCREF(Py_None); | |
2949 | _resultobj = Py_None; | |
2950 | } | |
faf3cb35 RD |
2951 | return _resultobj; |
2952 | } | |
2953 | ||
d24a34bb | 2954 | #define wxMessageDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) |
107e4716 | 2955 | static PyObject *_wrap_wxMessageDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 | 2956 | PyObject * _resultobj; |
d24a34bb RD |
2957 | int _result; |
2958 | wxMessageDialog * _arg0; | |
2d091820 | 2959 | PyObject * _argo0 = 0; |
107e4716 | 2960 | char *_kwnames[] = { "self", NULL }; |
faf3cb35 RD |
2961 | |
2962 | self = self; | |
107e4716 | 2963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMessageDialog_ShowModal",_kwnames,&_argo0)) |
faf3cb35 | 2964 | return NULL; |
2d091820 RD |
2965 | if (_argo0) { |
2966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMessageDialog_p")) { | |
d24a34bb | 2968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMessageDialog_ShowModal. Expected _wxMessageDialog_p."); |
faf3cb35 RD |
2969 | return NULL; |
2970 | } | |
2971 | } | |
ab9bc19b | 2972 | { |
474c48f9 | 2973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d24a34bb | 2974 | _result = (int )wxMessageDialog_ShowModal(_arg0); |
ab9bc19b | 2975 | |
474c48f9 | 2976 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2977 | if (PyErr_Occurred()) return NULL; |
d24a34bb | 2978 | } _resultobj = Py_BuildValue("i",_result); |
faf3cb35 RD |
2979 | return _resultobj; |
2980 | } | |
2981 | ||
d24a34bb RD |
2982 | static void *SwigwxProgressDialogTowxFrame(void *ptr) { |
2983 | wxProgressDialog *src; | |
2984 | wxFrame *dest; | |
2985 | src = (wxProgressDialog *) ptr; | |
2986 | dest = (wxFrame *) src; | |
2987 | return (void *) dest; | |
2988 | } | |
2989 | ||
32c988a3 RD |
2990 | static void *SwigwxProgressDialogTowxTopLevelWindow(void *ptr) { |
2991 | wxProgressDialog *src; | |
2992 | wxTopLevelWindow *dest; | |
2993 | src = (wxProgressDialog *) ptr; | |
2994 | dest = (wxTopLevelWindow *) src; | |
2995 | return (void *) dest; | |
2996 | } | |
2997 | ||
d24a34bb RD |
2998 | static void *SwigwxProgressDialogTowxWindow(void *ptr) { |
2999 | wxProgressDialog *src; | |
3000 | wxWindow *dest; | |
3001 | src = (wxProgressDialog *) ptr; | |
3002 | dest = (wxWindow *) src; | |
3003 | return (void *) dest; | |
3004 | } | |
3005 | ||
3006 | static void *SwigwxProgressDialogTowxEvtHandler(void *ptr) { | |
3007 | wxProgressDialog *src; | |
3008 | wxEvtHandler *dest; | |
3009 | src = (wxProgressDialog *) ptr; | |
3010 | dest = (wxEvtHandler *) src; | |
3011 | return (void *) dest; | |
3012 | } | |
3013 | ||
9df61a29 RD |
3014 | static void *SwigwxProgressDialogTowxObject(void *ptr) { |
3015 | wxProgressDialog *src; | |
3016 | wxObject *dest; | |
3017 | src = (wxProgressDialog *) ptr; | |
3018 | dest = (wxObject *) src; | |
3019 | return (void *) dest; | |
3020 | } | |
3021 | ||
d24a34bb | 3022 | #define new_wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 3023 | static PyObject *_wrap_new_wxProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
faf3cb35 | 3024 | PyObject * _resultobj; |
d24a34bb RD |
3025 | wxProgressDialog * _result; |
3026 | wxString * _arg0; | |
3027 | wxString * _arg1; | |
2d091820 RD |
3028 | int _arg2 = (int ) 100; |
3029 | wxWindow * _arg3 = (wxWindow *) NULL; | |
3030 | int _arg4 = (int ) wxPD_AUTO_HIDE|wxPD_APP_MODAL; | |
d24a34bb RD |
3031 | PyObject * _obj0 = 0; |
3032 | PyObject * _obj1 = 0; | |
2d091820 | 3033 | PyObject * _argo3 = 0; |
107e4716 | 3034 | char *_kwnames[] = { "title","message","maximum","parent","style", NULL }; |
faf3cb35 RD |
3035 | char _ptemp[128]; |
3036 | ||
3037 | self = self; | |
107e4716 | 3038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOi:new_wxProgressDialog",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4)) |
faf3cb35 | 3039 | return NULL; |
d24a34bb | 3040 | { |
2cd2fac8 RD |
3041 | #if PYTHON_API_VERSION >= 1009 |
3042 | char* tmpPtr; int tmpSize; | |
3043 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 3044 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3045 | return NULL; |
3046 | } | |
3047 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
3048 | return NULL; | |
3049 | _arg0 = new wxString(tmpPtr, tmpSize); | |
3050 | #else | |
d24a34bb RD |
3051 | if (!PyString_Check(_obj0)) { |
3052 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
faf3cb35 | 3053 | return NULL; |
faf3cb35 | 3054 | } |
2cd2fac8 RD |
3055 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
3056 | #endif | |
faf3cb35 | 3057 | } |
d24a34bb | 3058 | { |
2cd2fac8 RD |
3059 | #if PYTHON_API_VERSION >= 1009 |
3060 | char* tmpPtr; int tmpSize; | |
3061 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 3062 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3063 | return NULL; |
3064 | } | |
3065 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3066 | return NULL; | |
3067 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3068 | #else | |
d24a34bb RD |
3069 | if (!PyString_Check(_obj1)) { |
3070 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
faf3cb35 | 3071 | return NULL; |
d24a34bb | 3072 | } |
2cd2fac8 RD |
3073 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
3074 | #endif | |
d24a34bb | 3075 | } |
2d091820 RD |
3076 | if (_argo3) { |
3077 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3078 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
d24a34bb | 3079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxProgressDialog. Expected _wxWindow_p."); |
faf3cb35 RD |
3080 | return NULL; |
3081 | } | |
3082 | } | |
ab9bc19b | 3083 | { |
474c48f9 | 3084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d24a34bb | 3085 | _result = (wxProgressDialog *)new_wxProgressDialog(*_arg0,*_arg1,_arg2,_arg3,_arg4); |
ab9bc19b | 3086 | |
474c48f9 | 3087 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3088 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
3089 | } if (_result) { |
3090 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProgressDialog_p"); | |
3091 | _resultobj = Py_BuildValue("s",_ptemp); | |
3092 | } else { | |
3093 | Py_INCREF(Py_None); | |
3094 | _resultobj = Py_None; | |
3095 | } | |
d24a34bb RD |
3096 | { |
3097 | if (_obj0) | |
3098 | delete _arg0; | |
70551f47 | 3099 | } |
d24a34bb RD |
3100 | { |
3101 | if (_obj1) | |
3102 | delete _arg1; | |
70551f47 | 3103 | } |
d24a34bb | 3104 | return _resultobj; |
70551f47 RD |
3105 | } |
3106 | ||
d24a34bb | 3107 | #define wxProgressDialog_Update(_swigobj,_swigarg0,_swigarg1) (_swigobj->Update(_swigarg0,_swigarg1)) |
107e4716 | 3108 | static PyObject *_wrap_wxProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 | 3109 | PyObject * _resultobj; |
d24a34bb RD |
3110 | bool _result; |
3111 | wxProgressDialog * _arg0; | |
2d091820 RD |
3112 | int _arg1 = (int ) -1; |
3113 | char * _arg2 = (char *) NULL; | |
3114 | PyObject * _argo0 = 0; | |
107e4716 | 3115 | char *_kwnames[] = { "self","value","newmsg", NULL }; |
70551f47 RD |
3116 | |
3117 | self = self; | |
107e4716 | 3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|is:wxProgressDialog_Update",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3119 | return NULL; |
2d091820 RD |
3120 | if (_argo0) { |
3121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) { | |
d24a34bb | 3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Update. Expected _wxProgressDialog_p."); |
70551f47 RD |
3124 | return NULL; |
3125 | } | |
3126 | } | |
ab9bc19b | 3127 | { |
474c48f9 | 3128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d24a34bb | 3129 | _result = (bool )wxProgressDialog_Update(_arg0,_arg1,_arg2); |
ab9bc19b | 3130 | |
474c48f9 | 3131 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3132 | if (PyErr_Occurred()) return NULL; |
d24a34bb | 3133 | } _resultobj = Py_BuildValue("i",_result); |
70551f47 RD |
3134 | return _resultobj; |
3135 | } | |
3136 | ||
d24a34bb | 3137 | #define wxProgressDialog_Resume(_swigobj) (_swigobj->Resume()) |
107e4716 | 3138 | static PyObject *_wrap_wxProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 | 3139 | PyObject * _resultobj; |
d24a34bb | 3140 | wxProgressDialog * _arg0; |
2d091820 | 3141 | PyObject * _argo0 = 0; |
107e4716 | 3142 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3143 | |
3144 | self = self; | |
107e4716 | 3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProgressDialog_Resume",_kwnames,&_argo0)) |
70551f47 | 3146 | return NULL; |
2d091820 RD |
3147 | if (_argo0) { |
3148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) { | |
d24a34bb | 3150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Resume. Expected _wxProgressDialog_p."); |
70551f47 RD |
3151 | return NULL; |
3152 | } | |
3153 | } | |
ab9bc19b | 3154 | { |
474c48f9 | 3155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d24a34bb | 3156 | wxProgressDialog_Resume(_arg0); |
ab9bc19b | 3157 | |
474c48f9 | 3158 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3159 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3160 | } Py_INCREF(Py_None); |
3161 | _resultobj = Py_None; | |
70551f47 RD |
3162 | return _resultobj; |
3163 | } | |
3164 | ||
0220cbc1 RD |
3165 | static void *SwigwxFindDialogEventTowxCommandEvent(void *ptr) { |
3166 | wxFindDialogEvent *src; | |
3167 | wxCommandEvent *dest; | |
3168 | src = (wxFindDialogEvent *) ptr; | |
3169 | dest = (wxCommandEvent *) src; | |
3170 | return (void *) dest; | |
3171 | } | |
3172 | ||
3173 | static void *SwigwxFindDialogEventTowxEvent(void *ptr) { | |
3174 | wxFindDialogEvent *src; | |
3175 | wxEvent *dest; | |
3176 | src = (wxFindDialogEvent *) ptr; | |
3177 | dest = (wxEvent *) src; | |
3178 | return (void *) dest; | |
3179 | } | |
3180 | ||
3181 | static void *SwigwxFindDialogEventTowxObject(void *ptr) { | |
3182 | wxFindDialogEvent *src; | |
3183 | wxObject *dest; | |
3184 | src = (wxFindDialogEvent *) ptr; | |
3185 | dest = (wxObject *) src; | |
3186 | return (void *) dest; | |
3187 | } | |
3188 | ||
3189 | #define new_wxFindDialogEvent(_swigarg0,_swigarg1) (new wxFindDialogEvent(_swigarg0,_swigarg1)) | |
3190 | static PyObject *_wrap_new_wxFindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3191 | PyObject * _resultobj; | |
3192 | wxFindDialogEvent * _result; | |
3193 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
3194 | int _arg1 = (int ) 0; | |
3195 | char *_kwnames[] = { "commandType","id", NULL }; | |
3196 | char _ptemp[128]; | |
3197 | ||
3198 | self = self; | |
3199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxFindDialogEvent",_kwnames,&_arg0,&_arg1)) | |
3200 | return NULL; | |
3201 | { | |
474c48f9 | 3202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3203 | _result = (wxFindDialogEvent *)new_wxFindDialogEvent(_arg0,_arg1); |
3204 | ||
474c48f9 | 3205 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3206 | if (PyErr_Occurred()) return NULL; |
3207 | } if (_result) { | |
3208 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindDialogEvent_p"); | |
3209 | _resultobj = Py_BuildValue("s",_ptemp); | |
3210 | } else { | |
3211 | Py_INCREF(Py_None); | |
3212 | _resultobj = Py_None; | |
3213 | } | |
3214 | return _resultobj; | |
3215 | } | |
3216 | ||
3217 | #define wxFindDialogEvent_GetFlags(_swigobj) (_swigobj->GetFlags()) | |
3218 | static PyObject *_wrap_wxFindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3219 | PyObject * _resultobj; | |
3220 | int _result; | |
3221 | wxFindDialogEvent * _arg0; | |
3222 | PyObject * _argo0 = 0; | |
3223 | char *_kwnames[] = { "self", NULL }; | |
3224 | ||
3225 | self = self; | |
3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindDialogEvent_GetFlags",_kwnames,&_argo0)) | |
3227 | return NULL; | |
3228 | if (_argo0) { | |
3229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) { | |
3231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_GetFlags. Expected _wxFindDialogEvent_p."); | |
3232 | return NULL; | |
3233 | } | |
3234 | } | |
3235 | { | |
474c48f9 | 3236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3237 | _result = (int )wxFindDialogEvent_GetFlags(_arg0); |
3238 | ||
474c48f9 | 3239 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3240 | if (PyErr_Occurred()) return NULL; |
3241 | } _resultobj = Py_BuildValue("i",_result); | |
3242 | return _resultobj; | |
3243 | } | |
3244 | ||
3245 | #define wxFindDialogEvent_GetFindString(_swigobj) (_swigobj->GetFindString()) | |
3246 | static PyObject *_wrap_wxFindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject * _resultobj; | |
3248 | wxString * _result; | |
3249 | wxFindDialogEvent * _arg0; | |
3250 | PyObject * _argo0 = 0; | |
3251 | char *_kwnames[] = { "self", NULL }; | |
3252 | ||
3253 | self = self; | |
3254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindDialogEvent_GetFindString",_kwnames,&_argo0)) | |
3255 | return NULL; | |
3256 | if (_argo0) { | |
3257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) { | |
3259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_GetFindString. Expected _wxFindDialogEvent_p."); | |
3260 | return NULL; | |
3261 | } | |
3262 | } | |
3263 | { | |
474c48f9 | 3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3265 | _result = new wxString (wxFindDialogEvent_GetFindString(_arg0)); |
3266 | ||
474c48f9 | 3267 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3268 | if (PyErr_Occurred()) return NULL; |
3269 | }{ | |
3270 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3271 | } | |
3272 | { | |
3273 | delete _result; | |
3274 | } | |
3275 | return _resultobj; | |
3276 | } | |
3277 | ||
3278 | #define wxFindDialogEvent_GetReplaceString(_swigobj) (_swigobj->GetReplaceString()) | |
3279 | static PyObject *_wrap_wxFindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3280 | PyObject * _resultobj; | |
3281 | wxString * _result; | |
3282 | wxFindDialogEvent * _arg0; | |
3283 | PyObject * _argo0 = 0; | |
3284 | char *_kwnames[] = { "self", NULL }; | |
3285 | ||
3286 | self = self; | |
3287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindDialogEvent_GetReplaceString",_kwnames,&_argo0)) | |
3288 | return NULL; | |
3289 | if (_argo0) { | |
3290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) { | |
3292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_GetReplaceString. Expected _wxFindDialogEvent_p."); | |
3293 | return NULL; | |
3294 | } | |
3295 | } | |
3296 | { | |
474c48f9 | 3297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3298 | const wxString & _result_ref = wxFindDialogEvent_GetReplaceString(_arg0); |
3299 | _result = (wxString *) &_result_ref; | |
3300 | ||
474c48f9 | 3301 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3302 | if (PyErr_Occurred()) return NULL; |
3303 | }{ | |
3304 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3305 | } | |
3306 | return _resultobj; | |
3307 | } | |
3308 | ||
3309 | #define wxFindDialogEvent_GetDialog(_swigobj) (_swigobj->GetDialog()) | |
3310 | static PyObject *_wrap_wxFindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3311 | PyObject * _resultobj; | |
3312 | wxFindReplaceDialog * _result; | |
3313 | wxFindDialogEvent * _arg0; | |
3314 | PyObject * _argo0 = 0; | |
3315 | char *_kwnames[] = { "self", NULL }; | |
3316 | char _ptemp[128]; | |
3317 | ||
3318 | self = self; | |
3319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindDialogEvent_GetDialog",_kwnames,&_argo0)) | |
3320 | return NULL; | |
3321 | if (_argo0) { | |
3322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) { | |
3324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_GetDialog. Expected _wxFindDialogEvent_p."); | |
3325 | return NULL; | |
3326 | } | |
3327 | } | |
3328 | { | |
474c48f9 | 3329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3330 | _result = (wxFindReplaceDialog *)wxFindDialogEvent_GetDialog(_arg0); |
3331 | ||
474c48f9 | 3332 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3333 | if (PyErr_Occurred()) return NULL; |
3334 | } if (_result) { | |
3335 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindReplaceDialog_p"); | |
3336 | _resultobj = Py_BuildValue("s",_ptemp); | |
3337 | } else { | |
3338 | Py_INCREF(Py_None); | |
3339 | _resultobj = Py_None; | |
3340 | } | |
3341 | return _resultobj; | |
3342 | } | |
3343 | ||
3344 | #define wxFindDialogEvent_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0)) | |
3345 | static PyObject *_wrap_wxFindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3346 | PyObject * _resultobj; | |
3347 | wxFindDialogEvent * _arg0; | |
3348 | int _arg1; | |
3349 | PyObject * _argo0 = 0; | |
3350 | char *_kwnames[] = { "self","flags", NULL }; | |
3351 | ||
3352 | self = self; | |
3353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFindDialogEvent_SetFlags",_kwnames,&_argo0,&_arg1)) | |
3354 | return NULL; | |
3355 | if (_argo0) { | |
3356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) { | |
3358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_SetFlags. Expected _wxFindDialogEvent_p."); | |
3359 | return NULL; | |
3360 | } | |
3361 | } | |
3362 | { | |
474c48f9 | 3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3364 | wxFindDialogEvent_SetFlags(_arg0,_arg1); |
3365 | ||
474c48f9 | 3366 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3367 | if (PyErr_Occurred()) return NULL; |
3368 | } Py_INCREF(Py_None); | |
3369 | _resultobj = Py_None; | |
3370 | return _resultobj; | |
3371 | } | |
3372 | ||
3373 | #define wxFindDialogEvent_SetFindString(_swigobj,_swigarg0) (_swigobj->SetFindString(_swigarg0)) | |
3374 | static PyObject *_wrap_wxFindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3375 | PyObject * _resultobj; | |
3376 | wxFindDialogEvent * _arg0; | |
3377 | wxString * _arg1; | |
3378 | PyObject * _argo0 = 0; | |
3379 | PyObject * _obj1 = 0; | |
3380 | char *_kwnames[] = { "self","str", NULL }; | |
3381 | ||
3382 | self = self; | |
3383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFindDialogEvent_SetFindString",_kwnames,&_argo0,&_obj1)) | |
3384 | return NULL; | |
3385 | if (_argo0) { | |
3386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) { | |
3388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_SetFindString. Expected _wxFindDialogEvent_p."); | |
3389 | return NULL; | |
3390 | } | |
3391 | } | |
3392 | { | |
3393 | #if PYTHON_API_VERSION >= 1009 | |
3394 | char* tmpPtr; int tmpSize; | |
3395 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3396 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3397 | return NULL; | |
3398 | } | |
3399 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3400 | return NULL; | |
3401 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3402 | #else | |
3403 | if (!PyString_Check(_obj1)) { | |
3404 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3405 | return NULL; | |
3406 | } | |
3407 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3408 | #endif | |
3409 | } | |
3410 | { | |
474c48f9 | 3411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3412 | wxFindDialogEvent_SetFindString(_arg0,*_arg1); |
3413 | ||
474c48f9 | 3414 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3415 | if (PyErr_Occurred()) return NULL; |
3416 | } Py_INCREF(Py_None); | |
3417 | _resultobj = Py_None; | |
3418 | { | |
3419 | if (_obj1) | |
3420 | delete _arg1; | |
3421 | } | |
3422 | return _resultobj; | |
3423 | } | |
3424 | ||
3425 | #define wxFindDialogEvent_SetReplaceString(_swigobj,_swigarg0) (_swigobj->SetReplaceString(_swigarg0)) | |
3426 | static PyObject *_wrap_wxFindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3427 | PyObject * _resultobj; | |
3428 | wxFindDialogEvent * _arg0; | |
3429 | wxString * _arg1; | |
3430 | PyObject * _argo0 = 0; | |
3431 | PyObject * _obj1 = 0; | |
3432 | char *_kwnames[] = { "self","str", NULL }; | |
3433 | ||
3434 | self = self; | |
3435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFindDialogEvent_SetReplaceString",_kwnames,&_argo0,&_obj1)) | |
3436 | return NULL; | |
3437 | if (_argo0) { | |
3438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) { | |
3440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_SetReplaceString. Expected _wxFindDialogEvent_p."); | |
3441 | return NULL; | |
3442 | } | |
3443 | } | |
3444 | { | |
3445 | #if PYTHON_API_VERSION >= 1009 | |
3446 | char* tmpPtr; int tmpSize; | |
3447 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3448 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3449 | return NULL; | |
3450 | } | |
3451 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3452 | return NULL; | |
3453 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3454 | #else | |
3455 | if (!PyString_Check(_obj1)) { | |
3456 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3457 | return NULL; | |
3458 | } | |
3459 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3460 | #endif | |
3461 | } | |
3462 | { | |
474c48f9 | 3463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3464 | wxFindDialogEvent_SetReplaceString(_arg0,*_arg1); |
3465 | ||
474c48f9 | 3466 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3467 | if (PyErr_Occurred()) return NULL; |
3468 | } Py_INCREF(Py_None); | |
3469 | _resultobj = Py_None; | |
3470 | { | |
3471 | if (_obj1) | |
3472 | delete _arg1; | |
3473 | } | |
3474 | return _resultobj; | |
3475 | } | |
3476 | ||
3477 | static void *SwigwxFindReplaceDataTowxObject(void *ptr) { | |
3478 | wxFindReplaceData *src; | |
3479 | wxObject *dest; | |
3480 | src = (wxFindReplaceData *) ptr; | |
3481 | dest = (wxObject *) src; | |
3482 | return (void *) dest; | |
3483 | } | |
3484 | ||
3485 | #define new_wxFindReplaceData(_swigarg0) (new wxFindReplaceData(_swigarg0)) | |
3486 | static PyObject *_wrap_new_wxFindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3487 | PyObject * _resultobj; | |
3488 | wxFindReplaceData * _result; | |
3489 | int _arg0 = (int ) 0; | |
3490 | char *_kwnames[] = { "flags", NULL }; | |
3491 | char _ptemp[128]; | |
3492 | ||
3493 | self = self; | |
3494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFindReplaceData",_kwnames,&_arg0)) | |
3495 | return NULL; | |
3496 | { | |
474c48f9 | 3497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3498 | _result = (wxFindReplaceData *)new_wxFindReplaceData(_arg0); |
3499 | ||
474c48f9 | 3500 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3501 | if (PyErr_Occurred()) return NULL; |
3502 | } if (_result) { | |
3503 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindReplaceData_p"); | |
3504 | _resultobj = Py_BuildValue("s",_ptemp); | |
3505 | } else { | |
3506 | Py_INCREF(Py_None); | |
3507 | _resultobj = Py_None; | |
3508 | } | |
3509 | return _resultobj; | |
3510 | } | |
3511 | ||
3512 | #define delete_wxFindReplaceData(_swigobj) (delete _swigobj) | |
3513 | static PyObject *_wrap_delete_wxFindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3514 | PyObject * _resultobj; | |
3515 | wxFindReplaceData * _arg0; | |
3516 | PyObject * _argo0 = 0; | |
3517 | char *_kwnames[] = { "self", NULL }; | |
3518 | ||
3519 | self = self; | |
3520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFindReplaceData",_kwnames,&_argo0)) | |
3521 | return NULL; | |
3522 | if (_argo0) { | |
3523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) { | |
3525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFindReplaceData. Expected _wxFindReplaceData_p."); | |
3526 | return NULL; | |
3527 | } | |
3528 | } | |
3529 | { | |
474c48f9 | 3530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3531 | delete_wxFindReplaceData(_arg0); |
3532 | ||
474c48f9 | 3533 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3534 | if (PyErr_Occurred()) return NULL; |
3535 | } Py_INCREF(Py_None); | |
3536 | _resultobj = Py_None; | |
3537 | return _resultobj; | |
3538 | } | |
3539 | ||
3540 | #define wxFindReplaceData_GetFindString(_swigobj) (_swigobj->GetFindString()) | |
3541 | static PyObject *_wrap_wxFindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3542 | PyObject * _resultobj; | |
3543 | wxString * _result; | |
3544 | wxFindReplaceData * _arg0; | |
3545 | PyObject * _argo0 = 0; | |
3546 | char *_kwnames[] = { "self", NULL }; | |
3547 | ||
3548 | self = self; | |
3549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindReplaceData_GetFindString",_kwnames,&_argo0)) | |
3550 | return NULL; | |
3551 | if (_argo0) { | |
3552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) { | |
3554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_GetFindString. Expected _wxFindReplaceData_p."); | |
3555 | return NULL; | |
3556 | } | |
3557 | } | |
3558 | { | |
474c48f9 | 3559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3560 | const wxString & _result_ref = wxFindReplaceData_GetFindString(_arg0); |
3561 | _result = (wxString *) &_result_ref; | |
3562 | ||
474c48f9 | 3563 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3564 | if (PyErr_Occurred()) return NULL; |
3565 | }{ | |
3566 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3567 | } | |
3568 | return _resultobj; | |
3569 | } | |
3570 | ||
3571 | #define wxFindReplaceData_GetReplaceString(_swigobj) (_swigobj->GetReplaceString()) | |
3572 | static PyObject *_wrap_wxFindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3573 | PyObject * _resultobj; | |
3574 | wxString * _result; | |
3575 | wxFindReplaceData * _arg0; | |
3576 | PyObject * _argo0 = 0; | |
3577 | char *_kwnames[] = { "self", NULL }; | |
3578 | ||
3579 | self = self; | |
3580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindReplaceData_GetReplaceString",_kwnames,&_argo0)) | |
3581 | return NULL; | |
3582 | if (_argo0) { | |
3583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) { | |
3585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_GetReplaceString. Expected _wxFindReplaceData_p."); | |
3586 | return NULL; | |
3587 | } | |
3588 | } | |
3589 | { | |
474c48f9 | 3590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3591 | const wxString & _result_ref = wxFindReplaceData_GetReplaceString(_arg0); |
3592 | _result = (wxString *) &_result_ref; | |
3593 | ||
474c48f9 | 3594 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3595 | if (PyErr_Occurred()) return NULL; |
3596 | }{ | |
3597 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3598 | } | |
3599 | return _resultobj; | |
3600 | } | |
3601 | ||
3602 | #define wxFindReplaceData_GetFlags(_swigobj) (_swigobj->GetFlags()) | |
3603 | static PyObject *_wrap_wxFindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3604 | PyObject * _resultobj; | |
3605 | int _result; | |
3606 | wxFindReplaceData * _arg0; | |
3607 | PyObject * _argo0 = 0; | |
3608 | char *_kwnames[] = { "self", NULL }; | |
3609 | ||
3610 | self = self; | |
3611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindReplaceData_GetFlags",_kwnames,&_argo0)) | |
3612 | return NULL; | |
3613 | if (_argo0) { | |
3614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) { | |
3616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_GetFlags. Expected _wxFindReplaceData_p."); | |
3617 | return NULL; | |
3618 | } | |
3619 | } | |
3620 | { | |
474c48f9 | 3621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3622 | _result = (int )wxFindReplaceData_GetFlags(_arg0); |
3623 | ||
474c48f9 | 3624 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3625 | if (PyErr_Occurred()) return NULL; |
3626 | } _resultobj = Py_BuildValue("i",_result); | |
3627 | return _resultobj; | |
3628 | } | |
3629 | ||
3630 | #define wxFindReplaceData_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0)) | |
3631 | static PyObject *_wrap_wxFindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3632 | PyObject * _resultobj; | |
3633 | wxFindReplaceData * _arg0; | |
3634 | int _arg1; | |
3635 | PyObject * _argo0 = 0; | |
3636 | char *_kwnames[] = { "self","flags", NULL }; | |
3637 | ||
3638 | self = self; | |
3639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFindReplaceData_SetFlags",_kwnames,&_argo0,&_arg1)) | |
3640 | return NULL; | |
3641 | if (_argo0) { | |
3642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) { | |
3644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_SetFlags. Expected _wxFindReplaceData_p."); | |
3645 | return NULL; | |
3646 | } | |
3647 | } | |
3648 | { | |
474c48f9 | 3649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3650 | wxFindReplaceData_SetFlags(_arg0,_arg1); |
3651 | ||
474c48f9 | 3652 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3653 | if (PyErr_Occurred()) return NULL; |
3654 | } Py_INCREF(Py_None); | |
3655 | _resultobj = Py_None; | |
3656 | return _resultobj; | |
3657 | } | |
3658 | ||
3659 | #define wxFindReplaceData_SetFindString(_swigobj,_swigarg0) (_swigobj->SetFindString(_swigarg0)) | |
3660 | static PyObject *_wrap_wxFindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3661 | PyObject * _resultobj; | |
3662 | wxFindReplaceData * _arg0; | |
3663 | wxString * _arg1; | |
3664 | PyObject * _argo0 = 0; | |
3665 | PyObject * _obj1 = 0; | |
3666 | char *_kwnames[] = { "self","str", NULL }; | |
3667 | ||
3668 | self = self; | |
3669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFindReplaceData_SetFindString",_kwnames,&_argo0,&_obj1)) | |
3670 | return NULL; | |
3671 | if (_argo0) { | |
3672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) { | |
3674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_SetFindString. Expected _wxFindReplaceData_p."); | |
3675 | return NULL; | |
3676 | } | |
3677 | } | |
3678 | { | |
3679 | #if PYTHON_API_VERSION >= 1009 | |
3680 | char* tmpPtr; int tmpSize; | |
3681 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3682 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3683 | return NULL; | |
3684 | } | |
3685 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3686 | return NULL; | |
3687 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3688 | #else | |
3689 | if (!PyString_Check(_obj1)) { | |
3690 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3691 | return NULL; | |
3692 | } | |
3693 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3694 | #endif | |
3695 | } | |
3696 | { | |
474c48f9 | 3697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3698 | wxFindReplaceData_SetFindString(_arg0,*_arg1); |
3699 | ||
474c48f9 | 3700 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3701 | if (PyErr_Occurred()) return NULL; |
3702 | } Py_INCREF(Py_None); | |
3703 | _resultobj = Py_None; | |
3704 | { | |
3705 | if (_obj1) | |
3706 | delete _arg1; | |
3707 | } | |
3708 | return _resultobj; | |
3709 | } | |
3710 | ||
3711 | #define wxFindReplaceData_SetReplaceString(_swigobj,_swigarg0) (_swigobj->SetReplaceString(_swigarg0)) | |
3712 | static PyObject *_wrap_wxFindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3713 | PyObject * _resultobj; | |
3714 | wxFindReplaceData * _arg0; | |
3715 | wxString * _arg1; | |
3716 | PyObject * _argo0 = 0; | |
3717 | PyObject * _obj1 = 0; | |
3718 | char *_kwnames[] = { "self","str", NULL }; | |
3719 | ||
3720 | self = self; | |
3721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFindReplaceData_SetReplaceString",_kwnames,&_argo0,&_obj1)) | |
3722 | return NULL; | |
3723 | if (_argo0) { | |
3724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) { | |
3726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_SetReplaceString. Expected _wxFindReplaceData_p."); | |
3727 | return NULL; | |
3728 | } | |
3729 | } | |
3730 | { | |
3731 | #if PYTHON_API_VERSION >= 1009 | |
3732 | char* tmpPtr; int tmpSize; | |
3733 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3734 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3735 | return NULL; | |
3736 | } | |
3737 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3738 | return NULL; | |
3739 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3740 | #else | |
3741 | if (!PyString_Check(_obj1)) { | |
3742 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3743 | return NULL; | |
3744 | } | |
3745 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3746 | #endif | |
3747 | } | |
3748 | { | |
474c48f9 | 3749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3750 | wxFindReplaceData_SetReplaceString(_arg0,*_arg1); |
3751 | ||
474c48f9 | 3752 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3753 | if (PyErr_Occurred()) return NULL; |
3754 | } Py_INCREF(Py_None); | |
3755 | _resultobj = Py_None; | |
3756 | { | |
3757 | if (_obj1) | |
3758 | delete _arg1; | |
3759 | } | |
3760 | return _resultobj; | |
3761 | } | |
3762 | ||
3763 | static void *SwigwxFindReplaceDialogTowxDialog(void *ptr) { | |
3764 | wxFindReplaceDialog *src; | |
3765 | wxDialog *dest; | |
3766 | src = (wxFindReplaceDialog *) ptr; | |
3767 | dest = (wxDialog *) src; | |
3768 | return (void *) dest; | |
3769 | } | |
3770 | ||
3771 | static void *SwigwxFindReplaceDialogTowxTopLevelWindow(void *ptr) { | |
3772 | wxFindReplaceDialog *src; | |
3773 | wxTopLevelWindow *dest; | |
3774 | src = (wxFindReplaceDialog *) ptr; | |
3775 | dest = (wxTopLevelWindow *) src; | |
3776 | return (void *) dest; | |
3777 | } | |
3778 | ||
3779 | static void *SwigwxFindReplaceDialogTowxWindow(void *ptr) { | |
3780 | wxFindReplaceDialog *src; | |
3781 | wxWindow *dest; | |
3782 | src = (wxFindReplaceDialog *) ptr; | |
3783 | dest = (wxWindow *) src; | |
3784 | return (void *) dest; | |
3785 | } | |
3786 | ||
3787 | static void *SwigwxFindReplaceDialogTowxEvtHandler(void *ptr) { | |
3788 | wxFindReplaceDialog *src; | |
3789 | wxEvtHandler *dest; | |
3790 | src = (wxFindReplaceDialog *) ptr; | |
3791 | dest = (wxEvtHandler *) src; | |
3792 | return (void *) dest; | |
3793 | } | |
3794 | ||
3795 | static void *SwigwxFindReplaceDialogTowxObject(void *ptr) { | |
3796 | wxFindReplaceDialog *src; | |
3797 | wxObject *dest; | |
3798 | src = (wxFindReplaceDialog *) ptr; | |
3799 | dest = (wxObject *) src; | |
3800 | return (void *) dest; | |
3801 | } | |
3802 | ||
3803 | #define new_wxFindReplaceDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFindReplaceDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3804 | static PyObject *_wrap_new_wxFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3805 | PyObject * _resultobj; | |
3806 | wxFindReplaceDialog * _result; | |
3807 | wxWindow * _arg0; | |
3808 | wxFindReplaceData * _arg1; | |
3809 | wxString * _arg2; | |
3810 | int _arg3 = (int ) 0; | |
3811 | PyObject * _argo0 = 0; | |
3812 | PyObject * _argo1 = 0; | |
3813 | PyObject * _obj2 = 0; | |
3814 | char *_kwnames[] = { "parent","data","title","style", NULL }; | |
3815 | char _ptemp[128]; | |
3816 | ||
3817 | self = self; | |
3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:new_wxFindReplaceDialog",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3)) | |
3819 | return NULL; | |
3820 | if (_argo0) { | |
3821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFindReplaceDialog. Expected _wxWindow_p."); | |
3824 | return NULL; | |
3825 | } | |
3826 | } | |
3827 | if (_argo1) { | |
3828 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3829 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFindReplaceData_p")) { | |
3830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxFindReplaceDialog. Expected _wxFindReplaceData_p."); | |
3831 | return NULL; | |
3832 | } | |
3833 | } | |
3834 | { | |
3835 | #if PYTHON_API_VERSION >= 1009 | |
3836 | char* tmpPtr; int tmpSize; | |
3837 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3838 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3839 | return NULL; | |
3840 | } | |
3841 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3842 | return NULL; | |
3843 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3844 | #else | |
3845 | if (!PyString_Check(_obj2)) { | |
3846 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3847 | return NULL; | |
3848 | } | |
3849 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
3850 | #endif | |
3851 | } | |
3852 | { | |
474c48f9 | 3853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3854 | _result = (wxFindReplaceDialog *)new_wxFindReplaceDialog(_arg0,_arg1,*_arg2,_arg3); |
3855 | ||
474c48f9 | 3856 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3857 | if (PyErr_Occurred()) return NULL; |
3858 | } if (_result) { | |
3859 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindReplaceDialog_p"); | |
3860 | _resultobj = Py_BuildValue("s",_ptemp); | |
3861 | } else { | |
3862 | Py_INCREF(Py_None); | |
3863 | _resultobj = Py_None; | |
3864 | } | |
3865 | { | |
3866 | if (_obj2) | |
3867 | delete _arg2; | |
3868 | } | |
3869 | return _resultobj; | |
3870 | } | |
3871 | ||
3872 | #define new_wxPreFindReplaceDialog() (new wxFindReplaceDialog()) | |
3873 | static PyObject *_wrap_new_wxPreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3874 | PyObject * _resultobj; | |
3875 | wxFindReplaceDialog * _result; | |
3876 | char *_kwnames[] = { NULL }; | |
3877 | char _ptemp[128]; | |
3878 | ||
3879 | self = self; | |
3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreFindReplaceDialog",_kwnames)) | |
3881 | return NULL; | |
3882 | { | |
474c48f9 | 3883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3884 | _result = (wxFindReplaceDialog *)new_wxPreFindReplaceDialog(); |
3885 | ||
474c48f9 | 3886 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3887 | if (PyErr_Occurred()) return NULL; |
3888 | } if (_result) { | |
3889 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindReplaceDialog_p"); | |
3890 | _resultobj = Py_BuildValue("s",_ptemp); | |
3891 | } else { | |
3892 | Py_INCREF(Py_None); | |
3893 | _resultobj = Py_None; | |
3894 | } | |
3895 | return _resultobj; | |
3896 | } | |
3897 | ||
3898 | #define wxFindReplaceDialog_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3899 | static PyObject *_wrap_wxFindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3900 | PyObject * _resultobj; | |
3901 | bool _result; | |
3902 | wxFindReplaceDialog * _arg0; | |
3903 | wxWindow * _arg1; | |
3904 | wxFindReplaceData * _arg2; | |
3905 | wxString * _arg3; | |
3906 | int _arg4 = (int ) 0; | |
3907 | PyObject * _argo0 = 0; | |
3908 | PyObject * _argo1 = 0; | |
3909 | PyObject * _argo2 = 0; | |
3910 | PyObject * _obj3 = 0; | |
3911 | char *_kwnames[] = { "self","parent","data","title","style", NULL }; | |
3912 | ||
3913 | self = self; | |
3914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|i:wxFindReplaceDialog_Create",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4)) | |
3915 | return NULL; | |
3916 | if (_argo0) { | |
3917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceDialog_p")) { | |
3919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceDialog_Create. Expected _wxFindReplaceDialog_p."); | |
3920 | return NULL; | |
3921 | } | |
3922 | } | |
3923 | if (_argo1) { | |
3924 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3925 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindReplaceDialog_Create. Expected _wxWindow_p."); | |
3927 | return NULL; | |
3928 | } | |
3929 | } | |
3930 | if (_argo2) { | |
3931 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3932 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFindReplaceData_p")) { | |
3933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxFindReplaceDialog_Create. Expected _wxFindReplaceData_p."); | |
3934 | return NULL; | |
3935 | } | |
3936 | } | |
3937 | { | |
3938 | #if PYTHON_API_VERSION >= 1009 | |
3939 | char* tmpPtr; int tmpSize; | |
3940 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
3941 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3942 | return NULL; | |
3943 | } | |
3944 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
3945 | return NULL; | |
3946 | _arg3 = new wxString(tmpPtr, tmpSize); | |
3947 | #else | |
3948 | if (!PyString_Check(_obj3)) { | |
3949 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3950 | return NULL; | |
3951 | } | |
3952 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); | |
3953 | #endif | |
3954 | } | |
3955 | { | |
474c48f9 | 3956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3957 | _result = (bool )wxFindReplaceDialog_Create(_arg0,_arg1,_arg2,*_arg3,_arg4); |
3958 | ||
474c48f9 | 3959 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3960 | if (PyErr_Occurred()) return NULL; |
3961 | } _resultobj = Py_BuildValue("i",_result); | |
3962 | { | |
3963 | if (_obj3) | |
3964 | delete _arg3; | |
3965 | } | |
3966 | return _resultobj; | |
3967 | } | |
3968 | ||
3969 | #define wxFindReplaceDialog_GetData(_swigobj) (_swigobj->GetData()) | |
3970 | static PyObject *_wrap_wxFindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3971 | PyObject * _resultobj; | |
3972 | wxFindReplaceData * _result; | |
3973 | wxFindReplaceDialog * _arg0; | |
3974 | PyObject * _argo0 = 0; | |
3975 | char *_kwnames[] = { "self", NULL }; | |
3976 | char _ptemp[128]; | |
3977 | ||
3978 | self = self; | |
3979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindReplaceDialog_GetData",_kwnames,&_argo0)) | |
3980 | return NULL; | |
3981 | if (_argo0) { | |
3982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceDialog_p")) { | |
3984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceDialog_GetData. Expected _wxFindReplaceDialog_p."); | |
3985 | return NULL; | |
3986 | } | |
3987 | } | |
3988 | { | |
474c48f9 | 3989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
3990 | _result = (wxFindReplaceData *)wxFindReplaceDialog_GetData(_arg0); |
3991 | ||
474c48f9 | 3992 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
3993 | if (PyErr_Occurred()) return NULL; |
3994 | } if (_result) { | |
3995 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindReplaceData_p"); | |
3996 | _resultobj = Py_BuildValue("s",_ptemp); | |
3997 | } else { | |
3998 | Py_INCREF(Py_None); | |
3999 | _resultobj = Py_None; | |
4000 | } | |
4001 | return _resultobj; | |
4002 | } | |
4003 | ||
4004 | #define wxFindReplaceDialog_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
4005 | static PyObject *_wrap_wxFindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4006 | PyObject * _resultobj; | |
4007 | wxFindReplaceDialog * _arg0; | |
4008 | wxFindReplaceData * _arg1; | |
4009 | PyObject * _argo0 = 0; | |
4010 | PyObject * _argo1 = 0; | |
4011 | char *_kwnames[] = { "self","data", NULL }; | |
4012 | ||
4013 | self = self; | |
4014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFindReplaceDialog_SetData",_kwnames,&_argo0,&_argo1)) | |
4015 | return NULL; | |
4016 | if (_argo0) { | |
4017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceDialog_p")) { | |
4019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceDialog_SetData. Expected _wxFindReplaceDialog_p."); | |
4020 | return NULL; | |
4021 | } | |
4022 | } | |
4023 | if (_argo1) { | |
4024 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4025 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFindReplaceData_p")) { | |
4026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindReplaceDialog_SetData. Expected _wxFindReplaceData_p."); | |
4027 | return NULL; | |
4028 | } | |
4029 | } | |
4030 | { | |
474c48f9 | 4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0220cbc1 RD |
4032 | wxFindReplaceDialog_SetData(_arg0,_arg1); |
4033 | ||
474c48f9 | 4034 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
4035 | if (PyErr_Occurred()) return NULL; |
4036 | } Py_INCREF(Py_None); | |
4037 | _resultobj = Py_None; | |
4038 | return _resultobj; | |
4039 | } | |
4040 | ||
70551f47 | 4041 | static PyMethodDef cmndlgscMethods[] = { |
0220cbc1 RD |
4042 | { "wxFindReplaceDialog_SetData", (PyCFunction) _wrap_wxFindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, |
4043 | { "wxFindReplaceDialog_GetData", (PyCFunction) _wrap_wxFindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, | |
4044 | { "wxFindReplaceDialog_Create", (PyCFunction) _wrap_wxFindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
4045 | { "new_wxPreFindReplaceDialog", (PyCFunction) _wrap_new_wxPreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
4046 | { "new_wxFindReplaceDialog", (PyCFunction) _wrap_new_wxFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
4047 | { "wxFindReplaceData_SetReplaceString", (PyCFunction) _wrap_wxFindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
4048 | { "wxFindReplaceData_SetFindString", (PyCFunction) _wrap_wxFindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
4049 | { "wxFindReplaceData_SetFlags", (PyCFunction) _wrap_wxFindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
4050 | { "wxFindReplaceData_GetFlags", (PyCFunction) _wrap_wxFindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
4051 | { "wxFindReplaceData_GetReplaceString", (PyCFunction) _wrap_wxFindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
4052 | { "wxFindReplaceData_GetFindString", (PyCFunction) _wrap_wxFindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
4053 | { "delete_wxFindReplaceData", (PyCFunction) _wrap_delete_wxFindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
4054 | { "new_wxFindReplaceData", (PyCFunction) _wrap_new_wxFindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
4055 | { "wxFindDialogEvent_SetReplaceString", (PyCFunction) _wrap_wxFindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
4056 | { "wxFindDialogEvent_SetFindString", (PyCFunction) _wrap_wxFindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
4057 | { "wxFindDialogEvent_SetFlags", (PyCFunction) _wrap_wxFindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
4058 | { "wxFindDialogEvent_GetDialog", (PyCFunction) _wrap_wxFindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, | |
4059 | { "wxFindDialogEvent_GetReplaceString", (PyCFunction) _wrap_wxFindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
4060 | { "wxFindDialogEvent_GetFindString", (PyCFunction) _wrap_wxFindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
4061 | { "wxFindDialogEvent_GetFlags", (PyCFunction) _wrap_wxFindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
4062 | { "new_wxFindDialogEvent", (PyCFunction) _wrap_new_wxFindDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
4063 | { "wxProgressDialog_Resume", (PyCFunction) _wrap_wxProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, |
4064 | { "wxProgressDialog_Update", (PyCFunction) _wrap_wxProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
4065 | { "new_wxProgressDialog", (PyCFunction) _wrap_new_wxProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
4066 | { "wxMessageDialog_ShowModal", (PyCFunction) _wrap_wxMessageDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
4067 | { "new_wxMessageDialog", (PyCFunction) _wrap_new_wxMessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
4068 | { "wxFontDialog_ShowModal", (PyCFunction) _wrap_wxFontDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
4069 | { "wxFontDialog_GetFontData", (PyCFunction) _wrap_wxFontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
4070 | { "new_wxFontDialog", (PyCFunction) _wrap_new_wxFontDialog, METH_VARARGS | METH_KEYWORDS }, | |
4071 | { "wxFontData_SetShowHelp", (PyCFunction) _wrap_wxFontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
4072 | { "wxFontData_SetRange", (PyCFunction) _wrap_wxFontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
4073 | { "wxFontData_SetInitialFont", (PyCFunction) _wrap_wxFontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
4074 | { "wxFontData_SetColour", (PyCFunction) _wrap_wxFontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
4075 | { "wxFontData_SetChosenFont", (PyCFunction) _wrap_wxFontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
4076 | { "wxFontData_SetAllowSymbols", (PyCFunction) _wrap_wxFontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
4077 | { "wxFontData_GetShowHelp", (PyCFunction) _wrap_wxFontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
4078 | { "wxFontData_GetInitialFont", (PyCFunction) _wrap_wxFontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
4079 | { "wxFontData_GetEnableEffects", (PyCFunction) _wrap_wxFontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
4080 | { "wxFontData_GetChosenFont", (PyCFunction) _wrap_wxFontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
4081 | { "wxFontData_GetColour", (PyCFunction) _wrap_wxFontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
4082 | { "wxFontData_GetAllowSymbols", (PyCFunction) _wrap_wxFontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
4083 | { "wxFontData_EnableEffects", (PyCFunction) _wrap_wxFontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
4084 | { "delete_wxFontData", (PyCFunction) _wrap_delete_wxFontData, METH_VARARGS | METH_KEYWORDS }, | |
4085 | { "new_wxFontData", (PyCFunction) _wrap_new_wxFontData, METH_VARARGS | METH_KEYWORDS }, | |
4086 | { "wxTextEntryDialog_ShowModal", (PyCFunction) _wrap_wxTextEntryDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
4087 | { "wxTextEntryDialog_SetValue", (PyCFunction) _wrap_wxTextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
4088 | { "wxTextEntryDialog_GetValue", (PyCFunction) _wrap_wxTextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
4089 | { "new_wxTextEntryDialog", (PyCFunction) _wrap_new_wxTextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
4090 | { "wxSingleChoiceDialog_ShowModal", (PyCFunction) _wrap_wxSingleChoiceDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
4091 | { "wxSingleChoiceDialog_SetSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
4092 | { "wxSingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
4093 | { "wxSingleChoiceDialog_GetSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
4094 | { "new_wxSingleChoiceDialog", (PyCFunction) _wrap_new_wxSingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
85247b36 RD |
4095 | { "wxMultiChoiceDialog_GetSelections", (PyCFunction) _wrap_wxMultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
4096 | { "wxMultiChoiceDialog_SetSelections", (PyCFunction) _wrap_wxMultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, | |
4097 | { "new_wxMultiChoiceDialog", (PyCFunction) _wrap_new_wxMultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
4098 | { "wxFileDialog_GetPaths", (PyCFunction) _wrap_wxFileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, |
4099 | { "wxFileDialog_GetFilenames", (PyCFunction) _wrap_wxFileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
4100 | { "wxFileDialog_ShowModal", (PyCFunction) _wrap_wxFileDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, |
4101 | { "wxFileDialog_SetWildcard", (PyCFunction) _wrap_wxFileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
4102 | { "wxFileDialog_SetStyle", (PyCFunction) _wrap_wxFileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
4103 | { "wxFileDialog_SetPath", (PyCFunction) _wrap_wxFileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
4104 | { "wxFileDialog_SetMessage", (PyCFunction) _wrap_wxFileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
4105 | { "wxFileDialog_SetFilterIndex", (PyCFunction) _wrap_wxFileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
4106 | { "wxFileDialog_SetFilename", (PyCFunction) _wrap_wxFileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
4107 | { "wxFileDialog_SetDirectory", (PyCFunction) _wrap_wxFileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
4108 | { "wxFileDialog_GetWildcard", (PyCFunction) _wrap_wxFileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
4109 | { "wxFileDialog_GetStyle", (PyCFunction) _wrap_wxFileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
4110 | { "wxFileDialog_GetPath", (PyCFunction) _wrap_wxFileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
4111 | { "wxFileDialog_GetMessage", (PyCFunction) _wrap_wxFileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
4112 | { "wxFileDialog_GetFilterIndex", (PyCFunction) _wrap_wxFileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
4113 | { "wxFileDialog_GetFilename", (PyCFunction) _wrap_wxFileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
4114 | { "wxFileDialog_GetDirectory", (PyCFunction) _wrap_wxFileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
4115 | { "new_wxFileDialog", (PyCFunction) _wrap_new_wxFileDialog, METH_VARARGS | METH_KEYWORDS }, | |
4116 | { "wxDirDialog_ShowModal", (PyCFunction) _wrap_wxDirDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
4117 | { "wxDirDialog_SetPath", (PyCFunction) _wrap_wxDirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
4118 | { "wxDirDialog_SetMessage", (PyCFunction) _wrap_wxDirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
4119 | { "wxDirDialog_GetStyle", (PyCFunction) _wrap_wxDirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
4120 | { "wxDirDialog_GetMessage", (PyCFunction) _wrap_wxDirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
4121 | { "wxDirDialog_GetPath", (PyCFunction) _wrap_wxDirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
4122 | { "new_wxDirDialog", (PyCFunction) _wrap_new_wxDirDialog, METH_VARARGS | METH_KEYWORDS }, | |
4123 | { "wxColourDialog_ShowModal", (PyCFunction) _wrap_wxColourDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
4124 | { "wxColourDialog_GetColourData", (PyCFunction) _wrap_wxColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
4125 | { "new_wxColourDialog", (PyCFunction) _wrap_new_wxColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
4126 | { "wxColourData_SetCustomColour", (PyCFunction) _wrap_wxColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
4127 | { "wxColourData_SetColour", (PyCFunction) _wrap_wxColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
4128 | { "wxColourData_SetChooseFull", (PyCFunction) _wrap_wxColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
4129 | { "wxColourData_GetCustomColour", (PyCFunction) _wrap_wxColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
4130 | { "wxColourData_GetColour", (PyCFunction) _wrap_wxColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
4131 | { "wxColourData_GetChooseFull", (PyCFunction) _wrap_wxColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
4132 | { "delete_wxColourData", (PyCFunction) _wrap_delete_wxColourData, METH_VARARGS | METH_KEYWORDS }, | |
4133 | { "new_wxColourData", (PyCFunction) _wrap_new_wxColourData, METH_VARARGS | METH_KEYWORDS }, | |
70551f47 RD |
4134 | { NULL, NULL } |
4135 | }; | |
2d091820 RD |
4136 | #ifdef __cplusplus |
4137 | } | |
4138 | #endif | |
4139 | /* | |
4140 | * This table is used by the pointer type-checker | |
4141 | */ | |
4142 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
0220cbc1 | 4143 | { "_wxEvent","_wxFindDialogEvent",SwigwxFindDialogEventTowxEvent}, |
2d091820 | 4144 | { "_signed_long","_long",0}, |
4120ef2b | 4145 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
4146 | { "_wxPrintQuality","_int",0}, |
4147 | { "_wxPrintQuality","_signed_int",0}, | |
4148 | { "_wxPrintQuality","_unsigned_int",0}, | |
4149 | { "_wxPrintQuality","_wxWindowID",0}, | |
4150 | { "_wxPrintQuality","_uint",0}, | |
4151 | { "_wxPrintQuality","_EBool",0}, | |
4152 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 4153 | { "_wxPrintQuality","_time_t",0}, |
2d091820 | 4154 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
4155 | { "_long","_unsigned_long",0}, |
4156 | { "_long","_signed_long",0}, | |
4120ef2b | 4157 | { "_size_t","_wxCoord",0}, |
2d091820 | 4158 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 4159 | { "_size_t","_time_t",0}, |
2d091820 RD |
4160 | { "_size_t","_unsigned_int",0}, |
4161 | { "_size_t","_int",0}, | |
4162 | { "_size_t","_wxWindowID",0}, | |
4163 | { "_size_t","_uint",0}, | |
0220cbc1 | 4164 | { "_wxTopLevelWindow","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxTopLevelWindow}, |
32c988a3 | 4165 | { "_wxTopLevelWindow","_wxProgressDialog",SwigwxProgressDialogTowxTopLevelWindow}, |
32c988a3 | 4166 | { "_wxTopLevelWindow","_wxMessageDialog",SwigwxMessageDialogTowxTopLevelWindow}, |
32c988a3 | 4167 | { "_wxTopLevelWindow","_wxFontDialog",SwigwxFontDialogTowxTopLevelWindow}, |
32c988a3 | 4168 | { "_wxTopLevelWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxTopLevelWindow}, |
32c988a3 | 4169 | { "_wxTopLevelWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxTopLevelWindow}, |
85247b36 | 4170 | { "_wxTopLevelWindow","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxTopLevelWindow}, |
32c988a3 | 4171 | { "_wxTopLevelWindow","_wxFileDialog",SwigwxFileDialogTowxTopLevelWindow}, |
32c988a3 | 4172 | { "_wxTopLevelWindow","_wxDirDialog",SwigwxDirDialogTowxTopLevelWindow}, |
32c988a3 | 4173 | { "_wxTopLevelWindow","_wxColourDialog",SwigwxColourDialogTowxTopLevelWindow}, |
4120ef2b | 4174 | { "_uint","_wxCoord",0}, |
2d091820 | 4175 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 4176 | { "_uint","_time_t",0}, |
2d091820 RD |
4177 | { "_uint","_size_t",0}, |
4178 | { "_uint","_unsigned_int",0}, | |
4179 | { "_uint","_int",0}, | |
4180 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 4181 | { "_wxChar","_char",0}, |
0220cbc1 | 4182 | { "_wxCommandEvent","_wxFindDialogEvent",SwigwxFindDialogEventTowxCommandEvent}, |
f6bcfd97 | 4183 | { "_char","_wxChar",0}, |
32c988a3 | 4184 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 4185 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
4186 | { "_EBool","_wxPrintQuality",0}, |
4187 | { "_EBool","_signed_int",0}, | |
4188 | { "_EBool","_int",0}, | |
4189 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 4190 | { "_unsigned_long","_long",0}, |
32c988a3 | 4191 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b | 4192 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
4193 | { "_signed_int","_wxPrintQuality",0}, |
4194 | { "_signed_int","_EBool",0}, | |
4195 | { "_signed_int","_wxWindowID",0}, | |
4196 | { "_signed_int","_int",0}, | |
2d091820 RD |
4197 | { "_WXTYPE","_short",0}, |
4198 | { "_WXTYPE","_signed_short",0}, | |
4199 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
4200 | { "_unsigned_short","_WXTYPE",0}, |
4201 | { "_unsigned_short","_short",0}, | |
0220cbc1 | 4202 | { "_wxObject","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxObject}, |
0220cbc1 | 4203 | { "_wxObject","_wxFindReplaceData",SwigwxFindReplaceDataTowxObject}, |
0220cbc1 | 4204 | { "_wxObject","_wxFindDialogEvent",SwigwxFindDialogEventTowxObject}, |
9df61a29 | 4205 | { "_wxObject","_wxProgressDialog",SwigwxProgressDialogTowxObject}, |
9df61a29 | 4206 | { "_wxObject","_wxMessageDialog",SwigwxMessageDialogTowxObject}, |
9df61a29 | 4207 | { "_wxObject","_wxFontDialog",SwigwxFontDialogTowxObject}, |
9df61a29 | 4208 | { "_wxObject","_wxFontData",SwigwxFontDataTowxObject}, |
9df61a29 | 4209 | { "_wxObject","_wxTextEntryDialog",SwigwxTextEntryDialogTowxObject}, |
9df61a29 | 4210 | { "_wxObject","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxObject}, |
85247b36 | 4211 | { "_wxObject","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxObject}, |
9df61a29 | 4212 | { "_wxObject","_wxFileDialog",SwigwxFileDialogTowxObject}, |
9df61a29 | 4213 | { "_wxObject","_wxDirDialog",SwigwxDirDialogTowxObject}, |
9df61a29 | 4214 | { "_wxObject","_wxColourDialog",SwigwxColourDialogTowxObject}, |
9df61a29 | 4215 | { "_wxObject","_wxColourData",SwigwxColourDataTowxObject}, |
2d091820 RD |
4216 | { "_signed_short","_WXTYPE",0}, |
4217 | { "_signed_short","_short",0}, | |
2d091820 | 4218 | { "_unsigned_char","_byte",0}, |
4120ef2b | 4219 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 4220 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 4221 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
4222 | { "_unsigned_int","_size_t",0}, |
4223 | { "_unsigned_int","_uint",0}, | |
4224 | { "_unsigned_int","_wxWindowID",0}, | |
4225 | { "_unsigned_int","_int",0}, | |
0220cbc1 | 4226 | { "_wxDialog","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxDialog}, |
2d091820 | 4227 | { "_wxDialog","_wxMessageDialog",SwigwxMessageDialogTowxDialog}, |
2d091820 | 4228 | { "_wxDialog","_wxFontDialog",SwigwxFontDialogTowxDialog}, |
2d091820 | 4229 | { "_wxDialog","_wxTextEntryDialog",SwigwxTextEntryDialogTowxDialog}, |
2d091820 | 4230 | { "_wxDialog","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxDialog}, |
85247b36 | 4231 | { "_wxDialog","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxDialog}, |
2d091820 | 4232 | { "_wxDialog","_wxFileDialog",SwigwxFileDialogTowxDialog}, |
2d091820 | 4233 | { "_wxDialog","_wxDirDialog",SwigwxDirDialogTowxDialog}, |
2d091820 | 4234 | { "_wxDialog","_wxColourDialog",SwigwxColourDialogTowxDialog}, |
2d091820 RD |
4235 | { "_short","_WXTYPE",0}, |
4236 | { "_short","_unsigned_short",0}, | |
4237 | { "_short","_signed_short",0}, | |
2d091820 | 4238 | { "_wxFrame","_wxProgressDialog",SwigwxProgressDialogTowxFrame}, |
4120ef2b | 4239 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 4240 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 4241 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
4242 | { "_wxWindowID","_size_t",0}, |
4243 | { "_wxWindowID","_EBool",0}, | |
4244 | { "_wxWindowID","_uint",0}, | |
4245 | { "_wxWindowID","_int",0}, | |
4246 | { "_wxWindowID","_signed_int",0}, | |
4247 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 4248 | { "_int","_wxCoord",0}, |
2d091820 | 4249 | { "_int","_wxPrintQuality",0}, |
c368d904 | 4250 | { "_int","_time_t",0}, |
2d091820 RD |
4251 | { "_int","_size_t",0}, |
4252 | { "_int","_EBool",0}, | |
4253 | { "_int","_uint",0}, | |
4254 | { "_int","_wxWindowID",0}, | |
4255 | { "_int","_unsigned_int",0}, | |
4256 | { "_int","_signed_int",0}, | |
c368d904 RD |
4257 | { "_time_t","_wxCoord",0}, |
4258 | { "_time_t","_wxPrintQuality",0}, | |
4259 | { "_time_t","_unsigned_int",0}, | |
4260 | { "_time_t","_int",0}, | |
4261 | { "_time_t","_wxWindowID",0}, | |
4262 | { "_time_t","_uint",0}, | |
4263 | { "_time_t","_size_t",0}, | |
4120ef2b RD |
4264 | { "_wxCoord","_int",0}, |
4265 | { "_wxCoord","_signed_int",0}, | |
4266 | { "_wxCoord","_unsigned_int",0}, | |
4267 | { "_wxCoord","_wxWindowID",0}, | |
4268 | { "_wxCoord","_uint",0}, | |
4269 | { "_wxCoord","_EBool",0}, | |
4270 | { "_wxCoord","_size_t",0}, | |
c368d904 | 4271 | { "_wxCoord","_time_t",0}, |
4120ef2b | 4272 | { "_wxCoord","_wxPrintQuality",0}, |
0220cbc1 | 4273 | { "_wxEvtHandler","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxEvtHandler}, |
2d091820 | 4274 | { "_wxEvtHandler","_wxProgressDialog",SwigwxProgressDialogTowxEvtHandler}, |
2d091820 | 4275 | { "_wxEvtHandler","_wxMessageDialog",SwigwxMessageDialogTowxEvtHandler}, |
2d091820 | 4276 | { "_wxEvtHandler","_wxFontDialog",SwigwxFontDialogTowxEvtHandler}, |
2d091820 | 4277 | { "_wxEvtHandler","_wxTextEntryDialog",SwigwxTextEntryDialogTowxEvtHandler}, |
2d091820 | 4278 | { "_wxEvtHandler","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxEvtHandler}, |
85247b36 | 4279 | { "_wxEvtHandler","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxEvtHandler}, |
2d091820 | 4280 | { "_wxEvtHandler","_wxFileDialog",SwigwxFileDialogTowxEvtHandler}, |
2d091820 | 4281 | { "_wxEvtHandler","_wxDirDialog",SwigwxDirDialogTowxEvtHandler}, |
2d091820 | 4282 | { "_wxEvtHandler","_wxColourDialog",SwigwxColourDialogTowxEvtHandler}, |
0220cbc1 | 4283 | { "_wxWindow","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxWindow}, |
2d091820 | 4284 | { "_wxWindow","_wxProgressDialog",SwigwxProgressDialogTowxWindow}, |
2d091820 | 4285 | { "_wxWindow","_wxMessageDialog",SwigwxMessageDialogTowxWindow}, |
2d091820 | 4286 | { "_wxWindow","_wxFontDialog",SwigwxFontDialogTowxWindow}, |
2d091820 | 4287 | { "_wxWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxWindow}, |
2d091820 | 4288 | { "_wxWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxWindow}, |
85247b36 | 4289 | { "_wxWindow","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxWindow}, |
2d091820 | 4290 | { "_wxWindow","_wxFileDialog",SwigwxFileDialogTowxWindow}, |
2d091820 | 4291 | { "_wxWindow","_wxDirDialog",SwigwxDirDialogTowxWindow}, |
2d091820 | 4292 | { "_wxWindow","_wxColourDialog",SwigwxColourDialogTowxWindow}, |
2d091820 RD |
4293 | {0,0,0}}; |
4294 | ||
70551f47 RD |
4295 | static PyObject *SWIG_globals; |
4296 | #ifdef __cplusplus | |
4297 | extern "C" | |
4298 | #endif | |
2d091820 | 4299 | SWIGEXPORT(void) initcmndlgsc() { |
70551f47 RD |
4300 | PyObject *m, *d; |
4301 | SWIG_globals = SWIG_newvarlink(); | |
4302 | m = Py_InitModule("cmndlgsc", cmndlgscMethods); | |
4303 | d = PyModule_GetDict(m); | |
85247b36 | 4304 | PyDict_SetItemString(d,"wxCHOICEDLG_STYLE", PyInt_FromLong((long) wxCHOICEDLG_STYLE)); |
0220cbc1 RD |
4305 | PyDict_SetItemString(d,"wxFR_DOWN", PyInt_FromLong((long) wxFR_DOWN)); |
4306 | PyDict_SetItemString(d,"wxFR_WHOLEWORD", PyInt_FromLong((long) wxFR_WHOLEWORD)); | |
4307 | PyDict_SetItemString(d,"wxFR_MATCHCASE", PyInt_FromLong((long) wxFR_MATCHCASE)); | |
4308 | PyDict_SetItemString(d,"wxFR_REPLACEDIALOG", PyInt_FromLong((long) wxFR_REPLACEDIALOG)); | |
4309 | PyDict_SetItemString(d,"wxFR_NOUPDOWN", PyInt_FromLong((long) wxFR_NOUPDOWN)); | |
4310 | PyDict_SetItemString(d,"wxFR_NOMATCHCASE", PyInt_FromLong((long) wxFR_NOMATCHCASE)); | |
4311 | PyDict_SetItemString(d,"wxFR_NOWHOLEWORD", PyInt_FromLong((long) wxFR_NOWHOLEWORD)); | |
4312 | PyDict_SetItemString(d,"wxEVT_COMMAND_FIND", PyInt_FromLong((long) wxEVT_COMMAND_FIND)); | |
4313 | PyDict_SetItemString(d,"wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong((long) wxEVT_COMMAND_FIND_NEXT)); | |
4314 | PyDict_SetItemString(d,"wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong((long) wxEVT_COMMAND_FIND_REPLACE)); | |
4315 | PyDict_SetItemString(d,"wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong((long) wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
4316 | PyDict_SetItemString(d,"wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong((long) wxEVT_COMMAND_FIND_CLOSE)); | |
2d091820 RD |
4317 | { |
4318 | int i; | |
4319 | for (i = 0; _swig_mapping[i].n1; i++) | |
4320 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
4321 | } | |
70551f47 | 4322 | } |