X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/010216e3bc0fc54595d59b6fa4ceec220aff3632..b836b6ea08c2cc7a22f1d44d88f0ce92ecc8a5a3:/demos/forty/forty.h?ds=inline diff --git a/demos/forty/forty.h b/demos/forty/forty.h index 3663738bc3..91b847749d 100644 --- a/demos/forty/forty.h +++ b/demos/forty/forty.h @@ -16,26 +16,30 @@ class FortyApp: public wxApp { public: - FortyApp(); + FortyApp(){}; ~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,7 +83,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); - + bool AddControls(wxWindow* parent); private: