// Created: 12/07/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
wxDiagram::wxDiagram()
{
m_diagramCanvas = NULL;
- m_quickEditMode = FALSE;
- m_snapToGrid = TRUE;
+ m_quickEditMode = false;
+ m_snapToGrid = true;
m_gridSpacing = 5.0;
m_shapeList = new wxList;
m_mouseTolerance = DEFAULT_MOUSE_TOLERANCE;
{
wxEndBusyCursor();
delete database;
- return FALSE;
+ return false;
}
database->Write(file);
}
wxEndBusyCursor();
- return TRUE;
+ return true;
}
bool wxDiagram::LoadFile(const wxString& filename)
if (!database.Read(filename))
{
wxEndBusyCursor();
- return FALSE;
+ return false;
}
DeleteAllShapes();
wxEndBusyCursor();
- return TRUE;
+ return true;
}
void wxDiagram::ReadNodes(wxExprDatabase& database)
OnShapeLoad(database, *shape, *clause);
shape->SetCanvas(GetCanvas());
- shape->Show(TRUE);
+ shape->Show(true);
m_shapeList->Append(shape);
if (classInfo)
{
wxLineShape *shape = (wxLineShape *)classInfo->CreateObject();
- shape->Show(TRUE);
+ shape->Show(true);
OnShapeLoad(database, *shape, *clause);
shape->SetCanvas(GetCanvas());
// Allow for modifying file
bool wxDiagram::OnDatabaseLoad(wxExprDatabase& WXUNUSED(db))
{
- return TRUE;
+ return true;
}
bool wxDiagram::OnDatabaseSave(wxExprDatabase& WXUNUSED(db))
{
- return TRUE;
+ return true;
}
bool wxDiagram::OnShapeSave(wxExprDatabase& db, wxShape& shape, wxExpr& expr)
}
}
- return TRUE;
+ return true;
}
bool wxDiagram::OnShapeLoad(wxExprDatabase& WXUNUSED(db), wxShape& shape, wxExpr& expr)
{
shape.ReadAttributes(&expr);
- return TRUE;
+ return true;
}
bool wxDiagram::OnHeaderSave(wxExprDatabase& WXUNUSED(db), wxExpr& WXUNUSED(expr))
{
- return TRUE;
+ return true;
}
bool wxDiagram::OnHeaderLoad(wxExprDatabase& WXUNUSED(db), wxExpr& WXUNUSED(expr))
{
- return TRUE;
+ return true;
}
#endif