X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fbackgroundmgr.h;h=d3f49a1304541b6f26361559ffe82f3e9865f3b2;hb=7df269f65639c1a862a58649c48331824029128a;hp=7e95fae7b75daf75938363ee304c8292c9718e6a;hpb=e081109a4a541c8780aaa253b874acada5957200;p=ctsim.git diff --git a/src/backgroundmgr.h b/src/backgroundmgr.h index 7e95fae..d3f49a1 100644 --- a/src/backgroundmgr.h +++ b/src/backgroundmgr.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2001 Kevin Rosenberg ** -** $Id: backgroundmgr.h,v 1.1 2001/02/22 15:00:20 kevin Exp $ +** $Id: backgroundmgr.h,v 1.3 2001/02/23 02:06:02 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 @@ -59,20 +59,42 @@ class BackgroundManager : public wxMiniFrame private: DECLARE_DYNAMIC_CLASS(BackgroundManager) + wxCriticalSection m_criticalSection; BackgroundManagerCanvas* m_pCanvas; int m_iNumTasks; - std::vector m_vecpBackgroundTasks; - std::vector m_vecpGauges; - void OnCloseWindow(wxCloseEvent& event); + typedef std::vector TaskContainer; + typedef std::vector GaugeContainer; + typedef std::vector StringContainer; + typedef std::vector PositionContainer; + typedef std::vector LabelContainer; + TaskContainer m_vecpBackgroundTasks; + GaugeContainer m_vecpGauges; + StringContainer m_vecpNames; + PositionContainer m_vecpPositions; + LabelContainer m_vecpLabels; + wxSize m_sizeGauge; + wxSize m_sizeLabel; + wxSize m_sizeCell; + wxSize m_sizeBorder; + + void resizeWindow(); public: BackgroundManager (); - wxGauge* addTask (BackgroundTask* pTask, int iNumUnits); + wxGauge* addTask (BackgroundTask* pTask, int iNumUnits, const char* const pszTaskName); void taskDone (BackgroundTask* pTask); bool isCancelling (BackgroundTask* pTask); + TaskContainer& getTasks() { return m_vecpBackgroundTasks;} + GaugeContainer& getGauges() { return m_vecpGauges;} + StringContainer& getNames() { return m_vecpNames;} + PositionContainer& getPositions() { return m_vecpPositions;} + LabelContainer& getLabels() { return m_vecpLabels;} + + void OnCloseWindow(wxCloseEvent& event); + DECLARE_EVENT_TABLE() };