projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r1027: *** empty log message ***
[ctsim.git]
/
src
/
ctsim.cpp
diff --git
a/src/ctsim.cpp
b/src/ctsim.cpp
index 2d94fa4addd39bc88332c5ee4df70448c755a285..a51a3658352166ac8bf507aaf7dcc24d923328be 100644
(file)
--- a/
src/ctsim.cpp
+++ b/
src/ctsim.cpp
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ctsim.cpp,v 1.10
2 2001/09/24 09:40:42
kevin Exp $
+** $Id: ctsim.cpp,v 1.10
4 2001/09/24 15:16:41
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
@@
-70,7
+70,7
@@
#endif
#endif
#endif
#endif
-static const char* rcsindent = "$Id: ctsim.cpp,v 1.10
2 2001/09/24 09:40:42
kevin Exp $";
+static const char* rcsindent = "$Id: ctsim.cpp,v 1.10
4 2001/09/24 15:16:41
kevin Exp $";
struct option CTSimApp::ctsimOptions[] =
{
struct option CTSimApp::ctsimOptions[] =
{
@@
-159,8
+159,14
@@
CTSimApp::OnInit()
// Create the main frame window
int xDisplay, yDisplay;
::wxDisplaySize (&xDisplay, &yDisplay);
// Create the main frame window
int xDisplay, yDisplay;
::wxDisplaySize (&xDisplay, &yDisplay);
+
m_pFrame = new MainFrame(m_docManager, (wxFrame *) NULL, -1, "CTSim", wxPoint(0, 0),
m_pFrame = new MainFrame(m_docManager, (wxFrame *) NULL, -1, "CTSim", wxPoint(0, 0),
- wxSize(nearest<int>(xDisplay * .25), nearest<int>(yDisplay * .255)), wxDEFAULT_FRAME_STYLE);
+#ifdef CTSIM_MDI
+ wxSize(nearest<int>(xDisplay * .75), nearest<int>(yDisplay * .75)),
+#else
+ wxSize(nearest<int>(xDisplay * .25), nearest<int>(yDisplay * .25)),
+#endif
+ wxDEFAULT_FRAME_STYLE);
setIconForFrame (m_pFrame);
m_pFrame->Centre(wxBOTH);
setIconForFrame (m_pFrame);
m_pFrame->Centre(wxBOTH);
@@
-740,15
+746,6
@@
MainFrame::OnUpdateUI (wxUpdateUIEvent& rEvent)
#endif
}
#endif
}
-#ifdef CTSIM_CUSTOM_MRU
-void
-MainFrame::OnMRUFile (wxCommandEvent& event)
-{
- wxString fileName (theApp->getDocManager()->GetHistoryFile(event.GetId() - wxID_FILE1));
- if (fileName != "")
- theApp->getDocManager()->CreateDocument(fileName, wxDOC_SILENT);
-}
-#endif
void
MainFrame::DoWindowMenu (int iMenuPosition, wxCommandEvent& event)
void
MainFrame::DoWindowMenu (int iMenuPosition, wxCommandEvent& event)