reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
81cfe5e13e
commit
39f61e253d
@ -401,10 +401,10 @@ public:
|
||||
wxToggleButton(wxWindow *, wxWindowID, const wxString&,
|
||||
const wxPoint&, const wxSize&, long,
|
||||
const wxValidator&, const wxString&)
|
||||
{ PyErr_SetNone(PyExc_NotImplementedError); }
|
||||
{ wxPyRaiseNotImplemented(); }
|
||||
|
||||
wxToggleButton()
|
||||
{ PyErr_SetNone(PyExc_NotImplementedError); }
|
||||
{ wxPyRaiseNotImplemented(); }
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -953,7 +953,7 @@ wxPyApp *new_wxPyApp(){
|
||||
wxPythonApp = new wxPyApp();
|
||||
return wxPythonApp;
|
||||
}
|
||||
int PyApp_GetComCtl32Version(){ PyErr_SetNone(PyExc_NotImplementedError); return 0; }
|
||||
int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; }
|
||||
|
||||
void wxApp_CleanUp() {
|
||||
__wxPyCleanup();
|
||||
@ -1011,7 +1011,7 @@ wxWindow* wxFindWindowByLabel( const wxString& label,
|
||||
win->SubclassWin(hWnd);
|
||||
return win;
|
||||
#else
|
||||
PyErr_SetNone(PyExc_NotImplementedError);
|
||||
wxPyRaiseNotImplemented();
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
@ -575,13 +575,13 @@ static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
|
||||
class wxMetaFile : public wxObject {
|
||||
public:
|
||||
wxMetaFile(const wxString&)
|
||||
{ PyErr_SetNone(PyExc_NotImplementedError); }
|
||||
{ wxPyRaiseNotImplemented(); }
|
||||
};
|
||||
|
||||
class wxMetaFileDC : public wxClientDC {
|
||||
public:
|
||||
wxMetaFileDC(const wxString&, int, int, const wxString&)
|
||||
{ PyErr_SetNone(PyExc_NotImplementedError); }
|
||||
{ wxPyRaiseNotImplemented(); }
|
||||
};
|
||||
|
||||
|
||||
@ -589,10 +589,10 @@ public:
|
||||
class wxPrinterDC : public wxClientDC {
|
||||
public:
|
||||
wxPrinterDC(const wxPrintData&)
|
||||
{ PyErr_SetNone(PyExc_NotImplementedError); }
|
||||
{ wxPyRaiseNotImplemented(); }
|
||||
|
||||
// wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
|
||||
// { PyErr_SetNone(PyExc_NotImplementedError); }
|
||||
// { wxPyRaiseNotImplemented(); }
|
||||
};
|
||||
|
||||
|
||||
|
@ -636,6 +636,14 @@ class HtmlCell(core.Object):
|
||||
"""GetDescent() -> int"""
|
||||
return _html.HtmlCell_GetDescent(*args, **kwargs)
|
||||
|
||||
def GetId(*args, **kwargs):
|
||||
"""GetId() -> String"""
|
||||
return _html.HtmlCell_GetId(*args, **kwargs)
|
||||
|
||||
def SetId(*args, **kwargs):
|
||||
"""SetId(String id)"""
|
||||
return _html.HtmlCell_SetId(*args, **kwargs)
|
||||
|
||||
def GetLink(*args, **kwargs):
|
||||
"""GetLink(int x=0, int y=0) -> HtmlLinkInfo"""
|
||||
return _html.HtmlCell_GetLink(*args, **kwargs)
|
||||
|
@ -3725,6 +3725,80 @@ static PyObject *_wrap_HtmlCell_GetDescent(PyObject *self, PyObject *args, PyObj
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_HtmlCell_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxHtmlCell *arg1 = (wxHtmlCell *) 0 ;
|
||||
wxString *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlCell_GetId",kwnames,&obj0)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlCell,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
{
|
||||
wxString const &_result_ref = ((wxHtmlCell const *)arg1)->GetId();
|
||||
result = (wxString *) &_result_ref;
|
||||
}
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
||||
#else
|
||||
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
||||
#endif
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_HtmlCell_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxHtmlCell *arg1 = (wxHtmlCell *) 0 ;
|
||||
wxString *arg2 = 0 ;
|
||||
bool temp2 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "id", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlCell_SetId",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlCell,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
{
|
||||
arg2 = wxString_in_helper(obj1);
|
||||
if (arg2 == NULL) SWIG_fail;
|
||||
temp2 = True;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SetId((wxString const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
{
|
||||
if (temp2)
|
||||
delete arg2;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp2)
|
||||
delete arg2;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_HtmlCell_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxHtmlCell *arg1 = (wxHtmlCell *) 0 ;
|
||||
@ -9508,6 +9582,8 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"HtmlCell_GetWidth", (PyCFunction) _wrap_HtmlCell_GetWidth, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"HtmlCell_GetHeight", (PyCFunction) _wrap_HtmlCell_GetHeight, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"HtmlCell_GetDescent", (PyCFunction) _wrap_HtmlCell_GetDescent, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"HtmlCell_GetId", (PyCFunction) _wrap_HtmlCell_GetId, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"HtmlCell_SetId", (PyCFunction) _wrap_HtmlCell_SetId, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"HtmlCell_GetLink", (PyCFunction) _wrap_HtmlCell_GetLink, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"HtmlCell_GetNext", (PyCFunction) _wrap_HtmlCell_GetNext, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"HtmlCell_GetParent", (PyCFunction) _wrap_HtmlCell_GetParent, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -488,6 +488,10 @@ def GetTopLevelParent(*args, **kwargs):
|
||||
"""GetTopLevelParent(Window win) -> Window"""
|
||||
return _misc.GetTopLevelParent(*args, **kwargs)
|
||||
|
||||
def GetKeyState(*args, **kwargs):
|
||||
"""GetKeyState(int key) -> bool"""
|
||||
return _misc.GetKeyState(*args, **kwargs)
|
||||
|
||||
def WakeUpMainThread(*args, **kwargs):
|
||||
"""WakeUpMainThread()"""
|
||||
return _misc.WakeUpMainThread(*args, **kwargs)
|
||||
|
@ -343,7 +343,11 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
|
||||
|
||||
long wxGetFreeMemory()
|
||||
{ PyErr_SetNone(PyExc_NotImplementedError); return 0; }
|
||||
{ wxPyRaiseNotImplemented(); return 0; }
|
||||
|
||||
|
||||
bool wxGetKeyState(wxKeyCode key)
|
||||
{ wxPyRaiseNotImplemented(); return False; }
|
||||
|
||||
|
||||
void wxWakeUpMainThread() {}
|
||||
@ -527,7 +531,8 @@ class wxJoystick : public wxObject {
|
||||
public:
|
||||
wxJoystick(int joystick = wxJOYSTICK1) {
|
||||
wxPyBeginBlockThreads();
|
||||
PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform.");
|
||||
PyErr_SetString(PyExc_NotImplementedError,
|
||||
"wxJoystick is not available on this platform.");
|
||||
wxPyEndBlockThreads();
|
||||
}
|
||||
wxPoint GetPosition() { return wxPoint(-1,-1); }
|
||||
@ -589,12 +594,14 @@ class wxWave : public wxObject
|
||||
public:
|
||||
wxWave(const wxString& fileName, bool isResource = False) {
|
||||
wxPyBeginBlockThreads();
|
||||
PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
|
||||
PyErr_SetString(PyExc_NotImplementedError,
|
||||
"wxWave is not available on this platform.");
|
||||
wxPyEndBlockThreads();
|
||||
}
|
||||
wxWave(int size, const wxByte* data) {
|
||||
wxPyBeginBlockThreads();
|
||||
PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
|
||||
PyErr_SetString(PyExc_NotImplementedError,
|
||||
"wxWave is not available on this platform.");
|
||||
wxPyEndBlockThreads();
|
||||
}
|
||||
|
||||
@ -1045,7 +1052,7 @@ PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
|
||||
class wxMetafileDataObject : public wxDataObjectSimple
|
||||
{
|
||||
public:
|
||||
wxMetafileDataObject() { PyErr_SetNone(PyExc_NotImplementedError); }
|
||||
wxMetafileDataObject() { wxPyRaiseNotImplemented(); }
|
||||
};
|
||||
|
||||
|
||||
@ -3662,6 +3669,29 @@ static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObjec
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
int arg1 ;
|
||||
bool result;
|
||||
char *kwnames[] = {
|
||||
(char *) "key", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetKeyState",kwnames,&arg1)) goto fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)wxGetKeyState((wxKeyCode )arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = PyInt_FromLong((long)result);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
char *kwnames[] = {
|
||||
@ -24597,6 +24627,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -593,7 +593,7 @@ IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup
|
||||
class wxTaskBarIcon : public wxEvtHandler
|
||||
{
|
||||
public:
|
||||
wxTaskBarIcon() { PyErr_SetNone(PyExc_NotImplementedError); }
|
||||
wxTaskBarIcon() { wxPyRaiseNotImplemented(); }
|
||||
};
|
||||
|
||||
|
||||
@ -601,7 +601,7 @@ class wxTaskBarIconEvent : public wxEvent
|
||||
{
|
||||
public:
|
||||
wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *)
|
||||
{ PyErr_SetNone(PyExc_NotImplementedError); }
|
||||
{ wxPyRaiseNotImplemented(); }
|
||||
virtual wxEvent* Clone() const { return NULL; }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user