X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fc25a89ac1e6c5208db24bfc0abc8666b791dc6..694f70fa9c0cc8889c208020bf75b2e3861f6818:/contrib/samples/ogl/studio/studio.h?ds=sidebyside diff --git a/contrib/samples/ogl/studio/studio.h b/contrib/samples/ogl/studio/studio.h index 0104a16456..7d36cf0a4f 100644 --- a/contrib/samples/ogl/studio/studio.h +++ b/contrib/samples/ogl/studio/studio.h @@ -14,6 +14,13 @@ #include #include +#include +#include +#ifdef __WXMSW__ + #include +#else + #include +#endif #include #include @@ -34,7 +41,7 @@ class csFrame; // Define a new application class csApp: public wxApp { - friend csFrame; + friend class csFrame; public: csApp(); ~csApp(); @@ -60,7 +67,7 @@ public: void CreateDiagramToolBar(wxFrame* parent); wxMDIChildFrame *CreateChildFrame(wxDocument *doc, wxView *view, wxMenu** editMenu); - csCanvas *CreateCanvas(wxView *view, wxFrame *parent); + csCanvas *CreateCanvas(wxView *view, wxMDIChildFrame *parent); // Fill out the project tree control void FillProjectTreeCtrl(); @@ -81,7 +88,7 @@ public: wxMenu* GetShapeEditMenu() const { return m_shapeEditMenu; } wxDiagramClipboard& GetDiagramClipboard() const { return (wxDiagramClipboard&) m_diagramClipboard; } wxDocManager* GetDocManager() const { return m_docManager; } - wxHelpController& GetHelpController() const { return (wxHelpController&) m_helpController; } + wxHelpControllerBase* GetHelpController() const { return m_helpController; } int GetGridStyle() const { return m_gridStyle; } void SetGridStyle(int style) { m_gridStyle = style; } @@ -112,7 +119,7 @@ protected: csDiagramClipboard m_diagramClipboard; // Help instance - wxHelpController m_helpController; + wxHelpControllerBase* m_helpController; }; DECLARE_APP(csApp)