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