OpendTect
6.6
|
Public Member Functions | |
MenuItem (const uiString &text, CallBack cb, int placement=-1) | |
MenuItem (const uiString &text, const char *iconnm, const char *tooltip, CallBack cb=CallBack(), int placement=-1) | |
MenuItem (const uiString &text=uiString::emptyString(), int placement=-1) | |
void | createItems (const BufferStringSet &) |
void | createItems (const uiStringSet &) |
Public Member Functions inherited from MenuItemHolder | |
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 |
Public Attributes | |
CallBack | cb |
bool | checkable |
bool | checked |
bool | enabled |
BufferString | iconfnm |
int | id |
int | placement |
uiString | text |
BufferString | tooltip |
Public Attributes inherited from MenuItemHolder | |
Notifier< MenuItemHolder > | removal |
Additional Inherited Members | |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Protected Member Functions inherited from MenuItemHolder | |
virtual void | assignItemID (MenuItem &) |
void | itemIsDeletedCB (CallBacker *) |
Protected Attributes inherited from MenuItemHolder | |
MenuItemHolder * | parent_ |
A generic representation of an item in a menu.
<>
MenuItem::MenuItem | ( | const uiString & | text = uiString::emptyString() , |
int | placement = -1 |
||
) |
MenuItem::MenuItem | ( | const uiString & | text, |
const char * | iconnm, | ||
const char * | tooltip, | ||
CallBack | cb = CallBack() , |
||
int | placement = -1 |
||
) |
void MenuItem::createItems | ( | const BufferStringSet & | ) |
void MenuItem::createItems | ( | const uiStringSet & | ) |
CallBack MenuItem::cb |
bool MenuItem::checkable |
If true, a check-mark can be placed
bool MenuItem::checked |
If true, a check-mark will be put infront of the items text
bool MenuItem::enabled |
If false, the item will be visble, but not selectable.
BufferString MenuItem::iconfnm |
int MenuItem::id |
This item's unique id.
int MenuItem::placement |
Gives the system an indication where in the menu the item should be placed. Items will be placed in increasing order of placement.
uiString MenuItem::text |
BufferString MenuItem::tooltip |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022