]> git.saurik.com Git - wxWidgets.git/blob - demos/life/dialogs.h
bump date on 'easter egg' dialog.
[wxWidgets.git] / demos / life / dialogs.h
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 "life.h"
32 #include "game.h"
33
34
35 // --------------------------------------------------------------------------
36 // LifeSamplesDialog
37 // --------------------------------------------------------------------------
38
39 class LifeSamplesDialog : public wxDialog
40 {
41 public:
42 // ctor and dtor
43 LifeSamplesDialog(wxWindow *parent);
44 ~LifeSamplesDialog();
45
46 // members
47 const LifePattern& GetPattern();
48
49 // event handlers
50 void OnListBox(wxCommandEvent &event);
51
52 private:
53 // any class wishing to process wxWindows events must use this macro
54 DECLARE_EVENT_TABLE()
55
56 int m_value;
57 wxListBox *m_list;
58 wxTextCtrl *m_text;
59 LifeCanvas *m_canvas;
60 Life *m_life;
61 };
62
63 // --------------------------------------------------------------------------
64 // LifeAboutDialog
65 // --------------------------------------------------------------------------
66
67 class LifeAboutDialog : public wxDialog
68 {
69 public:
70 // ctor
71 LifeAboutDialog(wxWindow *parent);
72 };
73
74
75 #endif // _LIFE_DIALOGS_H_