]> git.saurik.com Git - wxWidgets.git/blob - demos/life/dialogs.h
Added SWIG patches to allow compiling the generated code with
[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 // for compilers that support precompilation, includes "wx/wx.h"
16 #include "wx/wxprec.h"
17
18 #ifdef __BORLANDC__
19 #pragma hdrstop
20 #endif
21
22 // for all others, include the necessary headers
23 #ifndef WX_PRECOMP
24 #include "wx/wx.h"
25 #endif
26
27 #include "life.h"
28 #include "game.h"
29
30
31 // --------------------------------------------------------------------------
32 // LifeSamplesDialog
33 // --------------------------------------------------------------------------
34
35 class LifeSamplesDialog : public wxDialog
36 {
37 public:
38 // ctor and dtor
39 LifeSamplesDialog(wxWindow *parent);
40 ~LifeSamplesDialog();
41
42 // members
43 const LifePattern& GetPattern();
44
45 // event handlers
46 void OnListBox(wxCommandEvent &event);
47
48 private:
49 // any class wishing to process wxWidgets events must use this macro
50 DECLARE_EVENT_TABLE()
51
52 int m_value;
53 wxListBox *m_list;
54 wxTextCtrl *m_text;
55 LifeCanvas *m_canvas;
56 Life *m_life;
57 };
58
59 // --------------------------------------------------------------------------
60 // LifeAboutDialog
61 // --------------------------------------------------------------------------
62
63 class LifeAboutDialog : public wxDialog
64 {
65 public:
66 // ctor
67 LifeAboutDialog(wxWindow *parent);
68 };
69
70
71 #endif // _LIFE_DIALOGS_H_