db4d7c354ff623614b1af03de06992d9275b6f88
[ctsim.git] / src / ctsim.h
1 /*****************************************************************************
2 ** FILE IDENTIFICATION
3 **
4 **   Name:          ctsim.cpp
5 **   Purpose:       Top-level routines for CTSim program
6 **   Programmer:    Kevin Rosenberg
7 **   Date Started:  July 2000
8 **
9 **  This is part of the CTSim program
10 **  Copyright (C) 1983-2000 Kevin Rosenberg
11 **
12 **  $Id: ctsim.h,v 1.1 2000/07/13 07:01:59 kevin Exp $
13 **
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.
17 **
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.
22 **
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 ******************************************************************************/
27
28 #ifndef __CTSIMH__
29 #define __CTSIMH__
30
31 #include "wx/docview.h"
32
33 class wxDocManager;
34 class MainFrame;
35 class CTSimApp: public wxApp
36 {
37 public:
38     CTSimApp(void);
39     bool OnInit(void);
40     int OnExit(void);
41     MainFrame* getMainFrame(void) const
42       { return m_pFrame; }
43
44 protected:
45     wxDocManager* m_docManager;
46     MainFrame* m_pFrame;
47 };
48
49 DECLARE_APP(CTSimApp)
50
51 // Define a new frame
52 class MainFrame: public wxDocParentFrame
53 {
54     DECLARE_CLASS(MainFrame)
55
56 public:
57     MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type);
58     
59     void OnAbout (wxCommandEvent& event);
60     void OnExit (wxCommandEvent& event);
61
62     DECLARE_EVENT_TABLE()
63 };
64
65 extern MainFrame *GetMainFrame(void);
66
67
68 enum {
69     MAINMENU_HELP_ABOUT = 500,
70     MAINMENU_FILE_EXIT,
71     IFMENU_FILE_PROPERTIES,
72     PJMENU_FILE_PROPERTIES,
73     PJMENU_FILE_RECONSTRUCT,
74 };
75
76 #endif