Life! version 2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guillermo Rodriguez Garcia
2000-02-08 20:04:48 +00:00
parent bf4d9b2b9b
commit e0a4029251
14 changed files with 2086 additions and 645 deletions

View File

@@ -34,33 +34,6 @@
#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 +46,14 @@ public:
~LifeSamplesDialog();
// members
int GetValue();
const LifeShape& GetShape();
// 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 +62,15 @@ private:
Life *m_life;
};
// --------------------------------------------------------------------------
// LifeAboutDialog
// --------------------------------------------------------------------------
class LifeAboutDialog : public wxDialog
{
public:
// ctor
LifeAboutDialog(wxWindow *parent);
};
#endif // _LIFE_DIALOGS_H_