source: trunk/OpenYahtzee/src/openyahtzee.cpp @ 17

Last change on this file since 17 was 17, checked in by guyru, 7 years ago

several bug fixes to the high score table

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1// $Header$
2/***************************************************************************
3 *   Copyright (C) 2006 by Guy Rutenberg   *
4 *   guyrutenberg@gmail.com   *
5 *                                                                         *
6 *   This program is free software; you can redistribute it and/or modify  *
7 *   it under the terms of the GNU General Public License as published by  *
8 *   the Free Software Foundation; either version 2 of the License, or     *
9 *   (at your option) any later version.                                   *
10 *                                                                         *
11 *   This program is distributed in the hope that it will be useful,       *
12 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14 *   GNU General Public License for more details.                          *
15 *                                                                         *
16 *   You should have received a copy of the GNU General Public License     *
17 *   along with this program; if not, write to the                         *
18 *   Free Software Foundation, Inc.,                                       *
19 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
20 ***************************************************************************/
21
22
23// This is the main source file for the project. It includes the creation of the main window
24// but all other stuff is done on other files.
25
26
27#include "wx/wx.h"
28#include "MainFrame.h"
29
30
31
32
33// Declare the application class
34class MyApp : public wxApp
35{
36public:
37        // Called on application startup
38        virtual bool OnInit();
39};
40
41
42
43        // Implements MyApp& GetApp()
44        DECLARE_APP(MyApp)
45        // Give wxWidgets the means to create a MyApp object
46        IMPLEMENT_APP(MyApp)
47        // Initialize the application
48
49bool MyApp::OnInit()
50{
51
52        // Create the main application window
53        MainFrame *frame = new MainFrame(wxT("OpenYahtzee"), wxDefaultSize, wxDEFAULT_FRAME_STYLE);
54       
55        //Show it
56        frame->Show(true);     
57        return true;
58}
Note: See TracBrowser for help on using the repository browser.