]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/cmndlgs.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init 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> | |
62 | #include <wx/progdlg.h> | |
63 | #include <wx/fdrepdlg.h> | |
64 | ||
65 | ||
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
70 | if (!target) { | |
71 | target = o; | |
72 | } else if (target == Py_None) { | |
73 | Py_DECREF(Py_None); | |
74 | target = o; | |
75 | } else { | |
76 | if (!PyTuple_Check(target)) { | |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
81 | o3 = PyTuple_New(1); | |
82 | PyTuple_SetItem(o3, 0, o); | |
83 | ||
84 | o2 = target; | |
85 | target = PySequence_Concat(o2, o3); | |
86 | Py_DECREF(o2); | |
87 | Py_DECREF(o3); | |
88 | } | |
89 | return target; | |
90 | } | |
91 | ||
92 | #if PYTHON_API_VERSION >= 1009 | |
93 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
94 | #else | |
95 | static char* wxStringErrorMsg = "String type required"; | |
96 | #endif | |
97 | #ifdef __cplusplus | |
98 | extern "C" { | |
99 | #endif | |
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 | ||
108 | #define new_wxColourData() (new wxColourData()) | |
109 | static PyObject *_wrap_new_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
110 | PyObject * _resultobj; | |
111 | wxColourData * _result; | |
112 | char *_kwnames[] = { NULL }; | |
113 | char _ptemp[128]; | |
114 | ||
115 | self = self; | |
116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxColourData",_kwnames)) | |
117 | return NULL; | |
118 | { | |
0e2ff151 | 119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
120 | _result = (wxColourData *)new_wxColourData(); |
121 | ||
0e2ff151 | 122 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
123 | if (PyErr_Occurred()) return NULL; |
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 | } | |
131 | return _resultobj; | |
132 | } | |
133 | ||
134 | #define delete_wxColourData(_swigobj) (delete _swigobj) | |
135 | static PyObject *_wrap_delete_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
136 | PyObject * _resultobj; | |
137 | wxColourData * _arg0; | |
138 | PyObject * _argo0 = 0; | |
139 | char *_kwnames[] = { "self", NULL }; | |
140 | ||
141 | self = self; | |
142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColourData",_kwnames,&_argo0)) | |
143 | return NULL; | |
144 | if (_argo0) { | |
145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxColourData. Expected _wxColourData_p."); | |
148 | return NULL; | |
149 | } | |
150 | } | |
151 | { | |
0e2ff151 | 152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
153 | delete_wxColourData(_arg0); |
154 | ||
0e2ff151 | 155 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
156 | if (PyErr_Occurred()) return NULL; |
157 | } Py_INCREF(Py_None); | |
158 | _resultobj = Py_None; | |
159 | return _resultobj; | |
160 | } | |
161 | ||
162 | #define wxColourData_GetChooseFull(_swigobj) (_swigobj->GetChooseFull()) | |
163 | static PyObject *_wrap_wxColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
164 | PyObject * _resultobj; | |
165 | bool _result; | |
166 | wxColourData * _arg0; | |
167 | PyObject * _argo0 = 0; | |
168 | char *_kwnames[] = { "self", NULL }; | |
169 | ||
170 | self = self; | |
171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourData_GetChooseFull",_kwnames,&_argo0)) | |
172 | return NULL; | |
173 | if (_argo0) { | |
174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetChooseFull. Expected _wxColourData_p."); | |
177 | return NULL; | |
178 | } | |
179 | } | |
180 | { | |
0e2ff151 | 181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
182 | _result = (bool )wxColourData_GetChooseFull(_arg0); |
183 | ||
0e2ff151 | 184 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
185 | if (PyErr_Occurred()) return NULL; |
186 | } _resultobj = Py_BuildValue("i",_result); | |
187 | return _resultobj; | |
188 | } | |
189 | ||
190 | #define wxColourData_GetColour(_swigobj) (_swigobj->GetColour()) | |
191 | static PyObject *_wrap_wxColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
192 | PyObject * _resultobj; | |
193 | wxColour * _result; | |
194 | wxColourData * _arg0; | |
195 | PyObject * _argo0 = 0; | |
196 | char *_kwnames[] = { "self", NULL }; | |
197 | char _ptemp[128]; | |
198 | ||
199 | self = self; | |
200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourData_GetColour",_kwnames,&_argo0)) | |
201 | return NULL; | |
202 | if (_argo0) { | |
203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetColour. Expected _wxColourData_p."); | |
206 | return NULL; | |
207 | } | |
208 | } | |
209 | { | |
0e2ff151 | 210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
211 | _result = new wxColour (wxColourData_GetColour(_arg0)); |
212 | ||
0e2ff151 | 213 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
214 | if (PyErr_Occurred()) return NULL; |
215 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
216 | _resultobj = Py_BuildValue("s",_ptemp); | |
217 | return _resultobj; | |
218 | } | |
219 | ||
220 | #define wxColourData_GetCustomColour(_swigobj,_swigarg0) (_swigobj->GetCustomColour(_swigarg0)) | |
221 | static PyObject *_wrap_wxColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
222 | PyObject * _resultobj; | |
223 | wxColour * _result; | |
224 | wxColourData * _arg0; | |
225 | int _arg1; | |
226 | PyObject * _argo0 = 0; | |
227 | char *_kwnames[] = { "self","i", NULL }; | |
228 | char _ptemp[128]; | |
229 | ||
230 | self = self; | |
231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxColourData_GetCustomColour",_kwnames,&_argo0,&_arg1)) | |
232 | return NULL; | |
233 | if (_argo0) { | |
234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetCustomColour. Expected _wxColourData_p."); | |
237 | return NULL; | |
238 | } | |
239 | } | |
240 | { | |
0e2ff151 | 241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
242 | _result = new wxColour (wxColourData_GetCustomColour(_arg0,_arg1)); |
243 | ||
0e2ff151 | 244 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
245 | if (PyErr_Occurred()) return NULL; |
246 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
247 | _resultobj = Py_BuildValue("s",_ptemp); | |
248 | return _resultobj; | |
249 | } | |
250 | ||
251 | #define wxColourData_SetChooseFull(_swigobj,_swigarg0) (_swigobj->SetChooseFull(_swigarg0)) | |
252 | static PyObject *_wrap_wxColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
253 | PyObject * _resultobj; | |
254 | wxColourData * _arg0; | |
255 | int _arg1; | |
256 | PyObject * _argo0 = 0; | |
257 | char *_kwnames[] = { "self","flag", NULL }; | |
258 | ||
259 | self = self; | |
260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxColourData_SetChooseFull",_kwnames,&_argo0,&_arg1)) | |
261 | return NULL; | |
262 | if (_argo0) { | |
263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetChooseFull. Expected _wxColourData_p."); | |
266 | return NULL; | |
267 | } | |
268 | } | |
269 | { | |
0e2ff151 | 270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
271 | wxColourData_SetChooseFull(_arg0,_arg1); |
272 | ||
0e2ff151 | 273 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
274 | if (PyErr_Occurred()) return NULL; |
275 | } Py_INCREF(Py_None); | |
276 | _resultobj = Py_None; | |
277 | return _resultobj; | |
278 | } | |
279 | ||
280 | #define wxColourData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
281 | static PyObject *_wrap_wxColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
282 | PyObject * _resultobj; | |
283 | wxColourData * _arg0; | |
284 | wxColour * _arg1; | |
285 | PyObject * _argo0 = 0; | |
286 | wxColour temp; | |
287 | PyObject * _obj1 = 0; | |
288 | char *_kwnames[] = { "self","colour", NULL }; | |
289 | ||
290 | self = self; | |
291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourData_SetColour",_kwnames,&_argo0,&_obj1)) | |
292 | return NULL; | |
293 | if (_argo0) { | |
294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetColour. Expected _wxColourData_p."); | |
297 | return NULL; | |
298 | } | |
299 | } | |
300 | { | |
301 | _arg1 = &temp; | |
302 | if (! wxColour_helper(_obj1, &_arg1)) | |
303 | return NULL; | |
304 | } | |
305 | { | |
0e2ff151 | 306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
307 | wxColourData_SetColour(_arg0,*_arg1); |
308 | ||
0e2ff151 | 309 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
310 | if (PyErr_Occurred()) return NULL; |
311 | } Py_INCREF(Py_None); | |
312 | _resultobj = Py_None; | |
313 | return _resultobj; | |
314 | } | |
315 | ||
316 | #define wxColourData_SetCustomColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCustomColour(_swigarg0,_swigarg1)) | |
317 | static PyObject *_wrap_wxColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
318 | PyObject * _resultobj; | |
319 | wxColourData * _arg0; | |
320 | int _arg1; | |
321 | wxColour * _arg2; | |
322 | PyObject * _argo0 = 0; | |
323 | wxColour temp; | |
324 | PyObject * _obj2 = 0; | |
325 | char *_kwnames[] = { "self","i","colour", NULL }; | |
326 | ||
327 | self = self; | |
328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxColourData_SetCustomColour",_kwnames,&_argo0,&_arg1,&_obj2)) | |
329 | return NULL; | |
330 | if (_argo0) { | |
331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetCustomColour. Expected _wxColourData_p."); | |
334 | return NULL; | |
335 | } | |
336 | } | |
337 | { | |
338 | _arg2 = &temp; | |
339 | if (! wxColour_helper(_obj2, &_arg2)) | |
340 | return NULL; | |
341 | } | |
342 | { | |
0e2ff151 | 343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
344 | wxColourData_SetCustomColour(_arg0,_arg1,*_arg2); |
345 | ||
0e2ff151 | 346 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
347 | if (PyErr_Occurred()) return NULL; |
348 | } Py_INCREF(Py_None); | |
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 | ||
361 | static void *SwigwxColourDialogTowxTopLevelWindow(void *ptr) { | |
362 | wxColourDialog *src; | |
363 | wxTopLevelWindow *dest; | |
364 | src = (wxColourDialog *) ptr; | |
365 | dest = (wxTopLevelWindow *) src; | |
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 | ||
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 | ||
393 | #define new_wxColourDialog(_swigarg0,_swigarg1) (new wxColourDialog(_swigarg0,_swigarg1)) | |
394 | static PyObject *_wrap_new_wxColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
395 | PyObject * _resultobj; | |
396 | wxColourDialog * _result; | |
397 | wxWindow * _arg0; | |
398 | wxColourData * _arg1 = (wxColourData *) NULL; | |
399 | PyObject * _argo0 = 0; | |
400 | PyObject * _argo1 = 0; | |
401 | char *_kwnames[] = { "parent","data", NULL }; | |
402 | char _ptemp[128]; | |
403 | ||
404 | self = self; | |
405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxColourDialog",_kwnames,&_argo0,&_argo1)) | |
406 | return NULL; | |
407 | if (_argo0) { | |
408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxColourDialog. Expected _wxWindow_p."); | |
411 | return NULL; | |
412 | } | |
413 | } | |
414 | if (_argo1) { | |
415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColourData_p")) { | |
417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxColourDialog. Expected _wxColourData_p."); | |
418 | return NULL; | |
419 | } | |
420 | } | |
421 | { | |
0e2ff151 | 422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
423 | _result = (wxColourDialog *)new_wxColourDialog(_arg0,_arg1); |
424 | ||
0e2ff151 | 425 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
426 | if (PyErr_Occurred()) return NULL; |
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 | } | |
434 | return _resultobj; | |
435 | } | |
436 | ||
437 | #define wxColourDialog_GetColourData(_swigobj) (_swigobj->GetColourData()) | |
438 | static PyObject *_wrap_wxColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
439 | PyObject * _resultobj; | |
440 | wxColourData * _result; | |
441 | wxColourDialog * _arg0; | |
442 | PyObject * _argo0 = 0; | |
443 | char *_kwnames[] = { "self", NULL }; | |
444 | char _ptemp[128]; | |
445 | ||
446 | self = self; | |
447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourDialog_GetColourData",_kwnames,&_argo0)) | |
448 | return NULL; | |
449 | if (_argo0) { | |
450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDialog_p")) { | |
452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDialog_GetColourData. Expected _wxColourDialog_p."); | |
453 | return NULL; | |
454 | } | |
455 | } | |
456 | { | |
0e2ff151 | 457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
458 | wxColourData & _result_ref = wxColourDialog_GetColourData(_arg0); |
459 | _result = (wxColourData *) &_result_ref; | |
460 | ||
0e2ff151 | 461 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
462 | if (PyErr_Occurred()) return NULL; |
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 | } | |
470 | return _resultobj; | |
471 | } | |
472 | ||
473 | #define wxColourDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
474 | static PyObject *_wrap_wxColourDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
475 | PyObject * _resultobj; | |
476 | int _result; | |
477 | wxColourDialog * _arg0; | |
478 | PyObject * _argo0 = 0; | |
479 | char *_kwnames[] = { "self", NULL }; | |
480 | ||
481 | self = self; | |
482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourDialog_ShowModal",_kwnames,&_argo0)) | |
483 | return NULL; | |
484 | if (_argo0) { | |
485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDialog_p")) { | |
487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDialog_ShowModal. Expected _wxColourDialog_p."); | |
488 | return NULL; | |
489 | } | |
490 | } | |
491 | { | |
0e2ff151 | 492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
493 | _result = (int )wxColourDialog_ShowModal(_arg0); |
494 | ||
0e2ff151 | 495 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
496 | if (PyErr_Occurred()) return NULL; |
497 | } _resultobj = Py_BuildValue("i",_result); | |
498 | return _resultobj; | |
499 | } | |
500 | ||
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 | ||
509 | static void *SwigwxDirDialogTowxTopLevelWindow(void *ptr) { | |
510 | wxDirDialog *src; | |
511 | wxTopLevelWindow *dest; | |
512 | src = (wxDirDialog *) ptr; | |
513 | dest = (wxTopLevelWindow *) src; | |
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 | ||
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 | ||
541 | #define new_wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
542 | static PyObject *_wrap_new_wxDirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
543 | PyObject * _resultobj; | |
544 | wxDirDialog * _result; | |
545 | wxWindow * _arg0; | |
546 | char * _arg1 = (char *) "Choose a directory"; | |
547 | char * _arg2 = (char *) ""; | |
548 | long _arg3 = (long ) 0; | |
549 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
550 | PyObject * _argo0 = 0; | |
551 | wxPoint temp; | |
552 | PyObject * _obj4 = 0; | |
553 | char *_kwnames[] = { "parent","message","defaultPath","style","pos", NULL }; | |
554 | char _ptemp[128]; | |
555 | ||
556 | self = self; | |
557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sslO:new_wxDirDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
558 | return NULL; | |
559 | if (_argo0) { | |
560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirDialog. Expected _wxWindow_p."); | |
563 | return NULL; | |
564 | } | |
565 | } | |
566 | if (_obj4) | |
567 | { | |
568 | _arg4 = &temp; | |
569 | if (! wxPoint_helper(_obj4, &_arg4)) | |
570 | return NULL; | |
571 | } | |
572 | { | |
0e2ff151 | 573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
574 | _result = (wxDirDialog *)new_wxDirDialog(_arg0,_arg1,_arg2,_arg3,*_arg4); |
575 | ||
0e2ff151 | 576 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
577 | if (PyErr_Occurred()) return NULL; |
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 | } | |
585 | return _resultobj; | |
586 | } | |
587 | ||
588 | #define wxDirDialog_GetPath(_swigobj) (_swigobj->GetPath()) | |
589 | static PyObject *_wrap_wxDirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
590 | PyObject * _resultobj; | |
591 | wxString * _result; | |
592 | wxDirDialog * _arg0; | |
593 | PyObject * _argo0 = 0; | |
594 | char *_kwnames[] = { "self", NULL }; | |
595 | ||
596 | self = self; | |
597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetPath",_kwnames,&_argo0)) | |
598 | return NULL; | |
599 | if (_argo0) { | |
600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetPath. Expected _wxDirDialog_p."); | |
603 | return NULL; | |
604 | } | |
605 | } | |
606 | { | |
0e2ff151 | 607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
608 | _result = new wxString (wxDirDialog_GetPath(_arg0)); |
609 | ||
0e2ff151 | 610 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
611 | if (PyErr_Occurred()) return NULL; |
612 | }{ | |
613 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
614 | } | |
615 | { | |
616 | delete _result; | |
617 | } | |
618 | return _resultobj; | |
619 | } | |
620 | ||
621 | #define wxDirDialog_GetMessage(_swigobj) (_swigobj->GetMessage()) | |
622 | static PyObject *_wrap_wxDirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
623 | PyObject * _resultobj; | |
624 | wxString * _result; | |
625 | wxDirDialog * _arg0; | |
626 | PyObject * _argo0 = 0; | |
627 | char *_kwnames[] = { "self", NULL }; | |
628 | ||
629 | self = self; | |
630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetMessage",_kwnames,&_argo0)) | |
631 | return NULL; | |
632 | if (_argo0) { | |
633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetMessage. Expected _wxDirDialog_p."); | |
636 | return NULL; | |
637 | } | |
638 | } | |
639 | { | |
0e2ff151 | 640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
641 | _result = new wxString (wxDirDialog_GetMessage(_arg0)); |
642 | ||
0e2ff151 | 643 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
644 | if (PyErr_Occurred()) return NULL; |
645 | }{ | |
646 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
647 | } | |
648 | { | |
649 | delete _result; | |
650 | } | |
651 | return _resultobj; | |
652 | } | |
653 | ||
654 | #define wxDirDialog_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
655 | static PyObject *_wrap_wxDirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
656 | PyObject * _resultobj; | |
657 | long _result; | |
658 | wxDirDialog * _arg0; | |
659 | PyObject * _argo0 = 0; | |
660 | char *_kwnames[] = { "self", NULL }; | |
661 | ||
662 | self = self; | |
663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetStyle",_kwnames,&_argo0)) | |
664 | return NULL; | |
665 | if (_argo0) { | |
666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetStyle. Expected _wxDirDialog_p."); | |
669 | return NULL; | |
670 | } | |
671 | } | |
672 | { | |
0e2ff151 | 673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
674 | _result = (long )wxDirDialog_GetStyle(_arg0); |
675 | ||
0e2ff151 | 676 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
677 | if (PyErr_Occurred()) return NULL; |
678 | } _resultobj = Py_BuildValue("l",_result); | |
679 | return _resultobj; | |
680 | } | |
681 | ||
682 | #define wxDirDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0)) | |
683 | static PyObject *_wrap_wxDirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
684 | PyObject * _resultobj; | |
685 | wxDirDialog * _arg0; | |
686 | wxString * _arg1; | |
687 | PyObject * _argo0 = 0; | |
688 | PyObject * _obj1 = 0; | |
689 | char *_kwnames[] = { "self","message", NULL }; | |
690 | ||
691 | self = self; | |
692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirDialog_SetMessage",_kwnames,&_argo0,&_obj1)) | |
693 | return NULL; | |
694 | if (_argo0) { | |
695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_SetMessage. Expected _wxDirDialog_p."); | |
698 | return NULL; | |
699 | } | |
700 | } | |
701 | { | |
702 | #if PYTHON_API_VERSION >= 1009 | |
703 | char* tmpPtr; int tmpSize; | |
704 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
705 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
706 | return NULL; | |
707 | } | |
708 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
709 | return NULL; | |
710 | _arg1 = new wxString(tmpPtr, tmpSize); | |
711 | #else | |
712 | if (!PyString_Check(_obj1)) { | |
713 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
714 | return NULL; | |
715 | } | |
716 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
717 | #endif | |
718 | } | |
719 | { | |
0e2ff151 | 720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
721 | wxDirDialog_SetMessage(_arg0,*_arg1); |
722 | ||
0e2ff151 | 723 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
724 | if (PyErr_Occurred()) return NULL; |
725 | } Py_INCREF(Py_None); | |
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)) | |
735 | static PyObject *_wrap_wxDirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
736 | PyObject * _resultobj; | |
737 | wxDirDialog * _arg0; | |
738 | wxString * _arg1; | |
739 | PyObject * _argo0 = 0; | |
740 | PyObject * _obj1 = 0; | |
741 | char *_kwnames[] = { "self","path", NULL }; | |
742 | ||
743 | self = self; | |
744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirDialog_SetPath",_kwnames,&_argo0,&_obj1)) | |
745 | return NULL; | |
746 | if (_argo0) { | |
747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_SetPath. Expected _wxDirDialog_p."); | |
750 | return NULL; | |
751 | } | |
752 | } | |
753 | { | |
754 | #if PYTHON_API_VERSION >= 1009 | |
755 | char* tmpPtr; int tmpSize; | |
756 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
757 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
758 | return NULL; | |
759 | } | |
760 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
761 | return NULL; | |
762 | _arg1 = new wxString(tmpPtr, tmpSize); | |
763 | #else | |
764 | if (!PyString_Check(_obj1)) { | |
765 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
766 | return NULL; | |
767 | } | |
768 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
769 | #endif | |
770 | } | |
771 | { | |
0e2ff151 | 772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
773 | wxDirDialog_SetPath(_arg0,*_arg1); |
774 | ||
0e2ff151 | 775 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
776 | if (PyErr_Occurred()) return NULL; |
777 | } Py_INCREF(Py_None); | |
778 | _resultobj = Py_None; | |
779 | { | |
780 | if (_obj1) | |
781 | delete _arg1; | |
782 | } | |
783 | return _resultobj; | |
784 | } | |
785 | ||
786 | #define wxDirDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
787 | static PyObject *_wrap_wxDirDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
788 | PyObject * _resultobj; | |
789 | int _result; | |
790 | wxDirDialog * _arg0; | |
791 | PyObject * _argo0 = 0; | |
792 | char *_kwnames[] = { "self", NULL }; | |
793 | ||
794 | self = self; | |
795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_ShowModal",_kwnames,&_argo0)) | |
796 | return NULL; | |
797 | if (_argo0) { | |
798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_ShowModal. Expected _wxDirDialog_p."); | |
801 | return NULL; | |
802 | } | |
803 | } | |
804 | { | |
0e2ff151 | 805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
806 | _result = (int )wxDirDialog_ShowModal(_arg0); |
807 | ||
0e2ff151 | 808 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
809 | if (PyErr_Occurred()) return NULL; |
810 | } _resultobj = Py_BuildValue("i",_result); | |
811 | return _resultobj; | |
812 | } | |
813 | ||
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 | ||
822 | static void *SwigwxFileDialogTowxTopLevelWindow(void *ptr) { | |
823 | wxFileDialog *src; | |
824 | wxTopLevelWindow *dest; | |
825 | src = (wxFileDialog *) ptr; | |
826 | dest = (wxTopLevelWindow *) src; | |
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 | ||
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 | ||
854 | #define new_wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
855 | static PyObject *_wrap_new_wxFileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
856 | PyObject * _resultobj; | |
857 | wxFileDialog * _result; | |
858 | wxWindow * _arg0; | |
859 | char * _arg1 = (char *) "Choose a file"; | |
860 | char * _arg2 = (char *) ""; | |
861 | char * _arg3 = (char *) ""; | |
862 | char * _arg4 = (char *) "*.*"; | |
863 | long _arg5 = (long ) 0; | |
864 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; | |
865 | PyObject * _argo0 = 0; | |
866 | wxPoint temp; | |
867 | PyObject * _obj6 = 0; | |
868 | char *_kwnames[] = { "parent","message","defaultDir","defaultFile","wildcard","style","pos", NULL }; | |
869 | char _ptemp[128]; | |
870 | ||
871 | self = self; | |
872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sssslO:new_wxFileDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6)) | |
873 | return NULL; | |
874 | if (_argo0) { | |
875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileDialog. Expected _wxWindow_p."); | |
878 | return NULL; | |
879 | } | |
880 | } | |
881 | if (_obj6) | |
882 | { | |
883 | _arg6 = &temp; | |
884 | if (! wxPoint_helper(_obj6, &_arg6)) | |
885 | return NULL; | |
886 | } | |
887 | { | |
0e2ff151 | 888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
889 | _result = (wxFileDialog *)new_wxFileDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6); |
890 | ||
0e2ff151 | 891 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
892 | if (PyErr_Occurred()) return NULL; |
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 | } | |
900 | return _resultobj; | |
901 | } | |
902 | ||
903 | #define wxFileDialog_GetDirectory(_swigobj) (_swigobj->GetDirectory()) | |
904 | static PyObject *_wrap_wxFileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject * _resultobj; | |
906 | wxString * _result; | |
907 | wxFileDialog * _arg0; | |
908 | PyObject * _argo0 = 0; | |
909 | char *_kwnames[] = { "self", NULL }; | |
910 | ||
911 | self = self; | |
912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetDirectory",_kwnames,&_argo0)) | |
913 | return NULL; | |
914 | if (_argo0) { | |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetDirectory. Expected _wxFileDialog_p."); | |
918 | return NULL; | |
919 | } | |
920 | } | |
921 | { | |
0e2ff151 | 922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
923 | _result = new wxString (wxFileDialog_GetDirectory(_arg0)); |
924 | ||
0e2ff151 | 925 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
926 | if (PyErr_Occurred()) return NULL; |
927 | }{ | |
928 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
929 | } | |
930 | { | |
931 | delete _result; | |
932 | } | |
933 | return _resultobj; | |
934 | } | |
935 | ||
936 | #define wxFileDialog_GetFilename(_swigobj) (_swigobj->GetFilename()) | |
937 | static PyObject *_wrap_wxFileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
938 | PyObject * _resultobj; | |
939 | wxString * _result; | |
940 | wxFileDialog * _arg0; | |
941 | PyObject * _argo0 = 0; | |
942 | char *_kwnames[] = { "self", NULL }; | |
943 | ||
944 | self = self; | |
945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilename",_kwnames,&_argo0)) | |
946 | return NULL; | |
947 | if (_argo0) { | |
948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilename. Expected _wxFileDialog_p."); | |
951 | return NULL; | |
952 | } | |
953 | } | |
954 | { | |
0e2ff151 | 955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
956 | _result = new wxString (wxFileDialog_GetFilename(_arg0)); |
957 | ||
0e2ff151 | 958 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
959 | if (PyErr_Occurred()) return NULL; |
960 | }{ | |
961 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
962 | } | |
963 | { | |
964 | delete _result; | |
965 | } | |
966 | return _resultobj; | |
967 | } | |
968 | ||
969 | #define wxFileDialog_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
970 | static PyObject *_wrap_wxFileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
971 | PyObject * _resultobj; | |
972 | int _result; | |
973 | wxFileDialog * _arg0; | |
974 | PyObject * _argo0 = 0; | |
975 | char *_kwnames[] = { "self", NULL }; | |
976 | ||
977 | self = self; | |
978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilterIndex",_kwnames,&_argo0)) | |
979 | return NULL; | |
980 | if (_argo0) { | |
981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilterIndex. Expected _wxFileDialog_p."); | |
984 | return NULL; | |
985 | } | |
986 | } | |
987 | { | |
0e2ff151 | 988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
989 | _result = (int )wxFileDialog_GetFilterIndex(_arg0); |
990 | ||
0e2ff151 | 991 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
992 | if (PyErr_Occurred()) return NULL; |
993 | } _resultobj = Py_BuildValue("i",_result); | |
994 | return _resultobj; | |
995 | } | |
996 | ||
997 | #define wxFileDialog_GetMessage(_swigobj) (_swigobj->GetMessage()) | |
998 | static PyObject *_wrap_wxFileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
999 | PyObject * _resultobj; | |
1000 | wxString * _result; | |
1001 | wxFileDialog * _arg0; | |
1002 | PyObject * _argo0 = 0; | |
1003 | char *_kwnames[] = { "self", NULL }; | |
1004 | ||
1005 | self = self; | |
1006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetMessage",_kwnames,&_argo0)) | |
1007 | return NULL; | |
1008 | if (_argo0) { | |
1009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetMessage. Expected _wxFileDialog_p."); | |
1012 | return NULL; | |
1013 | } | |
1014 | } | |
1015 | { | |
0e2ff151 | 1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1017 | _result = new wxString (wxFileDialog_GetMessage(_arg0)); |
1018 | ||
0e2ff151 | 1019 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1020 | if (PyErr_Occurred()) return NULL; |
1021 | }{ | |
1022 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1023 | } | |
1024 | { | |
1025 | delete _result; | |
1026 | } | |
1027 | return _resultobj; | |
1028 | } | |
1029 | ||
1030 | #define wxFileDialog_GetPath(_swigobj) (_swigobj->GetPath()) | |
1031 | static PyObject *_wrap_wxFileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1032 | PyObject * _resultobj; | |
1033 | wxString * _result; | |
1034 | wxFileDialog * _arg0; | |
1035 | PyObject * _argo0 = 0; | |
1036 | char *_kwnames[] = { "self", NULL }; | |
1037 | ||
1038 | self = self; | |
1039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetPath",_kwnames,&_argo0)) | |
1040 | return NULL; | |
1041 | if (_argo0) { | |
1042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetPath. Expected _wxFileDialog_p."); | |
1045 | return NULL; | |
1046 | } | |
1047 | } | |
1048 | { | |
0e2ff151 | 1049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1050 | _result = new wxString (wxFileDialog_GetPath(_arg0)); |
1051 | ||
0e2ff151 | 1052 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1053 | if (PyErr_Occurred()) return NULL; |
1054 | }{ | |
1055 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1056 | } | |
1057 | { | |
1058 | delete _result; | |
1059 | } | |
1060 | return _resultobj; | |
1061 | } | |
1062 | ||
1063 | #define wxFileDialog_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1064 | static PyObject *_wrap_wxFileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1065 | PyObject * _resultobj; | |
1066 | long _result; | |
1067 | wxFileDialog * _arg0; | |
1068 | PyObject * _argo0 = 0; | |
1069 | char *_kwnames[] = { "self", NULL }; | |
1070 | ||
1071 | self = self; | |
1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetStyle",_kwnames,&_argo0)) | |
1073 | return NULL; | |
1074 | if (_argo0) { | |
1075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetStyle. Expected _wxFileDialog_p."); | |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
1081 | { | |
0e2ff151 | 1082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1083 | _result = (long )wxFileDialog_GetStyle(_arg0); |
1084 | ||
0e2ff151 | 1085 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1086 | if (PyErr_Occurred()) return NULL; |
1087 | } _resultobj = Py_BuildValue("l",_result); | |
1088 | return _resultobj; | |
1089 | } | |
1090 | ||
1091 | #define wxFileDialog_GetWildcard(_swigobj) (_swigobj->GetWildcard()) | |
1092 | static PyObject *_wrap_wxFileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1093 | PyObject * _resultobj; | |
1094 | wxString * _result; | |
1095 | wxFileDialog * _arg0; | |
1096 | PyObject * _argo0 = 0; | |
1097 | char *_kwnames[] = { "self", NULL }; | |
1098 | ||
1099 | self = self; | |
1100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetWildcard",_kwnames,&_argo0)) | |
1101 | return NULL; | |
1102 | if (_argo0) { | |
1103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetWildcard. Expected _wxFileDialog_p."); | |
1106 | return NULL; | |
1107 | } | |
1108 | } | |
1109 | { | |
0e2ff151 | 1110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1111 | _result = new wxString (wxFileDialog_GetWildcard(_arg0)); |
1112 | ||
0e2ff151 | 1113 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1114 | if (PyErr_Occurred()) return NULL; |
1115 | }{ | |
1116 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1117 | } | |
1118 | { | |
1119 | delete _result; | |
1120 | } | |
1121 | return _resultobj; | |
1122 | } | |
1123 | ||
1124 | #define wxFileDialog_SetDirectory(_swigobj,_swigarg0) (_swigobj->SetDirectory(_swigarg0)) | |
1125 | static PyObject *_wrap_wxFileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1126 | PyObject * _resultobj; | |
1127 | wxFileDialog * _arg0; | |
1128 | wxString * _arg1; | |
1129 | PyObject * _argo0 = 0; | |
1130 | PyObject * _obj1 = 0; | |
1131 | char *_kwnames[] = { "self","directory", NULL }; | |
1132 | ||
1133 | self = self; | |
1134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetDirectory",_kwnames,&_argo0,&_obj1)) | |
1135 | return NULL; | |
1136 | if (_argo0) { | |
1137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetDirectory. Expected _wxFileDialog_p."); | |
1140 | return NULL; | |
1141 | } | |
1142 | } | |
1143 | { | |
1144 | #if PYTHON_API_VERSION >= 1009 | |
1145 | char* tmpPtr; int tmpSize; | |
1146 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1147 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1148 | return NULL; | |
1149 | } | |
1150 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1151 | return NULL; | |
1152 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1153 | #else | |
1154 | if (!PyString_Check(_obj1)) { | |
1155 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1156 | return NULL; | |
1157 | } | |
1158 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1159 | #endif | |
1160 | } | |
1161 | { | |
0e2ff151 | 1162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1163 | wxFileDialog_SetDirectory(_arg0,*_arg1); |
1164 | ||
0e2ff151 | 1165 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1166 | if (PyErr_Occurred()) return NULL; |
1167 | } Py_INCREF(Py_None); | |
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)) | |
1177 | static PyObject *_wrap_wxFileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1178 | PyObject * _resultobj; | |
1179 | wxFileDialog * _arg0; | |
1180 | wxString * _arg1; | |
1181 | PyObject * _argo0 = 0; | |
1182 | PyObject * _obj1 = 0; | |
1183 | char *_kwnames[] = { "self","setfilename", NULL }; | |
1184 | ||
1185 | self = self; | |
1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetFilename",_kwnames,&_argo0,&_obj1)) | |
1187 | return NULL; | |
1188 | if (_argo0) { | |
1189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetFilename. Expected _wxFileDialog_p."); | |
1192 | return NULL; | |
1193 | } | |
1194 | } | |
1195 | { | |
1196 | #if PYTHON_API_VERSION >= 1009 | |
1197 | char* tmpPtr; int tmpSize; | |
1198 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1199 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1200 | return NULL; | |
1201 | } | |
1202 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1203 | return NULL; | |
1204 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1205 | #else | |
1206 | if (!PyString_Check(_obj1)) { | |
1207 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1208 | return NULL; | |
1209 | } | |
1210 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1211 | #endif | |
1212 | } | |
1213 | { | |
0e2ff151 | 1214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1215 | wxFileDialog_SetFilename(_arg0,*_arg1); |
1216 | ||
0e2ff151 | 1217 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1218 | if (PyErr_Occurred()) return NULL; |
1219 | } Py_INCREF(Py_None); | |
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)) | |
1229 | static PyObject *_wrap_wxFileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1230 | PyObject * _resultobj; | |
1231 | wxFileDialog * _arg0; | |
1232 | int _arg1; | |
1233 | PyObject * _argo0 = 0; | |
1234 | char *_kwnames[] = { "self","filterIndex", NULL }; | |
1235 | ||
1236 | self = self; | |
1237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileDialog_SetFilterIndex",_kwnames,&_argo0,&_arg1)) | |
1238 | return NULL; | |
1239 | if (_argo0) { | |
1240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetFilterIndex. Expected _wxFileDialog_p."); | |
1243 | return NULL; | |
1244 | } | |
1245 | } | |
1246 | { | |
0e2ff151 | 1247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1248 | wxFileDialog_SetFilterIndex(_arg0,_arg1); |
1249 | ||
0e2ff151 | 1250 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1251 | if (PyErr_Occurred()) return NULL; |
1252 | } Py_INCREF(Py_None); | |
1253 | _resultobj = Py_None; | |
1254 | return _resultobj; | |
1255 | } | |
1256 | ||
1257 | #define wxFileDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0)) | |
1258 | static PyObject *_wrap_wxFileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1259 | PyObject * _resultobj; | |
1260 | wxFileDialog * _arg0; | |
1261 | wxString * _arg1; | |
1262 | PyObject * _argo0 = 0; | |
1263 | PyObject * _obj1 = 0; | |
1264 | char *_kwnames[] = { "self","message", NULL }; | |
1265 | ||
1266 | self = self; | |
1267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetMessage",_kwnames,&_argo0,&_obj1)) | |
1268 | return NULL; | |
1269 | if (_argo0) { | |
1270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetMessage. Expected _wxFileDialog_p."); | |
1273 | return NULL; | |
1274 | } | |
1275 | } | |
1276 | { | |
1277 | #if PYTHON_API_VERSION >= 1009 | |
1278 | char* tmpPtr; int tmpSize; | |
1279 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1280 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1281 | return NULL; | |
1282 | } | |
1283 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1284 | return NULL; | |
1285 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1286 | #else | |
1287 | if (!PyString_Check(_obj1)) { | |
1288 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1289 | return NULL; | |
1290 | } | |
1291 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1292 | #endif | |
1293 | } | |
1294 | { | |
0e2ff151 | 1295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1296 | wxFileDialog_SetMessage(_arg0,*_arg1); |
1297 | ||
0e2ff151 | 1298 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1299 | if (PyErr_Occurred()) return NULL; |
1300 | } Py_INCREF(Py_None); | |
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)) | |
1310 | static PyObject *_wrap_wxFileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1311 | PyObject * _resultobj; | |
1312 | wxFileDialog * _arg0; | |
1313 | wxString * _arg1; | |
1314 | PyObject * _argo0 = 0; | |
1315 | PyObject * _obj1 = 0; | |
1316 | char *_kwnames[] = { "self","path", NULL }; | |
1317 | ||
1318 | self = self; | |
1319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetPath",_kwnames,&_argo0,&_obj1)) | |
1320 | return NULL; | |
1321 | if (_argo0) { | |
1322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetPath. Expected _wxFileDialog_p."); | |
1325 | return NULL; | |
1326 | } | |
1327 | } | |
1328 | { | |
1329 | #if PYTHON_API_VERSION >= 1009 | |
1330 | char* tmpPtr; int tmpSize; | |
1331 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1332 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1333 | return NULL; | |
1334 | } | |
1335 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1336 | return NULL; | |
1337 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1338 | #else | |
1339 | if (!PyString_Check(_obj1)) { | |
1340 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1341 | return NULL; | |
1342 | } | |
1343 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1344 | #endif | |
1345 | } | |
1346 | { | |
0e2ff151 | 1347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1348 | wxFileDialog_SetPath(_arg0,*_arg1); |
1349 | ||
0e2ff151 | 1350 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1351 | if (PyErr_Occurred()) return NULL; |
1352 | } Py_INCREF(Py_None); | |
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)) | |
1362 | static PyObject *_wrap_wxFileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject * _resultobj; | |
1364 | wxFileDialog * _arg0; | |
1365 | long _arg1; | |
1366 | PyObject * _argo0 = 0; | |
1367 | char *_kwnames[] = { "self","style", NULL }; | |
1368 | ||
1369 | self = self; | |
1370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxFileDialog_SetStyle",_kwnames,&_argo0,&_arg1)) | |
1371 | return NULL; | |
1372 | if (_argo0) { | |
1373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetStyle. Expected _wxFileDialog_p."); | |
1376 | return NULL; | |
1377 | } | |
1378 | } | |
1379 | { | |
0e2ff151 | 1380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1381 | wxFileDialog_SetStyle(_arg0,_arg1); |
1382 | ||
0e2ff151 | 1383 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1384 | if (PyErr_Occurred()) return NULL; |
1385 | } Py_INCREF(Py_None); | |
1386 | _resultobj = Py_None; | |
1387 | return _resultobj; | |
1388 | } | |
1389 | ||
1390 | #define wxFileDialog_SetWildcard(_swigobj,_swigarg0) (_swigobj->SetWildcard(_swigarg0)) | |
1391 | static PyObject *_wrap_wxFileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1392 | PyObject * _resultobj; | |
1393 | wxFileDialog * _arg0; | |
1394 | wxString * _arg1; | |
1395 | PyObject * _argo0 = 0; | |
1396 | PyObject * _obj1 = 0; | |
1397 | char *_kwnames[] = { "self","wildCard", NULL }; | |
1398 | ||
1399 | self = self; | |
1400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetWildcard",_kwnames,&_argo0,&_obj1)) | |
1401 | return NULL; | |
1402 | if (_argo0) { | |
1403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetWildcard. Expected _wxFileDialog_p."); | |
1406 | return NULL; | |
1407 | } | |
1408 | } | |
1409 | { | |
1410 | #if PYTHON_API_VERSION >= 1009 | |
1411 | char* tmpPtr; int tmpSize; | |
1412 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1413 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1414 | return NULL; | |
1415 | } | |
1416 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1417 | return NULL; | |
1418 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1419 | #else | |
1420 | if (!PyString_Check(_obj1)) { | |
1421 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1422 | return NULL; | |
1423 | } | |
1424 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1425 | #endif | |
1426 | } | |
1427 | { | |
0e2ff151 | 1428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1429 | wxFileDialog_SetWildcard(_arg0,*_arg1); |
1430 | ||
0e2ff151 | 1431 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1432 | if (PyErr_Occurred()) return NULL; |
1433 | } Py_INCREF(Py_None); | |
1434 | _resultobj = Py_None; | |
1435 | { | |
1436 | if (_obj1) | |
1437 | delete _arg1; | |
1438 | } | |
1439 | return _resultobj; | |
1440 | } | |
1441 | ||
1442 | #define wxFileDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
1443 | static PyObject *_wrap_wxFileDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1444 | PyObject * _resultobj; | |
1445 | int _result; | |
1446 | wxFileDialog * _arg0; | |
1447 | PyObject * _argo0 = 0; | |
1448 | char *_kwnames[] = { "self", NULL }; | |
1449 | ||
1450 | self = self; | |
1451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_ShowModal",_kwnames,&_argo0)) | |
1452 | return NULL; | |
1453 | if (_argo0) { | |
1454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
1456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_ShowModal. Expected _wxFileDialog_p."); | |
1457 | return NULL; | |
1458 | } | |
1459 | } | |
1460 | { | |
0e2ff151 | 1461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1462 | _result = (int )wxFileDialog_ShowModal(_arg0); |
1463 | ||
0e2ff151 | 1464 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1465 | if (PyErr_Occurred()) return NULL; |
1466 | } _resultobj = Py_BuildValue("i",_result); | |
1467 | return _resultobj; | |
1468 | } | |
1469 | ||
1470 | static PyObject * wxFileDialog_GetFilenames(wxFileDialog *self) { | |
1471 | wxArrayString arr; | |
1472 | self->GetFilenames(arr); | |
b6e5c445 | 1473 | return wxArrayString2PyList_helper(arr); |
e6056257 RD |
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 | { | |
0e2ff151 | 1493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1494 | _result = (PyObject *)wxFileDialog_GetFilenames(_arg0); |
1495 | ||
0e2ff151 | 1496 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1497 | if (PyErr_Occurred()) return NULL; |
1498 | }{ | |
1499 | _resultobj = _result; | |
1500 | } | |
1501 | return _resultobj; | |
1502 | } | |
1503 | ||
1504 | static PyObject * wxFileDialog_GetPaths(wxFileDialog *self) { | |
1505 | wxArrayString arr; | |
1506 | self->GetPaths(arr); | |
b6e5c445 | 1507 | return wxArrayString2PyList_helper(arr); |
e6056257 RD |
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 | { | |
0e2ff151 | 1527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1528 | _result = (PyObject *)wxFileDialog_GetPaths(_arg0); |
1529 | ||
0e2ff151 | 1530 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1531 | if (PyErr_Occurred()) return NULL; |
1532 | }{ | |
1533 | _resultobj = _result; | |
1534 | } | |
1535 | return _resultobj; | |
1536 | } | |
1537 | ||
ca31b3da 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 | ||
e6056257 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 | ||
1781 | static void *SwigwxSingleChoiceDialogTowxTopLevelWindow(void *ptr) { | |
1782 | wxSingleChoiceDialog *src; | |
1783 | wxTopLevelWindow *dest; | |
1784 | src = (wxSingleChoiceDialog *) ptr; | |
1785 | dest = (wxTopLevelWindow *) src; | |
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 | ||
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 | ||
1813 | static wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString *message,wxString *caption,int LCOUNT,wxString *choices,long style,wxPoint *pos) { | |
1814 | return new wxSingleChoiceDialog(parent, *message, *caption, | |
1815 | LCOUNT, choices, NULL, style, *pos); | |
1816 | } | |
1817 | ||
1818 | static PyObject *_wrap_new_wxSingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1819 | PyObject * _resultobj; | |
1820 | wxSingleChoiceDialog * _result; | |
1821 | wxWindow * _arg0; | |
1822 | wxString * _arg1; | |
1823 | wxString * _arg2; | |
1824 | int _arg3; | |
1825 | wxString * _arg4; | |
ca31b3da | 1826 | long _arg5 = (long ) (wxCHOICEDLG_STYLE); |
e6056257 RD |
1827 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; |
1828 | PyObject * _argo0 = 0; | |
1829 | PyObject * _obj1 = 0; | |
1830 | PyObject * _obj2 = 0; | |
1831 | PyObject * _obj4 = 0; | |
1832 | wxPoint temp; | |
1833 | PyObject * _obj6 = 0; | |
1834 | char *_kwnames[] = { "parent","message","caption","choices","style","pos", NULL }; | |
1835 | char _ptemp[128]; | |
1836 | ||
1837 | self = self; | |
1838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|lO:new_wxSingleChoiceDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj4,&_arg5,&_obj6)) | |
1839 | return NULL; | |
1840 | if (_argo0) { | |
1841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSingleChoiceDialog. Expected _wxWindow_p."); | |
1844 | return NULL; | |
1845 | } | |
1846 | } | |
1847 | { | |
1848 | #if PYTHON_API_VERSION >= 1009 | |
1849 | char* tmpPtr; int tmpSize; | |
1850 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1851 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1852 | return NULL; | |
1853 | } | |
1854 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1855 | return NULL; | |
1856 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1857 | #else | |
1858 | if (!PyString_Check(_obj1)) { | |
1859 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1860 | return NULL; | |
1861 | } | |
1862 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
1863 | #endif | |
1864 | } | |
1865 | { | |
1866 | #if PYTHON_API_VERSION >= 1009 | |
1867 | char* tmpPtr; int tmpSize; | |
1868 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1869 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1870 | return NULL; | |
1871 | } | |
1872 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1873 | return NULL; | |
1874 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1875 | #else | |
1876 | if (!PyString_Check(_obj2)) { | |
1877 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1878 | return NULL; | |
1879 | } | |
1880 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
1881 | #endif | |
1882 | } | |
1883 | if (_obj4) | |
1884 | { | |
1885 | _arg4 = wxString_LIST_helper(_obj4); | |
1886 | if (_arg4 == NULL) { | |
1887 | return NULL; | |
1888 | } | |
1889 | } | |
1890 | if (_obj6) | |
1891 | { | |
1892 | _arg6 = &temp; | |
1893 | if (! wxPoint_helper(_obj6, &_arg6)) | |
1894 | return NULL; | |
1895 | } | |
1896 | { | |
1897 | if (_obj4) { | |
1898 | _arg3 = PyList_Size(_obj4); | |
1899 | } | |
1900 | else { | |
1901 | _arg3 = 0; | |
1902 | } | |
1903 | } | |
1904 | { | |
0e2ff151 | 1905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1906 | _result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
1907 | ||
0e2ff151 | 1908 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1909 | if (PyErr_Occurred()) return NULL; |
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 | } | |
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()) | |
1932 | static PyObject *_wrap_wxSingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1933 | PyObject * _resultobj; | |
1934 | int _result; | |
1935 | wxSingleChoiceDialog * _arg0; | |
1936 | PyObject * _argo0 = 0; | |
1937 | char *_kwnames[] = { "self", NULL }; | |
1938 | ||
1939 | self = self; | |
1940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetSelection",_kwnames,&_argo0)) | |
1941 | return NULL; | |
1942 | if (_argo0) { | |
1943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
1945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetSelection. Expected _wxSingleChoiceDialog_p."); | |
1946 | return NULL; | |
1947 | } | |
1948 | } | |
1949 | { | |
0e2ff151 | 1950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1951 | _result = (int )wxSingleChoiceDialog_GetSelection(_arg0); |
1952 | ||
0e2ff151 | 1953 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1954 | if (PyErr_Occurred()) return NULL; |
1955 | } _resultobj = Py_BuildValue("i",_result); | |
1956 | return _resultobj; | |
1957 | } | |
1958 | ||
1959 | #define wxSingleChoiceDialog_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
1960 | static PyObject *_wrap_wxSingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1961 | PyObject * _resultobj; | |
1962 | wxString * _result; | |
1963 | wxSingleChoiceDialog * _arg0; | |
1964 | PyObject * _argo0 = 0; | |
1965 | char *_kwnames[] = { "self", NULL }; | |
1966 | ||
1967 | self = self; | |
1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetStringSelection",_kwnames,&_argo0)) | |
1969 | return NULL; | |
1970 | if (_argo0) { | |
1971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
1973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetStringSelection. Expected _wxSingleChoiceDialog_p."); | |
1974 | return NULL; | |
1975 | } | |
1976 | } | |
1977 | { | |
0e2ff151 | 1978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1979 | _result = new wxString (wxSingleChoiceDialog_GetStringSelection(_arg0)); |
1980 | ||
0e2ff151 | 1981 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1982 | if (PyErr_Occurred()) return NULL; |
1983 | }{ | |
1984 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1985 | } | |
1986 | { | |
1987 | delete _result; | |
1988 | } | |
1989 | return _resultobj; | |
1990 | } | |
1991 | ||
1992 | #define wxSingleChoiceDialog_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
1993 | static PyObject *_wrap_wxSingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1994 | PyObject * _resultobj; | |
1995 | wxSingleChoiceDialog * _arg0; | |
1996 | int _arg1; | |
1997 | PyObject * _argo0 = 0; | |
1998 | char *_kwnames[] = { "self","sel", NULL }; | |
1999 | ||
2000 | self = self; | |
2001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSingleChoiceDialog_SetSelection",_kwnames,&_argo0,&_arg1)) | |
2002 | return NULL; | |
2003 | if (_argo0) { | |
2004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
2006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_SetSelection. Expected _wxSingleChoiceDialog_p."); | |
2007 | return NULL; | |
2008 | } | |
2009 | } | |
2010 | { | |
0e2ff151 | 2011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2012 | wxSingleChoiceDialog_SetSelection(_arg0,_arg1); |
2013 | ||
0e2ff151 | 2014 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2015 | if (PyErr_Occurred()) return NULL; |
2016 | } Py_INCREF(Py_None); | |
2017 | _resultobj = Py_None; | |
2018 | return _resultobj; | |
2019 | } | |
2020 | ||
2021 | #define wxSingleChoiceDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
2022 | static PyObject *_wrap_wxSingleChoiceDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2023 | PyObject * _resultobj; | |
2024 | int _result; | |
2025 | wxSingleChoiceDialog * _arg0; | |
2026 | PyObject * _argo0 = 0; | |
2027 | char *_kwnames[] = { "self", NULL }; | |
2028 | ||
2029 | self = self; | |
2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_ShowModal",_kwnames,&_argo0)) | |
2031 | return NULL; | |
2032 | if (_argo0) { | |
2033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
2035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_ShowModal. Expected _wxSingleChoiceDialog_p."); | |
2036 | return NULL; | |
2037 | } | |
2038 | } | |
2039 | { | |
0e2ff151 | 2040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2041 | _result = (int )wxSingleChoiceDialog_ShowModal(_arg0); |
2042 | ||
0e2ff151 | 2043 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2044 | if (PyErr_Occurred()) return NULL; |
2045 | } _resultobj = Py_BuildValue("i",_result); | |
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 | ||
2057 | static void *SwigwxTextEntryDialogTowxTopLevelWindow(void *ptr) { | |
2058 | wxTextEntryDialog *src; | |
2059 | wxTopLevelWindow *dest; | |
2060 | src = (wxTextEntryDialog *) ptr; | |
2061 | dest = (wxTopLevelWindow *) src; | |
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 | ||
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 | ||
2089 | #define new_wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2090 | static PyObject *_wrap_new_wxTextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2091 | PyObject * _resultobj; | |
2092 | wxTextEntryDialog * _result; | |
2093 | wxWindow * _arg0; | |
2094 | char * _arg1; | |
2095 | char * _arg2 = (char *) "Input Text"; | |
2096 | char * _arg3 = (char *) ""; | |
2097 | long _arg4 = (long ) wxOK|wxCANCEL|wxCENTRE; | |
2098 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; | |
2099 | PyObject * _argo0 = 0; | |
2100 | wxPoint temp; | |
2101 | PyObject * _obj5 = 0; | |
2102 | char *_kwnames[] = { "parent","message","caption","defaultValue","style","pos", NULL }; | |
2103 | char _ptemp[128]; | |
2104 | ||
2105 | self = self; | |
2106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|sslO:new_wxTextEntryDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5)) | |
2107 | return NULL; | |
2108 | if (_argo0) { | |
2109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextEntryDialog. Expected _wxWindow_p."); | |
2112 | return NULL; | |
2113 | } | |
2114 | } | |
2115 | if (_obj5) | |
2116 | { | |
2117 | _arg5 = &temp; | |
2118 | if (! wxPoint_helper(_obj5, &_arg5)) | |
2119 | return NULL; | |
2120 | } | |
2121 | { | |
0e2ff151 | 2122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2123 | _result = (wxTextEntryDialog *)new_wxTextEntryDialog(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5); |
2124 | ||
0e2ff151 | 2125 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2126 | if (PyErr_Occurred()) return NULL; |
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 | } | |
2134 | return _resultobj; | |
2135 | } | |
2136 | ||
2137 | #define wxTextEntryDialog_GetValue(_swigobj) (_swigobj->GetValue()) | |
2138 | static PyObject *_wrap_wxTextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2139 | PyObject * _resultobj; | |
2140 | wxString * _result; | |
2141 | wxTextEntryDialog * _arg0; | |
2142 | PyObject * _argo0 = 0; | |
2143 | char *_kwnames[] = { "self", NULL }; | |
2144 | ||
2145 | self = self; | |
2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_GetValue",_kwnames,&_argo0)) | |
2147 | return NULL; | |
2148 | if (_argo0) { | |
2149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
2151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_GetValue. Expected _wxTextEntryDialog_p."); | |
2152 | return NULL; | |
2153 | } | |
2154 | } | |
2155 | { | |
0e2ff151 | 2156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2157 | _result = new wxString (wxTextEntryDialog_GetValue(_arg0)); |
2158 | ||
0e2ff151 | 2159 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2160 | if (PyErr_Occurred()) return NULL; |
2161 | }{ | |
2162 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2163 | } | |
2164 | { | |
2165 | delete _result; | |
2166 | } | |
2167 | return _resultobj; | |
2168 | } | |
2169 | ||
2170 | #define wxTextEntryDialog_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
2171 | static PyObject *_wrap_wxTextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2172 | PyObject * _resultobj; | |
2173 | wxTextEntryDialog * _arg0; | |
2174 | wxString * _arg1; | |
2175 | PyObject * _argo0 = 0; | |
2176 | PyObject * _obj1 = 0; | |
2177 | char *_kwnames[] = { "self","value", NULL }; | |
2178 | ||
2179 | self = self; | |
2180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextEntryDialog_SetValue",_kwnames,&_argo0,&_obj1)) | |
2181 | return NULL; | |
2182 | if (_argo0) { | |
2183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
2185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_SetValue. Expected _wxTextEntryDialog_p."); | |
2186 | return NULL; | |
2187 | } | |
2188 | } | |
2189 | { | |
2190 | #if PYTHON_API_VERSION >= 1009 | |
2191 | char* tmpPtr; int tmpSize; | |
2192 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2193 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2194 | return NULL; | |
2195 | } | |
2196 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2197 | return NULL; | |
2198 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2199 | #else | |
2200 | if (!PyString_Check(_obj1)) { | |
2201 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2202 | return NULL; | |
2203 | } | |
2204 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2205 | #endif | |
2206 | } | |
2207 | { | |
0e2ff151 | 2208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2209 | wxTextEntryDialog_SetValue(_arg0,*_arg1); |
2210 | ||
0e2ff151 | 2211 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2212 | if (PyErr_Occurred()) return NULL; |
2213 | } Py_INCREF(Py_None); | |
2214 | _resultobj = Py_None; | |
2215 | { | |
2216 | if (_obj1) | |
2217 | delete _arg1; | |
2218 | } | |
2219 | return _resultobj; | |
2220 | } | |
2221 | ||
2222 | #define wxTextEntryDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
2223 | static PyObject *_wrap_wxTextEntryDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2224 | PyObject * _resultobj; | |
2225 | int _result; | |
2226 | wxTextEntryDialog * _arg0; | |
2227 | PyObject * _argo0 = 0; | |
2228 | char *_kwnames[] = { "self", NULL }; | |
2229 | ||
2230 | self = self; | |
2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_ShowModal",_kwnames,&_argo0)) | |
2232 | return NULL; | |
2233 | if (_argo0) { | |
2234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
2236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_ShowModal. Expected _wxTextEntryDialog_p."); | |
2237 | return NULL; | |
2238 | } | |
2239 | } | |
2240 | { | |
0e2ff151 | 2241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2242 | _result = (int )wxTextEntryDialog_ShowModal(_arg0); |
2243 | ||
0e2ff151 | 2244 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2245 | if (PyErr_Occurred()) return NULL; |
2246 | } _resultobj = Py_BuildValue("i",_result); | |
2247 | return _resultobj; | |
2248 | } | |
2249 | ||
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 | ||
2258 | #define new_wxFontData() (new wxFontData()) | |
2259 | static PyObject *_wrap_new_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2260 | PyObject * _resultobj; | |
2261 | wxFontData * _result; | |
2262 | char *_kwnames[] = { NULL }; | |
2263 | char _ptemp[128]; | |
2264 | ||
2265 | self = self; | |
2266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontData",_kwnames)) | |
2267 | return NULL; | |
2268 | { | |
0e2ff151 | 2269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2270 | _result = (wxFontData *)new_wxFontData(); |
2271 | ||
0e2ff151 | 2272 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2273 | if (PyErr_Occurred()) return NULL; |
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 | } | |
2281 | return _resultobj; | |
2282 | } | |
2283 | ||
2284 | #define delete_wxFontData(_swigobj) (delete _swigobj) | |
2285 | static PyObject *_wrap_delete_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2286 | PyObject * _resultobj; | |
2287 | wxFontData * _arg0; | |
2288 | PyObject * _argo0 = 0; | |
2289 | char *_kwnames[] = { "self", NULL }; | |
2290 | ||
2291 | self = self; | |
2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontData",_kwnames,&_argo0)) | |
2293 | return NULL; | |
2294 | if (_argo0) { | |
2295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontData. Expected _wxFontData_p."); | |
2298 | return NULL; | |
2299 | } | |
2300 | } | |
2301 | { | |
0e2ff151 | 2302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2303 | delete_wxFontData(_arg0); |
2304 | ||
0e2ff151 | 2305 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2306 | if (PyErr_Occurred()) return NULL; |
2307 | } Py_INCREF(Py_None); | |
2308 | _resultobj = Py_None; | |
2309 | return _resultobj; | |
2310 | } | |
2311 | ||
2312 | #define wxFontData_EnableEffects(_swigobj,_swigarg0) (_swigobj->EnableEffects(_swigarg0)) | |
2313 | static PyObject *_wrap_wxFontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2314 | PyObject * _resultobj; | |
2315 | wxFontData * _arg0; | |
2316 | bool _arg1; | |
2317 | PyObject * _argo0 = 0; | |
2318 | int tempbool1; | |
2319 | char *_kwnames[] = { "self","enable", NULL }; | |
2320 | ||
2321 | self = self; | |
2322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_EnableEffects",_kwnames,&_argo0,&tempbool1)) | |
2323 | return NULL; | |
2324 | if (_argo0) { | |
2325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
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; | |
2332 | { | |
0e2ff151 | 2333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2334 | wxFontData_EnableEffects(_arg0,_arg1); |
2335 | ||
0e2ff151 | 2336 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2337 | if (PyErr_Occurred()) return NULL; |
2338 | } Py_INCREF(Py_None); | |
2339 | _resultobj = Py_None; | |
2340 | return _resultobj; | |
2341 | } | |
2342 | ||
2343 | #define wxFontData_GetAllowSymbols(_swigobj) (_swigobj->GetAllowSymbols()) | |
2344 | static PyObject *_wrap_wxFontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2345 | PyObject * _resultobj; | |
2346 | bool _result; | |
2347 | wxFontData * _arg0; | |
2348 | PyObject * _argo0 = 0; | |
2349 | char *_kwnames[] = { "self", NULL }; | |
2350 | ||
2351 | self = self; | |
2352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetAllowSymbols",_kwnames,&_argo0)) | |
2353 | return NULL; | |
2354 | if (_argo0) { | |
2355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetAllowSymbols. Expected _wxFontData_p."); | |
2358 | return NULL; | |
2359 | } | |
2360 | } | |
2361 | { | |
0e2ff151 | 2362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2363 | _result = (bool )wxFontData_GetAllowSymbols(_arg0); |
2364 | ||
0e2ff151 | 2365 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2366 | if (PyErr_Occurred()) return NULL; |
2367 | } _resultobj = Py_BuildValue("i",_result); | |
2368 | return _resultobj; | |
2369 | } | |
2370 | ||
2371 | #define wxFontData_GetColour(_swigobj) (_swigobj->GetColour()) | |
2372 | static PyObject *_wrap_wxFontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2373 | PyObject * _resultobj; | |
2374 | wxColour * _result; | |
2375 | wxFontData * _arg0; | |
2376 | PyObject * _argo0 = 0; | |
2377 | char *_kwnames[] = { "self", NULL }; | |
2378 | char _ptemp[128]; | |
2379 | ||
2380 | self = self; | |
2381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetColour",_kwnames,&_argo0)) | |
2382 | return NULL; | |
2383 | if (_argo0) { | |
2384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetColour. Expected _wxFontData_p."); | |
2387 | return NULL; | |
2388 | } | |
2389 | } | |
2390 | { | |
0e2ff151 | 2391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2392 | _result = new wxColour (wxFontData_GetColour(_arg0)); |
2393 | ||
0e2ff151 | 2394 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2395 | if (PyErr_Occurred()) return NULL; |
2396 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2397 | _resultobj = Py_BuildValue("s",_ptemp); | |
2398 | return _resultobj; | |
2399 | } | |
2400 | ||
2401 | #define wxFontData_GetChosenFont(_swigobj) (_swigobj->GetChosenFont()) | |
2402 | static PyObject *_wrap_wxFontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2403 | PyObject * _resultobj; | |
2404 | wxFont * _result; | |
2405 | wxFontData * _arg0; | |
2406 | PyObject * _argo0 = 0; | |
2407 | char *_kwnames[] = { "self", NULL }; | |
2408 | char _ptemp[128]; | |
2409 | ||
2410 | self = self; | |
2411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetChosenFont",_kwnames,&_argo0)) | |
2412 | return NULL; | |
2413 | if (_argo0) { | |
2414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetChosenFont. Expected _wxFontData_p."); | |
2417 | return NULL; | |
2418 | } | |
2419 | } | |
2420 | { | |
0e2ff151 | 2421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2422 | _result = new wxFont (wxFontData_GetChosenFont(_arg0)); |
2423 | ||
0e2ff151 | 2424 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2425 | if (PyErr_Occurred()) return NULL; |
2426 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2427 | _resultobj = Py_BuildValue("s",_ptemp); | |
2428 | return _resultobj; | |
2429 | } | |
2430 | ||
2431 | #define wxFontData_GetEnableEffects(_swigobj) (_swigobj->GetEnableEffects()) | |
2432 | static PyObject *_wrap_wxFontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2433 | PyObject * _resultobj; | |
2434 | bool _result; | |
2435 | wxFontData * _arg0; | |
2436 | PyObject * _argo0 = 0; | |
2437 | char *_kwnames[] = { "self", NULL }; | |
2438 | ||
2439 | self = self; | |
2440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetEnableEffects",_kwnames,&_argo0)) | |
2441 | return NULL; | |
2442 | if (_argo0) { | |
2443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetEnableEffects. Expected _wxFontData_p."); | |
2446 | return NULL; | |
2447 | } | |
2448 | } | |
2449 | { | |
0e2ff151 | 2450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2451 | _result = (bool )wxFontData_GetEnableEffects(_arg0); |
2452 | ||
0e2ff151 | 2453 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2454 | if (PyErr_Occurred()) return NULL; |
2455 | } _resultobj = Py_BuildValue("i",_result); | |
2456 | return _resultobj; | |
2457 | } | |
2458 | ||
2459 | #define wxFontData_GetInitialFont(_swigobj) (_swigobj->GetInitialFont()) | |
2460 | static PyObject *_wrap_wxFontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2461 | PyObject * _resultobj; | |
2462 | wxFont * _result; | |
2463 | wxFontData * _arg0; | |
2464 | PyObject * _argo0 = 0; | |
2465 | char *_kwnames[] = { "self", NULL }; | |
2466 | char _ptemp[128]; | |
2467 | ||
2468 | self = self; | |
2469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetInitialFont",_kwnames,&_argo0)) | |
2470 | return NULL; | |
2471 | if (_argo0) { | |
2472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetInitialFont. Expected _wxFontData_p."); | |
2475 | return NULL; | |
2476 | } | |
2477 | } | |
2478 | { | |
0e2ff151 | 2479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2480 | _result = new wxFont (wxFontData_GetInitialFont(_arg0)); |
2481 | ||
0e2ff151 | 2482 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2483 | if (PyErr_Occurred()) return NULL; |
2484 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2485 | _resultobj = Py_BuildValue("s",_ptemp); | |
2486 | return _resultobj; | |
2487 | } | |
2488 | ||
2489 | #define wxFontData_GetShowHelp(_swigobj) (_swigobj->GetShowHelp()) | |
2490 | static PyObject *_wrap_wxFontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2491 | PyObject * _resultobj; | |
2492 | bool _result; | |
2493 | wxFontData * _arg0; | |
2494 | PyObject * _argo0 = 0; | |
2495 | char *_kwnames[] = { "self", NULL }; | |
2496 | ||
2497 | self = self; | |
2498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetShowHelp",_kwnames,&_argo0)) | |
2499 | return NULL; | |
2500 | if (_argo0) { | |
2501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetShowHelp. Expected _wxFontData_p."); | |
2504 | return NULL; | |
2505 | } | |
2506 | } | |
2507 | { | |
0e2ff151 | 2508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2509 | _result = (bool )wxFontData_GetShowHelp(_arg0); |
2510 | ||
0e2ff151 | 2511 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2512 | if (PyErr_Occurred()) return NULL; |
2513 | } _resultobj = Py_BuildValue("i",_result); | |
2514 | return _resultobj; | |
2515 | } | |
2516 | ||
2517 | #define wxFontData_SetAllowSymbols(_swigobj,_swigarg0) (_swigobj->SetAllowSymbols(_swigarg0)) | |
2518 | static PyObject *_wrap_wxFontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2519 | PyObject * _resultobj; | |
2520 | wxFontData * _arg0; | |
2521 | bool _arg1; | |
2522 | PyObject * _argo0 = 0; | |
2523 | int tempbool1; | |
2524 | char *_kwnames[] = { "self","allowSymbols", NULL }; | |
2525 | ||
2526 | self = self; | |
2527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetAllowSymbols",_kwnames,&_argo0,&tempbool1)) | |
2528 | return NULL; | |
2529 | if (_argo0) { | |
2530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
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; | |
2537 | { | |
0e2ff151 | 2538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2539 | wxFontData_SetAllowSymbols(_arg0,_arg1); |
2540 | ||
0e2ff151 | 2541 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2542 | if (PyErr_Occurred()) return NULL; |
2543 | } Py_INCREF(Py_None); | |
2544 | _resultobj = Py_None; | |
2545 | return _resultobj; | |
2546 | } | |
2547 | ||
2548 | #define wxFontData_SetChosenFont(_swigobj,_swigarg0) (_swigobj->SetChosenFont(_swigarg0)) | |
2549 | static PyObject *_wrap_wxFontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2550 | PyObject * _resultobj; | |
2551 | wxFontData * _arg0; | |
2552 | wxFont * _arg1; | |
2553 | PyObject * _argo0 = 0; | |
2554 | PyObject * _argo1 = 0; | |
2555 | char *_kwnames[] = { "self","font", NULL }; | |
2556 | ||
2557 | self = self; | |
2558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetChosenFont",_kwnames,&_argo0,&_argo1)) | |
2559 | return NULL; | |
2560 | if (_argo0) { | |
2561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetChosenFont. Expected _wxFontData_p."); | |
2564 | return NULL; | |
2565 | } | |
2566 | } | |
2567 | if (_argo1) { | |
2568 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2569 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
2570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetChosenFont. Expected _wxFont_p."); | |
2571 | return NULL; | |
2572 | } | |
2573 | } | |
2574 | { | |
0e2ff151 | 2575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2576 | wxFontData_SetChosenFont(_arg0,*_arg1); |
2577 | ||
0e2ff151 | 2578 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2579 | if (PyErr_Occurred()) return NULL; |
2580 | } Py_INCREF(Py_None); | |
2581 | _resultobj = Py_None; | |
2582 | return _resultobj; | |
2583 | } | |
2584 | ||
2585 | #define wxFontData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
2586 | static PyObject *_wrap_wxFontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2587 | PyObject * _resultobj; | |
2588 | wxFontData * _arg0; | |
2589 | wxColour * _arg1; | |
2590 | PyObject * _argo0 = 0; | |
2591 | wxColour temp; | |
2592 | PyObject * _obj1 = 0; | |
2593 | char *_kwnames[] = { "self","colour", NULL }; | |
2594 | ||
2595 | self = self; | |
2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetColour",_kwnames,&_argo0,&_obj1)) | |
2597 | return NULL; | |
2598 | if (_argo0) { | |
2599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetColour. Expected _wxFontData_p."); | |
2602 | return NULL; | |
2603 | } | |
2604 | } | |
2605 | { | |
2606 | _arg1 = &temp; | |
2607 | if (! wxColour_helper(_obj1, &_arg1)) | |
2608 | return NULL; | |
2609 | } | |
2610 | { | |
0e2ff151 | 2611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2612 | wxFontData_SetColour(_arg0,*_arg1); |
2613 | ||
0e2ff151 | 2614 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2615 | if (PyErr_Occurred()) return NULL; |
2616 | } Py_INCREF(Py_None); | |
2617 | _resultobj = Py_None; | |
2618 | return _resultobj; | |
2619 | } | |
2620 | ||
2621 | #define wxFontData_SetInitialFont(_swigobj,_swigarg0) (_swigobj->SetInitialFont(_swigarg0)) | |
2622 | static PyObject *_wrap_wxFontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2623 | PyObject * _resultobj; | |
2624 | wxFontData * _arg0; | |
2625 | wxFont * _arg1; | |
2626 | PyObject * _argo0 = 0; | |
2627 | PyObject * _argo1 = 0; | |
2628 | char *_kwnames[] = { "self","font", NULL }; | |
2629 | ||
2630 | self = self; | |
2631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetInitialFont",_kwnames,&_argo0,&_argo1)) | |
2632 | return NULL; | |
2633 | if (_argo0) { | |
2634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetInitialFont. Expected _wxFontData_p."); | |
2637 | return NULL; | |
2638 | } | |
2639 | } | |
2640 | if (_argo1) { | |
2641 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2642 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
2643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetInitialFont. Expected _wxFont_p."); | |
2644 | return NULL; | |
2645 | } | |
2646 | } | |
2647 | { | |
0e2ff151 | 2648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2649 | wxFontData_SetInitialFont(_arg0,*_arg1); |
2650 | ||
0e2ff151 | 2651 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2652 | if (PyErr_Occurred()) return NULL; |
2653 | } Py_INCREF(Py_None); | |
2654 | _resultobj = Py_None; | |
2655 | return _resultobj; | |
2656 | } | |
2657 | ||
2658 | #define wxFontData_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
2659 | static PyObject *_wrap_wxFontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2660 | PyObject * _resultobj; | |
2661 | wxFontData * _arg0; | |
2662 | int _arg1; | |
2663 | int _arg2; | |
2664 | PyObject * _argo0 = 0; | |
2665 | char *_kwnames[] = { "self","min","max", NULL }; | |
2666 | ||
2667 | self = self; | |
2668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxFontData_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2669 | return NULL; | |
2670 | if (_argo0) { | |
2671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
2673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetRange. Expected _wxFontData_p."); | |
2674 | return NULL; | |
2675 | } | |
2676 | } | |
2677 | { | |
0e2ff151 | 2678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2679 | wxFontData_SetRange(_arg0,_arg1,_arg2); |
2680 | ||
0e2ff151 | 2681 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2682 | if (PyErr_Occurred()) return NULL; |
2683 | } Py_INCREF(Py_None); | |
2684 | _resultobj = Py_None; | |
2685 | return _resultobj; | |
2686 | } | |
2687 | ||
2688 | #define wxFontData_SetShowHelp(_swigobj,_swigarg0) (_swigobj->SetShowHelp(_swigarg0)) | |
2689 | static PyObject *_wrap_wxFontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2690 | PyObject * _resultobj; | |
2691 | wxFontData * _arg0; | |
2692 | bool _arg1; | |
2693 | PyObject * _argo0 = 0; | |
2694 | int tempbool1; | |
2695 | char *_kwnames[] = { "self","showHelp", NULL }; | |
2696 | ||
2697 | self = self; | |
2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetShowHelp",_kwnames,&_argo0,&tempbool1)) | |
2699 | return NULL; | |
2700 | if (_argo0) { | |
2701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
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; | |
2708 | { | |
0e2ff151 | 2709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2710 | wxFontData_SetShowHelp(_arg0,_arg1); |
2711 | ||
0e2ff151 | 2712 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2713 | if (PyErr_Occurred()) return NULL; |
2714 | } Py_INCREF(Py_None); | |
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 | ||
2727 | static void *SwigwxFontDialogTowxTopLevelWindow(void *ptr) { | |
2728 | wxFontDialog *src; | |
2729 | wxTopLevelWindow *dest; | |
2730 | src = (wxFontDialog *) ptr; | |
2731 | dest = (wxTopLevelWindow *) src; | |
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 | ||
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 | ||
2759 | #define new_wxFontDialog(_swigarg0,_swigarg1) (new wxFontDialog(_swigarg0,_swigarg1)) | |
2760 | static PyObject *_wrap_new_wxFontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2761 | PyObject * _resultobj; | |
2762 | wxFontDialog * _result; | |
2763 | wxWindow * _arg0; | |
2764 | wxFontData * _arg1; | |
2765 | PyObject * _argo0 = 0; | |
2766 | PyObject * _argo1 = 0; | |
2767 | char *_kwnames[] = { "parent","data", NULL }; | |
2768 | char _ptemp[128]; | |
2769 | ||
2770 | self = self; | |
2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxFontDialog",_kwnames,&_argo0,&_argo1)) | |
2772 | return NULL; | |
2773 | if (_argo0) { | |
2774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontDialog. Expected _wxWindow_p."); | |
2777 | return NULL; | |
2778 | } | |
2779 | } | |
2780 | if (_argo1) { | |
2781 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2782 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFontData_p")) { | |
2783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxFontDialog. Expected _wxFontData_p."); | |
2784 | return NULL; | |
2785 | } | |
2786 | } | |
2787 | { | |
0e2ff151 | 2788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2789 | _result = (wxFontDialog *)new_wxFontDialog(_arg0,_arg1); |
2790 | ||
0e2ff151 | 2791 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2792 | if (PyErr_Occurred()) return NULL; |
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 | } | |
2800 | return _resultobj; | |
2801 | } | |
2802 | ||
2803 | #define wxFontDialog_GetFontData(_swigobj) (_swigobj->GetFontData()) | |
2804 | static PyObject *_wrap_wxFontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2805 | PyObject * _resultobj; | |
2806 | wxFontData * _result; | |
2807 | wxFontDialog * _arg0; | |
2808 | PyObject * _argo0 = 0; | |
2809 | char *_kwnames[] = { "self", NULL }; | |
2810 | char _ptemp[128]; | |
2811 | ||
2812 | self = self; | |
2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_GetFontData",_kwnames,&_argo0)) | |
2814 | return NULL; | |
2815 | if (_argo0) { | |
2816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) { | |
2818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_GetFontData. Expected _wxFontDialog_p."); | |
2819 | return NULL; | |
2820 | } | |
2821 | } | |
2822 | { | |
0e2ff151 | 2823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2824 | wxFontData & _result_ref = wxFontDialog_GetFontData(_arg0); |
2825 | _result = (wxFontData *) &_result_ref; | |
2826 | ||
0e2ff151 | 2827 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2828 | if (PyErr_Occurred()) return NULL; |
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 | } | |
2836 | return _resultobj; | |
2837 | } | |
2838 | ||
2839 | #define wxFontDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
2840 | static PyObject *_wrap_wxFontDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2841 | PyObject * _resultobj; | |
2842 | int _result; | |
2843 | wxFontDialog * _arg0; | |
2844 | PyObject * _argo0 = 0; | |
2845 | char *_kwnames[] = { "self", NULL }; | |
2846 | ||
2847 | self = self; | |
2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_ShowModal",_kwnames,&_argo0)) | |
2849 | return NULL; | |
2850 | if (_argo0) { | |
2851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) { | |
2853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_ShowModal. Expected _wxFontDialog_p."); | |
2854 | return NULL; | |
2855 | } | |
2856 | } | |
2857 | { | |
0e2ff151 | 2858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2859 | _result = (int )wxFontDialog_ShowModal(_arg0); |
2860 | ||
0e2ff151 | 2861 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2862 | if (PyErr_Occurred()) return NULL; |
2863 | } _resultobj = Py_BuildValue("i",_result); | |
2864 | return _resultobj; | |
2865 | } | |
2866 | ||
2867 | static void *SwigwxMessageDialogTowxDialog(void *ptr) { | |
2868 | wxMessageDialog *src; | |
2869 | wxDialog *dest; | |
2870 | src = (wxMessageDialog *) ptr; | |
2871 | dest = (wxDialog *) src; | |
2872 | return (void *) dest; | |
2873 | } | |
2874 | ||
2875 | static void *SwigwxMessageDialogTowxTopLevelWindow(void *ptr) { | |
2876 | wxMessageDialog *src; | |
2877 | wxTopLevelWindow *dest; | |
2878 | src = (wxMessageDialog *) ptr; | |
2879 | dest = (wxTopLevelWindow *) src; | |
2880 | return (void *) dest; | |
2881 | } | |
2882 | ||
2883 | static void *SwigwxMessageDialogTowxWindow(void *ptr) { | |
2884 | wxMessageDialog *src; | |
2885 | wxWindow *dest; | |
2886 | src = (wxMessageDialog *) ptr; | |
2887 | dest = (wxWindow *) src; | |
2888 | return (void *) dest; | |
2889 | } | |
2890 | ||
2891 | static void *SwigwxMessageDialogTowxEvtHandler(void *ptr) { | |
2892 | wxMessageDialog *src; | |
2893 | wxEvtHandler *dest; | |
2894 | src = (wxMessageDialog *) ptr; | |
2895 | dest = (wxEvtHandler *) src; | |
2896 | return (void *) dest; | |
2897 | } | |
2898 | ||
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 | ||
2907 | #define new_wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
2908 | static PyObject *_wrap_new_wxMessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2909 | PyObject * _resultobj; | |
2910 | wxMessageDialog * _result; | |
2911 | wxWindow * _arg0; | |
2912 | char * _arg1; | |
2913 | char * _arg2 = (char *) "Message box"; | |
2914 | long _arg3 = (long ) wxOK|wxCANCEL|wxCENTRE; | |
2915 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; | |
2916 | PyObject * _argo0 = 0; | |
2917 | wxPoint temp; | |
2918 | PyObject * _obj4 = 0; | |
2919 | char *_kwnames[] = { "parent","message","caption","style","pos", NULL }; | |
2920 | char _ptemp[128]; | |
2921 | ||
2922 | self = self; | |
2923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|slO:new_wxMessageDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
2924 | return NULL; | |
2925 | if (_argo0) { | |
2926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMessageDialog. Expected _wxWindow_p."); | |
2929 | return NULL; | |
2930 | } | |
2931 | } | |
2932 | if (_obj4) | |
2933 | { | |
2934 | _arg4 = &temp; | |
2935 | if (! wxPoint_helper(_obj4, &_arg4)) | |
2936 | return NULL; | |
2937 | } | |
2938 | { | |
0e2ff151 | 2939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2940 | _result = (wxMessageDialog *)new_wxMessageDialog(_arg0,_arg1,_arg2,_arg3,*_arg4); |
2941 | ||
0e2ff151 | 2942 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2943 | if (PyErr_Occurred()) return NULL; |
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 | } | |
2951 | return _resultobj; | |
2952 | } | |
2953 | ||
2954 | #define wxMessageDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
2955 | static PyObject *_wrap_wxMessageDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2956 | PyObject * _resultobj; | |
2957 | int _result; | |
2958 | wxMessageDialog * _arg0; | |
2959 | PyObject * _argo0 = 0; | |
2960 | char *_kwnames[] = { "self", NULL }; | |
2961 | ||
2962 | self = self; | |
2963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMessageDialog_ShowModal",_kwnames,&_argo0)) | |
2964 | return NULL; | |
2965 | if (_argo0) { | |
2966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMessageDialog_p")) { | |
2968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMessageDialog_ShowModal. Expected _wxMessageDialog_p."); | |
2969 | return NULL; | |
2970 | } | |
2971 | } | |
2972 | { | |
0e2ff151 | 2973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2974 | _result = (int )wxMessageDialog_ShowModal(_arg0); |
2975 | ||
0e2ff151 | 2976 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2977 | if (PyErr_Occurred()) return NULL; |
2978 | } _resultobj = Py_BuildValue("i",_result); | |
2979 | return _resultobj; | |
2980 | } | |
2981 | ||
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 | ||
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 | ||
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 | ||
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 | ||
3022 | #define new_wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
3023 | static PyObject *_wrap_new_wxProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3024 | PyObject * _resultobj; | |
3025 | wxProgressDialog * _result; | |
3026 | wxString * _arg0; | |
3027 | wxString * _arg1; | |
3028 | int _arg2 = (int ) 100; | |
3029 | wxWindow * _arg3 = (wxWindow *) NULL; | |
3030 | int _arg4 = (int ) wxPD_AUTO_HIDE|wxPD_APP_MODAL; | |
3031 | PyObject * _obj0 = 0; | |
3032 | PyObject * _obj1 = 0; | |
3033 | PyObject * _argo3 = 0; | |
3034 | char *_kwnames[] = { "title","message","maximum","parent","style", NULL }; | |
3035 | char _ptemp[128]; | |
3036 | ||
3037 | self = self; | |
3038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOi:new_wxProgressDialog",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4)) | |
3039 | return NULL; | |
3040 | { | |
3041 | #if PYTHON_API_VERSION >= 1009 | |
3042 | char* tmpPtr; int tmpSize; | |
3043 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
3044 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3045 | return NULL; | |
3046 | } | |
3047 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
3048 | return NULL; | |
3049 | _arg0 = new wxString(tmpPtr, tmpSize); | |
3050 | #else | |
3051 | if (!PyString_Check(_obj0)) { | |
3052 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3053 | return NULL; | |
3054 | } | |
3055 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
3056 | #endif | |
3057 | } | |
3058 | { | |
3059 | #if PYTHON_API_VERSION >= 1009 | |
3060 | char* tmpPtr; int tmpSize; | |
3061 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
3062 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3063 | return NULL; | |
3064 | } | |
3065 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
3066 | return NULL; | |
3067 | _arg1 = new wxString(tmpPtr, tmpSize); | |
3068 | #else | |
3069 | if (!PyString_Check(_obj1)) { | |
3070 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3071 | return NULL; | |
3072 | } | |
3073 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
3074 | #endif | |
3075 | } | |
3076 | if (_argo3) { | |
3077 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3078 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxProgressDialog. Expected _wxWindow_p."); | |
3080 | return NULL; | |
3081 | } | |
3082 | } | |
3083 | { | |
0e2ff151 | 3084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3085 | _result = (wxProgressDialog *)new_wxProgressDialog(*_arg0,*_arg1,_arg2,_arg3,_arg4); |
3086 | ||
0e2ff151 | 3087 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3088 | if (PyErr_Occurred()) return NULL; |
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 | } | |
3096 | { | |
3097 | if (_obj0) | |
3098 | delete _arg0; | |
3099 | } | |
3100 | { | |
3101 | if (_obj1) | |
3102 | delete _arg1; | |
3103 | } | |
3104 | return _resultobj; | |
3105 | } | |
3106 | ||
3107 | #define wxProgressDialog_Update(_swigobj,_swigarg0,_swigarg1) (_swigobj->Update(_swigarg0,_swigarg1)) | |
3108 | static PyObject *_wrap_wxProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3109 | PyObject * _resultobj; | |
3110 | bool _result; | |
3111 | wxProgressDialog * _arg0; | |
3112 | int _arg1 = (int ) -1; | |
3113 | char * _arg2 = (char *) NULL; | |
3114 | PyObject * _argo0 = 0; | |
3115 | char *_kwnames[] = { "self","value","newmsg", NULL }; | |
3116 | ||
3117 | self = self; | |
3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|is:wxProgressDialog_Update",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3119 | return NULL; | |
3120 | if (_argo0) { | |
3121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) { | |
3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Update. Expected _wxProgressDialog_p."); | |
3124 | return NULL; | |
3125 | } | |
3126 | } | |
3127 | { | |
0e2ff151 | 3128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3129 | _result = (bool )wxProgressDialog_Update(_arg0,_arg1,_arg2); |
3130 | ||
0e2ff151 | 3131 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3132 | if (PyErr_Occurred()) return NULL; |
3133 | } _resultobj = Py_BuildValue("i",_result); | |
3134 | return _resultobj; | |
3135 | } | |
3136 | ||
3137 | #define wxProgressDialog_Resume(_swigobj) (_swigobj->Resume()) | |
3138 | static PyObject *_wrap_wxProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3139 | PyObject * _resultobj; | |
3140 | wxProgressDialog * _arg0; | |
3141 | PyObject * _argo0 = 0; | |
3142 | char *_kwnames[] = { "self", NULL }; | |
3143 | ||
3144 | self = self; | |
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProgressDialog_Resume",_kwnames,&_argo0)) | |
3146 | return NULL; | |
3147 | if (_argo0) { | |
3148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) { | |
3150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Resume. Expected _wxProgressDialog_p."); | |
3151 | return NULL; | |
3152 | } | |
3153 | } | |
3154 | { | |
0e2ff151 | 3155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3156 | wxProgressDialog_Resume(_arg0); |
3157 | ||
0e2ff151 | 3158 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3159 | if (PyErr_Occurred()) return NULL; |
3160 | } Py_INCREF(Py_None); | |
3161 | _resultobj = Py_None; | |
3162 | return _resultobj; | |
3163 | } | |
3164 | ||
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 | { | |
0e2ff151 | 3202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3203 | _result = (wxFindDialogEvent *)new_wxFindDialogEvent(_arg0,_arg1); |
3204 | ||
0e2ff151 | 3205 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3237 | _result = (int )wxFindDialogEvent_GetFlags(_arg0); |
3238 | ||
0e2ff151 | 3239 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3265 | _result = new wxString (wxFindDialogEvent_GetFindString(_arg0)); |
3266 | ||
0e2ff151 | 3267 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3298 | const wxString & _result_ref = wxFindDialogEvent_GetReplaceString(_arg0); |
3299 | _result = (wxString *) &_result_ref; | |
3300 | ||
0e2ff151 | 3301 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3330 | _result = (wxFindReplaceDialog *)wxFindDialogEvent_GetDialog(_arg0); |
3331 | ||
0e2ff151 | 3332 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3364 | wxFindDialogEvent_SetFlags(_arg0,_arg1); |
3365 | ||
0e2ff151 | 3366 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3412 | wxFindDialogEvent_SetFindString(_arg0,*_arg1); |
3413 | ||
0e2ff151 | 3414 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3464 | wxFindDialogEvent_SetReplaceString(_arg0,*_arg1); |
3465 | ||
0e2ff151 | 3466 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3498 | _result = (wxFindReplaceData *)new_wxFindReplaceData(_arg0); |
3499 | ||
0e2ff151 | 3500 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3531 | delete_wxFindReplaceData(_arg0); |
3532 | ||
0e2ff151 | 3533 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3560 | const wxString & _result_ref = wxFindReplaceData_GetFindString(_arg0); |
3561 | _result = (wxString *) &_result_ref; | |
3562 | ||
0e2ff151 | 3563 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3591 | const wxString & _result_ref = wxFindReplaceData_GetReplaceString(_arg0); |
3592 | _result = (wxString *) &_result_ref; | |
3593 | ||
0e2ff151 | 3594 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3622 | _result = (int )wxFindReplaceData_GetFlags(_arg0); |
3623 | ||
0e2ff151 | 3624 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3650 | wxFindReplaceData_SetFlags(_arg0,_arg1); |
3651 | ||
0e2ff151 | 3652 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3698 | wxFindReplaceData_SetFindString(_arg0,*_arg1); |
3699 | ||
0e2ff151 | 3700 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3750 | wxFindReplaceData_SetReplaceString(_arg0,*_arg1); |
3751 | ||
0e2ff151 | 3752 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3854 | _result = (wxFindReplaceDialog *)new_wxFindReplaceDialog(_arg0,_arg1,*_arg2,_arg3); |
3855 | ||
0e2ff151 | 3856 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3884 | _result = (wxFindReplaceDialog *)new_wxPreFindReplaceDialog(); |
3885 | ||
0e2ff151 | 3886 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3957 | _result = (bool )wxFindReplaceDialog_Create(_arg0,_arg1,_arg2,*_arg3,_arg4); |
3958 | ||
0e2ff151 | 3959 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 3989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3990 | _result = (wxFindReplaceData *)wxFindReplaceDialog_GetData(_arg0); |
3991 | ||
0e2ff151 | 3992 | wxPyEndAllowThreads(__tstate); |
e6056257 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 | { | |
0e2ff151 | 4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4032 | wxFindReplaceDialog_SetData(_arg0,_arg1); |
4033 | ||
0e2ff151 | 4034 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4035 | if (PyErr_Occurred()) return NULL; |
4036 | } Py_INCREF(Py_None); | |
4037 | _resultobj = Py_None; | |
4038 | return _resultobj; | |
4039 | } | |
4040 | ||
4041 | static PyMethodDef cmndlgscMethods[] = { | |
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 }, | |
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 }, | |
ca31b3da 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 }, | |
e6056257 RD |
4098 | { "wxFileDialog_GetPaths", (PyCFunction) _wrap_wxFileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, |
4099 | { "wxFileDialog_GetFilenames", (PyCFunction) _wrap_wxFileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
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 }, | |
4134 | { NULL, NULL } | |
4135 | }; | |
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[] = { | |
4143 | { "_wxEvent","_wxFindDialogEvent",SwigwxFindDialogEventTowxEvent}, | |
4144 | { "_signed_long","_long",0}, | |
4145 | { "_wxPrintQuality","_wxCoord",0}, | |
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}, | |
4153 | { "_wxPrintQuality","_time_t",0}, | |
4154 | { "_byte","_unsigned_char",0}, | |
4155 | { "_long","_unsigned_long",0}, | |
4156 | { "_long","_signed_long",0}, | |
4157 | { "_size_t","_wxCoord",0}, | |
4158 | { "_size_t","_wxPrintQuality",0}, | |
4159 | { "_size_t","_time_t",0}, | |
4160 | { "_size_t","_unsigned_int",0}, | |
4161 | { "_size_t","_int",0}, | |
4162 | { "_size_t","_wxWindowID",0}, | |
4163 | { "_size_t","_uint",0}, | |
4164 | { "_wxTopLevelWindow","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxTopLevelWindow}, | |
4165 | { "_wxTopLevelWindow","_wxProgressDialog",SwigwxProgressDialogTowxTopLevelWindow}, | |
4166 | { "_wxTopLevelWindow","_wxMessageDialog",SwigwxMessageDialogTowxTopLevelWindow}, | |
4167 | { "_wxTopLevelWindow","_wxFontDialog",SwigwxFontDialogTowxTopLevelWindow}, | |
4168 | { "_wxTopLevelWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxTopLevelWindow}, | |
4169 | { "_wxTopLevelWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxTopLevelWindow}, | |
ca31b3da | 4170 | { "_wxTopLevelWindow","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxTopLevelWindow}, |
e6056257 RD |
4171 | { "_wxTopLevelWindow","_wxFileDialog",SwigwxFileDialogTowxTopLevelWindow}, |
4172 | { "_wxTopLevelWindow","_wxDirDialog",SwigwxDirDialogTowxTopLevelWindow}, | |
4173 | { "_wxTopLevelWindow","_wxColourDialog",SwigwxColourDialogTowxTopLevelWindow}, | |
4174 | { "_uint","_wxCoord",0}, | |
4175 | { "_uint","_wxPrintQuality",0}, | |
4176 | { "_uint","_time_t",0}, | |
4177 | { "_uint","_size_t",0}, | |
4178 | { "_uint","_unsigned_int",0}, | |
4179 | { "_uint","_int",0}, | |
4180 | { "_uint","_wxWindowID",0}, | |
4181 | { "_wxChar","_char",0}, | |
4182 | { "_wxCommandEvent","_wxFindDialogEvent",SwigwxFindDialogEventTowxCommandEvent}, | |
4183 | { "_char","_wxChar",0}, | |
4184 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
4185 | { "_EBool","_wxCoord",0}, | |
4186 | { "_EBool","_wxPrintQuality",0}, | |
4187 | { "_EBool","_signed_int",0}, | |
4188 | { "_EBool","_int",0}, | |
4189 | { "_EBool","_wxWindowID",0}, | |
4190 | { "_unsigned_long","_long",0}, | |
4191 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
4192 | { "_signed_int","_wxCoord",0}, | |
4193 | { "_signed_int","_wxPrintQuality",0}, | |
4194 | { "_signed_int","_EBool",0}, | |
4195 | { "_signed_int","_wxWindowID",0}, | |
4196 | { "_signed_int","_int",0}, | |
4197 | { "_WXTYPE","_short",0}, | |
4198 | { "_WXTYPE","_signed_short",0}, | |
4199 | { "_WXTYPE","_unsigned_short",0}, | |
4200 | { "_unsigned_short","_WXTYPE",0}, | |
4201 | { "_unsigned_short","_short",0}, | |
4202 | { "_wxObject","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxObject}, | |
4203 | { "_wxObject","_wxFindReplaceData",SwigwxFindReplaceDataTowxObject}, | |
4204 | { "_wxObject","_wxFindDialogEvent",SwigwxFindDialogEventTowxObject}, | |
4205 | { "_wxObject","_wxProgressDialog",SwigwxProgressDialogTowxObject}, | |
4206 | { "_wxObject","_wxMessageDialog",SwigwxMessageDialogTowxObject}, | |
4207 | { "_wxObject","_wxFontDialog",SwigwxFontDialogTowxObject}, | |
4208 | { "_wxObject","_wxFontData",SwigwxFontDataTowxObject}, | |
4209 | { "_wxObject","_wxTextEntryDialog",SwigwxTextEntryDialogTowxObject}, | |
4210 | { "_wxObject","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxObject}, | |
ca31b3da | 4211 | { "_wxObject","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxObject}, |
e6056257 RD |
4212 | { "_wxObject","_wxFileDialog",SwigwxFileDialogTowxObject}, |
4213 | { "_wxObject","_wxDirDialog",SwigwxDirDialogTowxObject}, | |
4214 | { "_wxObject","_wxColourDialog",SwigwxColourDialogTowxObject}, | |
4215 | { "_wxObject","_wxColourData",SwigwxColourDataTowxObject}, | |
4216 | { "_signed_short","_WXTYPE",0}, | |
4217 | { "_signed_short","_short",0}, | |
4218 | { "_unsigned_char","_byte",0}, | |
4219 | { "_unsigned_int","_wxCoord",0}, | |
4220 | { "_unsigned_int","_wxPrintQuality",0}, | |
4221 | { "_unsigned_int","_time_t",0}, | |
4222 | { "_unsigned_int","_size_t",0}, | |
4223 | { "_unsigned_int","_uint",0}, | |
4224 | { "_unsigned_int","_wxWindowID",0}, | |
4225 | { "_unsigned_int","_int",0}, | |
4226 | { "_wxDialog","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxDialog}, | |
4227 | { "_wxDialog","_wxMessageDialog",SwigwxMessageDialogTowxDialog}, | |
4228 | { "_wxDialog","_wxFontDialog",SwigwxFontDialogTowxDialog}, | |
4229 | { "_wxDialog","_wxTextEntryDialog",SwigwxTextEntryDialogTowxDialog}, | |
4230 | { "_wxDialog","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxDialog}, | |
ca31b3da | 4231 | { "_wxDialog","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxDialog}, |
e6056257 RD |
4232 | { "_wxDialog","_wxFileDialog",SwigwxFileDialogTowxDialog}, |
4233 | { "_wxDialog","_wxDirDialog",SwigwxDirDialogTowxDialog}, | |
4234 | { "_wxDialog","_wxColourDialog",SwigwxColourDialogTowxDialog}, | |
4235 | { "_short","_WXTYPE",0}, | |
4236 | { "_short","_unsigned_short",0}, | |
4237 | { "_short","_signed_short",0}, | |
4238 | { "_wxFrame","_wxProgressDialog",SwigwxProgressDialogTowxFrame}, | |
4239 | { "_wxWindowID","_wxCoord",0}, | |
4240 | { "_wxWindowID","_wxPrintQuality",0}, | |
4241 | { "_wxWindowID","_time_t",0}, | |
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}, | |
4248 | { "_int","_wxCoord",0}, | |
4249 | { "_int","_wxPrintQuality",0}, | |
4250 | { "_int","_time_t",0}, | |
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}, | |
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}, | |
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}, | |
4271 | { "_wxCoord","_time_t",0}, | |
4272 | { "_wxCoord","_wxPrintQuality",0}, | |
4273 | { "_wxEvtHandler","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxEvtHandler}, | |
4274 | { "_wxEvtHandler","_wxProgressDialog",SwigwxProgressDialogTowxEvtHandler}, | |
4275 | { "_wxEvtHandler","_wxMessageDialog",SwigwxMessageDialogTowxEvtHandler}, | |
4276 | { "_wxEvtHandler","_wxFontDialog",SwigwxFontDialogTowxEvtHandler}, | |
4277 | { "_wxEvtHandler","_wxTextEntryDialog",SwigwxTextEntryDialogTowxEvtHandler}, | |
4278 | { "_wxEvtHandler","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxEvtHandler}, | |
ca31b3da | 4279 | { "_wxEvtHandler","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxEvtHandler}, |
e6056257 RD |
4280 | { "_wxEvtHandler","_wxFileDialog",SwigwxFileDialogTowxEvtHandler}, |
4281 | { "_wxEvtHandler","_wxDirDialog",SwigwxDirDialogTowxEvtHandler}, | |
4282 | { "_wxEvtHandler","_wxColourDialog",SwigwxColourDialogTowxEvtHandler}, | |
4283 | { "_wxWindow","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxWindow}, | |
4284 | { "_wxWindow","_wxProgressDialog",SwigwxProgressDialogTowxWindow}, | |
4285 | { "_wxWindow","_wxMessageDialog",SwigwxMessageDialogTowxWindow}, | |
4286 | { "_wxWindow","_wxFontDialog",SwigwxFontDialogTowxWindow}, | |
4287 | { "_wxWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxWindow}, | |
4288 | { "_wxWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxWindow}, | |
ca31b3da | 4289 | { "_wxWindow","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxWindow}, |
e6056257 RD |
4290 | { "_wxWindow","_wxFileDialog",SwigwxFileDialogTowxWindow}, |
4291 | { "_wxWindow","_wxDirDialog",SwigwxDirDialogTowxWindow}, | |
4292 | { "_wxWindow","_wxColourDialog",SwigwxColourDialogTowxWindow}, | |
4293 | {0,0,0}}; | |
4294 | ||
4295 | static PyObject *SWIG_globals; | |
4296 | #ifdef __cplusplus | |
4297 | extern "C" | |
4298 | #endif | |
4299 | SWIGEXPORT(void) initcmndlgsc() { | |
4300 | PyObject *m, *d; | |
4301 | SWIG_globals = SWIG_newvarlink(); | |
4302 | m = Py_InitModule("cmndlgsc", cmndlgscMethods); | |
4303 | d = PyModule_GetDict(m); | |
ca31b3da | 4304 | PyDict_SetItemString(d,"wxCHOICEDLG_STYLE", PyInt_FromLong((long) wxCHOICEDLG_STYLE)); |
e6056257 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)); | |
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 | } | |
4322 | } |