From faf3cb3590e7bead27735c94014df39025cfc12b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 15 Nov 1998 23:04:59 +0000 Subject: [PATCH] Removing some ifdef's for wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/wxPython/src/_defs.i | 6 +- utils/wxPython/src/cmndlgs.i | 8 +- utils/wxPython/src/controls.i | 9 +- utils/wxPython/src/frames.i | 2 - utils/wxPython/src/gtk/cmndlgs.cpp | 1501 +++++++++++++++++++++++++- utils/wxPython/src/gtk/cmndlgs.py | 241 +++++ utils/wxPython/src/gtk/controls.cpp | 146 ++- utils/wxPython/src/gtk/controls.py | 15 + utils/wxPython/src/gtk/controls2.cpp | 6 +- utils/wxPython/src/gtk/events.cpp | 6 +- utils/wxPython/src/gtk/frames.cpp | 36 +- utils/wxPython/src/gtk/frames.py | 3 + utils/wxPython/src/gtk/gdi.cpp | 6 +- utils/wxPython/src/gtk/mdi.cpp | 6 +- utils/wxPython/src/gtk/misc.cpp | 148 ++- utils/wxPython/src/gtk/misc.py | 40 + utils/wxPython/src/gtk/stattool.cpp | 6 +- utils/wxPython/src/gtk/windows.cpp | 6 +- utils/wxPython/src/gtk/windows2.cpp | 6 +- utils/wxPython/src/gtk/wxp.cpp | 14 +- utils/wxPython/src/gtk/wxp.py | 8 +- utils/wxPython/src/helpers.cpp | 74 +- utils/wxPython/src/misc.i | 6 +- utils/wxPython/src/my_typemaps.i | 5 +- 24 files changed, 2185 insertions(+), 119 deletions(-) diff --git a/utils/wxPython/src/_defs.i b/utils/wxPython/src/_defs.i index 3c3e479088..79884f13cf 100644 --- a/utils/wxPython/src/_defs.i +++ b/utils/wxPython/src/_defs.i @@ -330,11 +330,9 @@ enum { wxHIDE_READONLY, wxOVERWRITE_PROMPT, -#ifdef __WXMSW__ wxACCEL_ALT, wxACCEL_CTRL, wxACCEL_SHIFT, -#endif }; @@ -701,7 +699,11 @@ enum wxEventType { ///////////////////////////////////////////////////////////////////////////// // // $Log$ +// Revision 1.8 1998/11/15 23:03:42 RD +// Removing some ifdef's for wxGTK +// // Revision 1.7 1998/11/11 03:12:24 RD +// // Additions for wxTreeCtrl // // Revision 1.6 1998/10/20 06:43:53 RD diff --git a/utils/wxPython/src/cmndlgs.i b/utils/wxPython/src/cmndlgs.i index 7b54918616..56e22d9d1a 100644 --- a/utils/wxPython/src/cmndlgs.i +++ b/utils/wxPython/src/cmndlgs.i @@ -203,7 +203,6 @@ public: //---------------------------------------------------------------------- -#ifdef __WXMSW__ class wxPageSetupData { public: wxPageSetupData(); @@ -247,11 +246,9 @@ public: wxPageSetupData& GetPageSetupData(); int ShowModal(); }; -#endif //---------------------------------------------------------------------- -#ifdef __WXMSW__ class wxPrintData { public: wxPrintData(); @@ -291,7 +288,6 @@ public: wxDC* GetPrintDC(); int ShowModal(); }; -#endif //---------------------------------------------------------------------- @@ -314,7 +310,11 @@ public: ///////////////////////////////////////////////////////////////////////////// // // $Log$ +// Revision 1.5 1998/11/15 23:03:43 RD +// Removing some ifdef's for wxGTK +// // Revision 1.4 1998/10/02 06:40:34 RD +// // Version 0.4 of wxPython for MSW. // // Revision 1.3 1998/08/18 19:48:13 RD diff --git a/utils/wxPython/src/controls.i b/utils/wxPython/src/controls.i index 0f4058808a..c0b0bf8096 100644 --- a/utils/wxPython/src/controls.i +++ b/utils/wxPython/src/controls.i @@ -310,18 +310,14 @@ public: void DiscardEdits(); long GetInsertionPoint(); long GetLastPosition(); -#ifdef __WXMSW__ int GetLineLength(long lineNo); wxString GetLineText(long lineNo); int GetNumberOfLines(); -#endif wxString GetValue(); bool IsModified(); bool LoadFile(const wxString& filename); void Paste(); -#ifdef __WXMSW__ void PositionToXY(long pos, long *OUTPUT, long *OUTPUT); -#endif void Remove(long from, long to); void Replace(long from, long to, const wxString& value); bool SaveFile(const wxString& filename); @@ -332,9 +328,7 @@ public: void SetValue(const wxString& value); void ShowPosition(long pos); void WriteText(const wxString& text); -#ifdef __WXMSW__ long XYToPosition(long x, long y); -#endif }; //---------------------------------------------------------------------- @@ -491,6 +485,9 @@ public: ///////////////////////////////////////////////////////////////////////////// // // $Log$ +// Revision 1.6 1998/11/15 23:03:43 RD +// Removing some ifdef's for wxGTK +// // Revision 1.5 1998/10/07 07:34:32 RD // Version 0.4.1 for wxGTK // diff --git a/utils/wxPython/src/frames.i b/utils/wxPython/src/frames.i index 5dc589fff7..8fa8ee5416 100644 --- a/utils/wxPython/src/frames.i +++ b/utils/wxPython/src/frames.i @@ -66,9 +66,7 @@ public: void Iconize(bool iconize); bool IsIconized(); void Maximize(bool maximize); -#ifdef __WXMSW__ void SetAcceleratorTable(const wxAcceleratorTable& accel); -#endif void SetIcon(const wxIcon& icon); void SetMenuBar(wxMenuBar* menuBar); void SetStatusBar(wxStatusBar *statusBar); diff --git a/utils/wxPython/src/gtk/cmndlgs.cpp b/utils/wxPython/src/gtk/cmndlgs.cpp index 628d6db024..829453a08b 100644 --- a/utils/wxPython/src/gtk/cmndlgs.cpp +++ b/utils/wxPython/src/gtk/cmndlgs.cpp @@ -113,9 +113,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -1694,6 +1692,1403 @@ static PyObject *_wrap_wxFontDialog_ShowModal(PyObject *self, PyObject *args) { return _resultobj; } +#define new_wxPageSetupData() (new wxPageSetupData()) +static PyObject *_wrap_new_wxPageSetupData(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _result; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,":new_wxPageSetupData")) + return NULL; + _result = (wxPageSetupData *)new_wxPageSetupData(); + SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupData_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define delete_wxPageSetupData(_swigobj) (delete _swigobj) +static PyObject *_wrap_delete_wxPageSetupData(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:delete_wxPageSetupData",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPageSetupData. Expected _wxPageSetupData_p."); + return NULL; + } + } + delete_wxPageSetupData(_arg0); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_EnableHelp(_swigobj,_swigarg0) (_swigobj->EnableHelp(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_EnableHelp(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPageSetupData_EnableHelp",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_EnableHelp. Expected _wxPageSetupData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPageSetupData_EnableHelp(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_EnableMargins(_swigobj,_swigarg0) (_swigobj->EnableMargins(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_EnableMargins(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPageSetupData_EnableMargins",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_EnableMargins. Expected _wxPageSetupData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPageSetupData_EnableMargins(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_EnableOrientation(_swigobj,_swigarg0) (_swigobj->EnableOrientation(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_EnableOrientation(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPageSetupData_EnableOrientation",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_EnableOrientation. Expected _wxPageSetupData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPageSetupData_EnableOrientation(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_EnablePaper(_swigobj,_swigarg0) (_swigobj->EnablePaper(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_EnablePaper(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPageSetupData_EnablePaper",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_EnablePaper. Expected _wxPageSetupData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPageSetupData_EnablePaper(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_EnablePrinter(_swigobj,_swigarg0) (_swigobj->EnablePrinter(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_EnablePrinter(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPageSetupData_EnablePrinter",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_EnablePrinter. Expected _wxPageSetupData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPageSetupData_EnablePrinter(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_GetPaperSize(_swigobj) (_swigobj->GetPaperSize()) +static PyObject *_wrap_wxPageSetupData_GetPaperSize(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPoint * _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetPaperSize",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetPaperSize. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = new wxPoint (wxPageSetupData_GetPaperSize(_arg0)); + SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxPageSetupData_GetMarginTopLeft(_swigobj) (_swigobj->GetMarginTopLeft()) +static PyObject *_wrap_wxPageSetupData_GetMarginTopLeft(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPoint * _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetMarginTopLeft",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetMarginTopLeft. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = new wxPoint (wxPageSetupData_GetMarginTopLeft(_arg0)); + SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxPageSetupData_GetMarginBottomRight(_swigobj) (_swigobj->GetMarginBottomRight()) +static PyObject *_wrap_wxPageSetupData_GetMarginBottomRight(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPoint * _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetMarginBottomRight",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetMarginBottomRight. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = new wxPoint (wxPageSetupData_GetMarginBottomRight(_arg0)); + SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxPageSetupData_GetMinMarginTopLeft(_swigobj) (_swigobj->GetMinMarginTopLeft()) +static PyObject *_wrap_wxPageSetupData_GetMinMarginTopLeft(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPoint * _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetMinMarginTopLeft",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetMinMarginTopLeft. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = new wxPoint (wxPageSetupData_GetMinMarginTopLeft(_arg0)); + SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxPageSetupData_GetMinMarginBottomRight(_swigobj) (_swigobj->GetMinMarginBottomRight()) +static PyObject *_wrap_wxPageSetupData_GetMinMarginBottomRight(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPoint * _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetMinMarginBottomRight",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetMinMarginBottomRight. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = new wxPoint (wxPageSetupData_GetMinMarginBottomRight(_arg0)); + SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxPageSetupData_GetOrientation(_swigobj) (_swigobj->GetOrientation()) +static PyObject *_wrap_wxPageSetupData_GetOrientation(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetOrientation",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetOrientation. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = (int )wxPageSetupData_GetOrientation(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPageSetupData_GetDefaultMinMargins(_swigobj) (_swigobj->GetDefaultMinMargins()) +static PyObject *_wrap_wxPageSetupData_GetDefaultMinMargins(PyObject *self, PyObject *args) { + PyObject * _resultobj; + bool _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetDefaultMinMargins",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetDefaultMinMargins. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = (bool )wxPageSetupData_GetDefaultMinMargins(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPageSetupData_GetEnableMargins(_swigobj) (_swigobj->GetEnableMargins()) +static PyObject *_wrap_wxPageSetupData_GetEnableMargins(PyObject *self, PyObject *args) { + PyObject * _resultobj; + bool _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetEnableMargins",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetEnableMargins. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = (bool )wxPageSetupData_GetEnableMargins(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPageSetupData_GetEnableOrientation(_swigobj) (_swigobj->GetEnableOrientation()) +static PyObject *_wrap_wxPageSetupData_GetEnableOrientation(PyObject *self, PyObject *args) { + PyObject * _resultobj; + bool _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetEnableOrientation",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetEnableOrientation. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = (bool )wxPageSetupData_GetEnableOrientation(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPageSetupData_GetEnablePaper(_swigobj) (_swigobj->GetEnablePaper()) +static PyObject *_wrap_wxPageSetupData_GetEnablePaper(PyObject *self, PyObject *args) { + PyObject * _resultobj; + bool _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetEnablePaper",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetEnablePaper. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = (bool )wxPageSetupData_GetEnablePaper(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPageSetupData_GetEnablePrinter(_swigobj) (_swigobj->GetEnablePrinter()) +static PyObject *_wrap_wxPageSetupData_GetEnablePrinter(PyObject *self, PyObject *args) { + PyObject * _resultobj; + bool _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetEnablePrinter",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetEnablePrinter. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = (bool )wxPageSetupData_GetEnablePrinter(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPageSetupData_GetEnableHelp(_swigobj) (_swigobj->GetEnableHelp()) +static PyObject *_wrap_wxPageSetupData_GetEnableHelp(PyObject *self, PyObject *args) { + PyObject * _resultobj; + bool _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetEnableHelp",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetEnableHelp. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = (bool )wxPageSetupData_GetEnableHelp(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPageSetupData_GetDefaultInfo(_swigobj) (_swigobj->GetDefaultInfo()) +static PyObject *_wrap_wxPageSetupData_GetDefaultInfo(PyObject *self, PyObject *args) { + PyObject * _resultobj; + bool _result; + wxPageSetupData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupData_GetDefaultInfo",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_GetDefaultInfo. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = (bool )wxPageSetupData_GetDefaultInfo(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPageSetupData_SetPaperSize(_swigobj,_swigarg0) (_swigobj->SetPaperSize(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_SetPaperSize(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + wxPoint * _arg1; + char * _argc0 = 0; + char * _argc1 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"ss:wxPageSetupData_SetPaperSize",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_SetPaperSize. Expected _wxPageSetupData_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPoint_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPageSetupData_SetPaperSize. Expected _wxPoint_p."); + return NULL; + } + } + wxPageSetupData_SetPaperSize(_arg0,*_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_SetMarginTopLeft(_swigobj,_swigarg0) (_swigobj->SetMarginTopLeft(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_SetMarginTopLeft(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + wxPoint * _arg1; + char * _argc0 = 0; + char * _argc1 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"ss:wxPageSetupData_SetMarginTopLeft",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_SetMarginTopLeft. Expected _wxPageSetupData_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPoint_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPageSetupData_SetMarginTopLeft. Expected _wxPoint_p."); + return NULL; + } + } + wxPageSetupData_SetMarginTopLeft(_arg0,*_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_SetMarginBottomRight(_swigobj,_swigarg0) (_swigobj->SetMarginBottomRight(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_SetMarginBottomRight(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + wxPoint * _arg1; + char * _argc0 = 0; + char * _argc1 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"ss:wxPageSetupData_SetMarginBottomRight",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_SetMarginBottomRight. Expected _wxPageSetupData_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPoint_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPageSetupData_SetMarginBottomRight. Expected _wxPoint_p."); + return NULL; + } + } + wxPageSetupData_SetMarginBottomRight(_arg0,*_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_SetMinMarginTopLeft(_swigobj,_swigarg0) (_swigobj->SetMinMarginTopLeft(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_SetMinMarginTopLeft(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + wxPoint * _arg1; + char * _argc0 = 0; + char * _argc1 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"ss:wxPageSetupData_SetMinMarginTopLeft",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_SetMinMarginTopLeft. Expected _wxPageSetupData_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPoint_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPageSetupData_SetMinMarginTopLeft. Expected _wxPoint_p."); + return NULL; + } + } + wxPageSetupData_SetMinMarginTopLeft(_arg0,*_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_SetMinMarginBottomRight(_swigobj,_swigarg0) (_swigobj->SetMinMarginBottomRight(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_SetMinMarginBottomRight(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + wxPoint * _arg1; + char * _argc0 = 0; + char * _argc1 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"ss:wxPageSetupData_SetMinMarginBottomRight",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_SetMinMarginBottomRight. Expected _wxPageSetupData_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPoint_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPageSetupData_SetMinMarginBottomRight. Expected _wxPoint_p."); + return NULL; + } + } + wxPageSetupData_SetMinMarginBottomRight(_arg0,*_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_SetOrientation(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + int _arg1; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPageSetupData_SetOrientation",&_argc0,&_arg1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_SetOrientation. Expected _wxPageSetupData_p."); + return NULL; + } + } + wxPageSetupData_SetOrientation(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_SetDefaultMinMargins(_swigobj,_swigarg0) (_swigobj->SetDefaultMinMargins(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_SetDefaultMinMargins(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPageSetupData_SetDefaultMinMargins",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_SetDefaultMinMargins. Expected _wxPageSetupData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPageSetupData_SetDefaultMinMargins(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPageSetupData_SetDefaultInfo(_swigobj,_swigarg0) (_swigobj->SetDefaultInfo(_swigarg0)) +static PyObject *_wrap_wxPageSetupData_SetDefaultInfo(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPageSetupData_SetDefaultInfo",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupData_SetDefaultInfo. Expected _wxPageSetupData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPageSetupData_SetDefaultInfo(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +static void *SwigwxPageSetupDialogTowxDialog(void *ptr) { + wxPageSetupDialog *src; + wxDialog *dest; + src = (wxPageSetupDialog *) ptr; + dest = (wxDialog *) src; + return (void *) dest; +} + +static void *SwigwxPageSetupDialogTowxPanel(void *ptr) { + wxPageSetupDialog *src; + wxPanel *dest; + src = (wxPageSetupDialog *) ptr; + dest = (wxPanel *) src; + return (void *) dest; +} + +static void *SwigwxPageSetupDialogTowxWindow(void *ptr) { + wxPageSetupDialog *src; + wxWindow *dest; + src = (wxPageSetupDialog *) ptr; + dest = (wxWindow *) src; + return (void *) dest; +} + +static void *SwigwxPageSetupDialogTowxEvtHandler(void *ptr) { + wxPageSetupDialog *src; + wxEvtHandler *dest; + src = (wxPageSetupDialog *) ptr; + dest = (wxEvtHandler *) src; + return (void *) dest; +} + +#define new_wxPageSetupDialog(_swigarg0,_swigarg1) (new wxPageSetupDialog(_swigarg0,_swigarg1)) +static PyObject *_wrap_new_wxPageSetupDialog(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupDialog * _result; + wxWindow * _arg0; + wxPageSetupData * _arg1 = NULL; + char * _argc0 = 0; + char * _argc1 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"s|s:new_wxPageSetupDialog",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPageSetupDialog. Expected _wxWindow_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPageSetupData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPageSetupDialog. Expected _wxPageSetupData_p."); + return NULL; + } + } + _result = (wxPageSetupDialog *)new_wxPageSetupDialog(_arg0,_arg1); + SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialog_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxPageSetupDialog_GetPageSetupData(_swigobj) (_swigobj->GetPageSetupData()) +static PyObject *_wrap_wxPageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPageSetupData * _result; + wxPageSetupDialog * _arg0; + char * _argc0 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupDialog_GetPageSetupData",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupDialog_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialog_GetPageSetupData. Expected _wxPageSetupDialog_p."); + return NULL; + } + } + wxPageSetupData & _result_ref = wxPageSetupDialog_GetPageSetupData(_arg0); + _result = (wxPageSetupData *) &_result_ref; + SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupData_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxPageSetupDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) +static PyObject *_wrap_wxPageSetupDialog_ShowModal(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxPageSetupDialog * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPageSetupDialog_ShowModal",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPageSetupDialog_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialog_ShowModal. Expected _wxPageSetupDialog_p."); + return NULL; + } + } + _result = (int )wxPageSetupDialog_ShowModal(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define new_wxPrintData() (new wxPrintData()) +static PyObject *_wrap_new_wxPrintData(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _result; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,":new_wxPrintData")) + return NULL; + _result = (wxPrintData *)new_wxPrintData(); + SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define delete_wxPrintData(_swigobj) (delete _swigobj) +static PyObject *_wrap_delete_wxPrintData(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:delete_wxPrintData",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPrintData. Expected _wxPrintData_p."); + return NULL; + } + } + delete_wxPrintData(_arg0); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_EnableHelp(_swigobj,_swigarg0) (_swigobj->EnableHelp(_swigarg0)) +static PyObject *_wrap_wxPrintData_EnableHelp(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_EnableHelp",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_EnableHelp. Expected _wxPrintData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPrintData_EnableHelp(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_EnablePageNumbers(_swigobj,_swigarg0) (_swigobj->EnablePageNumbers(_swigarg0)) +static PyObject *_wrap_wxPrintData_EnablePageNumbers(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_EnablePageNumbers",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_EnablePageNumbers. Expected _wxPrintData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPrintData_EnablePageNumbers(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_EnablePrintToFile(_swigobj,_swigarg0) (_swigobj->EnablePrintToFile(_swigarg0)) +static PyObject *_wrap_wxPrintData_EnablePrintToFile(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_EnablePrintToFile",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_EnablePrintToFile. Expected _wxPrintData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPrintData_EnablePrintToFile(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_EnableSelection(_swigobj,_swigarg0) (_swigobj->EnableSelection(_swigarg0)) +static PyObject *_wrap_wxPrintData_EnableSelection(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_EnableSelection",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_EnableSelection. Expected _wxPrintData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPrintData_EnableSelection(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_GetAllPages(_swigobj) (_swigobj->GetAllPages()) +static PyObject *_wrap_wxPrintData_GetAllPages(PyObject *self, PyObject *args) { + PyObject * _resultobj; + bool _result; + wxPrintData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintData_GetAllPages",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetAllPages. Expected _wxPrintData_p."); + return NULL; + } + } + _result = (bool )wxPrintData_GetAllPages(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPrintData_GetCollate(_swigobj) (_swigobj->GetCollate()) +static PyObject *_wrap_wxPrintData_GetCollate(PyObject *self, PyObject *args) { + PyObject * _resultobj; + bool _result; + wxPrintData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintData_GetCollate",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetCollate. Expected _wxPrintData_p."); + return NULL; + } + } + _result = (bool )wxPrintData_GetCollate(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPrintData_GetFromPage(_swigobj) (_swigobj->GetFromPage()) +static PyObject *_wrap_wxPrintData_GetFromPage(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxPrintData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintData_GetFromPage",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetFromPage. Expected _wxPrintData_p."); + return NULL; + } + } + _result = (int )wxPrintData_GetFromPage(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPrintData_GetMaxPage(_swigobj) (_swigobj->GetMaxPage()) +static PyObject *_wrap_wxPrintData_GetMaxPage(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxPrintData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintData_GetMaxPage",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetMaxPage. Expected _wxPrintData_p."); + return NULL; + } + } + _result = (int )wxPrintData_GetMaxPage(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPrintData_GetMinPage(_swigobj) (_swigobj->GetMinPage()) +static PyObject *_wrap_wxPrintData_GetMinPage(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxPrintData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintData_GetMinPage",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetMinPage. Expected _wxPrintData_p."); + return NULL; + } + } + _result = (int )wxPrintData_GetMinPage(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPrintData_GetNoCopies(_swigobj) (_swigobj->GetNoCopies()) +static PyObject *_wrap_wxPrintData_GetNoCopies(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxPrintData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintData_GetNoCopies",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetNoCopies. Expected _wxPrintData_p."); + return NULL; + } + } + _result = (int )wxPrintData_GetNoCopies(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPrintData_GetOrientation(_swigobj) (_swigobj->GetOrientation()) +static PyObject *_wrap_wxPrintData_GetOrientation(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxPrintData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintData_GetOrientation",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetOrientation. Expected _wxPrintData_p."); + return NULL; + } + } + _result = (int )wxPrintData_GetOrientation(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPrintData_GetToPage(_swigobj) (_swigobj->GetToPage()) +static PyObject *_wrap_wxPrintData_GetToPage(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxPrintData * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintData_GetToPage",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetToPage. Expected _wxPrintData_p."); + return NULL; + } + } + _result = (int )wxPrintData_GetToPage(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxPrintData_SetCollate(_swigobj,_swigarg0) (_swigobj->SetCollate(_swigarg0)) +static PyObject *_wrap_wxPrintData_SetCollate(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_SetCollate",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetCollate. Expected _wxPrintData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPrintData_SetCollate(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_SetFromPage(_swigobj,_swigarg0) (_swigobj->SetFromPage(_swigarg0)) +static PyObject *_wrap_wxPrintData_SetFromPage(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + int _arg1; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_SetFromPage",&_argc0,&_arg1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetFromPage. Expected _wxPrintData_p."); + return NULL; + } + } + wxPrintData_SetFromPage(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_SetMaxPage(_swigobj,_swigarg0) (_swigobj->SetMaxPage(_swigarg0)) +static PyObject *_wrap_wxPrintData_SetMaxPage(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + int _arg1; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_SetMaxPage",&_argc0,&_arg1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetMaxPage. Expected _wxPrintData_p."); + return NULL; + } + } + wxPrintData_SetMaxPage(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_SetMinPage(_swigobj,_swigarg0) (_swigobj->SetMinPage(_swigarg0)) +static PyObject *_wrap_wxPrintData_SetMinPage(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + int _arg1; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_SetMinPage",&_argc0,&_arg1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetMinPage. Expected _wxPrintData_p."); + return NULL; + } + } + wxPrintData_SetMinPage(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0)) +static PyObject *_wrap_wxPrintData_SetOrientation(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + int _arg1; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_SetOrientation",&_argc0,&_arg1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetOrientation. Expected _wxPrintData_p."); + return NULL; + } + } + wxPrintData_SetOrientation(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_SetNoCopies(_swigobj,_swigarg0) (_swigobj->SetNoCopies(_swigarg0)) +static PyObject *_wrap_wxPrintData_SetNoCopies(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + int _arg1; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_SetNoCopies",&_argc0,&_arg1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetNoCopies. Expected _wxPrintData_p."); + return NULL; + } + } + wxPrintData_SetNoCopies(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_SetPrintToFile(_swigobj,_swigarg0) (_swigobj->SetPrintToFile(_swigarg0)) +static PyObject *_wrap_wxPrintData_SetPrintToFile(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_SetPrintToFile",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrintToFile. Expected _wxPrintData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPrintData_SetPrintToFile(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_SetSetupDialog(_swigobj,_swigarg0) (_swigobj->SetSetupDialog(_swigarg0)) +static PyObject *_wrap_wxPrintData_SetSetupDialog(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + bool _arg1; + char * _argc0 = 0; + int tempbool1; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_SetSetupDialog",&_argc0,&tempbool1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetSetupDialog. Expected _wxPrintData_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + wxPrintData_SetSetupDialog(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxPrintData_SetToPage(_swigobj,_swigarg0) (_swigobj->SetToPage(_swigarg0)) +static PyObject *_wrap_wxPrintData_SetToPage(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _arg0; + int _arg1; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"si:wxPrintData_SetToPage",&_argc0,&_arg1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetToPage. Expected _wxPrintData_p."); + return NULL; + } + } + wxPrintData_SetToPage(_arg0,_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +static void *SwigwxPrintDialogTowxDialog(void *ptr) { + wxPrintDialog *src; + wxDialog *dest; + src = (wxPrintDialog *) ptr; + dest = (wxDialog *) src; + return (void *) dest; +} + +static void *SwigwxPrintDialogTowxPanel(void *ptr) { + wxPrintDialog *src; + wxPanel *dest; + src = (wxPrintDialog *) ptr; + dest = (wxPanel *) src; + return (void *) dest; +} + +static void *SwigwxPrintDialogTowxWindow(void *ptr) { + wxPrintDialog *src; + wxWindow *dest; + src = (wxPrintDialog *) ptr; + dest = (wxWindow *) src; + return (void *) dest; +} + +static void *SwigwxPrintDialogTowxEvtHandler(void *ptr) { + wxPrintDialog *src; + wxEvtHandler *dest; + src = (wxPrintDialog *) ptr; + dest = (wxEvtHandler *) src; + return (void *) dest; +} + +#define new_wxPrintDialog(_swigarg0,_swigarg1) (new wxPrintDialog(_swigarg0,_swigarg1)) +static PyObject *_wrap_new_wxPrintDialog(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintDialog * _result; + wxWindow * _arg0; + wxPrintData * _arg1 = NULL; + char * _argc0 = 0; + char * _argc1 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"s|s:new_wxPrintDialog",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxWindow_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrintDialog. Expected _wxWindow_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxPrintData_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPrintDialog. Expected _wxPrintData_p."); + return NULL; + } + } + _result = (wxPrintDialog *)new_wxPrintDialog(_arg0,_arg1); + SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialog_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxPrintDialog_GetPrintData(_swigobj) (_swigobj->GetPrintData()) +static PyObject *_wrap_wxPrintDialog_GetPrintData(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxPrintData * _result; + wxPrintDialog * _arg0; + char * _argc0 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintDialog_GetPrintData",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintDialog_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_GetPrintData. Expected _wxPrintDialog_p."); + return NULL; + } + } + wxPrintData & _result_ref = wxPrintDialog_GetPrintData(_arg0); + _result = (wxPrintData *) &_result_ref; + SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxPrintDialog_GetPrintDC(_swigobj) (_swigobj->GetPrintDC()) +static PyObject *_wrap_wxPrintDialog_GetPrintDC(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxDC * _result; + wxPrintDialog * _arg0; + char * _argc0 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintDialog_GetPrintDC",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintDialog_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_GetPrintDC. Expected _wxPrintDialog_p."); + return NULL; + } + } + _result = (wxDC *)wxPrintDialog_GetPrintDC(_arg0); + SWIG_MakePtr(_ptemp, (char *) _result,"_wxDC_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxPrintDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) +static PyObject *_wrap_wxPrintDialog_ShowModal(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxPrintDialog * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxPrintDialog_ShowModal",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxPrintDialog_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_ShowModal. Expected _wxPrintDialog_p."); + return NULL; + } + } + _result = (int )wxPrintDialog_ShowModal(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + static void *SwigwxMessageDialogTowxDialog(void *ptr) { wxMessageDialog *src; wxDialog *dest; @@ -1784,6 +3179,64 @@ static PyObject *_wrap_wxMessageDialog_ShowModal(PyObject *self, PyObject *args) static PyMethodDef cmndlgscMethods[] = { { "wxMessageDialog_ShowModal", _wrap_wxMessageDialog_ShowModal, 1 }, { "new_wxMessageDialog", _wrap_new_wxMessageDialog, 1 }, + { "wxPrintDialog_ShowModal", _wrap_wxPrintDialog_ShowModal, 1 }, + { "wxPrintDialog_GetPrintDC", _wrap_wxPrintDialog_GetPrintDC, 1 }, + { "wxPrintDialog_GetPrintData", _wrap_wxPrintDialog_GetPrintData, 1 }, + { "new_wxPrintDialog", _wrap_new_wxPrintDialog, 1 }, + { "wxPrintData_SetToPage", _wrap_wxPrintData_SetToPage, 1 }, + { "wxPrintData_SetSetupDialog", _wrap_wxPrintData_SetSetupDialog, 1 }, + { "wxPrintData_SetPrintToFile", _wrap_wxPrintData_SetPrintToFile, 1 }, + { "wxPrintData_SetNoCopies", _wrap_wxPrintData_SetNoCopies, 1 }, + { "wxPrintData_SetOrientation", _wrap_wxPrintData_SetOrientation, 1 }, + { "wxPrintData_SetMinPage", _wrap_wxPrintData_SetMinPage, 1 }, + { "wxPrintData_SetMaxPage", _wrap_wxPrintData_SetMaxPage, 1 }, + { "wxPrintData_SetFromPage", _wrap_wxPrintData_SetFromPage, 1 }, + { "wxPrintData_SetCollate", _wrap_wxPrintData_SetCollate, 1 }, + { "wxPrintData_GetToPage", _wrap_wxPrintData_GetToPage, 1 }, + { "wxPrintData_GetOrientation", _wrap_wxPrintData_GetOrientation, 1 }, + { "wxPrintData_GetNoCopies", _wrap_wxPrintData_GetNoCopies, 1 }, + { "wxPrintData_GetMinPage", _wrap_wxPrintData_GetMinPage, 1 }, + { "wxPrintData_GetMaxPage", _wrap_wxPrintData_GetMaxPage, 1 }, + { "wxPrintData_GetFromPage", _wrap_wxPrintData_GetFromPage, 1 }, + { "wxPrintData_GetCollate", _wrap_wxPrintData_GetCollate, 1 }, + { "wxPrintData_GetAllPages", _wrap_wxPrintData_GetAllPages, 1 }, + { "wxPrintData_EnableSelection", _wrap_wxPrintData_EnableSelection, 1 }, + { "wxPrintData_EnablePrintToFile", _wrap_wxPrintData_EnablePrintToFile, 1 }, + { "wxPrintData_EnablePageNumbers", _wrap_wxPrintData_EnablePageNumbers, 1 }, + { "wxPrintData_EnableHelp", _wrap_wxPrintData_EnableHelp, 1 }, + { "delete_wxPrintData", _wrap_delete_wxPrintData, 1 }, + { "new_wxPrintData", _wrap_new_wxPrintData, 1 }, + { "wxPageSetupDialog_ShowModal", _wrap_wxPageSetupDialog_ShowModal, 1 }, + { "wxPageSetupDialog_GetPageSetupData", _wrap_wxPageSetupDialog_GetPageSetupData, 1 }, + { "new_wxPageSetupDialog", _wrap_new_wxPageSetupDialog, 1 }, + { "wxPageSetupData_SetDefaultInfo", _wrap_wxPageSetupData_SetDefaultInfo, 1 }, + { "wxPageSetupData_SetDefaultMinMargins", _wrap_wxPageSetupData_SetDefaultMinMargins, 1 }, + { "wxPageSetupData_SetOrientation", _wrap_wxPageSetupData_SetOrientation, 1 }, + { "wxPageSetupData_SetMinMarginBottomRight", _wrap_wxPageSetupData_SetMinMarginBottomRight, 1 }, + { "wxPageSetupData_SetMinMarginTopLeft", _wrap_wxPageSetupData_SetMinMarginTopLeft, 1 }, + { "wxPageSetupData_SetMarginBottomRight", _wrap_wxPageSetupData_SetMarginBottomRight, 1 }, + { "wxPageSetupData_SetMarginTopLeft", _wrap_wxPageSetupData_SetMarginTopLeft, 1 }, + { "wxPageSetupData_SetPaperSize", _wrap_wxPageSetupData_SetPaperSize, 1 }, + { "wxPageSetupData_GetDefaultInfo", _wrap_wxPageSetupData_GetDefaultInfo, 1 }, + { "wxPageSetupData_GetEnableHelp", _wrap_wxPageSetupData_GetEnableHelp, 1 }, + { "wxPageSetupData_GetEnablePrinter", _wrap_wxPageSetupData_GetEnablePrinter, 1 }, + { "wxPageSetupData_GetEnablePaper", _wrap_wxPageSetupData_GetEnablePaper, 1 }, + { "wxPageSetupData_GetEnableOrientation", _wrap_wxPageSetupData_GetEnableOrientation, 1 }, + { "wxPageSetupData_GetEnableMargins", _wrap_wxPageSetupData_GetEnableMargins, 1 }, + { "wxPageSetupData_GetDefaultMinMargins", _wrap_wxPageSetupData_GetDefaultMinMargins, 1 }, + { "wxPageSetupData_GetOrientation", _wrap_wxPageSetupData_GetOrientation, 1 }, + { "wxPageSetupData_GetMinMarginBottomRight", _wrap_wxPageSetupData_GetMinMarginBottomRight, 1 }, + { "wxPageSetupData_GetMinMarginTopLeft", _wrap_wxPageSetupData_GetMinMarginTopLeft, 1 }, + { "wxPageSetupData_GetMarginBottomRight", _wrap_wxPageSetupData_GetMarginBottomRight, 1 }, + { "wxPageSetupData_GetMarginTopLeft", _wrap_wxPageSetupData_GetMarginTopLeft, 1 }, + { "wxPageSetupData_GetPaperSize", _wrap_wxPageSetupData_GetPaperSize, 1 }, + { "wxPageSetupData_EnablePrinter", _wrap_wxPageSetupData_EnablePrinter, 1 }, + { "wxPageSetupData_EnablePaper", _wrap_wxPageSetupData_EnablePaper, 1 }, + { "wxPageSetupData_EnableOrientation", _wrap_wxPageSetupData_EnableOrientation, 1 }, + { "wxPageSetupData_EnableMargins", _wrap_wxPageSetupData_EnableMargins, 1 }, + { "wxPageSetupData_EnableHelp", _wrap_wxPageSetupData_EnableHelp, 1 }, + { "delete_wxPageSetupData", _wrap_delete_wxPageSetupData, 1 }, + { "new_wxPageSetupData", _wrap_new_wxPageSetupData, 1 }, { "wxFontDialog_ShowModal", _wrap_wxFontDialog_ShowModal, 1 }, { "wxFontDialog_GetFontData", _wrap_wxFontDialog_GetFontData, 1 }, { "new_wxFontDialog", _wrap_new_wxFontDialog, 1 }, @@ -1853,11 +3306,16 @@ SWIGEXPORT(void,initcmndlgsc)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_signed_long","_long",0); SWIG_RegisterMapping("_wxFontData","_class_wxFontData",0); SWIG_RegisterMapping("_class_wxMenuBar","_wxMenuBar",0); SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMessageDialog",SwigwxMessageDialogTowxEvtHandler); SWIG_RegisterMapping("_class_wxEvtHandler","_wxMessageDialog",SwigwxMessageDialogTowxEvtHandler); + SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler); + SWIG_RegisterMapping("_class_wxEvtHandler","_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler); + SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler); + SWIG_RegisterMapping("_class_wxEvtHandler","_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler); SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxFontDialog",SwigwxFontDialogTowxEvtHandler); SWIG_RegisterMapping("_class_wxEvtHandler","_wxFontDialog",SwigwxFontDialogTowxEvtHandler); SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxTextEntryDialog",SwigwxTextEntryDialogTowxEvtHandler); @@ -1872,6 +3330,7 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0); SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0); SWIG_RegisterMapping("_wxMask","_class_wxMask",0); + SWIG_RegisterMapping("_wxPageSetupData","_class_wxPageSetupData",0); SWIG_RegisterMapping("_wxPyMenu","_class_wxPyMenu",0); SWIG_RegisterMapping("_class_wxColourData","_wxColourData",0); SWIG_RegisterMapping("_wxPen","_class_wxPen",0); @@ -1879,6 +3338,7 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_long","_wxDash",0); SWIG_RegisterMapping("_long","_unsigned_long",0); SWIG_RegisterMapping("_long","_signed_long",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); SWIG_RegisterMapping("_class_wxSingleChoiceDialog","_wxSingleChoiceDialog",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); @@ -1886,6 +3346,10 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_class_wxPostScriptDC","_wxPostScriptDC",0); SWIG_RegisterMapping("_wxPanel","_class_wxMessageDialog",SwigwxMessageDialogTowxPanel); SWIG_RegisterMapping("_wxPanel","_wxMessageDialog",SwigwxMessageDialogTowxPanel); + SWIG_RegisterMapping("_wxPanel","_class_wxPrintDialog",SwigwxPrintDialogTowxPanel); + SWIG_RegisterMapping("_wxPanel","_wxPrintDialog",SwigwxPrintDialogTowxPanel); + SWIG_RegisterMapping("_wxPanel","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxPanel); + SWIG_RegisterMapping("_wxPanel","_wxPageSetupDialog",SwigwxPageSetupDialogTowxPanel); SWIG_RegisterMapping("_wxPanel","_class_wxFontDialog",SwigwxFontDialogTowxPanel); SWIG_RegisterMapping("_wxPanel","_wxFontDialog",SwigwxFontDialogTowxPanel); SWIG_RegisterMapping("_wxPanel","_class_wxTextEntryDialog",SwigwxTextEntryDialogTowxPanel); @@ -1898,9 +3362,14 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_wxPanel","_wxColourDialog",SwigwxColourDialogTowxPanel); SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0); SWIG_RegisterMapping("_class_wxMask","_wxMask",0); + SWIG_RegisterMapping("_class_wxPageSetupData","_wxPageSetupData",0); SWIG_RegisterMapping("_wxColour","_class_wxColour",0); SWIG_RegisterMapping("_class_wxDialog","_class_wxMessageDialog",SwigwxMessageDialogTowxDialog); SWIG_RegisterMapping("_class_wxDialog","_wxMessageDialog",SwigwxMessageDialogTowxDialog); + SWIG_RegisterMapping("_class_wxDialog","_class_wxPrintDialog",SwigwxPrintDialogTowxDialog); + SWIG_RegisterMapping("_class_wxDialog","_wxPrintDialog",SwigwxPrintDialogTowxDialog); + SWIG_RegisterMapping("_class_wxDialog","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog); + SWIG_RegisterMapping("_class_wxDialog","_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog); SWIG_RegisterMapping("_class_wxDialog","_class_wxFontDialog",SwigwxFontDialogTowxDialog); SWIG_RegisterMapping("_class_wxDialog","_wxFontDialog",SwigwxFontDialogTowxDialog); SWIG_RegisterMapping("_class_wxDialog","_class_wxTextEntryDialog",SwigwxTextEntryDialogTowxDialog); @@ -1912,6 +3381,7 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_class_wxDialog","_class_wxColourDialog",SwigwxColourDialogTowxDialog); SWIG_RegisterMapping("_class_wxDialog","_wxColourDialog",SwigwxColourDialogTowxDialog); SWIG_RegisterMapping("_class_wxDialog","_wxDialog",0); + SWIG_RegisterMapping("_wxPageSetupDialog","_class_wxPageSetupDialog",0); SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0); SWIG_RegisterMapping("_uint","_unsigned_int",0); SWIG_RegisterMapping("_uint","_int",0); @@ -1920,8 +3390,10 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0); SWIG_RegisterMapping("_class_wxFontData","_wxFontData",0); SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0); + SWIG_RegisterMapping("_wxPrintDialog","_class_wxPrintDialog",0); SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0); SWIG_RegisterMapping("_wxColourDialog","_class_wxColourDialog",0); + SWIG_RegisterMapping("_wxPrintData","_class_wxPrintData",0); SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0); SWIG_RegisterMapping("_wxMessageDialog","_class_wxMessageDialog",0); SWIG_RegisterMapping("_wxTextEntryDialog","_class_wxTextEntryDialog",0); @@ -1934,8 +3406,13 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_class_wxRect","_wxRect",0); SWIG_RegisterMapping("_class_wxDC","_wxDC",0); SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxPanel","_class_wxMessageDialog",SwigwxMessageDialogTowxPanel); SWIG_RegisterMapping("_class_wxPanel","_wxMessageDialog",SwigwxMessageDialogTowxPanel); + SWIG_RegisterMapping("_class_wxPanel","_class_wxPrintDialog",SwigwxPrintDialogTowxPanel); + SWIG_RegisterMapping("_class_wxPanel","_wxPrintDialog",SwigwxPrintDialogTowxPanel); + SWIG_RegisterMapping("_class_wxPanel","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxPanel); + SWIG_RegisterMapping("_class_wxPanel","_wxPageSetupDialog",SwigwxPageSetupDialogTowxPanel); SWIG_RegisterMapping("_class_wxPanel","_class_wxFontDialog",SwigwxFontDialogTowxPanel); SWIG_RegisterMapping("_class_wxPanel","_wxFontDialog",SwigwxFontDialogTowxPanel); SWIG_RegisterMapping("_class_wxPanel","_class_wxTextEntryDialog",SwigwxTextEntryDialogTowxPanel); @@ -1963,6 +3440,10 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_unsigned_short","_short",0); SWIG_RegisterMapping("_class_wxWindow","_class_wxMessageDialog",SwigwxMessageDialogTowxWindow); SWIG_RegisterMapping("_class_wxWindow","_wxMessageDialog",SwigwxMessageDialogTowxWindow); + SWIG_RegisterMapping("_class_wxWindow","_class_wxPrintDialog",SwigwxPrintDialogTowxWindow); + SWIG_RegisterMapping("_class_wxWindow","_wxPrintDialog",SwigwxPrintDialogTowxWindow); + SWIG_RegisterMapping("_class_wxWindow","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow); + SWIG_RegisterMapping("_class_wxWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow); SWIG_RegisterMapping("_class_wxWindow","_class_wxFontDialog",SwigwxFontDialogTowxWindow); SWIG_RegisterMapping("_class_wxWindow","_wxFontDialog",SwigwxFontDialogTowxWindow); SWIG_RegisterMapping("_class_wxWindow","_class_wxTextEntryDialog",SwigwxTextEntryDialogTowxWindow); @@ -1982,7 +3463,9 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_signed_short","_WXTYPE",0); SWIG_RegisterMapping("_signed_short","_short",0); SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0); + SWIG_RegisterMapping("_class_wxPrintDialog","_wxPrintDialog",0); SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0); @@ -1994,6 +3477,10 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0); SWIG_RegisterMapping("_wxDialog","_class_wxMessageDialog",SwigwxMessageDialogTowxDialog); SWIG_RegisterMapping("_wxDialog","_wxMessageDialog",SwigwxMessageDialogTowxDialog); + SWIG_RegisterMapping("_wxDialog","_class_wxPrintDialog",SwigwxPrintDialogTowxDialog); + SWIG_RegisterMapping("_wxDialog","_wxPrintDialog",SwigwxPrintDialogTowxDialog); + SWIG_RegisterMapping("_wxDialog","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog); + SWIG_RegisterMapping("_wxDialog","_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog); SWIG_RegisterMapping("_wxDialog","_class_wxFontDialog",SwigwxFontDialogTowxDialog); SWIG_RegisterMapping("_wxDialog","_wxFontDialog",SwigwxFontDialogTowxDialog); SWIG_RegisterMapping("_wxDialog","_class_wxTextEntryDialog",SwigwxTextEntryDialogTowxDialog); @@ -2027,6 +3514,7 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0); SWIG_RegisterMapping("_class_wxColour","_wxColour",0); SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0); + SWIG_RegisterMapping("_class_wxPageSetupDialog","_wxPageSetupDialog",0); SWIG_RegisterMapping("_wxFontDialog","_class_wxFontDialog",0); SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0); SWIG_RegisterMapping("_class_wxSize","_wxSize",0); @@ -2035,6 +3523,10 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_wxMenuBar","_class_wxMenuBar",0); SWIG_RegisterMapping("_wxEvtHandler","_class_wxMessageDialog",SwigwxMessageDialogTowxEvtHandler); SWIG_RegisterMapping("_wxEvtHandler","_wxMessageDialog",SwigwxMessageDialogTowxEvtHandler); + SWIG_RegisterMapping("_wxEvtHandler","_class_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler); + SWIG_RegisterMapping("_wxEvtHandler","_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler); + SWIG_RegisterMapping("_wxEvtHandler","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler); + SWIG_RegisterMapping("_wxEvtHandler","_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler); SWIG_RegisterMapping("_wxEvtHandler","_class_wxFontDialog",SwigwxFontDialogTowxEvtHandler); SWIG_RegisterMapping("_wxEvtHandler","_wxFontDialog",SwigwxFontDialogTowxEvtHandler); SWIG_RegisterMapping("_wxEvtHandler","_class_wxTextEntryDialog",SwigwxTextEntryDialogTowxEvtHandler); @@ -2048,6 +3540,7 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_wxEvtHandler","_class_wxEvtHandler",0); SWIG_RegisterMapping("_wxMenuItem","_class_wxMenuItem",0); SWIG_RegisterMapping("_class_wxColourDialog","_wxColourDialog",0); + SWIG_RegisterMapping("_class_wxPrintData","_wxPrintData",0); SWIG_RegisterMapping("_wxDash","_unsigned_long",0); SWIG_RegisterMapping("_wxDash","_long",0); SWIG_RegisterMapping("_class_wxScrolledWindow","_wxScrolledWindow",0); @@ -2056,6 +3549,10 @@ SWIGEXPORT(void,initcmndlgsc)() { SWIG_RegisterMapping("_class_wxFontDialog","_wxFontDialog",0); SWIG_RegisterMapping("_wxWindow","_class_wxMessageDialog",SwigwxMessageDialogTowxWindow); SWIG_RegisterMapping("_wxWindow","_wxMessageDialog",SwigwxMessageDialogTowxWindow); + SWIG_RegisterMapping("_wxWindow","_class_wxPrintDialog",SwigwxPrintDialogTowxWindow); + SWIG_RegisterMapping("_wxWindow","_wxPrintDialog",SwigwxPrintDialogTowxWindow); + SWIG_RegisterMapping("_wxWindow","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow); + SWIG_RegisterMapping("_wxWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow); SWIG_RegisterMapping("_wxWindow","_class_wxFontDialog",SwigwxFontDialogTowxWindow); SWIG_RegisterMapping("_wxWindow","_wxFontDialog",SwigwxFontDialogTowxWindow); SWIG_RegisterMapping("_wxWindow","_class_wxTextEntryDialog",SwigwxTextEntryDialogTowxWindow); diff --git a/utils/wxPython/src/gtk/cmndlgs.py b/utils/wxPython/src/gtk/cmndlgs.py index 8360f8fd76..d0be6c7e9e 100644 --- a/utils/wxPython/src/gtk/cmndlgs.py +++ b/utils/wxPython/src/gtk/cmndlgs.py @@ -281,6 +281,247 @@ class wxFontDialog(wxFontDialogPtr): +class wxPageSetupDataPtr : + def __init__(self,this): + self.this = this + self.thisown = 0 + def __del__(self): + if self.thisown == 1 : + cmndlgsc.delete_wxPageSetupData(self.this) + def EnableHelp(self,arg0): + val = cmndlgsc.wxPageSetupData_EnableHelp(self.this,arg0) + return val + def EnableMargins(self,arg0): + val = cmndlgsc.wxPageSetupData_EnableMargins(self.this,arg0) + return val + def EnableOrientation(self,arg0): + val = cmndlgsc.wxPageSetupData_EnableOrientation(self.this,arg0) + return val + def EnablePaper(self,arg0): + val = cmndlgsc.wxPageSetupData_EnablePaper(self.this,arg0) + return val + def EnablePrinter(self,arg0): + val = cmndlgsc.wxPageSetupData_EnablePrinter(self.this,arg0) + return val + def GetPaperSize(self): + val = cmndlgsc.wxPageSetupData_GetPaperSize(self.this) + val = wxPointPtr(val) + val.thisown = 1 + return val + def GetMarginTopLeft(self): + val = cmndlgsc.wxPageSetupData_GetMarginTopLeft(self.this) + val = wxPointPtr(val) + val.thisown = 1 + return val + def GetMarginBottomRight(self): + val = cmndlgsc.wxPageSetupData_GetMarginBottomRight(self.this) + val = wxPointPtr(val) + val.thisown = 1 + return val + def GetMinMarginTopLeft(self): + val = cmndlgsc.wxPageSetupData_GetMinMarginTopLeft(self.this) + val = wxPointPtr(val) + val.thisown = 1 + return val + def GetMinMarginBottomRight(self): + val = cmndlgsc.wxPageSetupData_GetMinMarginBottomRight(self.this) + val = wxPointPtr(val) + val.thisown = 1 + return val + def GetOrientation(self): + val = cmndlgsc.wxPageSetupData_GetOrientation(self.this) + return val + def GetDefaultMinMargins(self): + val = cmndlgsc.wxPageSetupData_GetDefaultMinMargins(self.this) + return val + def GetEnableMargins(self): + val = cmndlgsc.wxPageSetupData_GetEnableMargins(self.this) + return val + def GetEnableOrientation(self): + val = cmndlgsc.wxPageSetupData_GetEnableOrientation(self.this) + return val + def GetEnablePaper(self): + val = cmndlgsc.wxPageSetupData_GetEnablePaper(self.this) + return val + def GetEnablePrinter(self): + val = cmndlgsc.wxPageSetupData_GetEnablePrinter(self.this) + return val + def GetEnableHelp(self): + val = cmndlgsc.wxPageSetupData_GetEnableHelp(self.this) + return val + def GetDefaultInfo(self): + val = cmndlgsc.wxPageSetupData_GetDefaultInfo(self.this) + return val + def SetPaperSize(self,arg0): + val = cmndlgsc.wxPageSetupData_SetPaperSize(self.this,arg0.this) + return val + def SetMarginTopLeft(self,arg0): + val = cmndlgsc.wxPageSetupData_SetMarginTopLeft(self.this,arg0.this) + return val + def SetMarginBottomRight(self,arg0): + val = cmndlgsc.wxPageSetupData_SetMarginBottomRight(self.this,arg0.this) + return val + def SetMinMarginTopLeft(self,arg0): + val = cmndlgsc.wxPageSetupData_SetMinMarginTopLeft(self.this,arg0.this) + return val + def SetMinMarginBottomRight(self,arg0): + val = cmndlgsc.wxPageSetupData_SetMinMarginBottomRight(self.this,arg0.this) + return val + def SetOrientation(self,arg0): + val = cmndlgsc.wxPageSetupData_SetOrientation(self.this,arg0) + return val + def SetDefaultMinMargins(self,arg0): + val = cmndlgsc.wxPageSetupData_SetDefaultMinMargins(self.this,arg0) + return val + def SetDefaultInfo(self,arg0): + val = cmndlgsc.wxPageSetupData_SetDefaultInfo(self.this,arg0) + return val + def __repr__(self): + return "" +class wxPageSetupData(wxPageSetupDataPtr): + def __init__(self) : + self.this = cmndlgsc.new_wxPageSetupData() + self.thisown = 1 + + + + +class wxPageSetupDialogPtr(wxDialogPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetPageSetupData(self): + val = cmndlgsc.wxPageSetupDialog_GetPageSetupData(self.this) + val = wxPageSetupDataPtr(val) + return val + def ShowModal(self): + val = cmndlgsc.wxPageSetupDialog_ShowModal(self.this) + return val + def __repr__(self): + return "" +class wxPageSetupDialog(wxPageSetupDialogPtr): + def __init__(self,arg0,*args) : + argl = map(None,args) + try: argl[0] = argl[0].this + except: pass + args = tuple(argl) + self.this = apply(cmndlgsc.new_wxPageSetupDialog,(arg0.this,)+args) + self.thisown = 1 + wxp._StdDialogCallbacks(self) + + + + +class wxPrintDataPtr : + def __init__(self,this): + self.this = this + self.thisown = 0 + def __del__(self): + if self.thisown == 1 : + cmndlgsc.delete_wxPrintData(self.this) + def EnableHelp(self,arg0): + val = cmndlgsc.wxPrintData_EnableHelp(self.this,arg0) + return val + def EnablePageNumbers(self,arg0): + val = cmndlgsc.wxPrintData_EnablePageNumbers(self.this,arg0) + return val + def EnablePrintToFile(self,arg0): + val = cmndlgsc.wxPrintData_EnablePrintToFile(self.this,arg0) + return val + def EnableSelection(self,arg0): + val = cmndlgsc.wxPrintData_EnableSelection(self.this,arg0) + return val + def GetAllPages(self): + val = cmndlgsc.wxPrintData_GetAllPages(self.this) + return val + def GetCollate(self): + val = cmndlgsc.wxPrintData_GetCollate(self.this) + return val + def GetFromPage(self): + val = cmndlgsc.wxPrintData_GetFromPage(self.this) + return val + def GetMaxPage(self): + val = cmndlgsc.wxPrintData_GetMaxPage(self.this) + return val + def GetMinPage(self): + val = cmndlgsc.wxPrintData_GetMinPage(self.this) + return val + def GetNoCopies(self): + val = cmndlgsc.wxPrintData_GetNoCopies(self.this) + return val + def GetOrientation(self): + val = cmndlgsc.wxPrintData_GetOrientation(self.this) + return val + def GetToPage(self): + val = cmndlgsc.wxPrintData_GetToPage(self.this) + return val + def SetCollate(self,arg0): + val = cmndlgsc.wxPrintData_SetCollate(self.this,arg0) + return val + def SetFromPage(self,arg0): + val = cmndlgsc.wxPrintData_SetFromPage(self.this,arg0) + return val + def SetMaxPage(self,arg0): + val = cmndlgsc.wxPrintData_SetMaxPage(self.this,arg0) + return val + def SetMinPage(self,arg0): + val = cmndlgsc.wxPrintData_SetMinPage(self.this,arg0) + return val + def SetOrientation(self,arg0): + val = cmndlgsc.wxPrintData_SetOrientation(self.this,arg0) + return val + def SetNoCopies(self,arg0): + val = cmndlgsc.wxPrintData_SetNoCopies(self.this,arg0) + return val + def SetPrintToFile(self,arg0): + val = cmndlgsc.wxPrintData_SetPrintToFile(self.this,arg0) + return val + def SetSetupDialog(self,arg0): + val = cmndlgsc.wxPrintData_SetSetupDialog(self.this,arg0) + return val + def SetToPage(self,arg0): + val = cmndlgsc.wxPrintData_SetToPage(self.this,arg0) + return val + def __repr__(self): + return "" +class wxPrintData(wxPrintDataPtr): + def __init__(self) : + self.this = cmndlgsc.new_wxPrintData() + self.thisown = 1 + + + + +class wxPrintDialogPtr(wxDialogPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetPrintData(self): + val = cmndlgsc.wxPrintDialog_GetPrintData(self.this) + val = wxPrintDataPtr(val) + return val + def GetPrintDC(self): + val = cmndlgsc.wxPrintDialog_GetPrintDC(self.this) + val = wxDCPtr(val) + return val + def ShowModal(self): + val = cmndlgsc.wxPrintDialog_ShowModal(self.this) + return val + def __repr__(self): + return "" +class wxPrintDialog(wxPrintDialogPtr): + def __init__(self,arg0,*args) : + argl = map(None,args) + try: argl[0] = argl[0].this + except: pass + args = tuple(argl) + self.this = apply(cmndlgsc.new_wxPrintDialog,(arg0.this,)+args) + self.thisown = 1 + wxp._StdDialogCallbacks(self) + + + + class wxMessageDialogPtr(wxDialogPtr): def __init__(self,this): self.this = this diff --git a/utils/wxPython/src/gtk/controls.cpp b/utils/wxPython/src/gtk/controls.cpp index 4a77a5250e..d6eb68def5 100644 --- a/utils/wxPython/src/gtk/controls.cpp +++ b/utils/wxPython/src/gtk/controls.cpp @@ -117,9 +117,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -2794,6 +2792,76 @@ static PyObject *_wrap_wxTextCtrl_GetLastPosition(PyObject *self, PyObject *args return _resultobj; } +#define wxTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) +static PyObject *_wrap_wxTextCtrl_GetLineLength(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxTextCtrl * _arg0; + long _arg1; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"sl:wxTextCtrl_GetLineLength",&_argc0,&_arg1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineLength. Expected _wxTextCtrl_p."); + return NULL; + } + } + _result = (int )wxTextCtrl_GetLineLength(_arg0,_arg1); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxTextCtrl_GetLineText(_swigobj,_swigarg0) (_swigobj->GetLineText(_swigarg0)) +static PyObject *_wrap_wxTextCtrl_GetLineText(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxString * _result; + wxTextCtrl * _arg0; + long _arg1; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"sl:wxTextCtrl_GetLineText",&_argc0,&_arg1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetLineText. Expected _wxTextCtrl_p."); + return NULL; + } + } + _result = new wxString (wxTextCtrl_GetLineText(_arg0,_arg1)); +{ + _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); +} +{ + delete _result; +} + return _resultobj; +} + +#define wxTextCtrl_GetNumberOfLines(_swigobj) (_swigobj->GetNumberOfLines()) +static PyObject *_wrap_wxTextCtrl_GetNumberOfLines(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxTextCtrl * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxTextCtrl_GetNumberOfLines",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_GetNumberOfLines. Expected _wxTextCtrl_p."); + return NULL; + } + } + _result = (int )wxTextCtrl_GetNumberOfLines(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + #define wxTextCtrl_GetValue(_swigobj) (_swigobj->GetValue()) static PyObject *_wrap_wxTextCtrl_GetValue(PyObject *self, PyObject *args) { PyObject * _resultobj; @@ -2896,6 +2964,48 @@ static PyObject *_wrap_wxTextCtrl_Paste(PyObject *self, PyObject *args) { return _resultobj; } +#define wxTextCtrl_PositionToXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PositionToXY(_swigarg0,_swigarg1,_swigarg2)) +static PyObject *_wrap_wxTextCtrl_PositionToXY(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxTextCtrl * _arg0; + long _arg1; + long * _arg2; + long temp; + long * _arg3; + long temp0; + char * _argc0 = 0; + + self = self; +{ + _arg2 = &temp; +} +{ + _arg3 = &temp0; +} + if(!PyArg_ParseTuple(args,"sl:wxTextCtrl_PositionToXY",&_argc0,&_arg1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_PositionToXY. Expected _wxTextCtrl_p."); + return NULL; + } + } + wxTextCtrl_PositionToXY(_arg0,_arg1,_arg2,_arg3); + Py_INCREF(Py_None); + _resultobj = Py_None; +{ + PyObject *o; + o = PyInt_FromLong((long) (*_arg2)); + _resultobj = t_output_helper(_resultobj, o); +} +{ + PyObject *o; + o = PyInt_FromLong((long) (*_arg3)); + _resultobj = t_output_helper(_resultobj, o); +} + return _resultobj; +} + #define wxTextCtrl_Remove(_swigobj,_swigarg0,_swigarg1) (_swigobj->Remove(_swigarg0,_swigarg1)) static PyObject *_wrap_wxTextCtrl_Remove(PyObject *self, PyObject *args) { PyObject * _resultobj; @@ -3169,6 +3279,29 @@ static PyObject *_wrap_wxTextCtrl_WriteText(PyObject *self, PyObject *args) { return _resultobj; } +#define wxTextCtrl_XYToPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->XYToPosition(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxTextCtrl_XYToPosition(PyObject *self, PyObject *args) { + PyObject * _resultobj; + long _result; + wxTextCtrl * _arg0; + long _arg1; + long _arg2; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"sll:wxTextCtrl_XYToPosition",&_argc0,&_arg1,&_arg2)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextCtrl_XYToPosition. Expected _wxTextCtrl_p."); + return NULL; + } + } + _result = (long )wxTextCtrl_XYToPosition(_arg0,_arg1,_arg2); + _resultobj = Py_BuildValue("l",_result); + return _resultobj; +} + static void *SwigwxScrollBarTowxControl(void *ptr) { wxScrollBar *src; wxControl *dest; @@ -4655,6 +4788,7 @@ static PyMethodDef controlscMethods[] = { { "wxScrollBar_GetPageSize", _wrap_wxScrollBar_GetPageSize, 1 }, { "wxScrollBar_GetRange", _wrap_wxScrollBar_GetRange, 1 }, { "new_wxScrollBar", _wrap_new_wxScrollBar, 1 }, + { "wxTextCtrl_XYToPosition", _wrap_wxTextCtrl_XYToPosition, 1 }, { "wxTextCtrl_WriteText", _wrap_wxTextCtrl_WriteText, 1 }, { "wxTextCtrl_ShowPosition", _wrap_wxTextCtrl_ShowPosition, 1 }, { "wxTextCtrl_SetValue", _wrap_wxTextCtrl_SetValue, 1 }, @@ -4665,10 +4799,14 @@ static PyMethodDef controlscMethods[] = { { "wxTextCtrl_SaveFile", _wrap_wxTextCtrl_SaveFile, 1 }, { "wxTextCtrl_Replace", _wrap_wxTextCtrl_Replace, 1 }, { "wxTextCtrl_Remove", _wrap_wxTextCtrl_Remove, 1 }, + { "wxTextCtrl_PositionToXY", _wrap_wxTextCtrl_PositionToXY, 1 }, { "wxTextCtrl_Paste", _wrap_wxTextCtrl_Paste, 1 }, { "wxTextCtrl_LoadFile", _wrap_wxTextCtrl_LoadFile, 1 }, { "wxTextCtrl_IsModified", _wrap_wxTextCtrl_IsModified, 1 }, { "wxTextCtrl_GetValue", _wrap_wxTextCtrl_GetValue, 1 }, + { "wxTextCtrl_GetNumberOfLines", _wrap_wxTextCtrl_GetNumberOfLines, 1 }, + { "wxTextCtrl_GetLineText", _wrap_wxTextCtrl_GetLineText, 1 }, + { "wxTextCtrl_GetLineLength", _wrap_wxTextCtrl_GetLineLength, 1 }, { "wxTextCtrl_GetLastPosition", _wrap_wxTextCtrl_GetLastPosition, 1 }, { "wxTextCtrl_GetInsertionPoint", _wrap_wxTextCtrl_GetInsertionPoint, 1 }, { "wxTextCtrl_DiscardEdits", _wrap_wxTextCtrl_DiscardEdits, 1 }, @@ -4766,6 +4904,7 @@ SWIGEXPORT(void,initcontrolsc)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxEvent","_class_wxEvent",0); SWIG_RegisterMapping("_class_wxActivateEvent","_wxActivateEvent",0); SWIG_RegisterMapping("_signed_long","_long",0); @@ -4820,6 +4959,7 @@ SWIGEXPORT(void,initcontrolsc)() { SWIG_RegisterMapping("_long","_signed_long",0); SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0); SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); @@ -4872,6 +5012,7 @@ SWIGEXPORT(void,initcontrolsc)() { SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0); SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0); SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0); SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0); @@ -4939,6 +5080,7 @@ SWIGEXPORT(void,initcontrolsc)() { SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0); SWIG_RegisterMapping("_class_wxFocusEvent","_wxFocusEvent",0); SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0); diff --git a/utils/wxPython/src/gtk/controls.py b/utils/wxPython/src/gtk/controls.py index 7e70aae9fa..06ceb33fb5 100644 --- a/utils/wxPython/src/gtk/controls.py +++ b/utils/wxPython/src/gtk/controls.py @@ -431,6 +431,15 @@ class wxTextCtrlPtr(wxControlPtr): def GetLastPosition(self): val = controlsc.wxTextCtrl_GetLastPosition(self.this) return val + def GetLineLength(self,arg0): + val = controlsc.wxTextCtrl_GetLineLength(self.this,arg0) + return val + def GetLineText(self,arg0): + val = controlsc.wxTextCtrl_GetLineText(self.this,arg0) + return val + def GetNumberOfLines(self): + val = controlsc.wxTextCtrl_GetNumberOfLines(self.this) + return val def GetValue(self): val = controlsc.wxTextCtrl_GetValue(self.this) return val @@ -443,6 +452,9 @@ class wxTextCtrlPtr(wxControlPtr): def Paste(self): val = controlsc.wxTextCtrl_Paste(self.this) return val + def PositionToXY(self,arg0): + val = controlsc.wxTextCtrl_PositionToXY(self.this,arg0) + return val def Remove(self,arg0,arg1): val = controlsc.wxTextCtrl_Remove(self.this,arg0,arg1) return val @@ -473,6 +485,9 @@ class wxTextCtrlPtr(wxControlPtr): def WriteText(self,arg0): val = controlsc.wxTextCtrl_WriteText(self.this,arg0) return val + def XYToPosition(self,arg0,arg1): + val = controlsc.wxTextCtrl_XYToPosition(self.this,arg0,arg1) + return val def __repr__(self): return "" class wxTextCtrl(wxTextCtrlPtr): diff --git a/utils/wxPython/src/gtk/controls2.cpp b/utils/wxPython/src/gtk/controls2.cpp index 75201e9f8e..66fd98783f 100644 --- a/utils/wxPython/src/gtk/controls2.cpp +++ b/utils/wxPython/src/gtk/controls2.cpp @@ -114,9 +114,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -3709,6 +3707,7 @@ SWIGEXPORT(void,initcontrols2c)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent); SWIG_RegisterMapping("_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent); SWIG_RegisterMapping("_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent); @@ -3740,6 +3739,7 @@ SWIGEXPORT(void,initcontrols2c)() { SWIG_RegisterMapping("_long","_signed_long",0); SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0); SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); SWIG_RegisterMapping("_wxListEvent","_class_wxListEvent",0); @@ -3802,6 +3802,7 @@ SWIGEXPORT(void,initcontrols2c)() { SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0); SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0); SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0); SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0); @@ -3842,6 +3843,7 @@ SWIGEXPORT(void,initcontrols2c)() { SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0); SWIG_RegisterMapping("_class_wxFocusEvent","_wxFocusEvent",0); SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0); diff --git a/utils/wxPython/src/gtk/events.cpp b/utils/wxPython/src/gtk/events.cpp index b9d3a95abd..f821dcd57c 100644 --- a/utils/wxPython/src/gtk/events.cpp +++ b/utils/wxPython/src/gtk/events.cpp @@ -109,9 +109,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -2635,6 +2633,7 @@ SWIGEXPORT(void,initeventsc)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxEvent","_class_wxSysColourChangedEvent",SwigwxSysColourChangedEventTowxEvent); SWIG_RegisterMapping("_wxEvent","_wxSysColourChangedEvent",SwigwxSysColourChangedEventTowxEvent); SWIG_RegisterMapping("_wxEvent","_class_wxUpdateUIEvent",SwigwxUpdateUIEventTowxEvent); @@ -2688,6 +2687,7 @@ SWIGEXPORT(void,initeventsc)() { SWIG_RegisterMapping("_long","_unsigned_long",0); SWIG_RegisterMapping("_long","_signed_long",0); SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); SWIG_RegisterMapping("_class_wxPaintEvent","_wxPaintEvent",0); SWIG_RegisterMapping("_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0); @@ -2762,6 +2762,7 @@ SWIGEXPORT(void,initeventsc)() { SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0); SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_signed_int","_EBool",0); SWIG_RegisterMapping("_signed_int","_wxWindowID",0); SWIG_RegisterMapping("_signed_int","_int",0); @@ -2781,6 +2782,7 @@ SWIGEXPORT(void,initeventsc)() { SWIG_RegisterMapping("_signed_short","_short",0); SWIG_RegisterMapping("_class_wxFocusEvent","_wxFocusEvent",0); SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_unsigned_char","_byte",0); SWIG_RegisterMapping("_unsigned_int","_uint",0); SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0); diff --git a/utils/wxPython/src/gtk/frames.cpp b/utils/wxPython/src/gtk/frames.cpp index bac3d084a3..8c3189a698 100644 --- a/utils/wxPython/src/gtk/frames.cpp +++ b/utils/wxPython/src/gtk/frames.cpp @@ -113,9 +113,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -429,6 +427,35 @@ static PyObject *_wrap_wxFrame_Maximize(PyObject *self, PyObject *args) { return _resultobj; } +#define wxFrame_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) +static PyObject *_wrap_wxFrame_SetAcceleratorTable(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxFrame * _arg0; + wxAcceleratorTable * _arg1; + char * _argc0 = 0; + char * _argc1 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"ss:wxFrame_SetAcceleratorTable",&_argc0,&_argc1)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxFrame_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetAcceleratorTable. Expected _wxFrame_p."); + return NULL; + } + } + if (_argc1) { + if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_wxAcceleratorTable_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); + return NULL; + } + } + wxFrame_SetAcceleratorTable(_arg0,*_arg1); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + #define wxFrame_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0)) static PyObject *_wrap_wxFrame_SetIcon(PyObject *self, PyObject *args) { PyObject * _resultobj; @@ -659,6 +686,7 @@ static PyMethodDef framescMethods[] = { { "wxFrame_SetStatusBar", _wrap_wxFrame_SetStatusBar, 1 }, { "wxFrame_SetMenuBar", _wrap_wxFrame_SetMenuBar, 1 }, { "wxFrame_SetIcon", _wrap_wxFrame_SetIcon, 1 }, + { "wxFrame_SetAcceleratorTable", _wrap_wxFrame_SetAcceleratorTable, 1 }, { "wxFrame_Maximize", _wrap_wxFrame_Maximize, 1 }, { "wxFrame_IsIconized", _wrap_wxFrame_IsIconized, 1 }, { "wxFrame_Iconize", _wrap_wxFrame_Iconize, 1 }, @@ -685,6 +713,7 @@ SWIGEXPORT(void,initframesc)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxEvent","_class_wxEvent",0); SWIG_RegisterMapping("_class_wxActivateEvent","_wxActivateEvent",0); SWIG_RegisterMapping("_signed_long","_long",0); @@ -709,6 +738,7 @@ SWIGEXPORT(void,initframesc)() { SWIG_RegisterMapping("_long","_signed_long",0); SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0); SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); @@ -763,6 +793,7 @@ SWIGEXPORT(void,initframesc)() { SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0); SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0); SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0); SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0); @@ -802,6 +833,7 @@ SWIGEXPORT(void,initframesc)() { SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0); SWIG_RegisterMapping("_wxStatusBar","_class_wxStatusBar",0); SWIG_RegisterMapping("_class_wxToolBarTool","_wxToolBarTool",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0); diff --git a/utils/wxPython/src/gtk/frames.py b/utils/wxPython/src/gtk/frames.py index 5add2b59d3..086d1cd5ae 100644 --- a/utils/wxPython/src/gtk/frames.py +++ b/utils/wxPython/src/gtk/frames.py @@ -52,6 +52,9 @@ class wxFramePtr(wxWindowPtr): def Maximize(self,arg0): val = framesc.wxFrame_Maximize(self.this,arg0) return val + def SetAcceleratorTable(self,arg0): + val = framesc.wxFrame_SetAcceleratorTable(self.this,arg0.this) + return val def SetIcon(self,arg0): val = framesc.wxFrame_SetIcon(self.this,arg0.this) return val diff --git a/utils/wxPython/src/gtk/gdi.cpp b/utils/wxPython/src/gtk/gdi.cpp index 343458f2a7..2f8e654706 100644 --- a/utils/wxPython/src/gtk/gdi.cpp +++ b/utils/wxPython/src/gtk/gdi.cpp @@ -110,9 +110,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -4603,6 +4601,7 @@ SWIGEXPORT(void,initgdic)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_signed_long","_long",0); SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0); SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0); @@ -4612,6 +4611,7 @@ SWIGEXPORT(void,initgdic)() { SWIG_RegisterMapping("_long","_wxDash",0); SWIG_RegisterMapping("_long","_unsigned_long",0); SWIG_RegisterMapping("_long","_signed_long",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC); SWIG_RegisterMapping("_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC); SWIG_RegisterMapping("_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC); @@ -4659,6 +4659,7 @@ SWIGEXPORT(void,initgdic)() { SWIG_RegisterMapping("_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC); SWIG_RegisterMapping("_class_wxDC","_wxDC",0); SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_signed_int","_EBool",0); SWIG_RegisterMapping("_signed_int","_wxWindowID",0); SWIG_RegisterMapping("_signed_int","_int",0); @@ -4678,6 +4679,7 @@ SWIGEXPORT(void,initgdic)() { SWIG_RegisterMapping("_signed_short","_short",0); SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0); SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); SWIG_RegisterMapping("_unsigned_char","_byte",0); diff --git a/utils/wxPython/src/gtk/mdi.cpp b/utils/wxPython/src/gtk/mdi.cpp index cadc480403..376beffcf5 100644 --- a/utils/wxPython/src/gtk/mdi.cpp +++ b/utils/wxPython/src/gtk/mdi.cpp @@ -109,9 +109,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -718,6 +716,7 @@ SWIGEXPORT(void,initmdic)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxEvent","_class_wxEvent",0); SWIG_RegisterMapping("_class_wxActivateEvent","_wxActivateEvent",0); SWIG_RegisterMapping("_signed_long","_long",0); @@ -746,6 +745,7 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_long","_signed_long",0); SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0); SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); @@ -802,6 +802,7 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0); SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0); SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0); SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0); @@ -847,6 +848,7 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0); SWIG_RegisterMapping("_wxStatusBar","_class_wxStatusBar",0); SWIG_RegisterMapping("_class_wxToolBarTool","_wxToolBarTool",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0); diff --git a/utils/wxPython/src/gtk/misc.cpp b/utils/wxPython/src/gtk/misc.cpp index acc3edee24..eab0aa53a3 100644 --- a/utils/wxPython/src/gtk/misc.cpp +++ b/utils/wxPython/src/gtk/misc.cpp @@ -110,9 +110,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -2509,7 +2507,149 @@ static PyObject *_wrap_wxLayoutConstraints_width_get(PyObject *self, PyObject *a return _resultobj; } +#define new_wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2) (new wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2)) +static PyObject *_wrap_new_wxAcceleratorEntry(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxAcceleratorEntry * _result; + int _arg0 = 0; + int _arg1 = 0; + int _arg2 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"|iii:new_wxAcceleratorEntry",&_arg0,&_arg1,&_arg2)) + return NULL; + _result = (wxAcceleratorEntry *)new_wxAcceleratorEntry(_arg0,_arg1,_arg2); + SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxAcceleratorEntry_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) +static PyObject *_wrap_wxAcceleratorEntry_Set(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxAcceleratorEntry * _arg0; + int _arg1; + int _arg2; + int _arg3; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"siii:wxAcceleratorEntry_Set",&_argc0,&_arg1,&_arg2,&_arg3)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxAcceleratorEntry_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_Set. Expected _wxAcceleratorEntry_p."); + return NULL; + } + } + wxAcceleratorEntry_Set(_arg0,_arg1,_arg2,_arg3); + Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxAcceleratorEntry_GetFlags(_swigobj) (_swigobj->GetFlags()) +static PyObject *_wrap_wxAcceleratorEntry_GetFlags(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxAcceleratorEntry * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxAcceleratorEntry_GetFlags",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxAcceleratorEntry_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetFlags. Expected _wxAcceleratorEntry_p."); + return NULL; + } + } + _result = (int )wxAcceleratorEntry_GetFlags(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxAcceleratorEntry_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) +static PyObject *_wrap_wxAcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxAcceleratorEntry * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxAcceleratorEntry_GetKeyCode",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxAcceleratorEntry_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetKeyCode. Expected _wxAcceleratorEntry_p."); + return NULL; + } + } + _result = (int )wxAcceleratorEntry_GetKeyCode(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxAcceleratorEntry_GetCommand(_swigobj) (_swigobj->GetCommand()) +static PyObject *_wrap_wxAcceleratorEntry_GetCommand(PyObject *self, PyObject *args) { + PyObject * _resultobj; + int _result; + wxAcceleratorEntry * _arg0; + char * _argc0 = 0; + + self = self; + if(!PyArg_ParseTuple(args,"s:wxAcceleratorEntry_GetCommand",&_argc0)) + return NULL; + if (_argc0) { + if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxAcceleratorEntry_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetCommand. Expected _wxAcceleratorEntry_p."); + return NULL; + } + } + _result = (int )wxAcceleratorEntry_GetCommand(_arg0); + _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define new_wxAcceleratorTable(_swigarg0,_swigarg1) (new wxAcceleratorTable(_swigarg0,_swigarg1)) +static PyObject *_wrap_new_wxAcceleratorTable(PyObject *self, PyObject *args) { + PyObject * _resultobj; + wxAcceleratorTable * _result; + int _arg0; + wxAcceleratorEntry * _arg1; + PyObject * _obj1 = 0; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTuple(args,"O:new_wxAcceleratorTable",&_obj1)) + return NULL; + if (_obj1) +{ + _arg1 = wxAcceleratorEntry_LIST_helper(_obj1); + if (_arg1 == NULL) { + return NULL; + } +} +{ + _arg0 = PyList_Size(_obj1); +} + _result = (wxAcceleratorTable *)new_wxAcceleratorTable(_arg0,_arg1); + SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); + _resultobj = Py_BuildValue("s",_ptemp); +{ + delete [] _arg1; +} + return _resultobj; +} + static PyMethodDef misccMethods[] = { + { "new_wxAcceleratorTable", _wrap_new_wxAcceleratorTable, 1 }, + { "wxAcceleratorEntry_GetCommand", _wrap_wxAcceleratorEntry_GetCommand, 1 }, + { "wxAcceleratorEntry_GetKeyCode", _wrap_wxAcceleratorEntry_GetKeyCode, 1 }, + { "wxAcceleratorEntry_GetFlags", _wrap_wxAcceleratorEntry_GetFlags, 1 }, + { "wxAcceleratorEntry_Set", _wrap_wxAcceleratorEntry_Set, 1 }, + { "new_wxAcceleratorEntry", _wrap_new_wxAcceleratorEntry, 1 }, { "wxLayoutConstraints_width_get", _wrap_wxLayoutConstraints_width_get, 1 }, { "wxLayoutConstraints_top_get", _wrap_wxLayoutConstraints_top_get, 1 }, { "wxLayoutConstraints_right_get", _wrap_wxLayoutConstraints_right_get, 1 }, @@ -2647,11 +2787,13 @@ SWIGEXPORT(void,initmiscc)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_signed_long","_long",0); SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0); SWIG_RegisterMapping("_byte","_unsigned_char",0); SWIG_RegisterMapping("_long","_unsigned_long",0); SWIG_RegisterMapping("_long","_signed_long",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); SWIG_RegisterMapping("_uint","_unsigned_int",0); SWIG_RegisterMapping("_uint","_int",0); @@ -2666,6 +2808,7 @@ SWIGEXPORT(void,initmiscc)() { SWIG_RegisterMapping("_unsigned_long","_long",0); SWIG_RegisterMapping("_class_wxRect","_wxRect",0); SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_signed_int","_EBool",0); SWIG_RegisterMapping("_signed_int","_wxWindowID",0); SWIG_RegisterMapping("_signed_int","_int",0); @@ -2679,6 +2822,7 @@ SWIGEXPORT(void,initmiscc)() { SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0); SWIG_RegisterMapping("_signed_short","_WXTYPE",0); SWIG_RegisterMapping("_signed_short","_short",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_unsigned_char","_byte",0); SWIG_RegisterMapping("_unsigned_int","_uint",0); SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0); diff --git a/utils/wxPython/src/gtk/misc.py b/utils/wxPython/src/gtk/misc.py index 50d8781f5c..cfc622abe1 100644 --- a/utils/wxPython/src/gtk/misc.py +++ b/utils/wxPython/src/gtk/misc.py @@ -325,6 +325,46 @@ class wxLayoutConstraints(wxLayoutConstraintsPtr): +class wxAcceleratorEntryPtr : + def __init__(self,this): + self.this = this + self.thisown = 0 + def Set(self,arg0,arg1,arg2): + val = miscc.wxAcceleratorEntry_Set(self.this,arg0,arg1,arg2) + return val + def GetFlags(self): + val = miscc.wxAcceleratorEntry_GetFlags(self.this) + return val + def GetKeyCode(self): + val = miscc.wxAcceleratorEntry_GetKeyCode(self.this) + return val + def GetCommand(self): + val = miscc.wxAcceleratorEntry_GetCommand(self.this) + return val + def __repr__(self): + return "" +class wxAcceleratorEntry(wxAcceleratorEntryPtr): + def __init__(self,*args) : + self.this = apply(miscc.new_wxAcceleratorEntry,()+args) + self.thisown = 1 + + + + +class wxAcceleratorTablePtr : + def __init__(self,this): + self.this = this + self.thisown = 0 + def __repr__(self): + return "" +class wxAcceleratorTable(wxAcceleratorTablePtr): + def __init__(self,arg0) : + self.this = miscc.new_wxAcceleratorTable(arg0.this) + self.thisown = 1 + + + + #-------------- FUNCTION WRAPPERS ------------------ diff --git a/utils/wxPython/src/gtk/stattool.cpp b/utils/wxPython/src/gtk/stattool.cpp index 894ded13be..99748a23fc 100644 --- a/utils/wxPython/src/gtk/stattool.cpp +++ b/utils/wxPython/src/gtk/stattool.cpp @@ -111,9 +111,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -1125,6 +1123,7 @@ SWIGEXPORT(void,initstattoolc)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxEvent","_class_wxEvent",0); SWIG_RegisterMapping("_class_wxActivateEvent","_wxActivateEvent",0); SWIG_RegisterMapping("_signed_long","_long",0); @@ -1151,6 +1150,7 @@ SWIGEXPORT(void,initstattoolc)() { SWIG_RegisterMapping("_long","_signed_long",0); SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0); SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); @@ -1205,6 +1205,7 @@ SWIGEXPORT(void,initstattoolc)() { SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0); SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0); SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0); SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0); @@ -1246,6 +1247,7 @@ SWIGEXPORT(void,initstattoolc)() { SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0); SWIG_RegisterMapping("_wxStatusBar","_class_wxStatusBar",0); SWIG_RegisterMapping("_class_wxToolBarTool","_wxToolBarTool",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0); diff --git a/utils/wxPython/src/gtk/windows.cpp b/utils/wxPython/src/gtk/windows.cpp index bf87a33a8f..ee3cf8f12d 100644 --- a/utils/wxPython/src/gtk/windows.cpp +++ b/utils/wxPython/src/gtk/windows.cpp @@ -118,9 +118,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -3956,6 +3954,7 @@ SWIGEXPORT(void,initwindowsc)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_signed_long","_long",0); SWIG_RegisterMapping("_class_wxMenuBar","_wxMenuBar",0); SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler); @@ -3982,6 +3981,7 @@ SWIGEXPORT(void,initwindowsc)() { SWIG_RegisterMapping("_long","_wxDash",0); SWIG_RegisterMapping("_long","_unsigned_long",0); SWIG_RegisterMapping("_long","_signed_long",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); SWIG_RegisterMapping("_class_wxMenuItem","_wxMenuItem",0); @@ -4010,6 +4010,7 @@ SWIGEXPORT(void,initwindowsc)() { SWIG_RegisterMapping("_class_wxRect","_wxRect",0); SWIG_RegisterMapping("_class_wxDC","_wxDC",0); SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel); SWIG_RegisterMapping("_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel); SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0); @@ -4042,6 +4043,7 @@ SWIGEXPORT(void,initwindowsc)() { SWIG_RegisterMapping("_signed_short","_short",0); SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0); SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0); diff --git a/utils/wxPython/src/gtk/windows2.cpp b/utils/wxPython/src/gtk/windows2.cpp index d627ccec04..7c01e5c3af 100644 --- a/utils/wxPython/src/gtk/windows2.cpp +++ b/utils/wxPython/src/gtk/windows2.cpp @@ -112,9 +112,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -3112,6 +3110,7 @@ SWIGEXPORT(void,initwindows2c)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxEvent","_class_wxNotebookEvent",SwigwxNotebookEventTowxEvent); SWIG_RegisterMapping("_wxEvent","_wxNotebookEvent",SwigwxNotebookEventTowxEvent); SWIG_RegisterMapping("_wxEvent","_class_wxEvent",0); @@ -3144,6 +3143,7 @@ SWIGEXPORT(void,initwindows2c)() { SWIG_RegisterMapping("_long","_signed_long",0); SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0); SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); @@ -3203,6 +3203,7 @@ SWIGEXPORT(void,initwindows2c)() { SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0); SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxPanel","_class_wxGrid",SwigwxGridTowxPanel); SWIG_RegisterMapping("_class_wxPanel","_wxGrid",SwigwxGridTowxPanel); SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0); @@ -3248,6 +3249,7 @@ SWIGEXPORT(void,initwindows2c)() { SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0); SWIG_RegisterMapping("_class_wxFocusEvent","_wxFocusEvent",0); SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0); diff --git a/utils/wxPython/src/gtk/wxp.cpp b/utils/wxPython/src/gtk/wxp.cpp index 5f3deb97f4..1e2bda4299 100644 --- a/utils/wxPython/src/gtk/wxp.cpp +++ b/utils/wxPython/src/gtk/wxp.cpp @@ -33,9 +33,8 @@ * and things like that. * * $Log$ - * Revision 1.7 1998/11/11 04:40:51 RD - * wxTreeCtrl now works (sort of) for wxPython-GTK. This is the new - * TreeCtrl in src/gtk/treectrl.cpp not the old generic one. + * Revision 1.8 1998/11/15 23:04:56 RD + * Removing some ifdef's for wxGTK * ************************************************************************/ @@ -613,9 +612,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif static char* wxStringErrorMsg = "string type is required for parameter"; @@ -1381,6 +1378,9 @@ SWIGEXPORT(void,initwxpc)() { PyDict_SetItemString(d,"wxSAVE", PyInt_FromLong((long) wxSAVE)); PyDict_SetItemString(d,"wxHIDE_READONLY", PyInt_FromLong((long) wxHIDE_READONLY)); PyDict_SetItemString(d,"wxOVERWRITE_PROMPT", PyInt_FromLong((long) wxOVERWRITE_PROMPT)); + PyDict_SetItemString(d,"wxACCEL_ALT", PyInt_FromLong((long) wxACCEL_ALT)); + PyDict_SetItemString(d,"wxACCEL_CTRL", PyInt_FromLong((long) wxACCEL_CTRL)); + PyDict_SetItemString(d,"wxACCEL_SHIFT", PyInt_FromLong((long) wxACCEL_SHIFT)); PyDict_SetItemString(d,"ERR_PARAM", PyInt_FromLong((long) ERR_PARAM)); PyDict_SetItemString(d,"ERR_NODATA", PyInt_FromLong((long) ERR_NODATA)); PyDict_SetItemString(d,"ERR_CANCEL", PyInt_FromLong((long) ERR_CANCEL)); @@ -1703,6 +1703,7 @@ SWIGEXPORT(void,initwxpc)() { * These are the pointer type-equivalency mappings. * (Used by the SWIG pointer type-checker). */ + SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); SWIG_RegisterMapping("_wxEvent","_class_wxEvent",0); SWIG_RegisterMapping("_class_wxActivateEvent","_wxActivateEvent",0); SWIG_RegisterMapping("_signed_long","_long",0); @@ -1732,6 +1733,7 @@ SWIGEXPORT(void,initwxpc)() { SWIG_RegisterMapping("_long","_signed_long",0); SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0); SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0); + SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); SWIG_RegisterMapping("_wxListEvent","_class_wxListEvent",0); @@ -1801,6 +1803,7 @@ SWIGEXPORT(void,initwxpc)() { SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); SWIG_RegisterMapping("_wxFocusEvent","_class_wxFocusEvent",0); SWIG_RegisterMapping("_wxMaximizeEvent","_class_wxMaximizeEvent",0); + SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0); SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0); SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0); @@ -1846,6 +1849,7 @@ SWIGEXPORT(void,initwxpc)() { SWIG_RegisterMapping("_class_wxMaximizeEvent","_wxMaximizeEvent",0); SWIG_RegisterMapping("_wxStatusBar","_class_wxStatusBar",0); SWIG_RegisterMapping("_class_wxToolBarTool","_wxToolBarTool",0); + SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0); diff --git a/utils/wxPython/src/gtk/wxp.py b/utils/wxPython/src/gtk/wxp.py index bad3db1a3a..1cbda2e568 100644 --- a/utils/wxPython/src/gtk/wxp.py +++ b/utils/wxPython/src/gtk/wxp.py @@ -316,6 +316,9 @@ wxOPEN = wxpc.wxOPEN wxSAVE = wxpc.wxSAVE wxHIDE_READONLY = wxpc.wxHIDE_READONLY wxOVERWRITE_PROMPT = wxpc.wxOVERWRITE_PROMPT +wxACCEL_ALT = wxpc.wxACCEL_ALT +wxACCEL_CTRL = wxpc.wxACCEL_CTRL +wxACCEL_SHIFT = wxpc.wxACCEL_SHIFT ERR_PARAM = wxpc.ERR_PARAM ERR_NODATA = wxpc.ERR_NODATA ERR_CANCEL = wxpc.ERR_CANCEL @@ -1106,9 +1109,8 @@ class wxApp(wxPyApp): #---------------------------------------------------------------------------- # # $Log$ -# Revision 1.7 1998/11/11 04:40:53 RD -# wxTreeCtrl now works (sort of) for wxPython-GTK. This is the new -# TreeCtrl in src/gtk/treectrl.cpp not the old generic one. +# Revision 1.8 1998/11/15 23:04:59 RD +# Removing some ifdef's for wxGTK # # Revision 1.5 1998/10/20 07:38:02 RD # bug fix diff --git a/utils/wxPython/src/helpers.cpp b/utils/wxPython/src/helpers.cpp index 03adda6634..a89b3502e8 100644 --- a/utils/wxPython/src/helpers.cpp +++ b/utils/wxPython/src/helpers.cpp @@ -533,7 +533,6 @@ wxString* wxString_LIST_helper(PyObject* source) { } -#ifdef __WXMSW__ wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source) { if (!PyList_Check(source)) { PyErr_SetString(PyExc_TypeError, "Expected a list object."); @@ -573,83 +572,16 @@ wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source) { return temp; } -#endif - //---------------------------------------------------------------------- -// A WinMain for when wxWindows and Python are linked together in a single -// application, instead of as a dynamic module - - -//#if !defined(WIN_PYD) && defined(WIN32) - -//extern "C" int Py_Main(int argc, char** argv); - -//int APIENTRY WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR m_lpCmdLine, -// int nCmdShow ) -//{ - -// wxpCreateApp(); - -// // Initialize wxWindows, but don't start the main loop -// wxEntry(hInstance, hPrevInstance, m_lpCmdLine, nCmdShow, FALSE); - -// Py_Initialize(); -// PyObject *argvList = PyList_New(0); -// char* stderrfilename = "wxpstderr.log"; -// int pyargc = 1; -// char* script = NULL; -// int argc = wxPythonApp->argc; -// char** argv = wxPythonApp->argv; -// for (int i = 1; i < argc; i++) { -// if (strncmp(argv[i], "wxpstderr=", 10) == 0) -// stderrfilename = argv[i]+10; -// else { -// PyList_Append(argvList, PyString_FromString(argv[i])); -// if (!script) -// script = argv[i]; -// pyargc++; -// } -// } - -// PySys_SetObject("argv", argvList); - -//#if 1 -// char buf[256]; -//// //PyRun_SimpleString("import sys; sys.stdout=open('wxpstdout.log','w')"); -// sprintf(buf, "import sys; sys.stdout=sys.stderr=open('%s','w')", stderrfilename); -// PyRun_SimpleString(buf); -//#endif - -// initwxPythonc(); - -// if (script) { -// FILE *fp = fopen(script, "r"); -// if (fp) { -// PyRun_SimpleFile(fp, script);// This returns after wxpApp constructor -// fclose(fp); -// } -// else { -// char msg[256]; -// sprintf(msg, "Cannot open %s", script); -// wxMessageBox(msg); -// } -// } -// else -// PyRun_SimpleString("import wxpide"); - -// return 0; -//} - - -//#endif - -//---------------------------------------------------------------------- ///////////////////////////////////////////////////////////////////////////// // // $Log$ +// Revision 1.13 1998/11/15 23:03:45 RD +// Removing some ifdef's for wxGTK +// // Revision 1.12 1998/11/03 09:21:08 RD // fixed a typo // diff --git a/utils/wxPython/src/misc.i b/utils/wxPython/src/misc.i index dd7c6bedea..9c2ca65b81 100644 --- a/utils/wxPython/src/misc.i +++ b/utils/wxPython/src/misc.i @@ -282,7 +282,6 @@ public: //--------------------------------------------------------------------------- // Accelerator Entry and Table -#ifdef __WXMSW__ class wxAcceleratorEntry { public: wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0); @@ -302,11 +301,14 @@ public: // ~wxAcceleratorEntry(); *** ? }; -#endif + //--------------------------------------------------------------------------- ///////////////////////////////////////////////////////////////////////////// // // $Log$ +// Revision 1.6 1998/11/15 23:03:46 RD +// Removing some ifdef's for wxGTK +// // Revision 1.5 1998/10/20 06:43:59 RD // New wxTreeCtrl wrappers (untested) // some changes in helpers diff --git a/utils/wxPython/src/my_typemaps.i b/utils/wxPython/src/my_typemaps.i index 4cf6c9f5d0..77466b712c 100644 --- a/utils/wxPython/src/my_typemaps.i +++ b/utils/wxPython/src/my_typemaps.i @@ -22,9 +22,7 @@ extern char** string_LIST_helper(PyObject* source); extern wxPoint* wxPoint_LIST_helper(PyObject* source); extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); extern wxString* wxString_LIST_helper(PyObject* source); -#ifdef __WXMSW__ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); -#endif %} @@ -188,6 +186,9 @@ static char* wxStringErrorMsg = "string type is required for parameter"; ///////////////////////////////////////////////////////////////////////////// // // $Log$ +// Revision 1.3 1998/11/15 23:03:47 RD +// Removing some ifdef's for wxGTK +// // Revision 1.2 1998/08/14 23:36:39 RD // Beginings of wxGTK compatibility // -- 2.45.2