** 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
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
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) {