X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b69115cba5d22da86092e1e9eb1c363e9e8fb6a..b02a6dc2b6e10302272af502a12b249681df40d6:/contrib/samples/ogl/studio/studio.h diff --git a/contrib/samples/ogl/studio/studio.h b/contrib/samples/ogl/studio/studio.h index 599f693aa5..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 @@ -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)