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
) {
64 } else if (target
== Py_None
) {
68 if (!PyList_Check(target
)) {
70 target
= PyList_New(0);
71 PyList_Append(target
, o2
);
74 PyList_Append(target
,o
);
80 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
86 } else if (target
== Py_None
) {
90 if (!PyTuple_Check(target
)) {
92 target
= PyTuple_New(1);
93 PyTuple_SetItem(target
, 0, o2
);
96 PyTuple_SetItem(o3
, 0, o
);
99 target
= PySequence_Concat(o2
, o3
);
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
);
117 static char* wxStringErrorMsg
= "string type is required for parameter";
120 wxString
wxPyEmptyStr("");
123 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
124 PyObject
* ret
= PyTuple_New(3);
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
));
132 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
133 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
) {
134 PyObject
* _resultobj
;
136 wxString
* _arg0
= &wxPyEmptyStr
;
137 wxString
* _arg1
= &wxPyEmptyStr
;
138 wxString
* _arg2
= &wxPyEmptyStr
;
139 wxString
* _arg3
= &wxPyEmptyStr
;
141 PyObject
* _obj0
= 0;
142 PyObject
* _obj1
= 0;
143 PyObject
* _obj2
= 0;
144 PyObject
* _obj3
= 0;
148 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
152 if (!PyString_Check(_obj0
)) {
153 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
156 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
160 if (!PyString_Check(_obj1
)) {
161 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
164 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
168 if (!PyString_Check(_obj2
)) {
169 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
172 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
176 if (!PyString_Check(_obj3
)) {
177 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
180 _arg3
= new wxString(PyString_AsString(_obj3
), PyString_Size(_obj3
));
183 wxPy_BEGIN_ALLOW_THREADS
;
184 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
186 wxPy_END_ALLOW_THREADS
;
187 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
188 _resultobj
= Py_BuildValue("s",_ptemp
);
208 #define delete_wxConfig(_swigobj) (delete _swigobj)
209 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
210 PyObject
* _resultobj
;
215 if(!PyArg_ParseTuple(args
,"s:delete_wxConfig",&_argc0
))
218 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
224 wxPy_BEGIN_ALLOW_THREADS
;
225 delete_wxConfig(_arg0
);
227 wxPy_END_ALLOW_THREADS
;
228 } Py_INCREF(Py_None
);
229 _resultobj
= Py_None
;
233 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
234 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
235 PyObject
* _resultobj
;
240 if(!PyArg_ParseTuple(args
,"s:wxConfig_DontCreateOnDemand",&_argc0
))
243 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
249 wxPy_BEGIN_ALLOW_THREADS
;
250 wxConfig_DontCreateOnDemand(_arg0
);
252 wxPy_END_ALLOW_THREADS
;
253 } Py_INCREF(Py_None
);
254 _resultobj
= Py_None
;
258 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
259 static PyObject
*_wrap_wxConfig_DeleteAll(PyObject
*self
, PyObject
*args
) {
260 PyObject
* _resultobj
;
266 if(!PyArg_ParseTuple(args
,"s:wxConfig_DeleteAll",&_argc0
))
269 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
270 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
275 wxPy_BEGIN_ALLOW_THREADS
;
276 _result
= (bool )wxConfig_DeleteAll(_arg0
);
278 wxPy_END_ALLOW_THREADS
;
279 } _resultobj
= Py_BuildValue("i",_result
);
283 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
284 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
285 PyObject
* _resultobj
;
291 PyObject
* _obj1
= 0;
295 if(!PyArg_ParseTuple(args
,"sO|i:wxConfig_DeleteEntry",&_argc0
,&_obj1
,&tempbool2
))
298 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
304 if (!PyString_Check(_obj1
)) {
305 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
308 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
310 _arg2
= (bool ) tempbool2
;
312 wxPy_BEGIN_ALLOW_THREADS
;
313 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
315 wxPy_END_ALLOW_THREADS
;
316 } _resultobj
= Py_BuildValue("i",_result
);
324 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
325 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
326 PyObject
* _resultobj
;
331 PyObject
* _obj1
= 0;
334 if(!PyArg_ParseTuple(args
,"sO:wxConfig_DeleteGroup",&_argc0
,&_obj1
))
337 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
343 if (!PyString_Check(_obj1
)) {
344 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
347 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
350 wxPy_BEGIN_ALLOW_THREADS
;
351 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
353 wxPy_END_ALLOW_THREADS
;
354 } _resultobj
= Py_BuildValue("i",_result
);
362 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
363 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
364 PyObject
* _resultobj
;
369 PyObject
* _obj1
= 0;
372 if(!PyArg_ParseTuple(args
,"sO:wxConfig_Exists",&_argc0
,&_obj1
))
375 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
381 if (!PyString_Check(_obj1
)) {
382 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
385 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
388 wxPy_BEGIN_ALLOW_THREADS
;
389 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
391 wxPy_END_ALLOW_THREADS
;
392 } _resultobj
= Py_BuildValue("i",_result
);
400 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
401 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
402 PyObject
* _resultobj
;
410 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_Flush",&_argc0
,&tempbool1
))
413 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
414 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
418 _arg1
= (bool ) tempbool1
;
420 wxPy_BEGIN_ALLOW_THREADS
;
421 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
423 wxPy_END_ALLOW_THREADS
;
424 } _resultobj
= Py_BuildValue("i",_result
);
428 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
429 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
430 PyObject
* _resultobj
;
436 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetAppName",&_argc0
))
439 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
445 wxPy_BEGIN_ALLOW_THREADS
;
446 _result
= new wxString (wxConfig_GetAppName(_arg0
));
448 wxPy_END_ALLOW_THREADS
;
450 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
458 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
463 cont
= self
->GetFirstGroup(value
, index
);
464 return __EnumerationHelper(cont
, value
, index
);
466 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
467 PyObject
* _resultobj
;
473 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstGroup",&_argc0
))
476 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
482 wxPy_BEGIN_ALLOW_THREADS
;
483 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
485 wxPy_END_ALLOW_THREADS
;
487 _resultobj
= _result
;
492 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
497 cont
= self
->GetFirstEntry(value
, index
);
498 return __EnumerationHelper(cont
, value
, index
);
500 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
501 PyObject
* _resultobj
;
507 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstEntry",&_argc0
))
510 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
516 wxPy_BEGIN_ALLOW_THREADS
;
517 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
519 wxPy_END_ALLOW_THREADS
;
521 _resultobj
= _result
;
526 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
530 cont
= self
->GetNextGroup(value
, index
);
531 return __EnumerationHelper(cont
, value
, index
);
533 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
534 PyObject
* _resultobj
;
541 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextGroup",&_argc0
,&_arg1
))
544 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
550 wxPy_BEGIN_ALLOW_THREADS
;
551 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
553 wxPy_END_ALLOW_THREADS
;
555 _resultobj
= _result
;
560 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
564 cont
= self
->GetNextEntry(value
, index
);
565 return __EnumerationHelper(cont
, value
, index
);
567 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
568 PyObject
* _resultobj
;
575 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextEntry",&_argc0
,&_arg1
))
578 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
584 wxPy_BEGIN_ALLOW_THREADS
;
585 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
587 wxPy_END_ALLOW_THREADS
;
589 _resultobj
= _result
;
594 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
595 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
596 PyObject
* _resultobj
;
604 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfEntries",&_argc0
,&tempbool1
))
607 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
612 _arg1
= (bool ) tempbool1
;
614 wxPy_BEGIN_ALLOW_THREADS
;
615 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
617 wxPy_END_ALLOW_THREADS
;
618 } _resultobj
= Py_BuildValue("i",_result
);
622 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
623 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
624 PyObject
* _resultobj
;
632 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfGroups",&_argc0
,&tempbool1
))
635 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
640 _arg1
= (bool ) tempbool1
;
642 wxPy_BEGIN_ALLOW_THREADS
;
643 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
645 wxPy_END_ALLOW_THREADS
;
646 } _resultobj
= Py_BuildValue("i",_result
);
650 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
651 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
652 PyObject
* _resultobj
;
658 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetPath",&_argc0
))
661 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
667 wxPy_BEGIN_ALLOW_THREADS
;
668 _result
= new wxString (wxConfig_GetPath(_arg0
));
670 wxPy_END_ALLOW_THREADS
;
672 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
680 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
681 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
682 PyObject
* _resultobj
;
688 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetVendorName",&_argc0
))
691 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
697 wxPy_BEGIN_ALLOW_THREADS
;
698 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
700 wxPy_END_ALLOW_THREADS
;
702 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
710 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
711 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
712 PyObject
* _resultobj
;
717 PyObject
* _obj1
= 0;
720 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasEntry",&_argc0
,&_obj1
))
723 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
729 if (!PyString_Check(_obj1
)) {
730 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
733 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
736 wxPy_BEGIN_ALLOW_THREADS
;
737 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
739 wxPy_END_ALLOW_THREADS
;
740 } _resultobj
= Py_BuildValue("i",_result
);
748 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
749 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
750 PyObject
* _resultobj
;
755 PyObject
* _obj1
= 0;
758 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasGroup",&_argc0
,&_obj1
))
761 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
767 if (!PyString_Check(_obj1
)) {
768 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
771 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
774 wxPy_BEGIN_ALLOW_THREADS
;
775 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
777 wxPy_END_ALLOW_THREADS
;
778 } _resultobj
= Py_BuildValue("i",_result
);
786 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
787 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
788 PyObject
* _resultobj
;
794 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsExpandingEnvVars",&_argc0
))
797 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
803 wxPy_BEGIN_ALLOW_THREADS
;
804 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
806 wxPy_END_ALLOW_THREADS
;
807 } _resultobj
= Py_BuildValue("i",_result
);
811 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
812 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
813 PyObject
* _resultobj
;
819 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsRecordingDefaults",&_argc0
))
822 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
828 wxPy_BEGIN_ALLOW_THREADS
;
829 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
831 wxPy_END_ALLOW_THREADS
;
832 } _resultobj
= Py_BuildValue("i",_result
);
836 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
837 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
838 PyObject
* _resultobj
;
842 wxString
* _arg2
= &wxPyEmptyStr
;
844 PyObject
* _obj1
= 0;
845 PyObject
* _obj2
= 0;
848 if(!PyArg_ParseTuple(args
,"sO|O:wxConfig_Read",&_argc0
,&_obj1
,&_obj2
))
851 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
852 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
857 if (!PyString_Check(_obj1
)) {
858 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
861 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
865 if (!PyString_Check(_obj2
)) {
866 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
869 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
872 wxPy_BEGIN_ALLOW_THREADS
;
873 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
875 wxPy_END_ALLOW_THREADS
;
877 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
893 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
894 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
895 PyObject
* _resultobj
;
901 PyObject
* _obj1
= 0;
904 if(!PyArg_ParseTuple(args
,"sO|l:wxConfig_ReadInt",&_argc0
,&_obj1
,&_arg2
))
907 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
913 if (!PyString_Check(_obj1
)) {
914 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
917 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
920 wxPy_BEGIN_ALLOW_THREADS
;
921 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
923 wxPy_END_ALLOW_THREADS
;
924 } _resultobj
= Py_BuildValue("l",_result
);
932 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
933 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
934 PyObject
* _resultobj
;
940 PyObject
* _obj1
= 0;
943 if(!PyArg_ParseTuple(args
,"sO|d:wxConfig_ReadFloat",&_argc0
,&_obj1
,&_arg2
))
946 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
952 if (!PyString_Check(_obj1
)) {
953 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
956 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
959 wxPy_BEGIN_ALLOW_THREADS
;
960 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
962 wxPy_END_ALLOW_THREADS
;
963 } _resultobj
= Py_BuildValue("d",_result
);
971 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
972 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
973 PyObject
* _resultobj
;
980 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetExpandEnvVars",&_argc0
,&tempbool1
))
983 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
988 _arg1
= (bool ) tempbool1
;
990 wxPy_BEGIN_ALLOW_THREADS
;
991 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
993 wxPy_END_ALLOW_THREADS
;
994 } Py_INCREF(Py_None
);
995 _resultobj
= Py_None
;
999 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
1000 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
1001 PyObject
* _resultobj
;
1005 PyObject
* _obj1
= 0;
1008 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetPath",&_argc0
,&_obj1
))
1011 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
1017 if (!PyString_Check(_obj1
)) {
1018 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1021 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1024 wxPy_BEGIN_ALLOW_THREADS
;
1025 wxConfig_SetPath(_arg0
,*_arg1
);
1027 wxPy_END_ALLOW_THREADS
;
1028 } Py_INCREF(Py_None
);
1029 _resultobj
= Py_None
;
1037 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
1038 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
1039 PyObject
* _resultobj
;
1046 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetRecordDefaults",&_argc0
,&tempbool1
))
1049 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1050 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
1054 _arg1
= (bool ) tempbool1
;
1056 wxPy_BEGIN_ALLOW_THREADS
;
1057 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
1059 wxPy_END_ALLOW_THREADS
;
1060 } Py_INCREF(Py_None
);
1061 _resultobj
= Py_None
;
1065 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1066 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1067 PyObject
* _resultobj
;
1073 PyObject
* _obj1
= 0;
1074 PyObject
* _obj2
= 0;
1077 if(!PyArg_ParseTuple(args
,"sOO:wxConfig_Write",&_argc0
,&_obj1
,&_obj2
))
1080 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1086 if (!PyString_Check(_obj1
)) {
1087 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1090 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1093 if (!PyString_Check(_obj2
)) {
1094 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1097 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1100 wxPy_BEGIN_ALLOW_THREADS
;
1101 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1103 wxPy_END_ALLOW_THREADS
;
1104 } _resultobj
= Py_BuildValue("i",_result
);
1116 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1117 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1118 PyObject
* _resultobj
;
1124 PyObject
* _obj1
= 0;
1127 if(!PyArg_ParseTuple(args
,"sOl:wxConfig_WriteInt",&_argc0
,&_obj1
,&_arg2
))
1130 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1136 if (!PyString_Check(_obj1
)) {
1137 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1140 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1143 wxPy_BEGIN_ALLOW_THREADS
;
1144 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1146 wxPy_END_ALLOW_THREADS
;
1147 } _resultobj
= Py_BuildValue("i",_result
);
1155 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1156 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1157 PyObject
* _resultobj
;
1163 PyObject
* _obj1
= 0;
1166 if(!PyArg_ParseTuple(args
,"sOd:wxConfig_WriteFloat",&_argc0
,&_obj1
,&_arg2
))
1169 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1175 if (!PyString_Check(_obj1
)) {
1176 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1179 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1182 wxPy_BEGIN_ALLOW_THREADS
;
1183 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1185 wxPy_END_ALLOW_THREADS
;
1186 } _resultobj
= Py_BuildValue("i",_result
);
1194 static PyMethodDef utilscMethods
[] = {
1195 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat
, 1 },
1196 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt
, 1 },
1197 { "wxConfig_Write", _wrap_wxConfig_Write
, 1 },
1198 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults
, 1 },
1199 { "wxConfig_SetPath", _wrap_wxConfig_SetPath
, 1 },
1200 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars
, 1 },
1201 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat
, 1 },
1202 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt
, 1 },
1203 { "wxConfig_Read", _wrap_wxConfig_Read
, 1 },
1204 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults
, 1 },
1205 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars
, 1 },
1206 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup
, 1 },
1207 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry
, 1 },
1208 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName
, 1 },
1209 { "wxConfig_GetPath", _wrap_wxConfig_GetPath
, 1 },
1210 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups
, 1 },
1211 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries
, 1 },
1212 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry
, 1 },
1213 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup
, 1 },
1214 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry
, 1 },
1215 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup
, 1 },
1216 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName
, 1 },
1217 { "wxConfig_Flush", _wrap_wxConfig_Flush
, 1 },
1218 { "wxConfig_Exists", _wrap_wxConfig_Exists
, 1 },
1219 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup
, 1 },
1220 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry
, 1 },
1221 { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll
, 1 },
1222 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand
, 1 },
1223 { "delete_wxConfig", _wrap_delete_wxConfig
, 1 },
1224 { "new_wxConfig", _wrap_new_wxConfig
, 1 },
1227 static PyObject
*SWIG_globals
;
1231 SWIGEXPORT(void,initutilsc
)() {
1233 SWIG_globals
= SWIG_newvarlink();
1234 m
= Py_InitModule("utilsc", utilscMethods
);
1235 d
= PyModule_GetDict(m
);
1237 * These are the pointer type-equivalency mappings.
1238 * (Used by the SWIG pointer type-checker).
1240 SWIG_RegisterMapping("_signed_long","_long",0);
1241 SWIG_RegisterMapping("_long","_unsigned_long",0);
1242 SWIG_RegisterMapping("_long","_signed_long",0);
1243 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1244 SWIG_RegisterMapping("_unsigned_long","_long",0);
1245 SWIG_RegisterMapping("_signed_int","_int",0);
1246 SWIG_RegisterMapping("_unsigned_short","_short",0);
1247 SWIG_RegisterMapping("_signed_short","_short",0);
1248 SWIG_RegisterMapping("_unsigned_int","_int",0);
1249 SWIG_RegisterMapping("_short","_unsigned_short",0);
1250 SWIG_RegisterMapping("_short","_signed_short",0);
1251 SWIG_RegisterMapping("_int","_unsigned_int",0);
1252 SWIG_RegisterMapping("_int","_signed_int",0);
1253 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);