projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r158: *** empty log message ***
[ctsim.git]
/
src
/
ctsim.cpp
diff --git
a/src/ctsim.cpp
b/src/ctsim.cpp
index a7417fed387b43cacbd41db94961e760e36d5e81..533f324037a8eb343d1b563dc61244e18ff0de01 100644
(file)
--- 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
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ctsim.cpp,v 1.
6 2000/07/19 04:33:27
kevin Exp $
+** $Id: ctsim.cpp,v 1.
8 2000/07/22 15:45:33
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
**
** 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
@@
-104,7
+104,7
@@
CTSimApp::OnInit(void)
//// Make a menubar
wxMenu *file_menu = new wxMenu;
//// Make a menubar
wxMenu *file_menu = new wxMenu;
- file_menu->Append(MAINMENU_FILE_CREATE_PHANTOM, "
&Cr
eate Phantom...");
+ file_menu->Append(MAINMENU_FILE_CREATE_PHANTOM, "
Cr&
eate Phantom...");
file_menu->Append(wxID_OPEN, "&Open...");
file_menu->AppendSeparator();
file_menu->Append(wxID_OPEN, "&Open...");
file_menu->AppendSeparator();
@@
-196,13
+196,12
@@
MainFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
void
MainFrame::OnCreatePhantom(wxCommandEvent& WXUNUSED(event))
{
void
MainFrame::OnCreatePhantom(wxCommandEvent& WXUNUSED(event))
{
- DialogGetPhantom dialogPhantom (this, Phantom::PHM_HERMAN
_STR
);
+ DialogGetPhantom dialogPhantom (this, Phantom::PHM_HERMAN);
int dialogReturn = dialogPhantom.ShowModal();
if (dialogReturn == wxID_OK) {
int dialogReturn = dialogPhantom.ShowModal();
if (dialogReturn == wxID_OK) {
-
string selection = dialogPhantom.getPhantom(
);
+
wxString selection (dialogPhantom.getPhantom()
);
*theApp->getLog() << "Selected phantom " << selection.c_str() << "\n";
*theApp->getLog() << "Selected phantom " << selection.c_str() << "\n";
- wxString filename = selection.c_str();
- filename += ".phm";
+ wxString filename = selection + ".phm";
theApp->getDocManager()->CreateDocument(filename, wxDOC_SILENT);
}
theApp->getDocManager()->CreateDocument(filename, wxDOC_SILENT);
}