X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fctsim.h;h=bbba38edd0e446b82fc219b3df303d98517c67e4;hp=db4d7c354ff623614b1af03de06992d9275b6f88;hb=e4c1f7f8eb87558c3abf3bf1d20732361f425351;hpb=ebe18bbc459204f8bf89880459804cc643a32f24 diff --git a/src/ctsim.h b/src/ctsim.h index db4d7c3..bbba38e 100644 --- a/src/ctsim.h +++ b/src/ctsim.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: ctsim.h,v 1.1 2000/07/13 07:01:59 kevin Exp $ +** $Id: ctsim.h,v 1.2 2000/07/15 08:36:13 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -30,8 +30,28 @@ #include "wx/docview.h" +// Define a new frame +class MainFrame: public wxDocParentFrame +{ + DECLARE_CLASS(MainFrame) +private: + wxTextCtrl* m_pLog; + +public: + MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type); + + void OnAbout (wxCommandEvent& event); + void OnHelpContents (wxCommandEvent& event); + void OnCreatePhantom (wxCommandEvent& event); + void OnExit (wxCommandEvent& event); + + wxTextCtrl* getLog() + { return m_pLog; } + + DECLARE_EVENT_TABLE() +}; + class wxDocManager; -class MainFrame; class CTSimApp: public wxApp { public: @@ -40,37 +60,41 @@ public: int OnExit(void); MainFrame* getMainFrame(void) const { return m_pFrame; } + wxTextCtrl* getLog(void) + { return m_pFrame->getLog(); } + wxDocManager* getDocManager() + { return m_docManager; } + + wxString getUntitledFilename(void); -protected: +private: wxDocManager* m_docManager; MainFrame* m_pFrame; -}; -DECLARE_APP(CTSimApp) + void usage (const char* program); -// Define a new frame -class MainFrame: public wxDocParentFrame -{ - DECLARE_CLASS(MainFrame) + static struct option ctsimOptions[]; -public: - MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type); - - void OnAbout (wxCommandEvent& event); - void OnExit (wxCommandEvent& event); - - DECLARE_EVENT_TABLE() + enum { O_HELP }; }; -extern MainFrame *GetMainFrame(void); +DECLARE_APP(CTSimApp) + +extern class CTSimApp* theApp; enum { MAINMENU_HELP_ABOUT = 500, + MAINMENU_HELP_CONTENTS, + MAINMENU_FILE_CREATE_PHANTOM, MAINMENU_FILE_EXIT, IFMENU_FILE_PROPERTIES, PJMENU_FILE_PROPERTIES, - PJMENU_FILE_RECONSTRUCT, + PHMMENU_FILE_PROPERTIES, + PJMENU_PROCESS_RECONSTRUCT, + IFMENU_VIEW_WINDOW_AUTO, + PHMMENU_PROCESS_RASTERIZE, + PHMMENU_PROCESS_PROJECTIONS, }; #endif