]> git.saurik.com Git - wxWidgets.git/blame - demos/life/dialogs.h
Very minor changes
[wxWidgets.git] / demos / life / dialogs.h
CommitLineData
2480be69
GRG
1/////////////////////////////////////////////////////////////////////////////
2// Name: dialogs.h
3// Purpose: Life! dialogs
4// Author: Guillermo Rodriguez Garcia, <guille@iies.es>
5// Modified by:
6// Created: Jan/2000
7// RCS-ID: $Id$
8// Copyright: (c) 2000, Guillermo Rodriguez Garcia
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _LIFE_DIALOGS_H_
13#define _LIFE_DIALOGS_H_
14
15#ifdef __GNUG__
16 #pragma interface "dialogs.h"
17#endif
18
19// for compilers that support precompilation, includes "wx/wx.h"
20#include "wx/wxprec.h"
21
22#ifdef __BORLANDC__
23 #pragma hdrstop
24#endif
25
26// for all others, include the necessary headers
27#ifndef WX_PRECOMP
28 #include "wx/wx.h"
29#endif
30
31#include "wx/spinctrl.h"
32
33#include "life.h"
34#include "game.h"
35
36
2480be69
GRG
37// --------------------------------------------------------------------------
38// LifeSamplesDialog
39// --------------------------------------------------------------------------
40
41class LifeSamplesDialog : public wxDialog
42{
43public:
44 // ctor and dtor
45 LifeSamplesDialog(wxWindow *parent);
46 ~LifeSamplesDialog();
47
48 // members
e0a40292 49 const LifeShape& GetShape();
2480be69
GRG
50
51 // event handlers
52 void OnListBox(wxCommandEvent &event);
53
54private:
55 // any class wishing to process wxWindows events must use this macro
e0a40292 56 DECLARE_EVENT_TABLE()
2480be69
GRG
57
58 int m_value;
59 wxListBox *m_list;
60 wxTextCtrl *m_text;
61 LifeCanvas *m_canvas;
62 Life *m_life;
63};
64
e0a40292
GRG
65// --------------------------------------------------------------------------
66// LifeAboutDialog
67// --------------------------------------------------------------------------
68
69class LifeAboutDialog : public wxDialog
70{
71public:
72 // ctor
73 LifeAboutDialog(wxWindow *parent);
74};
75
2480be69 76#endif // _LIFE_DIALOGS_H_