MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
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/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 Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)