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