** 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.12 2001/03/05 20:29:23 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
#include "backgroundmgr.h"
-#if defined(HAVE_CONFIG_H)
-#include "config.h"
-#endif
+#ifdef HAVE_WXTHREADS
IMPLEMENT_DYNAMIC_CLASS(BackgroundManager, wxMiniFrame)
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);
{
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];
END_EVENT_TABLE()
BackgroundManagerCanvas::BackgroundManagerCanvas (BackgroundManager* pMgr)
-: m_pBackgroundManager(pMgr), wxPanel (pMgr)
+: wxPanel (pMgr), m_pBackgroundManager(pMgr)
{
}
// dc.DrawLine (0, 0, 30, 30);
// dc.DrawLine (30,0, 0, 30);
}
-#endif
\ No newline at end of file
+#endif
+
+#endif // HAVE_WXTHREADS