OpendTect  7.0
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 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 *)
 

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_
 
bool hassharedactions_ = false
 
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() [1/2]

uiMenu* uiActionContainer::addMenu ( uiMenu ,
const uiAction before 
)

Becomes mine. Returns pointer to menu.

◆ addMenu() [2/2]

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]

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

◆ findAction() [2/6]

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

◆ findAction() [3/6]

const uiAction* uiActionContainer::findAction ( const uiActionSeparString ) const

◆ findAction() [4/6]

const uiAction* uiActionContainer::findAction ( const uiMenu ) const

◆ findAction() [5/6]

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

The full string of the text will be used.

◆ findAction() [6/6]

const uiAction* uiActionContainer::findAction ( int  id) const

◆ 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

◆ isMenu()

bool uiActionContainer::isMenu ( ) 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.

◆ removeMenu()

bool uiActionContainer::removeMenu ( uiMenu )

◆ shareActionsFrom()

void uiActionContainer::shareActionsFrom ( const uiActionContainer )

Member Data Documentation

◆ actions_

ObjectSet<uiAction> uiActionContainer::actions_
protected

◆ hassharedactions_

bool uiActionContainer::hassharedactions_ = false
protected

◆ ids_

TypeSet<int> uiActionContainer::ids_
protected

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