00001 /*************************************************************************** 00002 app.h 00003 ------------------- 00004 begin : 2004-05-30 10:30 00005 copyright : (C) 2004-2005 by Michael Menne 00006 email : menne@users.sourceforge.net 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 This program is free software; you can redistribute it and/or 00011 modify it under the terms of the GNU General Public License 00012 as published by the Free Software Foundation; either version 2 00013 of the License, or (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License 00021 along with this program; if not, write to the Free Software 00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 ***************************************************************************/ 00024 00025 #ifndef WDSMAP_APP_H 00026 #define WDSMAP_APP_H 00027 00028 #include "global.h" 00029 00030 namespace WDS 00031 { 00032 00033 // Forward declaration 00034 class CFrame; 00035 class CMap; 00036 class CProfile; 00037 class CProfileManager; 00038 00042 class CApp : public wxApp 00043 { 00044 public: 00045 virtual bool OnInit(); 00046 virtual int OnExit(); 00047 00048 CFrame *GetFrame(); 00049 CMap *GetMap(); 00050 CProfileManager *GetProfileManager(); 00051 00052 protected: 00053 CFrame *m_pFrame; 00054 CProfileManager *m_pProfileManager; 00055 00056 wxFileConfig *m_pConfig; 00057 }; 00058 00059 DECLARE_APP(CApp) 00060 00061 } 00062 00063 #endif // WDSMAP_APP_H 00064 00065 // kate: space-indent off; tab-width 4; replace-tabs off;