X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95837b4d96d6267f3901e193cf1941d96fd1a472..1a787c5dc89b1cb6a9ddb4ebef3ad2fb24b49c8c:/utils/wxPython/modules/html/html.cpp diff --git a/utils/wxPython/modules/html/html.cpp b/utils/wxPython/modules/html/html.cpp index 274ba736e2..bc12b9351c 100644 --- a/utils/wxPython/modules/html/html.cpp +++ b/utils/wxPython/modules/html/html.cpp @@ -1,5 +1,5 @@ /* - * FILE : ./html.cpp + * FILE : html.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) @@ -213,9 +213,13 @@ public: const wxString& name = "htmlWindow") : wxHtmlWindow(parent, id, pos, size, style, name) {}; - +#ifdef POST_2_1_12 + void OnLinkClicked(const wxHtmlLinkInfo& link); + void base_OnLinkClicked(const wxHtmlLinkInfo& link); +#else void OnLinkClicked(wxHtmlLinkInfo* link); void base_OnLinkClicked(wxHtmlLinkInfo* link); +#endif DEC_PYCALLBACK__STRING(OnSetTitle); PYPRIVATE; @@ -224,17 +228,29 @@ public: IMP_PYCALLBACK__STRING(wxPyHtmlWindow, wxHtmlWindow, OnSetTitle); -void wxPyHtmlWindow::OnLinkClicked(wxHtmlLinkInfo* link) { +#ifdef POST_2_1_12 + void wxPyHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link) { +#else + void wxPyHtmlWindow::OnLinkClicked(wxHtmlLinkInfo* link) { +#endif bool doSave = wxPyRestoreThread(); if (m_myInst.findCallback("OnLinkClicked")) { +#ifdef POST_2_1_12 + PyObject* obj = wxPyConstructObject((void*)&link, "wxHtmlLinkInfo"); +#else PyObject* obj = wxPyConstructObject(link, "wxHtmlLinkInfo"); +#endif m_myInst.callCallback(Py_BuildValue("(O)", obj)); } else wxHtmlWindow::OnLinkClicked(link); wxPySaveThread(doSave); } +#ifdef POST_2_1_12 +void wxPyHtmlWindow::base_OnLinkClicked(const wxHtmlLinkInfo& link) { +#else void wxPyHtmlWindow::base_OnLinkClicked(wxHtmlLinkInfo* link) { +#endif wxHtmlWindow::OnLinkClicked(link); } @@ -3388,33 +3404,6 @@ static PyObject *_wrap_wxHtmlContainerCell_SetMinHeight(PyObject *self, PyObject return _resultobj; } -#define wxHtmlContainerCell_GetMaxLineWidth(_swigobj) (_swigobj->GetMaxLineWidth()) -static PyObject *_wrap_wxHtmlContainerCell_GetMaxLineWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxHtmlContainerCell * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlContainerCell_GetMaxLineWidth",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHtmlContainerCell_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHtmlContainerCell_GetMaxLineWidth. Expected _wxHtmlContainerCell_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxHtmlContainerCell_GetMaxLineWidth(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - #define wxHtmlContainerCell_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) static PyObject *_wrap_wxHtmlContainerCell_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -5487,7 +5476,6 @@ static PyMethodDef htmlcMethods[] = { { "wxHtmlContainerCell_GetFirstCell", (PyCFunction) _wrap_wxHtmlContainerCell_GetFirstCell, METH_VARARGS | METH_KEYWORDS }, { "wxHtmlContainerCell_SetBorder", (PyCFunction) _wrap_wxHtmlContainerCell_SetBorder, METH_VARARGS | METH_KEYWORDS }, { "wxHtmlContainerCell_SetBackgroundColour", (PyCFunction) _wrap_wxHtmlContainerCell_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, - { "wxHtmlContainerCell_GetMaxLineWidth", (PyCFunction) _wrap_wxHtmlContainerCell_GetMaxLineWidth, METH_VARARGS | METH_KEYWORDS }, { "wxHtmlContainerCell_SetMinHeight", (PyCFunction) _wrap_wxHtmlContainerCell_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, { "wxHtmlContainerCell_SetWidthFloatFromTag", (PyCFunction) _wrap_wxHtmlContainerCell_SetWidthFloatFromTag, METH_VARARGS | METH_KEYWORDS }, { "wxHtmlContainerCell_SetWidthFloat", (PyCFunction) _wrap_wxHtmlContainerCell_SetWidthFloat, METH_VARARGS | METH_KEYWORDS },