Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_WindowManager Class Reference

A singleton class to manage windows in CPLAT.

Inheritance diagram for CP_WindowManager:

CP_NoCopy CP_SigSlot::CP_SlotObject List of all members.

Public Member Functions

void EnableWindowsForDialog (CP_Window *inDialogWindow, bool inEnable)
void disconnect_all ()
void signal_connect (CP_Signal *inSender)
void signal_disconnect (CP_Signal *inSender)
Constructor / Destructor
 CP_WindowManager ()
 Constructor.
virtual ~CP_WindowManager () throw ()
 Destructor.
Desktop
SInt16 GetDesktopWidth ()
SInt16 GetDesktopHeight ()
CP_Rect GetAvailableWindowPositioningArea ()
Misc
CP_Window_ImpGetNamedWindow (const CP_String &inTitle)
void RefreshAll ()
Positioning
void Reposition (CP_Window *inWindow, CP_Window *inParent, SInt16 inMethod)
SInt32 GetIndexOfWindow (CP_Window_Imp *inWindow)
Regular Windows
CP_Window_ImpGetTopRegularWindow ()
CP_Window_ImpGetNthRegularWindow (SInt16 inIndex)
Window Mapping
void AddWindow (CP_Window_Imp *inCPWindow, OSWindow inOSWindow)
CP_Window_ImpGetWindow (OSWindow inOSWindow)
void RemoveOSWindow (OSWindow inOSWindow)
SInt16 GetNumberWindows ()
void CloseAll ()
Windows
CP_Window_ImpGetNthWindow (SInt16 inIndex)

Static Public Member Functions

Instance
static CP_WindowManagerInstance ()

Protected Attributes

CP_Window_MapfWindowMap
CP_WindowLayer_ListfRegularLayer
CP_WindowLayer_ListfModalLayer
CP_WindowLayer_ListfFloatingLayer
CP_Point fStackOffset
CP_Point fNextStackPosn
sender_set fSenders

Static Protected Attributes

static CP_WindowManagerfsInstance = NULL

Constructor & Destructor Documentation

CP_WindowManager::CP_WindowManager  ) 
 

Constructor.

CP_WindowManager::~CP_WindowManager  )  throw () [virtual]
 

Destructor.


Member Function Documentation

CP_WindowManager * CP_WindowManager::Instance  )  [static]
 

Returns the single instance of this object.

Exceptions:
none 
Returns:
CP_WindowManager Returns the single instance of this class.

SInt16 CP_WindowManager::GetDesktopWidth  ) 
 

Returns the width of the desktop area available for windows.

Exceptions:
none 
Returns:
SInt16 Width of the desktop.

SInt16 CP_WindowManager::GetDesktopHeight  ) 
 

Returns the height of the desktop area available for windows.

Exceptions:
none 
Returns:
SInt16 Height of the desktop.

CP_Rect CP_WindowManager::GetAvailableWindowPositioningArea  ) 
 

CP_Window_Imp * CP_WindowManager::GetNamedWindow const CP_String inTitle  ) 
 

void CP_WindowManager::RefreshAll  ) 
 

void CP_WindowManager::Reposition CP_Window inWindow,
CP_Window inParent,
SInt16  inMethod
 

SInt32 CP_WindowManager::GetIndexOfWindow CP_Window_Imp inWindow  ) 
 

CP_Window_Imp * CP_WindowManager::GetTopRegularWindow  ) 
 

CP_Window_Imp * CP_WindowManager::GetNthRegularWindow SInt16  inIndex  ) 
 

void CP_WindowManager::AddWindow CP_Window_Imp inCPWindow,
OSWindow  inOSWindow
 

CP_Window_Imp * CP_WindowManager::GetWindow OSWindow  inOSWindow  ) 
 

void CP_WindowManager::RemoveOSWindow OSWindow  inOSWindow  ) 
 

SInt16 CP_WindowManager::GetNumberWindows  ) 
 

void CP_WindowManager::CloseAll  ) 
 

Close all of the windows.

Exceptions:
none 
Returns:
void

CP_Window_Imp * CP_WindowManager::GetNthWindow SInt16  inIndex  ) 
 

void CP_WindowManager::EnableWindowsForDialog CP_Window inDialogWindow,
bool  inEnable
 

The next position to stack a window at

void CP_SigSlot::CP_SlotObject::disconnect_all  )  [inherited]
 

void CP_SigSlot::CP_SlotObject::signal_connect CP_Signal inSender  )  [inherited]
 

void CP_SigSlot::CP_SlotObject::signal_disconnect CP_Signal inSender  )  [inherited]
 


Member Data Documentation

CPLAT_Begin_Namespace_CPLAT CP_WindowManager * CP_WindowManager::fsInstance = NULL [static, protected]
 

CP_Window_Map* CP_WindowManager::fWindowMap [protected]
 

Single instance of this class.

CP_WindowLayer_List* CP_WindowManager::fRegularLayer [protected]
 

CP_WindowLayer_List* CP_WindowManager::fModalLayer [protected]
 

CP_Windows in the regular window layer

CP_WindowLayer_List* CP_WindowManager::fFloatingLayer [protected]
 

CP_Windows in the modal window layer

CP_Point CP_WindowManager::fStackOffset [protected]
 

CP_Windows in the floating window layer

CP_Point CP_WindowManager::fNextStackPosn [protected]
 

Amount to offset each when when stacking.

sender_set CP_SigSlot::CP_SlotObject::fSenders [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:02:35 2005 for CPLAT by  doxygen 1.4.0