OpendTect-6_4  6.4
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
UserActionHandler Class Reference
Inheritance diagram for UserActionHandler:
[legend]

Public Member Functions

int visID () const
 
bool isHandled () const
 
void setHandled (bool)
 
- Public Member Functions inherited from UserActionGroup
virtual ~UserActionGroup ()
 
virtual void addAction (UserAction *, bool manage=false)
 
virtual bool canAddGroup () const
 
virtual void addGroup (UserActionGroup *, bool manage=false)
 
virtual void removeAll ()
 

Public Attributes

Notifier< UserActionHandlercreatenotifier
 
CNotifier< UserActionHandler, int > handlenotifier
 

Protected Member Functions

 UserActionHandler (int visid)
 
int getFreeID ()
 

Protected Attributes

int freeid_
 
int visid_
 
bool ishandled_
 
- Protected Attributes inherited from UserActionGroup
ObjectSet< UserActionactions_
 
BoolTypeSet actionsownership_
 
ObjectSet< UserActionGroupgroups_
 
BoolTypeSet groupsowership_
 

Detailed Description

Constructor & Destructor Documentation

UserActionHandler::UserActionHandler ( int  visid)
protected

Member Function Documentation

int UserActionHandler::getFreeID ( )
protected
bool UserActionHandler::isHandled ( ) const

Should be called as the first thing from callbacks that is triggered from handlenotifier. If isHandled() returns true, the callback should return immediately.

void UserActionHandler::setHandled ( bool  )

Should be called from callbacks that are triggered from handlenotifier if they have found the menu id they are looking for.

int UserActionHandler::visID ( ) const

Member Data Documentation

Notifier<UserActionHandler> UserActionHandler::createnotifier
int UserActionHandler::freeid_
protected
CNotifier<UserActionHandler,int> UserActionHandler::handlenotifier
bool UserActionHandler::ishandled_
protected
int UserActionHandler::visid_
protected

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