OpendTect  6.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
uiActionContainer Class Referenceabstract
Inheritance diagram for uiActionContainer:
[legend]

Public Member Functions

virtual ~uiActionContainer ()
 
const ObjectSet< uiAction > & actions () const
 
uiMenuaddMenu (uiMenu *, const uiMenu *before=0)
 
uiActionfindAction (const char *itmtxt)
 
uiActionfindAction (const FixedString &fs)
 
uiActionfindAction (const uiActionSeparString &)
 
uiActionfindAction (const uiMenu *)
 
uiActionfindAction (const uiString &itmtxt)
 The full string of the text will be used. More...
 
uiActionfindAction (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)
 
uiActioninsertSeparator ()
 
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 *)
 

Protected Member Functions

 uiActionContainer ()
 
virtual void doClear ()=0
 
virtual void doInsertAction (QAction *, QAction *before)=0
 
virtual void doInsertMenu (QMenu *, QAction *before)=0
 
virtual void doInsertSeparator (QAction *before)=0
 
virtual void doRemoveAction (QAction *)=0
 
int getFreeID () const
 

Protected Attributes

ObjectSet< uiActionactions_
 
TypeSet< int > ids_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ ~uiActionContainer()

virtual uiActionContainer::~uiActionContainer ( )
virtual

◆ uiActionContainer()

uiActionContainer::uiActionContainer ( )
protected

Member Function Documentation

◆ actions()

const ObjectSet<uiAction>& uiActionContainer::actions ( ) const

◆ addMenu()

uiMenu* uiActionContainer::addMenu ( uiMenu ,
const uiMenu before = 0 
)

Becomes mine. Returns pointer to menu.

◆ doClear()

virtual void uiActionContainer::doClear ( )
protectedpure virtual

Implemented in uiToolBar, uiMenu, and uiMenuBar.

◆ doInsertAction()

virtual void uiActionContainer::doInsertAction ( QAction *  ,
QAction *  before 
)
protectedpure virtual

Implemented in uiToolBar, uiMenu, and uiMenuBar.

◆ doInsertMenu()

virtual void uiActionContainer::doInsertMenu ( QMenu *  ,
QAction *  before 
)
protectedpure virtual

Implemented in uiToolBar, uiMenu, and uiMenuBar.

◆ doInsertSeparator()

virtual void uiActionContainer::doInsertSeparator ( QAction *  before)
protectedpure virtual

Implemented in uiToolBar, uiMenu, and uiMenuBar.

◆ doRemoveAction()

virtual void uiActionContainer::doRemoveAction ( QAction *  )
protectedpure virtual

Implemented in uiToolBar, uiMenu, and uiMenuBar.

◆ findAction() [1/6]

uiAction* uiActionContainer::findAction ( const char *  itmtxt)

◆ findAction() [2/6]

uiAction* uiActionContainer::findAction ( const FixedString fs)
inline

◆ findAction() [3/6]

uiAction* uiActionContainer::findAction ( const uiActionSeparString )

◆ findAction() [4/6]

uiAction* uiActionContainer::findAction ( const uiMenu )

◆ findAction() [5/6]

uiAction* uiActionContainer::findAction ( const uiString itmtxt)

The full string of the text will be used.

◆ findAction() [6/6]

uiAction* uiActionContainer::findAction ( int  id)

◆ getFreeID()

int uiActionContainer::getFreeID ( ) const
protected

◆ getID() [1/2]

int uiActionContainer::getID ( const QAction *  ) const

◆ getID() [2/2]

int uiActionContainer::getID ( const uiAction ) const

◆ hasSharedActions()

bool uiActionContainer::hasSharedActions ( ) const

◆ insertAction() [1/2]

int uiActionContainer::insertAction ( const MenuItem )

◆ insertAction() [2/2]

int uiActionContainer::insertAction ( uiAction act,
int  id = -1,
const uiAction before = 0 
)
Parameters
actbecomes mine.
idThe ID that is returned if the item is selected.
beforeInsert action before this one

◆ insertItem() [1/2]

int uiActionContainer::insertItem ( uiAction a,
int  id = -1,
const uiAction before = 0 
)
inline

◆ insertItem() [2/2]

int uiActionContainer::insertItem ( uiMenu mnu)

◆ insertSeparator()

uiAction* uiActionContainer::insertSeparator ( )

◆ isEmpty()

bool uiActionContainer::isEmpty ( ) const

◆ nrActions()

int uiActionContainer::nrActions ( ) const

◆ reloadIcons()

void uiActionContainer::reloadIcons ( )

◆ removeAction() [1/2]

void uiActionContainer::removeAction ( int  id)

◆ removeAction() [2/2]

void uiActionContainer::removeAction ( uiAction )

◆ removeAllActions()

void uiActionContainer::removeAllActions ( )

◆ removeItem() [1/2]

void uiActionContainer::removeItem ( int  id)
inline

Legacy.

◆ removeItem() [2/2]

void uiActionContainer::removeItem ( uiAction a)
inline

Legacy.

◆ shareActionsFrom()

void uiActionContainer::shareActionsFrom ( const uiActionContainer )

Member Data Documentation

◆ actions_

ObjectSet<uiAction> uiActionContainer::actions_
protected

◆ ids_

TypeSet<int> uiActionContainer::ids_
protected

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