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";
119 static wxString
wxPyEmptyStr("");
122 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
123 PyObject
* ret
= PyTuple_New(3);
125 PyTuple_SET_ITEM(ret
, 0, PyInt_FromLong(flag
));
126 PyTuple_SET_ITEM(ret
, 1, PyString_FromString(str
));
127 PyTuple_SET_ITEM(ret
, 2, PyInt_FromLong(index
));
131 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
132 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
) {
133 PyObject
* _resultobj
;
135 wxString
* _arg0
= &wxPyEmptyStr
;
136 wxString
* _arg1
= &wxPyEmptyStr
;
137 wxString
* _arg2
= &wxPyEmptyStr
;
138 wxString
* _arg3
= &wxPyEmptyStr
;
140 PyObject
* _obj0
= 0;
141 PyObject
* _obj1
= 0;
142 PyObject
* _obj2
= 0;
143 PyObject
* _obj3
= 0;
147 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
151 if (!PyString_Check(_obj0
)) {
152 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
155 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
159 if (!PyString_Check(_obj1
)) {
160 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
163 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
167 if (!PyString_Check(_obj2
)) {
168 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
171 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
175 if (!PyString_Check(_obj3
)) {
176 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
179 _arg3
= new wxString(PyString_AsString(_obj3
), PyString_Size(_obj3
));
182 wxPy_BEGIN_ALLOW_THREADS
;
183 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
185 wxPy_END_ALLOW_THREADS
;
186 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
187 _resultobj
= Py_BuildValue("s",_ptemp
);
207 #define delete_wxConfig(_swigobj) (delete _swigobj)
208 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
209 PyObject
* _resultobj
;
214 if(!PyArg_ParseTuple(args
,"s:delete_wxConfig",&_argc0
))
217 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
223 wxPy_BEGIN_ALLOW_THREADS
;
224 delete_wxConfig(_arg0
);
226 wxPy_END_ALLOW_THREADS
;
227 } Py_INCREF(Py_None
);
228 _resultobj
= Py_None
;
232 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
233 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
234 PyObject
* _resultobj
;
239 if(!PyArg_ParseTuple(args
,"s:wxConfig_DontCreateOnDemand",&_argc0
))
242 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
248 wxPy_BEGIN_ALLOW_THREADS
;
249 wxConfig_DontCreateOnDemand(_arg0
);
251 wxPy_END_ALLOW_THREADS
;
252 } Py_INCREF(Py_None
);
253 _resultobj
= Py_None
;
257 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
258 static PyObject
*_wrap_wxConfig_DeleteAll(PyObject
*self
, PyObject
*args
) {
259 PyObject
* _resultobj
;
265 if(!PyArg_ParseTuple(args
,"s:wxConfig_DeleteAll",&_argc0
))
268 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
274 wxPy_BEGIN_ALLOW_THREADS
;
275 _result
= (bool )wxConfig_DeleteAll(_arg0
);
277 wxPy_END_ALLOW_THREADS
;
278 } _resultobj
= Py_BuildValue("i",_result
);
282 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
283 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
284 PyObject
* _resultobj
;
290 PyObject
* _obj1
= 0;
294 if(!PyArg_ParseTuple(args
,"sO|i:wxConfig_DeleteEntry",&_argc0
,&_obj1
,&tempbool2
))
297 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
303 if (!PyString_Check(_obj1
)) {
304 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
307 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
309 _arg2
= (bool ) tempbool2
;
311 wxPy_BEGIN_ALLOW_THREADS
;
312 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
314 wxPy_END_ALLOW_THREADS
;
315 } _resultobj
= Py_BuildValue("i",_result
);
323 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
324 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
325 PyObject
* _resultobj
;
330 PyObject
* _obj1
= 0;
333 if(!PyArg_ParseTuple(args
,"sO:wxConfig_DeleteGroup",&_argc0
,&_obj1
))
336 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
342 if (!PyString_Check(_obj1
)) {
343 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
346 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
349 wxPy_BEGIN_ALLOW_THREADS
;
350 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
352 wxPy_END_ALLOW_THREADS
;
353 } _resultobj
= Py_BuildValue("i",_result
);
361 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
362 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
363 PyObject
* _resultobj
;
368 PyObject
* _obj1
= 0;
371 if(!PyArg_ParseTuple(args
,"sO:wxConfig_Exists",&_argc0
,&_obj1
))
374 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
380 if (!PyString_Check(_obj1
)) {
381 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
384 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
387 wxPy_BEGIN_ALLOW_THREADS
;
388 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
390 wxPy_END_ALLOW_THREADS
;
391 } _resultobj
= Py_BuildValue("i",_result
);
399 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
400 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
401 PyObject
* _resultobj
;
409 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_Flush",&_argc0
,&tempbool1
))
412 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
413 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
417 _arg1
= (bool ) tempbool1
;
419 wxPy_BEGIN_ALLOW_THREADS
;
420 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
422 wxPy_END_ALLOW_THREADS
;
423 } _resultobj
= Py_BuildValue("i",_result
);
427 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
428 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
429 PyObject
* _resultobj
;
435 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetAppName",&_argc0
))
438 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
444 wxPy_BEGIN_ALLOW_THREADS
;
445 _result
= new wxString (wxConfig_GetAppName(_arg0
));
447 wxPy_END_ALLOW_THREADS
;
449 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
457 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
462 cont
= self
->GetFirstGroup(value
, index
);
463 return __EnumerationHelper(cont
, value
, index
);
465 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
466 PyObject
* _resultobj
;
472 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstGroup",&_argc0
))
475 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
481 wxPy_BEGIN_ALLOW_THREADS
;
482 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
484 wxPy_END_ALLOW_THREADS
;
486 _resultobj
= _result
;
491 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
496 cont
= self
->GetFirstEntry(value
, index
);
497 return __EnumerationHelper(cont
, value
, index
);
499 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
500 PyObject
* _resultobj
;
506 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstEntry",&_argc0
))
509 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
515 wxPy_BEGIN_ALLOW_THREADS
;
516 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
518 wxPy_END_ALLOW_THREADS
;
520 _resultobj
= _result
;
525 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
529 cont
= self
->GetNextGroup(value
, index
);
530 return __EnumerationHelper(cont
, value
, index
);
532 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
533 PyObject
* _resultobj
;
540 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextGroup",&_argc0
,&_arg1
))
543 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
549 wxPy_BEGIN_ALLOW_THREADS
;
550 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
552 wxPy_END_ALLOW_THREADS
;
554 _resultobj
= _result
;
559 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
563 cont
= self
->GetNextEntry(value
, index
);
564 return __EnumerationHelper(cont
, value
, index
);
566 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
567 PyObject
* _resultobj
;
574 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextEntry",&_argc0
,&_arg1
))
577 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
583 wxPy_BEGIN_ALLOW_THREADS
;
584 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
586 wxPy_END_ALLOW_THREADS
;
588 _resultobj
= _result
;
593 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
594 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
595 PyObject
* _resultobj
;
603 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfEntries",&_argc0
,&tempbool1
))
606 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
611 _arg1
= (bool ) tempbool1
;
613 wxPy_BEGIN_ALLOW_THREADS
;
614 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
616 wxPy_END_ALLOW_THREADS
;
617 } _resultobj
= Py_BuildValue("i",_result
);
621 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
622 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
623 PyObject
* _resultobj
;
631 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfGroups",&_argc0
,&tempbool1
))
634 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
639 _arg1
= (bool ) tempbool1
;
641 wxPy_BEGIN_ALLOW_THREADS
;
642 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
644 wxPy_END_ALLOW_THREADS
;
645 } _resultobj
= Py_BuildValue("i",_result
);
649 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
650 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
651 PyObject
* _resultobj
;
657 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetPath",&_argc0
))
660 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
666 wxPy_BEGIN_ALLOW_THREADS
;
667 _result
= new wxString (wxConfig_GetPath(_arg0
));
669 wxPy_END_ALLOW_THREADS
;
671 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
679 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
680 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
681 PyObject
* _resultobj
;
687 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetVendorName",&_argc0
))
690 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
696 wxPy_BEGIN_ALLOW_THREADS
;
697 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
699 wxPy_END_ALLOW_THREADS
;
701 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
709 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
710 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
711 PyObject
* _resultobj
;
716 PyObject
* _obj1
= 0;
719 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasEntry",&_argc0
,&_obj1
))
722 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
728 if (!PyString_Check(_obj1
)) {
729 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
732 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
735 wxPy_BEGIN_ALLOW_THREADS
;
736 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
738 wxPy_END_ALLOW_THREADS
;
739 } _resultobj
= Py_BuildValue("i",_result
);
747 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
748 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
749 PyObject
* _resultobj
;
754 PyObject
* _obj1
= 0;
757 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasGroup",&_argc0
,&_obj1
))
760 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
766 if (!PyString_Check(_obj1
)) {
767 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
770 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
773 wxPy_BEGIN_ALLOW_THREADS
;
774 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
776 wxPy_END_ALLOW_THREADS
;
777 } _resultobj
= Py_BuildValue("i",_result
);
785 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
786 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
787 PyObject
* _resultobj
;
793 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsExpandingEnvVars",&_argc0
))
796 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
802 wxPy_BEGIN_ALLOW_THREADS
;
803 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
805 wxPy_END_ALLOW_THREADS
;
806 } _resultobj
= Py_BuildValue("i",_result
);
810 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
811 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
812 PyObject
* _resultobj
;
818 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsRecordingDefaults",&_argc0
))
821 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
827 wxPy_BEGIN_ALLOW_THREADS
;
828 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
830 wxPy_END_ALLOW_THREADS
;
831 } _resultobj
= Py_BuildValue("i",_result
);
835 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
836 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
837 PyObject
* _resultobj
;
841 wxString
* _arg2
= &wxPyEmptyStr
;
843 PyObject
* _obj1
= 0;
844 PyObject
* _obj2
= 0;
847 if(!PyArg_ParseTuple(args
,"sO|O:wxConfig_Read",&_argc0
,&_obj1
,&_obj2
))
850 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
856 if (!PyString_Check(_obj1
)) {
857 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
860 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
864 if (!PyString_Check(_obj2
)) {
865 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
868 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
871 wxPy_BEGIN_ALLOW_THREADS
;
872 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
874 wxPy_END_ALLOW_THREADS
;
876 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
892 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
893 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
894 PyObject
* _resultobj
;
900 PyObject
* _obj1
= 0;
903 if(!PyArg_ParseTuple(args
,"sO|l:wxConfig_ReadInt",&_argc0
,&_obj1
,&_arg2
))
906 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
912 if (!PyString_Check(_obj1
)) {
913 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
916 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
919 wxPy_BEGIN_ALLOW_THREADS
;
920 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
922 wxPy_END_ALLOW_THREADS
;
923 } _resultobj
= Py_BuildValue("l",_result
);
931 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
932 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
933 PyObject
* _resultobj
;
939 PyObject
* _obj1
= 0;
942 if(!PyArg_ParseTuple(args
,"sO|d:wxConfig_ReadFloat",&_argc0
,&_obj1
,&_arg2
))
945 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
951 if (!PyString_Check(_obj1
)) {
952 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
955 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
958 wxPy_BEGIN_ALLOW_THREADS
;
959 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
961 wxPy_END_ALLOW_THREADS
;
962 } _resultobj
= Py_BuildValue("d",_result
);
970 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
971 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
972 PyObject
* _resultobj
;
979 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetExpandEnvVars",&_argc0
,&tempbool1
))
982 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
987 _arg1
= (bool ) tempbool1
;
989 wxPy_BEGIN_ALLOW_THREADS
;
990 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
992 wxPy_END_ALLOW_THREADS
;
993 } Py_INCREF(Py_None
);
994 _resultobj
= Py_None
;
998 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
999 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
1000 PyObject
* _resultobj
;
1004 PyObject
* _obj1
= 0;
1007 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetPath",&_argc0
,&_obj1
))
1010 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1011 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
1016 if (!PyString_Check(_obj1
)) {
1017 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1020 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1023 wxPy_BEGIN_ALLOW_THREADS
;
1024 wxConfig_SetPath(_arg0
,*_arg1
);
1026 wxPy_END_ALLOW_THREADS
;
1027 } Py_INCREF(Py_None
);
1028 _resultobj
= Py_None
;
1036 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
1037 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
1038 PyObject
* _resultobj
;
1045 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetRecordDefaults",&_argc0
,&tempbool1
))
1048 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
1053 _arg1
= (bool ) tempbool1
;
1055 wxPy_BEGIN_ALLOW_THREADS
;
1056 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
1058 wxPy_END_ALLOW_THREADS
;
1059 } Py_INCREF(Py_None
);
1060 _resultobj
= Py_None
;
1064 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1065 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1066 PyObject
* _resultobj
;
1072 PyObject
* _obj1
= 0;
1073 PyObject
* _obj2
= 0;
1076 if(!PyArg_ParseTuple(args
,"sOO:wxConfig_Write",&_argc0
,&_obj1
,&_obj2
))
1079 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1085 if (!PyString_Check(_obj1
)) {
1086 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1089 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1092 if (!PyString_Check(_obj2
)) {
1093 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1096 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1099 wxPy_BEGIN_ALLOW_THREADS
;
1100 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1102 wxPy_END_ALLOW_THREADS
;
1103 } _resultobj
= Py_BuildValue("i",_result
);
1115 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1116 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1117 PyObject
* _resultobj
;
1123 PyObject
* _obj1
= 0;
1126 if(!PyArg_ParseTuple(args
,"sOl:wxConfig_WriteInt",&_argc0
,&_obj1
,&_arg2
))
1129 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1135 if (!PyString_Check(_obj1
)) {
1136 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1139 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1142 wxPy_BEGIN_ALLOW_THREADS
;
1143 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1145 wxPy_END_ALLOW_THREADS
;
1146 } _resultobj
= Py_BuildValue("i",_result
);
1154 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1155 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1156 PyObject
* _resultobj
;
1162 PyObject
* _obj1
= 0;
1165 if(!PyArg_ParseTuple(args
,"sOd:wxConfig_WriteFloat",&_argc0
,&_obj1
,&_arg2
))
1168 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1174 if (!PyString_Check(_obj1
)) {
1175 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1178 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1181 wxPy_BEGIN_ALLOW_THREADS
;
1182 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1184 wxPy_END_ALLOW_THREADS
;
1185 } _resultobj
= Py_BuildValue("i",_result
);
1193 static PyMethodDef utilscMethods
[] = {
1194 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat
, 1 },
1195 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt
, 1 },
1196 { "wxConfig_Write", _wrap_wxConfig_Write
, 1 },
1197 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults
, 1 },
1198 { "wxConfig_SetPath", _wrap_wxConfig_SetPath
, 1 },
1199 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars
, 1 },
1200 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat
, 1 },
1201 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt
, 1 },
1202 { "wxConfig_Read", _wrap_wxConfig_Read
, 1 },
1203 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults
, 1 },
1204 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars
, 1 },
1205 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup
, 1 },
1206 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry
, 1 },
1207 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName
, 1 },
1208 { "wxConfig_GetPath", _wrap_wxConfig_GetPath
, 1 },
1209 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups
, 1 },
1210 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries
, 1 },
1211 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry
, 1 },
1212 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup
, 1 },
1213 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry
, 1 },
1214 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup
, 1 },
1215 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName
, 1 },
1216 { "wxConfig_Flush", _wrap_wxConfig_Flush
, 1 },
1217 { "wxConfig_Exists", _wrap_wxConfig_Exists
, 1 },
1218 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup
, 1 },
1219 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry
, 1 },
1220 { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll
, 1 },
1221 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand
, 1 },
1222 { "delete_wxConfig", _wrap_delete_wxConfig
, 1 },
1223 { "new_wxConfig", _wrap_new_wxConfig
, 1 },
1226 static PyObject
*SWIG_globals
;
1230 SWIGEXPORT(void,initutilsc
)() {
1232 SWIG_globals
= SWIG_newvarlink();
1233 m
= Py_InitModule("utilsc", utilscMethods
);
1234 d
= PyModule_GetDict(m
);
1236 * These are the pointer type-equivalency mappings.
1237 * (Used by the SWIG pointer type-checker).
1239 SWIG_RegisterMapping("_signed_long","_long",0);
1240 SWIG_RegisterMapping("_long","_unsigned_long",0);
1241 SWIG_RegisterMapping("_long","_signed_long",0);
1242 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1243 SWIG_RegisterMapping("_unsigned_long","_long",0);
1244 SWIG_RegisterMapping("_signed_int","_int",0);
1245 SWIG_RegisterMapping("_unsigned_short","_short",0);
1246 SWIG_RegisterMapping("_signed_short","_short",0);
1247 SWIG_RegisterMapping("_unsigned_int","_int",0);
1248 SWIG_RegisterMapping("_short","_unsigned_short",0);
1249 SWIG_RegisterMapping("_short","_signed_short",0);
1250 SWIG_RegisterMapping("_int","_unsigned_int",0);
1251 SWIG_RegisterMapping("_int","_signed_int",0);
1252 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);