pkg=ctsim
-all: htmlhelp html pdf ps
+all: htmlhelp html pdf
CLEANFILES=$(pkg).ps $(pkg).hhc $(pkg).hhp $(pkg).hhk $(pkg).bib $(pkg).zip $(pkg).ilg $(pkg).ind $(pkg).dvi $(pkg).pdf $(pkg).htb $(pkg).bb $(pkg).blg $(pkg).idx $(pkg).toc $(pkg).bbl $(pkg).con $(pkg).ref $(pkg).blg
.PHONY: htmlhelp
htmlhelp: $(docs)
- rm -f $(pkg)*.html $(pkg).hhp $(pkg).hhc $(pkg).hhk $(pkg).zip
+ rm -f $(pkg)*.html $(pkg).hh[pck] $(pkg).zip
cp $(pkg)-tex2rtf.bib $(pkg).bib
tex2rtf $(pkg).tex $(pkg).html -html > /dev/null
+ ./maphhc.pl
zip -q $(pkg).zip *.html *.gif $(pkg).hh[pck]
mv $(pkg).zip $(pkg).htb
--- /dev/null
+#!/usr/bin/perl -Tw
+
+my $mapfile = "../src/ctsim-map.h";
+my $hhcfile = "ctsim.hhc";
+my $newhhc = "ctsim-new.hhc";
+my %map;
+
+open (MAP, $mapfile) || print "Unable to open map file $mapfile";
+while (<MAP>) {
+ m|^\W*#define\W+IDH_(\w+)\W+(\w+)|;
+ $map{$1} = $2 if ($1 && $2);
+}
+close (MAP);
+
+open(HHC,$hhcfile) || print "Unable to open existing hhc file $hhcfile";
+open(NEWHHC,"> $newhhc") || print "Unable to open new hhc file $newhhc";
+while (<HHC>) {
+ $line=$_;
+ if ($line =~ m|(.*)\#IDH_([A-Za-z_]+)(.*)|) {
+ my $varname=$2;
+ print NEWHHC $1 . $3 . "\n";
+ if ($map{$2}) {
+ print NEWHHC "<param name=\"ID\" value=\"$map{$2}\">\n";
+ } else {
+ print "Warning: unable to find IDH_$varname in $mapfile";
+ }
+ } else {
+ print NEWHHC $line;
+ }
+
+}
+
+close(HHC);
+close(NEWHHC);
+
+unlink($hhcfile);
+rename($newhhc,$hhcfile);
+
+exit(0);
#define IDH_DLG_POLAR 8613
#define IDH_DLG_FFT_POLAR 8614
#define IDH_DLG_RECON_FOURIER 8615
+#define IDH_DLG_RECONSTRUCTION_REBIN 8617
// Need to add to .tex file
-#define IDH_DLG_IMPORT 8614
-#define IDH_DLG_THETA_RANGE 8615
+#define IDH_DLG_IMPORT 8620
+#define IDH_DLG_THETA_RANGE 8621
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ctsim.cpp,v 1.107 2002/05/03 09:57:41 kevin Exp $
+** $Id: ctsim.cpp,v 1.108 2002/05/05 08:09:34 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.107 2002/05/03 09:57:41 kevin Exp $";
+static const char* rcsindent = "$Id: ctsim.cpp,v 1.108 2002/05/05 08:09:34 kevin Exp $";
struct option CTSimApp::ctsimOptions[] =
{
if (! m_pFrame->getWinHelpController().Initialize(helpDir + "/ctsim"))
*m_pLog << "Cannot initialize the Windows Help system" << "\n";
#else
- if (! m_pFrame->getHtmlHelpController().Initialize("/usr/share/ctsim/ctsim") &&
- ! m_pFrame->getHtmlHelpController().Initialize("/usr/local/share/ctsim/ctsim"))
+ if (! m_pFrame->getHtmlHelpController().AddBook("/usr/share/ctsim/ctsim.htb") &&
+ ! m_pFrame->getHtmlHelpController().Initialize("/usr/local/share/ctsim/ctsim.htb"))
*m_pLog << "Cannot initialize the HTML Help system" << "\n";
else {
if (::wxDirExists ("/tmp"))
void
MainFrame::OnHelpSecondary (wxCommandEvent& event)
{
- m_htmlHelp.DisplayContents();
+ m_htmlHelp.Display ("Contents");
}
#endif
#ifdef CTSIM_WINHELP
m_winHelp.DisplayContents ();
#else
- m_htmlHelp.DisplayContents ();
+ m_htmlHelp.Display ("Contents");
#endif
break;
{
ProjectionFileDocument* newDoc = dynamic_cast<ProjectionFileDocument*>(m_pDocTemplProjection->CreateDocument (""));
if (newDoc) {
- ProjectionFileView* pView = newDoc->getView();
newDoc->SetDocumentName (m_pDocTemplProjection->GetDocumentName());
newDoc->SetDocumentTemplate (m_pDocTemplProjection);
newDoc->OnNewDocument();