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