r2102: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 3 Jun 2002 03:58:07 +0000 (03:58 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 3 Jun 2002 03:58:07 +0000 (03:58 +0000)
src/ctsim.cpp
src/graph3dview.cpp

index afdc4b354c273190b77ee57bd9dffb4e1ac6b3c9..931f2a21fdd2cb2469b62ade8d49febb2655d148 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: ctsim.cpp,v 1.112 2002/06/02 17:57:02 kevin Exp $
+**  $Id: ctsim.cpp,v 1.113 2002/06/03 03:58:07 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
@@ -70,7 +70,7 @@
 #endif
 #endif
 
-static const char* rcsindent = "$Id: ctsim.cpp,v 1.112 2002/06/02 17:57:02 kevin Exp $";
+static const char* rcsindent = "$Id: ctsim.cpp,v 1.113 2002/06/03 03:58:07 kevin Exp $";
 
 struct option CTSimApp::ctsimOptions[] = 
 {
@@ -1062,11 +1062,15 @@ MainFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
 ProjectionFileDocument*
 CTSimApp::newProjectionDoc()
 {
-  ProjectionFileDocument* newDoc = dynamic_cast<ProjectionFileDocument*>(m_pDocTemplProjection->CreateDocument (""));
+  ProjectionFileDocument* newDoc = dynamic_cast<ProjectionFileDocument*>
+    (m_pDocTemplProjection->CreateDocument (""));
   if (newDoc) {
     newDoc->SetDocumentName (m_pDocTemplProjection->GetDocumentName());
     newDoc->SetDocumentTemplate (m_pDocTemplProjection);
     newDoc->OnNewDocument();
+    if (newDoc->getView())
+      if (newDoc->getView()->getFrame())
+       newDoc->getView()->getFrame()->Show(false);
   }
   
   return newDoc;
@@ -1080,6 +1084,9 @@ CTSimApp::newImageDoc()
     newDoc->SetDocumentName (m_pDocTemplImage->GetDocumentName());
     newDoc->SetDocumentTemplate (m_pDocTemplImage);
     newDoc->OnNewDocument();
+    if (newDoc->getView())
+      if (newDoc->getView()->getFrame())
+       newDoc->getView()->getFrame()->Show(false);
   }
   
   return newDoc;
@@ -1093,6 +1100,9 @@ CTSimApp::newPlotDoc()
     newDoc->SetDocumentName (m_pDocTemplPlot->GetDocumentName());
     newDoc->SetDocumentTemplate (m_pDocTemplPlot);
     newDoc->OnNewDocument();
+    if (newDoc->getView())
+      if (newDoc->getView()->getFrame())
+       newDoc->getView()->getFrame()->Show(false);
   }
   
   return newDoc;
@@ -1110,6 +1120,9 @@ CTSimApp::newTextDoc()
     newDoc->SetDocumentName (m_pDocTemplText->GetDocumentName());
     newDoc->SetDocumentTemplate (m_pDocTemplText);
     newDoc->OnNewDocument();
+    if (newDoc->getView())
+      if (newDoc->getView()->getFrame())
+       newDoc->getView()->getFrame()->Show(false);
   }
   
   return newDoc;
@@ -1124,6 +1137,9 @@ CTSimApp::newPhantomDoc()
     newDoc->SetDocumentName (m_pDocTemplPhantom->GetDocumentName());
     newDoc->SetDocumentTemplate (m_pDocTemplPhantom);
     newDoc->OnNewDocument();
+    if (newDoc->getView())
+      if (newDoc->getView()->getFrame())
+       newDoc->getView()->getFrame()->Show(false);
   }
   
   return newDoc;
@@ -1139,6 +1155,9 @@ CTSimApp::newGraph3dDoc()
     newDoc->SetDocumentName (m_pDocTemplGraph3d->GetDocumentName());
     newDoc->SetDocumentTemplate (m_pDocTemplGraph3d);
     newDoc->OnNewDocument();
+    if (newDoc->getView())
+      if (newDoc->getView()->getFrame())
+       newDoc->getView()->getFrame()->Show(false);
   }
   
   return newDoc;
index 23a9086a8d3aaf5c0aa749dfc4c3262299dcf7df..1e9f0bb2eb9ba9226031f11c40fab331923fbfb8 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: graph3dview.cpp,v 1.26 2002/06/02 23:39:22 kevin Exp $
+**  $Id: graph3dview.cpp,v 1.27 2002/06/03 03:58:07 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
@@ -195,7 +195,7 @@ Graph3dFileView::CreateCanvas (wxFrame* parent)
   pCanvas = new Graph3dFileCanvas (this, parent, wxPoint(-1,-1), wxSize(-1,-1),
                                   0);
   
-  pCanvas->SetBackgroundColour(*wxWHITE);
+  pCanvas->SetBackgroundColour(*wxBLACK);
   pCanvas->Clear();
   
   return pCanvas;