#include <wx/docmdi.h>
#include <wx/help.h>
+#include <wx/cshelp.h>
+#include <wx/helphtml.h>
+#ifdef __WXMSW__
+ #include <wx/msw/helpchm.h>
+#else
+ #include <wx/html/helpctrl.h>
+#endif
#include <wx/ogl/ogl.h>
#include <wx/ogl/canvas.h>
// Define a new application
class csApp: public wxApp
{
- friend csFrame;
+ friend class csFrame;
public:
csApp();
~csApp();
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();
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; }
csDiagramClipboard m_diagramClipboard;
// Help instance
- wxHelpController m_helpController;
+ wxHelpControllerBase* m_helpController;
};
DECLARE_APP(csApp)