]>
git.saurik.com Git - wxWidgets.git/blob - demos/forty/forty.h
ee9c132358df7fe15ff2a1cfb34155cd409e4784
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Forty Thieves patience game
4 // Author: Chris Breeze
7 // Copyright: (c) 1993-1998 Chris Breeze
8 // Licence: wxWindows licence
9 //---------------------------------------------------------------------------
10 // Last modified: 22nd July 1998 - ported to wxWidgets 2.0
11 /////////////////////////////////////////////////////////////////////////////
15 class FortyApp
: public wxApp
22 static const wxColour
& BackgroundColour();
23 static const wxColour
& TextColour();
24 static const wxBrush
& BackgroundBrush();
25 const wxString
& GetHelpFile() const { return m_helpFile
; }
28 static wxColour
* m_backgroundColour
;
29 static wxColour
* m_textColour
;
30 static wxBrush
* m_backgroundBrush
;
37 class FortyFrame
: public wxFrame
40 FortyFrame(wxFrame
* frame
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
, bool largecards
);
41 virtual ~FortyFrame(){};
43 void OnCloseWindow(wxCloseEvent
& event
);
46 void NewGame(wxCommandEvent
& event
);
47 void Exit(wxCommandEvent
& event
);
48 void About(wxCommandEvent
& event
);
49 void Help(wxCommandEvent
& event
);
50 void Undo(wxCommandEvent
& event
);
51 void Redo(wxCommandEvent
& event
);
52 void Scores(wxCommandEvent
& event
);
53 void ToggleRightButtonUndo(wxCommandEvent
& event
);
54 void ToggleHelpingHand(wxCommandEvent
& event
);
55 void ToggleCardSize(wxCommandEvent
& event
);
57 FortyCanvas
* GetCanvas() { return m_canvas
; }
70 FortyCanvas
* m_canvas
;
73 //----------------------------------------------------------------------------
75 //----------------------------------------------------------------------------
77 class FortyAboutDialog
: public wxDialog
80 // constructors and destructors
81 FortyAboutDialog( wxWindow
*parent
, wxWindowID id
, const wxString
&title
,
82 const wxPoint
& pos
= wxDefaultPosition
,
83 const wxSize
& size
= wxDefaultSize
,
84 long style
= wxDEFAULT_DIALOG_STYLE
);
86 bool AddControls(wxWindow
* parent
);
89 #define ID_ABOUT_HTML_WINDOW 1000