OpendTect  6.3
uimouseeventblockerbygesture.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Ranojay Sen
8  Date: Sept 2014
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uieventfilter.h"
14 
23 class QDateTime;
24 
26 {
27 public:
28  uiMouseEventBlockerByGestures(int delay_ms=-1);
30 
31  void attachToQObj(QObject*);
32  void attach(uiBaseObject*);
33 
34  bool isGestureHappening();
35 
36  bool updateFromEvent(const QEvent*);
38  // Use if the filter fails to block these events
39 private:
40 
41  void qtEventCB(CallBacker*);
42 
45  QDateTime& gestureendtime_;
46  enum GestureStatus { Inactive, Active, Finished };
49 };
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
#define od_int64
Definition: plftypes.h:34
Definition: uimouseeventblockerbygesture.h:46
is a class that is able to recieve events from Qt and trigger an OD-style notification/callback.
Definition: uieventfilter.h:26
int nractivegestures_
Definition: uimouseeventblockerbygesture.h:44
QDateTime & gestureendtime_
Definition: uimouseeventblockerbygesture.h:45
od_int64 delaytime_
Definition: uimouseeventblockerbygesture.h:48
GestureStatus
Definition: uimouseeventblockerbygesture.h:46
Definition: uimouseeventblockerbygesture.h:25
uiEventFilter eventfilter_
Definition: uimouseeventblockerbygesture.h:43
GestureStatus gesturestatus_
Definition: uimouseeventblockerbygesture.h:47

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017