]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/utils.cpp
New build system for wxPython. (Still needs some polish but is stable
[wxWidgets.git] / utils / wxPython / src / msw / utils.cpp
1 /*
2 * FILE : msw/utils.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 6)
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 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initutilsc
53
54 #define SWIG_name "utilsc"
55
56 #include "helpers.h"
57 #include <wx/config.h>
58
59 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
60 PyObject* o2;
61 PyObject* o3;
62 if (!target) {
63 target = o;
64 } else if (target == Py_None) {
65 Py_DECREF(Py_None);
66 target = o;
67 } else {
68 if (!PyList_Check(target)) {
69 o2 = target;
70 target = PyList_New(0);
71 PyList_Append(target, o2);
72 Py_XDECREF(o2);
73 }
74 PyList_Append(target,o);
75 Py_XDECREF(o);
76 }
77 return target;
78 }
79
80 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
81 PyObject* o2;
82 PyObject* o3;
83
84 if (!target) {
85 target = o;
86 } else if (target == Py_None) {
87 Py_DECREF(Py_None);
88 target = o;
89 } else {
90 if (!PyTuple_Check(target)) {
91 o2 = target;
92 target = PyTuple_New(1);
93 PyTuple_SetItem(target, 0, o2);
94 }
95 o3 = PyTuple_New(1);
96 PyTuple_SetItem(o3, 0, o);
97
98 o2 = target;
99 target = PySequence_Concat(o2, o3);
100 Py_DECREF(o2);
101 Py_DECREF(o3);
102 }
103 return target;
104 }
105
106
107 extern byte* byte_LIST_helper(PyObject* source);
108 extern int* int_LIST_helper(PyObject* source);
109 extern long* long_LIST_helper(PyObject* source);
110 extern char** string_LIST_helper(PyObject* source);
111 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
112 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
113 extern wxString* wxString_LIST_helper(PyObject* source);
114 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
115
116
117 static char* wxStringErrorMsg = "string type is required for parameter";
118
119 #ifdef SEPARATE
120 wxString wxPyEmptyStr("");
121 #endif
122
123 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
124 PyObject* ret = PyTuple_New(3);
125 if (ret) {
126 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
127 PyTuple_SET_ITEM(ret, 1, PyString_FromString(str));
128 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
129 }
130 return ret;
131 }
132 #ifdef __cplusplus
133 extern "C" {
134 #endif
135 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
136 static PyObject *_wrap_new_wxConfig(PyObject *self, PyObject *args) {
137 PyObject * _resultobj;
138 wxConfig * _result;
139 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
140 wxString * _arg1 = (wxString *) &wxPyEmptyStr;
141 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
142 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
143 long _arg4 = (long ) 0;
144 PyObject * _obj0 = 0;
145 PyObject * _obj1 = 0;
146 PyObject * _obj2 = 0;
147 PyObject * _obj3 = 0;
148 char _ptemp[128];
149
150 self = self;
151 if(!PyArg_ParseTuple(args,"|OOOOl:new_wxConfig",&_obj0,&_obj1,&_obj2,&_obj3,&_arg4))
152 return NULL;
153 if (_obj0)
154 {
155 if (!PyString_Check(_obj0)) {
156 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
157 return NULL;
158 }
159 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
160 }
161 if (_obj1)
162 {
163 if (!PyString_Check(_obj1)) {
164 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
165 return NULL;
166 }
167 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
168 }
169 if (_obj2)
170 {
171 if (!PyString_Check(_obj2)) {
172 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
173 return NULL;
174 }
175 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
176 }
177 if (_obj3)
178 {
179 if (!PyString_Check(_obj3)) {
180 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
181 return NULL;
182 }
183 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
184 }
185 {
186 wxPy_BEGIN_ALLOW_THREADS;
187 _result = (wxConfig *)new_wxConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4);
188
189 wxPy_END_ALLOW_THREADS;
190 } if (_result) {
191 SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfig_p");
192 _resultobj = Py_BuildValue("s",_ptemp);
193 } else {
194 Py_INCREF(Py_None);
195 _resultobj = Py_None;
196 }
197 {
198 if (_obj0)
199 delete _arg0;
200 }
201 {
202 if (_obj1)
203 delete _arg1;
204 }
205 {
206 if (_obj2)
207 delete _arg2;
208 }
209 {
210 if (_obj3)
211 delete _arg3;
212 }
213 return _resultobj;
214 }
215
216 #define delete_wxConfig(_swigobj) (delete _swigobj)
217 static PyObject *_wrap_delete_wxConfig(PyObject *self, PyObject *args) {
218 PyObject * _resultobj;
219 wxConfig * _arg0;
220 PyObject * _argo0 = 0;
221
222 self = self;
223 if(!PyArg_ParseTuple(args,"O:delete_wxConfig",&_argo0))
224 return NULL;
225 if (_argo0) {
226 if (_argo0 == Py_None) { _arg0 = NULL; }
227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
229 return NULL;
230 }
231 }
232 {
233 wxPy_BEGIN_ALLOW_THREADS;
234 delete_wxConfig(_arg0);
235
236 wxPy_END_ALLOW_THREADS;
237 } Py_INCREF(Py_None);
238 _resultobj = Py_None;
239 return _resultobj;
240 }
241
242 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
243 static PyObject *_wrap_wxConfig_DontCreateOnDemand(PyObject *self, PyObject *args) {
244 PyObject * _resultobj;
245 wxConfig * _arg0;
246 PyObject * _argo0 = 0;
247
248 self = self;
249 if(!PyArg_ParseTuple(args,"O:wxConfig_DontCreateOnDemand",&_argo0))
250 return NULL;
251 if (_argo0) {
252 if (_argo0 == Py_None) { _arg0 = NULL; }
253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
255 return NULL;
256 }
257 }
258 {
259 wxPy_BEGIN_ALLOW_THREADS;
260 wxConfig_DontCreateOnDemand(_arg0);
261
262 wxPy_END_ALLOW_THREADS;
263 } Py_INCREF(Py_None);
264 _resultobj = Py_None;
265 return _resultobj;
266 }
267
268 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
269 static PyObject *_wrap_wxConfig_DeleteAll(PyObject *self, PyObject *args) {
270 PyObject * _resultobj;
271 bool _result;
272 wxConfig * _arg0;
273 PyObject * _argo0 = 0;
274
275 self = self;
276 if(!PyArg_ParseTuple(args,"O:wxConfig_DeleteAll",&_argo0))
277 return NULL;
278 if (_argo0) {
279 if (_argo0 == Py_None) { _arg0 = NULL; }
280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
282 return NULL;
283 }
284 }
285 {
286 wxPy_BEGIN_ALLOW_THREADS;
287 _result = (bool )wxConfig_DeleteAll(_arg0);
288
289 wxPy_END_ALLOW_THREADS;
290 } _resultobj = Py_BuildValue("i",_result);
291 return _resultobj;
292 }
293
294 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
295 static PyObject *_wrap_wxConfig_DeleteEntry(PyObject *self, PyObject *args) {
296 PyObject * _resultobj;
297 bool _result;
298 wxConfig * _arg0;
299 wxString * _arg1;
300 bool _arg2 = (bool ) TRUE;
301 PyObject * _argo0 = 0;
302 PyObject * _obj1 = 0;
303 int tempbool2 = (int) TRUE;
304
305 self = self;
306 if(!PyArg_ParseTuple(args,"OO|i:wxConfig_DeleteEntry",&_argo0,&_obj1,&tempbool2))
307 return NULL;
308 if (_argo0) {
309 if (_argo0 == Py_None) { _arg0 = NULL; }
310 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
311 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
312 return NULL;
313 }
314 }
315 {
316 if (!PyString_Check(_obj1)) {
317 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
318 return NULL;
319 }
320 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
321 }
322 _arg2 = (bool ) tempbool2;
323 {
324 wxPy_BEGIN_ALLOW_THREADS;
325 _result = (bool )wxConfig_DeleteEntry(_arg0,*_arg1,_arg2);
326
327 wxPy_END_ALLOW_THREADS;
328 } _resultobj = Py_BuildValue("i",_result);
329 {
330 if (_obj1)
331 delete _arg1;
332 }
333 return _resultobj;
334 }
335
336 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
337 static PyObject *_wrap_wxConfig_DeleteGroup(PyObject *self, PyObject *args) {
338 PyObject * _resultobj;
339 bool _result;
340 wxConfig * _arg0;
341 wxString * _arg1;
342 PyObject * _argo0 = 0;
343 PyObject * _obj1 = 0;
344
345 self = self;
346 if(!PyArg_ParseTuple(args,"OO:wxConfig_DeleteGroup",&_argo0,&_obj1))
347 return NULL;
348 if (_argo0) {
349 if (_argo0 == Py_None) { _arg0 = NULL; }
350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
352 return NULL;
353 }
354 }
355 {
356 if (!PyString_Check(_obj1)) {
357 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
358 return NULL;
359 }
360 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
361 }
362 {
363 wxPy_BEGIN_ALLOW_THREADS;
364 _result = (bool )wxConfig_DeleteGroup(_arg0,*_arg1);
365
366 wxPy_END_ALLOW_THREADS;
367 } _resultobj = Py_BuildValue("i",_result);
368 {
369 if (_obj1)
370 delete _arg1;
371 }
372 return _resultobj;
373 }
374
375 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
376 static PyObject *_wrap_wxConfig_Exists(PyObject *self, PyObject *args) {
377 PyObject * _resultobj;
378 bool _result;
379 wxConfig * _arg0;
380 wxString * _arg1;
381 PyObject * _argo0 = 0;
382 PyObject * _obj1 = 0;
383
384 self = self;
385 if(!PyArg_ParseTuple(args,"OO:wxConfig_Exists",&_argo0,&_obj1))
386 return NULL;
387 if (_argo0) {
388 if (_argo0 == Py_None) { _arg0 = NULL; }
389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
391 return NULL;
392 }
393 }
394 {
395 if (!PyString_Check(_obj1)) {
396 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
397 return NULL;
398 }
399 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
400 }
401 {
402 wxPy_BEGIN_ALLOW_THREADS;
403 _result = (bool )wxConfig_Exists(_arg0,*_arg1);
404
405 wxPy_END_ALLOW_THREADS;
406 } _resultobj = Py_BuildValue("i",_result);
407 {
408 if (_obj1)
409 delete _arg1;
410 }
411 return _resultobj;
412 }
413
414 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
415 static PyObject *_wrap_wxConfig_Flush(PyObject *self, PyObject *args) {
416 PyObject * _resultobj;
417 bool _result;
418 wxConfig * _arg0;
419 bool _arg1 = (bool ) FALSE;
420 PyObject * _argo0 = 0;
421 int tempbool1 = (int) FALSE;
422
423 self = self;
424 if(!PyArg_ParseTuple(args,"O|i:wxConfig_Flush",&_argo0,&tempbool1))
425 return NULL;
426 if (_argo0) {
427 if (_argo0 == Py_None) { _arg0 = NULL; }
428 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
429 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
430 return NULL;
431 }
432 }
433 _arg1 = (bool ) tempbool1;
434 {
435 wxPy_BEGIN_ALLOW_THREADS;
436 _result = (bool )wxConfig_Flush(_arg0,_arg1);
437
438 wxPy_END_ALLOW_THREADS;
439 } _resultobj = Py_BuildValue("i",_result);
440 return _resultobj;
441 }
442
443 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
444 static PyObject *_wrap_wxConfig_GetAppName(PyObject *self, PyObject *args) {
445 PyObject * _resultobj;
446 wxString * _result;
447 wxConfig * _arg0;
448 PyObject * _argo0 = 0;
449
450 self = self;
451 if(!PyArg_ParseTuple(args,"O:wxConfig_GetAppName",&_argo0))
452 return NULL;
453 if (_argo0) {
454 if (_argo0 == Py_None) { _arg0 = NULL; }
455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
457 return NULL;
458 }
459 }
460 {
461 wxPy_BEGIN_ALLOW_THREADS;
462 _result = new wxString (wxConfig_GetAppName(_arg0));
463
464 wxPy_END_ALLOW_THREADS;
465 }{
466 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
467 }
468 {
469 delete _result;
470 }
471 return _resultobj;
472 }
473
474 static PyObject * wxConfig_GetFirstGroup(wxConfig *self) {
475 bool cont;
476 long index = 0;
477 wxString value;
478
479 cont = self->GetFirstGroup(value, index);
480 return __EnumerationHelper(cont, value, index);
481 }
482 static PyObject *_wrap_wxConfig_GetFirstGroup(PyObject *self, PyObject *args) {
483 PyObject * _resultobj;
484 PyObject * _result;
485 wxConfig * _arg0;
486 PyObject * _argo0 = 0;
487
488 self = self;
489 if(!PyArg_ParseTuple(args,"O:wxConfig_GetFirstGroup",&_argo0))
490 return NULL;
491 if (_argo0) {
492 if (_argo0 == Py_None) { _arg0 = NULL; }
493 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
494 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
495 return NULL;
496 }
497 }
498 {
499 wxPy_BEGIN_ALLOW_THREADS;
500 _result = (PyObject *)wxConfig_GetFirstGroup(_arg0);
501
502 wxPy_END_ALLOW_THREADS;
503 }{
504 _resultobj = _result;
505 }
506 return _resultobj;
507 }
508
509 static PyObject * wxConfig_GetFirstEntry(wxConfig *self) {
510 bool cont;
511 long index = 0;
512 wxString value;
513
514 cont = self->GetFirstEntry(value, index);
515 return __EnumerationHelper(cont, value, index);
516 }
517 static PyObject *_wrap_wxConfig_GetFirstEntry(PyObject *self, PyObject *args) {
518 PyObject * _resultobj;
519 PyObject * _result;
520 wxConfig * _arg0;
521 PyObject * _argo0 = 0;
522
523 self = self;
524 if(!PyArg_ParseTuple(args,"O:wxConfig_GetFirstEntry",&_argo0))
525 return NULL;
526 if (_argo0) {
527 if (_argo0 == Py_None) { _arg0 = NULL; }
528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
530 return NULL;
531 }
532 }
533 {
534 wxPy_BEGIN_ALLOW_THREADS;
535 _result = (PyObject *)wxConfig_GetFirstEntry(_arg0);
536
537 wxPy_END_ALLOW_THREADS;
538 }{
539 _resultobj = _result;
540 }
541 return _resultobj;
542 }
543
544 static PyObject * wxConfig_GetNextGroup(wxConfig *self,long index) {
545 bool cont;
546 wxString value;
547
548 cont = self->GetNextGroup(value, index);
549 return __EnumerationHelper(cont, value, index);
550 }
551 static PyObject *_wrap_wxConfig_GetNextGroup(PyObject *self, PyObject *args) {
552 PyObject * _resultobj;
553 PyObject * _result;
554 wxConfig * _arg0;
555 long _arg1;
556 PyObject * _argo0 = 0;
557
558 self = self;
559 if(!PyArg_ParseTuple(args,"Ol:wxConfig_GetNextGroup",&_argo0,&_arg1))
560 return NULL;
561 if (_argo0) {
562 if (_argo0 == Py_None) { _arg0 = NULL; }
563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
565 return NULL;
566 }
567 }
568 {
569 wxPy_BEGIN_ALLOW_THREADS;
570 _result = (PyObject *)wxConfig_GetNextGroup(_arg0,_arg1);
571
572 wxPy_END_ALLOW_THREADS;
573 }{
574 _resultobj = _result;
575 }
576 return _resultobj;
577 }
578
579 static PyObject * wxConfig_GetNextEntry(wxConfig *self,long index) {
580 bool cont;
581 wxString value;
582
583 cont = self->GetNextEntry(value, index);
584 return __EnumerationHelper(cont, value, index);
585 }
586 static PyObject *_wrap_wxConfig_GetNextEntry(PyObject *self, PyObject *args) {
587 PyObject * _resultobj;
588 PyObject * _result;
589 wxConfig * _arg0;
590 long _arg1;
591 PyObject * _argo0 = 0;
592
593 self = self;
594 if(!PyArg_ParseTuple(args,"Ol:wxConfig_GetNextEntry",&_argo0,&_arg1))
595 return NULL;
596 if (_argo0) {
597 if (_argo0 == Py_None) { _arg0 = NULL; }
598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
600 return NULL;
601 }
602 }
603 {
604 wxPy_BEGIN_ALLOW_THREADS;
605 _result = (PyObject *)wxConfig_GetNextEntry(_arg0,_arg1);
606
607 wxPy_END_ALLOW_THREADS;
608 }{
609 _resultobj = _result;
610 }
611 return _resultobj;
612 }
613
614 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
615 static PyObject *_wrap_wxConfig_GetNumberOfEntries(PyObject *self, PyObject *args) {
616 PyObject * _resultobj;
617 int _result;
618 wxConfig * _arg0;
619 bool _arg1 = (bool ) FALSE;
620 PyObject * _argo0 = 0;
621 int tempbool1 = (int) FALSE;
622
623 self = self;
624 if(!PyArg_ParseTuple(args,"O|i:wxConfig_GetNumberOfEntries",&_argo0,&tempbool1))
625 return NULL;
626 if (_argo0) {
627 if (_argo0 == Py_None) { _arg0 = NULL; }
628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
630 return NULL;
631 }
632 }
633 _arg1 = (bool ) tempbool1;
634 {
635 wxPy_BEGIN_ALLOW_THREADS;
636 _result = (int )wxConfig_GetNumberOfEntries(_arg0,_arg1);
637
638 wxPy_END_ALLOW_THREADS;
639 } _resultobj = Py_BuildValue("i",_result);
640 return _resultobj;
641 }
642
643 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
644 static PyObject *_wrap_wxConfig_GetNumberOfGroups(PyObject *self, PyObject *args) {
645 PyObject * _resultobj;
646 int _result;
647 wxConfig * _arg0;
648 bool _arg1 = (bool ) FALSE;
649 PyObject * _argo0 = 0;
650 int tempbool1 = (int) FALSE;
651
652 self = self;
653 if(!PyArg_ParseTuple(args,"O|i:wxConfig_GetNumberOfGroups",&_argo0,&tempbool1))
654 return NULL;
655 if (_argo0) {
656 if (_argo0 == Py_None) { _arg0 = NULL; }
657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
659 return NULL;
660 }
661 }
662 _arg1 = (bool ) tempbool1;
663 {
664 wxPy_BEGIN_ALLOW_THREADS;
665 _result = (int )wxConfig_GetNumberOfGroups(_arg0,_arg1);
666
667 wxPy_END_ALLOW_THREADS;
668 } _resultobj = Py_BuildValue("i",_result);
669 return _resultobj;
670 }
671
672 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
673 static PyObject *_wrap_wxConfig_GetPath(PyObject *self, PyObject *args) {
674 PyObject * _resultobj;
675 wxString * _result;
676 wxConfig * _arg0;
677 PyObject * _argo0 = 0;
678
679 self = self;
680 if(!PyArg_ParseTuple(args,"O:wxConfig_GetPath",&_argo0))
681 return NULL;
682 if (_argo0) {
683 if (_argo0 == Py_None) { _arg0 = NULL; }
684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
686 return NULL;
687 }
688 }
689 {
690 wxPy_BEGIN_ALLOW_THREADS;
691 _result = new wxString (wxConfig_GetPath(_arg0));
692
693 wxPy_END_ALLOW_THREADS;
694 }{
695 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
696 }
697 {
698 delete _result;
699 }
700 return _resultobj;
701 }
702
703 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
704 static PyObject *_wrap_wxConfig_GetVendorName(PyObject *self, PyObject *args) {
705 PyObject * _resultobj;
706 wxString * _result;
707 wxConfig * _arg0;
708 PyObject * _argo0 = 0;
709
710 self = self;
711 if(!PyArg_ParseTuple(args,"O:wxConfig_GetVendorName",&_argo0))
712 return NULL;
713 if (_argo0) {
714 if (_argo0 == Py_None) { _arg0 = NULL; }
715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
717 return NULL;
718 }
719 }
720 {
721 wxPy_BEGIN_ALLOW_THREADS;
722 _result = new wxString (wxConfig_GetVendorName(_arg0));
723
724 wxPy_END_ALLOW_THREADS;
725 }{
726 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
727 }
728 {
729 delete _result;
730 }
731 return _resultobj;
732 }
733
734 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
735 static PyObject *_wrap_wxConfig_HasEntry(PyObject *self, PyObject *args) {
736 PyObject * _resultobj;
737 bool _result;
738 wxConfig * _arg0;
739 wxString * _arg1;
740 PyObject * _argo0 = 0;
741 PyObject * _obj1 = 0;
742
743 self = self;
744 if(!PyArg_ParseTuple(args,"OO:wxConfig_HasEntry",&_argo0,&_obj1))
745 return NULL;
746 if (_argo0) {
747 if (_argo0 == Py_None) { _arg0 = NULL; }
748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
750 return NULL;
751 }
752 }
753 {
754 if (!PyString_Check(_obj1)) {
755 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
756 return NULL;
757 }
758 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
759 }
760 {
761 wxPy_BEGIN_ALLOW_THREADS;
762 _result = (bool )wxConfig_HasEntry(_arg0,*_arg1);
763
764 wxPy_END_ALLOW_THREADS;
765 } _resultobj = Py_BuildValue("i",_result);
766 {
767 if (_obj1)
768 delete _arg1;
769 }
770 return _resultobj;
771 }
772
773 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
774 static PyObject *_wrap_wxConfig_HasGroup(PyObject *self, PyObject *args) {
775 PyObject * _resultobj;
776 bool _result;
777 wxConfig * _arg0;
778 wxString * _arg1;
779 PyObject * _argo0 = 0;
780 PyObject * _obj1 = 0;
781
782 self = self;
783 if(!PyArg_ParseTuple(args,"OO:wxConfig_HasGroup",&_argo0,&_obj1))
784 return NULL;
785 if (_argo0) {
786 if (_argo0 == Py_None) { _arg0 = NULL; }
787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
789 return NULL;
790 }
791 }
792 {
793 if (!PyString_Check(_obj1)) {
794 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
795 return NULL;
796 }
797 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
798 }
799 {
800 wxPy_BEGIN_ALLOW_THREADS;
801 _result = (bool )wxConfig_HasGroup(_arg0,*_arg1);
802
803 wxPy_END_ALLOW_THREADS;
804 } _resultobj = Py_BuildValue("i",_result);
805 {
806 if (_obj1)
807 delete _arg1;
808 }
809 return _resultobj;
810 }
811
812 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
813 static PyObject *_wrap_wxConfig_IsExpandingEnvVars(PyObject *self, PyObject *args) {
814 PyObject * _resultobj;
815 bool _result;
816 wxConfig * _arg0;
817 PyObject * _argo0 = 0;
818
819 self = self;
820 if(!PyArg_ParseTuple(args,"O:wxConfig_IsExpandingEnvVars",&_argo0))
821 return NULL;
822 if (_argo0) {
823 if (_argo0 == Py_None) { _arg0 = NULL; }
824 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
825 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
826 return NULL;
827 }
828 }
829 {
830 wxPy_BEGIN_ALLOW_THREADS;
831 _result = (bool )wxConfig_IsExpandingEnvVars(_arg0);
832
833 wxPy_END_ALLOW_THREADS;
834 } _resultobj = Py_BuildValue("i",_result);
835 return _resultobj;
836 }
837
838 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
839 static PyObject *_wrap_wxConfig_IsRecordingDefaults(PyObject *self, PyObject *args) {
840 PyObject * _resultobj;
841 bool _result;
842 wxConfig * _arg0;
843 PyObject * _argo0 = 0;
844
845 self = self;
846 if(!PyArg_ParseTuple(args,"O:wxConfig_IsRecordingDefaults",&_argo0))
847 return NULL;
848 if (_argo0) {
849 if (_argo0 == Py_None) { _arg0 = NULL; }
850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
852 return NULL;
853 }
854 }
855 {
856 wxPy_BEGIN_ALLOW_THREADS;
857 _result = (bool )wxConfig_IsRecordingDefaults(_arg0);
858
859 wxPy_END_ALLOW_THREADS;
860 } _resultobj = Py_BuildValue("i",_result);
861 return _resultobj;
862 }
863
864 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
865 static PyObject *_wrap_wxConfig_Read(PyObject *self, PyObject *args) {
866 PyObject * _resultobj;
867 wxString * _result;
868 wxConfig * _arg0;
869 wxString * _arg1;
870 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
871 PyObject * _argo0 = 0;
872 PyObject * _obj1 = 0;
873 PyObject * _obj2 = 0;
874
875 self = self;
876 if(!PyArg_ParseTuple(args,"OO|O:wxConfig_Read",&_argo0,&_obj1,&_obj2))
877 return NULL;
878 if (_argo0) {
879 if (_argo0 == Py_None) { _arg0 = NULL; }
880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
882 return NULL;
883 }
884 }
885 {
886 if (!PyString_Check(_obj1)) {
887 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
888 return NULL;
889 }
890 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
891 }
892 if (_obj2)
893 {
894 if (!PyString_Check(_obj2)) {
895 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
896 return NULL;
897 }
898 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
899 }
900 {
901 wxPy_BEGIN_ALLOW_THREADS;
902 _result = new wxString (wxConfig_Read(_arg0,*_arg1,*_arg2));
903
904 wxPy_END_ALLOW_THREADS;
905 }{
906 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
907 }
908 {
909 if (_obj1)
910 delete _arg1;
911 }
912 {
913 if (_obj2)
914 delete _arg2;
915 }
916 {
917 delete _result;
918 }
919 return _resultobj;
920 }
921
922 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
923 static PyObject *_wrap_wxConfig_ReadInt(PyObject *self, PyObject *args) {
924 PyObject * _resultobj;
925 long _result;
926 wxConfig * _arg0;
927 wxString * _arg1;
928 long _arg2 = (long ) 0;
929 PyObject * _argo0 = 0;
930 PyObject * _obj1 = 0;
931
932 self = self;
933 if(!PyArg_ParseTuple(args,"OO|l:wxConfig_ReadInt",&_argo0,&_obj1,&_arg2))
934 return NULL;
935 if (_argo0) {
936 if (_argo0 == Py_None) { _arg0 = NULL; }
937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
939 return NULL;
940 }
941 }
942 {
943 if (!PyString_Check(_obj1)) {
944 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
945 return NULL;
946 }
947 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
948 }
949 {
950 wxPy_BEGIN_ALLOW_THREADS;
951 _result = (long )wxConfig_ReadInt(_arg0,*_arg1,_arg2);
952
953 wxPy_END_ALLOW_THREADS;
954 } _resultobj = Py_BuildValue("l",_result);
955 {
956 if (_obj1)
957 delete _arg1;
958 }
959 return _resultobj;
960 }
961
962 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
963 static PyObject *_wrap_wxConfig_ReadFloat(PyObject *self, PyObject *args) {
964 PyObject * _resultobj;
965 double _result;
966 wxConfig * _arg0;
967 wxString * _arg1;
968 double _arg2 = (double ) 0.0;
969 PyObject * _argo0 = 0;
970 PyObject * _obj1 = 0;
971
972 self = self;
973 if(!PyArg_ParseTuple(args,"OO|d:wxConfig_ReadFloat",&_argo0,&_obj1,&_arg2))
974 return NULL;
975 if (_argo0) {
976 if (_argo0 == Py_None) { _arg0 = NULL; }
977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
979 return NULL;
980 }
981 }
982 {
983 if (!PyString_Check(_obj1)) {
984 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
985 return NULL;
986 }
987 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
988 }
989 {
990 wxPy_BEGIN_ALLOW_THREADS;
991 _result = (double )wxConfig_ReadFloat(_arg0,*_arg1,_arg2);
992
993 wxPy_END_ALLOW_THREADS;
994 } _resultobj = Py_BuildValue("d",_result);
995 {
996 if (_obj1)
997 delete _arg1;
998 }
999 return _resultobj;
1000 }
1001
1002 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
1003 static PyObject *_wrap_wxConfig_SetExpandEnvVars(PyObject *self, PyObject *args) {
1004 PyObject * _resultobj;
1005 wxConfig * _arg0;
1006 bool _arg1 = (bool ) TRUE;
1007 PyObject * _argo0 = 0;
1008 int tempbool1 = (int) TRUE;
1009
1010 self = self;
1011 if(!PyArg_ParseTuple(args,"O|i:wxConfig_SetExpandEnvVars",&_argo0,&tempbool1))
1012 return NULL;
1013 if (_argo0) {
1014 if (_argo0 == Py_None) { _arg0 = NULL; }
1015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
1017 return NULL;
1018 }
1019 }
1020 _arg1 = (bool ) tempbool1;
1021 {
1022 wxPy_BEGIN_ALLOW_THREADS;
1023 wxConfig_SetExpandEnvVars(_arg0,_arg1);
1024
1025 wxPy_END_ALLOW_THREADS;
1026 } Py_INCREF(Py_None);
1027 _resultobj = Py_None;
1028 return _resultobj;
1029 }
1030
1031 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
1032 static PyObject *_wrap_wxConfig_SetPath(PyObject *self, PyObject *args) {
1033 PyObject * _resultobj;
1034 wxConfig * _arg0;
1035 wxString * _arg1;
1036 PyObject * _argo0 = 0;
1037 PyObject * _obj1 = 0;
1038
1039 self = self;
1040 if(!PyArg_ParseTuple(args,"OO:wxConfig_SetPath",&_argo0,&_obj1))
1041 return NULL;
1042 if (_argo0) {
1043 if (_argo0 == Py_None) { _arg0 = NULL; }
1044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
1046 return NULL;
1047 }
1048 }
1049 {
1050 if (!PyString_Check(_obj1)) {
1051 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1052 return NULL;
1053 }
1054 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1055 }
1056 {
1057 wxPy_BEGIN_ALLOW_THREADS;
1058 wxConfig_SetPath(_arg0,*_arg1);
1059
1060 wxPy_END_ALLOW_THREADS;
1061 } Py_INCREF(Py_None);
1062 _resultobj = Py_None;
1063 {
1064 if (_obj1)
1065 delete _arg1;
1066 }
1067 return _resultobj;
1068 }
1069
1070 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
1071 static PyObject *_wrap_wxConfig_SetRecordDefaults(PyObject *self, PyObject *args) {
1072 PyObject * _resultobj;
1073 wxConfig * _arg0;
1074 bool _arg1 = (bool ) TRUE;
1075 PyObject * _argo0 = 0;
1076 int tempbool1 = (int) TRUE;
1077
1078 self = self;
1079 if(!PyArg_ParseTuple(args,"O|i:wxConfig_SetRecordDefaults",&_argo0,&tempbool1))
1080 return NULL;
1081 if (_argo0) {
1082 if (_argo0 == Py_None) { _arg0 = NULL; }
1083 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1084 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
1085 return NULL;
1086 }
1087 }
1088 _arg1 = (bool ) tempbool1;
1089 {
1090 wxPy_BEGIN_ALLOW_THREADS;
1091 wxConfig_SetRecordDefaults(_arg0,_arg1);
1092
1093 wxPy_END_ALLOW_THREADS;
1094 } Py_INCREF(Py_None);
1095 _resultobj = Py_None;
1096 return _resultobj;
1097 }
1098
1099 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1100 static PyObject *_wrap_wxConfig_Write(PyObject *self, PyObject *args) {
1101 PyObject * _resultobj;
1102 bool _result;
1103 wxConfig * _arg0;
1104 wxString * _arg1;
1105 wxString * _arg2;
1106 PyObject * _argo0 = 0;
1107 PyObject * _obj1 = 0;
1108 PyObject * _obj2 = 0;
1109
1110 self = self;
1111 if(!PyArg_ParseTuple(args,"OOO:wxConfig_Write",&_argo0,&_obj1,&_obj2))
1112 return NULL;
1113 if (_argo0) {
1114 if (_argo0 == Py_None) { _arg0 = NULL; }
1115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1117 return NULL;
1118 }
1119 }
1120 {
1121 if (!PyString_Check(_obj1)) {
1122 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1123 return NULL;
1124 }
1125 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1126 }
1127 {
1128 if (!PyString_Check(_obj2)) {
1129 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1130 return NULL;
1131 }
1132 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1133 }
1134 {
1135 wxPy_BEGIN_ALLOW_THREADS;
1136 _result = (bool )wxConfig_Write(_arg0,*_arg1,*_arg2);
1137
1138 wxPy_END_ALLOW_THREADS;
1139 } _resultobj = Py_BuildValue("i",_result);
1140 {
1141 if (_obj1)
1142 delete _arg1;
1143 }
1144 {
1145 if (_obj2)
1146 delete _arg2;
1147 }
1148 return _resultobj;
1149 }
1150
1151 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1152 static PyObject *_wrap_wxConfig_WriteInt(PyObject *self, PyObject *args) {
1153 PyObject * _resultobj;
1154 bool _result;
1155 wxConfig * _arg0;
1156 wxString * _arg1;
1157 long _arg2;
1158 PyObject * _argo0 = 0;
1159 PyObject * _obj1 = 0;
1160
1161 self = self;
1162 if(!PyArg_ParseTuple(args,"OOl:wxConfig_WriteInt",&_argo0,&_obj1,&_arg2))
1163 return NULL;
1164 if (_argo0) {
1165 if (_argo0 == Py_None) { _arg0 = NULL; }
1166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1168 return NULL;
1169 }
1170 }
1171 {
1172 if (!PyString_Check(_obj1)) {
1173 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1174 return NULL;
1175 }
1176 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1177 }
1178 {
1179 wxPy_BEGIN_ALLOW_THREADS;
1180 _result = (bool )wxConfig_WriteInt(_arg0,*_arg1,_arg2);
1181
1182 wxPy_END_ALLOW_THREADS;
1183 } _resultobj = Py_BuildValue("i",_result);
1184 {
1185 if (_obj1)
1186 delete _arg1;
1187 }
1188 return _resultobj;
1189 }
1190
1191 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1192 static PyObject *_wrap_wxConfig_WriteFloat(PyObject *self, PyObject *args) {
1193 PyObject * _resultobj;
1194 bool _result;
1195 wxConfig * _arg0;
1196 wxString * _arg1;
1197 double _arg2;
1198 PyObject * _argo0 = 0;
1199 PyObject * _obj1 = 0;
1200
1201 self = self;
1202 if(!PyArg_ParseTuple(args,"OOd:wxConfig_WriteFloat",&_argo0,&_obj1,&_arg2))
1203 return NULL;
1204 if (_argo0) {
1205 if (_argo0 == Py_None) { _arg0 = NULL; }
1206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) {
1207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1208 return NULL;
1209 }
1210 }
1211 {
1212 if (!PyString_Check(_obj1)) {
1213 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1214 return NULL;
1215 }
1216 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1217 }
1218 {
1219 wxPy_BEGIN_ALLOW_THREADS;
1220 _result = (bool )wxConfig_WriteFloat(_arg0,*_arg1,_arg2);
1221
1222 wxPy_END_ALLOW_THREADS;
1223 } _resultobj = Py_BuildValue("i",_result);
1224 {
1225 if (_obj1)
1226 delete _arg1;
1227 }
1228 return _resultobj;
1229 }
1230
1231 static PyMethodDef utilscMethods[] = {
1232 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat, METH_VARARGS },
1233 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt, METH_VARARGS },
1234 { "wxConfig_Write", _wrap_wxConfig_Write, METH_VARARGS },
1235 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults, METH_VARARGS },
1236 { "wxConfig_SetPath", _wrap_wxConfig_SetPath, METH_VARARGS },
1237 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars, METH_VARARGS },
1238 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat, METH_VARARGS },
1239 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt, METH_VARARGS },
1240 { "wxConfig_Read", _wrap_wxConfig_Read, METH_VARARGS },
1241 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults, METH_VARARGS },
1242 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars, METH_VARARGS },
1243 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup, METH_VARARGS },
1244 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry, METH_VARARGS },
1245 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName, METH_VARARGS },
1246 { "wxConfig_GetPath", _wrap_wxConfig_GetPath, METH_VARARGS },
1247 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups, METH_VARARGS },
1248 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries, METH_VARARGS },
1249 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry, METH_VARARGS },
1250 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup, METH_VARARGS },
1251 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry, METH_VARARGS },
1252 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup, METH_VARARGS },
1253 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName, METH_VARARGS },
1254 { "wxConfig_Flush", _wrap_wxConfig_Flush, METH_VARARGS },
1255 { "wxConfig_Exists", _wrap_wxConfig_Exists, METH_VARARGS },
1256 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup, METH_VARARGS },
1257 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry, METH_VARARGS },
1258 { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll, METH_VARARGS },
1259 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand, METH_VARARGS },
1260 { "delete_wxConfig", _wrap_delete_wxConfig, METH_VARARGS },
1261 { "new_wxConfig", _wrap_new_wxConfig, METH_VARARGS },
1262 { NULL, NULL }
1263 };
1264 #ifdef __cplusplus
1265 }
1266 #endif
1267 /*
1268 * This table is used by the pointer type-checker
1269 */
1270 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1271 { "_signed_long","_long",0},
1272 { "_long","_unsigned_long",0},
1273 { "_long","_signed_long",0},
1274 { "_wxConfig","_class_wxConfig",0},
1275 { "_unsigned_long","_long",0},
1276 { "_signed_int","_int",0},
1277 { "_unsigned_short","_short",0},
1278 { "_signed_short","_short",0},
1279 { "_unsigned_int","_int",0},
1280 { "_short","_unsigned_short",0},
1281 { "_short","_signed_short",0},
1282 { "_int","_unsigned_int",0},
1283 { "_int","_signed_int",0},
1284 { "_class_wxConfig","_wxConfig",0},
1285 {0,0,0}};
1286
1287 static PyObject *SWIG_globals;
1288 #ifdef __cplusplus
1289 extern "C"
1290 #endif
1291 SWIGEXPORT(void) initutilsc() {
1292 PyObject *m, *d;
1293 SWIG_globals = SWIG_newvarlink();
1294 m = Py_InitModule("utilsc", utilscMethods);
1295 d = PyModule_GetDict(m);
1296
1297
1298 wxClassInfo::CleanUpClasses();
1299 wxClassInfo::InitializeClasses();
1300
1301 {
1302 int i;
1303 for (i = 0; _swig_mapping[i].n1; i++)
1304 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1305 }
1306 }