]> git.saurik.com Git - wxWidgets.git/blame - demos/life/dialogs.h
moved arrays tests to testsuite (patch 927475)
[wxWidgets.git] / demos / life / dialogs.h
CommitLineData
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
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
ab7ce33c 15#if defined(__GNUG__) && !defined(__APPLE__)
2480be69
GRG
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
2480be69
GRG
31#include "life.h"
32#include "game.h"
33
34
2480be69
GRG
35// --------------------------------------------------------------------------
36// LifeSamplesDialog
37// --------------------------------------------------------------------------
38
39class LifeSamplesDialog : public wxDialog
40{
41public:
42 // ctor and dtor
43 LifeSamplesDialog(wxWindow *parent);
44 ~LifeSamplesDialog();
45
46 // members
f6bcfd97 47 const LifePattern& GetPattern();
2480be69
GRG
48
49 // event handlers
50 void OnListBox(wxCommandEvent &event);
51
52private:
53 // any class wishing to process wxWindows events must use this macro
e0a40292 54 DECLARE_EVENT_TABLE()
2480be69
GRG
55
56 int m_value;
57 wxListBox *m_list;
58 wxTextCtrl *m_text;
59 LifeCanvas *m_canvas;
60 Life *m_life;
61};
62
e0a40292
GRG
63// --------------------------------------------------------------------------
64// LifeAboutDialog
65// --------------------------------------------------------------------------
66
67class LifeAboutDialog : public wxDialog
68{
69public:
70 // ctor
71 LifeAboutDialog(wxWindow *parent);
72};
73
29b07a38 74
2480be69 75#endif // _LIFE_DIALOGS_H_