4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 6)
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) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
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);
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
));
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
;
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;
151 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
155 if (!PyString_Check(_obj0
)) {
156 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
159 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
163 if (!PyString_Check(_obj1
)) {
164 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
167 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
171 if (!PyString_Check(_obj2
)) {
172 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
175 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
179 if (!PyString_Check(_obj3
)) {
180 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
183 _arg3
= new wxString(PyString_AsString(_obj3
), PyString_Size(_obj3
));
186 wxPy_BEGIN_ALLOW_THREADS
;
187 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
189 wxPy_END_ALLOW_THREADS
;
191 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
192 _resultobj
= Py_BuildValue("s",_ptemp
);
195 _resultobj
= Py_None
;
216 #define delete_wxConfig(_swigobj) (delete _swigobj)
217 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
218 PyObject
* _resultobj
;
220 PyObject
* _argo0
= 0;
223 if(!PyArg_ParseTuple(args
,"O:delete_wxConfig",&_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.");
233 wxPy_BEGIN_ALLOW_THREADS
;
234 delete_wxConfig(_arg0
);
236 wxPy_END_ALLOW_THREADS
;
237 } Py_INCREF(Py_None
);
238 _resultobj
= Py_None
;
242 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
243 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
244 PyObject
* _resultobj
;
246 PyObject
* _argo0
= 0;
249 if(!PyArg_ParseTuple(args
,"O:wxConfig_DontCreateOnDemand",&_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.");
259 wxPy_BEGIN_ALLOW_THREADS
;
260 wxConfig_DontCreateOnDemand(_arg0
);
262 wxPy_END_ALLOW_THREADS
;
263 } Py_INCREF(Py_None
);
264 _resultobj
= Py_None
;
268 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
269 static PyObject
*_wrap_wxConfig_DeleteAll(PyObject
*self
, PyObject
*args
) {
270 PyObject
* _resultobj
;
273 PyObject
* _argo0
= 0;
276 if(!PyArg_ParseTuple(args
,"O:wxConfig_DeleteAll",&_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.");
286 wxPy_BEGIN_ALLOW_THREADS
;
287 _result
= (bool )wxConfig_DeleteAll(_arg0
);
289 wxPy_END_ALLOW_THREADS
;
290 } _resultobj
= Py_BuildValue("i",_result
);
294 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
295 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
296 PyObject
* _resultobj
;
300 bool _arg2
= (bool ) TRUE
;
301 PyObject
* _argo0
= 0;
302 PyObject
* _obj1
= 0;
303 int tempbool2
= (int) TRUE
;
306 if(!PyArg_ParseTuple(args
,"OO|i:wxConfig_DeleteEntry",&_argo0
,&_obj1
,&tempbool2
))
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.");
316 if (!PyString_Check(_obj1
)) {
317 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
320 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
322 _arg2
= (bool ) tempbool2
;
324 wxPy_BEGIN_ALLOW_THREADS
;
325 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
327 wxPy_END_ALLOW_THREADS
;
328 } _resultobj
= Py_BuildValue("i",_result
);
336 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
337 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
338 PyObject
* _resultobj
;
342 PyObject
* _argo0
= 0;
343 PyObject
* _obj1
= 0;
346 if(!PyArg_ParseTuple(args
,"OO:wxConfig_DeleteGroup",&_argo0
,&_obj1
))
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.");
356 if (!PyString_Check(_obj1
)) {
357 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
360 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
363 wxPy_BEGIN_ALLOW_THREADS
;
364 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
366 wxPy_END_ALLOW_THREADS
;
367 } _resultobj
= Py_BuildValue("i",_result
);
375 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
376 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
377 PyObject
* _resultobj
;
381 PyObject
* _argo0
= 0;
382 PyObject
* _obj1
= 0;
385 if(!PyArg_ParseTuple(args
,"OO:wxConfig_Exists",&_argo0
,&_obj1
))
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.");
395 if (!PyString_Check(_obj1
)) {
396 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
399 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
402 wxPy_BEGIN_ALLOW_THREADS
;
403 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
405 wxPy_END_ALLOW_THREADS
;
406 } _resultobj
= Py_BuildValue("i",_result
);
414 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
415 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
416 PyObject
* _resultobj
;
419 bool _arg1
= (bool ) FALSE
;
420 PyObject
* _argo0
= 0;
421 int tempbool1
= (int) FALSE
;
424 if(!PyArg_ParseTuple(args
,"O|i:wxConfig_Flush",&_argo0
,&tempbool1
))
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.");
433 _arg1
= (bool ) tempbool1
;
435 wxPy_BEGIN_ALLOW_THREADS
;
436 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
438 wxPy_END_ALLOW_THREADS
;
439 } _resultobj
= Py_BuildValue("i",_result
);
443 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
444 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
445 PyObject
* _resultobj
;
448 PyObject
* _argo0
= 0;
451 if(!PyArg_ParseTuple(args
,"O:wxConfig_GetAppName",&_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.");
461 wxPy_BEGIN_ALLOW_THREADS
;
462 _result
= new wxString (wxConfig_GetAppName(_arg0
));
464 wxPy_END_ALLOW_THREADS
;
466 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
474 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
479 cont
= self
->GetFirstGroup(value
, index
);
480 return __EnumerationHelper(cont
, value
, index
);
482 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
483 PyObject
* _resultobj
;
486 PyObject
* _argo0
= 0;
489 if(!PyArg_ParseTuple(args
,"O:wxConfig_GetFirstGroup",&_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.");
499 wxPy_BEGIN_ALLOW_THREADS
;
500 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
502 wxPy_END_ALLOW_THREADS
;
504 _resultobj
= _result
;
509 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
514 cont
= self
->GetFirstEntry(value
, index
);
515 return __EnumerationHelper(cont
, value
, index
);
517 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
518 PyObject
* _resultobj
;
521 PyObject
* _argo0
= 0;
524 if(!PyArg_ParseTuple(args
,"O:wxConfig_GetFirstEntry",&_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.");
534 wxPy_BEGIN_ALLOW_THREADS
;
535 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
537 wxPy_END_ALLOW_THREADS
;
539 _resultobj
= _result
;
544 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
548 cont
= self
->GetNextGroup(value
, index
);
549 return __EnumerationHelper(cont
, value
, index
);
551 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
552 PyObject
* _resultobj
;
556 PyObject
* _argo0
= 0;
559 if(!PyArg_ParseTuple(args
,"Ol:wxConfig_GetNextGroup",&_argo0
,&_arg1
))
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.");
569 wxPy_BEGIN_ALLOW_THREADS
;
570 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
572 wxPy_END_ALLOW_THREADS
;
574 _resultobj
= _result
;
579 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
583 cont
= self
->GetNextEntry(value
, index
);
584 return __EnumerationHelper(cont
, value
, index
);
586 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
587 PyObject
* _resultobj
;
591 PyObject
* _argo0
= 0;
594 if(!PyArg_ParseTuple(args
,"Ol:wxConfig_GetNextEntry",&_argo0
,&_arg1
))
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.");
604 wxPy_BEGIN_ALLOW_THREADS
;
605 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
607 wxPy_END_ALLOW_THREADS
;
609 _resultobj
= _result
;
614 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
615 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
616 PyObject
* _resultobj
;
619 bool _arg1
= (bool ) FALSE
;
620 PyObject
* _argo0
= 0;
621 int tempbool1
= (int) FALSE
;
624 if(!PyArg_ParseTuple(args
,"O|i:wxConfig_GetNumberOfEntries",&_argo0
,&tempbool1
))
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.");
633 _arg1
= (bool ) tempbool1
;
635 wxPy_BEGIN_ALLOW_THREADS
;
636 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
638 wxPy_END_ALLOW_THREADS
;
639 } _resultobj
= Py_BuildValue("i",_result
);
643 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
644 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
645 PyObject
* _resultobj
;
648 bool _arg1
= (bool ) FALSE
;
649 PyObject
* _argo0
= 0;
650 int tempbool1
= (int) FALSE
;
653 if(!PyArg_ParseTuple(args
,"O|i:wxConfig_GetNumberOfGroups",&_argo0
,&tempbool1
))
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.");
662 _arg1
= (bool ) tempbool1
;
664 wxPy_BEGIN_ALLOW_THREADS
;
665 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
667 wxPy_END_ALLOW_THREADS
;
668 } _resultobj
= Py_BuildValue("i",_result
);
672 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
673 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
674 PyObject
* _resultobj
;
677 PyObject
* _argo0
= 0;
680 if(!PyArg_ParseTuple(args
,"O:wxConfig_GetPath",&_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.");
690 wxPy_BEGIN_ALLOW_THREADS
;
691 _result
= new wxString (wxConfig_GetPath(_arg0
));
693 wxPy_END_ALLOW_THREADS
;
695 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
703 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
704 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
705 PyObject
* _resultobj
;
708 PyObject
* _argo0
= 0;
711 if(!PyArg_ParseTuple(args
,"O:wxConfig_GetVendorName",&_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.");
721 wxPy_BEGIN_ALLOW_THREADS
;
722 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
724 wxPy_END_ALLOW_THREADS
;
726 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
734 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
735 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
736 PyObject
* _resultobj
;
740 PyObject
* _argo0
= 0;
741 PyObject
* _obj1
= 0;
744 if(!PyArg_ParseTuple(args
,"OO:wxConfig_HasEntry",&_argo0
,&_obj1
))
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.");
754 if (!PyString_Check(_obj1
)) {
755 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
758 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
761 wxPy_BEGIN_ALLOW_THREADS
;
762 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
764 wxPy_END_ALLOW_THREADS
;
765 } _resultobj
= Py_BuildValue("i",_result
);
773 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
774 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
775 PyObject
* _resultobj
;
779 PyObject
* _argo0
= 0;
780 PyObject
* _obj1
= 0;
783 if(!PyArg_ParseTuple(args
,"OO:wxConfig_HasGroup",&_argo0
,&_obj1
))
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.");
793 if (!PyString_Check(_obj1
)) {
794 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
797 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
800 wxPy_BEGIN_ALLOW_THREADS
;
801 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
803 wxPy_END_ALLOW_THREADS
;
804 } _resultobj
= Py_BuildValue("i",_result
);
812 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
813 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
814 PyObject
* _resultobj
;
817 PyObject
* _argo0
= 0;
820 if(!PyArg_ParseTuple(args
,"O:wxConfig_IsExpandingEnvVars",&_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.");
830 wxPy_BEGIN_ALLOW_THREADS
;
831 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
833 wxPy_END_ALLOW_THREADS
;
834 } _resultobj
= Py_BuildValue("i",_result
);
838 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
839 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
840 PyObject
* _resultobj
;
843 PyObject
* _argo0
= 0;
846 if(!PyArg_ParseTuple(args
,"O:wxConfig_IsRecordingDefaults",&_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.");
856 wxPy_BEGIN_ALLOW_THREADS
;
857 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
859 wxPy_END_ALLOW_THREADS
;
860 } _resultobj
= Py_BuildValue("i",_result
);
864 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
865 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
866 PyObject
* _resultobj
;
870 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
871 PyObject
* _argo0
= 0;
872 PyObject
* _obj1
= 0;
873 PyObject
* _obj2
= 0;
876 if(!PyArg_ParseTuple(args
,"OO|O:wxConfig_Read",&_argo0
,&_obj1
,&_obj2
))
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.");
886 if (!PyString_Check(_obj1
)) {
887 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
890 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
894 if (!PyString_Check(_obj2
)) {
895 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
898 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
901 wxPy_BEGIN_ALLOW_THREADS
;
902 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
904 wxPy_END_ALLOW_THREADS
;
906 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
922 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
923 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
924 PyObject
* _resultobj
;
928 long _arg2
= (long ) 0;
929 PyObject
* _argo0
= 0;
930 PyObject
* _obj1
= 0;
933 if(!PyArg_ParseTuple(args
,"OO|l:wxConfig_ReadInt",&_argo0
,&_obj1
,&_arg2
))
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.");
943 if (!PyString_Check(_obj1
)) {
944 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
947 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
950 wxPy_BEGIN_ALLOW_THREADS
;
951 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
953 wxPy_END_ALLOW_THREADS
;
954 } _resultobj
= Py_BuildValue("l",_result
);
962 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
963 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
964 PyObject
* _resultobj
;
968 double _arg2
= (double ) 0.0;
969 PyObject
* _argo0
= 0;
970 PyObject
* _obj1
= 0;
973 if(!PyArg_ParseTuple(args
,"OO|d:wxConfig_ReadFloat",&_argo0
,&_obj1
,&_arg2
))
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.");
983 if (!PyString_Check(_obj1
)) {
984 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
987 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
990 wxPy_BEGIN_ALLOW_THREADS
;
991 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
993 wxPy_END_ALLOW_THREADS
;
994 } _resultobj
= Py_BuildValue("d",_result
);
1002 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
1003 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
1004 PyObject
* _resultobj
;
1006 bool _arg1
= (bool ) TRUE
;
1007 PyObject
* _argo0
= 0;
1008 int tempbool1
= (int) TRUE
;
1011 if(!PyArg_ParseTuple(args
,"O|i:wxConfig_SetExpandEnvVars",&_argo0
,&tempbool1
))
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.");
1020 _arg1
= (bool ) tempbool1
;
1022 wxPy_BEGIN_ALLOW_THREADS
;
1023 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
1025 wxPy_END_ALLOW_THREADS
;
1026 } Py_INCREF(Py_None
);
1027 _resultobj
= Py_None
;
1031 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
1032 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
1033 PyObject
* _resultobj
;
1036 PyObject
* _argo0
= 0;
1037 PyObject
* _obj1
= 0;
1040 if(!PyArg_ParseTuple(args
,"OO:wxConfig_SetPath",&_argo0
,&_obj1
))
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.");
1050 if (!PyString_Check(_obj1
)) {
1051 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1054 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1057 wxPy_BEGIN_ALLOW_THREADS
;
1058 wxConfig_SetPath(_arg0
,*_arg1
);
1060 wxPy_END_ALLOW_THREADS
;
1061 } Py_INCREF(Py_None
);
1062 _resultobj
= Py_None
;
1070 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
1071 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
1072 PyObject
* _resultobj
;
1074 bool _arg1
= (bool ) TRUE
;
1075 PyObject
* _argo0
= 0;
1076 int tempbool1
= (int) TRUE
;
1079 if(!PyArg_ParseTuple(args
,"O|i:wxConfig_SetRecordDefaults",&_argo0
,&tempbool1
))
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.");
1088 _arg1
= (bool ) tempbool1
;
1090 wxPy_BEGIN_ALLOW_THREADS
;
1091 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
1093 wxPy_END_ALLOW_THREADS
;
1094 } Py_INCREF(Py_None
);
1095 _resultobj
= Py_None
;
1099 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1100 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1101 PyObject
* _resultobj
;
1106 PyObject
* _argo0
= 0;
1107 PyObject
* _obj1
= 0;
1108 PyObject
* _obj2
= 0;
1111 if(!PyArg_ParseTuple(args
,"OOO:wxConfig_Write",&_argo0
,&_obj1
,&_obj2
))
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.");
1121 if (!PyString_Check(_obj1
)) {
1122 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1125 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1128 if (!PyString_Check(_obj2
)) {
1129 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1132 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1135 wxPy_BEGIN_ALLOW_THREADS
;
1136 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1138 wxPy_END_ALLOW_THREADS
;
1139 } _resultobj
= Py_BuildValue("i",_result
);
1151 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1152 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1153 PyObject
* _resultobj
;
1158 PyObject
* _argo0
= 0;
1159 PyObject
* _obj1
= 0;
1162 if(!PyArg_ParseTuple(args
,"OOl:wxConfig_WriteInt",&_argo0
,&_obj1
,&_arg2
))
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.");
1172 if (!PyString_Check(_obj1
)) {
1173 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1176 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1179 wxPy_BEGIN_ALLOW_THREADS
;
1180 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1182 wxPy_END_ALLOW_THREADS
;
1183 } _resultobj
= Py_BuildValue("i",_result
);
1191 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1192 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1193 PyObject
* _resultobj
;
1198 PyObject
* _argo0
= 0;
1199 PyObject
* _obj1
= 0;
1202 if(!PyArg_ParseTuple(args
,"OOd:wxConfig_WriteFloat",&_argo0
,&_obj1
,&_arg2
))
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.");
1212 if (!PyString_Check(_obj1
)) {
1213 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1216 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1219 wxPy_BEGIN_ALLOW_THREADS
;
1220 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1222 wxPy_END_ALLOW_THREADS
;
1223 } _resultobj
= Py_BuildValue("i",_result
);
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
},
1268 * This table is used by the pointer type-checker
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},
1287 static PyObject
*SWIG_globals
;
1291 SWIGEXPORT(void) initutilsc() {
1293 SWIG_globals
= SWIG_newvarlink();
1294 m
= Py_InitModule("utilsc", utilscMethods
);
1295 d
= PyModule_GetDict(m
);
1298 wxClassInfo::CleanUpClasses();
1299 wxClassInfo::InitializeClasses();
1303 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1304 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);