X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fctsim.h;h=3188b1fd1e8cf1e7b94833058d3d672bfe4f9026;hb=HEAD;hp=a98faa29d9ae23d8c71aa588170fb833b0bb6594;hpb=a2ac3119d9f9572f113b1f32d7be996dd49037ae;p=ctsim.git diff --git a/src/ctsim.h b/src/ctsim.h index a98faa2..2352c7e 100644 --- a/src/ctsim.h +++ b/src/ctsim.h @@ -124,6 +124,13 @@ public: MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type); virtual ~MainFrame(); +#if wxCHECK_VERSION(2,9,0) + // Needed for wx3.0 + void OnMRUFile(wxCommandEvent& event) { + if (m_docManager) m_docManager->OnMRUFile(event); + } +#endif + void OnSize (wxSizeEvent& event); #if CTSIM_WINHELP @@ -218,6 +225,8 @@ private: bool m_bPrintCmdLineImages; bool m_bCmdLineVerboseFlag; + wxDocument* newDocumentHelper (wxDocTemplate* tmpl); + public: CTSimApp(); void OnInitCmdLine(wxCmdLineParser& parser); @@ -233,8 +242,6 @@ public: wxDocManager* getDocManager() { return m_docManager; } - wxString getUntitledFilename(); - int getNumberCPU() const { return wxThread::GetCPUCount(); } EZPlotDialog* makeEZPlotDialog()