static char* wxStringErrorMsg = "string type is required for parameter";
+#ifdef SEPARATE
+ static wxString wxPyEmptyStr("");
+#endif
+
static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
PyObject* ret = PyTuple_New(3);
if (ret) {
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg0 = new wxString(PyString_AsString(_obj0));
+ _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
}
if (_obj1)
{
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
if (_obj2)
{
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg2 = new wxString(PyString_AsString(_obj2));
+ _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
}
if (_obj3)
{
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg3 = new wxString(PyString_AsString(_obj3));
+ _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
}
- _result = (wxConfig *)new_wxConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4);
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfig_p");
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxConfig *)new_wxConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4);
+
+ wxPy_END_ALLOW_THREADS;
+} SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfig_p");
_resultobj = Py_BuildValue("s",_ptemp);
{
if (_obj0)
return NULL;
}
}
- delete_wxConfig(_arg0);
- Py_INCREF(Py_None);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ delete_wxConfig(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
return NULL;
}
}
- wxConfig_DontCreateOnDemand(_arg0);
- Py_INCREF(Py_None);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxConfig_DontCreateOnDemand(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
+#define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
+static PyObject *_wrap_wxConfig_DeleteAll(PyObject *self, PyObject *args) {
+ PyObject * _resultobj;
+ bool _result;
+ wxConfig * _arg0;
+ char * _argc0 = 0;
+
+ self = self;
+ if(!PyArg_ParseTuple(args,"s:wxConfig_DeleteAll",&_argc0))
+ return NULL;
+ if (_argc0) {
+ if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_DeleteAll(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
#define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
static PyObject *_wrap_wxConfig_DeleteEntry(PyObject *self, PyObject *args) {
PyObject * _resultobj;
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
_arg2 = (bool ) tempbool2;
- _result = (bool )wxConfig_DeleteEntry(_arg0,*_arg1,_arg2);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_DeleteEntry(_arg0,*_arg1,_arg2);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
delete _arg1;
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
- _result = (bool )wxConfig_DeleteGroup(_arg0,*_arg1);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_DeleteGroup(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
delete _arg1;
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
- _result = (bool )wxConfig_Exists(_arg0,*_arg1);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_Exists(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
delete _arg1;
}
}
_arg1 = (bool ) tempbool1;
- _result = (bool )wxConfig_Flush(_arg0,_arg1);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_Flush(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
return NULL;
}
}
- _result = new wxString (wxConfig_GetAppName(_arg0));
{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxString (wxConfig_GetAppName(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+}{
_resultobj = PyString_FromString(WXSTRINGCAST *(_result));
}
{
return NULL;
}
}
- _result = (PyObject *)wxConfig_GetFirstGroup(_arg0);
{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (PyObject *)wxConfig_GetFirstGroup(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+}{
_resultobj = _result;
}
return _resultobj;
return NULL;
}
}
- _result = (PyObject *)wxConfig_GetFirstEntry(_arg0);
{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (PyObject *)wxConfig_GetFirstEntry(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+}{
_resultobj = _result;
}
return _resultobj;
return NULL;
}
}
- _result = (PyObject *)wxConfig_GetNextGroup(_arg0,_arg1);
{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (PyObject *)wxConfig_GetNextGroup(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+}{
_resultobj = _result;
}
return _resultobj;
return NULL;
}
}
- _result = (PyObject *)wxConfig_GetNextEntry(_arg0,_arg1);
{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (PyObject *)wxConfig_GetNextEntry(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+}{
_resultobj = _result;
}
return _resultobj;
}
}
_arg1 = (bool ) tempbool1;
- _result = (int )wxConfig_GetNumberOfEntries(_arg0,_arg1);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxConfig_GetNumberOfEntries(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
}
_arg1 = (bool ) tempbool1;
- _result = (int )wxConfig_GetNumberOfGroups(_arg0,_arg1);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxConfig_GetNumberOfGroups(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
return NULL;
}
}
- _result = new wxString (wxConfig_GetPath(_arg0));
{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxString (wxConfig_GetPath(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+}{
_resultobj = PyString_FromString(WXSTRINGCAST *(_result));
}
{
return NULL;
}
}
- _result = new wxString (wxConfig_GetVendorName(_arg0));
{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxString (wxConfig_GetVendorName(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+}{
_resultobj = PyString_FromString(WXSTRINGCAST *(_result));
}
{
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
- _result = (bool )wxConfig_HasEntry(_arg0,*_arg1);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_HasEntry(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
delete _arg1;
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
- _result = (bool )wxConfig_HasGroup(_arg0,*_arg1);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_HasGroup(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
delete _arg1;
return NULL;
}
}
- _result = (bool )wxConfig_IsExpandingEnvVars(_arg0);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_IsExpandingEnvVars(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
return NULL;
}
}
- _result = (bool )wxConfig_IsRecordingDefaults(_arg0);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_IsRecordingDefaults(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
if (_obj2)
{
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg2 = new wxString(PyString_AsString(_obj2));
+ _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
}
- _result = new wxString (wxConfig_Read(_arg0,*_arg1,*_arg2));
{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxString (wxConfig_Read(_arg0,*_arg1,*_arg2));
+
+ wxPy_END_ALLOW_THREADS;
+}{
_resultobj = PyString_FromString(WXSTRINGCAST *(_result));
}
{
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
- _result = (long )wxConfig_ReadInt(_arg0,*_arg1,_arg2);
- _resultobj = Py_BuildValue("l",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (long )wxConfig_ReadInt(_arg0,*_arg1,_arg2);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("l",_result);
{
if (_obj1)
delete _arg1;
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
- _result = (double )wxConfig_ReadFloat(_arg0,*_arg1,_arg2);
- _resultobj = Py_BuildValue("d",_result);
{
- if (_obj1)
- delete _arg1;
-}
- return _resultobj;
-}
-
-#define wxConfig_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0))
-static PyObject *_wrap_wxConfig_SetAppName(PyObject *self, PyObject *args) {
- PyObject * _resultobj;
- wxConfig * _arg0;
- wxString * _arg1;
- char * _argc0 = 0;
- PyObject * _obj1 = 0;
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (double )wxConfig_ReadFloat(_arg0,*_arg1,_arg2);
- self = self;
- if(!PyArg_ParseTuple(args,"sO:wxConfig_SetAppName",&_argc0,&_obj1))
- return NULL;
- if (_argc0) {
- if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetAppName. Expected _wxConfig_p.");
- return NULL;
- }
- }
-{
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AsString(_obj1));
-}
- wxConfig_SetAppName(_arg0,*_arg1);
- Py_INCREF(Py_None);
- _resultobj = Py_None;
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("d",_result);
{
if (_obj1)
delete _arg1;
}
}
_arg1 = (bool ) tempbool1;
- wxConfig_SetExpandEnvVars(_arg0,_arg1);
- Py_INCREF(Py_None);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxConfig_SetExpandEnvVars(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
_resultobj = Py_None;
return _resultobj;
}
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
- wxConfig_SetPath(_arg0,*_arg1);
- Py_INCREF(Py_None);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxConfig_SetPath(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
_resultobj = Py_None;
{
if (_obj1)
}
}
_arg1 = (bool ) tempbool1;
- wxConfig_SetRecordDefaults(_arg0,_arg1);
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-#define wxConfig_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0))
-static PyObject *_wrap_wxConfig_SetVendorName(PyObject *self, PyObject *args) {
- PyObject * _resultobj;
- wxConfig * _arg0;
- wxString * _arg1;
- char * _argc0 = 0;
- PyObject * _obj1 = 0;
-
- self = self;
- if(!PyArg_ParseTuple(args,"sO:wxConfig_SetVendorName",&_argc0,&_obj1))
- return NULL;
- if (_argc0) {
- if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetVendorName. Expected _wxConfig_p.");
- return NULL;
- }
- }
{
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AsString(_obj1));
-}
- wxConfig_SetVendorName(_arg0,*_arg1);
- Py_INCREF(Py_None);
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxConfig_SetRecordDefaults(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
_resultobj = Py_None;
-{
- if (_obj1)
- delete _arg1;
-}
return _resultobj;
}
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
{
if (!PyString_Check(_obj2)) {
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg2 = new wxString(PyString_AsString(_obj2));
+ _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
}
- _result = (bool )wxConfig_Write(_arg0,*_arg1,*_arg2);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_Write(_arg0,*_arg1,*_arg2);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
delete _arg1;
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
- _result = (bool )wxConfig_WriteInt(_arg0,*_arg1,_arg2);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_WriteInt(_arg0,*_arg1,_arg2);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
delete _arg1;
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
return NULL;
}
- _arg1 = new wxString(PyString_AsString(_obj1));
+ _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
}
- _result = (bool )wxConfig_WriteFloat(_arg0,*_arg1,_arg2);
- _resultobj = Py_BuildValue("i",_result);
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxConfig_WriteFloat(_arg0,*_arg1,_arg2);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
{
if (_obj1)
delete _arg1;
{ "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat, 1 },
{ "wxConfig_WriteInt", _wrap_wxConfig_WriteInt, 1 },
{ "wxConfig_Write", _wrap_wxConfig_Write, 1 },
- { "wxConfig_SetVendorName", _wrap_wxConfig_SetVendorName, 1 },
{ "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults, 1 },
{ "wxConfig_SetPath", _wrap_wxConfig_SetPath, 1 },
{ "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars, 1 },
- { "wxConfig_SetAppName", _wrap_wxConfig_SetAppName, 1 },
{ "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat, 1 },
{ "wxConfig_ReadInt", _wrap_wxConfig_ReadInt, 1 },
{ "wxConfig_Read", _wrap_wxConfig_Read, 1 },
{ "wxConfig_Exists", _wrap_wxConfig_Exists, 1 },
{ "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup, 1 },
{ "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry, 1 },
+ { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll, 1 },
{ "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand, 1 },
{ "delete_wxConfig", _wrap_delete_wxConfig, 1 },
{ "new_wxConfig", _wrap_new_wxConfig, 1 },