git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
/////////////////////////////////////////////////////////////////////////////
 | 
						|
// 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_
 | 
						|
 | 
						|
#include "life.h"
 | 
						|
#include "game.h"
 | 
						|
 | 
						|
 | 
						|
// --------------------------------------------------------------------------
 | 
						|
// LifeSamplesDialog
 | 
						|
// --------------------------------------------------------------------------
 | 
						|
 | 
						|
class LifeSamplesDialog : public wxDialog
 | 
						|
{
 | 
						|
public:
 | 
						|
    // ctor and dtor
 | 
						|
    LifeSamplesDialog(wxWindow *parent);
 | 
						|
    virtual ~LifeSamplesDialog();
 | 
						|
 | 
						|
    // members
 | 
						|
    const LifePattern& GetPattern();
 | 
						|
 | 
						|
    // event handlers
 | 
						|
    void OnListBox(wxCommandEvent &event);
 | 
						|
 | 
						|
private:
 | 
						|
    // any class wishing to process wxWidgets events must use this macro
 | 
						|
    DECLARE_EVENT_TABLE()
 | 
						|
 | 
						|
    int         m_value;
 | 
						|
    wxListBox  *m_list;
 | 
						|
    wxTextCtrl *m_text;
 | 
						|
    LifeCanvas *m_canvas;
 | 
						|
    Life       *m_life;
 | 
						|
};
 | 
						|
 | 
						|
// --------------------------------------------------------------------------
 | 
						|
// LifeAboutDialog
 | 
						|
// --------------------------------------------------------------------------
 | 
						|
 | 
						|
class LifeAboutDialog : public wxDialog
 | 
						|
{
 | 
						|
public:
 | 
						|
    // ctor
 | 
						|
    LifeAboutDialog(wxWindow *parent);
 | 
						|
};
 | 
						|
 | 
						|
 | 
						|
#endif  // _LIFE_DIALOGS_H_
 |