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