r438: no message
[ctsim.git] / src / views.h
index 9f57f5588ffa74bce8a213fd6814c1fcd9e18a2d..6cab7ab8e274d4f3790e0344f8ff27f281ca1592 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: views.h,v 1.29 2001/01/26 00:45:24 kevin Exp $
+**  $Id: views.h,v 1.30 2001/01/26 05:37:24 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
@@ -242,10 +242,10 @@ public:
 
 
 class PhantomCanvas;
-class PhantomView : public wxView
+class PhantomFileView : public wxView
 {
 private:
-  DECLARE_DYNAMIC_CLASS(PhantomView)
+  DECLARE_DYNAMIC_CLASS(PhantomFileView)
   DECLARE_EVENT_TABLE()
     
   PhantomCanvas *CreateCanvas(wxView *view, wxFrame *parent);
@@ -276,8 +276,8 @@ private:
 #endif
 
 public:
-  PhantomView(void);
-  virtual ~PhantomView(void);
+  PhantomFileView(void);
+  virtual ~PhantomFileView(void);
   void canvasClosed()
   { m_canvas = NULL; m_frame = NULL; }
   
@@ -289,22 +289,23 @@ public:
   void OnRasterize (wxCommandEvent& event);
   void OnProjections (wxCommandEvent& event);
   
-  PhantomDocument* GetDocument(void) 
-  { return dynamic_cast<PhantomDocument*>(wxView::GetDocument()); }
+  PhantomFileDocument* GetDocument(void) 
+  { return dynamic_cast<PhantomFileDocument*>(wxView::GetDocument()); }
   
   wxMenu* getFileMenu() { return m_pFileMenu; }
+  wxFrame* getFrame() { return m_frame; }
 };
 
 class PhantomCanvas: public wxScrolledWindow
 {
 private:
-  PhantomView* m_pView;
+  PhantomFileView* m_pView;
 
 public:  
-  PhantomCanvas (PhantomView* v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style);
+  PhantomCanvas (PhantomFileView* v, wxFrame *frame, const wxPoint& pos, const wxSize& size, const long style);
   virtual ~PhantomCanvas();
 
-  void setView(PhantomView* pView)
+  void setView(PhantomFileView* pView)
   { m_pView = pView; }
   virtual void OnDraw(wxDC& dc);
 };
@@ -378,43 +379,43 @@ public:
 };
 
 
-class TextEditCanvas;
-class TextEditView: public wxView
+class TextFileCanvas;
+class TextFileView: public wxView
 {
 private:
-  DECLARE_DYNAMIC_CLASS(TextEditView)
+  DECLARE_DYNAMIC_CLASS(TextFileView)
 
     wxFrame *m_pFrame;
     wxMenu* m_pFileMenu;
-    TextEditCanvas *m_pCanvas;
+    TextFileCanvas *m_pCanvas;
   
 public:
-    TextEditView() 
+    TextFileView() 
       : wxView() , m_pFrame(0), m_pCanvas(0)
     {}
-    ~TextEditView();
+    ~TextFileView();
     void canvasClosed()
     { m_pFrame = NULL; }
 
-   wxFrame *CreateChildFrame(wxDocument *doc, wxView *view);
+    wxFrame *CreateChildFrame(wxDocument *doc, wxView *view);
 
     bool OnCreate (wxDocument *doc, long flags);
     void OnDraw (wxDC *dc);
     void OnUpdate (wxView *sender, wxObject *hint = (wxObject *) NULL);
     bool OnClose (bool deleteWindow = TRUE);
 
-    TextEditCanvas* getTextCtrl() { return m_pCanvas; }
-
-  wxMenu* getFileMenu() { return m_pFileMenu; }
+    TextFileCanvas* getTextCtrl() { return m_pCanvas; }
+    wxFrame* getFrame() { return m_pFrame; }
+    wxMenu* getFileMenu() { return m_pFileMenu; }
 };
 
-class TextEditCanvas: public wxTextCtrl
+class TextFileCanvas: public wxTextCtrl
 {
-    TextEditView *m_pView;
+    TextFileView *m_pView;
 
 public:    
-    TextEditCanvas (TextEditView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, long style);
-    ~TextEditCanvas ();
+    TextFileCanvas (TextFileView *v, wxFrame *frame, const wxPoint& pos, const wxSize& size, long style);
+    ~TextFileCanvas ();
 };