25 #ifndef WCUSTOMWIDGETEVENTHANDLER_H
26 #define WCUSTOMWIDGETEVENTHANDLER_H
28 #include <boost/signals2/signal.hpp>
30 #include <osgGA/GUIEventAdapter>
31 #include <osgGA/GUIEventHandler>
33 #include "../common/math/linearAlgebra/WVectorFixed.h"
34 #include "../common/WLogger.h"
35 #include "WCustomWidget.h"
70 bool handle(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& );
80 typedef boost::signals2::signal< void ( WVector2f, unsigned int ) >
DragSignalType;
90 typedef boost::signals2::signal< void ( GUIEvents::ScrollingMotion, float, float ) >
ScrollSignalType;
100 typedef boost::signals2::signal< void ( int, unsigned int ) >
KeySignalType;
122 virtual void subscribePush( ButtonSignalType::slot_type slot );
140 virtual void subscribeDrag( DragSignalType::slot_type slot );
147 virtual void subscribeMove( MoveSignalType::slot_type slot );
229 virtual void subscribeUser( TriggerSignalType::slot_type slot );
275 virtual void handleKeydown(
int keyID,
unsigned int modKeyMask );
284 virtual void handleKeyup(
int keyID,
unsigned int modKeyMask );
299 virtual void handleResize(
int xPos,
int yPos,
int width,
int height );
308 virtual void handleScroll( GUIEvents::ScrollingMotion motion,
float deltaX,
float deltaY );
453 #endif // WCUSTOMWIDGETEVENTHANDLER_H
Resource class for streamed logging.
A fixed size matrix class.