X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fctsim.cpp;h=781e9c0fd8cf1016516a3d938a1ea505efdad188;hb=c8ec665dde5df59539daf63e0a6a44f27550258b;hp=1c3d334e937270c2db1b1a549292e8c11bf6c133;hpb=7f8f356151b0c8db0dbbf1c1896cc22630d6c774;p=ctsim.git diff --git a/src/ctsim.cpp b/src/ctsim.cpp index 1c3d334..781e9c0 100644 --- a/src/ctsim.cpp +++ b/src/ctsim.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: ctsim.cpp,v 1.27 2001/01/12 16:41:56 kevin Exp $ +** $Id: ctsim.cpp,v 1.30 2001/01/17 06:38:06 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 @@ -61,9 +61,7 @@ #endif #endif -static const char* rcsindent = "$Id: ctsim.cpp,v 1.27 2001/01/12 16:41:56 kevin Exp $"; - -class CTSimApp* theApp = NULL; +static const char* rcsindent = "$Id: ctsim.cpp,v 1.30 2001/01/17 06:38:06 kevin Exp $"; struct option CTSimApp::ctsimOptions[] = { @@ -124,11 +122,8 @@ CTSimApp::OnInit() m_docManager = new wxDocManager; new wxDocTemplate (m_docManager, "ImageFile", "*.if", "", "if", "ImageFile doc", "ImageFile View", CLASSINFO(ImageFileDocument), CLASSINFO(ImageFileView)); - new wxDocTemplate (m_docManager, "ProjectionFile", "*.pj", "", "pj", "ProjectionFile doc", "ProjectionFile View", CLASSINFO(ProjectionFileDocument), CLASSINFO(ProjectionFileView)); - new wxDocTemplate (m_docManager, "PhantomFile", "*.phm", "", "phm", "Phantom doc", "Phantom View", CLASSINFO(PhantomDocument), CLASSINFO(PhantomView)); - new wxDocTemplate (m_docManager, "PlotFile", "*.plt", "", "plt", "Plot doc", "Plot View", CLASSINFO(PlotFileDocument), CLASSINFO(PlotFileView)); //// Create the main frame window @@ -143,10 +138,22 @@ CTSimApp::OnInit() wxString filename = argv [i - 1]; m_docManager->CreateDocument (filename, wxDOC_SILENT); } - + + setIconForFrame (m_pFrame); + return true; } +#include "./ctsim.xpm" +void +CTSimApp::setIconForFrame(wxFrame* pFrame) +{ + wxIcon iconApp (ctsim16_xpm); + + if (iconApp.Ok()) + pFrame->SetIcon (iconApp); +} + void CTSimApp::usage(const char* program) {