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.1 2000/07/13 07:01:59 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"
35 class CTSimApp: public wxApp
41 MainFrame* getMainFrame(void) const
45 wxDocManager* m_docManager;
52 class MainFrame: public wxDocParentFrame
54 DECLARE_CLASS(MainFrame)
57 MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type);
59 void OnAbout (wxCommandEvent& event);
60 void OnExit (wxCommandEvent& event);
65 extern MainFrame *GetMainFrame(void);
69 MAINMENU_HELP_ABOUT = 500,
71 IFMENU_FILE_PROPERTIES,
72 PJMENU_FILE_PROPERTIES,
73 PJMENU_FILE_RECONSTRUCT,