OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uieventfilter.h"
15 
24 class QDateTime;
25 
27 {
28 public:
31 
32  void attachToQObj(QObject*);
33  void attach(uiBaseObject*);
34 
36 
37  bool updateFromEvent(const QEvent*);
39  // Use if the filter fails to block these events
40 private:
41 
43 
45  QDateTime& gestureendtime_;
46  enum GestureStatus { Inactive, Active, Finished };
49 };
50 
uiMouseEventBlockerByGestures::eventfilter_
uiEventFilter eventfilter_
Definition: uimouseeventblockerbygesture.h:44
uiMouseEventBlockerByGestures::gesturestatus_
GestureStatus gesturestatus_
Definition: uimouseeventblockerbygesture.h:47
uiMouseEventBlockerByGestures::qtEventCB
void qtEventCB(CallBacker *)
od_int64
#define od_int64
Definition: plftypes.h:35
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiEventFilter
is a class that is able to recieve events from Qt and trigger an OD-style notification/callback.
Definition: uieventfilter.h:28
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiMouseEventBlockerByGestures::Inactive
@ Inactive
Definition: uimouseeventblockerbygesture.h:46
uiMouseEventBlockerByGestures::gestureendtime_
QDateTime & gestureendtime_
Definition: uimouseeventblockerbygesture.h:45
uieventfilter.h
uiMouseEventBlockerByGestures::isGestureHappening
bool isGestureHappening()
uiMouseEventBlockerByGestures::updateFromEvent
bool updateFromEvent(const QEvent *)
Blocks events coming from other source.
uiMouseEventBlockerByGestures::uiMouseEventBlockerByGestures
uiMouseEventBlockerByGestures(int delay_ms=-1)
uiMouseEventBlockerByGestures::delaytime_
od_int64 delaytime_
Definition: uimouseeventblockerbygesture.h:48
uiMouseEventBlockerByGestures::GestureStatus
GestureStatus
Definition: uimouseeventblockerbygesture.h:46
uiMouseEventBlockerByGestures::attach
void attach(uiBaseObject *)
uiMouseEventBlockerByGestures
Definition: uimouseeventblockerbygesture.h:27
uiMouseEventBlockerByGestures::attachToQObj
void attachToQObj(QObject *)
uiMouseEventBlockerByGestures::~uiMouseEventBlockerByGestures
~uiMouseEventBlockerByGestures()

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