// Licence:
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-// #pragma implementation
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#include <wx/wx.h>
#endif
-#include <wx/deprecated/setup.h>
-#include <wx/deprecated/wxexpr.h>
+#include <wx/ogl/ogl.h> // base header of OGL, includes and adjusts wx/deprecated/setup.h
#include "studio.h"
#include "doc.h"
void csSymbolDatabase::ClearSymbols()
{
- wxNode* node = m_symbols.GetFirst();
+ wxObjectList::compatibility_iterator node = m_symbols.GetFirst();
while (node)
{
csSymbol* symbol = (csSymbol*) node->GetData();
csSymbol* csSymbolDatabase::FindSymbol(const wxString& name) const
{
- wxNode* node = m_symbols.GetFirst();
+ wxObjectList::compatibility_iterator node = m_symbols.GetFirst();
while (node)
{
csSymbol* symbol = (csSymbol*) node->GetData();
csSymbol* csSymbolDatabase::FindSymbol(int toolId) const
{
- wxNode* node = m_symbols.GetFirst();
+ wxObjectList::compatibility_iterator node = m_symbols.GetFirst();
while (node)
{
csSymbol* symbol = (csSymbol*) node->GetData();
memDC.SelectObject(wxNullBitmap);
#endif
-#if 1
+#if 1
wxMemoryDC memDC;
double height, width, maxSize;
memDC.SetBackground(wxBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE), wxSOLID));
memDC.Clear();
- symbol->GetShape()->Show(TRUE);
+ symbol->GetShape()->Show(true);
symbol->GetShape()->Move(memDC, centreX, centreY);
memDC.SelectObject(wxNullBitmap);