- wxMessageBox("CTSim\nAuthor: Kevin Rosenberg <kevin@rosenberg.net>\nUsage: ctsim", "About CTSim", wxOK | wxICON_INFORMATION, this);
+ wxMessageBox("CTSim\nAuthor: Kevin Rosenberg <kevin@rosenberg.net>\nUsage: ctsim [files-to-open..] [--help]", "About CTSim", wxOK | wxICON_INFORMATION, this);
+}
+
+void
+MainFrame::OnCreatePhantom(wxCommandEvent& WXUNUSED(event))
+{
+ DialogGetPhantom dialogPhantom (this, Phantom::PHM_HERMAN);
+ int dialogReturn = dialogPhantom.ShowModal();
+ if (dialogReturn == wxID_OK) {
+ wxString selection (dialogPhantom.getPhantom());
+ *theApp->getLog() << "Selected phantom " << selection.c_str() << "\n";
+ wxString filename = selection + ".phm";
+ theApp->getDocManager()->CreateDocument(filename, wxDOC_SILENT);
+ }
+
+}
+
+void
+MainFrame::OnHelpContents(wxCommandEvent& WXUNUSED(event) )
+{
+ wxMessageBox("No help available, refer to man pages of command-line tools");