initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
57
libs/wxWidgets-3.3.1/demos/life/dialogs.h
Normal file
57
libs/wxWidgets-3.3.1/demos/life/dialogs.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dialogs.h
|
||||
// Purpose: Life! dialogs
|
||||
// Author: Guillermo Rodriguez Garcia, <guille@iies.es>
|
||||
// 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);
|
||||
virtual ~LifeSamplesDialog();
|
||||
|
||||
// members
|
||||
const LifePattern& GetPattern();
|
||||
|
||||
// event handlers
|
||||
void OnListBox(wxCommandEvent &event);
|
||||
|
||||
private:
|
||||
// any class wishing to process wxWidgets events must use this macro
|
||||
wxDECLARE_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_
|
||||
Reference in New Issue
Block a user