/*****************************************************************************
** FILE IDENTIFICATION
**
-** Name: view.cpp
+** Name: views.cpp
** Purpose: View & Canvas routines for CTSim program
** Programmer: Kevin Rosenberg
** Date Started: July 2000
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: views.cpp,v 1.148 2002/04/30 03:37:12 kevin Exp $
+** $Id: views.cpp,v 1.149 2002/04/30 18:13:40 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
m_bMaxSpecified = false;
m_dAutoScaleFactor = 1.;
- int width, height;
- m_pFrame->GetClientSize (&width, &height);
+ // int width, height;
+ // m_pFrame->GetClientSize (&width, &height);
m_pFrame->SetTitle("ImageFileView");
m_pCanvas = CreateCanvas (m_pFrame);
- int x, y; // X requires a forced resize
- m_pFrame->GetSize(&x, &y);
- m_pFrame->SetSize(-1, -1, x, y);
+ // int x, y; // X requires a forced resize
+ // m_pFrame->GetSize(&x, &y);
+ // m_pFrame->SetSize(-1, -1, x, y);
m_pFrame->SetFocus();
m_pFrame->Show(true);
- Activate(true);
+ // Activate(true);
return true;
}
int xSize = nx;
int ySize = ny;
ySize = clamp (ySize, 0, 800);
- m_pFrame->SetClientSize (xSize, ySize);
+ // m_pFrame->SetClientSize (xSize, ySize); // KMR
m_pCanvas->SetScrollbars(20, 20, nx/20, ny/20);
m_pCanvas->SetBackgroundColour(*wxWHITE);
}
pImageFile->labelAdd (rProj.getLabel());
pImageFile->labelAdd (os.str().c_str(), timerRecon.timerEnd());
- if (ImageFileView* rasterView = pReconDoc->getView()) {
- rasterView->getFrame()->Show(true);
- rasterView->getFrame()->SetFocus();
- rasterView->OnUpdate (rasterView, NULL);
- }
+ // if (ImageFileView* rasterView = pReconDoc->getView()) {
+ // rasterView->getFrame()->Show(true);
+ // rasterView->getFrame()->SetFocus();
+ // rasterView->OnUpdate (rasterView, NULL);
+ // }
// causes loss of frame in wxGTK
- //pReconDoc->UpdateAllViews (this);
+ pReconDoc->GetFirstView()->GetFrame()->Show(true);
+ pReconDoc->UpdateAllViews ();
// pReconDoc->Activate();
}