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