X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ba06d5a8ccf8c224fcfbd52fa01a55abf7befbd..6ce8b8484654b5ab073951373c93d9bdd8221881:/contrib/samples/ogl/ogledit/doc.h diff --git a/contrib/samples/ogl/ogledit/doc.h b/contrib/samples/ogl/ogledit/doc.h index 0316e56671..68fe372062 100644 --- a/contrib/samples/ogl/ogledit/doc.h +++ b/contrib/samples/ogl/ogledit/doc.h @@ -12,15 +12,11 @@ #ifndef _OGLSAMPLE_DOC_H_ #define _OGLSAMPLE_DOC_H_ -#if defined(__GNUG__) && !defined(__APPLE__) -// #pragma interface -#endif - #include #include #include -#include +#include // base header of OGL, includes and adjusts wx/deprecated/setup.h #if wxUSE_PROLOGIO #include @@ -35,7 +31,7 @@ /* * Override a few members for this application */ - + class MyDiagram: public wxDiagram { public: @@ -50,7 +46,7 @@ class MyDiagram: public wxDiagram * A few new shape classes so we have a 1:1 mapping * between palette symbol and unique class */ - + class wxRoundedRectangleShape: public wxRectangleShape { DECLARE_DYNAMIC_CLASS(wxRoundedRectangleShape) @@ -71,7 +67,7 @@ class wxDiamondShape: public wxPolygonShape * All shape event behaviour is routed through this handler, so we don't * have to derive from each shape class. We plug this in to each shape. */ - + class MyEvtHandler: public wxShapeEvtHandler { public: @@ -93,14 +89,14 @@ class MyEvtHandler: public wxShapeEvtHandler /* * A diagram document, which contains a diagram. */ - + class DiagramDocument: public wxDocument { DECLARE_DYNAMIC_CLASS(DiagramDocument) private: public: MyDiagram diagram; - + DiagramDocument(void); ~DiagramDocument(void); @@ -111,9 +107,9 @@ class DiagramDocument: public wxDocument virtual wxOutputStream& SaveObject(wxOutputStream& stream); virtual wxInputStream& LoadObject(wxInputStream& stream); #endif - + inline wxDiagram *GetDiagram() { return &diagram; } - + bool OnCloseDocument(void); }; @@ -142,7 +138,7 @@ class DiagramDocument: public wxDocument * Assume, as here, that we keep a pointer to the old shape so we reuse it * when we recreate. */ - + class DiagramCommand: public wxCommand { protected: