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

Public Member Functions

void clear ()
 
QWidget * getWidget () override
 
bool isSensitive () const
 
void setSensitive (bool yn)
 
- Public Member Functions inherited from uiActionContainer
virtual ~uiActionContainer ()
 
const ObjectSet< uiAction > & actions () const
 
uiMenuaddMenu (uiMenu *, const uiAction *before)
 
uiMenuaddMenu (uiMenu *, const uiMenu *before=0)
 
const uiActionfindAction (const char *itmtxt) const
 
const uiActionfindAction (const StringView &fs) const
 
const uiActionfindAction (const uiActionSeparString &) const
 
const uiActionfindAction (const uiMenu *) const
 
const uiActionfindAction (const uiString &itmtxt) const
 The full string of the text will be used. More...
 
const uiActionfindAction (int id) const
 
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)
 
uiActioninsertSeparator ()
 
bool isEmpty () const
 
bool isMenu () 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...
 
bool removeMenu (uiMenu &)
 
void shareActionsFrom (const uiActionContainer *)
 
- Public Member Functions inherited from uiBaseObject
 uiBaseObject (const char *nm, uiBody *=0)
 
virtual ~uiBaseObject ()
 
int beginCmdRecEvent (const BufferString &msg)
 
int beginCmdRecEvent (const char *msg=0)
 
int beginCmdRecEvent (od_uint64 id, const char *msg=0)
 
uiBodybody ()
 
const uiBodybody () 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
 
void finalize ()
 
bool finalized () const
 
const QWidget * getWidget () const
 
virtual Notifier< uiBaseObject > & postFinalise ()
 
virtual Notifier< uiBaseObject > & postFinalize ()
 
virtual Notifier< uiBaseObject > & preFinalise ()
 
virtual Notifier< uiBaseObject > & preFinalize ()
 
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
 
virtual CallBackertrueCaller ()
 
- 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 &)
 
const name_typename () const override
 
NamedObjectoperator= (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
 

Protected Member Functions

 uiMenuBar (uiParent *, const char *nm)
 
 uiMenuBar (uiParent *, const char *nm, QMenuBar *)
 
 ~uiMenuBar ()
 
void doClear () override
 
void doInsertAction (QAction *, QAction *before) override
 
void doInsertMenu (QMenu *, QAction *before) override
 
void doInsertSeparator (QAction *before) override
 
void doRemoveAction (QAction *) override
 
- 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

QMenuBar * qmenubar_
 
- Protected Attributes inherited from uiActionContainer
ObjectSet< uiActionactions_
 
bool hassharedactions_ = false
 
TypeSet< int > ids_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Friends

class uiDialogBody
 
class uiMainWinBody
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- 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 ()
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ uiMenuBar() [1/2]

uiMenuBar::uiMenuBar ( uiParent ,
const char *  nm 
)
protected

◆ uiMenuBar() [2/2]

uiMenuBar::uiMenuBar ( uiParent ,
const char *  nm,
QMenuBar *   
)
protected

◆ ~uiMenuBar()

uiMenuBar::~uiMenuBar ( )
protected

Member Function Documentation

◆ clear()

void uiMenuBar::clear ( )
inline

◆ doClear()

void uiMenuBar::doClear ( )
overrideprotectedvirtual

Implements uiActionContainer.

◆ doInsertAction()

void uiMenuBar::doInsertAction ( QAction *  ,
QAction *  before 
)
overrideprotectedvirtual

Implements uiActionContainer.

◆ doInsertMenu()

void uiMenuBar::doInsertMenu ( QMenu *  ,
QAction *  before 
)
overrideprotectedvirtual

Implements uiActionContainer.

◆ doInsertSeparator()

void uiMenuBar::doInsertSeparator ( QAction *  before)
overrideprotectedvirtual

Implements uiActionContainer.

◆ doRemoveAction()

void uiMenuBar::doRemoveAction ( QAction *  )
overrideprotectedvirtual

Implements uiActionContainer.

◆ getWidget()

QWidget* uiMenuBar::getWidget ( )
overridevirtual

Reimplemented from uiBaseObject.

◆ isSensitive()

bool uiMenuBar::isSensitive ( ) const

◆ setSensitive()

void uiMenuBar::setSensitive ( bool  yn)

Works on complete menubar

Friends And Related Function Documentation

◆ uiDialogBody

friend class uiDialogBody
friend

◆ uiMainWinBody

friend class uiMainWinBody
friend

Member Data Documentation

◆ qmenubar_

QMenuBar* uiMenuBar::qmenubar_
protected

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