Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

the_app Class Reference

The main Plucker Desktop application class: handles OnInit(), OnExit() of the program. More...

#include <plucker-desktop.h>

Inheritance diagram for the_app:

wxApp List of all members.

Public Methods

virtual bool  OnInit ()
  Override wxApp base class OnInit() function for startup code.

virtual int  OnExit ()
  Override base class wxApp's OnExit() function.

void  set_application_return_code (int return_code)
  Set the return code returned by application when it terminates.

wxLocale *  get_application_locale ()
  Accessor. Get a pointer to the locale (tranlation) for the application.


Protected Attributes

wxLocale  m_locale
  The locale (translation) the application will be using.


Detailed Description

The main Plucker Desktop application class: handles OnInit(), OnExit() of the program.

Member Function Documentation

wxLocale* the_app::get_application_locale   [inline]
 

Accessor. Get a pointer to the locale (tranlation) for the application.

Parameters:
new_locale  The new locale to use.
virtual int the_app::OnExit   [virtual]
 

Override base class wxApp's OnExit() function.

This code is executed when the application is about to terminate. This is the place to call functions that delete globals, etc.

Returns :
Any arbitrary integer that is desired. This application returns 0, since that is usually what applications return when they exit successfully.
virtual bool the_app::OnInit   [virtual]
 

Override wxApp base class OnInit() function for startup code.

This is the 'Main program' equivalent: the program execution "starts" here. The function is called on application startup and is a good place for the app initialization [doing it here and not in the constructor allows to have an error

Returns :
if OnInit() returns false, the application terminates].