X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fc25a89ac1e6c5208db24bfc0abc8666b791dc6..5077fd890cb4d400a76b8fea0395d8b1178c1d8b:/contrib/samples/ogl/studio/doc.h diff --git a/contrib/samples/ogl/studio/doc.h b/contrib/samples/ogl/studio/doc.h index 4e77abc4c0..ce1e3a7b86 100644 --- a/contrib/samples/ogl/studio/doc.h +++ b/contrib/samples/ogl/studio/doc.h @@ -6,27 +6,28 @@ // Created: 12/07/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _STUDIO_DOC_H_ #define _STUDIO_DOC_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) // #pragma interface #endif #include +#include #include -#include -#include +#include // base header of OGL, includes and adjusts wx/deprecated/setup.h + #include "shapes.h" /* * A diagram document, which contains a diagram. */ - + class csDiagramDocument: public wxDocument { DECLARE_DYNAMIC_CLASS(csDiagramDocument) @@ -34,11 +35,13 @@ public: csDiagramDocument(); ~csDiagramDocument(); +#if wxUSE_PROLOGIO bool OnSaveDocument(const wxString& file); bool OnOpenDocument(const wxString& file); - +#endif // wxUSE_PROLOGIO + inline wxDiagram *GetDiagram() { return &m_diagram; } - + bool OnCloseDocument(); protected: @@ -68,7 +71,7 @@ protected: */ - + class csCommandState; class csDiagramCommand: public wxCommand {