Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
berry::CommandManagerEvent Class Reference

#include <berryCommandManagerEvent.h>

Inheritance diagram for berry::CommandManagerEvent:
Collaboration diagram for berry::CommandManagerEvent:

Public Member Functions

 berryObjectMacro (CommandManagerEvent)
 
 CommandManagerEvent (CommandManager &commandManager, const QString &commandId, const bool commandIdAdded, const bool commandIdChanged, const QString &categoryId, const bool categoryIdAdded, const bool categoryIdChanged)
 
 CommandManagerEvent (CommandManager &commandManager, const QString &parameterTypeId, const bool parameterTypeIdAdded, const bool parameterTypeIdChanged)
 
QString GetCategoryId () const
 
QString GetCommandId () const
 
CommandManagerGetCommandManager () const
 
QString GetParameterTypeId () const
 
bool IsCategoryChanged () const
 
bool IsCategoryDefined () const
 
bool IsCommandChanged () const
 
bool IsCommandDefined () const
 
bool IsParameterTypeChanged () const
 
bool IsParameterTypeDefined () const
 
- 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

An event indicating that the set of defined command identifiers has changed.

Since
3.1
See also
ICommandManagerListener::commandManagerChanged(CommandManagerEvent)

Definition at line 34 of file berryCommandManagerEvent.h.

Constructor & Destructor Documentation

◆ CommandManagerEvent() [1/2]

berry::CommandManagerEvent::CommandManagerEvent ( CommandManager commandManager,
const QString &  commandId,
const bool  commandIdAdded,
const bool  commandIdChanged,
const QString &  categoryId,
const bool  categoryIdAdded,
const bool  categoryIdChanged 
)

Creates a new CommandManagerEvent instance to describe changes to commands and/or categories.

Parameters
commandManagerthe instance of the interface that changed; must not be null.
commandIdThe command identifier that was added or removed; must not be null if commandIdChanged is true.
commandIdAddedWhether the command identifier became defined (otherwise, it became undefined).
commandIdChangedWhether the list of defined command identifiers has changed.
categoryIdThe category identifier that was added or removed; must not be null if categoryIdChanged is true.
categoryIdAddedWhether the category identifier became defined (otherwise, it became undefined).
categoryIdChangedWhether the list of defined category identifiers has changed.

◆ CommandManagerEvent() [2/2]

berry::CommandManagerEvent::CommandManagerEvent ( CommandManager commandManager,
const QString &  parameterTypeId,
const bool  parameterTypeIdAdded,
const bool  parameterTypeIdChanged 
)

Creates a new CommandManagerEvent instance to describe changes to command parameter types.

Parameters
commandManagerthe instance of the interface that changed; must not be null.
parameterTypeIdThe command parameter type identifier that was added or removed; must not be null if parameterTypeIdChanged is true.
parameterTypeIdAddedWhether the parameter type identifier became defined (otherwise, it became undefined).
parameterTypeIdChangedWhether the list of defined parameter type identifiers has changed.
Since
3.2

Member Function Documentation

◆ berryObjectMacro()

berry::CommandManagerEvent::berryObjectMacro ( CommandManagerEvent  )

◆ GetCategoryId()

QString berry::CommandManagerEvent::GetCategoryId ( ) const

Returns the category identifier that was added or removed.

Returns
The category identifier that was added or removed; may be null.

◆ GetCommandId()

QString berry::CommandManagerEvent::GetCommandId ( ) const

Returns the command identifier that was added or removed.

Returns
The command identifier that was added or removed; may be null.

◆ GetCommandManager()

CommandManager& berry::CommandManagerEvent::GetCommandManager ( ) const

Returns the instance of the interface that changed.

Returns
the instance of the interface that changed. Guaranteed not to be null.

◆ GetParameterTypeId()

QString berry::CommandManagerEvent::GetParameterTypeId ( ) const

Returns the command parameter type identifier that was added or removed.

Returns
The command parameter type identifier that was added or removed; may be null.
Since
3.2

◆ IsCategoryChanged()

bool berry::CommandManagerEvent::IsCategoryChanged ( ) const

Returns whether the list of defined category identifiers has changed.

Returns
true if the list of category identifiers has changed; false otherwise.

◆ IsCategoryDefined()

bool berry::CommandManagerEvent::IsCategoryDefined ( ) const

Returns whether the category identifier became defined. Otherwise, the category identifier became undefined.

Returns
true if the category identifier became defined; false if the category identifier became undefined.

◆ IsCommandChanged()

bool berry::CommandManagerEvent::IsCommandChanged ( ) const

Returns whether the list of defined command identifiers has changed.

Returns
true if the list of command identifiers has changed; false otherwise.

◆ IsCommandDefined()

bool berry::CommandManagerEvent::IsCommandDefined ( ) const

Returns whether the command identifier became defined. Otherwise, the command identifier became undefined.

Returns
true if the command identifier became defined; false if the command identifier became undefined.

◆ IsParameterTypeChanged()

bool berry::CommandManagerEvent::IsParameterTypeChanged ( ) const

Returns whether the list of defined command parameter type identifiers has changed.

Returns
true if the list of command parameter type identifiers has changed; false otherwise.
Since
3.2

◆ IsParameterTypeDefined()

bool berry::CommandManagerEvent::IsParameterTypeDefined ( ) const

Returns whether the command parameter type identifier became defined. Otherwise, the command parameter type identifier became undefined.

Returns
true if the command parameter type identifier became defined; false if the command parameter type identifier became undefined.
Since
3.2

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