OpendTect-6_4  6.4
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 ()
 
int nrActions () const
 
const ObjectSet< uiAction > & actions () const
 
bool isEmpty () const
 
uiAction * findAction (const uiActionSeparString &)
 
uiAction * findAction (const char *itmtxt)
 
uiAction * findAction (const uiString &itmtxt)
 The full string of the text will be used. More...
 
uiAction * findAction (int id)
 
uiAction * findAction (const uiMenu *)
 
uiAction * findAction (const FixedString &fs)
 
int getID (const uiAction *) const
 
int getID (const mQtclass(QAction)*) const
 
int insertAction (uiAction *, int id=-1, const uiAction *before=0)
 
int insertAction (const MenuItem &)
 
uiMenuaddMenu (uiMenu *, const uiMenu *before=0)
 
uiAction * insertSeparator ()
 
void removeAction (uiAction *)
 
void removeAction (int id)
 
void removeAllActions ()
 
void reloadIcons ()
 
int insertItem (uiAction *a, int id=-1, const uiAction *before=0)
 Legacy. More...
 
int insertItem (uiMenu *mnu)
 
void removeItem (uiAction *a)
 Legacy. More...
 
void removeItem (int id)
 Legacy. More...
 

Protected Member Functions

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

Protected Attributes

ObjectSet< uiAction > actions_
 
TypeSet< int > ids_
 

Detailed Description

Constructor & Destructor Documentation

virtual uiActionContainer::~uiActionContainer ( )
virtual
uiActionContainer::uiActionContainer ( )
protected

Member Function Documentation

const ObjectSet<uiAction>& uiActionContainer::actions ( ) const
uiMenu* uiActionContainer::addMenu ( uiMenu ,
const uiMenu before = 0 
)

Becomes mine. Returns pointer to menu.

virtual void uiActionContainer::doClear ( )
protectedpure virtual

Implemented in uiMenu, and uiToolBar.

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

Implemented in uiMenu, and uiToolBar.

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

Implemented in uiMenu, and uiToolBar.

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

Implemented in uiMenu, and uiToolBar.

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

Implemented in uiMenu, and uiToolBar.

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

The full string of the text will be used.

uiAction* uiActionContainer::findAction ( int  id)
uiAction* uiActionContainer::findAction ( const uiMenu )
uiAction* uiActionContainer::findAction ( const FixedString fs)
inline
int uiActionContainer::getFreeID ( ) const
protected
int uiActionContainer::getID ( const uiAction *  ) const
int uiActionContainer::getID ( const mQtclass(QAction)*  ) const
int uiActionContainer::insertAction ( uiAction *  ,
int  id = -1,
const uiAction *  before = 0 
)
Parameters
uiAction*becomes mine.
idThe ID that is returned if the item is selected.
int uiActionContainer::insertAction ( const MenuItem )
int uiActionContainer::insertItem ( uiAction *  a,
int  id = -1,
const uiAction *  before = 0 
)
inline

Legacy.

int uiActionContainer::insertItem ( uiMenu mnu)

Legacy.

uiAction* uiActionContainer::insertSeparator ( )
bool uiActionContainer::isEmpty ( ) const
int uiActionContainer::nrActions ( ) const
void uiActionContainer::reloadIcons ( )
void uiActionContainer::removeAction ( uiAction *  )
void uiActionContainer::removeAction ( int  id)
void uiActionContainer::removeAllActions ( )
void uiActionContainer::removeItem ( uiAction *  a)
inline

Legacy.

void uiActionContainer::removeItem ( int  id)
inline

Legacy.

Member Data Documentation

ObjectSet<uiAction> uiActionContainer::actions_
protected
TypeSet<int> uiActionContainer::ids_
protected

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