X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2480be69b159027a3673eee1a4fc4e16287d058d..be71e18af4e329233714e2e0b59049ef6b3c606d:/demos/life/dialogs.h diff --git a/demos/life/dialogs.h b/demos/life/dialogs.h index 4c503cf4e3..e41e45953c 100644 --- a/demos/life/dialogs.h +++ b/demos/life/dialogs.h @@ -28,39 +28,10 @@ #include "wx/wx.h" #endif -#include "wx/spinctrl.h" - #include "life.h" #include "game.h" -// sample configurations -extern LifeShape g_shapes[]; - - -// -------------------------------------------------------------------------- -// LifeNewGameDialog -// -------------------------------------------------------------------------- - -class LifeNewGameDialog : public wxDialog -{ -public: - // ctor - LifeNewGameDialog(wxWindow *parent, int *w, int *h); - - // event handlers - void OnOK(wxCommandEvent& event); - -private: - // any class wishing to process wxWindows events must use this macro - DECLARE_EVENT_TABLE(); - - int *m_w; - int *m_h; - wxSpinCtrl *m_spinctrlw; - wxSpinCtrl *m_spinctrlh; -}; - // -------------------------------------------------------------------------- // LifeSamplesDialog // -------------------------------------------------------------------------- @@ -73,14 +44,14 @@ public: ~LifeSamplesDialog(); // members - int GetValue(); + const LifePattern& GetPattern(); // event handlers void OnListBox(wxCommandEvent &event); private: // any class wishing to process wxWindows events must use this macro - DECLARE_EVENT_TABLE(); + DECLARE_EVENT_TABLE() int m_value; wxListBox *m_list; @@ -89,4 +60,16 @@ private: Life *m_life; }; +// -------------------------------------------------------------------------- +// LifeAboutDialog +// -------------------------------------------------------------------------- + +class LifeAboutDialog : public wxDialog +{ +public: + // ctor + LifeAboutDialog(wxWindow *parent); +}; + + #endif // _LIFE_DIALOGS_H_