dialogs.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: dialogs.h
  3. // Purpose: Life! dialogs
  4. // Author: Guillermo Rodriguez Garcia, <guille@iies.es>
  5. // Modified by:
  6. // Created: Jan/2000
  7. // Copyright: (c) 2000, Guillermo Rodriguez Garcia
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _LIFE_DIALOGS_H_
  11. #define _LIFE_DIALOGS_H_
  12. #include "life.h"
  13. #include "game.h"
  14. // --------------------------------------------------------------------------
  15. // LifeSamplesDialog
  16. // --------------------------------------------------------------------------
  17. class LifeSamplesDialog : public wxDialog
  18. {
  19. public:
  20. // ctor and dtor
  21. LifeSamplesDialog(wxWindow *parent);
  22. virtual ~LifeSamplesDialog();
  23. // members
  24. const LifePattern& GetPattern();
  25. // event handlers
  26. void OnListBox(wxCommandEvent &event);
  27. private:
  28. // any class wishing to process wxWidgets events must use this macro
  29. DECLARE_EVENT_TABLE()
  30. int m_value;
  31. wxListBox *m_list;
  32. wxTextCtrl *m_text;
  33. LifeCanvas *m_canvas;
  34. Life *m_life;
  35. };
  36. // --------------------------------------------------------------------------
  37. // LifeAboutDialog
  38. // --------------------------------------------------------------------------
  39. class LifeAboutDialog : public wxDialog
  40. {
  41. public:
  42. // ctor
  43. LifeAboutDialog(wxWindow *parent);
  44. };
  45. #endif // _LIFE_DIALOGS_H_