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