]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/cmndlgs.cpp
Added build instructions for OS X.
[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 return wxArrayString2PyList_helper(arr);
1474 }
1475 static PyObject *_wrap_wxFileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
1476 PyObject * _resultobj;
1477 PyObject * _result;
1478 wxFileDialog * _arg0;
1479 PyObject * _argo0 = 0;
1480 char *_kwnames[] = { "self", NULL };
1481
1482 self = self;
1483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilenames",_kwnames,&_argo0))
1484 return NULL;
1485 if (_argo0) {
1486 if (_argo0 == Py_None) { _arg0 = NULL; }
1487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilenames. Expected _wxFileDialog_p.");
1489 return NULL;
1490 }
1491 }
1492 {
1493 wxPy_BEGIN_ALLOW_THREADS;
1494 _result = (PyObject *)wxFileDialog_GetFilenames(_arg0);
1495
1496 wxPy_END_ALLOW_THREADS;
1497 if (PyErr_Occurred()) return NULL;
1498 }{
1499 _resultobj = _result;
1500 }
1501 return _resultobj;
1502 }
1503
1504 static PyObject * wxFileDialog_GetPaths(wxFileDialog *self) {
1505 wxArrayString arr;
1506 self->GetPaths(arr);
1507 return wxArrayString2PyList_helper(arr);
1508 }
1509 static PyObject *_wrap_wxFileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) {
1510 PyObject * _resultobj;
1511 PyObject * _result;
1512 wxFileDialog * _arg0;
1513 PyObject * _argo0 = 0;
1514 char *_kwnames[] = { "self", NULL };
1515
1516 self = self;
1517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetPaths",_kwnames,&_argo0))
1518 return NULL;
1519 if (_argo0) {
1520 if (_argo0 == Py_None) { _arg0 = NULL; }
1521 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetPaths. Expected _wxFileDialog_p.");
1523 return NULL;
1524 }
1525 }
1526 {
1527 wxPy_BEGIN_ALLOW_THREADS;
1528 _result = (PyObject *)wxFileDialog_GetPaths(_arg0);
1529
1530 wxPy_END_ALLOW_THREADS;
1531 if (PyErr_Occurred()) return NULL;
1532 }{
1533 _resultobj = _result;
1534 }
1535 return _resultobj;
1536 }
1537
1538 static void *SwigwxSingleChoiceDialogTowxDialog(void *ptr) {
1539 wxSingleChoiceDialog *src;
1540 wxDialog *dest;
1541 src = (wxSingleChoiceDialog *) ptr;
1542 dest = (wxDialog *) src;
1543 return (void *) dest;
1544 }
1545
1546 static void *SwigwxSingleChoiceDialogTowxTopLevelWindow(void *ptr) {
1547 wxSingleChoiceDialog *src;
1548 wxTopLevelWindow *dest;
1549 src = (wxSingleChoiceDialog *) ptr;
1550 dest = (wxTopLevelWindow *) src;
1551 return (void *) dest;
1552 }
1553
1554 static void *SwigwxSingleChoiceDialogTowxWindow(void *ptr) {
1555 wxSingleChoiceDialog *src;
1556 wxWindow *dest;
1557 src = (wxSingleChoiceDialog *) ptr;
1558 dest = (wxWindow *) src;
1559 return (void *) dest;
1560 }
1561
1562 static void *SwigwxSingleChoiceDialogTowxEvtHandler(void *ptr) {
1563 wxSingleChoiceDialog *src;
1564 wxEvtHandler *dest;
1565 src = (wxSingleChoiceDialog *) ptr;
1566 dest = (wxEvtHandler *) src;
1567 return (void *) dest;
1568 }
1569
1570 static void *SwigwxSingleChoiceDialogTowxObject(void *ptr) {
1571 wxSingleChoiceDialog *src;
1572 wxObject *dest;
1573 src = (wxSingleChoiceDialog *) ptr;
1574 dest = (wxObject *) src;
1575 return (void *) dest;
1576 }
1577
1578 static wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString *message,wxString *caption,int LCOUNT,wxString *choices,long style,wxPoint *pos) {
1579 return new wxSingleChoiceDialog(parent, *message, *caption,
1580 LCOUNT, choices, NULL, style, *pos);
1581 }
1582
1583 static PyObject *_wrap_new_wxSingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
1584 PyObject * _resultobj;
1585 wxSingleChoiceDialog * _result;
1586 wxWindow * _arg0;
1587 wxString * _arg1;
1588 wxString * _arg2;
1589 int _arg3;
1590 wxString * _arg4;
1591 long _arg5 = (long ) wxOK|wxCANCEL|wxCENTRE;
1592 wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition;
1593 PyObject * _argo0 = 0;
1594 PyObject * _obj1 = 0;
1595 PyObject * _obj2 = 0;
1596 PyObject * _obj4 = 0;
1597 wxPoint temp;
1598 PyObject * _obj6 = 0;
1599 char *_kwnames[] = { "parent","message","caption","choices","style","pos", NULL };
1600 char _ptemp[128];
1601
1602 self = self;
1603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|lO:new_wxSingleChoiceDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj4,&_arg5,&_obj6))
1604 return NULL;
1605 if (_argo0) {
1606 if (_argo0 == Py_None) { _arg0 = NULL; }
1607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSingleChoiceDialog. Expected _wxWindow_p.");
1609 return NULL;
1610 }
1611 }
1612 {
1613 #if PYTHON_API_VERSION >= 1009
1614 char* tmpPtr; int tmpSize;
1615 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1616 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1617 return NULL;
1618 }
1619 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1620 return NULL;
1621 _arg1 = new wxString(tmpPtr, tmpSize);
1622 #else
1623 if (!PyString_Check(_obj1)) {
1624 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1625 return NULL;
1626 }
1627 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1628 #endif
1629 }
1630 {
1631 #if PYTHON_API_VERSION >= 1009
1632 char* tmpPtr; int tmpSize;
1633 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1634 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1635 return NULL;
1636 }
1637 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1638 return NULL;
1639 _arg2 = new wxString(tmpPtr, tmpSize);
1640 #else
1641 if (!PyString_Check(_obj2)) {
1642 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1643 return NULL;
1644 }
1645 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1646 #endif
1647 }
1648 if (_obj4)
1649 {
1650 _arg4 = wxString_LIST_helper(_obj4);
1651 if (_arg4 == NULL) {
1652 return NULL;
1653 }
1654 }
1655 if (_obj6)
1656 {
1657 _arg6 = &temp;
1658 if (! wxPoint_helper(_obj6, &_arg6))
1659 return NULL;
1660 }
1661 {
1662 if (_obj4) {
1663 _arg3 = PyList_Size(_obj4);
1664 }
1665 else {
1666 _arg3 = 0;
1667 }
1668 }
1669 {
1670 wxPy_BEGIN_ALLOW_THREADS;
1671 _result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
1672
1673 wxPy_END_ALLOW_THREADS;
1674 if (PyErr_Occurred()) return NULL;
1675 } if (_result) {
1676 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleChoiceDialog_p");
1677 _resultobj = Py_BuildValue("s",_ptemp);
1678 } else {
1679 Py_INCREF(Py_None);
1680 _resultobj = Py_None;
1681 }
1682 {
1683 if (_obj1)
1684 delete _arg1;
1685 }
1686 {
1687 if (_obj2)
1688 delete _arg2;
1689 }
1690 {
1691 delete [] _arg4;
1692 }
1693 return _resultobj;
1694 }
1695
1696 #define wxSingleChoiceDialog_GetSelection(_swigobj) (_swigobj->GetSelection())
1697 static PyObject *_wrap_wxSingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
1698 PyObject * _resultobj;
1699 int _result;
1700 wxSingleChoiceDialog * _arg0;
1701 PyObject * _argo0 = 0;
1702 char *_kwnames[] = { "self", NULL };
1703
1704 self = self;
1705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetSelection",_kwnames,&_argo0))
1706 return NULL;
1707 if (_argo0) {
1708 if (_argo0 == Py_None) { _arg0 = NULL; }
1709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) {
1710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetSelection. Expected _wxSingleChoiceDialog_p.");
1711 return NULL;
1712 }
1713 }
1714 {
1715 wxPy_BEGIN_ALLOW_THREADS;
1716 _result = (int )wxSingleChoiceDialog_GetSelection(_arg0);
1717
1718 wxPy_END_ALLOW_THREADS;
1719 if (PyErr_Occurred()) return NULL;
1720 } _resultobj = Py_BuildValue("i",_result);
1721 return _resultobj;
1722 }
1723
1724 #define wxSingleChoiceDialog_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
1725 static PyObject *_wrap_wxSingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
1726 PyObject * _resultobj;
1727 wxString * _result;
1728 wxSingleChoiceDialog * _arg0;
1729 PyObject * _argo0 = 0;
1730 char *_kwnames[] = { "self", NULL };
1731
1732 self = self;
1733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetStringSelection",_kwnames,&_argo0))
1734 return NULL;
1735 if (_argo0) {
1736 if (_argo0 == Py_None) { _arg0 = NULL; }
1737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) {
1738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetStringSelection. Expected _wxSingleChoiceDialog_p.");
1739 return NULL;
1740 }
1741 }
1742 {
1743 wxPy_BEGIN_ALLOW_THREADS;
1744 _result = new wxString (wxSingleChoiceDialog_GetStringSelection(_arg0));
1745
1746 wxPy_END_ALLOW_THREADS;
1747 if (PyErr_Occurred()) return NULL;
1748 }{
1749 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1750 }
1751 {
1752 delete _result;
1753 }
1754 return _resultobj;
1755 }
1756
1757 #define wxSingleChoiceDialog_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
1758 static PyObject *_wrap_wxSingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
1759 PyObject * _resultobj;
1760 wxSingleChoiceDialog * _arg0;
1761 int _arg1;
1762 PyObject * _argo0 = 0;
1763 char *_kwnames[] = { "self","sel", NULL };
1764
1765 self = self;
1766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSingleChoiceDialog_SetSelection",_kwnames,&_argo0,&_arg1))
1767 return NULL;
1768 if (_argo0) {
1769 if (_argo0 == Py_None) { _arg0 = NULL; }
1770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) {
1771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_SetSelection. Expected _wxSingleChoiceDialog_p.");
1772 return NULL;
1773 }
1774 }
1775 {
1776 wxPy_BEGIN_ALLOW_THREADS;
1777 wxSingleChoiceDialog_SetSelection(_arg0,_arg1);
1778
1779 wxPy_END_ALLOW_THREADS;
1780 if (PyErr_Occurred()) return NULL;
1781 } Py_INCREF(Py_None);
1782 _resultobj = Py_None;
1783 return _resultobj;
1784 }
1785
1786 #define wxSingleChoiceDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
1787 static PyObject *_wrap_wxSingleChoiceDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1788 PyObject * _resultobj;
1789 int _result;
1790 wxSingleChoiceDialog * _arg0;
1791 PyObject * _argo0 = 0;
1792 char *_kwnames[] = { "self", NULL };
1793
1794 self = self;
1795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_ShowModal",_kwnames,&_argo0))
1796 return NULL;
1797 if (_argo0) {
1798 if (_argo0 == Py_None) { _arg0 = NULL; }
1799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) {
1800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_ShowModal. Expected _wxSingleChoiceDialog_p.");
1801 return NULL;
1802 }
1803 }
1804 {
1805 wxPy_BEGIN_ALLOW_THREADS;
1806 _result = (int )wxSingleChoiceDialog_ShowModal(_arg0);
1807
1808 wxPy_END_ALLOW_THREADS;
1809 if (PyErr_Occurred()) return NULL;
1810 } _resultobj = Py_BuildValue("i",_result);
1811 return _resultobj;
1812 }
1813
1814 static void *SwigwxTextEntryDialogTowxDialog(void *ptr) {
1815 wxTextEntryDialog *src;
1816 wxDialog *dest;
1817 src = (wxTextEntryDialog *) ptr;
1818 dest = (wxDialog *) src;
1819 return (void *) dest;
1820 }
1821
1822 static void *SwigwxTextEntryDialogTowxTopLevelWindow(void *ptr) {
1823 wxTextEntryDialog *src;
1824 wxTopLevelWindow *dest;
1825 src = (wxTextEntryDialog *) ptr;
1826 dest = (wxTopLevelWindow *) src;
1827 return (void *) dest;
1828 }
1829
1830 static void *SwigwxTextEntryDialogTowxWindow(void *ptr) {
1831 wxTextEntryDialog *src;
1832 wxWindow *dest;
1833 src = (wxTextEntryDialog *) ptr;
1834 dest = (wxWindow *) src;
1835 return (void *) dest;
1836 }
1837
1838 static void *SwigwxTextEntryDialogTowxEvtHandler(void *ptr) {
1839 wxTextEntryDialog *src;
1840 wxEvtHandler *dest;
1841 src = (wxTextEntryDialog *) ptr;
1842 dest = (wxEvtHandler *) src;
1843 return (void *) dest;
1844 }
1845
1846 static void *SwigwxTextEntryDialogTowxObject(void *ptr) {
1847 wxTextEntryDialog *src;
1848 wxObject *dest;
1849 src = (wxTextEntryDialog *) ptr;
1850 dest = (wxObject *) src;
1851 return (void *) dest;
1852 }
1853
1854 #define new_wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1855 static PyObject *_wrap_new_wxTextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
1856 PyObject * _resultobj;
1857 wxTextEntryDialog * _result;
1858 wxWindow * _arg0;
1859 char * _arg1;
1860 char * _arg2 = (char *) "Input Text";
1861 char * _arg3 = (char *) "";
1862 long _arg4 = (long ) wxOK|wxCANCEL|wxCENTRE;
1863 wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition;
1864 PyObject * _argo0 = 0;
1865 wxPoint temp;
1866 PyObject * _obj5 = 0;
1867 char *_kwnames[] = { "parent","message","caption","defaultValue","style","pos", NULL };
1868 char _ptemp[128];
1869
1870 self = self;
1871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|sslO:new_wxTextEntryDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5))
1872 return NULL;
1873 if (_argo0) {
1874 if (_argo0 == Py_None) { _arg0 = NULL; }
1875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextEntryDialog. Expected _wxWindow_p.");
1877 return NULL;
1878 }
1879 }
1880 if (_obj5)
1881 {
1882 _arg5 = &temp;
1883 if (! wxPoint_helper(_obj5, &_arg5))
1884 return NULL;
1885 }
1886 {
1887 wxPy_BEGIN_ALLOW_THREADS;
1888 _result = (wxTextEntryDialog *)new_wxTextEntryDialog(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5);
1889
1890 wxPy_END_ALLOW_THREADS;
1891 if (PyErr_Occurred()) return NULL;
1892 } if (_result) {
1893 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextEntryDialog_p");
1894 _resultobj = Py_BuildValue("s",_ptemp);
1895 } else {
1896 Py_INCREF(Py_None);
1897 _resultobj = Py_None;
1898 }
1899 return _resultobj;
1900 }
1901
1902 #define wxTextEntryDialog_GetValue(_swigobj) (_swigobj->GetValue())
1903 static PyObject *_wrap_wxTextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1904 PyObject * _resultobj;
1905 wxString * _result;
1906 wxTextEntryDialog * _arg0;
1907 PyObject * _argo0 = 0;
1908 char *_kwnames[] = { "self", NULL };
1909
1910 self = self;
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_GetValue",_kwnames,&_argo0))
1912 return NULL;
1913 if (_argo0) {
1914 if (_argo0 == Py_None) { _arg0 = NULL; }
1915 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) {
1916 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_GetValue. Expected _wxTextEntryDialog_p.");
1917 return NULL;
1918 }
1919 }
1920 {
1921 wxPy_BEGIN_ALLOW_THREADS;
1922 _result = new wxString (wxTextEntryDialog_GetValue(_arg0));
1923
1924 wxPy_END_ALLOW_THREADS;
1925 if (PyErr_Occurred()) return NULL;
1926 }{
1927 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1928 }
1929 {
1930 delete _result;
1931 }
1932 return _resultobj;
1933 }
1934
1935 #define wxTextEntryDialog_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
1936 static PyObject *_wrap_wxTextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1937 PyObject * _resultobj;
1938 wxTextEntryDialog * _arg0;
1939 wxString * _arg1;
1940 PyObject * _argo0 = 0;
1941 PyObject * _obj1 = 0;
1942 char *_kwnames[] = { "self","value", NULL };
1943
1944 self = self;
1945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextEntryDialog_SetValue",_kwnames,&_argo0,&_obj1))
1946 return NULL;
1947 if (_argo0) {
1948 if (_argo0 == Py_None) { _arg0 = NULL; }
1949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) {
1950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_SetValue. Expected _wxTextEntryDialog_p.");
1951 return NULL;
1952 }
1953 }
1954 {
1955 #if PYTHON_API_VERSION >= 1009
1956 char* tmpPtr; int tmpSize;
1957 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1958 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1959 return NULL;
1960 }
1961 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1962 return NULL;
1963 _arg1 = new wxString(tmpPtr, tmpSize);
1964 #else
1965 if (!PyString_Check(_obj1)) {
1966 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1967 return NULL;
1968 }
1969 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1970 #endif
1971 }
1972 {
1973 wxPy_BEGIN_ALLOW_THREADS;
1974 wxTextEntryDialog_SetValue(_arg0,*_arg1);
1975
1976 wxPy_END_ALLOW_THREADS;
1977 if (PyErr_Occurred()) return NULL;
1978 } Py_INCREF(Py_None);
1979 _resultobj = Py_None;
1980 {
1981 if (_obj1)
1982 delete _arg1;
1983 }
1984 return _resultobj;
1985 }
1986
1987 #define wxTextEntryDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
1988 static PyObject *_wrap_wxTextEntryDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1989 PyObject * _resultobj;
1990 int _result;
1991 wxTextEntryDialog * _arg0;
1992 PyObject * _argo0 = 0;
1993 char *_kwnames[] = { "self", NULL };
1994
1995 self = self;
1996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_ShowModal",_kwnames,&_argo0))
1997 return NULL;
1998 if (_argo0) {
1999 if (_argo0 == Py_None) { _arg0 = NULL; }
2000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) {
2001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_ShowModal. Expected _wxTextEntryDialog_p.");
2002 return NULL;
2003 }
2004 }
2005 {
2006 wxPy_BEGIN_ALLOW_THREADS;
2007 _result = (int )wxTextEntryDialog_ShowModal(_arg0);
2008
2009 wxPy_END_ALLOW_THREADS;
2010 if (PyErr_Occurred()) return NULL;
2011 } _resultobj = Py_BuildValue("i",_result);
2012 return _resultobj;
2013 }
2014
2015 static void *SwigwxFontDataTowxObject(void *ptr) {
2016 wxFontData *src;
2017 wxObject *dest;
2018 src = (wxFontData *) ptr;
2019 dest = (wxObject *) src;
2020 return (void *) dest;
2021 }
2022
2023 #define new_wxFontData() (new wxFontData())
2024 static PyObject *_wrap_new_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) {
2025 PyObject * _resultobj;
2026 wxFontData * _result;
2027 char *_kwnames[] = { NULL };
2028 char _ptemp[128];
2029
2030 self = self;
2031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontData",_kwnames))
2032 return NULL;
2033 {
2034 wxPy_BEGIN_ALLOW_THREADS;
2035 _result = (wxFontData *)new_wxFontData();
2036
2037 wxPy_END_ALLOW_THREADS;
2038 if (PyErr_Occurred()) return NULL;
2039 } if (_result) {
2040 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontData_p");
2041 _resultobj = Py_BuildValue("s",_ptemp);
2042 } else {
2043 Py_INCREF(Py_None);
2044 _resultobj = Py_None;
2045 }
2046 return _resultobj;
2047 }
2048
2049 #define delete_wxFontData(_swigobj) (delete _swigobj)
2050 static PyObject *_wrap_delete_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) {
2051 PyObject * _resultobj;
2052 wxFontData * _arg0;
2053 PyObject * _argo0 = 0;
2054 char *_kwnames[] = { "self", NULL };
2055
2056 self = self;
2057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontData",_kwnames,&_argo0))
2058 return NULL;
2059 if (_argo0) {
2060 if (_argo0 == Py_None) { _arg0 = NULL; }
2061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontData. Expected _wxFontData_p.");
2063 return NULL;
2064 }
2065 }
2066 {
2067 wxPy_BEGIN_ALLOW_THREADS;
2068 delete_wxFontData(_arg0);
2069
2070 wxPy_END_ALLOW_THREADS;
2071 if (PyErr_Occurred()) return NULL;
2072 } Py_INCREF(Py_None);
2073 _resultobj = Py_None;
2074 return _resultobj;
2075 }
2076
2077 #define wxFontData_EnableEffects(_swigobj,_swigarg0) (_swigobj->EnableEffects(_swigarg0))
2078 static PyObject *_wrap_wxFontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) {
2079 PyObject * _resultobj;
2080 wxFontData * _arg0;
2081 bool _arg1;
2082 PyObject * _argo0 = 0;
2083 int tempbool1;
2084 char *_kwnames[] = { "self","enable", NULL };
2085
2086 self = self;
2087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_EnableEffects",_kwnames,&_argo0,&tempbool1))
2088 return NULL;
2089 if (_argo0) {
2090 if (_argo0 == Py_None) { _arg0 = NULL; }
2091 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2092 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_EnableEffects. Expected _wxFontData_p.");
2093 return NULL;
2094 }
2095 }
2096 _arg1 = (bool ) tempbool1;
2097 {
2098 wxPy_BEGIN_ALLOW_THREADS;
2099 wxFontData_EnableEffects(_arg0,_arg1);
2100
2101 wxPy_END_ALLOW_THREADS;
2102 if (PyErr_Occurred()) return NULL;
2103 } Py_INCREF(Py_None);
2104 _resultobj = Py_None;
2105 return _resultobj;
2106 }
2107
2108 #define wxFontData_GetAllowSymbols(_swigobj) (_swigobj->GetAllowSymbols())
2109 static PyObject *_wrap_wxFontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) {
2110 PyObject * _resultobj;
2111 bool _result;
2112 wxFontData * _arg0;
2113 PyObject * _argo0 = 0;
2114 char *_kwnames[] = { "self", NULL };
2115
2116 self = self;
2117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetAllowSymbols",_kwnames,&_argo0))
2118 return NULL;
2119 if (_argo0) {
2120 if (_argo0 == Py_None) { _arg0 = NULL; }
2121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetAllowSymbols. Expected _wxFontData_p.");
2123 return NULL;
2124 }
2125 }
2126 {
2127 wxPy_BEGIN_ALLOW_THREADS;
2128 _result = (bool )wxFontData_GetAllowSymbols(_arg0);
2129
2130 wxPy_END_ALLOW_THREADS;
2131 if (PyErr_Occurred()) return NULL;
2132 } _resultobj = Py_BuildValue("i",_result);
2133 return _resultobj;
2134 }
2135
2136 #define wxFontData_GetColour(_swigobj) (_swigobj->GetColour())
2137 static PyObject *_wrap_wxFontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2138 PyObject * _resultobj;
2139 wxColour * _result;
2140 wxFontData * _arg0;
2141 PyObject * _argo0 = 0;
2142 char *_kwnames[] = { "self", NULL };
2143 char _ptemp[128];
2144
2145 self = self;
2146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetColour",_kwnames,&_argo0))
2147 return NULL;
2148 if (_argo0) {
2149 if (_argo0 == Py_None) { _arg0 = NULL; }
2150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetColour. Expected _wxFontData_p.");
2152 return NULL;
2153 }
2154 }
2155 {
2156 wxPy_BEGIN_ALLOW_THREADS;
2157 _result = new wxColour (wxFontData_GetColour(_arg0));
2158
2159 wxPy_END_ALLOW_THREADS;
2160 if (PyErr_Occurred()) return NULL;
2161 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
2162 _resultobj = Py_BuildValue("s",_ptemp);
2163 return _resultobj;
2164 }
2165
2166 #define wxFontData_GetChosenFont(_swigobj) (_swigobj->GetChosenFont())
2167 static PyObject *_wrap_wxFontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2168 PyObject * _resultobj;
2169 wxFont * _result;
2170 wxFontData * _arg0;
2171 PyObject * _argo0 = 0;
2172 char *_kwnames[] = { "self", NULL };
2173 char _ptemp[128];
2174
2175 self = self;
2176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetChosenFont",_kwnames,&_argo0))
2177 return NULL;
2178 if (_argo0) {
2179 if (_argo0 == Py_None) { _arg0 = NULL; }
2180 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2181 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetChosenFont. Expected _wxFontData_p.");
2182 return NULL;
2183 }
2184 }
2185 {
2186 wxPy_BEGIN_ALLOW_THREADS;
2187 _result = new wxFont (wxFontData_GetChosenFont(_arg0));
2188
2189 wxPy_END_ALLOW_THREADS;
2190 if (PyErr_Occurred()) return NULL;
2191 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
2192 _resultobj = Py_BuildValue("s",_ptemp);
2193 return _resultobj;
2194 }
2195
2196 #define wxFontData_GetEnableEffects(_swigobj) (_swigobj->GetEnableEffects())
2197 static PyObject *_wrap_wxFontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) {
2198 PyObject * _resultobj;
2199 bool _result;
2200 wxFontData * _arg0;
2201 PyObject * _argo0 = 0;
2202 char *_kwnames[] = { "self", NULL };
2203
2204 self = self;
2205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetEnableEffects",_kwnames,&_argo0))
2206 return NULL;
2207 if (_argo0) {
2208 if (_argo0 == Py_None) { _arg0 = NULL; }
2209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetEnableEffects. Expected _wxFontData_p.");
2211 return NULL;
2212 }
2213 }
2214 {
2215 wxPy_BEGIN_ALLOW_THREADS;
2216 _result = (bool )wxFontData_GetEnableEffects(_arg0);
2217
2218 wxPy_END_ALLOW_THREADS;
2219 if (PyErr_Occurred()) return NULL;
2220 } _resultobj = Py_BuildValue("i",_result);
2221 return _resultobj;
2222 }
2223
2224 #define wxFontData_GetInitialFont(_swigobj) (_swigobj->GetInitialFont())
2225 static PyObject *_wrap_wxFontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2226 PyObject * _resultobj;
2227 wxFont * _result;
2228 wxFontData * _arg0;
2229 PyObject * _argo0 = 0;
2230 char *_kwnames[] = { "self", NULL };
2231 char _ptemp[128];
2232
2233 self = self;
2234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetInitialFont",_kwnames,&_argo0))
2235 return NULL;
2236 if (_argo0) {
2237 if (_argo0 == Py_None) { _arg0 = NULL; }
2238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetInitialFont. Expected _wxFontData_p.");
2240 return NULL;
2241 }
2242 }
2243 {
2244 wxPy_BEGIN_ALLOW_THREADS;
2245 _result = new wxFont (wxFontData_GetInitialFont(_arg0));
2246
2247 wxPy_END_ALLOW_THREADS;
2248 if (PyErr_Occurred()) return NULL;
2249 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
2250 _resultobj = Py_BuildValue("s",_ptemp);
2251 return _resultobj;
2252 }
2253
2254 #define wxFontData_GetShowHelp(_swigobj) (_swigobj->GetShowHelp())
2255 static PyObject *_wrap_wxFontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2256 PyObject * _resultobj;
2257 bool _result;
2258 wxFontData * _arg0;
2259 PyObject * _argo0 = 0;
2260 char *_kwnames[] = { "self", NULL };
2261
2262 self = self;
2263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetShowHelp",_kwnames,&_argo0))
2264 return NULL;
2265 if (_argo0) {
2266 if (_argo0 == Py_None) { _arg0 = NULL; }
2267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetShowHelp. Expected _wxFontData_p.");
2269 return NULL;
2270 }
2271 }
2272 {
2273 wxPy_BEGIN_ALLOW_THREADS;
2274 _result = (bool )wxFontData_GetShowHelp(_arg0);
2275
2276 wxPy_END_ALLOW_THREADS;
2277 if (PyErr_Occurred()) return NULL;
2278 } _resultobj = Py_BuildValue("i",_result);
2279 return _resultobj;
2280 }
2281
2282 #define wxFontData_SetAllowSymbols(_swigobj,_swigarg0) (_swigobj->SetAllowSymbols(_swigarg0))
2283 static PyObject *_wrap_wxFontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) {
2284 PyObject * _resultobj;
2285 wxFontData * _arg0;
2286 bool _arg1;
2287 PyObject * _argo0 = 0;
2288 int tempbool1;
2289 char *_kwnames[] = { "self","allowSymbols", NULL };
2290
2291 self = self;
2292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetAllowSymbols",_kwnames,&_argo0,&tempbool1))
2293 return NULL;
2294 if (_argo0) {
2295 if (_argo0 == Py_None) { _arg0 = NULL; }
2296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetAllowSymbols. Expected _wxFontData_p.");
2298 return NULL;
2299 }
2300 }
2301 _arg1 = (bool ) tempbool1;
2302 {
2303 wxPy_BEGIN_ALLOW_THREADS;
2304 wxFontData_SetAllowSymbols(_arg0,_arg1);
2305
2306 wxPy_END_ALLOW_THREADS;
2307 if (PyErr_Occurred()) return NULL;
2308 } Py_INCREF(Py_None);
2309 _resultobj = Py_None;
2310 return _resultobj;
2311 }
2312
2313 #define wxFontData_SetChosenFont(_swigobj,_swigarg0) (_swigobj->SetChosenFont(_swigarg0))
2314 static PyObject *_wrap_wxFontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2315 PyObject * _resultobj;
2316 wxFontData * _arg0;
2317 wxFont * _arg1;
2318 PyObject * _argo0 = 0;
2319 PyObject * _argo1 = 0;
2320 char *_kwnames[] = { "self","font", NULL };
2321
2322 self = self;
2323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetChosenFont",_kwnames,&_argo0,&_argo1))
2324 return NULL;
2325 if (_argo0) {
2326 if (_argo0 == Py_None) { _arg0 = NULL; }
2327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetChosenFont. Expected _wxFontData_p.");
2329 return NULL;
2330 }
2331 }
2332 if (_argo1) {
2333 if (_argo1 == Py_None) { _arg1 = NULL; }
2334 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
2335 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetChosenFont. Expected _wxFont_p.");
2336 return NULL;
2337 }
2338 }
2339 {
2340 wxPy_BEGIN_ALLOW_THREADS;
2341 wxFontData_SetChosenFont(_arg0,*_arg1);
2342
2343 wxPy_END_ALLOW_THREADS;
2344 if (PyErr_Occurred()) return NULL;
2345 } Py_INCREF(Py_None);
2346 _resultobj = Py_None;
2347 return _resultobj;
2348 }
2349
2350 #define wxFontData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
2351 static PyObject *_wrap_wxFontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2352 PyObject * _resultobj;
2353 wxFontData * _arg0;
2354 wxColour * _arg1;
2355 PyObject * _argo0 = 0;
2356 wxColour temp;
2357 PyObject * _obj1 = 0;
2358 char *_kwnames[] = { "self","colour", NULL };
2359
2360 self = self;
2361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetColour",_kwnames,&_argo0,&_obj1))
2362 return NULL;
2363 if (_argo0) {
2364 if (_argo0 == Py_None) { _arg0 = NULL; }
2365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetColour. Expected _wxFontData_p.");
2367 return NULL;
2368 }
2369 }
2370 {
2371 _arg1 = &temp;
2372 if (! wxColour_helper(_obj1, &_arg1))
2373 return NULL;
2374 }
2375 {
2376 wxPy_BEGIN_ALLOW_THREADS;
2377 wxFontData_SetColour(_arg0,*_arg1);
2378
2379 wxPy_END_ALLOW_THREADS;
2380 if (PyErr_Occurred()) return NULL;
2381 } Py_INCREF(Py_None);
2382 _resultobj = Py_None;
2383 return _resultobj;
2384 }
2385
2386 #define wxFontData_SetInitialFont(_swigobj,_swigarg0) (_swigobj->SetInitialFont(_swigarg0))
2387 static PyObject *_wrap_wxFontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2388 PyObject * _resultobj;
2389 wxFontData * _arg0;
2390 wxFont * _arg1;
2391 PyObject * _argo0 = 0;
2392 PyObject * _argo1 = 0;
2393 char *_kwnames[] = { "self","font", NULL };
2394
2395 self = self;
2396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetInitialFont",_kwnames,&_argo0,&_argo1))
2397 return NULL;
2398 if (_argo0) {
2399 if (_argo0 == Py_None) { _arg0 = NULL; }
2400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetInitialFont. Expected _wxFontData_p.");
2402 return NULL;
2403 }
2404 }
2405 if (_argo1) {
2406 if (_argo1 == Py_None) { _arg1 = NULL; }
2407 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
2408 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetInitialFont. Expected _wxFont_p.");
2409 return NULL;
2410 }
2411 }
2412 {
2413 wxPy_BEGIN_ALLOW_THREADS;
2414 wxFontData_SetInitialFont(_arg0,*_arg1);
2415
2416 wxPy_END_ALLOW_THREADS;
2417 if (PyErr_Occurred()) return NULL;
2418 } Py_INCREF(Py_None);
2419 _resultobj = Py_None;
2420 return _resultobj;
2421 }
2422
2423 #define wxFontData_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
2424 static PyObject *_wrap_wxFontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
2425 PyObject * _resultobj;
2426 wxFontData * _arg0;
2427 int _arg1;
2428 int _arg2;
2429 PyObject * _argo0 = 0;
2430 char *_kwnames[] = { "self","min","max", NULL };
2431
2432 self = self;
2433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxFontData_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
2434 return NULL;
2435 if (_argo0) {
2436 if (_argo0 == Py_None) { _arg0 = NULL; }
2437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetRange. Expected _wxFontData_p.");
2439 return NULL;
2440 }
2441 }
2442 {
2443 wxPy_BEGIN_ALLOW_THREADS;
2444 wxFontData_SetRange(_arg0,_arg1,_arg2);
2445
2446 wxPy_END_ALLOW_THREADS;
2447 if (PyErr_Occurred()) return NULL;
2448 } Py_INCREF(Py_None);
2449 _resultobj = Py_None;
2450 return _resultobj;
2451 }
2452
2453 #define wxFontData_SetShowHelp(_swigobj,_swigarg0) (_swigobj->SetShowHelp(_swigarg0))
2454 static PyObject *_wrap_wxFontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2455 PyObject * _resultobj;
2456 wxFontData * _arg0;
2457 bool _arg1;
2458 PyObject * _argo0 = 0;
2459 int tempbool1;
2460 char *_kwnames[] = { "self","showHelp", NULL };
2461
2462 self = self;
2463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetShowHelp",_kwnames,&_argo0,&tempbool1))
2464 return NULL;
2465 if (_argo0) {
2466 if (_argo0 == Py_None) { _arg0 = NULL; }
2467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetShowHelp. Expected _wxFontData_p.");
2469 return NULL;
2470 }
2471 }
2472 _arg1 = (bool ) tempbool1;
2473 {
2474 wxPy_BEGIN_ALLOW_THREADS;
2475 wxFontData_SetShowHelp(_arg0,_arg1);
2476
2477 wxPy_END_ALLOW_THREADS;
2478 if (PyErr_Occurred()) return NULL;
2479 } Py_INCREF(Py_None);
2480 _resultobj = Py_None;
2481 return _resultobj;
2482 }
2483
2484 static void *SwigwxFontDialogTowxDialog(void *ptr) {
2485 wxFontDialog *src;
2486 wxDialog *dest;
2487 src = (wxFontDialog *) ptr;
2488 dest = (wxDialog *) src;
2489 return (void *) dest;
2490 }
2491
2492 static void *SwigwxFontDialogTowxTopLevelWindow(void *ptr) {
2493 wxFontDialog *src;
2494 wxTopLevelWindow *dest;
2495 src = (wxFontDialog *) ptr;
2496 dest = (wxTopLevelWindow *) src;
2497 return (void *) dest;
2498 }
2499
2500 static void *SwigwxFontDialogTowxWindow(void *ptr) {
2501 wxFontDialog *src;
2502 wxWindow *dest;
2503 src = (wxFontDialog *) ptr;
2504 dest = (wxWindow *) src;
2505 return (void *) dest;
2506 }
2507
2508 static void *SwigwxFontDialogTowxEvtHandler(void *ptr) {
2509 wxFontDialog *src;
2510 wxEvtHandler *dest;
2511 src = (wxFontDialog *) ptr;
2512 dest = (wxEvtHandler *) src;
2513 return (void *) dest;
2514 }
2515
2516 static void *SwigwxFontDialogTowxObject(void *ptr) {
2517 wxFontDialog *src;
2518 wxObject *dest;
2519 src = (wxFontDialog *) ptr;
2520 dest = (wxObject *) src;
2521 return (void *) dest;
2522 }
2523
2524 #define new_wxFontDialog(_swigarg0,_swigarg1) (new wxFontDialog(_swigarg0,_swigarg1))
2525 static PyObject *_wrap_new_wxFontDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2526 PyObject * _resultobj;
2527 wxFontDialog * _result;
2528 wxWindow * _arg0;
2529 wxFontData * _arg1;
2530 PyObject * _argo0 = 0;
2531 PyObject * _argo1 = 0;
2532 char *_kwnames[] = { "parent","data", NULL };
2533 char _ptemp[128];
2534
2535 self = self;
2536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxFontDialog",_kwnames,&_argo0,&_argo1))
2537 return NULL;
2538 if (_argo0) {
2539 if (_argo0 == Py_None) { _arg0 = NULL; }
2540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontDialog. Expected _wxWindow_p.");
2542 return NULL;
2543 }
2544 }
2545 if (_argo1) {
2546 if (_argo1 == Py_None) { _arg1 = NULL; }
2547 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFontData_p")) {
2548 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxFontDialog. Expected _wxFontData_p.");
2549 return NULL;
2550 }
2551 }
2552 {
2553 wxPy_BEGIN_ALLOW_THREADS;
2554 _result = (wxFontDialog *)new_wxFontDialog(_arg0,_arg1);
2555
2556 wxPy_END_ALLOW_THREADS;
2557 if (PyErr_Occurred()) return NULL;
2558 } if (_result) {
2559 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontDialog_p");
2560 _resultobj = Py_BuildValue("s",_ptemp);
2561 } else {
2562 Py_INCREF(Py_None);
2563 _resultobj = Py_None;
2564 }
2565 return _resultobj;
2566 }
2567
2568 #define wxFontDialog_GetFontData(_swigobj) (_swigobj->GetFontData())
2569 static PyObject *_wrap_wxFontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) {
2570 PyObject * _resultobj;
2571 wxFontData * _result;
2572 wxFontDialog * _arg0;
2573 PyObject * _argo0 = 0;
2574 char *_kwnames[] = { "self", NULL };
2575 char _ptemp[128];
2576
2577 self = self;
2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_GetFontData",_kwnames,&_argo0))
2579 return NULL;
2580 if (_argo0) {
2581 if (_argo0 == Py_None) { _arg0 = NULL; }
2582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) {
2583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_GetFontData. Expected _wxFontDialog_p.");
2584 return NULL;
2585 }
2586 }
2587 {
2588 wxPy_BEGIN_ALLOW_THREADS;
2589 wxFontData & _result_ref = wxFontDialog_GetFontData(_arg0);
2590 _result = (wxFontData *) &_result_ref;
2591
2592 wxPy_END_ALLOW_THREADS;
2593 if (PyErr_Occurred()) return NULL;
2594 } if (_result) {
2595 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontData_p");
2596 _resultobj = Py_BuildValue("s",_ptemp);
2597 } else {
2598 Py_INCREF(Py_None);
2599 _resultobj = Py_None;
2600 }
2601 return _resultobj;
2602 }
2603
2604 #define wxFontDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
2605 static PyObject *_wrap_wxFontDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
2606 PyObject * _resultobj;
2607 int _result;
2608 wxFontDialog * _arg0;
2609 PyObject * _argo0 = 0;
2610 char *_kwnames[] = { "self", NULL };
2611
2612 self = self;
2613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_ShowModal",_kwnames,&_argo0))
2614 return NULL;
2615 if (_argo0) {
2616 if (_argo0 == Py_None) { _arg0 = NULL; }
2617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) {
2618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_ShowModal. Expected _wxFontDialog_p.");
2619 return NULL;
2620 }
2621 }
2622 {
2623 wxPy_BEGIN_ALLOW_THREADS;
2624 _result = (int )wxFontDialog_ShowModal(_arg0);
2625
2626 wxPy_END_ALLOW_THREADS;
2627 if (PyErr_Occurred()) return NULL;
2628 } _resultobj = Py_BuildValue("i",_result);
2629 return _resultobj;
2630 }
2631
2632 static void *SwigwxMessageDialogTowxDialog(void *ptr) {
2633 wxMessageDialog *src;
2634 wxDialog *dest;
2635 src = (wxMessageDialog *) ptr;
2636 dest = (wxDialog *) src;
2637 return (void *) dest;
2638 }
2639
2640 static void *SwigwxMessageDialogTowxTopLevelWindow(void *ptr) {
2641 wxMessageDialog *src;
2642 wxTopLevelWindow *dest;
2643 src = (wxMessageDialog *) ptr;
2644 dest = (wxTopLevelWindow *) src;
2645 return (void *) dest;
2646 }
2647
2648 static void *SwigwxMessageDialogTowxWindow(void *ptr) {
2649 wxMessageDialog *src;
2650 wxWindow *dest;
2651 src = (wxMessageDialog *) ptr;
2652 dest = (wxWindow *) src;
2653 return (void *) dest;
2654 }
2655
2656 static void *SwigwxMessageDialogTowxEvtHandler(void *ptr) {
2657 wxMessageDialog *src;
2658 wxEvtHandler *dest;
2659 src = (wxMessageDialog *) ptr;
2660 dest = (wxEvtHandler *) src;
2661 return (void *) dest;
2662 }
2663
2664 static void *SwigwxMessageDialogTowxObject(void *ptr) {
2665 wxMessageDialog *src;
2666 wxObject *dest;
2667 src = (wxMessageDialog *) ptr;
2668 dest = (wxObject *) src;
2669 return (void *) dest;
2670 }
2671
2672 #define new_wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2673 static PyObject *_wrap_new_wxMessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2674 PyObject * _resultobj;
2675 wxMessageDialog * _result;
2676 wxWindow * _arg0;
2677 char * _arg1;
2678 char * _arg2 = (char *) "Message box";
2679 long _arg3 = (long ) wxOK|wxCANCEL|wxCENTRE;
2680 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
2681 PyObject * _argo0 = 0;
2682 wxPoint temp;
2683 PyObject * _obj4 = 0;
2684 char *_kwnames[] = { "parent","message","caption","style","pos", NULL };
2685 char _ptemp[128];
2686
2687 self = self;
2688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|slO:new_wxMessageDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4))
2689 return NULL;
2690 if (_argo0) {
2691 if (_argo0 == Py_None) { _arg0 = NULL; }
2692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMessageDialog. Expected _wxWindow_p.");
2694 return NULL;
2695 }
2696 }
2697 if (_obj4)
2698 {
2699 _arg4 = &temp;
2700 if (! wxPoint_helper(_obj4, &_arg4))
2701 return NULL;
2702 }
2703 {
2704 wxPy_BEGIN_ALLOW_THREADS;
2705 _result = (wxMessageDialog *)new_wxMessageDialog(_arg0,_arg1,_arg2,_arg3,*_arg4);
2706
2707 wxPy_END_ALLOW_THREADS;
2708 if (PyErr_Occurred()) return NULL;
2709 } if (_result) {
2710 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMessageDialog_p");
2711 _resultobj = Py_BuildValue("s",_ptemp);
2712 } else {
2713 Py_INCREF(Py_None);
2714 _resultobj = Py_None;
2715 }
2716 return _resultobj;
2717 }
2718
2719 #define wxMessageDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
2720 static PyObject *_wrap_wxMessageDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
2721 PyObject * _resultobj;
2722 int _result;
2723 wxMessageDialog * _arg0;
2724 PyObject * _argo0 = 0;
2725 char *_kwnames[] = { "self", NULL };
2726
2727 self = self;
2728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMessageDialog_ShowModal",_kwnames,&_argo0))
2729 return NULL;
2730 if (_argo0) {
2731 if (_argo0 == Py_None) { _arg0 = NULL; }
2732 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMessageDialog_p")) {
2733 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMessageDialog_ShowModal. Expected _wxMessageDialog_p.");
2734 return NULL;
2735 }
2736 }
2737 {
2738 wxPy_BEGIN_ALLOW_THREADS;
2739 _result = (int )wxMessageDialog_ShowModal(_arg0);
2740
2741 wxPy_END_ALLOW_THREADS;
2742 if (PyErr_Occurred()) return NULL;
2743 } _resultobj = Py_BuildValue("i",_result);
2744 return _resultobj;
2745 }
2746
2747 static void *SwigwxProgressDialogTowxFrame(void *ptr) {
2748 wxProgressDialog *src;
2749 wxFrame *dest;
2750 src = (wxProgressDialog *) ptr;
2751 dest = (wxFrame *) src;
2752 return (void *) dest;
2753 }
2754
2755 static void *SwigwxProgressDialogTowxTopLevelWindow(void *ptr) {
2756 wxProgressDialog *src;
2757 wxTopLevelWindow *dest;
2758 src = (wxProgressDialog *) ptr;
2759 dest = (wxTopLevelWindow *) src;
2760 return (void *) dest;
2761 }
2762
2763 static void *SwigwxProgressDialogTowxWindow(void *ptr) {
2764 wxProgressDialog *src;
2765 wxWindow *dest;
2766 src = (wxProgressDialog *) ptr;
2767 dest = (wxWindow *) src;
2768 return (void *) dest;
2769 }
2770
2771 static void *SwigwxProgressDialogTowxEvtHandler(void *ptr) {
2772 wxProgressDialog *src;
2773 wxEvtHandler *dest;
2774 src = (wxProgressDialog *) ptr;
2775 dest = (wxEvtHandler *) src;
2776 return (void *) dest;
2777 }
2778
2779 static void *SwigwxProgressDialogTowxObject(void *ptr) {
2780 wxProgressDialog *src;
2781 wxObject *dest;
2782 src = (wxProgressDialog *) ptr;
2783 dest = (wxObject *) src;
2784 return (void *) dest;
2785 }
2786
2787 #define new_wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2788 static PyObject *_wrap_new_wxProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2789 PyObject * _resultobj;
2790 wxProgressDialog * _result;
2791 wxString * _arg0;
2792 wxString * _arg1;
2793 int _arg2 = (int ) 100;
2794 wxWindow * _arg3 = (wxWindow *) NULL;
2795 int _arg4 = (int ) wxPD_AUTO_HIDE|wxPD_APP_MODAL;
2796 PyObject * _obj0 = 0;
2797 PyObject * _obj1 = 0;
2798 PyObject * _argo3 = 0;
2799 char *_kwnames[] = { "title","message","maximum","parent","style", NULL };
2800 char _ptemp[128];
2801
2802 self = self;
2803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOi:new_wxProgressDialog",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4))
2804 return NULL;
2805 {
2806 #if PYTHON_API_VERSION >= 1009
2807 char* tmpPtr; int tmpSize;
2808 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2809 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2810 return NULL;
2811 }
2812 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2813 return NULL;
2814 _arg0 = new wxString(tmpPtr, tmpSize);
2815 #else
2816 if (!PyString_Check(_obj0)) {
2817 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2818 return NULL;
2819 }
2820 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2821 #endif
2822 }
2823 {
2824 #if PYTHON_API_VERSION >= 1009
2825 char* tmpPtr; int tmpSize;
2826 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2827 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2828 return NULL;
2829 }
2830 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2831 return NULL;
2832 _arg1 = new wxString(tmpPtr, tmpSize);
2833 #else
2834 if (!PyString_Check(_obj1)) {
2835 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2836 return NULL;
2837 }
2838 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2839 #endif
2840 }
2841 if (_argo3) {
2842 if (_argo3 == Py_None) { _arg3 = NULL; }
2843 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
2844 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxProgressDialog. Expected _wxWindow_p.");
2845 return NULL;
2846 }
2847 }
2848 {
2849 wxPy_BEGIN_ALLOW_THREADS;
2850 _result = (wxProgressDialog *)new_wxProgressDialog(*_arg0,*_arg1,_arg2,_arg3,_arg4);
2851
2852 wxPy_END_ALLOW_THREADS;
2853 if (PyErr_Occurred()) return NULL;
2854 } if (_result) {
2855 SWIG_MakePtr(_ptemp, (char *) _result,"_wxProgressDialog_p");
2856 _resultobj = Py_BuildValue("s",_ptemp);
2857 } else {
2858 Py_INCREF(Py_None);
2859 _resultobj = Py_None;
2860 }
2861 {
2862 if (_obj0)
2863 delete _arg0;
2864 }
2865 {
2866 if (_obj1)
2867 delete _arg1;
2868 }
2869 return _resultobj;
2870 }
2871
2872 #define wxProgressDialog_Update(_swigobj,_swigarg0,_swigarg1) (_swigobj->Update(_swigarg0,_swigarg1))
2873 static PyObject *_wrap_wxProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
2874 PyObject * _resultobj;
2875 bool _result;
2876 wxProgressDialog * _arg0;
2877 int _arg1 = (int ) -1;
2878 char * _arg2 = (char *) NULL;
2879 PyObject * _argo0 = 0;
2880 char *_kwnames[] = { "self","value","newmsg", NULL };
2881
2882 self = self;
2883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|is:wxProgressDialog_Update",_kwnames,&_argo0,&_arg1,&_arg2))
2884 return NULL;
2885 if (_argo0) {
2886 if (_argo0 == Py_None) { _arg0 = NULL; }
2887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) {
2888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Update. Expected _wxProgressDialog_p.");
2889 return NULL;
2890 }
2891 }
2892 {
2893 wxPy_BEGIN_ALLOW_THREADS;
2894 _result = (bool )wxProgressDialog_Update(_arg0,_arg1,_arg2);
2895
2896 wxPy_END_ALLOW_THREADS;
2897 if (PyErr_Occurred()) return NULL;
2898 } _resultobj = Py_BuildValue("i",_result);
2899 return _resultobj;
2900 }
2901
2902 #define wxProgressDialog_Resume(_swigobj) (_swigobj->Resume())
2903 static PyObject *_wrap_wxProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
2904 PyObject * _resultobj;
2905 wxProgressDialog * _arg0;
2906 PyObject * _argo0 = 0;
2907 char *_kwnames[] = { "self", NULL };
2908
2909 self = self;
2910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProgressDialog_Resume",_kwnames,&_argo0))
2911 return NULL;
2912 if (_argo0) {
2913 if (_argo0 == Py_None) { _arg0 = NULL; }
2914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) {
2915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Resume. Expected _wxProgressDialog_p.");
2916 return NULL;
2917 }
2918 }
2919 {
2920 wxPy_BEGIN_ALLOW_THREADS;
2921 wxProgressDialog_Resume(_arg0);
2922
2923 wxPy_END_ALLOW_THREADS;
2924 if (PyErr_Occurred()) return NULL;
2925 } Py_INCREF(Py_None);
2926 _resultobj = Py_None;
2927 return _resultobj;
2928 }
2929
2930 static void *SwigwxFindDialogEventTowxCommandEvent(void *ptr) {
2931 wxFindDialogEvent *src;
2932 wxCommandEvent *dest;
2933 src = (wxFindDialogEvent *) ptr;
2934 dest = (wxCommandEvent *) src;
2935 return (void *) dest;
2936 }
2937
2938 static void *SwigwxFindDialogEventTowxEvent(void *ptr) {
2939 wxFindDialogEvent *src;
2940 wxEvent *dest;
2941 src = (wxFindDialogEvent *) ptr;
2942 dest = (wxEvent *) src;
2943 return (void *) dest;
2944 }
2945
2946 static void *SwigwxFindDialogEventTowxObject(void *ptr) {
2947 wxFindDialogEvent *src;
2948 wxObject *dest;
2949 src = (wxFindDialogEvent *) ptr;
2950 dest = (wxObject *) src;
2951 return (void *) dest;
2952 }
2953
2954 #define new_wxFindDialogEvent(_swigarg0,_swigarg1) (new wxFindDialogEvent(_swigarg0,_swigarg1))
2955 static PyObject *_wrap_new_wxFindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
2956 PyObject * _resultobj;
2957 wxFindDialogEvent * _result;
2958 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
2959 int _arg1 = (int ) 0;
2960 char *_kwnames[] = { "commandType","id", NULL };
2961 char _ptemp[128];
2962
2963 self = self;
2964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxFindDialogEvent",_kwnames,&_arg0,&_arg1))
2965 return NULL;
2966 {
2967 wxPy_BEGIN_ALLOW_THREADS;
2968 _result = (wxFindDialogEvent *)new_wxFindDialogEvent(_arg0,_arg1);
2969
2970 wxPy_END_ALLOW_THREADS;
2971 if (PyErr_Occurred()) return NULL;
2972 } if (_result) {
2973 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindDialogEvent_p");
2974 _resultobj = Py_BuildValue("s",_ptemp);
2975 } else {
2976 Py_INCREF(Py_None);
2977 _resultobj = Py_None;
2978 }
2979 return _resultobj;
2980 }
2981
2982 #define wxFindDialogEvent_GetFlags(_swigobj) (_swigobj->GetFlags())
2983 static PyObject *_wrap_wxFindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
2984 PyObject * _resultobj;
2985 int _result;
2986 wxFindDialogEvent * _arg0;
2987 PyObject * _argo0 = 0;
2988 char *_kwnames[] = { "self", NULL };
2989
2990 self = self;
2991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindDialogEvent_GetFlags",_kwnames,&_argo0))
2992 return NULL;
2993 if (_argo0) {
2994 if (_argo0 == Py_None) { _arg0 = NULL; }
2995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) {
2996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_GetFlags. Expected _wxFindDialogEvent_p.");
2997 return NULL;
2998 }
2999 }
3000 {
3001 wxPy_BEGIN_ALLOW_THREADS;
3002 _result = (int )wxFindDialogEvent_GetFlags(_arg0);
3003
3004 wxPy_END_ALLOW_THREADS;
3005 if (PyErr_Occurred()) return NULL;
3006 } _resultobj = Py_BuildValue("i",_result);
3007 return _resultobj;
3008 }
3009
3010 #define wxFindDialogEvent_GetFindString(_swigobj) (_swigobj->GetFindString())
3011 static PyObject *_wrap_wxFindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) {
3012 PyObject * _resultobj;
3013 wxString * _result;
3014 wxFindDialogEvent * _arg0;
3015 PyObject * _argo0 = 0;
3016 char *_kwnames[] = { "self", NULL };
3017
3018 self = self;
3019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindDialogEvent_GetFindString",_kwnames,&_argo0))
3020 return NULL;
3021 if (_argo0) {
3022 if (_argo0 == Py_None) { _arg0 = NULL; }
3023 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) {
3024 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_GetFindString. Expected _wxFindDialogEvent_p.");
3025 return NULL;
3026 }
3027 }
3028 {
3029 wxPy_BEGIN_ALLOW_THREADS;
3030 _result = new wxString (wxFindDialogEvent_GetFindString(_arg0));
3031
3032 wxPy_END_ALLOW_THREADS;
3033 if (PyErr_Occurred()) return NULL;
3034 }{
3035 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3036 }
3037 {
3038 delete _result;
3039 }
3040 return _resultobj;
3041 }
3042
3043 #define wxFindDialogEvent_GetReplaceString(_swigobj) (_swigobj->GetReplaceString())
3044 static PyObject *_wrap_wxFindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) {
3045 PyObject * _resultobj;
3046 wxString * _result;
3047 wxFindDialogEvent * _arg0;
3048 PyObject * _argo0 = 0;
3049 char *_kwnames[] = { "self", NULL };
3050
3051 self = self;
3052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindDialogEvent_GetReplaceString",_kwnames,&_argo0))
3053 return NULL;
3054 if (_argo0) {
3055 if (_argo0 == Py_None) { _arg0 = NULL; }
3056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) {
3057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_GetReplaceString. Expected _wxFindDialogEvent_p.");
3058 return NULL;
3059 }
3060 }
3061 {
3062 wxPy_BEGIN_ALLOW_THREADS;
3063 const wxString & _result_ref = wxFindDialogEvent_GetReplaceString(_arg0);
3064 _result = (wxString *) &_result_ref;
3065
3066 wxPy_END_ALLOW_THREADS;
3067 if (PyErr_Occurred()) return NULL;
3068 }{
3069 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3070 }
3071 return _resultobj;
3072 }
3073
3074 #define wxFindDialogEvent_GetDialog(_swigobj) (_swigobj->GetDialog())
3075 static PyObject *_wrap_wxFindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3076 PyObject * _resultobj;
3077 wxFindReplaceDialog * _result;
3078 wxFindDialogEvent * _arg0;
3079 PyObject * _argo0 = 0;
3080 char *_kwnames[] = { "self", NULL };
3081 char _ptemp[128];
3082
3083 self = self;
3084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindDialogEvent_GetDialog",_kwnames,&_argo0))
3085 return NULL;
3086 if (_argo0) {
3087 if (_argo0 == Py_None) { _arg0 = NULL; }
3088 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) {
3089 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_GetDialog. Expected _wxFindDialogEvent_p.");
3090 return NULL;
3091 }
3092 }
3093 {
3094 wxPy_BEGIN_ALLOW_THREADS;
3095 _result = (wxFindReplaceDialog *)wxFindDialogEvent_GetDialog(_arg0);
3096
3097 wxPy_END_ALLOW_THREADS;
3098 if (PyErr_Occurred()) return NULL;
3099 } if (_result) {
3100 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindReplaceDialog_p");
3101 _resultobj = Py_BuildValue("s",_ptemp);
3102 } else {
3103 Py_INCREF(Py_None);
3104 _resultobj = Py_None;
3105 }
3106 return _resultobj;
3107 }
3108
3109 #define wxFindDialogEvent_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0))
3110 static PyObject *_wrap_wxFindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
3111 PyObject * _resultobj;
3112 wxFindDialogEvent * _arg0;
3113 int _arg1;
3114 PyObject * _argo0 = 0;
3115 char *_kwnames[] = { "self","flags", NULL };
3116
3117 self = self;
3118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFindDialogEvent_SetFlags",_kwnames,&_argo0,&_arg1))
3119 return NULL;
3120 if (_argo0) {
3121 if (_argo0 == Py_None) { _arg0 = NULL; }
3122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) {
3123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_SetFlags. Expected _wxFindDialogEvent_p.");
3124 return NULL;
3125 }
3126 }
3127 {
3128 wxPy_BEGIN_ALLOW_THREADS;
3129 wxFindDialogEvent_SetFlags(_arg0,_arg1);
3130
3131 wxPy_END_ALLOW_THREADS;
3132 if (PyErr_Occurred()) return NULL;
3133 } Py_INCREF(Py_None);
3134 _resultobj = Py_None;
3135 return _resultobj;
3136 }
3137
3138 #define wxFindDialogEvent_SetFindString(_swigobj,_swigarg0) (_swigobj->SetFindString(_swigarg0))
3139 static PyObject *_wrap_wxFindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) {
3140 PyObject * _resultobj;
3141 wxFindDialogEvent * _arg0;
3142 wxString * _arg1;
3143 PyObject * _argo0 = 0;
3144 PyObject * _obj1 = 0;
3145 char *_kwnames[] = { "self","str", NULL };
3146
3147 self = self;
3148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFindDialogEvent_SetFindString",_kwnames,&_argo0,&_obj1))
3149 return NULL;
3150 if (_argo0) {
3151 if (_argo0 == Py_None) { _arg0 = NULL; }
3152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) {
3153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_SetFindString. Expected _wxFindDialogEvent_p.");
3154 return NULL;
3155 }
3156 }
3157 {
3158 #if PYTHON_API_VERSION >= 1009
3159 char* tmpPtr; int tmpSize;
3160 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3161 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3162 return NULL;
3163 }
3164 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3165 return NULL;
3166 _arg1 = new wxString(tmpPtr, tmpSize);
3167 #else
3168 if (!PyString_Check(_obj1)) {
3169 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3170 return NULL;
3171 }
3172 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3173 #endif
3174 }
3175 {
3176 wxPy_BEGIN_ALLOW_THREADS;
3177 wxFindDialogEvent_SetFindString(_arg0,*_arg1);
3178
3179 wxPy_END_ALLOW_THREADS;
3180 if (PyErr_Occurred()) return NULL;
3181 } Py_INCREF(Py_None);
3182 _resultobj = Py_None;
3183 {
3184 if (_obj1)
3185 delete _arg1;
3186 }
3187 return _resultobj;
3188 }
3189
3190 #define wxFindDialogEvent_SetReplaceString(_swigobj,_swigarg0) (_swigobj->SetReplaceString(_swigarg0))
3191 static PyObject *_wrap_wxFindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) {
3192 PyObject * _resultobj;
3193 wxFindDialogEvent * _arg0;
3194 wxString * _arg1;
3195 PyObject * _argo0 = 0;
3196 PyObject * _obj1 = 0;
3197 char *_kwnames[] = { "self","str", NULL };
3198
3199 self = self;
3200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFindDialogEvent_SetReplaceString",_kwnames,&_argo0,&_obj1))
3201 return NULL;
3202 if (_argo0) {
3203 if (_argo0 == Py_None) { _arg0 = NULL; }
3204 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindDialogEvent_p")) {
3205 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindDialogEvent_SetReplaceString. Expected _wxFindDialogEvent_p.");
3206 return NULL;
3207 }
3208 }
3209 {
3210 #if PYTHON_API_VERSION >= 1009
3211 char* tmpPtr; int tmpSize;
3212 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3213 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3214 return NULL;
3215 }
3216 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3217 return NULL;
3218 _arg1 = new wxString(tmpPtr, tmpSize);
3219 #else
3220 if (!PyString_Check(_obj1)) {
3221 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3222 return NULL;
3223 }
3224 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3225 #endif
3226 }
3227 {
3228 wxPy_BEGIN_ALLOW_THREADS;
3229 wxFindDialogEvent_SetReplaceString(_arg0,*_arg1);
3230
3231 wxPy_END_ALLOW_THREADS;
3232 if (PyErr_Occurred()) return NULL;
3233 } Py_INCREF(Py_None);
3234 _resultobj = Py_None;
3235 {
3236 if (_obj1)
3237 delete _arg1;
3238 }
3239 return _resultobj;
3240 }
3241
3242 static void *SwigwxFindReplaceDataTowxObject(void *ptr) {
3243 wxFindReplaceData *src;
3244 wxObject *dest;
3245 src = (wxFindReplaceData *) ptr;
3246 dest = (wxObject *) src;
3247 return (void *) dest;
3248 }
3249
3250 #define new_wxFindReplaceData(_swigarg0) (new wxFindReplaceData(_swigarg0))
3251 static PyObject *_wrap_new_wxFindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) {
3252 PyObject * _resultobj;
3253 wxFindReplaceData * _result;
3254 int _arg0 = (int ) 0;
3255 char *_kwnames[] = { "flags", NULL };
3256 char _ptemp[128];
3257
3258 self = self;
3259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFindReplaceData",_kwnames,&_arg0))
3260 return NULL;
3261 {
3262 wxPy_BEGIN_ALLOW_THREADS;
3263 _result = (wxFindReplaceData *)new_wxFindReplaceData(_arg0);
3264
3265 wxPy_END_ALLOW_THREADS;
3266 if (PyErr_Occurred()) return NULL;
3267 } if (_result) {
3268 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindReplaceData_p");
3269 _resultobj = Py_BuildValue("s",_ptemp);
3270 } else {
3271 Py_INCREF(Py_None);
3272 _resultobj = Py_None;
3273 }
3274 return _resultobj;
3275 }
3276
3277 #define delete_wxFindReplaceData(_swigobj) (delete _swigobj)
3278 static PyObject *_wrap_delete_wxFindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) {
3279 PyObject * _resultobj;
3280 wxFindReplaceData * _arg0;
3281 PyObject * _argo0 = 0;
3282 char *_kwnames[] = { "self", NULL };
3283
3284 self = self;
3285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFindReplaceData",_kwnames,&_argo0))
3286 return NULL;
3287 if (_argo0) {
3288 if (_argo0 == Py_None) { _arg0 = NULL; }
3289 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) {
3290 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFindReplaceData. Expected _wxFindReplaceData_p.");
3291 return NULL;
3292 }
3293 }
3294 {
3295 wxPy_BEGIN_ALLOW_THREADS;
3296 delete_wxFindReplaceData(_arg0);
3297
3298 wxPy_END_ALLOW_THREADS;
3299 if (PyErr_Occurred()) return NULL;
3300 } Py_INCREF(Py_None);
3301 _resultobj = Py_None;
3302 return _resultobj;
3303 }
3304
3305 #define wxFindReplaceData_GetFindString(_swigobj) (_swigobj->GetFindString())
3306 static PyObject *_wrap_wxFindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) {
3307 PyObject * _resultobj;
3308 wxString * _result;
3309 wxFindReplaceData * _arg0;
3310 PyObject * _argo0 = 0;
3311 char *_kwnames[] = { "self", NULL };
3312
3313 self = self;
3314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindReplaceData_GetFindString",_kwnames,&_argo0))
3315 return NULL;
3316 if (_argo0) {
3317 if (_argo0 == Py_None) { _arg0 = NULL; }
3318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) {
3319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_GetFindString. Expected _wxFindReplaceData_p.");
3320 return NULL;
3321 }
3322 }
3323 {
3324 wxPy_BEGIN_ALLOW_THREADS;
3325 const wxString & _result_ref = wxFindReplaceData_GetFindString(_arg0);
3326 _result = (wxString *) &_result_ref;
3327
3328 wxPy_END_ALLOW_THREADS;
3329 if (PyErr_Occurred()) return NULL;
3330 }{
3331 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3332 }
3333 return _resultobj;
3334 }
3335
3336 #define wxFindReplaceData_GetReplaceString(_swigobj) (_swigobj->GetReplaceString())
3337 static PyObject *_wrap_wxFindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) {
3338 PyObject * _resultobj;
3339 wxString * _result;
3340 wxFindReplaceData * _arg0;
3341 PyObject * _argo0 = 0;
3342 char *_kwnames[] = { "self", NULL };
3343
3344 self = self;
3345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindReplaceData_GetReplaceString",_kwnames,&_argo0))
3346 return NULL;
3347 if (_argo0) {
3348 if (_argo0 == Py_None) { _arg0 = NULL; }
3349 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) {
3350 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_GetReplaceString. Expected _wxFindReplaceData_p.");
3351 return NULL;
3352 }
3353 }
3354 {
3355 wxPy_BEGIN_ALLOW_THREADS;
3356 const wxString & _result_ref = wxFindReplaceData_GetReplaceString(_arg0);
3357 _result = (wxString *) &_result_ref;
3358
3359 wxPy_END_ALLOW_THREADS;
3360 if (PyErr_Occurred()) return NULL;
3361 }{
3362 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3363 }
3364 return _resultobj;
3365 }
3366
3367 #define wxFindReplaceData_GetFlags(_swigobj) (_swigobj->GetFlags())
3368 static PyObject *_wrap_wxFindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
3369 PyObject * _resultobj;
3370 int _result;
3371 wxFindReplaceData * _arg0;
3372 PyObject * _argo0 = 0;
3373 char *_kwnames[] = { "self", NULL };
3374
3375 self = self;
3376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindReplaceData_GetFlags",_kwnames,&_argo0))
3377 return NULL;
3378 if (_argo0) {
3379 if (_argo0 == Py_None) { _arg0 = NULL; }
3380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) {
3381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_GetFlags. Expected _wxFindReplaceData_p.");
3382 return NULL;
3383 }
3384 }
3385 {
3386 wxPy_BEGIN_ALLOW_THREADS;
3387 _result = (int )wxFindReplaceData_GetFlags(_arg0);
3388
3389 wxPy_END_ALLOW_THREADS;
3390 if (PyErr_Occurred()) return NULL;
3391 } _resultobj = Py_BuildValue("i",_result);
3392 return _resultobj;
3393 }
3394
3395 #define wxFindReplaceData_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0))
3396 static PyObject *_wrap_wxFindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
3397 PyObject * _resultobj;
3398 wxFindReplaceData * _arg0;
3399 int _arg1;
3400 PyObject * _argo0 = 0;
3401 char *_kwnames[] = { "self","flags", NULL };
3402
3403 self = self;
3404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFindReplaceData_SetFlags",_kwnames,&_argo0,&_arg1))
3405 return NULL;
3406 if (_argo0) {
3407 if (_argo0 == Py_None) { _arg0 = NULL; }
3408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) {
3409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_SetFlags. Expected _wxFindReplaceData_p.");
3410 return NULL;
3411 }
3412 }
3413 {
3414 wxPy_BEGIN_ALLOW_THREADS;
3415 wxFindReplaceData_SetFlags(_arg0,_arg1);
3416
3417 wxPy_END_ALLOW_THREADS;
3418 if (PyErr_Occurred()) return NULL;
3419 } Py_INCREF(Py_None);
3420 _resultobj = Py_None;
3421 return _resultobj;
3422 }
3423
3424 #define wxFindReplaceData_SetFindString(_swigobj,_swigarg0) (_swigobj->SetFindString(_swigarg0))
3425 static PyObject *_wrap_wxFindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) {
3426 PyObject * _resultobj;
3427 wxFindReplaceData * _arg0;
3428 wxString * _arg1;
3429 PyObject * _argo0 = 0;
3430 PyObject * _obj1 = 0;
3431 char *_kwnames[] = { "self","str", NULL };
3432
3433 self = self;
3434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFindReplaceData_SetFindString",_kwnames,&_argo0,&_obj1))
3435 return NULL;
3436 if (_argo0) {
3437 if (_argo0 == Py_None) { _arg0 = NULL; }
3438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) {
3439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_SetFindString. Expected _wxFindReplaceData_p.");
3440 return NULL;
3441 }
3442 }
3443 {
3444 #if PYTHON_API_VERSION >= 1009
3445 char* tmpPtr; int tmpSize;
3446 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3447 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3448 return NULL;
3449 }
3450 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3451 return NULL;
3452 _arg1 = new wxString(tmpPtr, tmpSize);
3453 #else
3454 if (!PyString_Check(_obj1)) {
3455 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3456 return NULL;
3457 }
3458 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3459 #endif
3460 }
3461 {
3462 wxPy_BEGIN_ALLOW_THREADS;
3463 wxFindReplaceData_SetFindString(_arg0,*_arg1);
3464
3465 wxPy_END_ALLOW_THREADS;
3466 if (PyErr_Occurred()) return NULL;
3467 } Py_INCREF(Py_None);
3468 _resultobj = Py_None;
3469 {
3470 if (_obj1)
3471 delete _arg1;
3472 }
3473 return _resultobj;
3474 }
3475
3476 #define wxFindReplaceData_SetReplaceString(_swigobj,_swigarg0) (_swigobj->SetReplaceString(_swigarg0))
3477 static PyObject *_wrap_wxFindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) {
3478 PyObject * _resultobj;
3479 wxFindReplaceData * _arg0;
3480 wxString * _arg1;
3481 PyObject * _argo0 = 0;
3482 PyObject * _obj1 = 0;
3483 char *_kwnames[] = { "self","str", NULL };
3484
3485 self = self;
3486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFindReplaceData_SetReplaceString",_kwnames,&_argo0,&_obj1))
3487 return NULL;
3488 if (_argo0) {
3489 if (_argo0 == Py_None) { _arg0 = NULL; }
3490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceData_p")) {
3491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceData_SetReplaceString. Expected _wxFindReplaceData_p.");
3492 return NULL;
3493 }
3494 }
3495 {
3496 #if PYTHON_API_VERSION >= 1009
3497 char* tmpPtr; int tmpSize;
3498 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3499 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3500 return NULL;
3501 }
3502 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3503 return NULL;
3504 _arg1 = new wxString(tmpPtr, tmpSize);
3505 #else
3506 if (!PyString_Check(_obj1)) {
3507 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3508 return NULL;
3509 }
3510 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3511 #endif
3512 }
3513 {
3514 wxPy_BEGIN_ALLOW_THREADS;
3515 wxFindReplaceData_SetReplaceString(_arg0,*_arg1);
3516
3517 wxPy_END_ALLOW_THREADS;
3518 if (PyErr_Occurred()) return NULL;
3519 } Py_INCREF(Py_None);
3520 _resultobj = Py_None;
3521 {
3522 if (_obj1)
3523 delete _arg1;
3524 }
3525 return _resultobj;
3526 }
3527
3528 static void *SwigwxFindReplaceDialogTowxDialog(void *ptr) {
3529 wxFindReplaceDialog *src;
3530 wxDialog *dest;
3531 src = (wxFindReplaceDialog *) ptr;
3532 dest = (wxDialog *) src;
3533 return (void *) dest;
3534 }
3535
3536 static void *SwigwxFindReplaceDialogTowxTopLevelWindow(void *ptr) {
3537 wxFindReplaceDialog *src;
3538 wxTopLevelWindow *dest;
3539 src = (wxFindReplaceDialog *) ptr;
3540 dest = (wxTopLevelWindow *) src;
3541 return (void *) dest;
3542 }
3543
3544 static void *SwigwxFindReplaceDialogTowxWindow(void *ptr) {
3545 wxFindReplaceDialog *src;
3546 wxWindow *dest;
3547 src = (wxFindReplaceDialog *) ptr;
3548 dest = (wxWindow *) src;
3549 return (void *) dest;
3550 }
3551
3552 static void *SwigwxFindReplaceDialogTowxEvtHandler(void *ptr) {
3553 wxFindReplaceDialog *src;
3554 wxEvtHandler *dest;
3555 src = (wxFindReplaceDialog *) ptr;
3556 dest = (wxEvtHandler *) src;
3557 return (void *) dest;
3558 }
3559
3560 static void *SwigwxFindReplaceDialogTowxObject(void *ptr) {
3561 wxFindReplaceDialog *src;
3562 wxObject *dest;
3563 src = (wxFindReplaceDialog *) ptr;
3564 dest = (wxObject *) src;
3565 return (void *) dest;
3566 }
3567
3568 #define new_wxFindReplaceDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFindReplaceDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3569 static PyObject *_wrap_new_wxFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3570 PyObject * _resultobj;
3571 wxFindReplaceDialog * _result;
3572 wxWindow * _arg0;
3573 wxFindReplaceData * _arg1;
3574 wxString * _arg2;
3575 int _arg3 = (int ) 0;
3576 PyObject * _argo0 = 0;
3577 PyObject * _argo1 = 0;
3578 PyObject * _obj2 = 0;
3579 char *_kwnames[] = { "parent","data","title","style", NULL };
3580 char _ptemp[128];
3581
3582 self = self;
3583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:new_wxFindReplaceDialog",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3))
3584 return NULL;
3585 if (_argo0) {
3586 if (_argo0 == Py_None) { _arg0 = NULL; }
3587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFindReplaceDialog. Expected _wxWindow_p.");
3589 return NULL;
3590 }
3591 }
3592 if (_argo1) {
3593 if (_argo1 == Py_None) { _arg1 = NULL; }
3594 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFindReplaceData_p")) {
3595 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxFindReplaceDialog. Expected _wxFindReplaceData_p.");
3596 return NULL;
3597 }
3598 }
3599 {
3600 #if PYTHON_API_VERSION >= 1009
3601 char* tmpPtr; int tmpSize;
3602 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3603 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3604 return NULL;
3605 }
3606 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3607 return NULL;
3608 _arg2 = new wxString(tmpPtr, tmpSize);
3609 #else
3610 if (!PyString_Check(_obj2)) {
3611 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3612 return NULL;
3613 }
3614 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3615 #endif
3616 }
3617 {
3618 wxPy_BEGIN_ALLOW_THREADS;
3619 _result = (wxFindReplaceDialog *)new_wxFindReplaceDialog(_arg0,_arg1,*_arg2,_arg3);
3620
3621 wxPy_END_ALLOW_THREADS;
3622 if (PyErr_Occurred()) return NULL;
3623 } if (_result) {
3624 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindReplaceDialog_p");
3625 _resultobj = Py_BuildValue("s",_ptemp);
3626 } else {
3627 Py_INCREF(Py_None);
3628 _resultobj = Py_None;
3629 }
3630 {
3631 if (_obj2)
3632 delete _arg2;
3633 }
3634 return _resultobj;
3635 }
3636
3637 #define new_wxPreFindReplaceDialog() (new wxFindReplaceDialog())
3638 static PyObject *_wrap_new_wxPreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3639 PyObject * _resultobj;
3640 wxFindReplaceDialog * _result;
3641 char *_kwnames[] = { NULL };
3642 char _ptemp[128];
3643
3644 self = self;
3645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreFindReplaceDialog",_kwnames))
3646 return NULL;
3647 {
3648 wxPy_BEGIN_ALLOW_THREADS;
3649 _result = (wxFindReplaceDialog *)new_wxPreFindReplaceDialog();
3650
3651 wxPy_END_ALLOW_THREADS;
3652 if (PyErr_Occurred()) return NULL;
3653 } if (_result) {
3654 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindReplaceDialog_p");
3655 _resultobj = Py_BuildValue("s",_ptemp);
3656 } else {
3657 Py_INCREF(Py_None);
3658 _resultobj = Py_None;
3659 }
3660 return _resultobj;
3661 }
3662
3663 #define wxFindReplaceDialog_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3664 static PyObject *_wrap_wxFindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3665 PyObject * _resultobj;
3666 bool _result;
3667 wxFindReplaceDialog * _arg0;
3668 wxWindow * _arg1;
3669 wxFindReplaceData * _arg2;
3670 wxString * _arg3;
3671 int _arg4 = (int ) 0;
3672 PyObject * _argo0 = 0;
3673 PyObject * _argo1 = 0;
3674 PyObject * _argo2 = 0;
3675 PyObject * _obj3 = 0;
3676 char *_kwnames[] = { "self","parent","data","title","style", NULL };
3677
3678 self = self;
3679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|i:wxFindReplaceDialog_Create",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4))
3680 return NULL;
3681 if (_argo0) {
3682 if (_argo0 == Py_None) { _arg0 = NULL; }
3683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceDialog_p")) {
3684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceDialog_Create. Expected _wxFindReplaceDialog_p.");
3685 return NULL;
3686 }
3687 }
3688 if (_argo1) {
3689 if (_argo1 == Py_None) { _arg1 = NULL; }
3690 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3691 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindReplaceDialog_Create. Expected _wxWindow_p.");
3692 return NULL;
3693 }
3694 }
3695 if (_argo2) {
3696 if (_argo2 == Py_None) { _arg2 = NULL; }
3697 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFindReplaceData_p")) {
3698 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxFindReplaceDialog_Create. Expected _wxFindReplaceData_p.");
3699 return NULL;
3700 }
3701 }
3702 {
3703 #if PYTHON_API_VERSION >= 1009
3704 char* tmpPtr; int tmpSize;
3705 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
3706 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3707 return NULL;
3708 }
3709 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
3710 return NULL;
3711 _arg3 = new wxString(tmpPtr, tmpSize);
3712 #else
3713 if (!PyString_Check(_obj3)) {
3714 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3715 return NULL;
3716 }
3717 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
3718 #endif
3719 }
3720 {
3721 wxPy_BEGIN_ALLOW_THREADS;
3722 _result = (bool )wxFindReplaceDialog_Create(_arg0,_arg1,_arg2,*_arg3,_arg4);
3723
3724 wxPy_END_ALLOW_THREADS;
3725 if (PyErr_Occurred()) return NULL;
3726 } _resultobj = Py_BuildValue("i",_result);
3727 {
3728 if (_obj3)
3729 delete _arg3;
3730 }
3731 return _resultobj;
3732 }
3733
3734 #define wxFindReplaceDialog_GetData(_swigobj) (_swigobj->GetData())
3735 static PyObject *_wrap_wxFindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
3736 PyObject * _resultobj;
3737 wxFindReplaceData * _result;
3738 wxFindReplaceDialog * _arg0;
3739 PyObject * _argo0 = 0;
3740 char *_kwnames[] = { "self", NULL };
3741 char _ptemp[128];
3742
3743 self = self;
3744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindReplaceDialog_GetData",_kwnames,&_argo0))
3745 return NULL;
3746 if (_argo0) {
3747 if (_argo0 == Py_None) { _arg0 = NULL; }
3748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceDialog_p")) {
3749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceDialog_GetData. Expected _wxFindReplaceDialog_p.");
3750 return NULL;
3751 }
3752 }
3753 {
3754 wxPy_BEGIN_ALLOW_THREADS;
3755 _result = (wxFindReplaceData *)wxFindReplaceDialog_GetData(_arg0);
3756
3757 wxPy_END_ALLOW_THREADS;
3758 if (PyErr_Occurred()) return NULL;
3759 } if (_result) {
3760 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFindReplaceData_p");
3761 _resultobj = Py_BuildValue("s",_ptemp);
3762 } else {
3763 Py_INCREF(Py_None);
3764 _resultobj = Py_None;
3765 }
3766 return _resultobj;
3767 }
3768
3769 #define wxFindReplaceDialog_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
3770 static PyObject *_wrap_wxFindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
3771 PyObject * _resultobj;
3772 wxFindReplaceDialog * _arg0;
3773 wxFindReplaceData * _arg1;
3774 PyObject * _argo0 = 0;
3775 PyObject * _argo1 = 0;
3776 char *_kwnames[] = { "self","data", NULL };
3777
3778 self = self;
3779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFindReplaceDialog_SetData",_kwnames,&_argo0,&_argo1))
3780 return NULL;
3781 if (_argo0) {
3782 if (_argo0 == Py_None) { _arg0 = NULL; }
3783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFindReplaceDialog_p")) {
3784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFindReplaceDialog_SetData. Expected _wxFindReplaceDialog_p.");
3785 return NULL;
3786 }
3787 }
3788 if (_argo1) {
3789 if (_argo1 == Py_None) { _arg1 = NULL; }
3790 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFindReplaceData_p")) {
3791 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindReplaceDialog_SetData. Expected _wxFindReplaceData_p.");
3792 return NULL;
3793 }
3794 }
3795 {
3796 wxPy_BEGIN_ALLOW_THREADS;
3797 wxFindReplaceDialog_SetData(_arg0,_arg1);
3798
3799 wxPy_END_ALLOW_THREADS;
3800 if (PyErr_Occurred()) return NULL;
3801 } Py_INCREF(Py_None);
3802 _resultobj = Py_None;
3803 return _resultobj;
3804 }
3805
3806 static PyMethodDef cmndlgscMethods[] = {
3807 { "wxFindReplaceDialog_SetData", (PyCFunction) _wrap_wxFindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS },
3808 { "wxFindReplaceDialog_GetData", (PyCFunction) _wrap_wxFindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS },
3809 { "wxFindReplaceDialog_Create", (PyCFunction) _wrap_wxFindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS },
3810 { "new_wxPreFindReplaceDialog", (PyCFunction) _wrap_new_wxPreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS },
3811 { "new_wxFindReplaceDialog", (PyCFunction) _wrap_new_wxFindReplaceDialog, METH_VARARGS | METH_KEYWORDS },
3812 { "wxFindReplaceData_SetReplaceString", (PyCFunction) _wrap_wxFindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS },
3813 { "wxFindReplaceData_SetFindString", (PyCFunction) _wrap_wxFindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS },
3814 { "wxFindReplaceData_SetFlags", (PyCFunction) _wrap_wxFindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS },
3815 { "wxFindReplaceData_GetFlags", (PyCFunction) _wrap_wxFindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS },
3816 { "wxFindReplaceData_GetReplaceString", (PyCFunction) _wrap_wxFindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS },
3817 { "wxFindReplaceData_GetFindString", (PyCFunction) _wrap_wxFindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS },
3818 { "delete_wxFindReplaceData", (PyCFunction) _wrap_delete_wxFindReplaceData, METH_VARARGS | METH_KEYWORDS },
3819 { "new_wxFindReplaceData", (PyCFunction) _wrap_new_wxFindReplaceData, METH_VARARGS | METH_KEYWORDS },
3820 { "wxFindDialogEvent_SetReplaceString", (PyCFunction) _wrap_wxFindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS },
3821 { "wxFindDialogEvent_SetFindString", (PyCFunction) _wrap_wxFindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS },
3822 { "wxFindDialogEvent_SetFlags", (PyCFunction) _wrap_wxFindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS },
3823 { "wxFindDialogEvent_GetDialog", (PyCFunction) _wrap_wxFindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS },
3824 { "wxFindDialogEvent_GetReplaceString", (PyCFunction) _wrap_wxFindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS },
3825 { "wxFindDialogEvent_GetFindString", (PyCFunction) _wrap_wxFindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS },
3826 { "wxFindDialogEvent_GetFlags", (PyCFunction) _wrap_wxFindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS },
3827 { "new_wxFindDialogEvent", (PyCFunction) _wrap_new_wxFindDialogEvent, METH_VARARGS | METH_KEYWORDS },
3828 { "wxProgressDialog_Resume", (PyCFunction) _wrap_wxProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS },
3829 { "wxProgressDialog_Update", (PyCFunction) _wrap_wxProgressDialog_Update, METH_VARARGS | METH_KEYWORDS },
3830 { "new_wxProgressDialog", (PyCFunction) _wrap_new_wxProgressDialog, METH_VARARGS | METH_KEYWORDS },
3831 { "wxMessageDialog_ShowModal", (PyCFunction) _wrap_wxMessageDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
3832 { "new_wxMessageDialog", (PyCFunction) _wrap_new_wxMessageDialog, METH_VARARGS | METH_KEYWORDS },
3833 { "wxFontDialog_ShowModal", (PyCFunction) _wrap_wxFontDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
3834 { "wxFontDialog_GetFontData", (PyCFunction) _wrap_wxFontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS },
3835 { "new_wxFontDialog", (PyCFunction) _wrap_new_wxFontDialog, METH_VARARGS | METH_KEYWORDS },
3836 { "wxFontData_SetShowHelp", (PyCFunction) _wrap_wxFontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS },
3837 { "wxFontData_SetRange", (PyCFunction) _wrap_wxFontData_SetRange, METH_VARARGS | METH_KEYWORDS },
3838 { "wxFontData_SetInitialFont", (PyCFunction) _wrap_wxFontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS },
3839 { "wxFontData_SetColour", (PyCFunction) _wrap_wxFontData_SetColour, METH_VARARGS | METH_KEYWORDS },
3840 { "wxFontData_SetChosenFont", (PyCFunction) _wrap_wxFontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS },
3841 { "wxFontData_SetAllowSymbols", (PyCFunction) _wrap_wxFontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS },
3842 { "wxFontData_GetShowHelp", (PyCFunction) _wrap_wxFontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS },
3843 { "wxFontData_GetInitialFont", (PyCFunction) _wrap_wxFontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS },
3844 { "wxFontData_GetEnableEffects", (PyCFunction) _wrap_wxFontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS },
3845 { "wxFontData_GetChosenFont", (PyCFunction) _wrap_wxFontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS },
3846 { "wxFontData_GetColour", (PyCFunction) _wrap_wxFontData_GetColour, METH_VARARGS | METH_KEYWORDS },
3847 { "wxFontData_GetAllowSymbols", (PyCFunction) _wrap_wxFontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS },
3848 { "wxFontData_EnableEffects", (PyCFunction) _wrap_wxFontData_EnableEffects, METH_VARARGS | METH_KEYWORDS },
3849 { "delete_wxFontData", (PyCFunction) _wrap_delete_wxFontData, METH_VARARGS | METH_KEYWORDS },
3850 { "new_wxFontData", (PyCFunction) _wrap_new_wxFontData, METH_VARARGS | METH_KEYWORDS },
3851 { "wxTextEntryDialog_ShowModal", (PyCFunction) _wrap_wxTextEntryDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
3852 { "wxTextEntryDialog_SetValue", (PyCFunction) _wrap_wxTextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS },
3853 { "wxTextEntryDialog_GetValue", (PyCFunction) _wrap_wxTextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS },
3854 { "new_wxTextEntryDialog", (PyCFunction) _wrap_new_wxTextEntryDialog, METH_VARARGS | METH_KEYWORDS },
3855 { "wxSingleChoiceDialog_ShowModal", (PyCFunction) _wrap_wxSingleChoiceDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
3856 { "wxSingleChoiceDialog_SetSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS },
3857 { "wxSingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
3858 { "wxSingleChoiceDialog_GetSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS },
3859 { "new_wxSingleChoiceDialog", (PyCFunction) _wrap_new_wxSingleChoiceDialog, METH_VARARGS | METH_KEYWORDS },
3860 { "wxFileDialog_GetPaths", (PyCFunction) _wrap_wxFileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS },
3861 { "wxFileDialog_GetFilenames", (PyCFunction) _wrap_wxFileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS },
3862 { "wxFileDialog_ShowModal", (PyCFunction) _wrap_wxFileDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
3863 { "wxFileDialog_SetWildcard", (PyCFunction) _wrap_wxFileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS },
3864 { "wxFileDialog_SetStyle", (PyCFunction) _wrap_wxFileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS },
3865 { "wxFileDialog_SetPath", (PyCFunction) _wrap_wxFileDialog_SetPath, METH_VARARGS | METH_KEYWORDS },
3866 { "wxFileDialog_SetMessage", (PyCFunction) _wrap_wxFileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS },
3867 { "wxFileDialog_SetFilterIndex", (PyCFunction) _wrap_wxFileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
3868 { "wxFileDialog_SetFilename", (PyCFunction) _wrap_wxFileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS },
3869 { "wxFileDialog_SetDirectory", (PyCFunction) _wrap_wxFileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS },
3870 { "wxFileDialog_GetWildcard", (PyCFunction) _wrap_wxFileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS },
3871 { "wxFileDialog_GetStyle", (PyCFunction) _wrap_wxFileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS },
3872 { "wxFileDialog_GetPath", (PyCFunction) _wrap_wxFileDialog_GetPath, METH_VARARGS | METH_KEYWORDS },
3873 { "wxFileDialog_GetMessage", (PyCFunction) _wrap_wxFileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS },
3874 { "wxFileDialog_GetFilterIndex", (PyCFunction) _wrap_wxFileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
3875 { "wxFileDialog_GetFilename", (PyCFunction) _wrap_wxFileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS },
3876 { "wxFileDialog_GetDirectory", (PyCFunction) _wrap_wxFileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS },
3877 { "new_wxFileDialog", (PyCFunction) _wrap_new_wxFileDialog, METH_VARARGS | METH_KEYWORDS },
3878 { "wxDirDialog_ShowModal", (PyCFunction) _wrap_wxDirDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
3879 { "wxDirDialog_SetPath", (PyCFunction) _wrap_wxDirDialog_SetPath, METH_VARARGS | METH_KEYWORDS },
3880 { "wxDirDialog_SetMessage", (PyCFunction) _wrap_wxDirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS },
3881 { "wxDirDialog_GetStyle", (PyCFunction) _wrap_wxDirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS },
3882 { "wxDirDialog_GetMessage", (PyCFunction) _wrap_wxDirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS },
3883 { "wxDirDialog_GetPath", (PyCFunction) _wrap_wxDirDialog_GetPath, METH_VARARGS | METH_KEYWORDS },
3884 { "new_wxDirDialog", (PyCFunction) _wrap_new_wxDirDialog, METH_VARARGS | METH_KEYWORDS },
3885 { "wxColourDialog_ShowModal", (PyCFunction) _wrap_wxColourDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
3886 { "wxColourDialog_GetColourData", (PyCFunction) _wrap_wxColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS },
3887 { "new_wxColourDialog", (PyCFunction) _wrap_new_wxColourDialog, METH_VARARGS | METH_KEYWORDS },
3888 { "wxColourData_SetCustomColour", (PyCFunction) _wrap_wxColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS },
3889 { "wxColourData_SetColour", (PyCFunction) _wrap_wxColourData_SetColour, METH_VARARGS | METH_KEYWORDS },
3890 { "wxColourData_SetChooseFull", (PyCFunction) _wrap_wxColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS },
3891 { "wxColourData_GetCustomColour", (PyCFunction) _wrap_wxColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS },
3892 { "wxColourData_GetColour", (PyCFunction) _wrap_wxColourData_GetColour, METH_VARARGS | METH_KEYWORDS },
3893 { "wxColourData_GetChooseFull", (PyCFunction) _wrap_wxColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS },
3894 { "delete_wxColourData", (PyCFunction) _wrap_delete_wxColourData, METH_VARARGS | METH_KEYWORDS },
3895 { "new_wxColourData", (PyCFunction) _wrap_new_wxColourData, METH_VARARGS | METH_KEYWORDS },
3896 { NULL, NULL }
3897 };
3898 #ifdef __cplusplus
3899 }
3900 #endif
3901 /*
3902 * This table is used by the pointer type-checker
3903 */
3904 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
3905 { "_wxEvent","_wxFindDialogEvent",SwigwxFindDialogEventTowxEvent},
3906 { "_signed_long","_long",0},
3907 { "_wxPrintQuality","_wxCoord",0},
3908 { "_wxPrintQuality","_int",0},
3909 { "_wxPrintQuality","_signed_int",0},
3910 { "_wxPrintQuality","_unsigned_int",0},
3911 { "_wxPrintQuality","_wxWindowID",0},
3912 { "_wxPrintQuality","_uint",0},
3913 { "_wxPrintQuality","_EBool",0},
3914 { "_wxPrintQuality","_size_t",0},
3915 { "_wxPrintQuality","_time_t",0},
3916 { "_byte","_unsigned_char",0},
3917 { "_long","_unsigned_long",0},
3918 { "_long","_signed_long",0},
3919 { "_size_t","_wxCoord",0},
3920 { "_size_t","_wxPrintQuality",0},
3921 { "_size_t","_time_t",0},
3922 { "_size_t","_unsigned_int",0},
3923 { "_size_t","_int",0},
3924 { "_size_t","_wxWindowID",0},
3925 { "_size_t","_uint",0},
3926 { "_wxTopLevelWindow","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxTopLevelWindow},
3927 { "_wxTopLevelWindow","_wxProgressDialog",SwigwxProgressDialogTowxTopLevelWindow},
3928 { "_wxTopLevelWindow","_wxMessageDialog",SwigwxMessageDialogTowxTopLevelWindow},
3929 { "_wxTopLevelWindow","_wxFontDialog",SwigwxFontDialogTowxTopLevelWindow},
3930 { "_wxTopLevelWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxTopLevelWindow},
3931 { "_wxTopLevelWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxTopLevelWindow},
3932 { "_wxTopLevelWindow","_wxFileDialog",SwigwxFileDialogTowxTopLevelWindow},
3933 { "_wxTopLevelWindow","_wxDirDialog",SwigwxDirDialogTowxTopLevelWindow},
3934 { "_wxTopLevelWindow","_wxColourDialog",SwigwxColourDialogTowxTopLevelWindow},
3935 { "_uint","_wxCoord",0},
3936 { "_uint","_wxPrintQuality",0},
3937 { "_uint","_time_t",0},
3938 { "_uint","_size_t",0},
3939 { "_uint","_unsigned_int",0},
3940 { "_uint","_int",0},
3941 { "_uint","_wxWindowID",0},
3942 { "_wxChar","_char",0},
3943 { "_wxCommandEvent","_wxFindDialogEvent",SwigwxFindDialogEventTowxCommandEvent},
3944 { "_char","_wxChar",0},
3945 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3946 { "_EBool","_wxCoord",0},
3947 { "_EBool","_wxPrintQuality",0},
3948 { "_EBool","_signed_int",0},
3949 { "_EBool","_int",0},
3950 { "_EBool","_wxWindowID",0},
3951 { "_unsigned_long","_long",0},
3952 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3953 { "_signed_int","_wxCoord",0},
3954 { "_signed_int","_wxPrintQuality",0},
3955 { "_signed_int","_EBool",0},
3956 { "_signed_int","_wxWindowID",0},
3957 { "_signed_int","_int",0},
3958 { "_WXTYPE","_short",0},
3959 { "_WXTYPE","_signed_short",0},
3960 { "_WXTYPE","_unsigned_short",0},
3961 { "_unsigned_short","_WXTYPE",0},
3962 { "_unsigned_short","_short",0},
3963 { "_wxObject","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxObject},
3964 { "_wxObject","_wxFindReplaceData",SwigwxFindReplaceDataTowxObject},
3965 { "_wxObject","_wxFindDialogEvent",SwigwxFindDialogEventTowxObject},
3966 { "_wxObject","_wxProgressDialog",SwigwxProgressDialogTowxObject},
3967 { "_wxObject","_wxMessageDialog",SwigwxMessageDialogTowxObject},
3968 { "_wxObject","_wxFontDialog",SwigwxFontDialogTowxObject},
3969 { "_wxObject","_wxFontData",SwigwxFontDataTowxObject},
3970 { "_wxObject","_wxTextEntryDialog",SwigwxTextEntryDialogTowxObject},
3971 { "_wxObject","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxObject},
3972 { "_wxObject","_wxFileDialog",SwigwxFileDialogTowxObject},
3973 { "_wxObject","_wxDirDialog",SwigwxDirDialogTowxObject},
3974 { "_wxObject","_wxColourDialog",SwigwxColourDialogTowxObject},
3975 { "_wxObject","_wxColourData",SwigwxColourDataTowxObject},
3976 { "_signed_short","_WXTYPE",0},
3977 { "_signed_short","_short",0},
3978 { "_unsigned_char","_byte",0},
3979 { "_unsigned_int","_wxCoord",0},
3980 { "_unsigned_int","_wxPrintQuality",0},
3981 { "_unsigned_int","_time_t",0},
3982 { "_unsigned_int","_size_t",0},
3983 { "_unsigned_int","_uint",0},
3984 { "_unsigned_int","_wxWindowID",0},
3985 { "_unsigned_int","_int",0},
3986 { "_wxDialog","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxDialog},
3987 { "_wxDialog","_wxMessageDialog",SwigwxMessageDialogTowxDialog},
3988 { "_wxDialog","_wxFontDialog",SwigwxFontDialogTowxDialog},
3989 { "_wxDialog","_wxTextEntryDialog",SwigwxTextEntryDialogTowxDialog},
3990 { "_wxDialog","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxDialog},
3991 { "_wxDialog","_wxFileDialog",SwigwxFileDialogTowxDialog},
3992 { "_wxDialog","_wxDirDialog",SwigwxDirDialogTowxDialog},
3993 { "_wxDialog","_wxColourDialog",SwigwxColourDialogTowxDialog},
3994 { "_short","_WXTYPE",0},
3995 { "_short","_unsigned_short",0},
3996 { "_short","_signed_short",0},
3997 { "_wxFrame","_wxProgressDialog",SwigwxProgressDialogTowxFrame},
3998 { "_wxWindowID","_wxCoord",0},
3999 { "_wxWindowID","_wxPrintQuality",0},
4000 { "_wxWindowID","_time_t",0},
4001 { "_wxWindowID","_size_t",0},
4002 { "_wxWindowID","_EBool",0},
4003 { "_wxWindowID","_uint",0},
4004 { "_wxWindowID","_int",0},
4005 { "_wxWindowID","_signed_int",0},
4006 { "_wxWindowID","_unsigned_int",0},
4007 { "_int","_wxCoord",0},
4008 { "_int","_wxPrintQuality",0},
4009 { "_int","_time_t",0},
4010 { "_int","_size_t",0},
4011 { "_int","_EBool",0},
4012 { "_int","_uint",0},
4013 { "_int","_wxWindowID",0},
4014 { "_int","_unsigned_int",0},
4015 { "_int","_signed_int",0},
4016 { "_time_t","_wxCoord",0},
4017 { "_time_t","_wxPrintQuality",0},
4018 { "_time_t","_unsigned_int",0},
4019 { "_time_t","_int",0},
4020 { "_time_t","_wxWindowID",0},
4021 { "_time_t","_uint",0},
4022 { "_time_t","_size_t",0},
4023 { "_wxCoord","_int",0},
4024 { "_wxCoord","_signed_int",0},
4025 { "_wxCoord","_unsigned_int",0},
4026 { "_wxCoord","_wxWindowID",0},
4027 { "_wxCoord","_uint",0},
4028 { "_wxCoord","_EBool",0},
4029 { "_wxCoord","_size_t",0},
4030 { "_wxCoord","_time_t",0},
4031 { "_wxCoord","_wxPrintQuality",0},
4032 { "_wxEvtHandler","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxEvtHandler},
4033 { "_wxEvtHandler","_wxProgressDialog",SwigwxProgressDialogTowxEvtHandler},
4034 { "_wxEvtHandler","_wxMessageDialog",SwigwxMessageDialogTowxEvtHandler},
4035 { "_wxEvtHandler","_wxFontDialog",SwigwxFontDialogTowxEvtHandler},
4036 { "_wxEvtHandler","_wxTextEntryDialog",SwigwxTextEntryDialogTowxEvtHandler},
4037 { "_wxEvtHandler","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxEvtHandler},
4038 { "_wxEvtHandler","_wxFileDialog",SwigwxFileDialogTowxEvtHandler},
4039 { "_wxEvtHandler","_wxDirDialog",SwigwxDirDialogTowxEvtHandler},
4040 { "_wxEvtHandler","_wxColourDialog",SwigwxColourDialogTowxEvtHandler},
4041 { "_wxWindow","_wxFindReplaceDialog",SwigwxFindReplaceDialogTowxWindow},
4042 { "_wxWindow","_wxProgressDialog",SwigwxProgressDialogTowxWindow},
4043 { "_wxWindow","_wxMessageDialog",SwigwxMessageDialogTowxWindow},
4044 { "_wxWindow","_wxFontDialog",SwigwxFontDialogTowxWindow},
4045 { "_wxWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxWindow},
4046 { "_wxWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxWindow},
4047 { "_wxWindow","_wxFileDialog",SwigwxFileDialogTowxWindow},
4048 { "_wxWindow","_wxDirDialog",SwigwxDirDialogTowxWindow},
4049 { "_wxWindow","_wxColourDialog",SwigwxColourDialogTowxWindow},
4050 {0,0,0}};
4051
4052 static PyObject *SWIG_globals;
4053 #ifdef __cplusplus
4054 extern "C"
4055 #endif
4056 SWIGEXPORT(void) initcmndlgsc() {
4057 PyObject *m, *d;
4058 SWIG_globals = SWIG_newvarlink();
4059 m = Py_InitModule("cmndlgsc", cmndlgscMethods);
4060 d = PyModule_GetDict(m);
4061 PyDict_SetItemString(d,"wxFR_DOWN", PyInt_FromLong((long) wxFR_DOWN));
4062 PyDict_SetItemString(d,"wxFR_WHOLEWORD", PyInt_FromLong((long) wxFR_WHOLEWORD));
4063 PyDict_SetItemString(d,"wxFR_MATCHCASE", PyInt_FromLong((long) wxFR_MATCHCASE));
4064 PyDict_SetItemString(d,"wxFR_REPLACEDIALOG", PyInt_FromLong((long) wxFR_REPLACEDIALOG));
4065 PyDict_SetItemString(d,"wxFR_NOUPDOWN", PyInt_FromLong((long) wxFR_NOUPDOWN));
4066 PyDict_SetItemString(d,"wxFR_NOMATCHCASE", PyInt_FromLong((long) wxFR_NOMATCHCASE));
4067 PyDict_SetItemString(d,"wxFR_NOWHOLEWORD", PyInt_FromLong((long) wxFR_NOWHOLEWORD));
4068 PyDict_SetItemString(d,"wxEVT_COMMAND_FIND", PyInt_FromLong((long) wxEVT_COMMAND_FIND));
4069 PyDict_SetItemString(d,"wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong((long) wxEVT_COMMAND_FIND_NEXT));
4070 PyDict_SetItemString(d,"wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong((long) wxEVT_COMMAND_FIND_REPLACE));
4071 PyDict_SetItemString(d,"wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong((long) wxEVT_COMMAND_FIND_REPLACE_ALL));
4072 PyDict_SetItemString(d,"wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong((long) wxEVT_COMMAND_FIND_CLOSE));
4073 {
4074 int i;
4075 for (i = 0; _swig_mapping[i].n1; i++)
4076 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
4077 }
4078 }