OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
uiVisMenuItemHandler Class Reference
Inheritance diagram for uiVisMenuItemHandler:
[legend]

Public Member Functions

 uiVisMenuItemHandler (const char *classnm, uiVisPartServer &, const uiString &mnutext, const CallBack &cb, const char *parenttext=0, int placement=-1)
 
 ~uiVisMenuItemHandler ()
 
VisID getDisplayID () const
 
- Public Member Functions inherited from MenuItemHandler
 MenuItemHandler (MenuHandler &, const uiString &nm, const CallBack &, const char *parenttxt=0, int placement=-1)
 
 ~MenuItemHandler ()
 
void setIcon (const char *fnm)
 
- 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 ()
 

Protected Member Functions

bool shouldAddMenu () const
 
- Protected Member Functions inherited from MenuItemHandler
virtual void createMenuCB (CallBacker *)
 
virtual void handleMenuCB (CallBacker *)
 
virtual bool shouldBeChecked () const
 
virtual bool shouldBeEnabled () const
 

Protected Attributes

const char * classnm_
 
uiVisPartServervisserv_
 
- Protected Attributes inherited from MenuItemHandler
CallBack cb_
 
MenuHandlermenuhandler_
 
MenuItem menuitem_
 
BufferString parenttext_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Public Attributes inherited from MenuItemHandler
bool doadd_
 
bool ischecked_
 
bool isenabled_
 

Detailed Description

Adds a menu-item to a visual object's right-click menu. Menu item will be added to all visual objects of a certain type.

Usage example:

uiVisMenuItemHandler( visSurvey::WellDisplay::getStaticClassName(),
vispartserver_, tr("My menu text"),
mCB(this,MyClass,myFuncCB) );
uiVisMenuItemHandler(const char *classnm, uiVisPartServer &, const uiString &mnutext, const CallBack &cb, const char *parenttext=0, int placement=-1)

<>

Constructor & Destructor Documentation

◆ uiVisMenuItemHandler()

uiVisMenuItemHandler::uiVisMenuItemHandler ( const char *  classnm,
uiVisPartServer ,
const uiString mnutext,
const CallBack cb,
const char *  parenttext = 0,
int  placement = -1 
)

◆ ~uiVisMenuItemHandler()

uiVisMenuItemHandler::~uiVisMenuItemHandler ( )

Member Function Documentation

◆ getDisplayID()

VisID uiVisMenuItemHandler::getDisplayID ( ) const

Does only give a valid answer if called from cb.

◆ shouldAddMenu()

bool uiVisMenuItemHandler::shouldAddMenu ( ) const
protectedvirtual

Reimplemented from MenuItemHandler.

Member Data Documentation

◆ classnm_

const char* uiVisMenuItemHandler::classnm_
protected

◆ visserv_

uiVisPartServer& uiVisMenuItemHandler::visserv_
protected

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