X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fc25a89ac1e6c5208db24bfc0abc8666b791dc6..ae200bfcb537c475708959cb034be66eb0f5dcd4:/contrib/samples/ogl/studio/view.h diff --git a/contrib/samples/ogl/studio/view.h b/contrib/samples/ogl/studio/view.h index 11cb3aeb1e..c3fc46c3f3 100644 --- a/contrib/samples/ogl/studio/view.h +++ b/contrib/samples/ogl/studio/view.h @@ -1,23 +1,19 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: view.h +// Name: contrib/samples/ogl/studio/view.h // Purpose: View-related classes // Author: Julian Smart // Modified by: // 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_ -#ifdef __GNUG__ -// #pragma interface "view.h" -#endif - #include "doc.h" -#include +#include "wx/ogl/ogl.h" class csDiagramView; class csCanvas: public wxShapeCanvas @@ -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); @@ -132,7 +128,7 @@ class csDiagramView: public wxView DECLARE_EVENT_TABLE() public: - wxFrame* frame; + wxMDIChildFrame* frame; csCanvas* canvas; wxList m_selections; };