]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/deprecated/treelay/treelay.cpp
Compilation fix for Innotek gcc.
[wxWidgets.git] / contrib / samples / deprecated / treelay / treelay.cpp
index 9b1df20bcf36e87a3cd1c7be46b559b4b594c85f..ba469e45caf9f9bd804a5dc123e46bdf208bb01d 100644 (file)
 #include "wx/wx.h"
 #endif
 
 #include "wx/wx.h"
 #endif
 
-#include "wx/treelay.h"
+#include "wx/deprecated/setup.h"
+
+#if !wxUSE_TREELAYOUT
+#error Please set wxUSE_TREELAYOUT to 1 in contrib/include/wx/deprecated/setup.h and recompile.
+#endif
+
+#include "wx/deprecated/treelay.h"
 
 #include "treelay.h"
 
 
 #include "treelay.h"
 
@@ -146,12 +152,12 @@ MyFrame::MyFrame(wxWindow *parent, const wxString& title, const wxPoint& pos, co
 {
 }
 
 {
 }
 
-void MyFrame::OnQuit(wxCommandEvent& event)
+void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
 {
     Close(TRUE);
 }
 
 {
     Close(TRUE);
 }
 
-void MyFrame::OnLeftRight(wxCommandEvent& event)
+void MyFrame::OnLeftRight(wxCommandEvent& WXUNUSED(event))
 {
       if (myTree)
       {
 {
       if (myTree)
       {
@@ -164,7 +170,7 @@ void MyFrame::OnLeftRight(wxCommandEvent& event)
       }
 }
 
       }
 }
 
-void MyFrame::OnTopBottom(wxCommandEvent& event)
+void MyFrame::OnTopBottom(wxCommandEvent& WXUNUSED(event))
 {
       if (myTree)
       {
 {
       if (myTree)
       {
@@ -177,12 +183,12 @@ void MyFrame::OnTopBottom(wxCommandEvent& event)
       }
 }
 
       }
 }
 
-void MyFrame::OnAbout(wxCommandEvent& event)
+void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
 {
       (void)wxMessageBox(_T("wxWindows tree library demo Vsn 2.0\nAuthor: Julian Smart (c) 1998"), _T("About tree test"));
 }
 
 {
       (void)wxMessageBox(_T("wxWindows tree library demo Vsn 2.0\nAuthor: Julian Smart (c) 1998"), _T("About tree test"));
 }
 
-void MyFrame::OnCloseWindow(wxCloseEvent& event)
+void MyFrame::OnCloseWindow(wxCloseEvent& WXUNUSED(event))
 {
   Destroy();
 }
 {
   Destroy();
 }
@@ -199,7 +205,7 @@ MyCanvas::MyCanvas(wxWindow *parent):
 }
 
 // Define the repainting behaviour
 }
 
 // Define the repainting behaviour
-void MyCanvas::OnPaint(wxPaintEvent& event)
+void MyCanvas::OnPaint(wxPaintEvent& WXUNUSED(event))
 {
     wxPaintDC dc(this);
     PrepareDC(dc);
 {
     wxPaintDC dc(this);
     PrepareDC(dc);