OpendTect
7.0
|
Public Member Functions | |
MenuItemHolder () | |
virtual | ~MenuItemHolder () |
virtual void | addItem (MenuItem *, bool manage=false) |
MenuItem * | findItem (const char *) |
Seaches for untranslated text. More... | |
const MenuItem * | findItem (const char *) const |
Seaches for untranslated text. More... | |
MenuItem * | findItem (int id) |
const MenuItem * | findItem (int id) const |
MenuItem * | getItem (int idx) |
const MenuItem * | getItem (int idx) const |
const ObjectSet< MenuItem > & | getItems () const |
int | itemIndex (const MenuItem *) const |
int | itemIndex (int id) const |
int | nrItems () const |
void | removeItems () |
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 | |
Notifier< MenuItemHolder > | removal |
Protected Member Functions | |
virtual void | assignItemID (MenuItem &) |
void | itemIsDeletedCB (CallBacker *) |
Protected Attributes | |
MenuItemHolder * | parent_ |
Private Attributes | |
ObjectSet< MenuItem > | items_ |
BoolTypeSet | manageitems_ |
Friends | |
class | MenuHandler |
Additional Inherited Members | |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
<>
MenuItemHolder::MenuItemHolder | ( | ) |
|
virtual |
|
virtual |
manage | specified wether the class will delete the item when it's not needed any longer. Mostly used when doing:. |
Each item will get a unique id, that is the mechanism to see which item was selected in the menu.
|
protectedvirtual |
Get a unique id for this item.
Reimplemented in MenuHandler.
MenuItem* MenuItemHolder::findItem | ( | const char * | ) |
Seaches for untranslated text.
const MenuItem* MenuItemHolder::findItem | ( | const char * | ) | const |
Seaches for untranslated text.
MenuItem* MenuItemHolder::findItem | ( | int | id | ) |
const MenuItem* MenuItemHolder::findItem | ( | int | id | ) | const |
MenuItem* MenuItemHolder::getItem | ( | int | idx | ) |
const MenuItem* MenuItemHolder::getItem | ( | int | idx | ) | const |
int MenuItemHolder::itemIndex | ( | const MenuItem * | ) | const |
int MenuItemHolder::itemIndex | ( | int | id | ) | const |
|
protected |
int MenuItemHolder::nrItems | ( | ) | const |
void MenuItemHolder::removeItems | ( | ) |
|
friend |
|
private |
|
protected |
Notifier<MenuItemHolder> MenuItemHolder::removal |
triggers when class is deleted
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024