[Classes] [Prev] [Next] [Methods]

CGlobalClassLib

Methods Index

Heritage
Description
Usage
Protected Data Members
Global Objects
Global Flags
Global Object ID Count
Friends
Public Methods
Access to Global Objects
Access to Global Flags
Update Event Methods
Global ID Count
Factory Manager Method
Protected Methods
Constructor and Destructor Methods
Factory Method

CGlobalClassLib


Heritage

Superclass: CNotifier

Subclasses: None


Description

CGlobalClassLib is a privately defined class that contains all variables that are global to the class library. A similar class, CGlobalUser, exists for user global variables. Once it is instantiated, the CGlobalClassLib object acts as a receptacle for several kinds of items: handles for global objects, global attributes of the application, and global flags.


Usage

A CGlobalClassLib object is automatically instantiated by CApplication. Any class in the XVT-Power++ application framework hierarchy has access to the CGlobalClassLib object through the G pointer provided by CObjectRWC.

Do not add any application-specific information to CGlobalClassLib. Use the CGlobalUser class for those purposes.


Protected Data Members

Global Objects

CDesktop* itsDesktop; The global desktop manager
CPrintMgr* itsPrintMgr; The global print manager
CApplication* itsApplication The application object
CResourceMgr* itsResourceMgr The resource manager for the application
CControllerMgr* itsControllerMgr The controller manager for the application
CWindow* itsHiddenWindow The hidden window used for calculating

Global Flags

BOOLEAN itIsTerminating; Whether the program is in termination state

Global Object ID Count

long itsIdCount;

Friends

friend class CApplication;
friend class CSwitchBoard;


Public Methods

Access to Global Objects

CDesktop* GetDesktop(void);
void SetDesktop(CDesktop* theNewDesktop);
CPrintMgr* GetPrintMgr(void);
void SetPrintMgr(CPrintMgr* theNewPrintManager);
CApplication* GetApplication(void);
CControllerMgr* GetControllerMgr(void);
CResourceMgr* GetResourceMgr(void);
CTaskWin* GetTaskWin(void);
CWindow* GetHiddenWindow(void);

Access to Global Flags

BOOLEAN IsTerminating(void);
void SetTerminate(BOOLEAN isTerminating);
CFont & GetSTDFont(void);
CRect & GetMAXRect(void);
CMenuItem & GetMENUSeparator(void);
CRegion & GetNULLCRegion(void);
CStringRW & GetNULLString(void);

Update Event Methods

CView* GetUpdateView(void);
void SetUpdateView(CView* theView);

Global ID Count

PWRID GetId(void);

Factory Manager Method

CFactoryMgr* GetFactoryMgr();

Protected Methods

Constructor and Destructor Methods

CGlobalClassLib(CApplication *theApplication);
virtual ~CGlobalClassLib(void);

Factory Method

void CreateFactoryObjects();


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.