X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fctsim.h;h=8a9036b5c035d01f4bf66829b6a996cf37b626ae;hb=ba8635d790ee847d9746c6da24b60bd4cb6d9116;hp=b7954f5fc8c7fce33603bfa2182f1912ae53804c;hpb=dfe03b8fc348b60a8f0b012f3f76c24ad29f21ce;p=ctsim.git diff --git a/src/ctsim.h b/src/ctsim.h index b7954f5..8a9036b 100644 --- a/src/ctsim.h +++ b/src/ctsim.h @@ -7,9 +7,9 @@ ** Date Started: July 2000 ** ** This is part of the CTSim program -** Copyright (C) 1983-2000 Kevin Rosenberg +** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: ctsim.h,v 1.31 2001/01/26 05:37:24 kevin Exp $ +** $Id: ctsim.h,v 1.37 2001/01/30 07:32: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 @@ -84,8 +84,10 @@ private: DECLARE_CLASS(MainFrame) DECLARE_EVENT_TABLE() +#ifndef CTSIM_MDI wxMenu* m_pWindowMenu; - +#endif + enum { MAX_WINDOW_MENUITEMS = 20 }; wxMenuItem* m_apWindowMenuItems[MAX_WINDOW_MENUITEMS]; wxDocument* m_apWindowMenuData[MAX_WINDOW_MENUITEMS]; @@ -100,6 +102,8 @@ private: double m_dDefaultFilterInputScale; double m_dDefaultFilterOutputScale; + bool m_bShuttingDown; + #if CTSIM_WINHELP wxWinHelpController m_winHelp; #endif @@ -107,7 +111,7 @@ private: public: MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type); - ~MainFrame(); + virtual ~MainFrame(); #ifdef CTSIM_CUSTOM_MRU void OnMRUFile (wxCommandEvent& event); @@ -159,6 +163,8 @@ public: void OnWindowMenu19 (wxCommandEvent& event); void DoWindowMenu (int iMenuPosition, wxCommandEvent& event); + + bool getShuttingDown() const { return m_bShuttingDown; } }; @@ -178,6 +184,8 @@ private: wxDocTemplate* m_pDocTemplPhantom; wxDocTemplate* m_pDocTemplPlot; wxDocTemplate* m_pDocTemplText; + wxDocTemplate* m_pDocTemplGraph3d; + TextFileDocument* m_pLogDoc; void usage (const char* program); @@ -201,9 +209,6 @@ public: void getCompatibleImages (const ImageFileDocument* pIFDoc, std::vector& vecIF); - bool getSetModifyNewDocs() const - { return true; } - void setIconForFrame (wxFrame* pFrame); wxConfig* getConfig() { return m_pConfig; } @@ -213,6 +218,8 @@ public: wxDocTemplate* getDocTemplPhantom() { return m_pDocTemplPhantom; } wxDocTemplate* getDocTemplPlot() { return m_pDocTemplPlot; } wxDocTemplate* getDocTemplText() { return m_pDocTemplText; } + wxDocTemplate* getDocTemplGraph3d() { return m_pDocTemplGraph3d; } + TextFileDocument* getLogDoc() { return m_pLogDoc; } ProjectionFileDocument* newProjectionDoc(); ImageFileDocument* newImageDoc();