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