MAK Data Logger API Documentation for DIS
List of all members | Public Member Functions | Protected Attributes
MAKLogger::DtDragComponent Class Reference

Classes used to track mouse drags. More...

+ Inheritance diagram for MAKLogger::DtDragComponent:
+ Collaboration diagram for MAKLogger::DtDragComponent:

Public Member Functions

 DtDragComponent ()
 CTOR.
virtual ~DtDragComponent ()
 DTOR.
void registerMousePress (const QMouseEvent &e)
 To be called when mouse is pressed.
void registerMouseRelease (const QMouseEvent &e)
 To be called when mouse is released.
void registerMouseMove (const QMouseEvent &e)
 To be called when mouse is moved.
QPoint absolutePosition () const
 Get the absolute position of the mouse.
QPoint relativePosition () const
 Get the relative position of the mouse from the initial position.
QPoint relativeVelocity () const
 Get the relative position of the mouse from the last update.
bool currentlyDragging () const
 Get whether the mouse is currently dragging.

Protected Attributes

QPoint myFirstPosition
QPoint myLastPosition
QPoint myCurrentPosition
bool myDownFlag

Detailed Description

Classes used to track mouse drags.

Constructor & Destructor Documentation

MAKLogger::DtDragComponent::DtDragComponent ( )

CTOR.

virtual MAKLogger::DtDragComponent::~DtDragComponent ( )
virtual

DTOR.

Member Function Documentation

QPoint MAKLogger::DtDragComponent::absolutePosition ( ) const

Get the absolute position of the mouse.

bool MAKLogger::DtDragComponent::currentlyDragging ( ) const

Get whether the mouse is currently dragging.

void MAKLogger::DtDragComponent::registerMouseMove ( const QMouseEvent &  e)

To be called when mouse is moved.

void MAKLogger::DtDragComponent::registerMousePress ( const QMouseEvent &  e)

To be called when mouse is pressed.

void MAKLogger::DtDragComponent::registerMouseRelease ( const QMouseEvent &  e)

To be called when mouse is released.

QPoint MAKLogger::DtDragComponent::relativePosition ( ) const

Get the relative position of the mouse from the initial position.

QPoint MAKLogger::DtDragComponent::relativeVelocity ( ) const

Get the relative position of the mouse from the last update.

Member Data Documentation

QPoint MAKLogger::DtDragComponent::myCurrentPosition
protected
bool MAKLogger::DtDragComponent::myDownFlag
protected
QPoint MAKLogger::DtDragComponent::myFirstPosition
protected
QPoint MAKLogger::DtDragComponent::myLastPosition
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)