2000-01-08 13:27:19 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialogs.h
|
|
|
|
// Purpose: Life! dialogs
|
|
|
|
// Author: Guillermo Rodriguez Garcia, <guille@iies.es>
|
|
|
|
// Modified by:
|
|
|
|
// Created: Jan/2000
|
|
|
|
// Copyright: (c) 2000, Guillermo Rodriguez Garcia
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _LIFE_DIALOGS_H_
|
|
|
|
#define _LIFE_DIALOGS_H_
|
|
|
|
|
|
|
|
#include "life.h"
|
|
|
|
#include "game.h"
|
|
|
|
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
// LifeSamplesDialog
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class LifeSamplesDialog : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// ctor and dtor
|
|
|
|
LifeSamplesDialog(wxWindow *parent);
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~LifeSamplesDialog();
|
2000-01-08 13:27:19 -05:00
|
|
|
|
|
|
|
// members
|
2000-07-15 15:51:35 -04:00
|
|
|
const LifePattern& GetPattern();
|
2000-01-08 13:27:19 -05:00
|
|
|
|
|
|
|
// event handlers
|
|
|
|
void OnListBox(wxCommandEvent &event);
|
|
|
|
|
|
|
|
private:
|
2004-05-25 07:20:37 -04:00
|
|
|
// any class wishing to process wxWidgets events must use this macro
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_EVENT_TABLE();
|
2000-01-08 13:27:19 -05:00
|
|
|
|
|
|
|
int m_value;
|
|
|
|
wxListBox *m_list;
|
|
|
|
wxTextCtrl *m_text;
|
|
|
|
LifeCanvas *m_canvas;
|
|
|
|
Life *m_life;
|
|
|
|
};
|
|
|
|
|
2000-02-08 15:04:48 -05:00
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
// LifeAboutDialog
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class LifeAboutDialog : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// ctor
|
|
|
|
LifeAboutDialog(wxWindow *parent);
|
|
|
|
};
|
|
|
|
|
2000-03-03 13:21:48 -05:00
|
|
|
|
2000-01-08 13:27:19 -05:00
|
|
|
#endif // _LIFE_DIALOGS_H_
|