OpenWalnut
1.4.0
|
An event handler for a custom widget which eases interaction with GUIEvents within your module. More...
#include <WCustomWidgetEventHandler.h>
Public Types | |
typedef boost::signals2::signal< void(WVector2f, int) > | ButtonSignalType |
Short hand type for signal signature of PUSH, RELEASE and DOUBLECLICK event. | |
typedef boost::signals2::signal< void(WVector2f, unsigned int) > | DragSignalType |
Short hand type for signal signature of DRAG event. | |
typedef boost::signals2::signal< void(WVector2f) > | MoveSignalType |
Short hand type for signal signature of MOVE event. | |
typedef boost::signals2::signal< void(GUIEvents::ScrollingMotion, float, float) > | ScrollSignalType |
Short hand type for signal signature of SCROLL event. | |
typedef boost::signals2::signal< void(void) > | TriggerSignalType |
Short hand type for signal signature of FRAME, PEN_PROXIMITY_ENTER, -LEAVE, CLOSE_WINDOW, QUIT_APPLICATION and USER event. | |
typedef boost::signals2::signal< void(int, unsigned int) > | KeySignalType |
Short hand type for signal signature of KEYDOWN and KEYUP event. | |
typedef boost::signals2::signal< void(int, int, int, int) > | ResizeSignalType |
Short hand type for signal signature of RESIZE event. | |
typedef boost::signals2::signal< void(float) > | PenPressureSignalType |
Short hand type for signal signature of PEN_PRESSURE event. | |
typedef boost::signals2::signal< void(const osg::Matrix) > | PenOrientationSignalType |
Short hand type for signal signature of PEN_ORIENTATION event. | |
Public Member Functions | |
WCustomWidgetEventHandler (WCustomWidget::SPtr widget) | |
Constructor. | |
bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &) |
The OSG calls this function whenever a new event has occured. | |
virtual void | subscribePush (ButtonSignalType::slot_type slot) |
Registers a function slot to PUSH events. | |
virtual void | subscribeRelease (ButtonSignalType::slot_type slot) |
Registers a function slot to RELEASE events. | |
virtual void | subscribeDoubleclick (ButtonSignalType::slot_type slot) |
Registers a function slot to DOUBLECLICK events. | |
virtual void | subscribeDrag (DragSignalType::slot_type slot) |
Registers a function slot to DRAG events. | |
virtual void | subscribeMove (MoveSignalType::slot_type slot) |
Registers a function slot to MOVE events. | |
virtual void | subscribeKeydown (KeySignalType::slot_type slot) |
Registers a function slot to KEYDOWN events. | |
virtual void | subscribeKeyup (KeySignalType::slot_type slot) |
Registers a function slot to KEYUP events. | |
virtual void | subscribeFrame (TriggerSignalType::slot_type) |
Registers a function slot to FRAME events. | |
virtual void | subscribeResize (ResizeSignalType::slot_type slot) |
Registers a function slot to RESIZE events. | |
virtual void | subscribeScroll (ScrollSignalType::slot_type slot) |
Registers a function slot to SCROLL events. | |
virtual void | subscribePenPressure (PenPressureSignalType::slot_type slot) |
Registers a function slot to PEN_PRESSURE events. | |
virtual void | subscribePenOrientation (PenOrientationSignalType::slot_type slot) |
Registers a function slot to PEN_ORIENTATION events. | |
virtual void | subscribePenProximityEnter (TriggerSignalType::slot_type slot) |
Registers a function slot to PEN_PROXIMITY_ENTER events. | |
virtual void | subscribePenProximityLeave (TriggerSignalType::slot_type slot) |
Registers a function slot to PEN_PROXIMITY_LEAVE events. | |
virtual void | subscribeCloseWindow (TriggerSignalType::slot_type slot) |
Registers a function slot to CLOSE_WINDOW events. | |
virtual void | subscribeQuitApplication (TriggerSignalType::slot_type slot) |
Registers a function slot to QUIT_APPLICATION events. | |
virtual void | subscribeUser (TriggerSignalType::slot_type slot) |
Registers a function slot to USER events. | |
virtual void | handlePush (WVector2f mousePos, int button) |
Called whenever the PUSH event occurs. | |
virtual void | handleRelease (WVector2f mousePos, int button) |
Called whenever the RELEASE event occurs. | |
virtual void | handleDoubleclick (WVector2f mousePos, int button) |
Called whenever the DOUBLECLICK event occurs. | |
virtual void | handleDrag (WVector2f mousePos, int buttonMask) |
Called whenever the DRAG event occurs. | |
virtual void | handleMove (WVector2f mousePos) |
Called whenever the MOVE event occurs. | |
virtual void | handleKeydown (int keyID, unsigned int modKeyMask) |
Called whenever the KEYDOWN event occurs. | |
virtual void | handleKeyup (int keyID, unsigned int modKeyMask) |
Called whenever the KEYUP event occurs. | |
virtual void | handleFrame () |
Called whenever the FRAME event occurs. | |
virtual void | handleResize (int xPos, int yPos, int width, int height) |
Called whenever the widget has resized. | |
virtual void | handleScroll (GUIEvents::ScrollingMotion motion, float deltaX, float deltaY) |
Called whenever the SCROLL event occurs. | |
virtual void | handlePenPressure (float pressure) |
Called whenever the PEN_PRESSURE event occurs. | |
virtual void | handlePenOrientation (const osg::Matrix orientation) |
Called whenever the PEN_ORIENTATION event occurs. | |
virtual void | handlePenProximityEnter () |
Called whenever the PEN_PROXIMITY_ENTER event occurs. | |
virtual void | handlePenProximityLeave () |
Called whenever the PEN_PROXIMITY_LEAVE event occurs. | |
virtual void | handleCloseWindow () |
Called whenever the CLOSE_WINDOW event occurs. | |
virtual void | handleQuitApplication () |
Called whenever the QUIT_APPLICATION event occurs. | |
virtual void | handleUser () |
Called whenever the USER event occurs. | |
Protected Member Functions | |
wlog::WStreamedLogger | errorLog () const |
Logger instance for comfortable error logging. | |
Protected Attributes | |
ButtonSignalType | m_sigPush |
Signal used for notification of the PUSH event. | |
ButtonSignalType | m_sigRelease |
Signal used for notification of the RELEASE event. | |
ButtonSignalType | m_sigDoubleclick |
Signal used for notification of the DOUBLECLICK event. | |
DragSignalType | m_sigDrag |
Signal used for notification of the DRAG event. | |
MoveSignalType | m_sigMove |
Signal used for notification of the MOVE event. | |
KeySignalType | m_sigKeydown |
Signal used for notification of the KEYDOWN event. | |
KeySignalType | m_sigKeyup |
Signal used for notification of the KEYUP event. | |
TriggerSignalType | m_sigFrame |
Signal used for notification of the FRAME event. | |
ResizeSignalType | m_sigResize |
Signal used for notification of the RESIZE event. | |
ScrollSignalType | m_sigScroll |
Signal used for notification of the SCROLL event. | |
PenPressureSignalType | m_sigPenPressure |
Signal used for notification of the PEN_PRESSURE event. | |
PenOrientationSignalType | m_sigPenOrientation |
Signal used for notification of the PEN_ORIENTATION event. | |
TriggerSignalType | m_sigPenProximityEnter |
Signal used for notification of the PEN_PROXIMITY_ENTER event. | |
TriggerSignalType | m_sigPenProximityLeave |
Signal used for notification of the PEN_PROXIMITY_LEAVE event. | |
TriggerSignalType | m_sigCloseWindow |
Signal used for notification of the CLOSE_WINDOW event. | |
TriggerSignalType | m_sigQuitApplication |
Signal used for notification of the QUIT_APPLICATION event. | |
TriggerSignalType | m_sigUser |
Signal used for notification of the USER event. | |
WCustomWidget::SPtr | m_widget |
Reference to the WCustomWidget for which event handling should performed. | |
unsigned int | m_preselection |
Binary mask describing which events should be used for notification or subscription. |
An event handler for a custom widget which eases interaction with GUIEvents within your module.
Without you need to write your own event handler and register it. However if you still need your own event handler you might consider subclassing from this one. Basically there are two ways of getting notified of GUIEvents. First you can connect a member function to events or you can overwrite member functions of this class to handle specific events.
Use boost::bind and the subscribeXY methods to connect a member function of your module to a specific GUIEvent. Please note that this is now called in context of the GUI thread and that you need to take care of threadsafety by yourself.
Use the corresponding handleXY() member functions if you still need a custom event handler. But take care that you may need to set the WCustomWidgetEventHandler::m_preselection event-mask accordingly within the constructor then.
In case you might not know what the specific parameters of the handle function represent you might have luck looking into the OpenSceneGraph documentation http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs within the GUIEventAdapter class.
Definition at line 53 of file WCustomWidgetEventHandler.h.
typedef boost::signals2::signal< void ( WVector2f, int ) > WCustomWidgetEventHandler::ButtonSignalType |
Short hand type for signal signature of PUSH, RELEASE and DOUBLECLICK event.
Definition at line 75 of file WCustomWidgetEventHandler.h.
typedef boost::signals2::signal< void ( WVector2f, unsigned int ) > WCustomWidgetEventHandler::DragSignalType |
Short hand type for signal signature of DRAG event.
Definition at line 80 of file WCustomWidgetEventHandler.h.
typedef boost::signals2::signal< void ( int, unsigned int ) > WCustomWidgetEventHandler::KeySignalType |
Short hand type for signal signature of KEYDOWN and KEYUP event.
Definition at line 100 of file WCustomWidgetEventHandler.h.
typedef boost::signals2::signal< void ( WVector2f ) > WCustomWidgetEventHandler::MoveSignalType |
Short hand type for signal signature of MOVE event.
Definition at line 85 of file WCustomWidgetEventHandler.h.
typedef boost::signals2::signal< void ( const osg::Matrix ) > WCustomWidgetEventHandler::PenOrientationSignalType |
Short hand type for signal signature of PEN_ORIENTATION event.
Definition at line 115 of file WCustomWidgetEventHandler.h.
typedef boost::signals2::signal< void ( float ) > WCustomWidgetEventHandler::PenPressureSignalType |
Short hand type for signal signature of PEN_PRESSURE event.
Definition at line 110 of file WCustomWidgetEventHandler.h.
typedef boost::signals2::signal< void ( int, int, int, int ) > WCustomWidgetEventHandler::ResizeSignalType |
Short hand type for signal signature of RESIZE event.
Definition at line 105 of file WCustomWidgetEventHandler.h.
typedef boost::signals2::signal< void ( GUIEvents::ScrollingMotion, float, float ) > WCustomWidgetEventHandler::ScrollSignalType |
Short hand type for signal signature of SCROLL event.
Definition at line 90 of file WCustomWidgetEventHandler.h.
typedef boost::signals2::signal< void ( void ) > WCustomWidgetEventHandler::TriggerSignalType |
Short hand type for signal signature of FRAME, PEN_PROXIMITY_ENTER, -LEAVE, CLOSE_WINDOW, QUIT_APPLICATION and USER event.
Definition at line 95 of file WCustomWidgetEventHandler.h.
WCustomWidgetEventHandler::WCustomWidgetEventHandler | ( | WCustomWidget::SPtr | widget | ) | [explicit] |
Constructor.
widget | The custom widget for which events should be handled. |
Definition at line 29 of file WCustomWidgetEventHandler.cpp.
wlog::WStreamedLogger WCustomWidgetEventHandler::errorLog | ( | ) | const [protected] |
Logger instance for comfortable error logging.
Simply use errorLog() << "my error".
Definition at line 159 of file WCustomWidgetEventHandler.cpp.
References wlog::error(), and m_widget.
Referenced by handle().
bool WCustomWidgetEventHandler::handle | ( | const osgGA::GUIEventAdapter & | ea, |
osgGA::GUIActionAdapter & | |||
) |
The OSG calls this function whenever a new event has occured.
ea | Event class for storing GUI events such as mouse or keyboard interation etc. |
Definition at line 35 of file WCustomWidgetEventHandler.cpp.
References errorLog(), handleCloseWindow(), handleDoubleclick(), handleDrag(), handleFrame(), handleKeydown(), handleKeyup(), handleMove(), handlePenOrientation(), handlePenPressure(), handlePenProximityEnter(), handlePenProximityLeave(), handlePush(), handleQuitApplication(), handleRelease(), handleResize(), handleScroll(), handleUser(), m_preselection, m_sigCloseWindow, m_sigDoubleclick, m_sigDrag, m_sigFrame, m_sigKeydown, m_sigKeyup, m_sigMove, m_sigPenOrientation, m_sigPenPressure, m_sigPenProximityEnter, m_sigPenProximityLeave, m_sigPush, m_sigQuitApplication, m_sigRelease, m_sigResize, m_sigScroll, and m_sigUser.
void WCustomWidgetEventHandler::handleCloseWindow | ( | ) | [virtual] |
Called whenever the CLOSE_WINDOW event occurs.
Definition at line 322 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleDoubleclick | ( | WVector2f | mousePos, |
int | button | ||
) | [virtual] |
Called whenever the DOUBLECLICK event occurs.
mousePos | Current mouse position in X and Y. |
button | The involved mouse button. See http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs GUIEventAdapter class for values. |
Definition at line 274 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleDrag | ( | WVector2f | mousePos, |
int | buttonMask | ||
) | [virtual] |
Called whenever the DRAG event occurs.
mousePos | Current mouse position in X and Y. |
buttonMask | The pushed mouse buttons as a mask. See http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs GUIEventAdapter class for values. |
Definition at line 278 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleFrame | ( | ) | [virtual] |
Called whenever the FRAME event occurs.
This is every new frame.
Definition at line 294 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleKeydown | ( | int | keyID, |
unsigned int | modKeyMask | ||
) | [virtual] |
Called whenever the KEYDOWN event occurs.
keyID | The pressed key. See http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs GUIEventAdapter class for values. |
modKeyMask | Additional function keys pressed. |
Definition at line 286 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleKeyup | ( | int | keyID, |
unsigned int | modKeyMask | ||
) | [virtual] |
Called whenever the KEYUP event occurs.
keyID | The released key. See http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs GUIEventAdapter class for values. |
modKeyMask | Additional function keys pressed. |
Definition at line 290 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleMove | ( | WVector2f | mousePos | ) | [virtual] |
Called whenever the MOVE event occurs.
mousePos | Current mouse position in X and Y. |
Definition at line 282 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handlePenOrientation | ( | const osg::Matrix | orientation | ) | [virtual] |
Called whenever the PEN_ORIENTATION event occurs.
orientation | the orientation of the pen. |
Definition at line 310 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handlePenPressure | ( | float | pressure | ) | [virtual] |
Called whenever the PEN_PRESSURE event occurs.
pressure | pressure of the pen. |
Definition at line 306 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handlePenProximityEnter | ( | ) | [virtual] |
Called whenever the PEN_PROXIMITY_ENTER event occurs.
Definition at line 314 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handlePenProximityLeave | ( | ) | [virtual] |
Called whenever the PEN_PROXIMITY_LEAVE event occurs.
Definition at line 318 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handlePush | ( | WVector2f | mousePos, |
int | button | ||
) | [virtual] |
Called whenever the PUSH event occurs.
mousePos | Current mouse position in X and Y. |
button | The involved mouse button. See http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs GUIEventAdapter class for values. |
Definition at line 266 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleQuitApplication | ( | ) | [virtual] |
Called whenever the QUIT_APPLICATION event occurs.
Definition at line 326 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleRelease | ( | WVector2f | mousePos, |
int | button | ||
) | [virtual] |
Called whenever the RELEASE event occurs.
mousePos | Current mouse position in X and Y. |
button | The involved mouse button. See http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs GUIEventAdapter class for values. |
Definition at line 270 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleResize | ( | int | xPos, |
int | yPos, | ||
int | width, | ||
int | height | ||
) | [virtual] |
Called whenever the widget has resized.
xPos | Position in X. |
yPos | Position in Y. |
width | Width of the widget. |
height | Height of the widget. |
Definition at line 298 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleScroll | ( | GUIEvents::ScrollingMotion | motion, |
float | deltaX, | ||
float | deltaY | ||
) | [virtual] |
Called whenever the SCROLL event occurs.
motion | Scrolling motion. See http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs GUIEventAdapter class for values. |
deltaX | Delta in X. |
deltaY | Delta in Y. |
Definition at line 302 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::handleUser | ( | ) | [virtual] |
Called whenever the USER event occurs.
Definition at line 330 of file WCustomWidgetEventHandler.cpp.
Referenced by handle().
void WCustomWidgetEventHandler::subscribeCloseWindow | ( | TriggerSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to CLOSE_WINDOW events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 248 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigCloseWindow.
void WCustomWidgetEventHandler::subscribeDoubleclick | ( | ButtonSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to DOUBLECLICK events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 176 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigDoubleclick.
void WCustomWidgetEventHandler::subscribeDrag | ( | DragSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to DRAG events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 182 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigDrag.
void WCustomWidgetEventHandler::subscribeFrame | ( | TriggerSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to FRAME events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 194 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigFrame.
void WCustomWidgetEventHandler::subscribeKeydown | ( | KeySignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to KEYDOWN events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 200 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigKeydown.
void WCustomWidgetEventHandler::subscribeKeyup | ( | KeySignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to KEYUP events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 206 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigKeyup.
void WCustomWidgetEventHandler::subscribeMove | ( | MoveSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to MOVE events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 188 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigMove.
void WCustomWidgetEventHandler::subscribePenOrientation | ( | PenOrientationSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to PEN_ORIENTATION events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 230 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigPenOrientation.
void WCustomWidgetEventHandler::subscribePenPressure | ( | PenPressureSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to PEN_PRESSURE events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 224 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigPenPressure.
void WCustomWidgetEventHandler::subscribePenProximityEnter | ( | TriggerSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to PEN_PROXIMITY_ENTER events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 236 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigPenProximityEnter.
void WCustomWidgetEventHandler::subscribePenProximityLeave | ( | TriggerSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to PEN_PROXIMITY_LEAVE events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 242 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigPenProximityLeave.
void WCustomWidgetEventHandler::subscribePush | ( | ButtonSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to PUSH events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 164 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigPush.
void WCustomWidgetEventHandler::subscribeQuitApplication | ( | TriggerSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to QUIT_APPLICATION events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 254 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigQuitApplication.
void WCustomWidgetEventHandler::subscribeRelease | ( | ButtonSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to RELEASE events.
Whenever the event occurs, the slot is called with current parameters.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 170 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigRelease.
void WCustomWidgetEventHandler::subscribeResize | ( | ResizeSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to RESIZE events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 212 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigResize.
void WCustomWidgetEventHandler::subscribeScroll | ( | ScrollSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to SCROLL events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 218 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigScroll.
void WCustomWidgetEventHandler::subscribeUser | ( | TriggerSignalType::slot_type | slot | ) | [virtual] |
Registers a function slot to USER events.
Whenever the event occurs, the slot is called with current parameters.
slot | Function object having the appropriate signature according to the used SignalType. |
Definition at line 260 of file WCustomWidgetEventHandler.cpp.
References m_preselection, and m_sigUser.
unsigned int WCustomWidgetEventHandler::m_preselection [protected] |
Binary mask describing which events should be used for notification or subscription.
Definition at line 443 of file WCustomWidgetEventHandler.h.
Referenced by handle(), subscribeCloseWindow(), subscribeDoubleclick(), subscribeDrag(), subscribeFrame(), subscribeKeydown(), subscribeKeyup(), subscribeMove(), subscribePenOrientation(), subscribePenPressure(), subscribePenProximityEnter(), subscribePenProximityLeave(), subscribePush(), subscribeQuitApplication(), subscribeRelease(), subscribeResize(), subscribeScroll(), and subscribeUser().
Signal used for notification of the CLOSE_WINDOW event.
Definition at line 423 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeCloseWindow().
Signal used for notification of the DOUBLECLICK event.
Definition at line 363 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeDoubleclick().
DragSignalType WCustomWidgetEventHandler::m_sigDrag [protected] |
Signal used for notification of the DRAG event.
Definition at line 368 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeDrag().
Signal used for notification of the FRAME event.
Definition at line 388 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeFrame().
KeySignalType WCustomWidgetEventHandler::m_sigKeydown [protected] |
Signal used for notification of the KEYDOWN event.
Definition at line 378 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeKeydown().
KeySignalType WCustomWidgetEventHandler::m_sigKeyup [protected] |
Signal used for notification of the KEYUP event.
Definition at line 383 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeKeyup().
MoveSignalType WCustomWidgetEventHandler::m_sigMove [protected] |
Signal used for notification of the MOVE event.
Definition at line 373 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeMove().
Signal used for notification of the PEN_ORIENTATION event.
Definition at line 408 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribePenOrientation().
Signal used for notification of the PEN_PRESSURE event.
Definition at line 403 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribePenPressure().
Signal used for notification of the PEN_PROXIMITY_ENTER event.
Definition at line 413 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribePenProximityEnter().
Signal used for notification of the PEN_PROXIMITY_LEAVE event.
Definition at line 418 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribePenProximityLeave().
ButtonSignalType WCustomWidgetEventHandler::m_sigPush [protected] |
Signal used for notification of the PUSH event.
Definition at line 353 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribePush().
Signal used for notification of the QUIT_APPLICATION event.
Definition at line 428 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeQuitApplication().
Signal used for notification of the RELEASE event.
Definition at line 358 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeRelease().
Signal used for notification of the RESIZE event.
Definition at line 393 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeResize().
Signal used for notification of the SCROLL event.
Definition at line 398 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeScroll().
Signal used for notification of the USER event.
Definition at line 433 of file WCustomWidgetEventHandler.h.
Referenced by handle(), and subscribeUser().
Reference to the WCustomWidget for which event handling should performed.
Definition at line 438 of file WCustomWidgetEventHandler.h.
Referenced by errorLog().