r604: no message
[ctsim.git] / src / docs.cpp
index 96f7ee3c2ae793d842e34f91a0fce7abdb99b47f..337d6737e5086c95aafb4bdbd920fd3df5e1ce52 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: docs.cpp,v 1.30 2001/02/25 16:21:36 kevin Exp $
+**  $Id: docs.cpp,v 1.31 2001/03/04 22:30:19 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
@@ -166,8 +166,7 @@ BackgroundProcessingDocument::OnRemoveBackground (wxCommandEvent& event)
   if (! bFound) 
      sys_error (ERR_SEVERE, "Could not find background task [OnRemoveBackground]");
   
-  wxCommandEvent ackEvent (wxEVT_COMMAND_MENU_SELECTED, BackgroundSupervisor::MSG_DOCUMENT_ACK_REMOVE);
-  wxPostEvent (pSupervisor, ackEvent);
+  pSupervisor->onAckDocumentRemove();
 }
 
 void
@@ -176,7 +175,7 @@ BackgroundProcessingDocument::cancelRunningTasks()
   m_criticalSection.Enter();
   for (BackgroundContainer::iterator i = m_vecpBackgroundSupervisors.begin(); 
         i != m_vecpBackgroundSupervisors.end(); i++)
-          BackgroundSupervisor::cancelSupervisor(*i);
+          (*i)->onCancel();
   m_criticalSection.Leave();
 
   while (m_vecpBackgroundSupervisors.size() > 0) {