]> git.saurik.com Git - wxWidgets.git/blame - demos/life/dialogs.h
initialize the variable as XtVaGetValues() may not do it apparently
[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
2480be69
GRG
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
2480be69
GRG
27#include "life.h"
28#include "game.h"
29
30
2480be69
GRG
31// --------------------------------------------------------------------------
32// LifeSamplesDialog
33// --------------------------------------------------------------------------
34
35class LifeSamplesDialog : public wxDialog
36{
37public:
38 // ctor and dtor
39 LifeSamplesDialog(wxWindow *parent);
d3c7fc99 40 virtual ~LifeSamplesDialog();
2480be69
GRG
41
42 // members
f6bcfd97 43 const LifePattern& GetPattern();
2480be69
GRG
44
45 // event handlers
46 void OnListBox(wxCommandEvent &event);
47
48private:
be5a51fb 49 // any class wishing to process wxWidgets events must use this macro
e0a40292 50 DECLARE_EVENT_TABLE()
2480be69
GRG
51
52 int m_value;
53 wxListBox *m_list;
54 wxTextCtrl *m_text;
55 LifeCanvas *m_canvas;
56 Life *m_life;
57};
58
e0a40292
GRG
59// --------------------------------------------------------------------------
60// LifeAboutDialog
61// --------------------------------------------------------------------------
62
63class LifeAboutDialog : public wxDialog
64{
65public:
66 // ctor
67 LifeAboutDialog(wxWindow *parent);
68};
69
29b07a38 70
2480be69 71#endif // _LIFE_DIALOGS_H_