MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrGui
dragComponent.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef dragComponent_H_
10
#define dragComponent_H_
11
12
#include "
lgrGui.h
"
13
#include <QtCore/QPoint>
14
15
class
QMouseEvent;
16
17
namespace
MAKLogger
18
{
19
21
class
DT_DLL_LGRGUI
DtDragComponent
22
{
23
public
:
24
26
DtDragComponent
();
27
29
virtual
~
DtDragComponent
();
30
32
void
registerMousePress(
const
QMouseEvent& e);
33
35
void
registerMouseRelease(
const
QMouseEvent& e);
36
38
void
registerMouseMove(
const
QMouseEvent& e);
39
41
QPoint absolutePosition()
const
;
42
45
QPoint relativePosition()
const
;
46
48
QPoint relativeVelocity()
const
;
49
51
bool
currentlyDragging()
const
;
52
53
protected
:
54
QPoint
myFirstPosition
;
55
QPoint
myLastPosition
;
56
QPoint
myCurrentPosition
;
57
58
bool
myDownFlag
;
59
};
60
61
}
62
63
#endif
Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)