X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fbackgroundmgr.cpp;h=3a93370bea1c274d5ffc4696cf3caaf74ae8ec0a;hb=fbe99ce7041eb409981b1fd8e269827daf4ed168;hp=5e1987990bac1cd8ae120806e34e80c573367a26;hpb=df521cfe14a9e0b47bdcd98d1f67d03acf242162;p=ctsim.git diff --git a/src/backgroundmgr.cpp b/src/backgroundmgr.cpp index 5e19879..3a93370 100644 --- a/src/backgroundmgr.cpp +++ b/src/backgroundmgr.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2001 Kevin Rosenberg ** -** $Id: backgroundmgr.cpp,v 1.8 2001/02/25 10:52:55 kevin Exp $ +** $Id: backgroundmgr.cpp,v 1.11 2001/03/05 19:14:40 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 @@ -128,9 +128,9 @@ BackgroundManager::OnAddTask (wxCommandEvent& event) wxPoint posGauge (m_sizeBorder.x, m_sizeBorder.y + iFirstUnusedPos * m_sizeCell.y); wxPoint posLabel (m_sizeBorder.x + m_sizeGauge.x, m_sizeBorder.y + iFirstUnusedPos * m_sizeCell.y); - 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); + // wxPoint posButton (m_sizeBorder.x + m_sizeGauge.x + m_sizeLabel.x, m_sizeBorder.y + iFirstUnusedPos * m_sizeCell.y); // wxButton* pCancelButton = new wxButton (m_pCanvas, iFirstUnusedPos, _T("Cancel"), posButton, m_sizeButton, wxBU_LEFT); m_vecpBackgroundTasks.push_back (pTask); @@ -219,7 +219,7 @@ BackgroundManager::resizeWindow() { int iHighestPosition = -1; - for (int i = 0; i < m_vecpPositions.size(); i++) + for (unsigned int i = 0; i < m_vecpPositions.size(); i++) if (iHighestPosition < m_vecpPositions[i]) iHighestPosition = m_vecpPositions[i]; @@ -236,7 +236,7 @@ BEGIN_EVENT_TABLE(BackgroundManagerCanvas, wxPanel) END_EVENT_TABLE() BackgroundManagerCanvas::BackgroundManagerCanvas (BackgroundManager* pMgr) -: m_pBackgroundManager(pMgr), wxPanel (pMgr) +: wxPanel (pMgr), m_pBackgroundManager(pMgr) { } @@ -248,4 +248,4 @@ BackgroundManagerCanvas::OnPaint (wxPaintEvent& event) // dc.DrawLine (0, 0, 30, 30); // dc.DrawLine (30,0, 0, 30); } -#endif \ No newline at end of file +#endif