X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd9a3de816bb5e048a2b99837a508542a91235f0..9f06bcb3b8aea7aa709754a217c26e94fe2d5954:/utils/wxPython/src/gtk/wx.cpp?ds=sidebyside diff --git a/utils/wxPython/src/gtk/wx.cpp b/utils/wxPython/src/gtk/wx.cpp index f924d9a9da..94e8c893d5 100644 --- a/utils/wxPython/src/gtk/wx.cpp +++ b/utils/wxPython/src/gtk/wx.cpp @@ -33,11 +33,8 @@ * and things like that. * * $Log$ - * Revision 1.5 1999/01/30 08:14:59 RD - * Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc. - * - * Various cleanup, tweaks, minor additions, etc. to maintain - * compatibility with the current wxWindows. + * Revision 1.9 1999/03/01 23:21:37 RD + * Changes for allowing wxRA_SPECIFY_ROWS and wxRA_SPECIFY_COLS. * ************************************************************************/ @@ -632,14 +629,27 @@ extern "C" SWIGEXPORT(void,initcontrols2c)(); extern "C" SWIGEXPORT(void,initcmndlgsc)(); extern "C" SWIGEXPORT(void,initstattoolc)(); extern "C" SWIGEXPORT(void,initframesc)(); -extern "C" SWIGEXPORT(void,initutilsc)(); extern "C" SWIGEXPORT(void,initwindows3c)(); - - +#ifndef SEPARATE +extern "C" SWIGEXPORT(void,initutilsc)(); +#endif static int _wrap_wxPyDefaultPosition_set(PyObject *val) { + char * tval; + wxPoint * temp; - PyErr_SetString(PyExc_TypeError,"Variable wxPyDefaultPosition is read-only."); - return 1; + tval = (char *) PyString_AsString(val); + if (PyErr_Occurred()) { + PyErr_SetString(PyExc_TypeError,"C variable 'wxPyDefaultPosition'(wxPoint *)"); + return 1; + } + if (tval) { + if (SWIG_GetPtr(tval,(void **) &temp,"_wxPoint_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in value of wxPyDefaultPosition. Expected _wxPoint_p."); + return 1; + } + } + wxPyDefaultPosition = *temp; + return 0; } static PyObject *_wrap_wxPyDefaultPosition_get() { @@ -652,9 +662,22 @@ static PyObject *_wrap_wxPyDefaultPosition_get() { } static int _wrap_wxPyDefaultSize_set(PyObject *val) { + char * tval; + wxSize * temp; - PyErr_SetString(PyExc_TypeError,"Variable wxPyDefaultSize is read-only."); - return 1; + tval = (char *) PyString_AsString(val); + if (PyErr_Occurred()) { + PyErr_SetString(PyExc_TypeError,"C variable 'wxPyDefaultSize'(wxSize *)"); + return 1; + } + if (tval) { + if (SWIG_GetPtr(tval,(void **) &temp,"_wxSize_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in value of wxPyDefaultSize. Expected _wxSize_p."); + return 1; + } + } + wxPyDefaultSize = *temp; + return 0; } static PyObject *_wrap_wxPyDefaultSize_get() { @@ -1244,6 +1267,8 @@ SWIGEXPORT(void,initwxc)() { PyDict_SetItemString(d,"wxCB_READONLY", PyInt_FromLong((long) wxCB_READONLY)); PyDict_SetItemString(d,"wxRA_HORIZONTAL", PyInt_FromLong((long) wxRA_HORIZONTAL)); PyDict_SetItemString(d,"wxRA_VERTICAL", PyInt_FromLong((long) wxRA_VERTICAL)); + PyDict_SetItemString(d,"wxRA_SPECIFY_ROWS", PyInt_FromLong((long) wxRA_SPECIFY_ROWS)); + PyDict_SetItemString(d,"wxRA_SPECIFY_COLS", PyInt_FromLong((long) wxRA_SPECIFY_COLS)); PyDict_SetItemString(d,"wxRB_GROUP", PyInt_FromLong((long) wxRB_GROUP)); PyDict_SetItemString(d,"wxGA_PROGRESSBAR", PyInt_FromLong((long) wxGA_PROGRESSBAR)); PyDict_SetItemString(d,"wxGA_HORIZONTAL", PyInt_FromLong((long) wxGA_HORIZONTAL)); @@ -1545,6 +1570,7 @@ SWIGEXPORT(void,initwxc)() { PyDict_SetItemString(d,"false", PyInt_FromLong((long) 0)); PyDict_SetItemString(d,"TRUE", PyInt_FromLong((long) 1)); PyDict_SetItemString(d,"true", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxVERSION_STRING", PyString_FromString("wxVERSION_STRING")); PyDict_SetItemString(d,"wxEVT_NULL", PyInt_FromLong((long) wxEVT_NULL)); PyDict_SetItemString(d,"wxEVT_FIRST", PyInt_FromLong((long) wxEVT_FIRST)); PyDict_SetItemString(d,"wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_BUTTON_CLICKED)); @@ -1677,7 +1703,7 @@ SWIGEXPORT(void,initwxc)() { PyDict_SetItemString(d,"wxEVT_COMMAND_TAB_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TAB_SEL_CHANGING)); PyDict_SetItemString(d,"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); PyDict_SetItemString(d,"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); - PyDict_SetItemString(d,"__version__", PyString_FromString("0.5.3")); + PyDict_SetItemString(d,"__version__", PyString_FromString("2.0b5")); PyDict_SetItemString(d,"cvar", SWIG_globals); SWIG_addvarlink(SWIG_globals,"wxPyDefaultPosition",_wrap_wxPyDefaultPosition_get, _wrap_wxPyDefaultPosition_set); SWIG_addvarlink(SWIG_globals,"wxPyDefaultSize",_wrap_wxPyDefaultSize_get, _wrap_wxPyDefaultSize_set); @@ -1724,6 +1750,7 @@ SWIGEXPORT(void,initwxc)() { SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0); SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0); SWIG_RegisterMapping("_class_wxTreeCtrl","_wxTreeCtrl",0); + SWIG_RegisterMapping("_wxToolTip","_class_wxToolTip",0); SWIG_RegisterMapping("_wxMask","_class_wxMask",0); SWIG_RegisterMapping("_wxGrid","_class_wxGrid",0); SWIG_RegisterMapping("_wxPageSetupData","_class_wxPageSetupData",0); @@ -1739,6 +1766,7 @@ SWIGEXPORT(void,initwxc)() { SWIG_RegisterMapping("_long","_wxDash",0); SWIG_RegisterMapping("_long","_unsigned_long",0); SWIG_RegisterMapping("_long","_signed_long",0); + SWIG_RegisterMapping("_wxImageList","_class_wxImageList",0); SWIG_RegisterMapping("_wxDropFilesEvent","_class_wxDropFilesEvent",0); SWIG_RegisterMapping("_wxBitmapButton","_class_wxBitmapButton",0); SWIG_RegisterMapping("_wxSashWindow","_class_wxSashWindow",0); @@ -1760,6 +1788,7 @@ SWIGEXPORT(void,initwxc)() { SWIG_RegisterMapping("_wxInitDialogEvent","_class_wxInitDialogEvent",0); SWIG_RegisterMapping("_wxCheckBox","_class_wxCheckBox",0); SWIG_RegisterMapping("_wxTextCtrl","_class_wxTextCtrl",0); + SWIG_RegisterMapping("_class_wxToolTip","_wxToolTip",0); SWIG_RegisterMapping("_class_wxMask","_wxMask",0); SWIG_RegisterMapping("_class_wxKeyEvent","_wxKeyEvent",0); SWIG_RegisterMapping("_class_wxGrid","_wxGrid",0); @@ -1910,6 +1939,7 @@ SWIGEXPORT(void,initwxc)() { SWIG_RegisterMapping("_class_wxChoice","_wxChoice",0); SWIG_RegisterMapping("_class_wxSlider","_wxSlider",0); SWIG_RegisterMapping("_class_wxCalculateLayoutEvent","_wxCalculateLayoutEvent",0); + SWIG_RegisterMapping("_class_wxImageList","_wxImageList",0); SWIG_RegisterMapping("_class_wxBitmapButton","_wxBitmapButton",0); SWIG_RegisterMapping("_wxFrame","_class_wxFrame",0); SWIG_RegisterMapping("_class_wxNotebook","_wxNotebook",0);