X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1484b5cc701329c54bbe70f2a155119fd86945c7..88517d90087856e01002f1e3dea1a0ce659f28ea:/contrib/samples/ogl/studio/shapes.h diff --git a/contrib/samples/ogl/studio/shapes.h b/contrib/samples/ogl/studio/shapes.h index 117721dfbe..7f4548ba38 100644 --- a/contrib/samples/ogl/studio/shapes.h +++ b/contrib/samples/ogl/studio/shapes.h @@ -1,45 +1,40 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: shapes.h +// Name: contrib/samples/ogl/studio/shapes.h // Purpose: Shape classes // Author: Julian Smart // Modified by: // Created: 12/07/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _STUDIO_SHAPES_H_ #define _STUDIO_SHAPES_H_ -#if defined(__GNUG__) && !defined(__APPLE__) -// #pragma interface -#endif - -#include -#include -#include -#include - -#include -#include -#include -#include +#include "wx/docview.h" +#include "wx/string.h" +#include "wx/ogl/ogl.h" // base header of OGL, includes and adjusts wx/deprecated/setup.h +#include "wx/ogl/basicp.h" +#include "wx/ogl/linesp.h" +#include "wx/ogl/drawn.h" 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 +68,8 @@ public: // Overridables // Start/end copying - virtual bool OnStartCopy(wxDiagram* diagramTo) { return TRUE; }; - virtual bool OnEndCopy(wxDiagram* 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 @@ -97,10 +92,10 @@ public: ~csDiagramClipboard() {} // Start/end copying - bool OnStartCopy(wxDiagram* diagramTo); - bool OnEndCopy(wxDiagram* diagramTo); + virtual bool OnStartCopy(wxDiagram* diagramTo); + virtual bool OnEndCopy(wxDiagram* diagramTo); - bool OnAddShape(wxDiagram* diagramTo, wxShape* newShape, wxDC* dc); + virtual bool OnAddShape(wxDiagram* diagramTo, wxShape* newShape, wxDC* dc); protected: csDiagramCommand* m_currentCmd; @@ -206,7 +201,7 @@ public: /* * Temporary arc label object */ - + class csLabelShape: public wxLabelShape { DECLARE_DYNAMIC_CLASS(csLabelShape)