]> git.saurik.com Git - wxWidgets.git/blob - demos/life/dialogs.h
Get rid of wxMenu::m_startRadioGroup in wxOSX.
[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 #include "life.h"
16 #include "game.h"
17
18
19 // --------------------------------------------------------------------------
20 // LifeSamplesDialog
21 // --------------------------------------------------------------------------
22
23 class LifeSamplesDialog : public wxDialog
24 {
25 public:
26 // ctor and dtor
27 LifeSamplesDialog(wxWindow *parent);
28 virtual ~LifeSamplesDialog();
29
30 // members
31 const LifePattern& GetPattern();
32
33 // event handlers
34 void OnListBox(wxCommandEvent &event);
35
36 private:
37 // any class wishing to process wxWidgets events must use this macro
38 DECLARE_EVENT_TABLE()
39
40 int m_value;
41 wxListBox *m_list;
42 wxTextCtrl *m_text;
43 LifeCanvas *m_canvas;
44 Life *m_life;
45 };
46
47 // --------------------------------------------------------------------------
48 // LifeAboutDialog
49 // --------------------------------------------------------------------------
50
51 class LifeAboutDialog : public wxDialog
52 {
53 public:
54 // ctor
55 LifeAboutDialog(wxWindow *parent);
56 };
57
58
59 #endif // _LIFE_DIALOGS_H_