App.hh

Go to the documentation of this file.
00001 /*
00002  * Super Metroid SRAM Editor
00003  * Copyright (C) 2005 emuWorks
00004  * http://games.technoplaza.net/
00005  *
00006  * This file is part of Super Metroid SRAM Editor.
00007  *
00008  * Super Metroid SRAM Editor is free software; you can redistribute it and/or
00009  * modify 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  * Super Metroid SRAM Editor 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 Super Metroid SRAM Editor; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00021  */
00022  
00023 // $Id: App.hh,v 1.2 2005/10/15 03:13:48 technoplaza Exp $
00024 
00025 #ifndef _SMSE_APP_HH_
00026 #define _SMSE_APP_HH_
00027 
00028 /// a namespace for all the classes used by smse
00029 namespace smse {
00030     class Frame;
00031     
00032     /// The application class and starting point.
00033     class App : public wxApp {
00034         DECLARE_CLASS(App)
00035         
00036     private:
00037         Frame *frame;
00038         
00039     public:
00040         /**
00041          * Called to initialize the application.
00042          *
00043          * @return true on successful initialization; false otherwise.
00044          */
00045         virtual bool OnInit();
00046         
00047         /**
00048          * Called to run the application.
00049          *
00050          * @return The exit code.
00051          */
00052         virtual int OnRun();
00053     };
00054     
00055     DECLARE_APP(App)
00056 }
00057 
00058 #endif
00059 

Generated on Thu Feb 22 21:33:24 2007 for Super Metroid SRAM Editor by  doxygen 1.5.1-p1