r148: *** empty log message ***
[ctsim.git] / src / ctsim.h
index db4d7c354ff623614b1af03de06992d9275b6f88..bbba38edd0e446b82fc219b3df303d98517c67e4 100644 (file)
@@ -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
 
 #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