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

CBoss

Methods Index

Heritage
Description
Usage
Protected Data Members
Friends
Public Methods
Event Hooks
Broadcast Methods
Event Handler Methods
Coordinate Logical Units
Creation-Time Units
Sub-Object Management
Object ID Methods
Protected Methods
Constructor and Initializer Methods

CBoss


Heritage

Superclass: CNotifier

Subclasses: CApplication, CDocument, CView


Description

CBoss provides access to global objects and global data, and it ties in classes under a common memory manager. Also, CBoss provides basic internal functionality to the classes, such as the basis for the event and message passing structure. An abstract class, it is used mainly for purposes of inheritance. All classes in the XVT-Power++ application framework (consisting of view, document, and application branches) inherit from CBoss.


Usage

This class is never instantiated. Typically, CBoss is used through the CApplication class, which initializes and creates its static globals. You should never need to derive an object directly from CBoss, but you could do it to extend the class library.


Protected Data Members

CUnits* itsUnits; The logical coordinates used by the object
long itsId; The object's ID
static CUnits* itsCreationUnits;
short itsIsBroadcasting Flag used to determine if DoBroadcast is being invoked

Friends

friend class CApplication; Allow application to set G
friend class CUnits; Allow units to call UpdateUnits


Public Methods

Event Hooks

CBoss has three methods for event hooks that are located in objects within the application framework hierarchy. These are the three primary events that every application, document, and view object can handle.

virtual void DoCommand(long theCommand,
void* theData = NULL);
virtual void DoMenuCommand(MENU_TAG theMenuItem, BOOLEAN isShiftKey, BOOLEAN isControlKey);
virtual void ChangeFont(const CFont &theFont);

Broadcast Methods

virtual void BroadcastCommand(long theCommand, void* theData=NULL, BOOLEAN isDeep = FALSE);
virtual void BroadcastMenuCommand(
MENU_TAG theTag,
BOOLEAN isShift,
BOOLEAN isCtrl,
BOOLEAN isDeep = FALSE);
virtual void BroadcastTimer(long theTimerId, 
BOOLEAN isDeep = FALSE);
virtual void BroadcastUser(long theUserId, void* theData 
BOOLEAN isDeep = FALSE);
BOOLEAN IsBroadcasting() const;

Event Handler Methods

virtual void DoTimer(long theTimerId);
virtual void DoUser(long theUserId, void* theData);

Coordinate Logical Units

virtual CUnits* GetUnits(void) const;
virtual void SetUnits(CUnits* theCoordinateUnits);

Creation-Time Units

static CUnits* GetCreationUnits(void);
static void SetCreationUnits(CUnits* theUnits);

Sub-Object Management

virtual const RWOrdered* GetSubObjects(void) 
const = NULL;

Object ID Methods

virtual long GetId(void) const;
virtual void SetId(long theId = PWRIdBase);

Protected Methods

Constructor and Initializer Methods

CBoss (void);
CBoss (const CBoss& theBoss);
CBoss& operator = (const CBoss& theBoss);
virtual ~CBoss(void);
BOOLEAN IBoss(CGlobalUser *theGlobalUser);
virtual void UpdateUnits(CUnits* theUnits);
BOOLEAN IBoss(CGlobalClassLib *theGlobalClassLib);


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

support@xvt.com


Visit our online help desk for tech support

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