4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 5)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a,b) __declspec(dllexport) a b
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a,b) a _export b
32 # define SWIGEXPORT(a,b) a b
36 # define SWIGEXPORT(a,b) a b
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 void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
47 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initutilsc
54 #define SWIG_name "utilsc"
57 #include <wx/config.h>
59 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
63 } else if (target
== Py_None
) {
67 if (!PyList_Check(target
)) {
69 target
= PyList_New(0);
70 PyList_Append(target
, o2
);
73 PyList_Append(target
,o
);
79 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
85 } else if (target
== Py_None
) {
89 if (!PyTuple_Check(target
)) {
91 target
= PyTuple_New(1);
92 PyTuple_SetItem(target
, 0, o2
);
95 PyTuple_SetItem(o3
, 0, o
);
98 target
= PySequence_Concat(o2
, o3
);
106 extern byte
* byte_LIST_helper(PyObject
* source
);
107 extern int* int_LIST_helper(PyObject
* source
);
108 extern long* long_LIST_helper(PyObject
* source
);
109 extern char** string_LIST_helper(PyObject
* source
);
110 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
111 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
112 extern wxString
* wxString_LIST_helper(PyObject
* source
);
113 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
116 static char* wxStringErrorMsg
= "string type is required for parameter";
118 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
119 PyObject
* ret
= PyTuple_New(3);
121 PyTuple_SET_ITEM(ret
, 0, PyInt_FromLong(flag
));
122 PyTuple_SET_ITEM(ret
, 1, PyString_FromString(str
));
123 PyTuple_SET_ITEM(ret
, 2, PyInt_FromLong(index
));
127 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
128 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
) {
129 PyObject
* _resultobj
;
131 wxString
* _arg0
= &wxPyEmptyStr
;
132 wxString
* _arg1
= &wxPyEmptyStr
;
133 wxString
* _arg2
= &wxPyEmptyStr
;
134 wxString
* _arg3
= &wxPyEmptyStr
;
136 PyObject
* _obj0
= 0;
137 PyObject
* _obj1
= 0;
138 PyObject
* _obj2
= 0;
139 PyObject
* _obj3
= 0;
143 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
147 if (!PyString_Check(_obj0
)) {
148 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
151 _arg0
= new wxString(PyString_AsString(_obj0
));
155 if (!PyString_Check(_obj1
)) {
156 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
159 _arg1
= new wxString(PyString_AsString(_obj1
));
163 if (!PyString_Check(_obj2
)) {
164 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
167 _arg2
= new wxString(PyString_AsString(_obj2
));
171 if (!PyString_Check(_obj3
)) {
172 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
175 _arg3
= new wxString(PyString_AsString(_obj3
));
177 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
178 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
179 _resultobj
= Py_BuildValue("s",_ptemp
);
199 #define delete_wxConfig(_swigobj) (delete _swigobj)
200 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
201 PyObject
* _resultobj
;
206 if(!PyArg_ParseTuple(args
,"s:delete_wxConfig",&_argc0
))
209 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
214 delete_wxConfig(_arg0
);
216 _resultobj
= Py_None
;
220 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
221 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
222 PyObject
* _resultobj
;
227 if(!PyArg_ParseTuple(args
,"s:wxConfig_DontCreateOnDemand",&_argc0
))
230 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
235 wxConfig_DontCreateOnDemand(_arg0
);
237 _resultobj
= Py_None
;
241 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
242 static PyObject
*_wrap_wxConfig_DeleteAll(PyObject
*self
, PyObject
*args
) {
243 PyObject
* _resultobj
;
249 if(!PyArg_ParseTuple(args
,"s:wxConfig_DeleteAll",&_argc0
))
252 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
257 _result
= (bool )wxConfig_DeleteAll(_arg0
);
258 _resultobj
= Py_BuildValue("i",_result
);
262 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
263 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
264 PyObject
* _resultobj
;
270 PyObject
* _obj1
= 0;
274 if(!PyArg_ParseTuple(args
,"sO|i:wxConfig_DeleteEntry",&_argc0
,&_obj1
,&tempbool2
))
277 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
283 if (!PyString_Check(_obj1
)) {
284 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
287 _arg1
= new wxString(PyString_AsString(_obj1
));
289 _arg2
= (bool ) tempbool2
;
290 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
291 _resultobj
= Py_BuildValue("i",_result
);
299 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
300 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
301 PyObject
* _resultobj
;
306 PyObject
* _obj1
= 0;
309 if(!PyArg_ParseTuple(args
,"sO:wxConfig_DeleteGroup",&_argc0
,&_obj1
))
312 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
318 if (!PyString_Check(_obj1
)) {
319 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
322 _arg1
= new wxString(PyString_AsString(_obj1
));
324 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
325 _resultobj
= Py_BuildValue("i",_result
);
333 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
334 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
335 PyObject
* _resultobj
;
340 PyObject
* _obj1
= 0;
343 if(!PyArg_ParseTuple(args
,"sO:wxConfig_Exists",&_argc0
,&_obj1
))
346 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
352 if (!PyString_Check(_obj1
)) {
353 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
356 _arg1
= new wxString(PyString_AsString(_obj1
));
358 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
359 _resultobj
= Py_BuildValue("i",_result
);
367 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
368 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
369 PyObject
* _resultobj
;
377 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_Flush",&_argc0
,&tempbool1
))
380 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
385 _arg1
= (bool ) tempbool1
;
386 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
387 _resultobj
= Py_BuildValue("i",_result
);
391 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
392 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
393 PyObject
* _resultobj
;
399 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetAppName",&_argc0
))
402 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
407 _result
= new wxString (wxConfig_GetAppName(_arg0
));
409 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
417 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
422 cont
= self
->GetFirstGroup(value
, index
);
423 return __EnumerationHelper(cont
, value
, index
);
425 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
426 PyObject
* _resultobj
;
432 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstGroup",&_argc0
))
435 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
440 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
442 _resultobj
= _result
;
447 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
452 cont
= self
->GetFirstEntry(value
, index
);
453 return __EnumerationHelper(cont
, value
, index
);
455 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
456 PyObject
* _resultobj
;
462 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstEntry",&_argc0
))
465 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
470 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
472 _resultobj
= _result
;
477 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
481 cont
= self
->GetNextGroup(value
, index
);
482 return __EnumerationHelper(cont
, value
, index
);
484 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
485 PyObject
* _resultobj
;
492 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextGroup",&_argc0
,&_arg1
))
495 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
500 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
502 _resultobj
= _result
;
507 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
511 cont
= self
->GetNextEntry(value
, index
);
512 return __EnumerationHelper(cont
, value
, index
);
514 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
515 PyObject
* _resultobj
;
522 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextEntry",&_argc0
,&_arg1
))
525 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
530 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
532 _resultobj
= _result
;
537 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
538 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
539 PyObject
* _resultobj
;
547 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfEntries",&_argc0
,&tempbool1
))
550 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
555 _arg1
= (bool ) tempbool1
;
556 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
557 _resultobj
= Py_BuildValue("i",_result
);
561 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
562 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
563 PyObject
* _resultobj
;
571 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfGroups",&_argc0
,&tempbool1
))
574 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
579 _arg1
= (bool ) tempbool1
;
580 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
581 _resultobj
= Py_BuildValue("i",_result
);
585 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
586 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
587 PyObject
* _resultobj
;
593 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetPath",&_argc0
))
596 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
601 _result
= new wxString (wxConfig_GetPath(_arg0
));
603 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
611 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
612 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
613 PyObject
* _resultobj
;
619 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetVendorName",&_argc0
))
622 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
627 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
629 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
637 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
638 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
639 PyObject
* _resultobj
;
644 PyObject
* _obj1
= 0;
647 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasEntry",&_argc0
,&_obj1
))
650 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
656 if (!PyString_Check(_obj1
)) {
657 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
660 _arg1
= new wxString(PyString_AsString(_obj1
));
662 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
663 _resultobj
= Py_BuildValue("i",_result
);
671 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
672 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
673 PyObject
* _resultobj
;
678 PyObject
* _obj1
= 0;
681 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasGroup",&_argc0
,&_obj1
))
684 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
690 if (!PyString_Check(_obj1
)) {
691 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
694 _arg1
= new wxString(PyString_AsString(_obj1
));
696 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
697 _resultobj
= Py_BuildValue("i",_result
);
705 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
706 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
707 PyObject
* _resultobj
;
713 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsExpandingEnvVars",&_argc0
))
716 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
721 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
722 _resultobj
= Py_BuildValue("i",_result
);
726 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
727 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
728 PyObject
* _resultobj
;
734 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsRecordingDefaults",&_argc0
))
737 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
742 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
743 _resultobj
= Py_BuildValue("i",_result
);
747 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
748 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
749 PyObject
* _resultobj
;
753 wxString
* _arg2
= &wxPyEmptyStr
;
755 PyObject
* _obj1
= 0;
756 PyObject
* _obj2
= 0;
759 if(!PyArg_ParseTuple(args
,"sO|O:wxConfig_Read",&_argc0
,&_obj1
,&_obj2
))
762 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
768 if (!PyString_Check(_obj1
)) {
769 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
772 _arg1
= new wxString(PyString_AsString(_obj1
));
776 if (!PyString_Check(_obj2
)) {
777 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
780 _arg2
= new wxString(PyString_AsString(_obj2
));
782 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
784 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
800 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
801 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
802 PyObject
* _resultobj
;
808 PyObject
* _obj1
= 0;
811 if(!PyArg_ParseTuple(args
,"sO|l:wxConfig_ReadInt",&_argc0
,&_obj1
,&_arg2
))
814 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
820 if (!PyString_Check(_obj1
)) {
821 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
824 _arg1
= new wxString(PyString_AsString(_obj1
));
826 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
827 _resultobj
= Py_BuildValue("l",_result
);
835 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
836 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
837 PyObject
* _resultobj
;
843 PyObject
* _obj1
= 0;
846 if(!PyArg_ParseTuple(args
,"sO|d:wxConfig_ReadFloat",&_argc0
,&_obj1
,&_arg2
))
849 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
855 if (!PyString_Check(_obj1
)) {
856 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
859 _arg1
= new wxString(PyString_AsString(_obj1
));
861 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
862 _resultobj
= Py_BuildValue("d",_result
);
870 #define wxConfig_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0))
871 static PyObject
*_wrap_wxConfig_SetAppName(PyObject
*self
, PyObject
*args
) {
872 PyObject
* _resultobj
;
876 PyObject
* _obj1
= 0;
879 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetAppName",&_argc0
,&_obj1
))
882 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetAppName. Expected _wxConfig_p.");
888 if (!PyString_Check(_obj1
)) {
889 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
892 _arg1
= new wxString(PyString_AsString(_obj1
));
894 wxConfig_SetAppName(_arg0
,*_arg1
);
896 _resultobj
= Py_None
;
904 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
905 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
906 PyObject
* _resultobj
;
913 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetExpandEnvVars",&_argc0
,&tempbool1
))
916 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
921 _arg1
= (bool ) tempbool1
;
922 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
924 _resultobj
= Py_None
;
928 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
929 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
930 PyObject
* _resultobj
;
934 PyObject
* _obj1
= 0;
937 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetPath",&_argc0
,&_obj1
))
940 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
946 if (!PyString_Check(_obj1
)) {
947 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
950 _arg1
= new wxString(PyString_AsString(_obj1
));
952 wxConfig_SetPath(_arg0
,*_arg1
);
954 _resultobj
= Py_None
;
962 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
963 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
964 PyObject
* _resultobj
;
971 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetRecordDefaults",&_argc0
,&tempbool1
))
974 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
979 _arg1
= (bool ) tempbool1
;
980 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
982 _resultobj
= Py_None
;
986 #define wxConfig_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0))
987 static PyObject
*_wrap_wxConfig_SetVendorName(PyObject
*self
, PyObject
*args
) {
988 PyObject
* _resultobj
;
992 PyObject
* _obj1
= 0;
995 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetVendorName",&_argc0
,&_obj1
))
998 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
999 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetVendorName. Expected _wxConfig_p.");
1004 if (!PyString_Check(_obj1
)) {
1005 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1008 _arg1
= new wxString(PyString_AsString(_obj1
));
1010 wxConfig_SetVendorName(_arg0
,*_arg1
);
1012 _resultobj
= Py_None
;
1020 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1021 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1022 PyObject
* _resultobj
;
1028 PyObject
* _obj1
= 0;
1029 PyObject
* _obj2
= 0;
1032 if(!PyArg_ParseTuple(args
,"sOO:wxConfig_Write",&_argc0
,&_obj1
,&_obj2
))
1035 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1041 if (!PyString_Check(_obj1
)) {
1042 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1045 _arg1
= new wxString(PyString_AsString(_obj1
));
1048 if (!PyString_Check(_obj2
)) {
1049 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1052 _arg2
= new wxString(PyString_AsString(_obj2
));
1054 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1055 _resultobj
= Py_BuildValue("i",_result
);
1067 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1068 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1069 PyObject
* _resultobj
;
1075 PyObject
* _obj1
= 0;
1078 if(!PyArg_ParseTuple(args
,"sOl:wxConfig_WriteInt",&_argc0
,&_obj1
,&_arg2
))
1081 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1087 if (!PyString_Check(_obj1
)) {
1088 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1091 _arg1
= new wxString(PyString_AsString(_obj1
));
1093 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1094 _resultobj
= Py_BuildValue("i",_result
);
1102 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1103 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1104 PyObject
* _resultobj
;
1110 PyObject
* _obj1
= 0;
1113 if(!PyArg_ParseTuple(args
,"sOd:wxConfig_WriteFloat",&_argc0
,&_obj1
,&_arg2
))
1116 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1122 if (!PyString_Check(_obj1
)) {
1123 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1126 _arg1
= new wxString(PyString_AsString(_obj1
));
1128 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1129 _resultobj
= Py_BuildValue("i",_result
);
1137 static PyMethodDef utilscMethods
[] = {
1138 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat
, 1 },
1139 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt
, 1 },
1140 { "wxConfig_Write", _wrap_wxConfig_Write
, 1 },
1141 { "wxConfig_SetVendorName", _wrap_wxConfig_SetVendorName
, 1 },
1142 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults
, 1 },
1143 { "wxConfig_SetPath", _wrap_wxConfig_SetPath
, 1 },
1144 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars
, 1 },
1145 { "wxConfig_SetAppName", _wrap_wxConfig_SetAppName
, 1 },
1146 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat
, 1 },
1147 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt
, 1 },
1148 { "wxConfig_Read", _wrap_wxConfig_Read
, 1 },
1149 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults
, 1 },
1150 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars
, 1 },
1151 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup
, 1 },
1152 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry
, 1 },
1153 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName
, 1 },
1154 { "wxConfig_GetPath", _wrap_wxConfig_GetPath
, 1 },
1155 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups
, 1 },
1156 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries
, 1 },
1157 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry
, 1 },
1158 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup
, 1 },
1159 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry
, 1 },
1160 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup
, 1 },
1161 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName
, 1 },
1162 { "wxConfig_Flush", _wrap_wxConfig_Flush
, 1 },
1163 { "wxConfig_Exists", _wrap_wxConfig_Exists
, 1 },
1164 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup
, 1 },
1165 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry
, 1 },
1166 { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll
, 1 },
1167 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand
, 1 },
1168 { "delete_wxConfig", _wrap_delete_wxConfig
, 1 },
1169 { "new_wxConfig", _wrap_new_wxConfig
, 1 },
1172 static PyObject
*SWIG_globals
;
1176 SWIGEXPORT(void,initutilsc
)() {
1178 SWIG_globals
= SWIG_newvarlink();
1179 m
= Py_InitModule("utilsc", utilscMethods
);
1180 d
= PyModule_GetDict(m
);
1182 * These are the pointer type-equivalency mappings.
1183 * (Used by the SWIG pointer type-checker).
1185 SWIG_RegisterMapping("_signed_long","_long",0);
1186 SWIG_RegisterMapping("_long","_unsigned_long",0);
1187 SWIG_RegisterMapping("_long","_signed_long",0);
1188 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1189 SWIG_RegisterMapping("_unsigned_long","_long",0);
1190 SWIG_RegisterMapping("_signed_int","_int",0);
1191 SWIG_RegisterMapping("_unsigned_short","_short",0);
1192 SWIG_RegisterMapping("_signed_short","_short",0);
1193 SWIG_RegisterMapping("_unsigned_int","_int",0);
1194 SWIG_RegisterMapping("_short","_unsigned_short",0);
1195 SWIG_RegisterMapping("_short","_signed_short",0);
1196 SWIG_RegisterMapping("_int","_unsigned_int",0);
1197 SWIG_RegisterMapping("_int","_signed_int",0);
1198 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);