}
return target;
}
+
+ // Put some wx default wxChar* values into wxStrings.
+ DECLARE_DEF_STRING(FileSelectorPromptStr);
+ DECLARE_DEF_STRING(DirSelectorPromptStr);
+ DECLARE_DEF_STRING(DirDialogNameStr);
+ DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr);
+ DECLARE_DEF_STRING(GetTextFromUserPromptStr);
+ DECLARE_DEF_STRING(MessageBoxCaptionStr);
+ static const wxString wxPyEmptyString(wxT(""));
+
#ifdef __cplusplus
extern "C" {
#endif
return (void *) dest;
}
-#define new_wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
+#define new_wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxDirDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxDirDialog * _result;
wxWindow * _arg0;
- char * _arg1 = (char *) "Choose a directory";
- char * _arg2 = (char *) "";
+ wxString * _arg1 = (wxString *) &wxPyDirSelectorPromptStr;
+ wxString * _arg2 = (wxString *) &wxPyEmptyString;
long _arg3 = (long ) 0;
wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
+ wxSize * _arg5 = (wxSize *) &wxDefaultSize;
+ wxString * _arg6 = (wxString *) &wxPyDirDialogNameStr;
PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ PyObject * _obj2 = 0;
wxPoint temp;
PyObject * _obj4 = 0;
- char *_kwnames[] = { "parent","message","defaultPath","style","pos", NULL };
+ wxSize temp0;
+ PyObject * _obj5 = 0;
+ PyObject * _obj6 = 0;
+ char *_kwnames[] = { "parent","message","defaultPath","style","pos","size","name", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sslO:new_wxDirDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOlOOO:new_wxDirDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_obj4,&_obj5,&_obj6))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
return NULL;
}
}
+ if (_obj1)
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+ if (_obj2)
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
if (_obj4)
{
_arg4 = &temp;
if (! wxPoint_helper(_obj4, &_arg4))
return NULL;
+}
+ if (_obj5)
+{
+ _arg5 = &temp0;
+ if (! wxSize_helper(_obj5, &_arg5))
+ return NULL;
+}
+ if (_obj6)
+{
+ _arg6 = wxString_in_helper(_obj6);
+ if (_arg6 == NULL)
+ return NULL;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxDirDialog *)new_wxDirDialog(_arg0,_arg1,_arg2,_arg3,*_arg4);
+ _result = (wxDirDialog *)new_wxDirDialog(_arg0,*_arg1,*_arg2,_arg3,*_arg4,*_arg5,*_arg6);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
Py_INCREF(Py_None);
_resultobj = Py_None;
}
+{
+ if (_obj1)
+ delete _arg1;
+}
+{
+ if (_obj2)
+ delete _arg2;
+}
+{
+ if (_obj6)
+ delete _arg6;
+}
return _resultobj;
}
PyObject * _resultobj;
wxFileDialog * _result;
wxWindow * _arg0;
- char * _arg1 = (char *) "Choose a file";
- char * _arg2 = (char *) "";
- char * _arg3 = (char *) "";
- char * _arg4 = (char *) "*.*";
+ wxString * _arg1 = (wxString *) &wxPyFileSelectorPromptStr;
+ wxString * _arg2 = (wxString *) &wxPyEmptyString;
+ wxString * _arg3 = (wxString *) &wxPyEmptyString;
+ wxString * _arg4 = (wxString *) &wxPyFileSelectorDefaultWildcardStr;
long _arg5 = (long ) 0;
wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition;
PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ PyObject * _obj2 = 0;
+ PyObject * _obj3 = 0;
+ PyObject * _obj4 = 0;
wxPoint temp;
PyObject * _obj6 = 0;
char *_kwnames[] = { "parent","message","defaultDir","defaultFile","wildcard","style","pos", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sssslO:new_wxFileDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOOlO:new_wxFileDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
return NULL;
}
}
+ if (_obj1)
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+ if (_obj2)
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
+ if (_obj3)
+{
+ _arg3 = wxString_in_helper(_obj3);
+ if (_arg3 == NULL)
+ return NULL;
+}
+ if (_obj4)
+{
+ _arg4 = wxString_in_helper(_obj4);
+ if (_arg4 == NULL)
+ return NULL;
+}
if (_obj6)
{
_arg6 = &temp;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxFileDialog *)new_wxFileDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6);
+ _result = (wxFileDialog *)new_wxFileDialog(_arg0,*_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
Py_INCREF(Py_None);
_resultobj = Py_None;
}
+{
+ if (_obj1)
+ delete _arg1;
+}
+{
+ if (_obj2)
+ delete _arg2;
+}
+{
+ if (_obj3)
+ delete _arg3;
+}
+{
+ if (_obj4)
+ delete _arg4;
+}
return _resultobj;
}
PyObject * _resultobj;
wxTextEntryDialog * _result;
wxWindow * _arg0;
- char * _arg1;
- char * _arg2 = (char *) "Input Text";
- char * _arg3 = (char *) "";
+ wxString * _arg1;
+ wxString * _arg2 = (wxString *) &wxPyGetTextFromUserPromptStr;
+ wxString * _arg3 = (wxString *) &wxPyEmptyString;
long _arg4 = (long ) wxOK|wxCANCEL|wxCENTRE;
wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition;
PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ PyObject * _obj2 = 0;
+ PyObject * _obj3 = 0;
wxPoint temp;
PyObject * _obj5 = 0;
char *_kwnames[] = { "parent","message","caption","defaultValue","style","pos", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|sslO:new_wxTextEntryDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OOlO:new_wxTextEntryDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_arg4,&_obj5))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
return NULL;
}
}
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+ if (_obj2)
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
+ if (_obj3)
+{
+ _arg3 = wxString_in_helper(_obj3);
+ if (_arg3 == NULL)
+ return NULL;
+}
if (_obj5)
{
_arg5 = &temp;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxTextEntryDialog *)new_wxTextEntryDialog(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5);
+ _result = (wxTextEntryDialog *)new_wxTextEntryDialog(_arg0,*_arg1,*_arg2,*_arg3,_arg4,*_arg5);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
Py_INCREF(Py_None);
_resultobj = Py_None;
}
+{
+ if (_obj1)
+ delete _arg1;
+}
+{
+ if (_obj2)
+ delete _arg2;
+}
+{
+ if (_obj3)
+ delete _arg3;
+}
return _resultobj;
}
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxFontDialog *)new_wxFontDialog(_arg0,_arg1);
+ _result = (wxFontDialog *)new_wxFontDialog(_arg0,*_arg1);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
PyObject * _resultobj;
wxMessageDialog * _result;
wxWindow * _arg0;
- char * _arg1;
- char * _arg2 = (char *) "Message box";
+ wxString * _arg1;
+ wxString * _arg2 = (wxString *) &wxPyMessageBoxCaptionStr;
long _arg3 = (long ) wxOK|wxCANCEL|wxCENTRE;
wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ PyObject * _obj2 = 0;
wxPoint temp;
PyObject * _obj4 = 0;
char *_kwnames[] = { "parent","message","caption","style","pos", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|slO:new_wxMessageDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OlO:new_wxMessageDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_obj4))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
return NULL;
}
}
+{
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
+ return NULL;
+}
+ if (_obj2)
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
if (_obj4)
{
_arg4 = &temp;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (wxMessageDialog *)new_wxMessageDialog(_arg0,_arg1,_arg2,_arg3,*_arg4);
+ _result = (wxMessageDialog *)new_wxMessageDialog(_arg0,*_arg1,*_arg2,_arg3,*_arg4);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
Py_INCREF(Py_None);
_resultobj = Py_None;
}
+{
+ if (_obj1)
+ delete _arg1;
+}
+{
+ if (_obj2)
+ delete _arg2;
+}
return _resultobj;
}
PyObject * _resultobj;
bool _result;
wxProgressDialog * _arg0;
- int _arg1 = (int ) -1;
- char * _arg2 = (char *) NULL;
+ int _arg1;
+ wxString * _arg2 = (wxString *) &wxPyEmptyString;
PyObject * _argo0 = 0;
+ PyObject * _obj2 = 0;
char *_kwnames[] = { "self","value","newmsg", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|is:wxProgressDialog_Update",_kwnames,&_argo0,&_arg1,&_arg2))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxProgressDialog_Update",_kwnames,&_argo0,&_arg1,&_obj2))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
return NULL;
}
}
+ if (_obj2)
+{
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
+ return NULL;
+}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- _result = (bool )wxProgressDialog_Update(_arg0,_arg1,_arg2);
+ _result = (bool )wxProgressDialog_Update(_arg0,_arg1,*_arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
+{
+ if (_obj2)
+ delete _arg2;
+}
return _resultobj;
}