Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

cksums.hpp

Go to the documentation of this file.
00001 /* 00002 * wxChecksums 00003 * Copyright (C) 2003-2004 Julien Couot 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 00020 /** 00021 * \file cksums.hpp 00022 * Application definition. 00023 */ 00024 00025 00026 #ifndef INC_CKSUMS_HPP 00027 #define INC_CKSUMS_HPP 00028 00029 00030 //--------------------------------------------------------------------------- 00031 // For compilers that support precompilation, includes "wx.h". 00032 #include <wx/wxprec.h> 00033 00034 #ifdef __BORLANDC__ 00035 #pragma hdrstop 00036 #endif 00037 00038 #ifndef WX_PRECOMP 00039 // Include your minimal set of headers here, or wx.h 00040 #include <wx/wx.h> 00041 #endif 00042 //#include <wx/snglinst.h> 00043 //--------------------------------------------------------------------------- 00044 00045 00046 /** 00047 * The application class. Needed by wxWidgets. 00048 * 00049 * wxWidgets defines the <CODE>main</CODE> fonction. 00050 */ 00051 class CkSumsApp : public wxApp 00052 { 00053 public: 00054 // Application initialization. 00055 virtual bool OnInit(); 00056 00057 // Application cleanup method. 00058 virtual int OnExit(); 00059 00060 // this one is called from OnInit() to add all supported options 00061 // to the given parser 00062 virtual void OnInitCmdLine(wxCmdLineParser& parser); 00063 00064 // called after successfully parsing the command line, return TRUE 00065 // to continue and FALSE to exit 00066 virtual bool OnCmdLineParsed(wxCmdLineParser& parser); 00067 00068 // called if "--help" option was specified, return TRUE to continue 00069 // and FALSE to exit 00070 virtual bool OnCmdLineHelp(wxCmdLineParser& parser); 00071 00072 // called if incorrect command line options were given, return 00073 // FALSE to abort and TRUE to continue 00074 virtual bool OnCmdLineError(wxCmdLineParser& parser); 00075 00076 // Initializes the locale 00077 void InitLocale(); 00078 00079 // Cleans up the resources taken by the instance. 00080 void CleanUpAppResources(); 00081 00082 protected: 00083 wxLocale appLocale; ///< The application's locale. 00084 }; 00085 //--------------------------------------------------------------------------- 00086 00087 DECLARE_APP(CkSumsApp) 00088 //--------------------------------------------------------------------------- 00089 00090 00091 /** 00092 * \mainpage 00093 * \section description Description 00094 * 00095 * wxChecksums is a program that computes and verifies checksums. 00096 * 00097 * This documention is for programmers only. If you want to know how use 00098 * wxChecksums see the manual. 00099 * 00100 * \section license License 00101 * 00102 * This program is free software; you can redistribute it and/or 00103 * modify it under the terms of the GNU General Public License 00104 * as published by the Free Software Foundation; either version 2 00105 * of the License, or (at your option) any later version. 00106 * 00107 * This program is distributed in the hope that it will be useful, 00108 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00109 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00110 * GNU General Public License for more details. 00111 * 00112 * You should have received a copy of the GNU General Public License 00113 * along with this program; if not, write to the Free Software 00114 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00115 */ 00116 00117 00118 #endif // INC_CKSUMS_HPP

Generated on Sun May 30 13:37:44 2004 for wxChecksums by doxygen 1.3.7