r416: no message
[ctsim.git] / src / ctsim.cpp
1 /*****************************************************************************
2 ** FILE IDENTIFICATION
3 **
4 **   Name:          ctsim.cpp
5 **   Purpose:       Top-level routines of CTSim program
6 **   Programmer:    Kevin Rosenberg
7 **   Date Started:  July 2000
8 **
9 **  This is part of the CTSim program
10 **  Copyright (C) 1983-2000 Kevin Rosenberg
11 **
12 **  $Id: ctsim.cpp,v 1.33 2001/01/18 02:50:50 kevin Exp $
13 **
14 **  This program is free software; you can redistribute it and/or modify
15 **  it under the terms of the GNU General Public License (version 2) as
16 **  published by the Free Software Foundation.
17 **
18 **  This program is distributed in the hope that it will be useful,
19 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
20 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 **  GNU General Public License for more details.
22 **
23 **  You should have received a copy of the GNU General Public License
24 **  along with this program; if not, write to the Free Software
25 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 ******************************************************************************/
27
28 #ifdef MSVC
29 #define strdup _strdup
30 #endif
31
32 // For compilers that support precompilation, includes "wx/wx.h".
33 #include "wx/wxprec.h"
34
35 #ifdef __BORLANDC__
36 #pragma hdrstop
37 #endif
38
39 #ifndef WX_PRECOMP
40 #include "wx/wx.h"
41 #endif
42
43 #include "wx/image.h"
44 #include "wx/filesys.h"
45 #include "wx/fs_zip.h"
46
47 #if !wxUSE_DOC_VIEW_ARCHITECTURE
48 #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in setup.h!
49 #endif
50
51 #include "ct.h"
52 #include "ctsim.h"
53 #include "ctsim-map.h"
54 #include "docs.h"
55 #include "views.h"
56 #include "dialogs.h"
57
58 #if defined(HAVE_CONFIG_H)
59 #include "config.h"
60 #endif
61
62 #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG)
63 #ifdef MSVC
64 #define __STDC__ 1
65 #endif
66 #include "getopt.h"
67 #ifdef MSVC
68 #undef __STDC__
69 #endif
70 #endif
71
72 static const char* rcsindent = "$Id: ctsim.cpp,v 1.33 2001/01/18 02:50:50 kevin Exp $";
73
74 struct option CTSimApp::ctsimOptions[] = 
75 {
76   {"help", 0, 0, O_HELP},
77   {"version", 0, 0, O_VERSION},
78   {0, 0, 0, 0}
79 };
80
81 IMPLEMENT_APP(CTSimApp)
82
83 CTSimApp::CTSimApp()
84 : m_docManager(NULL), m_pFrame(NULL)
85 {
86   theApp = this;
87 }
88
89 #ifdef HAVE_SYS_TIME_H
90 #include <sys/time.h>
91 #endif
92
93 #ifdef HAVE_SYS_RESOURCE_H
94 #include <sys/resource.h>
95 #endif
96
97 bool
98 CTSimApp::OnInit()
99 {
100 #ifdef HAVE_SETPRIORITY
101   setpriority (PRIO_PROCESS, 0, 15);  // set to low scheduling priority
102 #endif
103
104   g_bRunningWXWindows = true;
105   // process options
106   while (1) {
107     int c = getopt_long (argc, argv, "", ctsimOptions, NULL);
108     if (c == -1)
109       break;
110     
111     switch (c) {
112     case O_VERSION:
113       std::cout << rcsindent << std::endl;
114 #ifdef CTSIMVERSION
115       std::cout << "Version: CTSIMVERSION" << std::endl;
116 #elif defined(VERSION)
117       std::cout << "Version: VERSION" << std::endl;
118 #endif
119       exit(0);
120     case O_HELP:
121     case '?':
122       usage (argv[0]);
123       exit (0);
124     default:
125       usage (argv[0]);
126       exit (1);
127     }
128   }
129   
130   m_docManager = new wxDocManager;
131   
132   new wxDocTemplate (m_docManager, "ImageFile", "*.if", "", "if", "ImageFile doc", "ImageFile View", CLASSINFO(ImageFileDocument), CLASSINFO(ImageFileView));
133   new wxDocTemplate (m_docManager, "ProjectionFile", "*.pj", "", "pj", "ProjectionFile doc", "ProjectionFile View", CLASSINFO(ProjectionFileDocument), CLASSINFO(ProjectionFileView));
134   new wxDocTemplate (m_docManager, "PhantomFile", "*.phm", "", "phm", "Phantom doc", "Phantom View", CLASSINFO(PhantomDocument), CLASSINFO(PhantomView));
135   new wxDocTemplate (m_docManager, "PlotFile", "*.plt", "", "plt", "Plot doc", "Plot View", CLASSINFO(PlotFileDocument), CLASSINFO(PlotFileView));
136   
137 #if wxUSE_GIF
138     wxImage::AddHandler(new wxGIFHandler);     // Required for images in the online documentation
139 #endif
140
141 #if wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB
142       wxFileSystem::AddHandler(new wxZipFSHandler);     // Required for advanced HTML help
143 #endif
144
145   // Create the main frame window
146   m_pFrame = new MainFrame(m_docManager, (wxFrame *) NULL, -1, "CTSim", wxPoint(0, 0), wxSize(500, 400), wxDEFAULT_FRAME_STYLE);
147
148   SetTopWindow (m_pFrame);
149   m_pFrame->Centre(wxBOTH);
150   
151   m_pFrame->Show(true);
152   
153   for (int i = optind + 1; i <= argc; i++) {
154     wxString filename = argv [i - 1];
155     m_docManager->CreateDocument (filename, wxDOC_SILENT);
156   }
157
158   setIconForFrame (m_pFrame);
159
160   if (! m_pFrame->getHelpController().Initialize("ctsim"))
161     ::wxMessageBox ("Cannot initialize the help system", "Error");
162
163   wxAcceleratorEntry accelEntries[5];
164   accelEntries[0].Set(wxACCEL_CTRL, (int) 'O', wxID_OPEN);
165   accelEntries[1].Set(wxACCEL_CTRL, (int) 'T', MAINMENU_HELP_TOPICS);
166   accelEntries[2].Set(wxACCEL_CTRL, (int) 'P', MAINMENU_FILE_CREATE_PHANTOM);
167   accelEntries[3].Set(wxACCEL_CTRL, (int) 'F', MAINMENU_FILE_CREATE_FILTER);
168   accelEntries[4].Set(wxACCEL_NORMAL, WXK_F1, MAINMENU_HELP_CONTENTS);
169   wxAcceleratorTable accelTable (5
170     , accelEntries);
171   m_pFrame->SetAcceleratorTable (accelTable);
172
173   return true;
174 }
175
176
177 #include "./ctsim.xpm"
178 void
179 CTSimApp::setIconForFrame(wxFrame* pFrame)
180 {
181   wxIcon iconApp (ctsim16_xpm);
182
183   if (iconApp.Ok())
184     pFrame->SetIcon (iconApp);
185 }
186
187 void
188 CTSimApp::usage(const char* program)
189 {
190   std::cout << "usage: " << fileBasename(program) << " [files-to-open...] [OPTIONS]\n";
191   std::cout << "Computed Tomography Simulator (Graphical Shell)\n";
192   std::cout << "\n";
193   std::cout << "  --version Display version\n";
194   std::cout << "  --help    Display this help message\n";
195 }
196
197 int
198 CTSimApp::OnExit()
199 {
200   delete m_docManager;
201 #ifdef HAVE_DMALLOC
202   dmalloc_shutdown();
203 #endif
204   return 0;
205 }
206
207 wxString
208 CTSimApp::getUntitledFilename()
209 {
210   static int untitledNumber = 1;
211   
212   wxString filename ("Untitled");
213   filename << untitledNumber++;
214   
215   return (filename);
216 }
217
218
219 // Top-level window for CTSim
220
221 #if CTSIM_MDI
222 IMPLEMENT_CLASS(MainFrame, wxMDIParentFrame)
223
224 BEGIN_EVENT_TABLE(MainFrame, wxMDIParentFrame)
225 #else
226 IMPLEMENT_CLASS(MainFrame, wxDocParentFrame)
227
228 BEGIN_EVENT_TABLE(MainFrame, wxDocParentFrame)
229 #endif
230
231 EVT_MENU(MAINMENU_HELP_ABOUT, MainFrame::OnAbout)
232 EVT_MENU(MAINMENU_HELP_CONTENTS, MainFrame::OnHelpContents)
233 EVT_MENU(MAINMENU_HELP_TOPICS, MainFrame::OnHelpTopics)
234 EVT_MENU(MAINMENU_FILE_CREATE_PHANTOM, MainFrame::OnCreatePhantom)
235 EVT_MENU(MAINMENU_FILE_CREATE_FILTER, MainFrame::OnCreateFilter)
236 EVT_MENU(MAINMENU_FILE_EXIT, MainFrame::OnExit)
237 EVT_MENU(MAINMENU_WINDOW_BASE, MainFrame::OnWindowMenu0)
238 EVT_MENU(MAINMENU_WINDOW_BASE+1, MainFrame::OnWindowMenu1)
239 EVT_MENU(MAINMENU_WINDOW_BASE+2, MainFrame::OnWindowMenu2)
240 EVT_MENU(MAINMENU_WINDOW_BASE+3, MainFrame::OnWindowMenu3)
241 EVT_MENU(MAINMENU_WINDOW_BASE+4, MainFrame::OnWindowMenu4)
242 EVT_MENU(MAINMENU_WINDOW_BASE+5, MainFrame::OnWindowMenu5)
243 EVT_MENU(MAINMENU_WINDOW_BASE+6, MainFrame::OnWindowMenu6)
244 EVT_MENU(MAINMENU_WINDOW_BASE+7, MainFrame::OnWindowMenu7)
245 EVT_MENU(MAINMENU_WINDOW_BASE+8, MainFrame::OnWindowMenu8)
246 EVT_MENU(MAINMENU_WINDOW_BASE+9, MainFrame::OnWindowMenu9)
247 EVT_MENU(MAINMENU_WINDOW_BASE+10, MainFrame::OnWindowMenu10)
248 EVT_MENU(MAINMENU_WINDOW_BASE+11, MainFrame::OnWindowMenu11)
249 EVT_MENU(MAINMENU_WINDOW_BASE+12, MainFrame::OnWindowMenu12)
250 EVT_MENU(MAINMENU_WINDOW_BASE+13, MainFrame::OnWindowMenu13)
251 EVT_MENU(MAINMENU_WINDOW_BASE+14, MainFrame::OnWindowMenu14)
252 EVT_MENU(MAINMENU_WINDOW_BASE+15, MainFrame::OnWindowMenu15)
253 EVT_MENU(MAINMENU_WINDOW_BASE+16, MainFrame::OnWindowMenu16)
254 EVT_MENU(MAINMENU_WINDOW_BASE+17, MainFrame::OnWindowMenu17)
255 EVT_MENU(MAINMENU_WINDOW_BASE+18, MainFrame::OnWindowMenu18)
256 EVT_MENU(MAINMENU_WINDOW_BASE+19, MainFrame::OnWindowMenu19)
257 EVT_UPDATE_UI_RANGE(MAINMENU_WINDOW_BASE, MAINMENU_WINDOW_BASE+20, MainFrame::OnUpdateUI)
258 END_EVENT_TABLE()
259
260
261
262 #if CTSIM_MDI
263 MainFrame::MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type)
264 : wxMDIParentFrame(NULL,  id, title, pos, size, type), m_pLog(NULL)
265 #else
266 MainFrame::MainFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, const long type)
267 : wxDocParentFrame(manager, frame, id, title, pos, size, type), m_pLog(NULL)
268 #endif
269 {
270   m_pLog = new wxTextCtrl (this, -1, "Log Window\n", wxPoint(0, 250), wxSize(100,50), wxTE_MULTILINE | wxTE_READONLY);
271   wxLog::SetActiveTarget(new wxLogTextCtrl(m_pLog));
272   CreateStatusBar();
273   SetStatusText ("Welcome to CTSim");
274   
275   //// Make a menubar
276   wxMenu *file_menu = new wxMenu;
277   
278   file_menu->Append(MAINMENU_FILE_CREATE_PHANTOM, "Cr&eate Phantom...\tCtrl-P");
279   file_menu->Append(MAINMENU_FILE_CREATE_FILTER, "Create &Filter...\tCtrl-F");
280   file_menu->Append(wxID_OPEN, "&Open...\tCtrl-O");
281   
282   file_menu->AppendSeparator();
283   file_menu->Append(MAINMENU_FILE_EXIT, "E&xit");
284   
285   //  history of files visited
286   theApp->getDocManager()->FileHistoryUseMenu(file_menu);
287   
288   m_pWindowMenu = new wxMenu;
289   m_pWindowMenu->UpdateUI (this);
290   
291   wxMenu* help_menu = new wxMenu;
292   help_menu->Append(MAINMENU_HELP_CONTENTS, "&Contents\tF1");
293   help_menu->Append(MAINMENU_HELP_TOPICS, "&Topics\tCtrl-T");
294   help_menu->Append(MAINMENU_HELP_ABOUT, "&About");
295   
296   wxMenuBar* menu_bar = new wxMenuBar;
297   
298   menu_bar->Append(file_menu, "&File");
299   menu_bar->Append(m_pWindowMenu, "&Window");
300   menu_bar->Append(help_menu, "&Help");
301   
302   SetMenuBar(menu_bar);
303   
304   for (int i = 0; i < MAX_WINDOW_MENUITEMS; i++) {
305     m_apWindowMenuItems[i] = new wxMenuItem (m_pWindowMenu, MAINMENU_WINDOW_BASE+i, wxString("<Empty>"));
306     m_pWindowMenu->Append (m_apWindowMenuItems[i]);
307     m_pWindowMenu->Enable (MAINMENU_WINDOW_BASE+i, false);
308   }
309   
310   m_iDefaultPhantomID = Phantom::PHM_HERMAN;
311   m_iDefaultFilterID = SignalFilter::FILTER_BANDLIMIT;
312   m_iDefaultFilterDomainID = SignalFilter::DOMAIN_FREQUENCY;
313   m_iDefaultFilterXSize = 256;
314   m_iDefaultFilterYSize = 256;
315   m_dDefaultFilterParam = 1.;
316   m_dDefaultFilterBandwidth = 1.;
317   m_dDefaultFilterInputScale = 1.;
318   m_dDefaultFilterOutputScale = 1.;
319   
320 }
321
322 void 
323 MainFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
324 {
325   wxString msg = "CTSim\nThe Open Source Computed Tomography Simulator\n";
326 #ifdef CTSIMVERSION
327   msg += "Version ";
328   msg += CTSIMVERSION;
329   msg += "\n\n";
330 #elif defined(VERSION)
331   msg << "Version: " <<  VERSION << "\n\n";
332 #endif
333   msg += "Author: Kevin Rosenberg <kevin@rosenberg.net>\nUsage: ctsim [files-to-open..] [--help]";
334   
335   wxMessageBox(msg, "About CTSim", wxOK | wxICON_INFORMATION, this);
336 }
337
338 void 
339 MainFrame::OnCreatePhantom(wxCommandEvent& event)
340 {
341   DialogGetPhantom dialogPhantom (this, m_iDefaultPhantomID);
342   int dialogReturn = dialogPhantom.ShowModal();
343   if (dialogReturn == wxID_OK) {
344     wxString selection (dialogPhantom.getPhantom());
345     *theApp->getLog() << "Selected phantom " << selection.c_str() << "\n";
346     wxString filename = selection + ".phm";
347     m_iDefaultPhantomID = Phantom::convertNameToPhantomID (selection.c_str());
348     theApp->getDocManager()->CreateDocument(filename, wxDOC_SILENT);
349   }
350   
351 }
352
353 void 
354 MainFrame::OnCreateFilter (wxCommandEvent& WXUNUSED(event))
355 {
356   DialogGetFilterParameters dialogFilter (this, m_iDefaultFilterXSize, m_iDefaultFilterYSize, m_iDefaultFilterID, m_dDefaultFilterParam, m_dDefaultFilterBandwidth, m_iDefaultFilterDomainID, m_dDefaultFilterInputScale, m_dDefaultFilterOutputScale);
357   int dialogReturn = dialogFilter.ShowModal();
358   if (dialogReturn == wxID_OK) {
359     wxString strFilter (dialogFilter.getFilterName());
360     wxString strDomain (dialogFilter.getDomainName());
361     m_iDefaultFilterID = SignalFilter::convertFilterNameToID (strFilter.c_str());
362     m_iDefaultFilterDomainID = SignalFilter::convertDomainNameToID (strDomain.c_str());
363     m_iDefaultFilterXSize = dialogFilter.getXSize();
364     m_iDefaultFilterYSize = dialogFilter.getYSize();
365     m_dDefaultFilterBandwidth = dialogFilter.getBandwidth();
366     m_dDefaultFilterParam= dialogFilter.getFilterParam();
367     m_dDefaultFilterInputScale = dialogFilter.getInputScale();
368     m_dDefaultFilterOutputScale = dialogFilter.getOutputScale();
369     std::ostringstream os;
370     os << "Generate Filter=" << strFilter.c_str() 
371       << ", size=(" << static_cast<int>(m_iDefaultFilterXSize) << "," << static_cast<int>(m_iDefaultFilterYSize) 
372       << "), domain=" << strDomain.c_str() << ", filterParam=" << m_dDefaultFilterParam << ", bandwidth=" << m_dDefaultFilterBandwidth 
373       << ", inputScale=" << m_dDefaultFilterInputScale << ", outputScale=" << m_dDefaultFilterOutputScale;
374     *theApp->getLog() << os.str().c_str() << "\n";
375     wxString filename = "untitled.if";
376     ImageFileDocument* pFilterDoc = dynamic_cast<ImageFileDocument*>(theApp->getDocManager()->CreateDocument ("untitled.if", wxDOC_SILENT));
377     if (! pFilterDoc) {
378       sys_error (ERR_SEVERE, "Unable to create filter image");
379       return;
380     }
381     ImageFile& rIF = pFilterDoc->getImageFile();
382     rIF.setArraySize (m_iDefaultFilterXSize, m_iDefaultFilterYSize);
383     rIF.filterResponse (strDomain.c_str(), m_dDefaultFilterBandwidth, strFilter.c_str(), m_dDefaultFilterParam, m_dDefaultFilterInputScale, m_dDefaultFilterOutputScale);
384     rIF.labelAdd (os.str().c_str());
385     if (theApp->getSetModifyNewDocs())
386       pFilterDoc->Modify (true);
387     pFilterDoc->UpdateAllViews();
388     pFilterDoc->GetFirstView()->OnUpdate (NULL, NULL);
389   }
390 }
391
392 void
393 CTSimApp::getCompatibleImages (const ImageFileDocument* pIFDoc, std::vector<ImageFileDocument*>& vecIF)
394 {
395   const ImageFile& rIF = pIFDoc->getImageFile();
396   unsigned int nx = rIF.nx();
397   unsigned int ny = rIF.ny();
398   wxList& rListDocs = m_docManager->GetDocuments();
399   for (wxNode* pNode = rListDocs.GetFirst(); pNode != NULL; pNode = pNode->GetNext()) {
400     wxDocument* pDoc = reinterpret_cast<wxDocument*>(pNode->GetData());
401     ImageFileDocument* pIFCompareDoc = dynamic_cast<ImageFileDocument*>(pDoc);
402     if (pIFCompareDoc && (pIFDoc != pIFCompareDoc)) {
403       const ImageFile& rCompareIF = pIFCompareDoc->getImageFile();
404       if (rCompareIF.nx() == nx && rCompareIF.ny() == ny)
405         vecIF.push_back (pIFCompareDoc);
406     }
407   }
408 }
409
410 void 
411 MainFrame::OnHelpTopics (wxCommandEvent& event)
412 {
413    showHelp (event.GetId());
414 }
415
416 void 
417 MainFrame::OnHelpContents (wxCommandEvent& event)
418 {
419    showHelp (event.GetId());
420 }
421
422 void
423 MainFrame::showHelp (int commandID)
424 {
425   m_help.LoadFile();
426
427   switch (commandID) {
428   case MAINMENU_HELP_CONTENTS:
429      m_help.DisplayContents ();
430      break;
431   case MAINMENU_HELP_TOPICS:
432      m_help.DisplaySection (introduction);
433      break;
434
435   default:
436     *getLog() << "Unknown help command # " << commandID << "\n";
437     break;
438   }
439 }
440
441 void 
442 MainFrame::OnExit (wxCommandEvent& WXUNUSED(event) )
443 {
444   Close(true);
445 }
446
447 void
448 MainFrame::OnUpdateUI (wxUpdateUIEvent& rEvent)
449 {
450   int iPos = 0;
451   wxList& rListDocs = theApp->getDocManager()->GetDocuments();
452   wxNode* pNode = rListDocs.GetFirst();
453   while (iPos < MAX_WINDOW_MENUITEMS && pNode != NULL) {
454     wxDocument* pDoc = static_cast<wxDocument*>(pNode->GetData());
455     wxString strFilename = pDoc->GetFilename();
456     static_cast<wxMenuItemBase*>(m_apWindowMenuItems[iPos])->SetName (strFilename);
457     m_apWindowMenuData[iPos] = pDoc;
458     m_pWindowMenu->Enable (MAINMENU_WINDOW_BASE+iPos, true);
459     iPos++;
460     pNode = pNode->GetNext();
461   }
462   for (int i = iPos; i < MAX_WINDOW_MENUITEMS; i++) {
463     m_pWindowMenu->Enable (MAINMENU_WINDOW_BASE+i, false);
464     static_cast<wxMenuItemBase*>(m_apWindowMenuItems[i])->SetName (wxString("<Empty>"));
465     m_apWindowMenuData[i] = NULL;
466   }
467   
468 }
469
470 void 
471 MainFrame::DoWindowMenu (int iMenuPosition, wxCommandEvent& event)
472 {
473   if (wxDocument* pDoc = m_apWindowMenuData [iMenuPosition]) {
474     wxString strFilename = pDoc->GetFilename();
475     const wxView* pView = pDoc->GetFirstView();
476     if (pView) {
477       wxFrame* pFrame = pView->GetFrame();
478       pFrame->SetFocus();
479       pFrame->Raise();
480     }
481   }
482 }
483
484 void MainFrame::OnWindowMenu0 (wxCommandEvent& event)
485 { DoWindowMenu (0, event); }
486
487 void MainFrame::OnWindowMenu1 (wxCommandEvent& event)
488 { DoWindowMenu (1, event); }
489
490 void MainFrame::OnWindowMenu2 (wxCommandEvent& event)
491 { DoWindowMenu (2, event); }
492
493 void MainFrame::OnWindowMenu3 (wxCommandEvent& event)
494 { DoWindowMenu (3, event); }
495
496 void MainFrame::OnWindowMenu4 (wxCommandEvent& event)
497 { DoWindowMenu (4, event); }
498
499 void MainFrame::OnWindowMenu5 (wxCommandEvent& event)
500 { DoWindowMenu (5, event); }
501
502 void MainFrame::OnWindowMenu6 (wxCommandEvent& event)
503 { DoWindowMenu (6, event); }
504
505 void MainFrame::OnWindowMenu7 (wxCommandEvent& event)
506 { DoWindowMenu (7, event); }
507
508 void MainFrame::OnWindowMenu8 (wxCommandEvent& event)
509 { DoWindowMenu (8, event); }
510
511 void MainFrame::OnWindowMenu9 (wxCommandEvent& event)
512 { DoWindowMenu (9, event); }
513
514 void MainFrame::OnWindowMenu10 (wxCommandEvent& event)
515 { DoWindowMenu (10, event); }
516
517 void MainFrame::OnWindowMenu11 (wxCommandEvent& event)
518 { DoWindowMenu (11, event); }
519
520 void MainFrame::OnWindowMenu12 (wxCommandEvent& event)
521 { DoWindowMenu (12, event); }
522
523 void MainFrame::OnWindowMenu13 (wxCommandEvent& event)
524 { DoWindowMenu (13, event); }
525
526 void MainFrame::OnWindowMenu14 (wxCommandEvent& event)
527 { DoWindowMenu (14, event); }
528
529 void MainFrame::OnWindowMenu15 (wxCommandEvent& event)
530 { DoWindowMenu (15, event); }
531
532 void MainFrame::OnWindowMenu16 (wxCommandEvent& event)
533 { DoWindowMenu (16, event); }
534
535 void MainFrame::OnWindowMenu17 (wxCommandEvent& event)
536 { DoWindowMenu (17, event); }
537
538 void MainFrame::OnWindowMenu18 (wxCommandEvent& event)
539 { DoWindowMenu (18, event); }
540
541 void MainFrame::OnWindowMenu19 (wxCommandEvent& event)
542 { DoWindowMenu (19, event); }
543
544