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