]> git.saurik.com Git - wxWidgets.git/blame - demos/forty/forty.h
reverted Julian's unintentional breakage of wxChoice
[wxWidgets.git] / demos / forty / forty.h
CommitLineData
63cafd27
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: forty.h
3// Purpose: Forty Thieves patience game
4// Author: Chris Breeze
5// Modified by:
6// Created: 21/07/97
7// RCS-ID: $Id$
8// Copyright: (c) 1993-1998 Chris Breeze
9// Licence: wxWindows licence
10//---------------------------------------------------------------------------
11// Last modified: 22nd July 1998 - ported to wxWindows 2.0
12/////////////////////////////////////////////////////////////////////////////
13#ifndef _FORTY_H_
14#define _FORTY_H_
15
16class FortyApp: public wxApp
17{
18public:
19 bool OnInit();
20
79490c3d
VZ
21 static const wxColour& BackgroundColour();
22 static const wxColour& TextColour();
23 static const wxBrush& BackgroundBrush();
63cafd27
JS
24
25private:
26 static wxColour* m_backgroundColour;
27 static wxColour* m_textColour;
28 static wxBrush* m_backgroundBrush;
29};
30
868741e9
JS
31class FortyCanvas;
32class FortyFrame: public wxFrame
33{
34public:
35 FortyFrame(wxFrame* frame, char* title, int x, int y, int w, int h,bool largecards);
36 virtual ~FortyFrame();
37
38 void OnCloseWindow(wxCloseEvent& event);
39
40 // Menu callbacks
41 void NewGame(wxCommandEvent& event);
42 void Exit(wxCommandEvent& event);
43 void About(wxCommandEvent& event);
44 void Undo(wxCommandEvent& event);
45 void Redo(wxCommandEvent& event);
46 void Scores(wxCommandEvent& event);
47 void ToggleRightButtonUndo(wxCommandEvent& event);
48 void ToggleHelpingHand(wxCommandEvent& event);
49 void ToggleCardSize(wxCommandEvent& event);
50
51 FortyCanvas* GetCanvas() { return m_canvas; }
52
53 DECLARE_EVENT_TABLE()
54
55private:
56 enum MenuCommands { NEW_GAME = 10, SCORES, EXIT,
57 UNDO, REDO,
58 RIGHT_BUTTON_UNDO, HELPING_HAND, LARGE_CARDS,
59 ABOUT };
60
61 wxMenuBar* m_menuBar;
62 FortyCanvas* m_canvas;
63};
64
63cafd27 65#endif