source/GenApp.cc

Go to the documentation of this file.
00001 /*
00002  * Zelda II SRAM Editor
00003  * Copyright (C) 2004-2005,2007 emuWorks
00004  * http://games.technoplaza.net/
00005  *
00006  * This file is part of z2se.
00007  *
00008  * z2se is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * z2se is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with z2se; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00021  */
00022 
00023 // $Id: GenApp.cc,v 1.5 2007/02/25 08:32:40 technoplaza Exp $
00024 
00025 #ifdef HAVE_CONFIG_H
00026     #include <config.h>
00027 #endif
00028 
00029 #include <wx/wxprec.h>
00030 
00031 #ifndef WX_PRECOMP
00032    #include <wx/wx.h>
00033 #endif
00034 
00035 #include <wx/xrc/xmlres.h>
00036 
00037 #include "GenApp.hh"
00038 #include "view/MainFrame.hh"
00039 
00040 using namespace emuWorks;
00041 
00042 const wxString *GenApp::APP_NAME =
00043     new wxString(wxT("z2se"));
00044     
00045 const wxString *GenApp::APP_FULL_NAME =
00046     new wxString(wxT("Zelda II SRAM Editor"));
00047 
00048 const wxString *GenApp::APP_VERSION =
00049     new wxString(wxT("1.1"));
00050 
00051 const wxString *GenApp::APP_COPYRIGHT =
00052     new wxString(wxT("Copyright (C) 2004-2005,2007 emuWorks"));
00053 
00054 const wxString *GenApp::APP_URL =
00055     new wxString(wxT("http://games.technoplaza.net/"));
00056 
00057 // prototype for InitXmlResource function
00058 void InitXmlResource();
00059 
00060 bool GenApp::OnInit() {
00061     // initialize the XRC resources
00062     wxXmlResource::Get()->InitAllHandlers();
00063     InitXmlResource();
00064     
00065     MainFrame *frame = new MainFrame;
00066     frame->Show(true);
00067     
00068     return true;
00069 }
00070 
00071 IMPLEMENT_CLASS(GenApp, wxApp)
00072 IMPLEMENT_APP(GenApp)
00073 

Generated on Sun Feb 25 03:34:44 2007 for Zelda II SRAM Editor by  doxygen 1.5.1-p1