Changes needed to allow wxPython's OGL to compile when wxUSE_PROLOGIO==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -303,7 +303,7 @@ public:
|
|||||||
void ClearText(int regionId = 0);
|
void ClearText(int regionId = 0);
|
||||||
void RemoveLine(wxPyLineShape *line);
|
void RemoveLine(wxPyLineShape *line);
|
||||||
|
|
||||||
#ifdef PROLOGIO
|
#ifdef wxUSE_PROLOGIO
|
||||||
void WriteAttributes(wxExpr *clause);
|
void WriteAttributes(wxExpr *clause);
|
||||||
void ReadAttributes(wxExpr *clause);
|
void ReadAttributes(wxExpr *clause);
|
||||||
void ReadConstraints(wxExpr *clause, wxExprDatabase *database);
|
void ReadConstraints(wxExpr *clause, wxExprDatabase *database);
|
||||||
|
@@ -550,153 +550,6 @@ static PyObject *_wrap_wxDiagram_InsertShape(PyObject *self, PyObject *args, PyO
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define wxDiagram_LoadFile(_swigobj,_swigarg0) (_swigobj->LoadFile(_swigarg0))
|
|
||||||
static PyObject *_wrap_wxDiagram_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
bool _result;
|
|
||||||
wxDiagram * _arg0;
|
|
||||||
wxString * _arg1;
|
|
||||||
PyObject * _argo0 = 0;
|
|
||||||
PyObject * _obj1 = 0;
|
|
||||||
char *_kwnames[] = { "self","filename", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_LoadFile",_kwnames,&_argo0,&_obj1))
|
|
||||||
return NULL;
|
|
||||||
if (_argo0) {
|
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_LoadFile. Expected _wxDiagram_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
_arg1 = wxString_in_helper(_obj1);
|
|
||||||
if (_arg1 == NULL)
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = (bool )wxDiagram_LoadFile(_arg0,*_arg1);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} _resultobj = Py_BuildValue("i",_result);
|
|
||||||
{
|
|
||||||
if (_obj1)
|
|
||||||
delete _arg1;
|
|
||||||
}
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define wxDiagram_ReadContainerGeometry(_swigobj,_swigarg0) (_swigobj->ReadContainerGeometry(_swigarg0))
|
|
||||||
static PyObject *_wrap_wxDiagram_ReadContainerGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxDiagram * _arg0;
|
|
||||||
wxExprDatabase * _arg1;
|
|
||||||
PyObject * _argo0 = 0;
|
|
||||||
PyObject * _argo1 = 0;
|
|
||||||
char *_kwnames[] = { "self","database", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadContainerGeometry",_kwnames,&_argo0,&_argo1))
|
|
||||||
return NULL;
|
|
||||||
if (_argo0) {
|
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ReadContainerGeometry. Expected _wxDiagram_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (_argo1) {
|
|
||||||
if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExprDatabase_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_ReadContainerGeometry. Expected _wxExprDatabase_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
wxDiagram_ReadContainerGeometry(_arg0,*_arg1);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} Py_INCREF(Py_None);
|
|
||||||
_resultobj = Py_None;
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define wxDiagram_ReadLines(_swigobj,_swigarg0) (_swigobj->ReadLines(_swigarg0))
|
|
||||||
static PyObject *_wrap_wxDiagram_ReadLines(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxDiagram * _arg0;
|
|
||||||
wxExprDatabase * _arg1;
|
|
||||||
PyObject * _argo0 = 0;
|
|
||||||
PyObject * _argo1 = 0;
|
|
||||||
char *_kwnames[] = { "self","database", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadLines",_kwnames,&_argo0,&_argo1))
|
|
||||||
return NULL;
|
|
||||||
if (_argo0) {
|
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ReadLines. Expected _wxDiagram_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (_argo1) {
|
|
||||||
if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExprDatabase_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_ReadLines. Expected _wxExprDatabase_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
wxDiagram_ReadLines(_arg0,*_arg1);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} Py_INCREF(Py_None);
|
|
||||||
_resultobj = Py_None;
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define wxDiagram_ReadNodes(_swigobj,_swigarg0) (_swigobj->ReadNodes(_swigarg0))
|
|
||||||
static PyObject *_wrap_wxDiagram_ReadNodes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxDiagram * _arg0;
|
|
||||||
wxExprDatabase * _arg1;
|
|
||||||
PyObject * _argo0 = 0;
|
|
||||||
PyObject * _argo1 = 0;
|
|
||||||
char *_kwnames[] = { "self","database", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_ReadNodes",_kwnames,&_argo0,&_argo1))
|
|
||||||
return NULL;
|
|
||||||
if (_argo0) {
|
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_ReadNodes. Expected _wxDiagram_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (_argo1) {
|
|
||||||
if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExprDatabase_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDiagram_ReadNodes. Expected _wxExprDatabase_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
wxDiagram_ReadNodes(_arg0,*_arg1);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} Py_INCREF(Py_None);
|
|
||||||
_resultobj = Py_None;
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define wxDiagram_RecentreAll(_swigobj,_swigarg0) (_swigobj->RecentreAll(_swigarg0))
|
#define wxDiagram_RecentreAll(_swigobj,_swigarg0) (_swigobj->RecentreAll(_swigarg0))
|
||||||
static PyObject *_wrap_wxDiagram_RecentreAll(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxDiagram_RecentreAll(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -834,45 +687,6 @@ static PyObject *_wrap_wxDiagram_RemoveShape(PyObject *self, PyObject *args, PyO
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define wxDiagram_SaveFile(_swigobj,_swigarg0) (_swigobj->SaveFile(_swigarg0))
|
|
||||||
static PyObject *_wrap_wxDiagram_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
bool _result;
|
|
||||||
wxDiagram * _arg0;
|
|
||||||
wxString * _arg1;
|
|
||||||
PyObject * _argo0 = 0;
|
|
||||||
PyObject * _obj1 = 0;
|
|
||||||
char *_kwnames[] = { "self","filename", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDiagram_SaveFile",_kwnames,&_argo0,&_obj1))
|
|
||||||
return NULL;
|
|
||||||
if (_argo0) {
|
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDiagram_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDiagram_SaveFile. Expected _wxDiagram_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
_arg1 = wxString_in_helper(_obj1);
|
|
||||||
if (_arg1 == NULL)
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = (bool )wxDiagram_SaveFile(_arg0,*_arg1);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} _resultobj = Py_BuildValue("i",_result);
|
|
||||||
{
|
|
||||||
if (_obj1)
|
|
||||||
delete _arg1;
|
|
||||||
}
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define wxDiagram_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
|
#define wxDiagram_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
|
||||||
static PyObject *_wrap_wxDiagram_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxDiagram_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -1940,15 +1754,10 @@ static PyMethodDef oglcanvascMethods[] = {
|
|||||||
{ "wxDiagram_SetMouseTolerance", (PyCFunction) _wrap_wxDiagram_SetMouseTolerance, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDiagram_SetMouseTolerance", (PyCFunction) _wrap_wxDiagram_SetMouseTolerance, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxDiagram_SetGridSpacing", (PyCFunction) _wrap_wxDiagram_SetGridSpacing, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDiagram_SetGridSpacing", (PyCFunction) _wrap_wxDiagram_SetGridSpacing, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxDiagram_SetCanvas", (PyCFunction) _wrap_wxDiagram_SetCanvas, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDiagram_SetCanvas", (PyCFunction) _wrap_wxDiagram_SetCanvas, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxDiagram_SaveFile", (PyCFunction) _wrap_wxDiagram_SaveFile, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxDiagram_RemoveShape", (PyCFunction) _wrap_wxDiagram_RemoveShape, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDiagram_RemoveShape", (PyCFunction) _wrap_wxDiagram_RemoveShape, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxDiagram_RemoveAllShapes", (PyCFunction) _wrap_wxDiagram_RemoveAllShapes, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDiagram_RemoveAllShapes", (PyCFunction) _wrap_wxDiagram_RemoveAllShapes, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxDiagram_Redraw", (PyCFunction) _wrap_wxDiagram_Redraw, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDiagram_Redraw", (PyCFunction) _wrap_wxDiagram_Redraw, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxDiagram_RecentreAll", (PyCFunction) _wrap_wxDiagram_RecentreAll, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDiagram_RecentreAll", (PyCFunction) _wrap_wxDiagram_RecentreAll, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxDiagram_ReadNodes", (PyCFunction) _wrap_wxDiagram_ReadNodes, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxDiagram_ReadLines", (PyCFunction) _wrap_wxDiagram_ReadLines, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxDiagram_ReadContainerGeometry", (PyCFunction) _wrap_wxDiagram_ReadContainerGeometry, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxDiagram_LoadFile", (PyCFunction) _wrap_wxDiagram_LoadFile, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxDiagram_InsertShape", (PyCFunction) _wrap_wxDiagram_InsertShape, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDiagram_InsertShape", (PyCFunction) _wrap_wxDiagram_InsertShape, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxDiagram_GetSnapToGrid", (PyCFunction) _wrap_wxDiagram_GetSnapToGrid, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDiagram_GetSnapToGrid", (PyCFunction) _wrap_wxDiagram_GetSnapToGrid, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxDiagram_GetQuickEditMode", (PyCFunction) _wrap_wxDiagram_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDiagram_GetQuickEditMode", (PyCFunction) _wrap_wxDiagram_GetQuickEditMode, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -71,8 +71,13 @@ public:
|
|||||||
bool GetQuickEditMode();
|
bool GetQuickEditMode();
|
||||||
bool GetSnapToGrid();
|
bool GetSnapToGrid();
|
||||||
void InsertShape(wxPyShape *shape);
|
void InsertShape(wxPyShape *shape);
|
||||||
bool LoadFile(const wxString& filename);
|
|
||||||
|
|
||||||
|
#ifdef wxUSE_PROLOGIO
|
||||||
|
bool LoadFile(const wxString& filename);
|
||||||
|
bool SaveFile(const wxString& filename);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef wxUSE_PROLOGIO
|
||||||
// **** Have to deal with wxExpr and wxExprDatabase first...
|
// **** Have to deal with wxExpr and wxExprDatabase first...
|
||||||
//void OnDatabaseLoad(wxExprDatabase& database);
|
//void OnDatabaseLoad(wxExprDatabase& database);
|
||||||
//void OnDatabaseSave(wxExprDatabase& database);
|
//void OnDatabaseSave(wxExprDatabase& database);
|
||||||
@@ -80,16 +85,18 @@ public:
|
|||||||
//bool OnHeaderSave(wxExprDatabase& database, wxExpr& expr);
|
//bool OnHeaderSave(wxExprDatabase& database, wxExpr& expr);
|
||||||
//bool OnShapeLoad(wxExprDatabase& database, wxPyShape& shape, wxExpr& expr);
|
//bool OnShapeLoad(wxExprDatabase& database, wxPyShape& shape, wxExpr& expr);
|
||||||
//bool OnShapeSave(wxExprDatabase& database, wxPyShape& shape, wxExpr& expr);
|
//bool OnShapeSave(wxExprDatabase& database, wxPyShape& shape, wxExpr& expr);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef wxUSE_PROLOGIO
|
||||||
void ReadContainerGeometry(wxExprDatabase& database);
|
void ReadContainerGeometry(wxExprDatabase& database);
|
||||||
void ReadLines(wxExprDatabase& database);
|
void ReadLines(wxExprDatabase& database);
|
||||||
void ReadNodes(wxExprDatabase& database);
|
void ReadNodes(wxExprDatabase& database);
|
||||||
|
#endif
|
||||||
|
|
||||||
void RecentreAll(wxDC& dc);
|
void RecentreAll(wxDC& dc);
|
||||||
void Redraw(wxDC& dc);
|
void Redraw(wxDC& dc);
|
||||||
void RemoveAllShapes();
|
void RemoveAllShapes();
|
||||||
void RemoveShape(wxPyShape* shape);
|
void RemoveShape(wxPyShape* shape);
|
||||||
bool SaveFile(const wxString& filename);
|
|
||||||
void SetCanvas(wxPyShapeCanvas* canvas);
|
void SetCanvas(wxPyShapeCanvas* canvas);
|
||||||
void SetGridSpacing(double spacing);
|
void SetGridSpacing(double spacing);
|
||||||
void SetMouseTolerance(int tolerance);
|
void SetMouseTolerance(int tolerance);
|
||||||
|
@@ -88,18 +88,6 @@ class wxDiagramPtr(wxObjectPtr):
|
|||||||
def InsertShape(self, *_args, **_kwargs):
|
def InsertShape(self, *_args, **_kwargs):
|
||||||
val = apply(oglcanvasc.wxDiagram_InsertShape,(self,) + _args, _kwargs)
|
val = apply(oglcanvasc.wxDiagram_InsertShape,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
def LoadFile(self, *_args, **_kwargs):
|
|
||||||
val = apply(oglcanvasc.wxDiagram_LoadFile,(self,) + _args, _kwargs)
|
|
||||||
return val
|
|
||||||
def ReadContainerGeometry(self, *_args, **_kwargs):
|
|
||||||
val = apply(oglcanvasc.wxDiagram_ReadContainerGeometry,(self,) + _args, _kwargs)
|
|
||||||
return val
|
|
||||||
def ReadLines(self, *_args, **_kwargs):
|
|
||||||
val = apply(oglcanvasc.wxDiagram_ReadLines,(self,) + _args, _kwargs)
|
|
||||||
return val
|
|
||||||
def ReadNodes(self, *_args, **_kwargs):
|
|
||||||
val = apply(oglcanvasc.wxDiagram_ReadNodes,(self,) + _args, _kwargs)
|
|
||||||
return val
|
|
||||||
def RecentreAll(self, *_args, **_kwargs):
|
def RecentreAll(self, *_args, **_kwargs):
|
||||||
val = apply(oglcanvasc.wxDiagram_RecentreAll,(self,) + _args, _kwargs)
|
val = apply(oglcanvasc.wxDiagram_RecentreAll,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
@@ -112,9 +100,6 @@ class wxDiagramPtr(wxObjectPtr):
|
|||||||
def RemoveShape(self, *_args, **_kwargs):
|
def RemoveShape(self, *_args, **_kwargs):
|
||||||
val = apply(oglcanvasc.wxDiagram_RemoveShape,(self,) + _args, _kwargs)
|
val = apply(oglcanvasc.wxDiagram_RemoveShape,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
def SaveFile(self, *_args, **_kwargs):
|
|
||||||
val = apply(oglcanvasc.wxDiagram_SaveFile,(self,) + _args, _kwargs)
|
|
||||||
return val
|
|
||||||
def SetCanvas(self, *_args, **_kwargs):
|
def SetCanvas(self, *_args, **_kwargs):
|
||||||
val = apply(oglcanvasc.wxDiagram_SetCanvas,(self,) + _args, _kwargs)
|
val = apply(oglcanvasc.wxDiagram_SetCanvas,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
@@ -201,82 +201,6 @@ static PyObject *_wrap_wxPseudoMetaFile_Draw(PyObject *self, PyObject *args, PyO
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define wxPseudoMetaFile_WriteAttributes(_swigobj,_swigarg0,_swigarg1) (_swigobj->WriteAttributes(_swigarg0,_swigarg1))
|
|
||||||
static PyObject *_wrap_wxPseudoMetaFile_WriteAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxPseudoMetaFile * _arg0;
|
|
||||||
wxExpr * _arg1;
|
|
||||||
int _arg2;
|
|
||||||
PyObject * _argo0 = 0;
|
|
||||||
PyObject * _argo1 = 0;
|
|
||||||
char *_kwnames[] = { "self","clause","whichAngle", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxPseudoMetaFile_WriteAttributes",_kwnames,&_argo0,&_argo1,&_arg2))
|
|
||||||
return NULL;
|
|
||||||
if (_argo0) {
|
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPseudoMetaFile_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPseudoMetaFile_WriteAttributes. Expected _wxPseudoMetaFile_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (_argo1) {
|
|
||||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExpr_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPseudoMetaFile_WriteAttributes. Expected _wxExpr_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
wxPseudoMetaFile_WriteAttributes(_arg0,_arg1,_arg2);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} Py_INCREF(Py_None);
|
|
||||||
_resultobj = Py_None;
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define wxPseudoMetaFile_ReadAttributes(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadAttributes(_swigarg0,_swigarg1))
|
|
||||||
static PyObject *_wrap_wxPseudoMetaFile_ReadAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxPseudoMetaFile * _arg0;
|
|
||||||
wxExpr * _arg1;
|
|
||||||
int _arg2;
|
|
||||||
PyObject * _argo0 = 0;
|
|
||||||
PyObject * _argo1 = 0;
|
|
||||||
char *_kwnames[] = { "self","clause","whichAngle", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxPseudoMetaFile_ReadAttributes",_kwnames,&_argo0,&_argo1,&_arg2))
|
|
||||||
return NULL;
|
|
||||||
if (_argo0) {
|
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPseudoMetaFile_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPseudoMetaFile_ReadAttributes. Expected _wxPseudoMetaFile_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (_argo1) {
|
|
||||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxExpr_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPseudoMetaFile_ReadAttributes. Expected _wxExpr_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
wxPseudoMetaFile_ReadAttributes(_arg0,_arg1,_arg2);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} Py_INCREF(Py_None);
|
|
||||||
_resultobj = Py_None;
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define wxPseudoMetaFile_Clear(_swigobj) (_swigobj->Clear())
|
#define wxPseudoMetaFile_Clear(_swigobj) (_swigobj->Clear())
|
||||||
static PyObject *_wrap_wxPseudoMetaFile_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxPseudoMetaFile_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -12742,8 +12666,6 @@ static PyMethodDef oglshapescMethods[] = {
|
|||||||
{ "wxPseudoMetaFile_Scale", (PyCFunction) _wrap_wxPseudoMetaFile_Scale, METH_VARARGS | METH_KEYWORDS },
|
{ "wxPseudoMetaFile_Scale", (PyCFunction) _wrap_wxPseudoMetaFile_Scale, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxPseudoMetaFile_Copy", (PyCFunction) _wrap_wxPseudoMetaFile_Copy, METH_VARARGS | METH_KEYWORDS },
|
{ "wxPseudoMetaFile_Copy", (PyCFunction) _wrap_wxPseudoMetaFile_Copy, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxPseudoMetaFile_Clear", (PyCFunction) _wrap_wxPseudoMetaFile_Clear, METH_VARARGS | METH_KEYWORDS },
|
{ "wxPseudoMetaFile_Clear", (PyCFunction) _wrap_wxPseudoMetaFile_Clear, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxPseudoMetaFile_ReadAttributes", (PyCFunction) _wrap_wxPseudoMetaFile_ReadAttributes, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxPseudoMetaFile_WriteAttributes", (PyCFunction) _wrap_wxPseudoMetaFile_WriteAttributes, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxPseudoMetaFile_Draw", (PyCFunction) _wrap_wxPseudoMetaFile_Draw, METH_VARARGS | METH_KEYWORDS },
|
{ "wxPseudoMetaFile_Draw", (PyCFunction) _wrap_wxPseudoMetaFile_Draw, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "delete_wxPseudoMetaFile", (PyCFunction) _wrap_delete_wxPseudoMetaFile, METH_VARARGS | METH_KEYWORDS },
|
{ "delete_wxPseudoMetaFile", (PyCFunction) _wrap_delete_wxPseudoMetaFile, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "new_wxPseudoMetaFile", (PyCFunction) _wrap_new_wxPseudoMetaFile, METH_VARARGS | METH_KEYWORDS },
|
{ "new_wxPseudoMetaFile", (PyCFunction) _wrap_new_wxPseudoMetaFile, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -46,9 +46,10 @@ public:
|
|||||||
~wxPseudoMetaFile();
|
~wxPseudoMetaFile();
|
||||||
|
|
||||||
void Draw(wxDC& dc, double xoffset, double yoffset);
|
void Draw(wxDC& dc, double xoffset, double yoffset);
|
||||||
|
#ifdef wxUSE_PROLOGIO
|
||||||
void WriteAttributes(wxExpr *clause, int whichAngle);
|
void WriteAttributes(wxExpr *clause, int whichAngle);
|
||||||
void ReadAttributes(wxExpr *clause, int whichAngle);
|
void ReadAttributes(wxExpr *clause, int whichAngle);
|
||||||
|
#endif
|
||||||
void Clear();
|
void Clear();
|
||||||
void Copy(wxPseudoMetaFile& copy);
|
void Copy(wxPseudoMetaFile& copy);
|
||||||
void Scale(double sx, double sy);
|
void Scale(double sx, double sy);
|
||||||
|
@@ -55,12 +55,6 @@ class wxPseudoMetaFilePtr(wxObjectPtr):
|
|||||||
def Draw(self, *_args, **_kwargs):
|
def Draw(self, *_args, **_kwargs):
|
||||||
val = apply(oglshapesc.wxPseudoMetaFile_Draw,(self,) + _args, _kwargs)
|
val = apply(oglshapesc.wxPseudoMetaFile_Draw,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
def WriteAttributes(self, *_args, **_kwargs):
|
|
||||||
val = apply(oglshapesc.wxPseudoMetaFile_WriteAttributes,(self,) + _args, _kwargs)
|
|
||||||
return val
|
|
||||||
def ReadAttributes(self, *_args, **_kwargs):
|
|
||||||
val = apply(oglshapesc.wxPseudoMetaFile_ReadAttributes,(self,) + _args, _kwargs)
|
|
||||||
return val
|
|
||||||
def Clear(self, *_args, **_kwargs):
|
def Clear(self, *_args, **_kwargs):
|
||||||
val = apply(oglshapesc.wxPseudoMetaFile_Clear,(self,) + _args, _kwargs)
|
val = apply(oglshapesc.wxPseudoMetaFile_Clear,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
Reference in New Issue
Block a user