** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ctsim.cpp,v 1.51 2001/01/27 22:10:11 kevin Exp $
+** $Id: ctsim.cpp,v 1.54 2001/01/28 19:10:18 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
#endif
#endif
-static const char* rcsindent = "$Id: ctsim.cpp,v 1.51 2001/01/27 22:10:11 kevin Exp $";
+static const char* rcsindent = "$Id: ctsim.cpp,v 1.54 2001/01/28 19:10:18 kevin Exp $";
struct option CTSimApp::ctsimOptions[] =
{
#ifdef CTSIM_WINHELP
if (! m_pFrame->getWinHelpController().Initialize("ctsim"))
- *m_pLog << "Cannot initialize the Windows Help system\n";
+ *m_pLog << "Cannot initialize the Windows Help system" << "\n";
#endif
if (! m_pFrame->getHtmlHelpController().Initialize(::wxGetCwd() + "/ctsim"))
- *m_pLog << "Cannot initialize the HTML Help system";
+ *m_pLog << "Cannot initialize the HTML Help system" << "\n";
return true;
}
if (theApp->getConfig())
theApp->getDocManager()->FileHistorySave (*theApp->getConfig());
delete theApp->getDocManager();
+
}
void
<< ", inputScale=" << m_dDefaultFilterInputScale << ", outputScale=" << m_dDefaultFilterOutputScale;
*theApp->getLog() << os.str().c_str() << "\n";
wxString filename = "untitled.if";
- ImageFileDocument* pFilterDoc = dynamic_cast<ImageFileDocument*>(theApp->getDocManager()->CreateDocument ("untitled.if", wxDOC_SILENT));
+ ImageFileDocument* pFilterDoc = theApp->newImageDoc();
if (! pFilterDoc) {
sys_error (ERR_SEVERE, "Unable to create filter image");
return;
pFilterDoc->Modify (true);
pFilterDoc->UpdateAllViews();
pFilterDoc->GetFirstView()->OnUpdate (NULL, NULL);
+ pFilterDoc->getView()->getFrame()->SetClientSize(m_iDefaultFilterXSize, m_iDefaultFilterYSize);
+ pFilterDoc->getView()->getFrame()->Show(true);
}
}