OpendTect
7.0
|
Public Member Functions | |
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 CallBacker * | trueCaller () |
Public Attributes | |
bool | doadd_ |
bool | ischecked_ |
bool | isenabled_ |
Protected Member Functions | |
virtual void | createMenuCB (CallBacker *) |
virtual void | handleMenuCB (CallBacker *) |
virtual bool | shouldAddMenu () const |
virtual bool | shouldBeChecked () const |
virtual bool | shouldBeEnabled () const |
Protected Attributes | |
CallBack | cb_ |
MenuHandler & | menuhandler_ |
MenuItem | menuitem_ |
BufferString | parenttext_ |
Additional Inherited Members | |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
handles the MenuItem insertion automaticly. If the menu is selected, a callback is triggered. Default behaviour is that the menu item is added every time the menu is built, and that it's enabled but not checked. That can be changes by setting the doadd_, isenabled_ and ischecked_ or by an inheriting object in the shouldAddMenu(), shouldBeEnabled() and shouldBeChecked() functions.
<>
MenuItemHandler::MenuItemHandler | ( | MenuHandler & | , |
const uiString & | nm, | ||
const CallBack & | , | ||
const char * | parenttxt = 0 , |
||
int | placement = -1 |
||
) |
MenuItemHandler::~MenuItemHandler | ( | ) |
|
protectedvirtual |
|
protectedvirtual |
void MenuItemHandler::setIcon | ( | const char * | fnm | ) |
|
inlineprotectedvirtual |
Reimplemented in uiPickSetPolygonMenuItemHandler, and uiVisMenuItemHandler.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
protected |
bool MenuItemHandler::doadd_ |
Item is added if true AND shouldAddMenu() retuns true. Default is true.
bool MenuItemHandler::ischecked_ |
Item is checked if true OR shouldBeChecked() retuns true. Default is false.
bool MenuItemHandler::isenabled_ |
Item is enabled if true AND shouldBeEnabled() retuns true. Default is true.
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024