X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a21ac1590f2950cdbbe1b423d072f4226c37741..a23717e5069bd06c8134240e02889c424cd293f4:/demos/life/life.h diff --git a/demos/life/life.h b/demos/life/life.h index 48e9aca92a..ea0007d77a 100644 --- a/demos/life/life.h +++ b/demos/life/life.h @@ -12,10 +12,6 @@ #ifndef _LIFE_APP_H_ #define _LIFE_APP_H_ -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma interface "life.h" -#endif - // for compilers that support precompilation, includes "wx/wx.h" #include "wx/wxprec.h" @@ -45,7 +41,7 @@ class LifeCanvas : public wxWindow public: // ctor and dtor LifeCanvas(wxWindow* parent, Life* life, bool interactive = true); - ~LifeCanvas(); + virtual ~LifeCanvas(); // view management int GetCellSize() const { return m_cellsize; }; @@ -92,9 +88,9 @@ private: wxInt32 m_viewportY; // first visible cell (y coord) wxInt32 m_viewportW; // number of visible cells (w) wxInt32 m_viewportH; // number of visible cells (h) - int m_thumbX; // horiz. scrollbar thumb position - int m_thumbY; // vert. scrollbar thumb position - wxInt32 m_mi, m_mj; // last mouse position + int m_thumbX; // horiz. scrollbar thumb position + int m_thumbY; // vert. scrollbar thumb position + wxInt32 m_mi, m_mj; // last mouse position }; @@ -126,7 +122,7 @@ class LifeFrame : public wxFrame public: // ctor and dtor LifeFrame(); - ~LifeFrame(); + virtual ~LifeFrame(); // member functions void UpdateInfoText(); @@ -151,7 +147,7 @@ private: void OnStop(); void OnStep(); - Life *m_life; + Life *m_life; LifeCanvas *m_canvas; LifeNavigator *m_navigator; wxStaticText *m_text;