A class to embody a GUI application.
![]() | ParameterTypes This enum describes the possible parameter list types that may be passed to the application. |
![]() | PApplication ( const char * manuf = "", const char * name = "", WORD majorVersion = 1, WORD minorVersion = 0, CodeStatus status = ReleaseCode, WORD buildNumber = 1 ) Create a new application instance. |
![]() | ~PApplication () Destroy the application |
![]() | Main () This is the windows application main event loop. |
![]() | Terminate () Terminate the application. |
![]() | Current () Get the current processes application object. |
![]() | PassMainLoop () This function is called in the main program execution loop for handling events. |
![]() | GetWindow () const Get the top level window for the application. |
![]() | GetParameterType () const Get the type of the parameter list. |
![]() | SetAboutMenuItemString ( const PString & newName ) Set the menu item string to be used in the system standard Äbout" menu item. |
![]() | GetAboutMenuItemString () const Get the menu item string to be used in the system standard Äbout" menu item. |
![]() | SetAboutDialogID ( PRESOURCE_ID newID ) Set the resource ID to be used in the OnAbout() function. |
![]() | GetAboutDialogID () const Get the resource ID to be used in the OnAbout() function. |
![]() | OnAbout () Function which gets called when the about menu item is selected. |
![]() | SetDefaultHelpFile ( const PFilePath & name ) Set the default help file for the application. |
![]() | GetDefaultHelpFile () const Set the default help file for the application. |
![]() | DoContextHelp ( const PString & context ) Execute context sensitive help with the specified context key and help file. |
![]() | DoBalloonHelp ( PInteractor * interactor, int action = 0 ) Do all logic regarding the inflation and deflation of balloon help. |
![]() | FindInteractor ( const PPoint & pt ) const Find the interactor that is at the specified absolute screen coordinates. |
![]() | GetScreenRect () const Get the size of the screen in pixels. |
![]() | GetPrimaryScreenSize () const Get the size of the primary screen in pixels. |
![]() | GetScreenResolution ( BOOL imperial = FALSE ) const Get the resolution for the screen. |
![]() | GetScreenColours () const Get the number of colours that can be simultaneously be displayed on the screen. |
![]() | GetScreenDepth () const Get the number of bits per pixel that the screen is capable of. |
![]() | GetCursorSize () const Get the maximum size of a cursor pixmap in screen pixels. |
![]() | GetIconSize () const Get the maximum size of an icon pixmap in screen pixels. |
![]() | GetTitleHeight () const Get the height of the caption part of a titled window or descendent. |
![]() | GetMenuHeight () const Get the height of the menu bar in PTopLevelWindow descendent classes. |
![]() | GetTitledBorderSize () const Get the size of the border for a titled window ie one that may be moved & resized. |
![]() | GetDlgBorderSize () const Get the size of the border for a modal dialog box. |
![]() | GetBorderSize () const Get the size of the border for interactors with borders other than modal dialogs and resizable windows. |
![]() | GetMainWindowSize () const Get the default size of a main (top level) window. |
![]() | GetTitledWindowSize () const Get the default size of all titled windows other than top level windows. |
![]() | GetHScrollHeight () const Get the size of the horizontal scroll bar. |
![]() | GetVScrollWidth () const Get the size of the vertical scroll bar. |
![]() | GetSystemFont () const Get the system font which is the default basis for interactor coordinate systems. |
![]() | GetBalloonFont () const Get the font which is the default basis for balloon help windows. |
![]() | GetDoubleClickRect () const Get the rectangle around a mouse click point that the second click must be within to be detected as a double click. |
![]() | GetDoubleClickTime () const Get the amount of milliseconds that must not have elapsed for the two mouse clicks to called a double click. |
![]() | GetWindowFgColour () const Get the default colour of all foreground items in interactors. |
![]() | GetWindowBkColour () const Get the default colour of all background items in interactors. |
![]() | GetActiveBorderColour () const Get the default colour of active titled window border. |
![]() | GetInactiveBorderColour () const Get the default colour of inactive titled window border. |
![]() | GetActiveTitleFgColour () const Get the default colour of the window title text in an active window. |
![]() | GetActiveTitleBkColour () const Get the default colour of the window title bar in an active window. |
![]() | GetInactiveTitleFgColour () const Get the default colour of the window title text in an inactive window. |
![]() | GetInactiveTitleBkColour () const Get the default colour of the window title bar in an inactive window. |
![]() | GetMenuFgColour () const Get the default colour of the text in menus or menu bar. |
![]() | GetMenuBkColour () const Get the default colour of the background in menus or menu bar. |
![]() | GetBalloonFgColour () const Get the default colour of the text in balloon help windows. |
![]() | GetBalloonBkColour () const Get the default colour of the background in balloon help windows. |
![]() | GetButtonFgColour () const Get the default colour of the foreground (text) in a standard 3 dimensional push button. |
![]() | GetButtonBkColour () const Get the default colour of the background (face) in a standard 3 dimensional push button. |
![]() | GetButtonLightingColour () const Get the default colour of the lighted edge in a standard 3 dimensional push button. |
![]() | GetButtonShadowColour () const Get the default colour of the shadowed edge in a standard 3 dimensional push button. |
![]() | GetScrollBarColour () const Get the default colour of the slider section of a scroll bar. |
![]() | GetHighlightFgColour () const Get the default colour of text that is highlighted. |
![]() | GetHighlightBkColour () const Get the default colour of the background for text that is highlighted. |
![]() | GetGrayTextColour () const Get the default colour of text that is disabled ("dimmed" or "grayed out"). |
![]() | DelayedCloseInteractor ( PInteractor * interactor ) Add the interactor to the list for delayed delete operation on close of interactor from within a callback member function. |
![]() | Overrides from class PProcess |
![]() | New functions for class |
![]() | mainWindow The main, top level window for the application. |
![]() | parameterType The type of the parameter list. |
A class to embody a GUI application. There is always exactly one instance of a descendednt of this class in an application. It should be possible to write the application so that this is the only global variable present. All other data is contained within this instance or its member variables or their member variables etc.
The default behaviour is to display the dialog specified by the
SetAboutDialogID() function. If this dialog has not been set
then a PSimpleDialog with the manufacturer, program name
and version is displayed.
A zero value for action indicates that the mouse was moved
over the indicated interactor and if it stops moving, a balloon popup
is to be displayed. A value for action of one indicates that current balloon
is to be set to the A value for action of two indicates that current balloon
is to be returned and no other action taken. This is an internal function and is not normally called by the
application.
This function is primarily for internal use by PWLib and is used by
the Close() function in the PTitledWindow and PDialog classes.
~PApplication()
Overrides from class PProcess
virtual void Main()
virtual void Terminate()
New functions for class
static PApplication& Current()
virtual void PassMainLoop()
PTopLevelWindow* GetWindow() const
enum ParameterTypes
OpenFiles
ParameterTypes GetParameterType() const
void SetAboutMenuItemString( const PString & newName )
PString GetAboutMenuItemString() const
void SetAboutDialogID( PRESOURCE_ID newID )
PRESOURCE_ID GetAboutDialogID() const
virtual void OnAbout()
void SetDefaultHelpFile( const PFilePath & name )
PFilePath GetDefaultHelpFile() const
void DoContextHelp( const PString & context )
PBalloon* DoBalloonHelp( PInteractor * interactor, int action = 0 )
action - Action to take in the balloon help system.PInteractor* FindInteractor( const PPoint & pt ) const
const PRect& GetScreenRect() const
const PDim& GetPrimaryScreenSize() const
const PDim& GetScreenResolution( BOOL imperial = FALSE ) const
long GetScreenColours() const
PDIMENSION GetScreenDepth() const
const PDim& GetCursorSize() const
const PDim& GetIconSize() const
PDIMENSION GetTitleHeight() const
PDIMENSION GetMenuHeight() const
const PDim& GetTitledBorderSize() const
const PDim& GetDlgBorderSize() const
const PDim& GetBorderSize() const
const PDim& GetMainWindowSize() const
const PDim& GetTitledWindowSize() const
PDIMENSION GetHScrollHeight() const
PDIMENSION GetVScrollWidth() const
const PFont& GetSystemFont() const
const PFont& GetBalloonFont() const
const PRect& GetDoubleClickRect() const
const PTimeInterval& GetDoubleClickTime() const
const PColour& GetWindowFgColour() const
const PColour& GetWindowBkColour() const
const PColour& GetActiveBorderColour() const
const PColour& GetInactiveBorderColour() const
const PColour& GetActiveTitleFgColour() const
const PColour& GetActiveTitleBkColour() const
const PColour& GetInactiveTitleFgColour() const
const PColour& GetInactiveTitleBkColour() const
const PColour& GetMenuFgColour() const
const PColour& GetMenuBkColour() const
const PColour& GetBalloonFgColour() const
const PColour& GetBalloonBkColour() const
const PColour& GetButtonFgColour() const
const PColour& GetButtonBkColour() const
const PColour& GetButtonLightingColour() const
const PColour& GetButtonShadowColour() const
const PColour& GetScrollBarColour() const
const PColour& GetHighlightFgColour() const
const PColour& GetHighlightBkColour() const
const PColour& GetGrayTextColour() const
void DelayedCloseInteractor( PInteractor * interactor )
PTopLevelWindow* mainWindow
ParameterTypes parameterType
Alphabetic index HTML hierarchy of classes or Java