OpendTect-6_4  6.4
uieventfilter.h
Go to the documentation of this file.
1 #ifndef uieventfilter_h
2 #define uieventfilter_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: Nov 2012
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uibasemod.h"
16 #include "callback.h"
17 
18 mFDQtclass(QObject);
19 mFDQtclass(QEvent);
20 
21 class uiEventFilterImpl;
22 class uiBaseObject;
23 
24 
29 {
30 public:
31  uiEventFilter();
32  virtual ~uiEventFilter();
33 
34  enum EventType {
177  ZOrderChange
178  };
179 
180  void addEventType(EventType);
181  void removeEventType(EventType);
182 
184  EventType getCurrentEventType() const;
186  QEvent* getCurrentEvent();
188  const QEvent* getCurrentEvent() const;
190 
191  void setBlockEvent(bool yn);
192  bool getBlockEvent() const;
193 
194  void attachToQObj(QObject*);
195  void attach(uiBaseObject*);
196  void detach();
197 
198 protected:
199 
200  uiEventFilterImpl* impl_;
201 
202 };
203 
204 
205 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: uieventfilter.h:164
Definition: uieventfilter.h:115
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
EventType
Definition: uieventfilter.h:34
Definition: uieventfilter.h:71
Definition: uieventfilter.h:147
Definition: uieventfilter.h:101
Definition: uieventfilter.h:137
Definition: uieventfilter.h:39
Definition: uieventfilter.h:125
Definition: uieventfilter.h:155
Definition: uieventfilter.h:97
Definition: uieventfilter.h:61
Definition: uieventfilter.h:102
Definition: uieventfilter.h:88
Definition: uieventfilter.h:174
Definition: uieventfilter.h:168
Definition: uieventfilter.h:99
Definition: uieventfilter.h:51
Definition: uieventfilter.h:127
Definition: uieventfilter.h:128
Definition: uieventfilter.h:119
Definition: uieventfilter.h:113
Definition: uieventfilter.h:95
Definition: uieventfilter.h:83
Definition: uieventfilter.h:133
Definition: uieventfilter.h:109
Definition: uieventfilter.h:62
Definition: uieventfilter.h:100
Definition: uieventfilter.h:154
Definition: uieventfilter.h:141
Definition: uieventfilter.h:78
Definition: uieventfilter.h:152
Definition: uieventfilter.h:135
Definition: uieventfilter.h:45
uiEventFilterImpl * impl_
Definition: uieventfilter.h:200
Definition: uieventfilter.h:63
Definition: uieventfilter.h:170
Definition: uieventfilter.h:57
Definition: uieventfilter.h:86
Definition: uieventfilter.h:54
Definition: uieventfilter.h:73
Definition: uieventfilter.h:166
Definition: uieventfilter.h:126
Definition: uieventfilter.h:44
Definition: uieventfilter.h:139
Definition: uieventfilter.h:110
Definition: uieventfilter.h:122
Definition: uieventfilter.h:140
Definition: uieventfilter.h:38
Definition: uieventfilter.h:96
Definition: uieventfilter.h:114
Definition: uieventfilter.h:90
Definition: uieventfilter.h:66
Definition: uieventfilter.h:153
Definition: uieventfilter.h:67
Definition: uieventfilter.h:80
Definition: uieventfilter.h:175
Definition: uieventfilter.h:35
Definition: uieventfilter.h:138
is a class that is able to recieve events from Qt and trigger an OD-style notification/callback.
Definition: uieventfilter.h:28
Definition: uieventfilter.h:171
Definition: uieventfilter.h:77
Definition: uieventfilter.h:124
Definition: uieventfilter.h:49
Definition: uieventfilter.h:148
Definition: uieventfilter.h:160
Definition: uieventfilter.h:47
Definition: uieventfilter.h:142
Definition: uieventfilter.h:131
Definition: uieventfilter.h:36
Definition: uieventfilter.h:176
Definition: uieventfilter.h:167
Definition: uieventfilter.h:89
Definition: uieventfilter.h:106
Definition: uieventfilter.h:144
Definition: uieventfilter.h:52
Definition: uieventfilter.h:145
Definition: uieventfilter.h:87
Definition: uieventfilter.h:48
Definition: uieventfilter.h:163
Definition: uieventfilter.h:116
Definition: uieventfilter.h:146
Definition: uieventfilter.h:108
Definition: uieventfilter.h:59
Definition: uieventfilter.h:37
Definition: uieventfilter.h:172
Notifier< uiEventFilter > eventhappened
Definition: uieventfilter.h:183
Definition: uieventfilter.h:65
Definition: uieventfilter.h:129
Definition: uieventfilter.h:132
Definition: uieventfilter.h:60
Definition: uieventfilter.h:173
Definition: uieventfilter.h:41
Definition: uieventfilter.h:165
Definition: uieventfilter.h:70
Definition: uieventfilter.h:74
Definition: uieventfilter.h:105
Definition: uieventfilter.h:121
Definition: uieventfilter.h:85
Definition: uieventfilter.h:55
Definition: uieventfilter.h:69
Definition: uieventfilter.h:134
Definition: uieventfilter.h:120
Definition: uieventfilter.h:64
Definition: uieventfilter.h:81
Definition: uieventfilter.h:82
Definition: uieventfilter.h:104
Definition: uieventfilter.h:157
Definition: uieventfilter.h:149
Definition: uieventfilter.h:130
Definition: uieventfilter.h:117
Definition: uieventfilter.h:156
Definition: uieventfilter.h:76
Definition: uieventfilter.h:151
Definition: uieventfilter.h:136
Definition: uieventfilter.h:84
Definition: uieventfilter.h:53
Definition: uieventfilter.h:42
Definition: uieventfilter.h:162
Definition: uieventfilter.h:123
Definition: uieventfilter.h:158
Definition: uieventfilter.h:68
Definition: uieventfilter.h:92
Definition: uieventfilter.h:98
Definition: uieventfilter.h:50
Definition: uieventfilter.h:56
Definition: uieventfilter.h:79
Definition: uieventfilter.h:91
Definition: uieventfilter.h:75
Definition: uieventfilter.h:143
Definition: uieventfilter.h:40
Definition: uieventfilter.h:112
mFDQtclass(QObject)
Definition: uieventfilter.h:46
Definition: uieventfilter.h:93
Definition: uieventfilter.h:169
Definition: uieventfilter.h:161
Definition: uieventfilter.h:58
Definition: uieventfilter.h:118
Definition: uieventfilter.h:72
Definition: uieventfilter.h:103
Definition: uieventfilter.h:159
Definition: uieventfilter.h:107
Definition: uieventfilter.h:150
Definition: uieventfilter.h:94

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