X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3996031094e28a6936ca1df2d289c9d3baecb27d..cffadd8447201d0e2e1b3de6f8a24b967da9140c:/samples/docview/view.cpp diff --git a/samples/docview/view.cpp b/samples/docview/view.cpp index 73a6097ec4..b2461fa086 100644 --- a/samples/docview/view.cpp +++ b/samples/docview/view.cpp @@ -5,7 +5,7 @@ // Modified by: // Created: 04/01/98 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem +// Copyright: (c) Julian Smart // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// @@ -90,12 +90,12 @@ void DrawingView::OnDraw(wxDC *dc) dc->SetFont(*wxNORMAL_FONT); dc->SetPen(*wxBLACK_PEN); - wxNode *node = ((DrawingDocument *)GetDocument())->GetDoodleSegments().First(); + wxList::compatibility_iterator node = ((DrawingDocument *)GetDocument())->GetDoodleSegments().GetFirst(); while (node) { - DoodleSegment *seg = (DoodleSegment *)node->Data(); + DoodleSegment *seg = (DoodleSegment *)node->GetData(); seg->Draw(dc); - node = node->Next(); + node = node->GetNext(); } } @@ -127,7 +127,7 @@ bool DrawingView::OnClose(bool deleteWindow) // Clear the canvas in case we're in single-window mode, // and the canvas stays. - canvas->Clear(); + canvas->ClearBackground(); canvas->view = (wxView *) NULL; canvas = (MyCanvas *) NULL; @@ -241,7 +241,7 @@ void MyCanvas::OnMouseEvent(wxMouseEvent& event) if (currentSegment && event.LeftUp()) { - if (currentSegment->lines.Number() == 0) + if (currentSegment->lines.GetCount() == 0) { delete currentSegment; currentSegment = (DoodleSegment *) NULL;