X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fbackgroundmgr.h;h=225a78eb073537bd1b367efe15e7eb30606c0377;hp=8aa185967a50c12b6f1efcd5c050d4ae34416746;hb=f13a8c004b8f182b42d9e4df2bcd7c7f030bf1ad;hpb=bf055865d682c7ff942b36315985711a2c5e5793 diff --git a/src/backgroundmgr.h b/src/backgroundmgr.h index 8aa1859..225a78e 100644 --- a/src/backgroundmgr.h +++ b/src/backgroundmgr.h @@ -7,9 +7,7 @@ ** Date Started: February 2001 ** ** This is part of the CTSim program -** Copyright (C) 1983-2001 Kevin Rosenberg -** -** $Id: backgroundmgr.h,v 1.10 2001/03/09 18:50:46 kevin Exp $ +** Copyright (C) 1983-2009 Kevin Rosenberg ** ** 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 @@ -65,6 +63,9 @@ private: void resizeWindow(); BackgroundManagerTask* lookupTask (BackgroundSupervisor* pSupervisor); + BackgroundManagerTask* lookupTask (int iButtonID); + + static int s_iNextButtonID; wxSize m_sizeGauge; wxSize m_sizeLabel; @@ -90,26 +91,29 @@ public: class BackgroundSupervisor; class BackgroundManagerTask { private: - const BackgroundSupervisor* m_pSupervisor; + BackgroundSupervisor* m_pSupervisor; const std::string m_strName; const int m_iPosition; wxGauge* m_pGauge; wxStaticText* m_pLabel; wxButton* m_pButton; + const int m_iButtonID; public: BackgroundManagerTask (BackgroundSupervisor* pSupervisor, const char* const pszName, int iPos, - wxGauge* pGauge, wxStaticText* pLabel, wxButton* pButton) - : m_pSupervisor(pSupervisor), m_strName(pszName), m_iPosition(iPos), m_pGauge(pGauge), m_pLabel(pLabel), m_pButton(pButton) + wxGauge* pGauge, wxStaticText* pLabel, wxButton* pButton, int iButtonID) + : m_pSupervisor(pSupervisor), m_strName(pszName), m_iPosition(iPos), m_pGauge(pGauge), + m_pLabel(pLabel), m_pButton(pButton), m_iButtonID(iButtonID) {} int position() const {return m_iPosition;} const std::string& name() const {return m_strName;} - const BackgroundSupervisor* supervisor() const {return m_pSupervisor;} + BackgroundSupervisor* supervisor() {return m_pSupervisor;} wxGauge* gauge() {return m_pGauge;} wxStaticText* label() {return m_pLabel;} wxButton* button() {return m_pButton;} + int buttonID() const {return m_iButtonID;} };