X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/010216e3bc0fc54595d59b6fa4ceec220aff3632..928e79b665fc9ad569655ced3168195b39bd04b6:/demos/forty/forty.h diff --git a/demos/forty/forty.h b/demos/forty/forty.h index 3663738bc3..e1e9eb7e75 100644 --- a/demos/forty/forty.h +++ b/demos/forty/forty.h @@ -16,26 +16,30 @@ class FortyApp: public wxApp { public: - FortyApp(); - ~FortyApp(); + FortyApp(){} + virtual ~FortyApp(); bool OnInit(); static const wxColour& BackgroundColour(); static const wxColour& TextColour(); static const wxBrush& BackgroundBrush(); + const wxString& GetHelpFile() const { return m_helpFile; } private: static wxColour* m_backgroundColour; static wxColour* m_textColour; static wxBrush* m_backgroundBrush; + wxString m_helpFile; }; +DECLARE_APP(FortyApp) + class FortyCanvas; class FortyFrame: public wxFrame { public: - FortyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, const wxSize& size, bool largecards); - virtual ~FortyFrame(); + FortyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, const wxSize& size, bool largecards); + virtual ~FortyFrame(){}; void OnCloseWindow(wxCloseEvent& event); @@ -56,13 +60,10 @@ public: DECLARE_EVENT_TABLE() private: - enum MenuCommands { - NEW_GAME = 10, - SCORES, - UNDO, - REDO, - RIGHT_BUTTON_UNDO, - HELPING_HAND, + enum MenuCommands { + SCORES = 10, + RIGHT_BUTTON_UNDO, + HELPING_HAND, LARGE_CARDS }; @@ -82,11 +83,8 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); - - bool AddControls(wxWindow* parent); -private: - DECLARE_EVENT_TABLE() + bool AddControls(wxWindow* parent); }; #define ID_ABOUT_HTML_WINDOW 1000