]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/ogl/studio/view.h
Add missing files to release tarballs
[wxWidgets.git] / contrib / samples / ogl / studio / view.h
index 9b15ec43457e7339aa787c32faa4744c66c78e8e..a58f3391edb4f5fc935c0c8ebfa4a85fbd31973a 100644 (file)
@@ -6,16 +6,12 @@
 // Created:     12/07/98
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
-// Licence:    wxWindows licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _STUDIO_VIEW_H_
 #define _STUDIO_VIEW_H_
 
-#if defined(__GNUG__) && !defined(__APPLE__)
-// #pragma interface "view.h"
-#endif
-
 #include "doc.h"
 #include <wx/ogl/ogl.h>
 
@@ -25,7 +21,7 @@ class csCanvas: public wxShapeCanvas
 DECLARE_CLASS(csCanvas)
  public:
 
-  csCanvas(csDiagramView *view, wxWindow *parent = NULL, wxWindowID id = -1,
+  csCanvas(csDiagramView *view, wxWindow *parent = NULL, wxWindowID id = wxID_ANY,
             const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
             long style = wxRETAINED);
   ~csCanvas(void);
@@ -65,7 +61,7 @@ class csDiagramView: public wxView
   bool OnCreate(wxDocument *doc, long flags);
   void OnDraw(wxDC *dc);
   void OnUpdate(wxView *sender, wxObject *hint = NULL);
-  bool OnClose(bool deleteWindow = TRUE);
+  bool OnClose(bool deleteWindow = true);
   void OnSelectAll(wxCommandEvent& event);
 
   wxShape *FindFirstSelectedShape(void);
@@ -95,7 +91,7 @@ class csDiagramView: public wxView
   void DoCmd(wxList& shapes, wxList& oldShapes, int cmd, const wxString& op);
 
   // Select or deselect all
-  void SelectAll(bool select = TRUE);
+  void SelectAll(bool select = true);
 
 // Event handlers
   void OnCut(wxCommandEvent& event);