| Methods Index |
CNotifierSubclasses: None
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.
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.
|
|
|
|
BOOLEAN
|
itIsTerminating;
| Whether the program is in termination state |
|
|
|
long
|
itsIdCount;
|
|
|
|
friend class
|
CApplication;
|
friend class
|
CSwitchBoard;
|
CDesktop* GetDesktop(void);
void SetDesktop(CDesktop* theNewDesktop);
theNewDesktop. Once you pass in the desktop, the CGlobalClassLib object assumes ownership of that object. This means that when the CGlobalClassLib object is deleted, it deletes the new desktop object as well.
CPrintMgr* GetPrintMgr(void);
CPrintMgr object. When you get this pointer, you should just use it and not delete it.
void SetPrintMgr(CPrintMgr* theNewPrintManager);
CPrintMgr object. Each application has a global print manager that takes care of the application's printing needs. This global object can be accessed through the CGlobalClassLib object. If you were to implement your own print manager, you would set the global print manager by calling SetPrintMgr. As is true for CGlobalClassLib::SetDesktop, if you actually set the print manager by passing a pointer to it, CGlobalClassLib assumes responsibility for this object and deletes it when the application terminates. The print manager should be deleted nowhere else.
CApplication* GetApplication(void);
CControllerMgr* GetControllerMgr(void);
CControllerMgr.
CResourceMgr* GetResourceMgr(void);
CResourceMgr.
CTaskWin* GetTaskWin(void);
CTaskWin.
CWindow* GetHiddenWindow(void);
BOOLEAN IsTerminating(void);
TRUE or FALSE depending on whether the application is undergoing a shutdown. This method is provided for some classes that must modify their behavior, or their response to events, when the application is terminating.
void SetTerminate(BOOLEAN isTerminating);
CFont & GetSTDFont(void);
STDFont macro.
CRect & GetMAXRect(void);
CRect which represents the largest region possible. This method should not be used directly. Instead, use the MAXRect macro.
CMenuItem & GetMENUSeparator(void);
CMenuItem that can be used as a separator when creating menus dynamically. This method should not be used directly. Instead,use the MENUSeparator macro.
CRegion & GetNULLCRegion(void);
NULLRegion macro.
CStringRW & GetNULLString(void);
NULL) string. This method should not be used directly. Instead, sue the NULLString macro.
CView* GetUpdateView(void);
NULL, the update event will be handled by the window as usual.
void SetUpdateView(CView* theView);
CGrid uses this method to restrict updates to a single cell.
PWRID GetId(void);
CGlobalClassLib, that is used to supply fresh, unique ID numbers to objects that require IDs. This method returns a unique ID each time it is called. During the execution session of an application, GetId will never return the same number twice.
CFactoryMgr* GetFactoryMgr();
CGlobalClassLib(CApplication *theApplication);
virtual ~CGlobalClassLib(void);
void CreateFactoryObjects();