1 /*****************************************************************************
5 ** Purpose: Top-level routines for CTSim program
6 ** Programmer: Kevin Rosenberg
7 ** Date Started: July 2000
9 ** This is part of the CTSim program
10 ** Copyright (C) 1983-2000 Kevin Rosenberg
12 ** $Id: ctsim.h,v 1.2 2000/07/15 08:36:13 kevin Exp $
14 ** This program is free software; you can redistribute it and/or modify
15 ** it under the terms of the GNU General Public License (version 2) as
16 ** published by the Free Software Foundation.
18 ** This program is distributed in the hope that it will be useful,
19 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ** GNU General Public License for more details.
23 ** You should have received a copy of the GNU General Public License
24 ** along with this program; if not, write to the Free Software
25 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 ******************************************************************************/
31 #include "wx/docview.h"
34 class MainFrame: public wxDocParentFrame
36 DECLARE_CLASS(MainFrame)
41 MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type);
43 void OnAbout (wxCommandEvent& event);
44 void OnHelpContents (wxCommandEvent& event);
45 void OnCreatePhantom (wxCommandEvent& event);
46 void OnExit (wxCommandEvent& event);
55 class CTSimApp: public wxApp
61 MainFrame* getMainFrame(void) const
63 wxTextCtrl* getLog(void)
64 { return m_pFrame->getLog(); }
65 wxDocManager* getDocManager()
66 { return m_docManager; }
68 wxString getUntitledFilename(void);
71 wxDocManager* m_docManager;
74 void usage (const char* program);
76 static struct option ctsimOptions[];
83 extern class CTSimApp* theApp;
87 MAINMENU_HELP_ABOUT = 500,
88 MAINMENU_HELP_CONTENTS,
89 MAINMENU_FILE_CREATE_PHANTOM,
91 IFMENU_FILE_PROPERTIES,
92 PJMENU_FILE_PROPERTIES,
93 PHMMENU_FILE_PROPERTIES,
94 PJMENU_PROCESS_RECONSTRUCT,
95 IFMENU_VIEW_WINDOW_AUTO,
96 PHMMENU_PROCESS_RASTERIZE,
97 PHMMENU_PROCESS_PROJECTIONS,