1 /*****************************************************************************
4 ** Name: backgroundmgr.h
5 ** Purpose: Header file for background manager
6 ** Programmer: Kevin Rosenberg
7 ** Date Started: February 2001
9 ** This is part of the CTSim program
10 ** Copyright (C) 1983-2001 Kevin Rosenberg
12 ** $Id: backgroundmgr.h,v 1.1 2001/02/22 15:00:20 kevin Exp $
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.
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.
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 ******************************************************************************/
28 #ifndef _BACKGROUND_MGR_H
31 #include "wx/wxprec.h"
36 #include "wx/minifram.h"
43 #include "threadrecon.h"
47 #if defined(HAVE_CONFIG_H)
51 class BackgroundManagerCanvas;
54 //class BackgroundManager : public wxMDIChildFrame
56 class BackgroundManager : public wxMiniFrame
60 DECLARE_DYNAMIC_CLASS(BackgroundManager)
62 BackgroundManagerCanvas* m_pCanvas;
64 std::vector<BackgroundTask*> m_vecpBackgroundTasks;
65 std::vector<wxGauge*> m_vecpGauges;
67 void OnCloseWindow(wxCloseEvent& event);
72 wxGauge* addTask (BackgroundTask* pTask, int iNumUnits);
73 void taskDone (BackgroundTask* pTask);
74 bool isCancelling (BackgroundTask* pTask);
80 class BackgroundManagerCanvas : public wxPanel {
82 DECLARE_DYNAMIC_CLASS(BackgroundManagerCanvas)
83 BackgroundManager* m_pBackgroundManager;
86 BackgroundManagerCanvas (BackgroundManager* pBkgdMgr = NULL);
88 void OnPaint (wxPaintEvent& event);
94 #endif // _BACKGROUNDMGR_H