00001 /* 00002 00003 Copyright (C) 2003 Razvan Cojocaru <razvanco@gmx.net> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 00019 */ 00020 00021 00022 #ifndef __CHMAPP_H_ 00023 #define __CHMAPP_H_ 00024 00025 #include <wx/wx.h> 00026 #include <wx/intl.h> 00027 00028 00029 // Forward declaration. 00030 class CHMFrame; 00031 00032 00038 00039 class CHMApp : public wxApp { 00040 00042 virtual bool OnInit(); 00043 00044 #ifdef __WXMAC__ 00045 00046 virtual void MacOpenFile(const wxString& filename); 00047 #endif 00048 00049 private: 00050 CHMFrame* _frame; 00051 wxLocale _loc; 00052 }; 00053 00054 00055 #endif // __CHMAPP_H_