OpendTect
6.6
|
Public Member Functions | |
uiMenu (const char *mnunm, const char *iconnm=nullptr) | |
uiMenu (const MenuItem &) | |
uiMenu (const uiString &txt=uiString::emptyString(), const char *iconnm=0) | |
uiMenu (uiParent *, const uiString &txt=uiString::emptyString(), const char *iconfilenm=0) | |
uiMenu (uiParent *p, const char *mnunm, const char *iconnm=nullptr) | |
~uiMenu () | |
void | addItems (const ObjectSet< MenuItem > &) |
void | clear () |
void | doIntercept (bool yn, uiAction *activateitm=0) |
int | exec () |
pops-up at mouse position More... | |
const char * | getIconName () const |
QMenu * | getQMenu () |
QWidget * | getWidget () |
bool | isCheckable () const |
bool | isChecked () const |
bool | isEnabled () const |
bool | isStandAlone () const |
void | setCheckable (bool) |
void | setChecked (bool) |
void | setEnabled (bool) |
void | setIcon (const char *iconnm) |
void | setIcon (const uiIcon &) |
void | setText (const uiString &) |
const uiString & | text () const |
Public Member Functions inherited from uiActionContainer | |
virtual | ~uiActionContainer () |
const ObjectSet< uiAction > & | actions () const |
uiMenu * | addMenu (uiMenu *, const uiMenu *before=0) |
uiAction * | findAction (const char *itmtxt) |
uiAction * | findAction (const FixedString &fs) |
uiAction * | findAction (const uiActionSeparString &) |
uiAction * | findAction (const uiMenu *) |
uiAction * | findAction (const uiString &itmtxt) |
The full string of the text will be used. More... | |
uiAction * | findAction (int id) |
int | getID (const QAction *) const |
int | getID (const uiAction *) const |
bool | hasSharedActions () const |
int | insertAction (const MenuItem &) |
int | insertAction (uiAction *act, int id=-1, const uiAction *before=0) |
int | insertItem (uiAction *a, int id=-1, const uiAction *before=0) |
int | insertItem (uiMenu *mnu) |
uiAction * | insertSeparator () |
bool | isEmpty () const |
int | nrActions () const |
void | reloadIcons () |
void | removeAction (int id) |
void | removeAction (uiAction *) |
void | removeAllActions () |
void | removeItem (int id) |
Legacy. More... | |
void | removeItem (uiAction *a) |
Legacy. More... | |
void | shareActionsFrom (const uiActionContainer *) |
Public Member Functions inherited from uiBaseObject | |
uiBaseObject (const char *nm, uiBody *=0) | |
virtual | ~uiBaseObject () |
int | beginCmdRecEvent (const char *msg=0) |
int | beginCmdRecEvent (od_uint64 id, const char *msg=0) |
uiBody * | body () |
const uiBody * | body () const |
void | clear () |
void | endCmdRecEvent (int refnr, const char *msg=0) |
void | endCmdRecEvent (od_uint64 id, int refnr, const char *msg=0) |
void | finalise () |
bool | finalised () const |
const QWidget * | getWidget () const |
virtual Notifier< uiBaseObject > & | postFinalise () |
virtual Notifier< uiBaseObject > & | preFinalise () |
virtual void | translateText () |
Public Member Functions inherited from NamedCallBacker | |
NamedCallBacker (const char *nm=0) | |
NamedCallBacker (const NamedCallBacker &) | |
virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
bool | operator== (const NamedCallBacker &oth) const |
bool | operator== (const NamedObject &oth) const |
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 Member Functions inherited from NamedObject | |
NamedObject (const char *nm=nullptr) | |
NamedObject (const NamedObject &oth) | |
virtual | ~NamedObject () |
virtual BufferString | getName () const |
bool | getNameFromPar (const IOPar &) |
virtual const name_type & | name () const |
NamedObject & | operator= (const NamedObject &) |
bool | operator== (const NamedObject &oth) const |
virtual void | setName (const char *nm) |
Public Member Functions inherited from ObjectWithName | |
virtual | ~ObjectWithName () |
bool | hasName (const char *nm) const |
bool | hasName (const name_type &nm) const |
void | putNameInPar (IOPar &) const |
Static Public Member Functions | |
static void | addInterceptor (const CallBack &) |
Not for casual use. More... | |
static void | removeInterceptor (const CallBack &) |
Static Public Member Functions inherited from uiBaseObject | |
static void | addCmdRecorder (const CallBack &) |
static void | removeCmdRecorder (const CallBack &) |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Private Member Functions | |
void | doClear () |
void | doInsertAction (QAction *, QAction *before) |
void | doInsertMenu (QMenu *, QAction *before) |
void | doInsertSeparator (QAction *before) |
void | doRemoveAction (QAction *) |
void | setAction (uiAction *) |
void | useStyleSheet () |
Private Attributes | |
bool | dointercept_ |
BufferString | iconnm_ |
uiAction * | interceptaction_ |
QMenu * | qmenu_ |
uiAction * | submenuaction_ |
uiString | text_ |
Friends | |
class | uiAction |
Additional Inherited Members | |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
Protected Member Functions inherited from uiActionContainer | |
uiActionContainer () | |
int | getFreeID () const |
Protected Member Functions inherited from uiBaseObject | |
void | setBody (uiBody *b) |
Protected Member Functions inherited from NamedCallBacker | |
void | sendDelNotif () const |
Protected Attributes inherited from uiActionContainer | |
ObjectSet< uiAction > | actions_ |
TypeSet< int > | ids_ |
Protected Attributes inherited from uiBaseObject | |
Notifier< uiBaseObject > | finaliseDone |
triggered when finalising finished More... | |
Notifier< uiBaseObject > | finaliseStart |
triggered when about to start finalising More... | |
Protected Attributes inherited from NamedCallBacker | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
A standard menu. If you create one yourself, you own it and should delete it. If you insert it into a menu or toolbar, ownership is transfered.
<>
uiMenu::uiMenu | ( | const uiString & | txt = uiString::emptyString() , |
const char * | iconnm = 0 |
||
) |
uiMenu::uiMenu | ( | const MenuItem & | ) |
uiMenu::~uiMenu | ( | ) |
uiMenu::uiMenu | ( | uiParent * | , |
const uiString & | txt = uiString::emptyString() , |
||
const char * | iconfilenm = 0 |
||
) |
|
inline |
|
inline |
|
static |
Not for casual use.
|
inline |
|
privatevirtual |
Implements uiActionContainer.
|
privatevirtual |
Implements uiActionContainer.
|
privatevirtual |
Implements uiActionContainer.
|
privatevirtual |
Implements uiActionContainer.
void uiMenu::doIntercept | ( | bool | yn, |
uiAction * | activateitm = 0 |
||
) |
|
privatevirtual |
Implements uiActionContainer.
int uiMenu::exec | ( | ) |
pops-up at mouse position
The return code is the id of the selected item in either the popup menu or one of its submenus, or -1 if no item is selected (normally because the user presses Escape).
const char* uiMenu::getIconName | ( | ) | const |
|
inline |
|
virtual |
Reimplemented from uiBaseObject.
bool uiMenu::isCheckable | ( | ) | const |
bool uiMenu::isChecked | ( | ) | const |
bool uiMenu::isEnabled | ( | ) | const |
|
inline |
|
static |
|
private |
void uiMenu::setCheckable | ( | bool | ) |
void uiMenu::setChecked | ( | bool | ) |
void uiMenu::setEnabled | ( | bool | ) |
void uiMenu::setIcon | ( | const char * | iconnm | ) |
void uiMenu::setIcon | ( | const uiIcon & | ) |
void uiMenu::setText | ( | const uiString & | ) |
const uiString& uiMenu::text | ( | ) | const |
|
private |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022