X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d1f4723592a86208a941bd486a9c1f18f43b5f51..94709f191133613e115fdbf913eba5a81ddd207e:/contrib/samples/ogl/studio/shapes.h diff --git a/contrib/samples/ogl/studio/shapes.h b/contrib/samples/ogl/studio/shapes.h index 26ca01fbe7..5c24d65aab 100644 --- a/contrib/samples/ogl/studio/shapes.h +++ b/contrib/samples/ogl/studio/shapes.h @@ -18,10 +18,7 @@ #include #include -#include -#include - -#include +#include // base header of OGL, includes and adjusts wx/deprecated/setup.h #include #include #include @@ -31,15 +28,17 @@ class csDiagramDocument; /* * Override a few members for this application */ - + class csDiagram: public wxDiagram { DECLARE_CLASS(csDiagram) public: csDiagram(csDiagramDocument* doc) { m_doc = doc; } ~csDiagram(); +#if wxUSE_PROLOGIO bool OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr); bool OnShapeLoad(wxExprDatabase& db, wxShape& shape, wxExpr& expr); +#endif // wxUSE_PROLOGIO inline csDiagramDocument* GetDocument() const { return m_doc; } virtual void Redraw(wxDC& dc); @@ -73,8 +72,8 @@ public: // Overridables // Start/end copying - virtual bool OnStartCopy(wxDiagram* WXUNUSED(diagramTo)) { return TRUE; }; - virtual bool OnEndCopy(wxDiagram* WXUNUSED(diagramTo)) { return TRUE; }; + virtual bool OnStartCopy(wxDiagram* WXUNUSED(diagramTo)) { return true; }; + virtual bool OnEndCopy(wxDiagram* WXUNUSED(diagramTo)) { return true; }; // Override this to e.g. have the shape added through a Do/Undo command system. // By default, we'll just add it directly to the destination diagram, and @@ -206,7 +205,7 @@ public: /* * Temporary arc label object */ - + class csLabelShape: public wxLabelShape { DECLARE_DYNAMIC_CLASS(csLabelShape)