#include "wx/wx.h"
#endif
-#if !USE_DOC_VIEW_ARCHITECTURE
-#error You must set USE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
+#if !wxUSE_DOC_VIEW_ARCHITECTURE
+#error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in wx_setup.h!
#endif
#include "docview.h"
// Clear the canvas in case we're in single-window mode,
// and the canvas stays.
canvas->Clear();
- canvas->view = NULL;
- canvas = NULL;
+ canvas->view = (wxView *) NULL;
+ canvas = (MyCanvas *) NULL;
wxString s(wxTheApp->GetAppName());
if (frame)
void DrawingView::OnCut(wxCommandEvent& WXUNUSED(event) )
{
DrawingDocument *doc = (DrawingDocument *)GetDocument();
- doc->GetCommandProcessor()->Submit(new DrawingCommand("Cut Last Segment", DOODLE_CUT, doc, NULL));
+ doc->GetCommandProcessor()->Submit(new DrawingCommand((const wxString) "Cut Last Segment", DOODLE_CUT, doc, (DoodleSegment *) NULL));
}
IMPLEMENT_DYNAMIC_CLASS(TextEditView, wxView)
if (!view)
return;
- static DoodleSegment *currentSegment = NULL;
+ static DoodleSegment *currentSegment = (DoodleSegment *) NULL;
wxClientDC dc(this);
PrepareDC(dc);
if (currentSegment->lines.Number() == 0)
{
delete currentSegment;
- currentSegment = NULL;
+ currentSegment = (DoodleSegment *) NULL;
}
else
{
doc->GetCommandProcessor()->Submit(new DrawingCommand("Add Segment", DOODLE_ADD, doc, currentSegment));
view->GetDocument()->Modify(TRUE);
- currentSegment = NULL;
+ currentSegment = (DoodleSegment *) NULL;
}
}