Medical Imaging Interaction Toolkit  2023.12.99-3b10b122
Medical Imaging Interaction Toolkit
berry::IActionBars Struct Referenceabstract

#include <berryIActionBars.h>

Inheritance diagram for berry::IActionBars:
Collaboration diagram for berry::IActionBars:

Public Member Functions

 berryObjectMacro (berry::IActionBars)
 
virtual IMenuManagerGetMenuManager ()=0
 
virtual IServiceLocatorGetServiceLocator ()=0
 
virtual IStatusLineManager * GetStatusLineManager ()=0
 
virtual IToolBarManager * GetToolBarManager ()=0
 
virtual void UpdateActionBars ()=0
 
- Public Member Functions inherited from berry::Object
virtual QString GetClassName () const
 
virtual Reflection::TypeInfo GetTypeInfo () const
 
virtual QList< Reflection::TypeInfoGetSuperclasses () const
 
virtual void Delete ()
 
QDebug Print (QDebug os, Indent Indent=0) const
 
virtual QString ToString () const
 
virtual uint HashCode () const
 
virtual bool operator< (const Object *) const
 
void Register () const
 
void UnRegister (bool del=true) const
 
int GetReferenceCount () const
 
void SetReferenceCount (int)
 
void AddDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
void RemoveDestroyListener (const MessageAbstractDelegate<> &delegate) const
 
virtual bool operator== (const Object *) const
 

Additional Inherited Members

- Public Types inherited from berry::Object
typedef Object Self
 
typedef berry::SmartPointer< SelfPointer
 
typedef berry::SmartPointer< const SelfConstPointer
 
typedef berry::WeakPointer< SelfWeakPtr
 
typedef berry::WeakPointer< const SelfConstWeakPtr
 
- Static Public Member Functions inherited from berry::Object
static const char * GetStaticClassName ()
 
static Reflection::TypeInfo GetStaticTypeInfo ()
 
static QList< Reflection::TypeInfoGetStaticSuperclasses ()
 
- Protected Member Functions inherited from berry::Object
 Object ()
 
virtual ~Object ()
 
virtual QDebug PrintSelf (QDebug os, Indent indent) const
 
virtual QDebug PrintHeader (QDebug os, Indent indent) const
 
virtual QDebug PrintTrailer (QDebug os, Indent indent) const
 
- Protected Attributes inherited from berry::Object
QAtomicInt m_ReferenceCount
 
QMutex m_ReferenceCountLock
 

Detailed Description

Used by a part to access its menu, toolbar, and status line managers.

Within the workbench each part, editor or view, has a private set of action bars. This set, which contains a menu, toolbar, and status line, appears in the local toolbar for a view and in the window for an editor. The view may provide an implementation for pre-existing actions or add new actions to the action bars.

A part may also contribute new actions to the action bars as required. To do this, call GetMenuManager, GetToolBarManager, or GetStatusLineManager as appropriate to get the action target. Add the action(s) to the target and call update to commit any changes to the underlying widgets.

This interface is not intended to be implemented by clients.

Definition at line 46 of file berryIActionBars.h.

Member Function Documentation

◆ berryObjectMacro()

berry::IActionBars::berryObjectMacro ( berry::IActionBars  )

◆ GetMenuManager()

virtual IMenuManager* berry::IActionBars::GetMenuManager ( )
pure virtual

Returns the menu manager.

Note: Clients who add or remove items from the returned menu manager are responsible for calling updateActionBars so that the changes can be propagated throughout the workbench.

Returns
the menu manager

◆ GetServiceLocator()

virtual IServiceLocator* berry::IActionBars::GetServiceLocator ( )
pure virtual

Returns the service locator for these action bars. The locator is found by looking locally, and then ascending the action bar hierarchy.

Returns
The service locator; never null.

◆ GetStatusLineManager()

virtual IStatusLineManager* berry::IActionBars::GetStatusLineManager ( )
pure virtual

Returns the status line manager.

Note: Clients who add or remove items from the returned status line manager are responsible for calling updateActionBars so that the changes can be propagated throughout the workbench.

Returns
the status line manager

◆ GetToolBarManager()

virtual IToolBarManager* berry::IActionBars::GetToolBarManager ( )
pure virtual

Returns the tool bar manager.

Note: Clients who add or remove items from the returned tool bar manager are responsible for calling updateActionBars so that the changes can be propagated throughout the workbench.

Returns
the tool bar manager

◆ UpdateActionBars()

virtual void berry::IActionBars::UpdateActionBars ( )
pure virtual

Updates the action bars.

Clients who add or remove items from the menu, tool bar, or status line managers, or that update global action handlers, should call this method to propagated the changes throughout the workbench.


The documentation for this struct was generated from the following file: