r7061: initial property settings
[ctsim.git] / src / docs.cpp
index 965f4249f544ec1e4cdc85a1cb65dafa6603b8b8..82a740e7b2412aeefe854aa08c4076c35b7ee39c 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: docs.cpp,v 1.43 2002/06/06 22:50:24 kevin Exp $
+**  $Id$
 **
 **  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
 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 ******************************************************************************/
 
-#ifdef __GNUG__
-// #pragma implementation
-#endif
-
 #include "wx/wxprec.h"
 
 #ifndef WX_PRECOMP
@@ -189,7 +185,7 @@ BackgroundProcessingDocument::cancelRunningTasks()
 
 // ProjectionFileDocument
 
-IMPLEMENT_DYNAMIC_CLASS(ProjectionFileDocument, BackgroundProcessingTask)
+IMPLEMENT_DYNAMIC_CLASS(ProjectionFileDocument, BackgroundProcessingDocument)
 
 bool 
 ProjectionFileDocument::OnSaveDocument(const wxString& filename)
@@ -264,7 +260,7 @@ ProjectionFileDocument::Activate()
 
 // PhantomFileDocument
 
-IMPLEMENT_DYNAMIC_CLASS(PhantomFileDocument, BackgroundProcessingTask)
+IMPLEMENT_DYNAMIC_CLASS(PhantomFileDocument, BackgroundProcessingDocument)
 
 PhantomFileDocument::~PhantomFileDocument()
 {
@@ -504,6 +500,7 @@ Graph3dFileDocument::OnOpenDocument(const wxString& filename)
 {
   SetFilename (filename, true);
   Modify (false);
+  getView()->setInitialClientSize();
   UpdateAllViews();
   m_bBadFileOpen = false;
   return true;