]>
git.saurik.com Git - wxWidgets.git/blob - demos/life/dialogs.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Life! dialogs
4 // Author: Guillermo Rodriguez Garcia, <guille@iies.es>
8 // Copyright: (c) 2000, Guillermo Rodriguez Garcia
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _LIFE_DIALOGS_H_
13 #define _LIFE_DIALOGS_H_
16 #pragma interface "dialogs.h"
19 // for compilers that support precompilation, includes "wx/wx.h"
20 #include "wx/wxprec.h"
26 // for all others, include the necessary headers
31 #include "wx/spinctrl.h"
37 // sample configurations
38 extern LifeShape g_shapes
[];
41 // --------------------------------------------------------------------------
43 // --------------------------------------------------------------------------
45 class LifeNewGameDialog
: public wxDialog
49 LifeNewGameDialog(wxWindow
*parent
, int *w
, int *h
);
52 void OnOK(wxCommandEvent
& event
);
55 // any class wishing to process wxWindows events must use this macro
56 DECLARE_EVENT_TABLE();
60 wxSpinCtrl
*m_spinctrlw
;
61 wxSpinCtrl
*m_spinctrlh
;
64 // --------------------------------------------------------------------------
66 // --------------------------------------------------------------------------
68 class LifeSamplesDialog
: public wxDialog
72 LifeSamplesDialog(wxWindow
*parent
);
79 void OnListBox(wxCommandEvent
&event
);
82 // any class wishing to process wxWindows events must use this macro
83 DECLARE_EVENT_TABLE();
92 #endif // _LIFE_DIALOGS_H_