** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ctsim.cpp,v 1.32 2001/01/17 13:03:24 kevin Exp $
+** $Id: ctsim.cpp,v 1.34 2001/01/18 18:09:35 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.32 2001/01/17 13:03:24 kevin Exp $";
+static const char* rcsindent = "$Id: ctsim.cpp,v 1.34 2001/01/18 18:09:35 kevin Exp $";
struct option CTSimApp::ctsimOptions[] =
{
::wxMessageBox ("Cannot initialize the help system", "Error");
wxAcceleratorEntry accelEntries[5];
- accelEntries[0].Set(wxACCEL_CTRL, (int) 'O', wxID_OPEN);
- accelEntries[1].Set(wxACCEL_CTRL, (int) 'T', MAINMENU_HELP_TOPICS);
- accelEntries[2].Set(wxACCEL_CTRL, (int) 'P', MAINMENU_FILE_CREATE_PHANTOM);
- accelEntries[3].Set(wxACCEL_CTRL, (int) 'F', MAINMENU_FILE_CREATE_FILTER);
- accelEntries[4].Set(wxACCEL_NORMAL, WXK_F1, MAINMENU_HELP_CONTENTS);
- wxAcceleratorTable accelTable (4, accelEntries);
+ accelEntries[0].Set (wxACCEL_CTRL, (int) 'O', wxID_OPEN);
+ accelEntries[1].Set (wxACCEL_CTRL, (int) 'T', MAINMENU_HELP_TOPICS);
+ accelEntries[2].Set (wxACCEL_CTRL, (int) 'P', MAINMENU_FILE_CREATE_PHANTOM);
+ accelEntries[3].Set (wxACCEL_CTRL, (int) 'F', MAINMENU_FILE_CREATE_FILTER);
+ accelEntries[4].Set (wxACCEL_NORMAL, WXK_F1, MAINMENU_HELP_CONTENTS);
+ wxAcceleratorTable accelTable (5, accelEntries);
m_pFrame->SetAcceleratorTable (accelTable);
return true;
}
void
-MainFrame::OnCreatePhantom(wxCommandEvent& WXUNUSED(event))
+MainFrame::OnCreatePhantom(wxCommandEvent& event)
{
DialogGetPhantom dialogPhantom (this, m_iDefaultPhantomID);
int dialogReturn = dialogPhantom.ShowModal();
m_help.DisplayContents ();
break;
case MAINMENU_HELP_TOPICS:
- m_help.DisplaySection (if1);
+ m_help.DisplaySection (introduction);
break;
default: