]>
git.saurik.com Git - wxWidgets.git/blob - demos/forty/forty.h
d3a24d8cffa8939faeb927cbe312ed94c98209fc
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Forty Thieves patience game
4 // Author: Chris Breeze
8 // Copyright: (c) 1993-1998 Chris Breeze
9 // Licence: wxWindows licence
10 //---------------------------------------------------------------------------
11 // Last modified: 22nd July 1998 - ported to wxWidgets 2.0
12 /////////////////////////////////////////////////////////////////////////////
16 class FortyApp
: public wxApp
23 static const wxColour
& BackgroundColour();
24 static const wxColour
& TextColour();
25 static const wxBrush
& BackgroundBrush();
26 const wxString
& GetDir() const { return m_dir
; }
29 static wxColour
* m_backgroundColour
;
30 static wxColour
* m_textColour
;
31 static wxBrush
* m_backgroundBrush
;
38 class FortyFrame
: public wxFrame
41 FortyFrame(wxFrame
* frame
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
, bool largecards
);
42 virtual ~FortyFrame();
44 void OnCloseWindow(wxCloseEvent
& event
);
47 void NewGame(wxCommandEvent
& event
);
48 void Exit(wxCommandEvent
& event
);
49 void About(wxCommandEvent
& event
);
50 void Help(wxCommandEvent
& event
);
51 void Undo(wxCommandEvent
& event
);
52 void Redo(wxCommandEvent
& event
);
53 void Scores(wxCommandEvent
& event
);
54 void ToggleRightButtonUndo(wxCommandEvent
& event
);
55 void ToggleHelpingHand(wxCommandEvent
& event
);
56 void ToggleCardSize(wxCommandEvent
& event
);
58 FortyCanvas
* GetCanvas() { return m_canvas
; }
74 FortyCanvas
* m_canvas
;
77 //----------------------------------------------------------------------------
79 //----------------------------------------------------------------------------
81 class FortyAboutDialog
: public wxDialog
84 // constructors and destructors
85 FortyAboutDialog( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
86 const wxPoint
& pos
= wxDefaultPosition
,
87 const wxSize
& size
= wxDefaultSize
,
88 long style
= wxDEFAULT_DIALOG_STYLE
);
90 bool AddControls(wxWindow
* parent
);
96 #define ID_ABOUT_HTML_WINDOW 1000