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

CP_EventHandler_Imp_MDIFrame Class Reference

Inheritance diagram for CP_EventHandler_Imp_MDIFrame:

CP_EventHandler CP_EventHandler_Imp CP_SigSlot::CP_SlotObject CP_NoCopy CP_NoCopy CP_NoCopy List of all members.

Public Member Functions

void disconnect_all ()
void signal_connect (CP_Signal *inSender)
void signal_disconnect (CP_Signal *inSender)
Events
void Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow=NULL)
void Remove (UInt32 inEventClass, UInt32 inEventKind)
bool HasHandler (UInt32 inEventClass, UInt32 inEventKind)
CP_EventSignalFindHandler (UInt32 inEventClass, UInt32 inEventKind)
Events
void Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow=NULL)
void Remove (UInt32 inEventClass, UInt32 inEventKind)
bool HasHandler (UInt32 inEventClass, UInt32 inEventKind)
CP_EventSignalFindHandler (UInt32 inEventClass, UInt32 inEventKind)
Events
void Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow)
void Remove (UInt32 inEventClass, UInt32 inEventKind, OSWindow inWindow)
bool HasHandler (UInt32 inEventClass, UInt32 inEventKind, OSWindow inWindow)
CP_EventSignalFindHandler (UInt32 inEventClass, UInt32 inEventKind, OSWindow inWindow, LPARAM inLParam)
void RemoveAll ()
Getters
EventTargetRef GetEventTargetRef ()
Setters
void SetEventTargetRef (EventTargetRef inTarget)
Getters
WNDPROC GetWndProc ()
void SetWndProc (WNDPROC inWndProc)
WPARAM GetWParam ()
LPARAM GetLParam ()
HWND GetHWND ()
Events
void Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow=NULL)
void Remove (UInt32 inEventClass, UInt32 inEventKind)
bool HasHandler (UInt32 inEventClass, UInt32 inEventKind)
CP_EventSignalFindHandler (UInt32 inEventClass, UInt32 inEventKind)
Events
void Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow=NULL)
void Remove (UInt32 inEventClass, UInt32 inEventKind)
bool HasHandler (UInt32 inEventClass, UInt32 inEventKind)
CP_EventSignalFindHandler (UInt32 inEventClass, UInt32 inEventKind)
Getters
EventTargetRef GetEventTargetRef ()
Setters
void SetEventTargetRef (EventTargetRef inTarget)
Events
void Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow)
void Remove (UInt32 inEventClass, UInt32 inEventKind, OSWindow inWindow)
void RemoveAll ()
bool HasHandler (UInt32 inEventClass, UInt32 inEventKind, OSWindow inWindow)
CP_EventSignalFindHandler (UInt32 inEventClass, UInt32 inEventKind, OSWindow inWindow, LPARAM inLParam)
Getters
WNDPROC GetWndProc ()
void SetWndProc (WNDPROC inWndProc)
WPARAM GetWParam ()
LPARAM GetLParam ()
HWND GetHWND ()
Constructor / Destructor
 CP_EventHandler_Imp_MDIFrame ()
 Constructor.
virtual ~CP_EventHandler_Imp_MDIFrame ()
 Destructor.
Events
virtual LRESULT CALLBACK EventHandlerProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) throw ()
Events
void Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow=NULL)
void Remove (UInt32 inEventClass, UInt32 inEventKind)
bool HasHandler (UInt32 inEventClass, UInt32 inEventKind)
CP_EventSignalFindHandler (UInt32 inEventClass, UInt32 inEventKind)
Events
void Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow=NULL)
void Remove (UInt32 inEventClass, UInt32 inEventKind)
bool HasHandler (UInt32 inEventClass, UInt32 inEventKind)
CP_EventSignalFindHandler (UInt32 inEventClass, UInt32 inEventKind)
Events
void Add (UInt32 inClass, UInt32 inKind, CP_EventSignal *inEventSignal, OSWindow inWindow)
void Remove (UInt32 inEventClass, UInt32 inEventKind, OSWindow inWindow)
bool HasHandler (UInt32 inEventClass, UInt32 inEventKind, OSWindow inWindow)
CP_EventSignalFindHandler (UInt32 inEventClass, UInt32 inEventKind, OSWindow inWindow, LPARAM inLParam)
void RemoveAll ()
Getters
EventTargetRef GetEventTargetRef ()
Setters
void SetEventTargetRef (EventTargetRef inTarget)
Getters
WNDPROC GetWndProc ()
void SetWndProc (WNDPROC inWndProc)
WPARAM GetWParam ()
LPARAM GetLParam ()
HWND GetHWND ()
Windows Messages
LRESULT CallDefault () throw ()

Protected Member Functions

virtual OSWindow FindOSWindowFromMessage (OSWindow inWindow, LPARAM inLParam, UINT inMsg)

Protected Attributes

CP_EventHandler_Map fEventHandlers
EventTargetRef fTarget
EventHandlerRef fEventHandlerRef
WPARAM fWParam
LPARAM fLParam
WNDPROC fnOldWndProc
HWND fHWND
UINT fIMsg
sender_set fSenders

Constructor & Destructor Documentation

CPLAT_Begin_Namespace_CPLAT CP_EventHandler_Imp_MDIFrame::CP_EventHandler_Imp_MDIFrame  ) 
 

Constructor.

Exceptions:
none 

CP_EventHandler_Imp_MDIFrame::~CP_EventHandler_Imp_MDIFrame  )  [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

LRESULT CALLBACK CP_EventHandler_Imp_MDIFrame::EventHandlerProc HWND  inHwnd,
UINT  inMsg,
WPARAM  inWParam,
LPARAM  inLParam
throw () [virtual]
 

Callback for the Windows window message handler when it has a registered event to process. This will look up the CP_EventSignal and call it to handle the event. This callback will handle events directed to the MDI frame window.

Parameters:
inHwnd The HWND that the message applies to.
inMsg The incoming message to handle.
inWParam The wParam for the message.
inLParam The lParam for the message.
Exceptions:
none 
Returns:
void

Reimplemented from CP_EventHandler_Imp.

void CP_EventHandler_Imp::Add UInt32  inEventClass,
UInt32  inEventKind,
CP_EventSignal inEventSignal,
OSWindow  inWindow = NULL
[inherited]
 

Adds the passed in event and event signal handler to the list of events we maintain. This will also register with the Carbon Event handler the fact that we handle the passed in event class and event kind.

Parameters:
inEventClass The class of the event being handled
inEventKind The kind of the event being handled
inEventSignal The signal to be called when this event class and kind is encountered. Note: This signal will be deleted when the event is removed from the list of events, and should be unique for each event, ie don't assign the same signal to the same event.
inWindow Not used
Exceptions:
CP_OSErrorException Exception thrown in there was a problem adding the event to the Carbon Event handler.
Returns:
void

void CP_EventHandler_Imp::Add UInt32  inClass,
UInt32  inKind,
CP_EventSignal inEventSignal,
OSWindow  inWindow = NULL
[inherited]
 

void CP_EventHandler_Imp::Add UInt32  inClass,
UInt32  inKind,
CP_EventSignal inEventSignal,
OSWindow  inWindow
[inherited]
 

void CP_EventHandler_Imp::Remove UInt32  inEventClass,
UInt32  inEventKind
[inherited]
 

Removes the event hanndler associated with the passed in event class and event kind.

Parameters:
inEventClass The class of the event being handled
inEventKind The kind of the event being handled
Exceptions:
CP_OSErrorException Exception thrown in there was a problem removing the event from the Carbon Event handler.
Returns:
void

void CP_EventHandler_Imp::Remove UInt32  inEventClass,
UInt32  inEventKind
[inherited]
 

void CP_EventHandler_Imp::Remove UInt32  inEventClass,
UInt32  inEventKind,
OSWindow  inWindow
[inherited]
 

Removes the event hanndler associated with the passed in event class and event kind.

Parameters:
inEventClass The class of the event being handled
inEventKind The kind of the event being handled
Exceptions:
CP_OSErrorException Exception thrown in there was a problem removing the event from the Carbon Event handler.
Returns:
void

bool CP_EventHandler_Imp::HasHandler UInt32  inEventClass,
UInt32  inEventKind
[inherited]
 

Returns true if we have an installed handler for the passed in inEventClass and inEventKind.

Parameters:
inEventClass The class of the event being handled
inEventKind The kind of the event being handled
Exceptions:
none 
Returns:
bool True if the event class / kind handler exists.

bool CP_EventHandler_Imp::HasHandler UInt32  inEventClass,
UInt32  inEventKind
[inherited]
 

bool CP_EventHandler_Imp::HasHandler UInt32  inEventClass,
UInt32  inEventKind,
OSWindow  inWindow
[inherited]
 

Returns true if we have an installed handler for the passed in inEventClass and inEventKind.

Parameters:
inEventClass The class of the event being handled
inEventKind The kind of the event being handled
Exceptions:
none 
Returns:
bool True if the event class / kind handler exists.

CP_EventSignal * CP_EventHandler_Imp::FindHandler UInt32  inEventClass,
UInt32  inEventKind
[inherited]
 

Returns the CP_EventSignal that will handle the passed in Carbon Event, based on the event class and event kind.

Parameters:
inEventClass The class of the event being handled
inEventKind The kind of the event being handled
Exceptions:
none 
Returns:
CP_EventSignal * The CP_EventSignal for the event.

CP_EventSignal* CP_EventHandler_Imp::FindHandler UInt32  inEventClass,
UInt32  inEventKind
[inherited]
 

CP_EventSignal * CP_EventHandler_Imp::FindHandler UInt32  inEventClass,
UInt32  inEventKind,
OSWindow  inWindow,
LPARAM  inLParam
[inherited]
 

Returns the CP_EventSignal that will handle the passed in Carbon Event, based on the event class and event kind.

Parameters:
inEventClass The class of the event being handled
inEventKind The kind of the event being handled
Exceptions:
none 
Returns:
CP_EventSignal * The CP_EventSignal for the event.

EventTargetRef CP_EventHandler_Imp::GetEventTargetRef  )  [inherited]
 

void CP_EventHandler_Imp::SetEventTargetRef EventTargetRef  inTarget  )  [inherited]
 

void CP_EventHandler_Imp::RemoveAll  )  [inherited]
 

Removes the event hanndler associated with the passed in event class and event kind.

Parameters:
inEventClass The class of the event being handled
inEventKind The kind of the event being handled
Exceptions:
CP_OSErrorException Exception thrown in there was a problem removing the event from the Carbon Event handler.
Returns:
void

WNDPROC CP_EventHandler_Imp::GetWndProc  )  [inherited]
 

Returns the Windows window proc callback used with this event handler.

Exceptions:
none 
Returns:
WNDPROC Windows callback for this event handler.

void CP_EventHandler_Imp::SetWndProc WNDPROC  inWndProc  )  [inherited]
 

Sets the Windows window proc callback used with this event handler.

Parameters:
inWndProc Windows callback to use for this event handler.
Exceptions:
none 
Returns:
void

WPARAM CP_EventHandler_Imp::GetWParam  )  [inherited]
 

Returns the wParam for this event.

Exceptions:
none 
Returns:
WPARAM The WPARAM for this event.

LPARAM CP_EventHandler_Imp::GetLParam  )  [inherited]
 

Returns the lParam for this event.

Exceptions:
none 
Returns:
LPARAM The LPARAM for this event.

HWND CP_EventHandler_Imp::GetHWND  )  [inherited]
 

LRESULT CP_EventHandler_Imp::CallDefault  )  throw () [inherited]
 

OSWindow CP_EventHandler_Imp::FindOSWindowFromMessage OSWindow  inWindow,
LPARAM  inLParam,
UINT  inMsg
[protected, virtual, inherited]
 

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

CP_EventHandler_Map CP_EventHandler_Imp::fEventHandlers [protected, inherited]
 

EventTargetRef CP_EventHandler_Imp::fTarget [protected, inherited]
 

Map that contains all of the registered handlers.

EventHandlerRef CP_EventHandler_Imp::fEventHandlerRef [protected, inherited]
 

Carbon Event target ref.

WPARAM CP_EventHandler_Imp::fWParam [protected, inherited]
 

List of registered event handlers.

LPARAM CP_EventHandler_Imp::fLParam [protected, inherited]
 

WPARAM for this event.

WNDPROC CP_EventHandler_Imp::fnOldWndProc [protected, inherited]
 

LPARAM for this event.

HWND CP_EventHandler_Imp::fHWND [protected, inherited]
 

Callback to be used when there is no event handler for this event.

UINT CP_EventHandler_Imp::fIMsg [protected, inherited]
 

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:01:40 2005 for CPLAT by  doxygen 1.4.0