MWidgets::EventHandler< T > Class Template Reference

Template class for creating specific to object event handler. More...

#include <eventhandler.h>

Inheritance diagram for MWidgets::EventHandler< T >:

MWidgets::BaseEventHandler List of all members.

Public Types

typedef void(T::*) EventCallBack (Widget *sender)
 Objects callback methods type.

Public Member Functions

 EventHandler (T *parent, EventCallBack callback)
 Constructor.
void Call (Widget *sender)
 Method call real handler.

Protected Attributes

T * m_pParent
 pointer to object.
EventCallBack m_pCallBack
 pointer to objects method.

Detailed Description

template<class T>
class MWidgets::EventHandler< T >

Template class for creating specific to object event handler.

Definition at line 38 of file eventhandler.h.


Member Typedef Documentation

template<class T>
typedef void(T::*) MWidgets::EventHandler< T >::EventCallBack(Widget *sender)

Objects callback methods type.

Definition at line 42 of file eventhandler.h.


Constructor & Destructor Documentation

template<class T>
MWidgets::EventHandler< T >::EventHandler ( T *  parent,
EventCallBack  callback 
) [inline]

Constructor.

Parameters:
parent pointer to object.
callback pointer to objects method.

Definition at line 50 of file eventhandler.h.

References MWidgets::EventHandler< T >::m_pCallBack, and MWidgets::EventHandler< T >::m_pParent.


Member Function Documentation

template<class T>
void MWidgets::EventHandler< T >::Call ( Widget sender  )  [inline, virtual]

Method call real handler.

Parameters:
sender poiter to sender object.

Reimplemented from MWidgets::BaseEventHandler.

Definition at line 57 of file eventhandler.h.

References MWidgets::EventHandler< T >::m_pCallBack, and MWidgets::EventHandler< T >::m_pParent.


Member Data Documentation

template<class T>
EventCallBack MWidgets::EventHandler< T >::m_pCallBack [protected]

pointer to objects method.

Definition at line 45 of file eventhandler.h.

Referenced by MWidgets::EventHandler< T >::Call(), and MWidgets::EventHandler< T >::EventHandler().

template<class T>
T* MWidgets::EventHandler< T >::m_pParent [protected]

pointer to object.

Definition at line 44 of file eventhandler.h.

Referenced by MWidgets::EventHandler< T >::Call(), and MWidgets::EventHandler< T >::EventHandler().


The documentation for this class was generated from the following file:
Generated on Thu Oct 26 13:47:46 2006 for MWidgets by  doxygen 1.4.7