From f68afdf6eee93eb1080b6f85a2bb66610cfff5be Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Mon, 3 Jun 2002 03:58:07 +0000 Subject: [PATCH] r2102: *** empty log message *** --- src/ctsim.cpp | 25 ++++++++++++++++++++++--- src/graph3dview.cpp | 4 ++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/ctsim.cpp b/src/ctsim.cpp index afdc4b3..931f2a2 100644 --- a/src/ctsim.cpp +++ b/src/ctsim.cpp @@ -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(m_pDocTemplProjection->CreateDocument ("")); + ProjectionFileDocument* newDoc = dynamic_cast + (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; diff --git a/src/graph3dview.cpp b/src/graph3dview.cpp index 23a9086..1e9f0bb 100644 --- a/src/graph3dview.cpp +++ b/src/graph3dview.cpp @@ -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; -- 2.34.1