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

CkSumsApp Class Reference

The application class. More...

#include <cksums.hpp>

List of all members.

Public Member Functions

void CleanUpAppResources ()
 Cleans up the ressources taken by the instance.

void InitLocale ()
 Initializes the locale.

virtual bool OnCmdLineError (wxCmdLineParser &parser)
 Called when command line parsing fails.

virtual bool OnCmdLineHelp (wxCmdLineParser &parser)
 Called if -h or --help option was specified.

virtual bool OnCmdLineParsed (wxCmdLineParser &parser)
 Called after successfully parsing the command line.

virtual int OnExit ()
 Application cleanup method.

virtual bool OnInit ()
 Application initialization.

virtual void OnInitCmdLine (wxCmdLineParser &parser)
 Adds all supported options to the given parser.


Protected Attributes

wxLocale appLocale
 The application's locale.


Detailed Description

The application class.

Needed by wxWidgets.

wxWidgets defines the main fonction.

Definition at line 51 of file cksums.hpp.


Member Function Documentation

void CkSumsApp::CleanUpAppResources  ) 
 

Cleans up the ressources taken by the instance.

Call it before quitting the application.

Definition at line 156 of file cksums.cpp.

References AppPrefs::cleanupGlobal().

Referenced by OnExit().

void CkSumsApp::InitLocale  ) 
 

Initializes the locale.

Definition at line 273 of file cksums.cpp.

References appLocale, AppPrefs::get(), AppPrefs::readString(), and Languages::setLocale().

bool CkSumsApp::OnCmdLineError wxCmdLineParser &  parser  )  [virtual]
 

Called when command line parsing fails.

Parameters:
parser The command line parser which was used to parse the command line.
Returns:
true to continue normal execution or false to return false from wxApp::OnInit thus terminating the program.

Definition at line 261 of file cksums.cpp.

References OnCmdLineError().

Referenced by OnCmdLineError().

bool CkSumsApp::OnCmdLineHelp wxCmdLineParser &  parser  )  [virtual]
 

Called if -h or --help option was specified.

Called by wxApp::OnInit when the help option -h or --help was specified on the command line. The processing of -h and --help is made by wxApp::OnInitCmdLine which is called by CkSumsApp::OnInitCmdLine.

Parameters:
parser The command line parser which was used to parse the command line.
Returns:
true to continue normal execution or false to return false from wxApp::OnInit thus terminating the program.

Definition at line 241 of file cksums.cpp.

References OnCmdLineHelp().

Referenced by OnCmdLineHelp().

bool CkSumsApp::OnCmdLineParsed wxCmdLineParser &  parser  )  [virtual]
 

Called after successfully parsing the command line.

Parameters:
parser The command line parser which was used to parse the command line.
Returns:
true to continue normal execution or false to return false from wxApp::OnInit thus terminating the program.

Definition at line 213 of file cksums.cpp.

References OnCmdLineParsed().

Referenced by OnCmdLineParsed().

int CkSumsApp::OnExit  )  [virtual]
 

Application cleanup method.

Provide this member function for any processing which needs to be done as the application is about to exit. OnExit is called after destroying all application windows and controls, but before wxWidgets cleanup.

Returns:
the application return code.

Definition at line 142 of file cksums.cpp.

References CleanUpAppResources().

bool CkSumsApp::OnInit  )  [virtual]
 

Application initialization.

This method is called on application startup. If false is return the application stops immediatly.

Returns:
true if initialization was successfully done. false otherwise.

Definition at line 73 of file cksums.cpp.

References APP_AUTHOR, APP_NAME, CmdLineOptions::cleanup(), frmSums::closeAfterInitFromCmdLine(), SumFileFactory::initialize(), frmSums::initializeFromCmdLine(), and BytesDisplayer::initStatic().

void CkSumsApp::OnInitCmdLine wxCmdLineParser &  parser  )  [virtual]
 

Adds all supported options to the given parser.

Called from wxApp::OnInit and may be used to initialize the parser with the command line options for this application. The base class versions adds support for a few standard options only.

Parameters:
parser The command line parser which be used to parse the command line.

Definition at line 182 of file cksums.cpp.

References getAppName(), and OnInitCmdLine().

Referenced by OnInitCmdLine().


Member Data Documentation

wxLocale CkSumsApp::appLocale [protected]
 

The application's locale.

Definition at line 83 of file cksums.hpp.

Referenced by InitLocale().


The documentation for this class was generated from the following files:
Generated on Sun May 30 13:38:03 2004 for wxChecksums by doxygen 1.3.7