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);
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
};
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE );
-
+
bool AddControls(wxWindow* parent);
private: