]> git.saurik.com Git - wxWidgets.git/blob - demos/life/dialogs.h
Chinese translations update from Jiawei Huang.
[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 // Copyright: (c) 2000, Guillermo Rodriguez Garcia
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _LIFE_DIALOGS_H_
12 #define _LIFE_DIALOGS_H_
13
14 #include "life.h"
15 #include "game.h"
16
17
18 // --------------------------------------------------------------------------
19 // LifeSamplesDialog
20 // --------------------------------------------------------------------------
21
22 class LifeSamplesDialog : public wxDialog
23 {
24 public:
25 // ctor and dtor
26 LifeSamplesDialog(wxWindow *parent);
27 virtual ~LifeSamplesDialog();
28
29 // members
30 const LifePattern& GetPattern();
31
32 // event handlers
33 void OnListBox(wxCommandEvent &event);
34
35 private:
36 // any class wishing to process wxWidgets events must use this macro
37 DECLARE_EVENT_TABLE()
38
39 int m_value;
40 wxListBox *m_list;
41 wxTextCtrl *m_text;
42 LifeCanvas *m_canvas;
43 Life *m_life;
44 };
45
46 // --------------------------------------------------------------------------
47 // LifeAboutDialog
48 // --------------------------------------------------------------------------
49
50 class LifeAboutDialog : public wxDialog
51 {
52 public:
53 // ctor
54 LifeAboutDialog(wxWindow *parent);
55 };
56
57
58 #endif // _LIFE_DIALOGS_H_