** This is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: backgroundmgr.cpp,v 1.7 2001/02/25 07:36:26 kevin Exp $
+** $Id: backgroundmgr.cpp,v 1.8 2001/02/25 10:52:55 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
m_sizeLabel.Set (140, 20);
m_sizeBorder.Set (4, 4);
m_sizeCellSpacing.Set (3, 3);
- m_sizeButton.Set (70, 20);
+ //m_sizeButton.Set (70, 20);
+ m_sizeButton.Set (0, 0);
m_sizeCell.Set (m_sizeGauge.x + m_sizeLabel.x + m_sizeCellSpacing.x + m_sizeButton.x, 25);
wxPoint posButton (m_sizeBorder.x + m_sizeGauge.x + m_sizeLabel.x, m_sizeBorder.y + iFirstUnusedPos * m_sizeCell.y);
wxGauge* pGauge = new wxGauge (m_pCanvas, -1, iNumUnits, posGauge, m_sizeGauge);
wxStaticText* pLabel = new wxStaticText (m_pCanvas, -1, pszTaskName, posLabel, m_sizeLabel);
- wxButton* pCancelButton = new wxButton (m_pCanvas, iFirstUnusedPos, _T("Cancel"), posButton, m_sizeButton, wxBU_LEFT);
+// wxButton* pCancelButton = new wxButton (m_pCanvas, iFirstUnusedPos, _T("Cancel"), posButton, m_sizeButton, wxBU_LEFT);
m_vecpBackgroundTasks.push_back (pTask);
m_vecpGauges.push_back (pGauge);
m_vecpNames.push_back (new std::string (pszTaskName));
m_vecpPositions.push_back (iFirstUnusedPos);
m_vecpLabels.push_back (pLabel);
- m_vecpCancelButtons.push_back (pCancelButton);
+ //m_vecpCancelButtons.push_back (pCancelButton);
m_iNumTasks++;
resizeWindow();
GaugeContainer::iterator iGauge = m_vecpGauges.begin();
PositionContainer::iterator iPosition = m_vecpPositions.begin();
LabelContainer::iterator iLabel = m_vecpLabels.begin();
- ButtonContainer::iterator iCancelButton = m_vecpCancelButtons.begin();
+ //ButtonContainer::iterator iCancelButton = m_vecpCancelButtons.begin();
for (TaskContainer::iterator iTask = m_vecpBackgroundTasks.begin(); iTask != m_vecpBackgroundTasks.end(); iTask++) {
if (*iTask == pTask) {
delete *iName;
delete *iGauge;
delete *iLabel;
- delete *iCancelButton;
+ //delete *iCancelButton;
m_vecpBackgroundTasks.erase (iTask);
m_vecpGauges.erase (iGauge);
m_vecpNames.erase (iName);
m_vecpPositions.erase (iPosition);
m_vecpLabels.erase (iLabel);
- m_vecpCancelButtons.erase (iCancelButton);
+ //m_vecpCancelButtons.erase (iCancelButton);
m_iNumTasks--;
break;
}
iGauge++;
iPosition++;
iLabel++;
- iCancelButton++;
+ //iCancelButton++;
}
resizeWindow();