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

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