+ 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))
+{
+ wxString choiceStringList [5];
+ choiceStringList[0] = Phantom::PHM_HERMAN_STR;
+ choiceStringList[1] = Phantom::PHM_BHERMAN_STR;
+ choiceStringList[2] = Phantom::PHM_ROWLAND_STR;;
+ choiceStringList[3] = Phantom::PHM_BROWLAND_STR;
+ choiceStringList[4] = Phantom::PHM_UNITPULSE_STR;
+ wxString choiceTitleList [5];
+ choiceTitleList[0] = "Herman Head";
+ choiceTitleList[1] = "Herman Head Bordered";
+ choiceTitleList[2] = "Rowland Head";
+ choiceTitleList[3] = "Rowland Head Bordered";
+ choiceTitleList[4] = "Unit Pulse";
+ wxSingleChoiceDialog dialog (this, "Select phantom", "Phantom Selection", 5, choiceTitleList, NULL, wxOK|wxCANCEL|wxCENTRE);
+
+ int dialogReturn = dialog.ShowModal();
+ if (dialogReturn == wxID_OK) {
+ int selection = dialog.GetSelection();
+ *theApp->getLog() << "Selected phantom " << selection << "\n";
+ wxString filename = choiceStringList[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");