2000-01-08 18:27:19 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialogs.h
|
|
|
|
// Purpose: Life! dialogs
|
|
|
|
// Author: Guillermo Rodriguez Garcia, <guille@iies.es>
|
|
|
|
// Modified by:
|
|
|
|
// Created: Jan/2000
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2000, Guillermo Rodriguez Garcia
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _LIFE_DIALOGS_H_
|
|
|
|
#define _LIFE_DIALOGS_H_
|
|
|
|
|
2002-09-07 12:28:46 +00:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
2000-01-08 18:27:19 +00:00
|
|
|
#pragma interface "dialogs.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// for compilers that support precompilation, includes "wx/wx.h"
|
|
|
|
#include "wx/wxprec.h"
|
|
|
|
|
|
|
|
#ifdef __BORLANDC__
|
|
|
|
#pragma hdrstop
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// for all others, include the necessary headers
|
|
|
|
#ifndef WX_PRECOMP
|
|
|
|
#include "wx/wx.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "life.h"
|
|
|
|
#include "game.h"
|
|
|
|
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
// LifeSamplesDialog
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class LifeSamplesDialog : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// ctor and dtor
|
|
|
|
LifeSamplesDialog(wxWindow *parent);
|
|
|
|
~LifeSamplesDialog();
|
|
|
|
|
|
|
|
// members
|
2000-07-15 19:51:35 +00:00
|
|
|
const LifePattern& GetPattern();
|
2000-01-08 18:27:19 +00:00
|
|
|
|
|
|
|
// event handlers
|
|
|
|
void OnListBox(wxCommandEvent &event);
|
|
|
|
|
|
|
|
private:
|
2004-05-25 11:20:37 +00:00
|
|
|
// any class wishing to process wxWidgets events must use this macro
|
2000-02-08 20:04:48 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
2000-01-08 18:27:19 +00:00
|
|
|
|
|
|
|
int m_value;
|
|
|
|
wxListBox *m_list;
|
|
|
|
wxTextCtrl *m_text;
|
|
|
|
LifeCanvas *m_canvas;
|
|
|
|
Life *m_life;
|
|
|
|
};
|
|
|
|
|
2000-02-08 20:04:48 +00:00
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
// LifeAboutDialog
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class LifeAboutDialog : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// ctor
|
|
|
|
LifeAboutDialog(wxWindow *parent);
|
|
|
|
};
|
|
|
|
|
2000-03-03 18:21:48 +00:00
|
|
|
|
2000-01-08 18:27:19 +00:00
|
|
|
#endif // _LIFE_DIALOGS_H_
|