OpendTect  7.0
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
uiEventFilter Class Reference

is a class that is able to recieve events from Qt and trigger an OD-style notification/callback. More...

Inheritance diagram for uiEventFilter:
[legend]

Public Types

enum  EventType {
  None , ActionAdded , ActionChanged , ActionRemoved ,
  ActivationChange , ApplicationActivate , ApplicationActivated , ApplicationFontChange ,
  ApplicationLayoutDirectionChange , ApplicationPaletteChange , ApplicationStateChange , ApplicationWindowIconChange ,
  ChildAdded , ChildPolished , ChildRemoved , Clipboard ,
  Close , CloseSoftwareInputPanel , ContentsRectChange , ContextMenu ,
  CursorChange , DeferredDelete , DragEnter , DragLeave ,
  DragMove , Drop , DynamicPropertyChange , EnabledChange ,
  Enter , EnterEditFocus , EnterWhatsThisMode , Expose ,
  FileOpen , FocusIn , FocusOut , FocusAboutToChange ,
  FontChange , Gesture , GestureOverride , GrabKeyboard ,
  GrabMouse , GraphicsSceneContextMenu , GraphicsSceneDragEnter , GraphicsSceneDragLeave ,
  GraphicsSceneDragMove , GraphicsSceneDrop , GraphicsSceneHelp , GraphicsSceneHoverEnter ,
  GraphicsSceneHoverLeave , GraphicsSceneHoverMove , GraphicsSceneMouseDoubleClick , GraphicsSceneMouseMove ,
  GraphicsSceneMousePress , GraphicsSceneMouseRelease , GraphicsSceneMove , GraphicsSceneResize ,
  GraphicsSceneWheel , Hide , HideToParent , HoverEnter ,
  HoverLeave , HoverMove , IconDrag , IconTextChange ,
  InputMethod , InputMethodQuery , KeyboardLayoutChange , KeyPress ,
  KeyRelease , LanguageChange , LayoutDirectionChange , LayoutRequest ,
  Leave , LeaveEditFocus , LeaveWhatsThisMode , LocaleChange ,
  NonClientAreaMouseButtonDblClick , NonClientAreaMouseButtonPress , NonClientAreaMouseButtonRelease , NonClientAreaMouseMove ,
  MacSizeChange , MetaCall , ModifiedChange , MouseButtonDblClick ,
  MouseButtonPress , MouseButtonRelease , MouseMove , MouseTrackingChange ,
  Move , OrientationChange , Paint , PaletteChange ,
  ParentAboutToChange , ParentChange , PlatformPanel , Polish ,
  PolishRequest , QueryWhatsThis , RequestSoftwareInputPanel , Resize ,
  ScrollPrepare , Scroll , Shortcut , ShortcutOverride ,
  Show , ShowToParent , SockAct , StateMachineSignal ,
  StateMachineWrapped , StatusTip , StyleChange , TabletMove ,
  TabletPress , TabletRelease , OkRequest , TabletEnterProximity ,
  TabletLeaveProximity , ThreadChange , Timer , ToolBarChange ,
  ToolTip , ToolTipChange , TouchBegin , TouchCancel ,
  TouchEnd , TouchUpdate , UngrabKeyboard , UngrabMouse ,
  UpdateLater , UpdateRequest , WhatsThis , WhatsThisClicked ,
  Wheel , WinEventAct , WindowActivate , WindowBlocked ,
  WindowDeactivate , WindowIconChange , WindowStateChange , WindowTitleChange ,
  WindowUnblocked , WinIdChange , ZOrderChange
}
 

Public Member Functions

 uiEventFilter ()
 
virtual ~uiEventFilter ()
 
void addEventType (EventType)
 
void attach (uiBaseObject *)
 
void attachToQObj (QObject *)
 
void detach ()
 
bool getBlockEvent () const
 
QEvent * getCurrentEvent ()
 Only set when notifier is triggered. More...
 
const QEvent * getCurrentEvent () const
 Only set when notifier is triggered. More...
 
EventType getCurrentEventType () const
 Only set when notifier is triggered. More...
 
void removeEventType (EventType)
 
void setBlockEvent (bool yn)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 

Public Attributes

Notifier< uiEventFiltereventhappened
 

Protected Attributes

uiEventFilterImpl * impl_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

is a class that is able to recieve events from Qt and trigger an OD-style notification/callback.

<>

Member Enumeration Documentation

◆ EventType

Enumerator
None 
ActionAdded 
ActionChanged 
ActionRemoved 
ActivationChange 
ApplicationActivate 
ApplicationActivated 
ApplicationFontChange 
ApplicationLayoutDirectionChange 
ApplicationPaletteChange 
ApplicationStateChange 
ApplicationWindowIconChange 
ChildAdded 
ChildPolished 
ChildRemoved 
Clipboard 
Close 
CloseSoftwareInputPanel 
ContentsRectChange 
ContextMenu 
CursorChange 
DeferredDelete 
DragEnter 
DragLeave 
DragMove 
Drop 
DynamicPropertyChange 
EnabledChange 
Enter 
EnterEditFocus 
EnterWhatsThisMode 
Expose 
FileOpen 
FocusIn 
FocusOut 
FocusAboutToChange 
FontChange 
Gesture 
GestureOverride 
GrabKeyboard 
GrabMouse 
GraphicsSceneContextMenu 
GraphicsSceneDragEnter 
GraphicsSceneDragLeave 
GraphicsSceneDragMove 
GraphicsSceneDrop 
GraphicsSceneHelp 
GraphicsSceneHoverEnter 
GraphicsSceneHoverLeave 
GraphicsSceneHoverMove 
GraphicsSceneMouseDoubleClick 
GraphicsSceneMouseMove 
GraphicsSceneMousePress 
GraphicsSceneMouseRelease 
GraphicsSceneMove 
GraphicsSceneResize 
GraphicsSceneWheel 
Hide 
HideToParent 
HoverEnter 
HoverLeave 
HoverMove 
IconDrag 
IconTextChange 
InputMethod 
InputMethodQuery 
KeyboardLayoutChange 
KeyPress 
KeyRelease 
LanguageChange 
LayoutDirectionChange 
LayoutRequest 
Leave 
LeaveEditFocus 
LeaveWhatsThisMode 
LocaleChange 
NonClientAreaMouseButtonDblClick 
NonClientAreaMouseButtonPress 
NonClientAreaMouseButtonRelease 
NonClientAreaMouseMove 
MacSizeChange 
MetaCall 
ModifiedChange 
MouseButtonDblClick 
MouseButtonPress 
MouseButtonRelease 
MouseMove 
MouseTrackingChange 
Move 
OrientationChange 
Paint 
PaletteChange 
ParentAboutToChange 
ParentChange 
PlatformPanel 
Polish 
PolishRequest 
QueryWhatsThis 
RequestSoftwareInputPanel 
Resize 
ScrollPrepare 
Scroll 
Shortcut 
ShortcutOverride 
Show 
ShowToParent 
SockAct 
StateMachineSignal 
StateMachineWrapped 
StatusTip 
StyleChange 
TabletMove 
TabletPress 
TabletRelease 
OkRequest 
TabletEnterProximity 
TabletLeaveProximity 
ThreadChange 
Timer 
ToolBarChange 
ToolTip 
ToolTipChange 
TouchBegin 
TouchCancel 
TouchEnd 
TouchUpdate 
UngrabKeyboard 
UngrabMouse 
UpdateLater 
UpdateRequest 
WhatsThis 
WhatsThisClicked 
Wheel 
WinEventAct 
WindowActivate 
WindowBlocked 
WindowDeactivate 
WindowIconChange 
WindowStateChange 
WindowTitleChange 
WindowUnblocked 
WinIdChange 
ZOrderChange 

Constructor & Destructor Documentation

◆ uiEventFilter()

uiEventFilter::uiEventFilter ( )

◆ ~uiEventFilter()

virtual uiEventFilter::~uiEventFilter ( )
virtual

Member Function Documentation

◆ addEventType()

void uiEventFilter::addEventType ( EventType  )

◆ attach()

void uiEventFilter::attach ( uiBaseObject )

◆ attachToQObj()

void uiEventFilter::attachToQObj ( QObject *  )

◆ detach()

void uiEventFilter::detach ( )

◆ getBlockEvent()

bool uiEventFilter::getBlockEvent ( ) const

◆ getCurrentEvent() [1/2]

QEvent* uiEventFilter::getCurrentEvent ( )

Only set when notifier is triggered.

◆ getCurrentEvent() [2/2]

const QEvent* uiEventFilter::getCurrentEvent ( ) const

Only set when notifier is triggered.

◆ getCurrentEventType()

EventType uiEventFilter::getCurrentEventType ( ) const

Only set when notifier is triggered.

◆ removeEventType()

void uiEventFilter::removeEventType ( EventType  )

◆ setBlockEvent()

void uiEventFilter::setBlockEvent ( bool  yn)

Member Data Documentation

◆ eventhappened

Notifier<uiEventFilter> uiEventFilter::eventhappened

◆ impl_

uiEventFilterImpl* uiEventFilter::impl_
protected

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