]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/cmndlgs.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcmndlgsc |
55 | ||
56 | #define SWIG_name "cmndlgsc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/colordlg.h> | |
60 | #include <wx/dirdlg.h> | |
61 | #include <wx/fontdlg.h> | |
bb0054cd | 62 | #include <wx/progdlg.h> |
0122b7e3 | 63 | #include <wx/fdrepdlg.h> |
8ab979d7 | 64 | |
8ab979d7 RD |
65 | |
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
e0672e2f | 70 | if (!target) { |
8ab979d7 | 71 | target = o; |
e0672e2f | 72 | } else if (target == Py_None) { |
8ab979d7 RD |
73 | Py_DECREF(Py_None); |
74 | target = o; | |
e0672e2f | 75 | } else { |
8ab979d7 RD |
76 | if (!PyTuple_Check(target)) { |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
e0672e2f RD |
81 | o3 = PyTuple_New(1); |
82 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
83 | |
84 | o2 = target; | |
e0672e2f RD |
85 | target = PySequence_Concat(o2, o3); |
86 | Py_DECREF(o2); | |
8ab979d7 RD |
87 | Py_DECREF(o3); |
88 | } | |
89 | return target; | |
90 | } | |
137b5242 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 | ||
1d99702e RD |
99 | #ifdef __cplusplus |
100 | extern "C" { | |
101 | #endif | |
9416aa89 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 | ||
8ab979d7 | 110 | #define new_wxColourData() (new wxColourData()) |
efc5f224 | 111 | static PyObject *_wrap_new_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
112 | PyObject * _resultobj; |
113 | wxColourData * _result; | |
efc5f224 | 114 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
115 | char _ptemp[128]; |
116 | ||
117 | self = self; | |
efc5f224 | 118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxColourData",_kwnames)) |
8ab979d7 | 119 | return NULL; |
cf694132 | 120 | { |
4268f798 | 121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 122 | _result = (wxColourData *)new_wxColourData(); |
cf694132 | 123 | |
4268f798 | 124 | wxPyEndAllowThreads(__tstate); |
493f1553 | 125 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
8ab979d7 RD |
133 | return _resultobj; |
134 | } | |
135 | ||
136 | #define delete_wxColourData(_swigobj) (delete _swigobj) | |
efc5f224 | 137 | static PyObject *_wrap_delete_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
138 | PyObject * _resultobj; |
139 | wxColourData * _arg0; | |
1d99702e | 140 | PyObject * _argo0 = 0; |
efc5f224 | 141 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
142 | |
143 | self = self; | |
efc5f224 | 144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColourData",_kwnames,&_argo0)) |
8ab979d7 | 145 | return NULL; |
1d99702e RD |
146 | if (_argo0) { |
147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxColourData. Expected _wxColourData_p."); |
150 | return NULL; | |
151 | } | |
152 | } | |
cf694132 | 153 | { |
4268f798 | 154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 155 | delete_wxColourData(_arg0); |
cf694132 | 156 | |
4268f798 | 157 | wxPyEndAllowThreads(__tstate); |
493f1553 | 158 | if (PyErr_Occurred()) return NULL; |
cf694132 | 159 | } Py_INCREF(Py_None); |
8ab979d7 RD |
160 | _resultobj = Py_None; |
161 | return _resultobj; | |
162 | } | |
163 | ||
164 | #define wxColourData_GetChooseFull(_swigobj) (_swigobj->GetChooseFull()) | |
efc5f224 | 165 | static PyObject *_wrap_wxColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
166 | PyObject * _resultobj; |
167 | bool _result; | |
168 | wxColourData * _arg0; | |
1d99702e | 169 | PyObject * _argo0 = 0; |
efc5f224 | 170 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
171 | |
172 | self = self; | |
efc5f224 | 173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourData_GetChooseFull",_kwnames,&_argo0)) |
8ab979d7 | 174 | return NULL; |
1d99702e RD |
175 | if (_argo0) { |
176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetChooseFull. Expected _wxColourData_p."); |
179 | return NULL; | |
180 | } | |
181 | } | |
cf694132 | 182 | { |
4268f798 | 183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 184 | _result = (bool )wxColourData_GetChooseFull(_arg0); |
cf694132 | 185 | |
4268f798 | 186 | wxPyEndAllowThreads(__tstate); |
493f1553 | 187 | if (PyErr_Occurred()) return NULL; |
cf694132 | 188 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
189 | return _resultobj; |
190 | } | |
191 | ||
192 | #define wxColourData_GetColour(_swigobj) (_swigobj->GetColour()) | |
efc5f224 | 193 | static PyObject *_wrap_wxColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
194 | PyObject * _resultobj; |
195 | wxColour * _result; | |
196 | wxColourData * _arg0; | |
1d99702e | 197 | PyObject * _argo0 = 0; |
efc5f224 | 198 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
199 | char _ptemp[128]; |
200 | ||
201 | self = self; | |
efc5f224 | 202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourData_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 203 | return NULL; |
1d99702e RD |
204 | if (_argo0) { |
205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetColour. Expected _wxColourData_p."); |
208 | return NULL; | |
209 | } | |
210 | } | |
cf694132 | 211 | { |
4268f798 | 212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 213 | _result = new wxColour (wxColourData_GetColour(_arg0)); |
cf694132 | 214 | |
4268f798 | 215 | wxPyEndAllowThreads(__tstate); |
493f1553 | 216 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
217 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
218 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
219 | return _resultobj; |
220 | } | |
221 | ||
222 | #define wxColourData_GetCustomColour(_swigobj,_swigarg0) (_swigobj->GetCustomColour(_swigarg0)) | |
efc5f224 | 223 | static PyObject *_wrap_wxColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
224 | PyObject * _resultobj; |
225 | wxColour * _result; | |
226 | wxColourData * _arg0; | |
227 | int _arg1; | |
1d99702e | 228 | PyObject * _argo0 = 0; |
efc5f224 | 229 | char *_kwnames[] = { "self","i", NULL }; |
8ab979d7 RD |
230 | char _ptemp[128]; |
231 | ||
232 | self = self; | |
efc5f224 | 233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxColourData_GetCustomColour",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 234 | return NULL; |
1d99702e RD |
235 | if (_argo0) { |
236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetCustomColour. Expected _wxColourData_p."); |
239 | return NULL; | |
240 | } | |
241 | } | |
cf694132 | 242 | { |
4268f798 | 243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 244 | _result = new wxColour (wxColourData_GetCustomColour(_arg0,_arg1)); |
cf694132 | 245 | |
4268f798 | 246 | wxPyEndAllowThreads(__tstate); |
493f1553 | 247 | if (PyErr_Occurred()) return NULL; |
cf694132 | 248 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
249 | _resultobj = Py_BuildValue("s",_ptemp); |
250 | return _resultobj; | |
251 | } | |
252 | ||
253 | #define wxColourData_SetChooseFull(_swigobj,_swigarg0) (_swigobj->SetChooseFull(_swigarg0)) | |
efc5f224 | 254 | static PyObject *_wrap_wxColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
255 | PyObject * _resultobj; |
256 | wxColourData * _arg0; | |
257 | int _arg1; | |
1d99702e | 258 | PyObject * _argo0 = 0; |
efc5f224 | 259 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
260 | |
261 | self = self; | |
efc5f224 | 262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxColourData_SetChooseFull",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 263 | return NULL; |
1d99702e RD |
264 | if (_argo0) { |
265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 RD |
267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetChooseFull. Expected _wxColourData_p."); |
268 | return NULL; | |
269 | } | |
270 | } | |
cf694132 | 271 | { |
4268f798 | 272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 273 | wxColourData_SetChooseFull(_arg0,_arg1); |
cf694132 | 274 | |
4268f798 | 275 | wxPyEndAllowThreads(__tstate); |
493f1553 | 276 | if (PyErr_Occurred()) return NULL; |
cf694132 | 277 | } Py_INCREF(Py_None); |
8ab979d7 RD |
278 | _resultobj = Py_None; |
279 | return _resultobj; | |
280 | } | |
281 | ||
282 | #define wxColourData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
efc5f224 | 283 | static PyObject *_wrap_wxColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
284 | PyObject * _resultobj; |
285 | wxColourData * _arg0; | |
286 | wxColour * _arg1; | |
1d99702e | 287 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
288 | wxColour temp; |
289 | PyObject * _obj1 = 0; | |
efc5f224 | 290 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
291 | |
292 | self = self; | |
f6bcfd97 | 293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourData_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 294 | return NULL; |
1d99702e RD |
295 | if (_argo0) { |
296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 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)) | |
8ab979d7 | 305 | return NULL; |
f6bcfd97 | 306 | } |
cf694132 | 307 | { |
4268f798 | 308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 309 | wxColourData_SetColour(_arg0,*_arg1); |
cf694132 | 310 | |
4268f798 | 311 | wxPyEndAllowThreads(__tstate); |
493f1553 | 312 | if (PyErr_Occurred()) return NULL; |
cf694132 | 313 | } Py_INCREF(Py_None); |
8ab979d7 RD |
314 | _resultobj = Py_None; |
315 | return _resultobj; | |
316 | } | |
317 | ||
318 | #define wxColourData_SetCustomColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCustomColour(_swigarg0,_swigarg1)) | |
efc5f224 | 319 | static PyObject *_wrap_wxColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
320 | PyObject * _resultobj; |
321 | wxColourData * _arg0; | |
322 | int _arg1; | |
323 | wxColour * _arg2; | |
1d99702e | 324 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
325 | wxColour temp; |
326 | PyObject * _obj2 = 0; | |
efc5f224 | 327 | char *_kwnames[] = { "self","i","colour", NULL }; |
8ab979d7 RD |
328 | |
329 | self = self; | |
f6bcfd97 | 330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxColourData_SetCustomColour",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 331 | return NULL; |
1d99702e RD |
332 | if (_argo0) { |
333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) { | |
8ab979d7 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)) | |
8ab979d7 | 342 | return NULL; |
f6bcfd97 | 343 | } |
cf694132 | 344 | { |
4268f798 | 345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 346 | wxColourData_SetCustomColour(_arg0,_arg1,*_arg2); |
cf694132 | 347 | |
4268f798 | 348 | wxPyEndAllowThreads(__tstate); |
493f1553 | 349 | if (PyErr_Occurred()) return NULL; |
cf694132 | 350 | } Py_INCREF(Py_None); |
8ab979d7 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 | ||
65fe3842 | 363 | static void *SwigwxColourDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 364 | wxColourDialog *src; |
65fe3842 | 365 | wxTopLevelWindow *dest; |
8ab979d7 | 366 | src = (wxColourDialog *) ptr; |
65fe3842 | 367 | dest = (wxTopLevelWindow *) src; |
8ab979d7 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 | ||
9416aa89 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 | ||
8ab979d7 | 395 | #define new_wxColourDialog(_swigarg0,_swigarg1) (new wxColourDialog(_swigarg0,_swigarg1)) |
efc5f224 | 396 | static PyObject *_wrap_new_wxColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
397 | PyObject * _resultobj; |
398 | wxColourDialog * _result; | |
399 | wxWindow * _arg0; | |
1d99702e RD |
400 | wxColourData * _arg1 = (wxColourData *) NULL; |
401 | PyObject * _argo0 = 0; | |
402 | PyObject * _argo1 = 0; | |
efc5f224 | 403 | char *_kwnames[] = { "parent","data", NULL }; |
8ab979d7 RD |
404 | char _ptemp[128]; |
405 | ||
406 | self = self; | |
efc5f224 | 407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxColourDialog",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 408 | return NULL; |
1d99702e RD |
409 | if (_argo0) { |
410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxColourDialog. Expected _wxWindow_p."); |
413 | return NULL; | |
414 | } | |
415 | } | |
1d99702e RD |
416 | if (_argo1) { |
417 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
418 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColourData_p")) { | |
8ab979d7 RD |
419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxColourDialog. Expected _wxColourData_p."); |
420 | return NULL; | |
421 | } | |
422 | } | |
cf694132 | 423 | { |
4268f798 | 424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 425 | _result = (wxColourDialog *)new_wxColourDialog(_arg0,_arg1); |
cf694132 | 426 | |
4268f798 | 427 | wxPyEndAllowThreads(__tstate); |
493f1553 | 428 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
8ab979d7 RD |
436 | return _resultobj; |
437 | } | |
438 | ||
439 | #define wxColourDialog_GetColourData(_swigobj) (_swigobj->GetColourData()) | |
efc5f224 | 440 | static PyObject *_wrap_wxColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
441 | PyObject * _resultobj; |
442 | wxColourData * _result; | |
443 | wxColourDialog * _arg0; | |
1d99702e | 444 | PyObject * _argo0 = 0; |
efc5f224 | 445 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
446 | char _ptemp[128]; |
447 | ||
448 | self = self; | |
efc5f224 | 449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourDialog_GetColourData",_kwnames,&_argo0)) |
8ab979d7 | 450 | return NULL; |
1d99702e RD |
451 | if (_argo0) { |
452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDialog_p")) { | |
8ab979d7 RD |
454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDialog_GetColourData. Expected _wxColourDialog_p."); |
455 | return NULL; | |
456 | } | |
457 | } | |
cf694132 | 458 | { |
4268f798 | 459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 460 | wxColourData & _result_ref = wxColourDialog_GetColourData(_arg0); |
8ab979d7 | 461 | _result = (wxColourData *) &_result_ref; |
cf694132 | 462 | |
4268f798 | 463 | wxPyEndAllowThreads(__tstate); |
493f1553 | 464 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
8ab979d7 RD |
472 | return _resultobj; |
473 | } | |
474 | ||
475 | #define wxColourDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 476 | static PyObject *_wrap_wxColourDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
477 | PyObject * _resultobj; |
478 | int _result; | |
479 | wxColourDialog * _arg0; | |
1d99702e | 480 | PyObject * _argo0 = 0; |
efc5f224 | 481 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
482 | |
483 | self = self; | |
efc5f224 | 484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 485 | return NULL; |
1d99702e RD |
486 | if (_argo0) { |
487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDialog_p")) { | |
8ab979d7 RD |
489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDialog_ShowModal. Expected _wxColourDialog_p."); |
490 | return NULL; | |
491 | } | |
492 | } | |
cf694132 | 493 | { |
4268f798 | 494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 495 | _result = (int )wxColourDialog_ShowModal(_arg0); |
cf694132 | 496 | |
4268f798 | 497 | wxPyEndAllowThreads(__tstate); |
493f1553 | 498 | if (PyErr_Occurred()) return NULL; |
cf694132 | 499 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
500 | return _resultobj; |
501 | } | |
502 | ||
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 | ||
65fe3842 | 511 | static void *SwigwxDirDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 512 | wxDirDialog *src; |
65fe3842 | 513 | wxTopLevelWindow *dest; |
8ab979d7 | 514 | src = (wxDirDialog *) ptr; |
65fe3842 | 515 | dest = (wxTopLevelWindow *) src; |
8ab979d7 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 | ||
9416aa89 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 | ||
8ab979d7 | 543 | #define new_wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 544 | static PyObject *_wrap_new_wxDirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
545 | PyObject * _resultobj; |
546 | wxDirDialog * _result; | |
547 | wxWindow * _arg0; | |
137b5242 RD |
548 | wxString * _arg1 = (wxString *) &wxPyFileSelectorPromptStr; |
549 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
1d99702e | 550 | long _arg3 = (long ) 0; |
e508a2b6 | 551 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
1d99702e | 552 | PyObject * _argo0 = 0; |
137b5242 RD |
553 | PyObject * _obj1 = 0; |
554 | PyObject * _obj2 = 0; | |
2f90df85 RD |
555 | wxPoint temp; |
556 | PyObject * _obj4 = 0; | |
efc5f224 | 557 | char *_kwnames[] = { "parent","message","defaultPath","style","pos", NULL }; |
8ab979d7 RD |
558 | char _ptemp[128]; |
559 | ||
560 | self = self; | |
137b5242 | 561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOlO:new_wxDirDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_obj4)) |
8ab979d7 | 562 | return NULL; |
1d99702e RD |
563 | if (_argo0) { |
564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirDialog. Expected _wxWindow_p."); |
567 | return NULL; | |
568 | } | |
569 | } | |
137b5242 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 | } | |
2f90df85 RD |
582 | if (_obj4) |
583 | { | |
584 | _arg4 = &temp; | |
585 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 586 | return NULL; |
2f90df85 | 587 | } |
cf694132 | 588 | { |
4268f798 | 589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 590 | _result = (wxDirDialog *)new_wxDirDialog(_arg0,*_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 591 | |
4268f798 | 592 | wxPyEndAllowThreads(__tstate); |
493f1553 | 593 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
137b5242 RD |
601 | { |
602 | if (_obj1) | |
603 | delete _arg1; | |
604 | } | |
605 | { | |
606 | if (_obj2) | |
607 | delete _arg2; | |
608 | } | |
8ab979d7 RD |
609 | return _resultobj; |
610 | } | |
611 | ||
612 | #define wxDirDialog_GetPath(_swigobj) (_swigobj->GetPath()) | |
efc5f224 | 613 | static PyObject *_wrap_wxDirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
614 | PyObject * _resultobj; |
615 | wxString * _result; | |
616 | wxDirDialog * _arg0; | |
1d99702e | 617 | PyObject * _argo0 = 0; |
efc5f224 | 618 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
619 | |
620 | self = self; | |
efc5f224 | 621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetPath",_kwnames,&_argo0)) |
8ab979d7 | 622 | return NULL; |
1d99702e RD |
623 | if (_argo0) { |
624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 RD |
626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetPath. Expected _wxDirDialog_p."); |
627 | return NULL; | |
628 | } | |
629 | } | |
8ab979d7 | 630 | { |
4268f798 | 631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 632 | _result = new wxString (wxDirDialog_GetPath(_arg0)); |
cf694132 | 633 | |
4268f798 | 634 | wxPyEndAllowThreads(__tstate); |
493f1553 | 635 | if (PyErr_Occurred()) return NULL; |
cf694132 | 636 | }{ |
c8bc7bb8 RD |
637 | #if wxUSE_UNICODE |
638 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
639 | #else | |
eec92d76 | 640 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 641 | #endif |
8ab979d7 RD |
642 | } |
643 | { | |
644 | delete _result; | |
645 | } | |
646 | return _resultobj; | |
647 | } | |
648 | ||
649 | #define wxDirDialog_GetMessage(_swigobj) (_swigobj->GetMessage()) | |
efc5f224 | 650 | static PyObject *_wrap_wxDirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
651 | PyObject * _resultobj; |
652 | wxString * _result; | |
653 | wxDirDialog * _arg0; | |
1d99702e | 654 | PyObject * _argo0 = 0; |
efc5f224 | 655 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
656 | |
657 | self = self; | |
efc5f224 | 658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetMessage",_kwnames,&_argo0)) |
8ab979d7 | 659 | return NULL; |
1d99702e RD |
660 | if (_argo0) { |
661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 RD |
663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetMessage. Expected _wxDirDialog_p."); |
664 | return NULL; | |
665 | } | |
666 | } | |
8ab979d7 | 667 | { |
4268f798 | 668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 669 | _result = new wxString (wxDirDialog_GetMessage(_arg0)); |
cf694132 | 670 | |
4268f798 | 671 | wxPyEndAllowThreads(__tstate); |
493f1553 | 672 | if (PyErr_Occurred()) return NULL; |
cf694132 | 673 | }{ |
c8bc7bb8 RD |
674 | #if wxUSE_UNICODE |
675 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
676 | #else | |
eec92d76 | 677 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 678 | #endif |
8ab979d7 RD |
679 | } |
680 | { | |
681 | delete _result; | |
682 | } | |
683 | return _resultobj; | |
684 | } | |
685 | ||
686 | #define wxDirDialog_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
efc5f224 | 687 | static PyObject *_wrap_wxDirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
688 | PyObject * _resultobj; |
689 | long _result; | |
690 | wxDirDialog * _arg0; | |
1d99702e | 691 | PyObject * _argo0 = 0; |
efc5f224 | 692 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
693 | |
694 | self = self; | |
efc5f224 | 695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 696 | return NULL; |
1d99702e RD |
697 | if (_argo0) { |
698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 RD |
700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetStyle. Expected _wxDirDialog_p."); |
701 | return NULL; | |
702 | } | |
703 | } | |
cf694132 | 704 | { |
4268f798 | 705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 706 | _result = (long )wxDirDialog_GetStyle(_arg0); |
cf694132 | 707 | |
4268f798 | 708 | wxPyEndAllowThreads(__tstate); |
493f1553 | 709 | if (PyErr_Occurred()) return NULL; |
cf694132 | 710 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
711 | return _resultobj; |
712 | } | |
713 | ||
714 | #define wxDirDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0)) | |
efc5f224 | 715 | static PyObject *_wrap_wxDirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
716 | PyObject * _resultobj; |
717 | wxDirDialog * _arg0; | |
718 | wxString * _arg1; | |
1d99702e | 719 | PyObject * _argo0 = 0; |
8ab979d7 | 720 | PyObject * _obj1 = 0; |
efc5f224 | 721 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
722 | |
723 | self = self; | |
efc5f224 | 724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirDialog_SetMessage",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 725 | return NULL; |
1d99702e RD |
726 | if (_argo0) { |
727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 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) | |
185d7c3e | 736 | return NULL; |
8ab979d7 | 737 | } |
cf694132 | 738 | { |
4268f798 | 739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 740 | wxDirDialog_SetMessage(_arg0,*_arg1); |
cf694132 | 741 | |
4268f798 | 742 | wxPyEndAllowThreads(__tstate); |
493f1553 | 743 | if (PyErr_Occurred()) return NULL; |
cf694132 | 744 | } Py_INCREF(Py_None); |
8ab979d7 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)) | |
efc5f224 | 754 | static PyObject *_wrap_wxDirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
755 | PyObject * _resultobj; |
756 | wxDirDialog * _arg0; | |
757 | wxString * _arg1; | |
1d99702e | 758 | PyObject * _argo0 = 0; |
8ab979d7 | 759 | PyObject * _obj1 = 0; |
efc5f224 | 760 | char *_kwnames[] = { "self","path", NULL }; |
8ab979d7 RD |
761 | |
762 | self = self; | |
efc5f224 | 763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirDialog_SetPath",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 764 | return NULL; |
1d99702e RD |
765 | if (_argo0) { |
766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 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) | |
185d7c3e | 775 | return NULL; |
8ab979d7 | 776 | } |
cf694132 | 777 | { |
4268f798 | 778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 779 | wxDirDialog_SetPath(_arg0,*_arg1); |
cf694132 | 780 | |
4268f798 | 781 | wxPyEndAllowThreads(__tstate); |
493f1553 | 782 | if (PyErr_Occurred()) return NULL; |
cf694132 | 783 | } Py_INCREF(Py_None); |
8ab979d7 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()) | |
efc5f224 | 793 | static PyObject *_wrap_wxDirDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
794 | PyObject * _resultobj; |
795 | int _result; | |
796 | wxDirDialog * _arg0; | |
1d99702e | 797 | PyObject * _argo0 = 0; |
efc5f224 | 798 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
799 | |
800 | self = self; | |
efc5f224 | 801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 802 | return NULL; |
1d99702e RD |
803 | if (_argo0) { |
804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) { | |
8ab979d7 RD |
806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_ShowModal. Expected _wxDirDialog_p."); |
807 | return NULL; | |
808 | } | |
809 | } | |
cf694132 | 810 | { |
4268f798 | 811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 812 | _result = (int )wxDirDialog_ShowModal(_arg0); |
cf694132 | 813 | |
4268f798 | 814 | wxPyEndAllowThreads(__tstate); |
493f1553 | 815 | if (PyErr_Occurred()) return NULL; |
cf694132 | 816 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
817 | return _resultobj; |
818 | } | |
819 | ||
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 | ||
65fe3842 | 828 | static void *SwigwxFileDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 829 | wxFileDialog *src; |
65fe3842 | 830 | wxTopLevelWindow *dest; |
8ab979d7 | 831 | src = (wxFileDialog *) ptr; |
65fe3842 | 832 | dest = (wxTopLevelWindow *) src; |
8ab979d7 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 | ||
9416aa89 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 | ||
8ab979d7 | 860 | #define new_wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 861 | static PyObject *_wrap_new_wxFileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
862 | PyObject * _resultobj; |
863 | wxFileDialog * _result; | |
864 | wxWindow * _arg0; | |
137b5242 RD |
865 | wxString * _arg1 = (wxString *) &wxPyFileSelectorPromptStr; |
866 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
867 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
868 | wxString * _arg4 = (wxString *) &wxPyFileSelectorDefaultWildcardStr; | |
1d99702e | 869 | long _arg5 = (long ) 0; |
e508a2b6 | 870 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; |
1d99702e | 871 | PyObject * _argo0 = 0; |
137b5242 RD |
872 | PyObject * _obj1 = 0; |
873 | PyObject * _obj2 = 0; | |
874 | PyObject * _obj3 = 0; | |
875 | PyObject * _obj4 = 0; | |
2f90df85 RD |
876 | wxPoint temp; |
877 | PyObject * _obj6 = 0; | |
efc5f224 | 878 | char *_kwnames[] = { "parent","message","defaultDir","defaultFile","wildcard","style","pos", NULL }; |
8ab979d7 RD |
879 | char _ptemp[128]; |
880 | ||
881 | self = self; | |
137b5242 | 882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOOlO:new_wxFileDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) |
8ab979d7 | 883 | return NULL; |
1d99702e RD |
884 | if (_argo0) { |
885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileDialog. Expected _wxWindow_p."); |
888 | return NULL; | |
889 | } | |
890 | } | |
137b5242 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 | } | |
2f90df85 RD |
915 | if (_obj6) |
916 | { | |
917 | _arg6 = &temp; | |
918 | if (! wxPoint_helper(_obj6, &_arg6)) | |
8ab979d7 | 919 | return NULL; |
2f90df85 | 920 | } |
cf694132 | 921 | { |
4268f798 | 922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 923 | _result = (wxFileDialog *)new_wxFileDialog(_arg0,*_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
cf694132 | 924 | |
4268f798 | 925 | wxPyEndAllowThreads(__tstate); |
493f1553 | 926 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
137b5242 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 | } | |
8ab979d7 RD |
950 | return _resultobj; |
951 | } | |
952 | ||
953 | #define wxFileDialog_GetDirectory(_swigobj) (_swigobj->GetDirectory()) | |
efc5f224 | 954 | static PyObject *_wrap_wxFileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
955 | PyObject * _resultobj; |
956 | wxString * _result; | |
957 | wxFileDialog * _arg0; | |
1d99702e | 958 | PyObject * _argo0 = 0; |
efc5f224 | 959 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
960 | |
961 | self = self; | |
efc5f224 | 962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetDirectory",_kwnames,&_argo0)) |
8ab979d7 | 963 | return NULL; |
1d99702e RD |
964 | if (_argo0) { |
965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetDirectory. Expected _wxFileDialog_p."); |
968 | return NULL; | |
969 | } | |
970 | } | |
8ab979d7 | 971 | { |
4268f798 | 972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 973 | _result = new wxString (wxFileDialog_GetDirectory(_arg0)); |
cf694132 | 974 | |
4268f798 | 975 | wxPyEndAllowThreads(__tstate); |
493f1553 | 976 | if (PyErr_Occurred()) return NULL; |
cf694132 | 977 | }{ |
c8bc7bb8 RD |
978 | #if wxUSE_UNICODE |
979 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
980 | #else | |
eec92d76 | 981 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 982 | #endif |
8ab979d7 RD |
983 | } |
984 | { | |
985 | delete _result; | |
986 | } | |
987 | return _resultobj; | |
988 | } | |
989 | ||
990 | #define wxFileDialog_GetFilename(_swigobj) (_swigobj->GetFilename()) | |
efc5f224 | 991 | static PyObject *_wrap_wxFileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
992 | PyObject * _resultobj; |
993 | wxString * _result; | |
994 | wxFileDialog * _arg0; | |
1d99702e | 995 | PyObject * _argo0 = 0; |
efc5f224 | 996 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
997 | |
998 | self = self; | |
efc5f224 | 999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilename",_kwnames,&_argo0)) |
8ab979d7 | 1000 | return NULL; |
1d99702e RD |
1001 | if (_argo0) { |
1002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilename. Expected _wxFileDialog_p."); |
1005 | return NULL; | |
1006 | } | |
1007 | } | |
8ab979d7 | 1008 | { |
4268f798 | 1009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1010 | _result = new wxString (wxFileDialog_GetFilename(_arg0)); |
cf694132 | 1011 | |
4268f798 | 1012 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1013 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1014 | }{ |
c8bc7bb8 RD |
1015 | #if wxUSE_UNICODE |
1016 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1017 | #else | |
eec92d76 | 1018 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1019 | #endif |
8ab979d7 RD |
1020 | } |
1021 | { | |
1022 | delete _result; | |
1023 | } | |
1024 | return _resultobj; | |
1025 | } | |
1026 | ||
1027 | #define wxFileDialog_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex()) | |
efc5f224 | 1028 | static PyObject *_wrap_wxFileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1029 | PyObject * _resultobj; |
1030 | int _result; | |
1031 | wxFileDialog * _arg0; | |
1d99702e | 1032 | PyObject * _argo0 = 0; |
efc5f224 | 1033 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1034 | |
1035 | self = self; | |
efc5f224 | 1036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilterIndex",_kwnames,&_argo0)) |
8ab979d7 | 1037 | return NULL; |
1d99702e RD |
1038 | if (_argo0) { |
1039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilterIndex. Expected _wxFileDialog_p."); |
1042 | return NULL; | |
1043 | } | |
1044 | } | |
cf694132 | 1045 | { |
4268f798 | 1046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1047 | _result = (int )wxFileDialog_GetFilterIndex(_arg0); |
cf694132 | 1048 | |
4268f798 | 1049 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1050 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1051 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1052 | return _resultobj; |
1053 | } | |
1054 | ||
1055 | #define wxFileDialog_GetMessage(_swigobj) (_swigobj->GetMessage()) | |
efc5f224 | 1056 | static PyObject *_wrap_wxFileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1057 | PyObject * _resultobj; |
1058 | wxString * _result; | |
1059 | wxFileDialog * _arg0; | |
1d99702e | 1060 | PyObject * _argo0 = 0; |
efc5f224 | 1061 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1062 | |
1063 | self = self; | |
efc5f224 | 1064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetMessage",_kwnames,&_argo0)) |
8ab979d7 | 1065 | return NULL; |
1d99702e RD |
1066 | if (_argo0) { |
1067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetMessage. Expected _wxFileDialog_p."); |
1070 | return NULL; | |
1071 | } | |
1072 | } | |
8ab979d7 | 1073 | { |
4268f798 | 1074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1075 | _result = new wxString (wxFileDialog_GetMessage(_arg0)); |
cf694132 | 1076 | |
4268f798 | 1077 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1078 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1079 | }{ |
c8bc7bb8 RD |
1080 | #if wxUSE_UNICODE |
1081 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1082 | #else | |
eec92d76 | 1083 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1084 | #endif |
8ab979d7 RD |
1085 | } |
1086 | { | |
1087 | delete _result; | |
1088 | } | |
1089 | return _resultobj; | |
1090 | } | |
1091 | ||
1092 | #define wxFileDialog_GetPath(_swigobj) (_swigobj->GetPath()) | |
efc5f224 | 1093 | static PyObject *_wrap_wxFileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1094 | PyObject * _resultobj; |
1095 | wxString * _result; | |
1096 | wxFileDialog * _arg0; | |
1d99702e | 1097 | PyObject * _argo0 = 0; |
efc5f224 | 1098 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1099 | |
1100 | self = self; | |
efc5f224 | 1101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetPath",_kwnames,&_argo0)) |
8ab979d7 | 1102 | return NULL; |
1d99702e RD |
1103 | if (_argo0) { |
1104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetPath. Expected _wxFileDialog_p."); |
1107 | return NULL; | |
1108 | } | |
1109 | } | |
8ab979d7 | 1110 | { |
4268f798 | 1111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1112 | _result = new wxString (wxFileDialog_GetPath(_arg0)); |
cf694132 | 1113 | |
4268f798 | 1114 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1115 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1116 | }{ |
c8bc7bb8 RD |
1117 | #if wxUSE_UNICODE |
1118 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1119 | #else | |
eec92d76 | 1120 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1121 | #endif |
8ab979d7 RD |
1122 | } |
1123 | { | |
1124 | delete _result; | |
1125 | } | |
1126 | return _resultobj; | |
1127 | } | |
1128 | ||
1129 | #define wxFileDialog_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
efc5f224 | 1130 | static PyObject *_wrap_wxFileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1131 | PyObject * _resultobj; |
1132 | long _result; | |
1133 | wxFileDialog * _arg0; | |
1d99702e | 1134 | PyObject * _argo0 = 0; |
efc5f224 | 1135 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1136 | |
1137 | self = self; | |
efc5f224 | 1138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 1139 | return NULL; |
1d99702e RD |
1140 | if (_argo0) { |
1141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetStyle. Expected _wxFileDialog_p."); |
1144 | return NULL; | |
1145 | } | |
1146 | } | |
cf694132 | 1147 | { |
4268f798 | 1148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1149 | _result = (long )wxFileDialog_GetStyle(_arg0); |
cf694132 | 1150 | |
4268f798 | 1151 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1152 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1153 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1154 | return _resultobj; |
1155 | } | |
1156 | ||
1157 | #define wxFileDialog_GetWildcard(_swigobj) (_swigobj->GetWildcard()) | |
efc5f224 | 1158 | static PyObject *_wrap_wxFileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1159 | PyObject * _resultobj; |
1160 | wxString * _result; | |
1161 | wxFileDialog * _arg0; | |
1d99702e | 1162 | PyObject * _argo0 = 0; |
efc5f224 | 1163 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1164 | |
1165 | self = self; | |
efc5f224 | 1166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetWildcard",_kwnames,&_argo0)) |
8ab979d7 | 1167 | return NULL; |
1d99702e RD |
1168 | if (_argo0) { |
1169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetWildcard. Expected _wxFileDialog_p."); |
1172 | return NULL; | |
1173 | } | |
1174 | } | |
8ab979d7 | 1175 | { |
4268f798 | 1176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1177 | _result = new wxString (wxFileDialog_GetWildcard(_arg0)); |
cf694132 | 1178 | |
4268f798 | 1179 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1180 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1181 | }{ |
c8bc7bb8 RD |
1182 | #if wxUSE_UNICODE |
1183 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1184 | #else | |
eec92d76 | 1185 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1186 | #endif |
8ab979d7 RD |
1187 | } |
1188 | { | |
1189 | delete _result; | |
1190 | } | |
1191 | return _resultobj; | |
1192 | } | |
1193 | ||
1194 | #define wxFileDialog_SetDirectory(_swigobj,_swigarg0) (_swigobj->SetDirectory(_swigarg0)) | |
efc5f224 | 1195 | static PyObject *_wrap_wxFileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1196 | PyObject * _resultobj; |
1197 | wxFileDialog * _arg0; | |
1198 | wxString * _arg1; | |
1d99702e | 1199 | PyObject * _argo0 = 0; |
8ab979d7 | 1200 | PyObject * _obj1 = 0; |
efc5f224 | 1201 | char *_kwnames[] = { "self","directory", NULL }; |
8ab979d7 RD |
1202 | |
1203 | self = self; | |
efc5f224 | 1204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetDirectory",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1205 | return NULL; |
1d99702e RD |
1206 | if (_argo0) { |
1207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 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) | |
185d7c3e | 1216 | return NULL; |
8ab979d7 | 1217 | } |
cf694132 | 1218 | { |
4268f798 | 1219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1220 | wxFileDialog_SetDirectory(_arg0,*_arg1); |
cf694132 | 1221 | |
4268f798 | 1222 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1223 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1224 | } Py_INCREF(Py_None); |
8ab979d7 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)) | |
efc5f224 | 1234 | static PyObject *_wrap_wxFileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1235 | PyObject * _resultobj; |
1236 | wxFileDialog * _arg0; | |
1237 | wxString * _arg1; | |
1d99702e | 1238 | PyObject * _argo0 = 0; |
8ab979d7 | 1239 | PyObject * _obj1 = 0; |
efc5f224 | 1240 | char *_kwnames[] = { "self","setfilename", NULL }; |
8ab979d7 RD |
1241 | |
1242 | self = self; | |
efc5f224 | 1243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetFilename",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1244 | return NULL; |
1d99702e RD |
1245 | if (_argo0) { |
1246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 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) | |
185d7c3e | 1255 | return NULL; |
8ab979d7 | 1256 | } |
cf694132 | 1257 | { |
4268f798 | 1258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1259 | wxFileDialog_SetFilename(_arg0,*_arg1); |
cf694132 | 1260 | |
4268f798 | 1261 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1263 | } Py_INCREF(Py_None); |
8ab979d7 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)) | |
efc5f224 | 1273 | static PyObject *_wrap_wxFileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1274 | PyObject * _resultobj; |
1275 | wxFileDialog * _arg0; | |
1276 | int _arg1; | |
1d99702e | 1277 | PyObject * _argo0 = 0; |
efc5f224 | 1278 | char *_kwnames[] = { "self","filterIndex", NULL }; |
8ab979d7 RD |
1279 | |
1280 | self = self; | |
efc5f224 | 1281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileDialog_SetFilterIndex",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1282 | return NULL; |
1d99702e RD |
1283 | if (_argo0) { |
1284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetFilterIndex. Expected _wxFileDialog_p."); |
1287 | return NULL; | |
1288 | } | |
1289 | } | |
cf694132 | 1290 | { |
4268f798 | 1291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1292 | wxFileDialog_SetFilterIndex(_arg0,_arg1); |
cf694132 | 1293 | |
4268f798 | 1294 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1295 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1296 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1297 | _resultobj = Py_None; |
1298 | return _resultobj; | |
1299 | } | |
1300 | ||
1301 | #define wxFileDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0)) | |
efc5f224 | 1302 | static PyObject *_wrap_wxFileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1303 | PyObject * _resultobj; |
1304 | wxFileDialog * _arg0; | |
1305 | wxString * _arg1; | |
1d99702e | 1306 | PyObject * _argo0 = 0; |
8ab979d7 | 1307 | PyObject * _obj1 = 0; |
efc5f224 | 1308 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
1309 | |
1310 | self = self; | |
efc5f224 | 1311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetMessage",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1312 | return NULL; |
1d99702e RD |
1313 | if (_argo0) { |
1314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 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) | |
185d7c3e | 1323 | return NULL; |
8ab979d7 | 1324 | } |
cf694132 | 1325 | { |
4268f798 | 1326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1327 | wxFileDialog_SetMessage(_arg0,*_arg1); |
cf694132 | 1328 | |
4268f798 | 1329 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1330 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1331 | } Py_INCREF(Py_None); |
8ab979d7 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)) | |
efc5f224 | 1341 | static PyObject *_wrap_wxFileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1342 | PyObject * _resultobj; |
1343 | wxFileDialog * _arg0; | |
1344 | wxString * _arg1; | |
1d99702e | 1345 | PyObject * _argo0 = 0; |
8ab979d7 | 1346 | PyObject * _obj1 = 0; |
efc5f224 | 1347 | char *_kwnames[] = { "self","path", NULL }; |
8ab979d7 RD |
1348 | |
1349 | self = self; | |
efc5f224 | 1350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetPath",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1351 | return NULL; |
1d99702e RD |
1352 | if (_argo0) { |
1353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 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) | |
185d7c3e | 1362 | return NULL; |
8ab979d7 | 1363 | } |
cf694132 | 1364 | { |
4268f798 | 1365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1366 | wxFileDialog_SetPath(_arg0,*_arg1); |
cf694132 | 1367 | |
4268f798 | 1368 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1369 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1370 | } Py_INCREF(Py_None); |
8ab979d7 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)) | |
efc5f224 | 1380 | static PyObject *_wrap_wxFileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1381 | PyObject * _resultobj; |
1382 | wxFileDialog * _arg0; | |
1383 | long _arg1; | |
1d99702e | 1384 | PyObject * _argo0 = 0; |
efc5f224 | 1385 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
1386 | |
1387 | self = self; | |
efc5f224 | 1388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxFileDialog_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1389 | return NULL; |
1d99702e RD |
1390 | if (_argo0) { |
1391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetStyle. Expected _wxFileDialog_p."); |
1394 | return NULL; | |
1395 | } | |
1396 | } | |
cf694132 | 1397 | { |
4268f798 | 1398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1399 | wxFileDialog_SetStyle(_arg0,_arg1); |
cf694132 | 1400 | |
4268f798 | 1401 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1402 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1403 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1404 | _resultobj = Py_None; |
1405 | return _resultobj; | |
1406 | } | |
1407 | ||
1408 | #define wxFileDialog_SetWildcard(_swigobj,_swigarg0) (_swigobj->SetWildcard(_swigarg0)) | |
efc5f224 | 1409 | static PyObject *_wrap_wxFileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1410 | PyObject * _resultobj; |
1411 | wxFileDialog * _arg0; | |
1412 | wxString * _arg1; | |
1d99702e | 1413 | PyObject * _argo0 = 0; |
8ab979d7 | 1414 | PyObject * _obj1 = 0; |
efc5f224 | 1415 | char *_kwnames[] = { "self","wildCard", NULL }; |
8ab979d7 RD |
1416 | |
1417 | self = self; | |
efc5f224 | 1418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetWildcard",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1419 | return NULL; |
1d99702e RD |
1420 | if (_argo0) { |
1421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 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) | |
8ab979d7 | 1430 | return NULL; |
8ab979d7 | 1431 | } |
cf694132 | 1432 | { |
4268f798 | 1433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1434 | wxFileDialog_SetWildcard(_arg0,*_arg1); |
cf694132 | 1435 | |
4268f798 | 1436 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1437 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1438 | } Py_INCREF(Py_None); |
8ab979d7 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()) | |
efc5f224 | 1448 | static PyObject *_wrap_wxFileDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1449 | PyObject * _resultobj; |
1450 | int _result; | |
1451 | wxFileDialog * _arg0; | |
1d99702e | 1452 | PyObject * _argo0 = 0; |
efc5f224 | 1453 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1454 | |
1455 | self = self; | |
efc5f224 | 1456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 1457 | return NULL; |
1d99702e RD |
1458 | if (_argo0) { |
1459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) { | |
8ab979d7 RD |
1461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_ShowModal. Expected _wxFileDialog_p."); |
1462 | return NULL; | |
1463 | } | |
1464 | } | |
cf694132 | 1465 | { |
4268f798 | 1466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1467 | _result = (int )wxFileDialog_ShowModal(_arg0); |
cf694132 | 1468 | |
4268f798 | 1469 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1470 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1471 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1472 | return _resultobj; |
1473 | } | |
1474 | ||
f6bcfd97 BP |
1475 | static PyObject * wxFileDialog_GetFilenames(wxFileDialog *self) { |
1476 | wxArrayString arr; | |
1477 | self->GetFilenames(arr); | |
b37c7e1d | 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 | { | |
4268f798 | 1498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1499 | _result = (PyObject *)wxFileDialog_GetFilenames(_arg0); |
f6bcfd97 | 1500 | |
4268f798 | 1501 | wxPyEndAllowThreads(__tstate); |
493f1553 | 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); | |
b37c7e1d | 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 | { | |
4268f798 | 1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1533 | _result = (PyObject *)wxFileDialog_GetPaths(_arg0); |
f6bcfd97 | 1534 | |
4268f798 | 1535 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1536 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1537 | }{ |
1538 | _resultobj = _result; | |
1539 | } | |
1540 | return _resultobj; | |
1541 | } | |
1542 | ||
293a0a86 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) | |
293a0a86 | 1616 | return NULL; |
293a0a86 RD |
1617 | } |
1618 | { | |
c8bc7bb8 RD |
1619 | _arg2 = wxString_in_helper(_obj2); |
1620 | if (_arg2 == NULL) | |
293a0a86 | 1621 | return NULL; |
293a0a86 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); |
293a0a86 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); |
293a0a86 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); |
293a0a86 RD |
1743 | |
1744 | wxPyEndAllowThreads(__tstate); | |
1745 | if (PyErr_Occurred()) return NULL; | |
1746 | }{ | |
1747 | _resultobj = _result; | |
1748 | } | |
1749 | return _resultobj; | |
1750 | } | |
1751 | ||
8ab979d7 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 | ||
65fe3842 | 1760 | static void *SwigwxSingleChoiceDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 1761 | wxSingleChoiceDialog *src; |
65fe3842 | 1762 | wxTopLevelWindow *dest; |
8ab979d7 | 1763 | src = (wxSingleChoiceDialog *) ptr; |
65fe3842 | 1764 | dest = (wxTopLevelWindow *) src; |
8ab979d7 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 | ||
9416aa89 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 | ||
eec92d76 | 1792 | static wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString *message,wxString *caption,int LCOUNT,wxString *choices,long style,wxPoint *pos) { |
8ab979d7 | 1793 | return new wxSingleChoiceDialog(parent, *message, *caption, |
eec92d76 | 1794 | LCOUNT, choices, NULL, style, *pos); |
8ab979d7 RD |
1795 | } |
1796 | ||
efc5f224 | 1797 | static PyObject *_wrap_new_wxSingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1798 | PyObject * _resultobj; |
1799 | wxSingleChoiceDialog * _result; | |
1800 | wxWindow * _arg0; | |
1801 | wxString * _arg1; | |
1802 | wxString * _arg2; | |
1803 | int _arg3; | |
1804 | wxString * _arg4; | |
293a0a86 | 1805 | long _arg5 = (long ) (wxCHOICEDLG_STYLE); |
e508a2b6 | 1806 | wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition; |
1d99702e | 1807 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1808 | PyObject * _obj1 = 0; |
1809 | PyObject * _obj2 = 0; | |
1810 | PyObject * _obj4 = 0; | |
2f90df85 RD |
1811 | wxPoint temp; |
1812 | PyObject * _obj6 = 0; | |
eec92d76 | 1813 | char *_kwnames[] = { "parent","message","caption","choices","style","pos", NULL }; |
8ab979d7 RD |
1814 | char _ptemp[128]; |
1815 | ||
1816 | self = self; | |
2f90df85 | 1817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|lO:new_wxSingleChoiceDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj4,&_arg5,&_obj6)) |
8ab979d7 | 1818 | return NULL; |
1d99702e RD |
1819 | if (_argo0) { |
1820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 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) | |
8ab979d7 | 1829 | return NULL; |
8ab979d7 RD |
1830 | } |
1831 | { | |
c8bc7bb8 RD |
1832 | _arg2 = wxString_in_helper(_obj2); |
1833 | if (_arg2 == NULL) | |
8ab979d7 | 1834 | return NULL; |
8ab979d7 RD |
1835 | } |
1836 | if (_obj4) | |
1837 | { | |
1838 | _arg4 = wxString_LIST_helper(_obj4); | |
1839 | if (_arg4 == NULL) { | |
1840 | return NULL; | |
1841 | } | |
1842 | } | |
2f90df85 RD |
1843 | if (_obj6) |
1844 | { | |
1845 | _arg6 = &temp; | |
1846 | if (! wxPoint_helper(_obj6, &_arg6)) | |
8ab979d7 | 1847 | return NULL; |
2f90df85 | 1848 | } |
8ab979d7 | 1849 | { |
cf694132 RD |
1850 | if (_obj4) { |
1851 | _arg3 = PyList_Size(_obj4); | |
1852 | } | |
1853 | else { | |
1854 | _arg3 = 0; | |
1855 | } | |
8ab979d7 | 1856 | } |
cf694132 | 1857 | { |
4268f798 | 1858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1859 | _result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 1860 | |
4268f798 | 1861 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1862 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
8ab979d7 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()) | |
efc5f224 | 1885 | static PyObject *_wrap_wxSingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1886 | PyObject * _resultobj; |
1887 | int _result; | |
1888 | wxSingleChoiceDialog * _arg0; | |
1d99702e | 1889 | PyObject * _argo0 = 0; |
efc5f224 | 1890 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1891 | |
1892 | self = self; | |
efc5f224 | 1893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 1894 | return NULL; |
1d99702e RD |
1895 | if (_argo0) { |
1896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
8ab979d7 RD |
1898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetSelection. Expected _wxSingleChoiceDialog_p."); |
1899 | return NULL; | |
1900 | } | |
1901 | } | |
cf694132 | 1902 | { |
4268f798 | 1903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1904 | _result = (int )wxSingleChoiceDialog_GetSelection(_arg0); |
cf694132 | 1905 | |
4268f798 | 1906 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1907 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1908 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1909 | return _resultobj; |
1910 | } | |
1911 | ||
1912 | #define wxSingleChoiceDialog_GetStringSelection(_swigobj) (_swigobj->GetStringSelection()) | |
efc5f224 | 1913 | static PyObject *_wrap_wxSingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1914 | PyObject * _resultobj; |
1915 | wxString * _result; | |
1916 | wxSingleChoiceDialog * _arg0; | |
1d99702e | 1917 | PyObject * _argo0 = 0; |
efc5f224 | 1918 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1919 | |
1920 | self = self; | |
efc5f224 | 1921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetStringSelection",_kwnames,&_argo0)) |
8ab979d7 | 1922 | return NULL; |
1d99702e RD |
1923 | if (_argo0) { |
1924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
8ab979d7 RD |
1926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetStringSelection. Expected _wxSingleChoiceDialog_p."); |
1927 | return NULL; | |
1928 | } | |
1929 | } | |
8ab979d7 | 1930 | { |
4268f798 | 1931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1932 | _result = new wxString (wxSingleChoiceDialog_GetStringSelection(_arg0)); |
cf694132 | 1933 | |
4268f798 | 1934 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1935 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1936 | }{ |
c8bc7bb8 RD |
1937 | #if wxUSE_UNICODE |
1938 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1939 | #else | |
eec92d76 | 1940 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1941 | #endif |
8ab979d7 RD |
1942 | } |
1943 | { | |
1944 | delete _result; | |
1945 | } | |
1946 | return _resultobj; | |
1947 | } | |
1948 | ||
1949 | #define wxSingleChoiceDialog_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) | |
efc5f224 | 1950 | static PyObject *_wrap_wxSingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1951 | PyObject * _resultobj; |
1952 | wxSingleChoiceDialog * _arg0; | |
1953 | int _arg1; | |
1d99702e | 1954 | PyObject * _argo0 = 0; |
efc5f224 | 1955 | char *_kwnames[] = { "self","sel", NULL }; |
8ab979d7 RD |
1956 | |
1957 | self = self; | |
efc5f224 | 1958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSingleChoiceDialog_SetSelection",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1959 | return NULL; |
1d99702e RD |
1960 | if (_argo0) { |
1961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
8ab979d7 RD |
1963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_SetSelection. Expected _wxSingleChoiceDialog_p."); |
1964 | return NULL; | |
1965 | } | |
1966 | } | |
cf694132 | 1967 | { |
4268f798 | 1968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1969 | wxSingleChoiceDialog_SetSelection(_arg0,_arg1); |
cf694132 | 1970 | |
4268f798 | 1971 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1972 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1973 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1974 | _resultobj = Py_None; |
1975 | return _resultobj; | |
1976 | } | |
1977 | ||
1978 | #define wxSingleChoiceDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 1979 | static PyObject *_wrap_wxSingleChoiceDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1980 | PyObject * _resultobj; |
1981 | int _result; | |
1982 | wxSingleChoiceDialog * _arg0; | |
1d99702e | 1983 | PyObject * _argo0 = 0; |
efc5f224 | 1984 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1985 | |
1986 | self = self; | |
efc5f224 | 1987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 1988 | return NULL; |
1d99702e RD |
1989 | if (_argo0) { |
1990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) { | |
8ab979d7 RD |
1992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_ShowModal. Expected _wxSingleChoiceDialog_p."); |
1993 | return NULL; | |
1994 | } | |
1995 | } | |
cf694132 | 1996 | { |
4268f798 | 1997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1998 | _result = (int )wxSingleChoiceDialog_ShowModal(_arg0); |
cf694132 | 1999 | |
4268f798 | 2000 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2001 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2002 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 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 | ||
65fe3842 | 2014 | static void *SwigwxTextEntryDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 2015 | wxTextEntryDialog *src; |
65fe3842 | 2016 | wxTopLevelWindow *dest; |
8ab979d7 | 2017 | src = (wxTextEntryDialog *) ptr; |
65fe3842 | 2018 | dest = (wxTopLevelWindow *) src; |
8ab979d7 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 | ||
9416aa89 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 | ||
8ab979d7 | 2046 | #define new_wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2047 | static PyObject *_wrap_new_wxTextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2048 | PyObject * _resultobj; |
2049 | wxTextEntryDialog * _result; | |
2050 | wxWindow * _arg0; | |
137b5242 RD |
2051 | wxString * _arg1; |
2052 | wxString * _arg2 = (wxString *) &wxPyGetTextFromUserPromptStr; | |
2053 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
1d99702e | 2054 | long _arg4 = (long ) wxOK|wxCANCEL|wxCENTRE; |
e508a2b6 | 2055 | wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition; |
1d99702e | 2056 | PyObject * _argo0 = 0; |
137b5242 RD |
2057 | PyObject * _obj1 = 0; |
2058 | PyObject * _obj2 = 0; | |
2059 | PyObject * _obj3 = 0; | |
2f90df85 RD |
2060 | wxPoint temp; |
2061 | PyObject * _obj5 = 0; | |
efc5f224 | 2062 | char *_kwnames[] = { "parent","message","caption","defaultValue","style","pos", NULL }; |
8ab979d7 RD |
2063 | char _ptemp[128]; |
2064 | ||
2065 | self = self; | |
137b5242 | 2066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OOlO:new_wxTextEntryDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 2067 | return NULL; |
1d99702e RD |
2068 | if (_argo0) { |
2069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextEntryDialog. Expected _wxWindow_p."); |
2072 | return NULL; | |
2073 | } | |
2074 | } | |
137b5242 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 | } | |
2f90df85 RD |
2092 | if (_obj5) |
2093 | { | |
2094 | _arg5 = &temp; | |
2095 | if (! wxPoint_helper(_obj5, &_arg5)) | |
8ab979d7 | 2096 | return NULL; |
2f90df85 | 2097 | } |
cf694132 | 2098 | { |
4268f798 | 2099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2100 | _result = (wxTextEntryDialog *)new_wxTextEntryDialog(_arg0,*_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 2101 | |
4268f798 | 2102 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2103 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
137b5242 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 | } | |
8ab979d7 RD |
2123 | return _resultobj; |
2124 | } | |
2125 | ||
2126 | #define wxTextEntryDialog_GetValue(_swigobj) (_swigobj->GetValue()) | |
efc5f224 | 2127 | static PyObject *_wrap_wxTextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2128 | PyObject * _resultobj; |
2129 | wxString * _result; | |
2130 | wxTextEntryDialog * _arg0; | |
1d99702e | 2131 | PyObject * _argo0 = 0; |
efc5f224 | 2132 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2133 | |
2134 | self = self; | |
efc5f224 | 2135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_GetValue",_kwnames,&_argo0)) |
8ab979d7 | 2136 | return NULL; |
1d99702e RD |
2137 | if (_argo0) { |
2138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
8ab979d7 RD |
2140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_GetValue. Expected _wxTextEntryDialog_p."); |
2141 | return NULL; | |
2142 | } | |
2143 | } | |
8ab979d7 | 2144 | { |
4268f798 | 2145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2146 | _result = new wxString (wxTextEntryDialog_GetValue(_arg0)); |
cf694132 | 2147 | |
4268f798 | 2148 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2149 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2150 | }{ |
c8bc7bb8 RD |
2151 | #if wxUSE_UNICODE |
2152 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2153 | #else | |
eec92d76 | 2154 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2155 | #endif |
8ab979d7 RD |
2156 | } |
2157 | { | |
2158 | delete _result; | |
2159 | } | |
2160 | return _resultobj; | |
2161 | } | |
2162 | ||
2163 | #define wxTextEntryDialog_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0)) | |
efc5f224 | 2164 | static PyObject *_wrap_wxTextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2165 | PyObject * _resultobj; |
2166 | wxTextEntryDialog * _arg0; | |
2167 | wxString * _arg1; | |
1d99702e | 2168 | PyObject * _argo0 = 0; |
8ab979d7 | 2169 | PyObject * _obj1 = 0; |
efc5f224 | 2170 | char *_kwnames[] = { "self","value", NULL }; |
8ab979d7 RD |
2171 | |
2172 | self = self; | |
efc5f224 | 2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextEntryDialog_SetValue",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2174 | return NULL; |
1d99702e RD |
2175 | if (_argo0) { |
2176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
8ab979d7 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) | |
185d7c3e | 2185 | return NULL; |
8ab979d7 | 2186 | } |
cf694132 | 2187 | { |
4268f798 | 2188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2189 | wxTextEntryDialog_SetValue(_arg0,*_arg1); |
cf694132 | 2190 | |
4268f798 | 2191 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2192 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2193 | } Py_INCREF(Py_None); |
8ab979d7 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()) | |
efc5f224 | 2203 | static PyObject *_wrap_wxTextEntryDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2204 | PyObject * _resultobj; |
2205 | int _result; | |
2206 | wxTextEntryDialog * _arg0; | |
1d99702e | 2207 | PyObject * _argo0 = 0; |
efc5f224 | 2208 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2209 | |
2210 | self = self; | |
efc5f224 | 2211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 2212 | return NULL; |
1d99702e RD |
2213 | if (_argo0) { |
2214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) { | |
8ab979d7 RD |
2216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_ShowModal. Expected _wxTextEntryDialog_p."); |
2217 | return NULL; | |
2218 | } | |
2219 | } | |
cf694132 | 2220 | { |
4268f798 | 2221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2222 | _result = (int )wxTextEntryDialog_ShowModal(_arg0); |
cf694132 | 2223 | |
4268f798 | 2224 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2225 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2226 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2227 | return _resultobj; |
2228 | } | |
2229 | ||
9416aa89 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 | ||
8ab979d7 | 2238 | #define new_wxFontData() (new wxFontData()) |
efc5f224 | 2239 | static PyObject *_wrap_new_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2240 | PyObject * _resultobj; |
2241 | wxFontData * _result; | |
efc5f224 | 2242 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
2243 | char _ptemp[128]; |
2244 | ||
2245 | self = self; | |
efc5f224 | 2246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontData",_kwnames)) |
8ab979d7 | 2247 | return NULL; |
cf694132 | 2248 | { |
4268f798 | 2249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2250 | _result = (wxFontData *)new_wxFontData(); |
cf694132 | 2251 | |
4268f798 | 2252 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2253 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
8ab979d7 RD |
2261 | return _resultobj; |
2262 | } | |
2263 | ||
2264 | #define delete_wxFontData(_swigobj) (delete _swigobj) | |
efc5f224 | 2265 | static PyObject *_wrap_delete_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2266 | PyObject * _resultobj; |
2267 | wxFontData * _arg0; | |
1d99702e | 2268 | PyObject * _argo0 = 0; |
efc5f224 | 2269 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2270 | |
2271 | self = self; | |
efc5f224 | 2272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontData",_kwnames,&_argo0)) |
8ab979d7 | 2273 | return NULL; |
1d99702e RD |
2274 | if (_argo0) { |
2275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontData. Expected _wxFontData_p."); |
2278 | return NULL; | |
2279 | } | |
2280 | } | |
cf694132 | 2281 | { |
4268f798 | 2282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2283 | delete_wxFontData(_arg0); |
cf694132 | 2284 | |
4268f798 | 2285 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2286 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2287 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2288 | _resultobj = Py_None; |
2289 | return _resultobj; | |
2290 | } | |
2291 | ||
2292 | #define wxFontData_EnableEffects(_swigobj,_swigarg0) (_swigobj->EnableEffects(_swigarg0)) | |
efc5f224 | 2293 | static PyObject *_wrap_wxFontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2294 | PyObject * _resultobj; |
2295 | wxFontData * _arg0; | |
2296 | bool _arg1; | |
1d99702e | 2297 | PyObject * _argo0 = 0; |
8ab979d7 | 2298 | int tempbool1; |
efc5f224 | 2299 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
2300 | |
2301 | self = self; | |
efc5f224 | 2302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_EnableEffects",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2303 | return NULL; |
1d99702e RD |
2304 | if (_argo0) { |
2305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 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; | |
cf694132 | 2312 | { |
4268f798 | 2313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2314 | wxFontData_EnableEffects(_arg0,_arg1); |
cf694132 | 2315 | |
4268f798 | 2316 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2317 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2318 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2319 | _resultobj = Py_None; |
2320 | return _resultobj; | |
2321 | } | |
2322 | ||
2323 | #define wxFontData_GetAllowSymbols(_swigobj) (_swigobj->GetAllowSymbols()) | |
efc5f224 | 2324 | static PyObject *_wrap_wxFontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2325 | PyObject * _resultobj; |
2326 | bool _result; | |
2327 | wxFontData * _arg0; | |
1d99702e | 2328 | PyObject * _argo0 = 0; |
efc5f224 | 2329 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2330 | |
2331 | self = self; | |
efc5f224 | 2332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetAllowSymbols",_kwnames,&_argo0)) |
8ab979d7 | 2333 | return NULL; |
1d99702e RD |
2334 | if (_argo0) { |
2335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetAllowSymbols. Expected _wxFontData_p."); |
2338 | return NULL; | |
2339 | } | |
2340 | } | |
cf694132 | 2341 | { |
4268f798 | 2342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2343 | _result = (bool )wxFontData_GetAllowSymbols(_arg0); |
cf694132 | 2344 | |
4268f798 | 2345 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2346 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2347 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2348 | return _resultobj; |
2349 | } | |
2350 | ||
2351 | #define wxFontData_GetColour(_swigobj) (_swigobj->GetColour()) | |
efc5f224 | 2352 | static PyObject *_wrap_wxFontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2353 | PyObject * _resultobj; |
2354 | wxColour * _result; | |
2355 | wxFontData * _arg0; | |
1d99702e | 2356 | PyObject * _argo0 = 0; |
efc5f224 | 2357 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2358 | char _ptemp[128]; |
2359 | ||
2360 | self = self; | |
efc5f224 | 2361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 2362 | return NULL; |
1d99702e RD |
2363 | if (_argo0) { |
2364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetColour. Expected _wxFontData_p."); |
2367 | return NULL; | |
2368 | } | |
2369 | } | |
cf694132 | 2370 | { |
4268f798 | 2371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2372 | _result = new wxColour (wxFontData_GetColour(_arg0)); |
cf694132 | 2373 | |
4268f798 | 2374 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2375 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
2376 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
2377 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2378 | return _resultobj; |
2379 | } | |
2380 | ||
2381 | #define wxFontData_GetChosenFont(_swigobj) (_swigobj->GetChosenFont()) | |
efc5f224 | 2382 | static PyObject *_wrap_wxFontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2383 | PyObject * _resultobj; |
2384 | wxFont * _result; | |
2385 | wxFontData * _arg0; | |
1d99702e | 2386 | PyObject * _argo0 = 0; |
efc5f224 | 2387 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2388 | char _ptemp[128]; |
2389 | ||
2390 | self = self; | |
efc5f224 | 2391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetChosenFont",_kwnames,&_argo0)) |
8ab979d7 | 2392 | return NULL; |
1d99702e RD |
2393 | if (_argo0) { |
2394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetChosenFont. Expected _wxFontData_p."); |
2397 | return NULL; | |
2398 | } | |
2399 | } | |
cf694132 | 2400 | { |
4268f798 | 2401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2402 | _result = new wxFont (wxFontData_GetChosenFont(_arg0)); |
cf694132 | 2403 | |
4268f798 | 2404 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2405 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2406 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
8ab979d7 RD |
2407 | _resultobj = Py_BuildValue("s",_ptemp); |
2408 | return _resultobj; | |
2409 | } | |
2410 | ||
2411 | #define wxFontData_GetEnableEffects(_swigobj) (_swigobj->GetEnableEffects()) | |
efc5f224 | 2412 | static PyObject *_wrap_wxFontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2413 | PyObject * _resultobj; |
2414 | bool _result; | |
2415 | wxFontData * _arg0; | |
1d99702e | 2416 | PyObject * _argo0 = 0; |
efc5f224 | 2417 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2418 | |
2419 | self = self; | |
efc5f224 | 2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetEnableEffects",_kwnames,&_argo0)) |
8ab979d7 | 2421 | return NULL; |
1d99702e RD |
2422 | if (_argo0) { |
2423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetEnableEffects. Expected _wxFontData_p."); |
2426 | return NULL; | |
2427 | } | |
2428 | } | |
cf694132 | 2429 | { |
4268f798 | 2430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2431 | _result = (bool )wxFontData_GetEnableEffects(_arg0); |
cf694132 | 2432 | |
4268f798 | 2433 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2434 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2435 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2436 | return _resultobj; |
2437 | } | |
2438 | ||
2439 | #define wxFontData_GetInitialFont(_swigobj) (_swigobj->GetInitialFont()) | |
efc5f224 | 2440 | static PyObject *_wrap_wxFontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2441 | PyObject * _resultobj; |
2442 | wxFont * _result; | |
2443 | wxFontData * _arg0; | |
1d99702e | 2444 | PyObject * _argo0 = 0; |
efc5f224 | 2445 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2446 | char _ptemp[128]; |
2447 | ||
2448 | self = self; | |
efc5f224 | 2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetInitialFont",_kwnames,&_argo0)) |
8ab979d7 | 2450 | return NULL; |
1d99702e RD |
2451 | if (_argo0) { |
2452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetInitialFont. Expected _wxFontData_p."); |
2455 | return NULL; | |
2456 | } | |
2457 | } | |
cf694132 | 2458 | { |
4268f798 | 2459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2460 | _result = new wxFont (wxFontData_GetInitialFont(_arg0)); |
cf694132 | 2461 | |
4268f798 | 2462 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2463 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2464 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
8ab979d7 RD |
2465 | _resultobj = Py_BuildValue("s",_ptemp); |
2466 | return _resultobj; | |
2467 | } | |
2468 | ||
2469 | #define wxFontData_GetShowHelp(_swigobj) (_swigobj->GetShowHelp()) | |
efc5f224 | 2470 | static PyObject *_wrap_wxFontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2471 | PyObject * _resultobj; |
2472 | bool _result; | |
2473 | wxFontData * _arg0; | |
1d99702e | 2474 | PyObject * _argo0 = 0; |
efc5f224 | 2475 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2476 | |
2477 | self = self; | |
efc5f224 | 2478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetShowHelp",_kwnames,&_argo0)) |
8ab979d7 | 2479 | return NULL; |
1d99702e RD |
2480 | if (_argo0) { |
2481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetShowHelp. Expected _wxFontData_p."); |
2484 | return NULL; | |
2485 | } | |
2486 | } | |
cf694132 | 2487 | { |
4268f798 | 2488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2489 | _result = (bool )wxFontData_GetShowHelp(_arg0); |
cf694132 | 2490 | |
4268f798 | 2491 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2492 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2493 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2494 | return _resultobj; |
2495 | } | |
2496 | ||
2497 | #define wxFontData_SetAllowSymbols(_swigobj,_swigarg0) (_swigobj->SetAllowSymbols(_swigarg0)) | |
efc5f224 | 2498 | static PyObject *_wrap_wxFontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2499 | PyObject * _resultobj; |
2500 | wxFontData * _arg0; | |
2501 | bool _arg1; | |
1d99702e | 2502 | PyObject * _argo0 = 0; |
8ab979d7 | 2503 | int tempbool1; |
efc5f224 | 2504 | char *_kwnames[] = { "self","allowSymbols", NULL }; |
8ab979d7 RD |
2505 | |
2506 | self = self; | |
efc5f224 | 2507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetAllowSymbols",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2508 | return NULL; |
1d99702e RD |
2509 | if (_argo0) { |
2510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 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; | |
cf694132 | 2517 | { |
4268f798 | 2518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2519 | wxFontData_SetAllowSymbols(_arg0,_arg1); |
cf694132 | 2520 | |
4268f798 | 2521 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2522 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2523 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2524 | _resultobj = Py_None; |
2525 | return _resultobj; | |
2526 | } | |
2527 | ||
2528 | #define wxFontData_SetChosenFont(_swigobj,_swigarg0) (_swigobj->SetChosenFont(_swigarg0)) | |
efc5f224 | 2529 | static PyObject *_wrap_wxFontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2530 | PyObject * _resultobj; |
2531 | wxFontData * _arg0; | |
2532 | wxFont * _arg1; | |
1d99702e RD |
2533 | PyObject * _argo0 = 0; |
2534 | PyObject * _argo1 = 0; | |
efc5f224 | 2535 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
2536 | |
2537 | self = self; | |
efc5f224 | 2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetChosenFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2539 | return NULL; |
1d99702e RD |
2540 | if (_argo0) { |
2541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetChosenFont. Expected _wxFontData_p."); |
2544 | return NULL; | |
2545 | } | |
2546 | } | |
1d99702e RD |
2547 | if (_argo1) { |
2548 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2549 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
2550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetChosenFont. Expected _wxFont_p."); |
2551 | return NULL; | |
2552 | } | |
2553 | } | |
cf694132 | 2554 | { |
4268f798 | 2555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2556 | wxFontData_SetChosenFont(_arg0,*_arg1); |
cf694132 | 2557 | |
4268f798 | 2558 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2559 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2560 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2561 | _resultobj = Py_None; |
2562 | return _resultobj; | |
2563 | } | |
2564 | ||
2565 | #define wxFontData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
efc5f224 | 2566 | static PyObject *_wrap_wxFontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2567 | PyObject * _resultobj; |
2568 | wxFontData * _arg0; | |
2569 | wxColour * _arg1; | |
1d99702e | 2570 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2571 | wxColour temp; |
2572 | PyObject * _obj1 = 0; | |
efc5f224 | 2573 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
2574 | |
2575 | self = self; | |
f6bcfd97 | 2576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2577 | return NULL; |
1d99702e RD |
2578 | if (_argo0) { |
2579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 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)) | |
8ab979d7 | 2588 | return NULL; |
f6bcfd97 | 2589 | } |
cf694132 | 2590 | { |
4268f798 | 2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2592 | wxFontData_SetColour(_arg0,*_arg1); |
cf694132 | 2593 | |
4268f798 | 2594 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2595 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2596 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2597 | _resultobj = Py_None; |
2598 | return _resultobj; | |
2599 | } | |
2600 | ||
2601 | #define wxFontData_SetInitialFont(_swigobj,_swigarg0) (_swigobj->SetInitialFont(_swigarg0)) | |
efc5f224 | 2602 | static PyObject *_wrap_wxFontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2603 | PyObject * _resultobj; |
2604 | wxFontData * _arg0; | |
2605 | wxFont * _arg1; | |
1d99702e RD |
2606 | PyObject * _argo0 = 0; |
2607 | PyObject * _argo1 = 0; | |
efc5f224 | 2608 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
2609 | |
2610 | self = self; | |
efc5f224 | 2611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetInitialFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2612 | return NULL; |
1d99702e RD |
2613 | if (_argo0) { |
2614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetInitialFont. Expected _wxFontData_p."); |
2617 | return NULL; | |
2618 | } | |
2619 | } | |
1d99702e RD |
2620 | if (_argo1) { |
2621 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2622 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
2623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetInitialFont. Expected _wxFont_p."); |
2624 | return NULL; | |
2625 | } | |
2626 | } | |
cf694132 | 2627 | { |
4268f798 | 2628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2629 | wxFontData_SetInitialFont(_arg0,*_arg1); |
cf694132 | 2630 | |
4268f798 | 2631 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2632 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2633 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2634 | _resultobj = Py_None; |
2635 | return _resultobj; | |
2636 | } | |
2637 | ||
2638 | #define wxFontData_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1)) | |
efc5f224 | 2639 | static PyObject *_wrap_wxFontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2640 | PyObject * _resultobj; |
2641 | wxFontData * _arg0; | |
2642 | int _arg1; | |
2643 | int _arg2; | |
1d99702e | 2644 | PyObject * _argo0 = 0; |
efc5f224 | 2645 | char *_kwnames[] = { "self","min","max", NULL }; |
8ab979d7 RD |
2646 | |
2647 | self = self; | |
efc5f224 | 2648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxFontData_SetRange",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2649 | return NULL; |
1d99702e RD |
2650 | if (_argo0) { |
2651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 RD |
2653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetRange. Expected _wxFontData_p."); |
2654 | return NULL; | |
2655 | } | |
2656 | } | |
cf694132 | 2657 | { |
4268f798 | 2658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2659 | wxFontData_SetRange(_arg0,_arg1,_arg2); |
cf694132 | 2660 | |
4268f798 | 2661 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2662 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2663 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2664 | _resultobj = Py_None; |
2665 | return _resultobj; | |
2666 | } | |
2667 | ||
2668 | #define wxFontData_SetShowHelp(_swigobj,_swigarg0) (_swigobj->SetShowHelp(_swigarg0)) | |
efc5f224 | 2669 | static PyObject *_wrap_wxFontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2670 | PyObject * _resultobj; |
2671 | wxFontData * _arg0; | |
2672 | bool _arg1; | |
1d99702e | 2673 | PyObject * _argo0 = 0; |
8ab979d7 | 2674 | int tempbool1; |
efc5f224 | 2675 | char *_kwnames[] = { "self","showHelp", NULL }; |
8ab979d7 RD |
2676 | |
2677 | self = self; | |
efc5f224 | 2678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetShowHelp",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2679 | return NULL; |
1d99702e RD |
2680 | if (_argo0) { |
2681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) { | |
8ab979d7 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; | |
cf694132 | 2688 | { |
4268f798 | 2689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2690 | wxFontData_SetShowHelp(_arg0,_arg1); |
cf694132 | 2691 | |
4268f798 | 2692 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2693 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2694 | } Py_INCREF(Py_None); |
8ab979d7 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 | ||
65fe3842 | 2707 | static void *SwigwxFontDialogTowxTopLevelWindow(void *ptr) { |
8ab979d7 | 2708 | wxFontDialog *src; |
65fe3842 | 2709 | wxTopLevelWindow *dest; |
8ab979d7 | 2710 | src = (wxFontDialog *) ptr; |
65fe3842 | 2711 | dest = (wxTopLevelWindow *) src; |
8ab979d7 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 | ||
9416aa89 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 | ||
8ab979d7 | 2739 | #define new_wxFontDialog(_swigarg0,_swigarg1) (new wxFontDialog(_swigarg0,_swigarg1)) |
efc5f224 | 2740 | static PyObject *_wrap_new_wxFontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2741 | PyObject * _resultobj; |
2742 | wxFontDialog * _result; | |
2743 | wxWindow * _arg0; | |
990416e0 | 2744 | wxFontData * _arg1; |
1d99702e RD |
2745 | PyObject * _argo0 = 0; |
2746 | PyObject * _argo1 = 0; | |
efc5f224 | 2747 | char *_kwnames[] = { "parent","data", NULL }; |
8ab979d7 RD |
2748 | char _ptemp[128]; |
2749 | ||
2750 | self = self; | |
990416e0 | 2751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxFontDialog",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2752 | return NULL; |
1d99702e RD |
2753 | if (_argo0) { |
2754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontDialog. Expected _wxWindow_p."); |
2757 | return NULL; | |
2758 | } | |
2759 | } | |
1d99702e RD |
2760 | if (_argo1) { |
2761 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2762 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFontData_p")) { | |
8ab979d7 RD |
2763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxFontDialog. Expected _wxFontData_p."); |
2764 | return NULL; | |
2765 | } | |
2766 | } | |
cf694132 | 2767 | { |
4268f798 | 2768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2769 | _result = (wxFontDialog *)new_wxFontDialog(_arg0,_arg1); |
cf694132 | 2770 | |
4268f798 | 2771 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2772 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
8ab979d7 RD |
2780 | return _resultobj; |
2781 | } | |
2782 | ||
2783 | #define wxFontDialog_GetFontData(_swigobj) (_swigobj->GetFontData()) | |
efc5f224 | 2784 | static PyObject *_wrap_wxFontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2785 | PyObject * _resultobj; |
2786 | wxFontData * _result; | |
2787 | wxFontDialog * _arg0; | |
1d99702e | 2788 | PyObject * _argo0 = 0; |
efc5f224 | 2789 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2790 | char _ptemp[128]; |
2791 | ||
2792 | self = self; | |
efc5f224 | 2793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_GetFontData",_kwnames,&_argo0)) |
8ab979d7 | 2794 | return NULL; |
1d99702e RD |
2795 | if (_argo0) { |
2796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) { | |
8ab979d7 RD |
2798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_GetFontData. Expected _wxFontDialog_p."); |
2799 | return NULL; | |
2800 | } | |
2801 | } | |
cf694132 | 2802 | { |
4268f798 | 2803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2804 | wxFontData & _result_ref = wxFontDialog_GetFontData(_arg0); |
8ab979d7 | 2805 | _result = (wxFontData *) &_result_ref; |
cf694132 | 2806 | |
4268f798 | 2807 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2808 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
8ab979d7 RD |
2816 | return _resultobj; |
2817 | } | |
2818 | ||
2819 | #define wxFontDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
efc5f224 | 2820 | static PyObject *_wrap_wxFontDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2821 | PyObject * _resultobj; |
2822 | int _result; | |
2823 | wxFontDialog * _arg0; | |
1d99702e | 2824 | PyObject * _argo0 = 0; |
efc5f224 | 2825 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2826 | |
2827 | self = self; | |
efc5f224 | 2828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 2829 | return NULL; |
1d99702e RD |
2830 | if (_argo0) { |
2831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) { | |
8ab979d7 RD |
2833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_ShowModal. Expected _wxFontDialog_p."); |
2834 | return NULL; | |
2835 | } | |
2836 | } | |
cf694132 | 2837 | { |
4268f798 | 2838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2839 | _result = (int )wxFontDialog_ShowModal(_arg0); |
cf694132 | 2840 | |
4268f798 | 2841 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2842 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2843 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2844 | return _resultobj; |
2845 | } | |
2846 | ||
bb0054cd RD |
2847 | static void *SwigwxMessageDialogTowxDialog(void *ptr) { |
2848 | wxMessageDialog *src; | |
8ab979d7 | 2849 | wxDialog *dest; |
bb0054cd | 2850 | src = (wxMessageDialog *) ptr; |
8ab979d7 RD |
2851 | dest = (wxDialog *) src; |
2852 | return (void *) dest; | |
2853 | } | |
2854 | ||
65fe3842 | 2855 | static void *SwigwxMessageDialogTowxTopLevelWindow(void *ptr) { |
bb0054cd | 2856 | wxMessageDialog *src; |
65fe3842 | 2857 | wxTopLevelWindow *dest; |
bb0054cd | 2858 | src = (wxMessageDialog *) ptr; |
65fe3842 | 2859 | dest = (wxTopLevelWindow *) src; |
8ab979d7 RD |
2860 | return (void *) dest; |
2861 | } | |
2862 | ||
bb0054cd RD |
2863 | static void *SwigwxMessageDialogTowxWindow(void *ptr) { |
2864 | wxMessageDialog *src; | |
8ab979d7 | 2865 | wxWindow *dest; |
bb0054cd | 2866 | src = (wxMessageDialog *) ptr; |
8ab979d7 RD |
2867 | dest = (wxWindow *) src; |
2868 | return (void *) dest; | |
2869 | } | |
2870 | ||
bb0054cd RD |
2871 | static void *SwigwxMessageDialogTowxEvtHandler(void *ptr) { |
2872 | wxMessageDialog *src; | |
8ab979d7 | 2873 | wxEvtHandler *dest; |
bb0054cd | 2874 | src = (wxMessageDialog *) ptr; |
8ab979d7 RD |
2875 | dest = (wxEvtHandler *) src; |
2876 | return (void *) dest; | |
2877 | } | |
2878 | ||
9416aa89 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 | ||
bb0054cd | 2887 | #define new_wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 2888 | static PyObject *_wrap_new_wxMessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2889 | PyObject * _resultobj; |
bb0054cd | 2890 | wxMessageDialog * _result; |
8ab979d7 | 2891 | wxWindow * _arg0; |
137b5242 RD |
2892 | wxString * _arg1; |
2893 | wxString * _arg2 = (wxString *) &wxPyMessageBoxCaptionStr; | |
1d99702e | 2894 | long _arg3 = (long ) wxOK|wxCANCEL|wxCENTRE; |
e508a2b6 | 2895 | wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition; |
1d99702e | 2896 | PyObject * _argo0 = 0; |
137b5242 RD |
2897 | PyObject * _obj1 = 0; |
2898 | PyObject * _obj2 = 0; | |
2f90df85 RD |
2899 | wxPoint temp; |
2900 | PyObject * _obj4 = 0; | |
efc5f224 | 2901 | char *_kwnames[] = { "parent","message","caption","style","pos", NULL }; |
8ab979d7 RD |
2902 | char _ptemp[128]; |
2903 | ||
2904 | self = self; | |
137b5242 | 2905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OlO:new_wxMessageDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_obj4)) |
8ab979d7 | 2906 | return NULL; |
1d99702e RD |
2907 | if (_argo0) { |
2908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd | 2910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMessageDialog. Expected _wxWindow_p."); |
8ab979d7 RD |
2911 | return NULL; |
2912 | } | |
2913 | } | |
137b5242 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 | } | |
2f90df85 RD |
2925 | if (_obj4) |
2926 | { | |
2927 | _arg4 = &temp; | |
2928 | if (! wxPoint_helper(_obj4, &_arg4)) | |
8ab979d7 | 2929 | return NULL; |
2f90df85 | 2930 | } |
cf694132 | 2931 | { |
4268f798 | 2932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 2933 | _result = (wxMessageDialog *)new_wxMessageDialog(_arg0,*_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 2934 | |
4268f798 | 2935 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2936 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
2937 | } if (_result) { |
2938 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMessageDialog_p"); | |
2939 | _resultobj = Py_BuildValue("s",_ptemp); | |
2940 | } else { | |
2941 | Py_INCREF(Py_None); | |
2942 | _resultobj = Py_None; | |
2943 | } | |
137b5242 RD |
2944 | { |
2945 | if (_obj1) | |
2946 | delete _arg1; | |
2947 | } | |
2948 | { | |
2949 | if (_obj2) | |
2950 | delete _arg2; | |
2951 | } | |
8ab979d7 RD |
2952 | return _resultobj; |
2953 | } | |
2954 | ||
bb0054cd | 2955 | #define wxMessageDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) |
efc5f224 | 2956 | static PyObject *_wrap_wxMessageDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2957 | PyObject * _resultobj; |
bb0054cd RD |
2958 | int _result; |
2959 | wxMessageDialog * _arg0; | |
1d99702e | 2960 | PyObject * _argo0 = 0; |
efc5f224 | 2961 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2962 | |
2963 | self = self; | |
efc5f224 | 2964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMessageDialog_ShowModal",_kwnames,&_argo0)) |
8ab979d7 | 2965 | return NULL; |
1d99702e RD |
2966 | if (_argo0) { |
2967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMessageDialog_p")) { | |
bb0054cd | 2969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMessageDialog_ShowModal. Expected _wxMessageDialog_p."); |
8ab979d7 RD |
2970 | return NULL; |
2971 | } | |
2972 | } | |
cf694132 | 2973 | { |
4268f798 | 2974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2975 | _result = (int )wxMessageDialog_ShowModal(_arg0); |
cf694132 | 2976 | |
4268f798 | 2977 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2978 | if (PyErr_Occurred()) return NULL; |
bb0054cd | 2979 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2980 | return _resultobj; |
2981 | } | |
2982 | ||
bb0054cd 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 | ||
65fe3842 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 | ||
bb0054cd 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 | ||
9416aa89 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 | ||
bb0054cd | 3023 | #define new_wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 3024 | static PyObject *_wrap_new_wxProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3025 | PyObject * _resultobj; |
bb0054cd RD |
3026 | wxProgressDialog * _result; |
3027 | wxString * _arg0; | |
3028 | wxString * _arg1; | |
1d99702e RD |
3029 | int _arg2 = (int ) 100; |
3030 | wxWindow * _arg3 = (wxWindow *) NULL; | |
3031 | int _arg4 = (int ) wxPD_AUTO_HIDE|wxPD_APP_MODAL; | |
bb0054cd RD |
3032 | PyObject * _obj0 = 0; |
3033 | PyObject * _obj1 = 0; | |
1d99702e | 3034 | PyObject * _argo3 = 0; |
efc5f224 | 3035 | char *_kwnames[] = { "title","message","maximum","parent","style", NULL }; |
8ab979d7 RD |
3036 | char _ptemp[128]; |
3037 | ||
3038 | self = self; | |
efc5f224 | 3039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOi:new_wxProgressDialog",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4)) |
8ab979d7 | 3040 | return NULL; |
bb0054cd | 3041 | { |
c8bc7bb8 RD |
3042 | _arg0 = wxString_in_helper(_obj0); |
3043 | if (_arg0 == NULL) | |
185d7c3e | 3044 | return NULL; |
8ab979d7 | 3045 | } |
bb0054cd | 3046 | { |
c8bc7bb8 RD |
3047 | _arg1 = wxString_in_helper(_obj1); |
3048 | if (_arg1 == NULL) | |
8ab979d7 | 3049 | return NULL; |
bb0054cd | 3050 | } |
1d99702e RD |
3051 | if (_argo3) { |
3052 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3053 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
bb0054cd | 3054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxProgressDialog. Expected _wxWindow_p."); |
8ab979d7 RD |
3055 | return NULL; |
3056 | } | |
3057 | } | |
cf694132 | 3058 | { |
4268f798 | 3059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3060 | _result = (wxProgressDialog *)new_wxProgressDialog(*_arg0,*_arg1,_arg2,_arg3,_arg4); |
cf694132 | 3061 | |
4268f798 | 3062 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3063 | if (PyErr_Occurred()) return NULL; |
1d99702e 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 | } | |
bb0054cd RD |
3071 | { |
3072 | if (_obj0) | |
3073 | delete _arg0; | |
8ab979d7 | 3074 | } |
bb0054cd RD |
3075 | { |
3076 | if (_obj1) | |
3077 | delete _arg1; | |
8ab979d7 | 3078 | } |
bb0054cd | 3079 | return _resultobj; |
8ab979d7 RD |
3080 | } |
3081 | ||
bb0054cd | 3082 | #define wxProgressDialog_Update(_swigobj,_swigarg0,_swigarg1) (_swigobj->Update(_swigarg0,_swigarg1)) |
efc5f224 | 3083 | static PyObject *_wrap_wxProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3084 | PyObject * _resultobj; |
bb0054cd RD |
3085 | bool _result; |
3086 | wxProgressDialog * _arg0; | |
137b5242 RD |
3087 | int _arg1; |
3088 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
1d99702e | 3089 | PyObject * _argo0 = 0; |
137b5242 | 3090 | PyObject * _obj2 = 0; |
efc5f224 | 3091 | char *_kwnames[] = { "self","value","newmsg", NULL }; |
8ab979d7 RD |
3092 | |
3093 | self = self; | |
137b5242 | 3094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxProgressDialog_Update",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3095 | return NULL; |
1d99702e RD |
3096 | if (_argo0) { |
3097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) { | |
bb0054cd | 3099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Update. Expected _wxProgressDialog_p."); |
8ab979d7 RD |
3100 | return NULL; |
3101 | } | |
3102 | } | |
137b5242 RD |
3103 | if (_obj2) |
3104 | { | |
3105 | _arg2 = wxString_in_helper(_obj2); | |
3106 | if (_arg2 == NULL) | |
3107 | return NULL; | |
3108 | } | |
cf694132 | 3109 | { |
4268f798 | 3110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 3111 | _result = (bool )wxProgressDialog_Update(_arg0,_arg1,*_arg2); |
cf694132 | 3112 | |
4268f798 | 3113 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3114 | if (PyErr_Occurred()) return NULL; |
bb0054cd | 3115 | } _resultobj = Py_BuildValue("i",_result); |
137b5242 RD |
3116 | { |
3117 | if (_obj2) | |
3118 | delete _arg2; | |
3119 | } | |
8ab979d7 RD |
3120 | return _resultobj; |
3121 | } | |
3122 | ||
bb0054cd | 3123 | #define wxProgressDialog_Resume(_swigobj) (_swigobj->Resume()) |
efc5f224 | 3124 | static PyObject *_wrap_wxProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3125 | PyObject * _resultobj; |
bb0054cd | 3126 | wxProgressDialog * _arg0; |
1d99702e | 3127 | PyObject * _argo0 = 0; |
efc5f224 | 3128 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3129 | |
3130 | self = self; | |
efc5f224 | 3131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProgressDialog_Resume",_kwnames,&_argo0)) |
8ab979d7 | 3132 | return NULL; |
1d99702e RD |
3133 | if (_argo0) { |
3134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) { | |
bb0054cd | 3136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Resume. Expected _wxProgressDialog_p."); |
8ab979d7 RD |
3137 | return NULL; |
3138 | } | |
3139 | } | |
cf694132 | 3140 | { |
4268f798 | 3141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3142 | wxProgressDialog_Resume(_arg0); |
cf694132 | 3143 | |
4268f798 | 3144 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3145 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3146 | } Py_INCREF(Py_None); |
3147 | _resultobj = Py_None; | |
8ab979d7 RD |
3148 | return _resultobj; |
3149 | } | |
3150 | ||
0122b7e3 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 | { | |
4268f798 | 3188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3189 | _result = (wxFindDialogEvent *)new_wxFindDialogEvent(_arg0,_arg1); |
0122b7e3 | 3190 | |
4268f798 | 3191 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | { | |
4268f798 | 3222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3223 | _result = (int )wxFindDialogEvent_GetFlags(_arg0); |
0122b7e3 | 3224 | |
4268f798 | 3225 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | { | |
4268f798 | 3250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3251 | _result = new wxString (wxFindDialogEvent_GetFindString(_arg0)); |
0122b7e3 | 3252 | |
4268f798 | 3253 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | |
0122b7e3 | 3259 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3260 | #endif |
0122b7e3 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 | { | |
4268f798 | 3287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3288 | const wxString & _result_ref = wxFindDialogEvent_GetReplaceString(_arg0); |
0122b7e3 RD |
3289 | _result = (wxString *) &_result_ref; |
3290 | ||
4268f798 | 3291 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | |
0122b7e3 | 3297 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3298 | #endif |
0122b7e3 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 | { | |
4268f798 | 3323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3324 | _result = (wxFindReplaceDialog *)wxFindDialogEvent_GetDialog(_arg0); |
0122b7e3 | 3325 | |
4268f798 | 3326 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | { | |
4268f798 | 3357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3358 | wxFindDialogEvent_SetFlags(_arg0,_arg1); |
0122b7e3 | 3359 | |
4268f798 | 3360 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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) | |
0122b7e3 | 3389 | return NULL; |
0122b7e3 RD |
3390 | } |
3391 | { | |
4268f798 | 3392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3393 | wxFindDialogEvent_SetFindString(_arg0,*_arg1); |
0122b7e3 | 3394 | |
4268f798 | 3395 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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) | |
0122b7e3 | 3428 | return NULL; |
0122b7e3 RD |
3429 | } |
3430 | { | |
4268f798 | 3431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3432 | wxFindDialogEvent_SetReplaceString(_arg0,*_arg1); |
0122b7e3 | 3433 | |
4268f798 | 3434 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | { | |
4268f798 | 3465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3466 | _result = (wxFindReplaceData *)new_wxFindReplaceData(_arg0); |
0122b7e3 | 3467 | |
4268f798 | 3468 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | { | |
4268f798 | 3498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3499 | delete_wxFindReplaceData(_arg0); |
0122b7e3 | 3500 | |
4268f798 | 3501 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | { | |
4268f798 | 3527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3528 | const wxString & _result_ref = wxFindReplaceData_GetFindString(_arg0); |
0122b7e3 RD |
3529 | _result = (wxString *) &_result_ref; |
3530 | ||
4268f798 | 3531 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | |
0122b7e3 | 3537 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3538 | #endif |
0122b7e3 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 | { | |
4268f798 | 3562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3563 | const wxString & _result_ref = wxFindReplaceData_GetReplaceString(_arg0); |
0122b7e3 RD |
3564 | _result = (wxString *) &_result_ref; |
3565 | ||
4268f798 | 3566 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | |
0122b7e3 | 3572 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3573 | #endif |
0122b7e3 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 | { | |
4268f798 | 3597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3598 | _result = (int )wxFindReplaceData_GetFlags(_arg0); |
0122b7e3 | 3599 | |
4268f798 | 3600 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | { | |
4268f798 | 3625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3626 | wxFindReplaceData_SetFlags(_arg0,_arg1); |
0122b7e3 | 3627 | |
4268f798 | 3628 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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) | |
0122b7e3 | 3657 | return NULL; |
0122b7e3 RD |
3658 | } |
3659 | { | |
4268f798 | 3660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3661 | wxFindReplaceData_SetFindString(_arg0,*_arg1); |
0122b7e3 | 3662 | |
4268f798 | 3663 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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) | |
0122b7e3 | 3696 | return NULL; |
0122b7e3 RD |
3697 | } |
3698 | { | |
4268f798 | 3699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3700 | wxFindReplaceData_SetReplaceString(_arg0,*_arg1); |
0122b7e3 | 3701 | |
4268f798 | 3702 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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) | |
0122b7e3 | 3787 | return NULL; |
0122b7e3 RD |
3788 | } |
3789 | { | |
4268f798 | 3790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3791 | _result = (wxFindReplaceDialog *)new_wxFindReplaceDialog(_arg0,_arg1,*_arg2,_arg3); |
0122b7e3 | 3792 | |
4268f798 | 3793 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | { | |
4268f798 | 3820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3821 | _result = (wxFindReplaceDialog *)new_wxPreFindReplaceDialog(); |
0122b7e3 | 3822 | |
4268f798 | 3823 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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) | |
0122b7e3 | 3877 | return NULL; |
0122b7e3 RD |
3878 | } |
3879 | { | |
4268f798 | 3880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3881 | _result = (bool )wxFindReplaceDialog_Create(_arg0,_arg1,_arg2,*_arg3,_arg4); |
0122b7e3 | 3882 | |
4268f798 | 3883 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | { | |
4268f798 | 3913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3914 | _result = (wxFindReplaceData *)wxFindReplaceDialog_GetData(_arg0); |
0122b7e3 | 3915 | |
4268f798 | 3916 | wxPyEndAllowThreads(__tstate); |
0122b7e3 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 | { | |
4268f798 | 3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3956 | wxFindReplaceDialog_SetData(_arg0,_arg1); |
0122b7e3 | 3957 | |
4268f798 | 3958 | wxPyEndAllowThreads(__tstate); |
0122b7e3 RD |
3959 | if (PyErr_Occurred()) return NULL; |
3960 | } Py_INCREF(Py_None); | |
3961 | _resultobj = Py_None; | |
3962 | return _resultobj; | |
3963 | } | |
3964 | ||
8ab979d7 | 3965 | static PyMethodDef cmndlgscMethods[] = { |
0122b7e3 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 }, | |
efc5f224 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 }, | |
293a0a86 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 }, | |
efc5f224 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 }, | |
8ab979d7 RD |
4058 | { NULL, NULL } |
4059 | }; | |
1d99702e 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[] = { | |
0122b7e3 | 4067 | { "_wxEvent","_wxFindDialogEvent",SwigwxFindDialogEventTowxEvent}, |
1d99702e | 4068 | { "_signed_long","_long",0}, |
b1462dfa | 4069 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e 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}, |
1d99702e | 4078 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
4079 | { "_long","_unsigned_long",0}, |
4080 | { "_long","_signed_long",0}, | |
b1462dfa | 4081 | { "_size_t","_wxCoord",0}, |
1d99702e | 4082 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 4083 | { "_size_t","_time_t",0}, |
1d99702e RD |
4084 | { "_size_t","_unsigned_int",0}, |
4085 | { "_size_t","_int",0}, | |
4086 | { "_size_t","_wxWindowID",0}, | |
4087 | { "_size_t","_uint",0}, | |
0122b7e3 | 4088 | { "_wxTopLevelWindow","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxTopLevelWindow}, |
65fe3842 RD |
4089 | { "_wxTopLevelWindow","_wxProgressDialog",SwigwxProgressDialogTowxTopLevelWindow}, |
4090 | { "_wxTopLevelWindow","_wxMessageDialog",SwigwxMessageDialogTowxTopLevelWindow}, | |
4091 | { "_wxTopLevelWindow","_wxFontDialog",SwigwxFontDialogTowxTopLevelWindow}, | |
4092 | { "_wxTopLevelWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxTopLevelWindow}, | |
4093 | { "_wxTopLevelWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxTopLevelWindow}, | |
293a0a86 | 4094 | { "_wxTopLevelWindow","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxTopLevelWindow}, |
65fe3842 RD |
4095 | { "_wxTopLevelWindow","_wxFileDialog",SwigwxFileDialogTowxTopLevelWindow}, |
4096 | { "_wxTopLevelWindow","_wxDirDialog",SwigwxDirDialogTowxTopLevelWindow}, | |
4097 | { "_wxTopLevelWindow","_wxColourDialog",SwigwxColourDialogTowxTopLevelWindow}, | |
b1462dfa | 4098 | { "_uint","_wxCoord",0}, |
1d99702e | 4099 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 4100 | { "_uint","_time_t",0}, |
1d99702e RD |
4101 | { "_uint","_size_t",0}, |
4102 | { "_uint","_unsigned_int",0}, | |
4103 | { "_uint","_int",0}, | |
4104 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 4105 | { "_wxChar","_char",0}, |
0122b7e3 | 4106 | { "_wxCommandEvent","_wxFindDialogEvent",SwigwxFindDialogEventTowxCommandEvent}, |
f6bcfd97 | 4107 | { "_char","_wxChar",0}, |
cdf14688 | 4108 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 4109 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
4110 | { "_EBool","_wxPrintQuality",0}, |
4111 | { "_EBool","_signed_int",0}, | |
4112 | { "_EBool","_int",0}, | |
4113 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 4114 | { "_unsigned_long","_long",0}, |
cdf14688 | 4115 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 4116 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
4117 | { "_signed_int","_wxPrintQuality",0}, |
4118 | { "_signed_int","_EBool",0}, | |
4119 | { "_signed_int","_wxWindowID",0}, | |
4120 | { "_signed_int","_int",0}, | |
1d99702e RD |
4121 | { "_WXTYPE","_short",0}, |
4122 | { "_WXTYPE","_signed_short",0}, | |
4123 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
4124 | { "_unsigned_short","_WXTYPE",0}, |
4125 | { "_unsigned_short","_short",0}, | |
0122b7e3 RD |
4126 | { "_wxObject","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxObject}, |
4127 | { "_wxObject","_wxFindReplaceData",SwigwxFindReplaceDataTowxObject}, | |
4128 | { "_wxObject","_wxFindDialogEvent",SwigwxFindDialogEventTowxObject}, | |
9416aa89 | 4129 | { "_wxObject","_wxProgressDialog",SwigwxProgressDialogTowxObject}, |
9416aa89 | 4130 | { "_wxObject","_wxMessageDialog",SwigwxMessageDialogTowxObject}, |
9416aa89 | 4131 | { "_wxObject","_wxFontDialog",SwigwxFontDialogTowxObject}, |
9416aa89 | 4132 | { "_wxObject","_wxFontData",SwigwxFontDataTowxObject}, |
9416aa89 | 4133 | { "_wxObject","_wxTextEntryDialog",SwigwxTextEntryDialogTowxObject}, |
9416aa89 | 4134 | { "_wxObject","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxObject}, |
293a0a86 | 4135 | { "_wxObject","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxObject}, |
9416aa89 | 4136 | { "_wxObject","_wxFileDialog",SwigwxFileDialogTowxObject}, |
9416aa89 | 4137 | { "_wxObject","_wxDirDialog",SwigwxDirDialogTowxObject}, |
9416aa89 | 4138 | { "_wxObject","_wxColourDialog",SwigwxColourDialogTowxObject}, |
9416aa89 | 4139 | { "_wxObject","_wxColourData",SwigwxColourDataTowxObject}, |
1d99702e RD |
4140 | { "_signed_short","_WXTYPE",0}, |
4141 | { "_signed_short","_short",0}, | |
1d99702e | 4142 | { "_unsigned_char","_byte",0}, |
b1462dfa | 4143 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 4144 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 4145 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
4146 | { "_unsigned_int","_size_t",0}, |
4147 | { "_unsigned_int","_uint",0}, | |
4148 | { "_unsigned_int","_wxWindowID",0}, | |
4149 | { "_unsigned_int","_int",0}, | |
0122b7e3 | 4150 | { "_wxDialog","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxDialog}, |
1d99702e | 4151 | { "_wxDialog","_wxMessageDialog",SwigwxMessageDialogTowxDialog}, |
1d99702e | 4152 | { "_wxDialog","_wxFontDialog",SwigwxFontDialogTowxDialog}, |
1d99702e | 4153 | { "_wxDialog","_wxTextEntryDialog",SwigwxTextEntryDialogTowxDialog}, |
1d99702e | 4154 | { "_wxDialog","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxDialog}, |
293a0a86 | 4155 | { "_wxDialog","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxDialog}, |
1d99702e | 4156 | { "_wxDialog","_wxFileDialog",SwigwxFileDialogTowxDialog}, |
1d99702e | 4157 | { "_wxDialog","_wxDirDialog",SwigwxDirDialogTowxDialog}, |
1d99702e | 4158 | { "_wxDialog","_wxColourDialog",SwigwxColourDialogTowxDialog}, |
1d99702e RD |
4159 | { "_short","_WXTYPE",0}, |
4160 | { "_short","_unsigned_short",0}, | |
4161 | { "_short","_signed_short",0}, | |
1d99702e | 4162 | { "_wxFrame","_wxProgressDialog",SwigwxProgressDialogTowxFrame}, |
b1462dfa | 4163 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 4164 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 4165 | { "_wxWindowID","_time_t",0}, |
1d99702e 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}, | |
b1462dfa | 4172 | { "_int","_wxCoord",0}, |
1d99702e | 4173 | { "_int","_wxPrintQuality",0}, |
c368d904 | 4174 | { "_int","_time_t",0}, |
1d99702e 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}, | |
b1462dfa 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}, |
b1462dfa | 4196 | { "_wxCoord","_wxPrintQuality",0}, |
0122b7e3 | 4197 | { "_wxEvtHandler","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxEvtHandler}, |
1d99702e | 4198 | { "_wxEvtHandler","_wxProgressDialog",SwigwxProgressDialogTowxEvtHandler}, |
1d99702e | 4199 | { "_wxEvtHandler","_wxMessageDialog",SwigwxMessageDialogTowxEvtHandler}, |
1d99702e | 4200 | { "_wxEvtHandler","_wxFontDialog",SwigwxFontDialogTowxEvtHandler}, |
1d99702e | 4201 | { "_wxEvtHandler","_wxTextEntryDialog",SwigwxTextEntryDialogTowxEvtHandler}, |
1d99702e | 4202 | { "_wxEvtHandler","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxEvtHandler}, |
293a0a86 | 4203 | { "_wxEvtHandler","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxEvtHandler}, |
1d99702e | 4204 | { "_wxEvtHandler","_wxFileDialog",SwigwxFileDialogTowxEvtHandler}, |
1d99702e | 4205 | { "_wxEvtHandler","_wxDirDialog",SwigwxDirDialogTowxEvtHandler}, |
1d99702e | 4206 | { "_wxEvtHandler","_wxColourDialog",SwigwxColourDialogTowxEvtHandler}, |
0122b7e3 | 4207 | { "_wxWindow","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxWindow}, |
1d99702e | 4208 | { "_wxWindow","_wxProgressDialog",SwigwxProgressDialogTowxWindow}, |
1d99702e | 4209 | { "_wxWindow","_wxMessageDialog",SwigwxMessageDialogTowxWindow}, |
1d99702e | 4210 | { "_wxWindow","_wxFontDialog",SwigwxFontDialogTowxWindow}, |
1d99702e | 4211 | { "_wxWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxWindow}, |
1d99702e | 4212 | { "_wxWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxWindow}, |
293a0a86 | 4213 | { "_wxWindow","_wxMultiChoiceDialog",SwigwxMultiChoiceDialogTowxWindow}, |
1d99702e | 4214 | { "_wxWindow","_wxFileDialog",SwigwxFileDialogTowxWindow}, |
1d99702e | 4215 | { "_wxWindow","_wxDirDialog",SwigwxDirDialogTowxWindow}, |
1d99702e | 4216 | { "_wxWindow","_wxColourDialog",SwigwxColourDialogTowxWindow}, |
1d99702e RD |
4217 | {0,0,0}}; |
4218 | ||
8ab979d7 RD |
4219 | static PyObject *SWIG_globals; |
4220 | #ifdef __cplusplus | |
4221 | extern "C" | |
4222 | #endif | |
1d99702e | 4223 | SWIGEXPORT(void) initcmndlgsc() { |
8ab979d7 RD |
4224 | PyObject *m, *d; |
4225 | SWIG_globals = SWIG_newvarlink(); | |
4226 | m = Py_InitModule("cmndlgsc", cmndlgscMethods); | |
4227 | d = PyModule_GetDict(m); | |
293a0a86 | 4228 | PyDict_SetItemString(d,"wxCHOICEDLG_STYLE", PyInt_FromLong((long) wxCHOICEDLG_STYLE)); |
0122b7e3 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)); | |
1d99702e 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 | } | |
8ab979d7 | 4246 | } |