Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
#include <berryPropertyChangeEvent.h>
Public Member Functions | |
berryObjectMacro (PropertyChangeEvent) | |
PropertyChangeEvent (Object::Pointer source, const QString &property, Object::Pointer oldValue, Object::Pointer newValue) | |
Object::Pointer | GetNewValue () |
Object::Pointer | GetOldValue () |
QString | GetProperty () |
Object::Pointer | GetSource () |
Public Member Functions inherited from berry::Object | |
virtual QString | GetClassName () const |
virtual Reflection::TypeInfo | GetTypeInfo () const |
virtual QList< Reflection::TypeInfo > | GetSuperclasses () 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< Self > | Pointer |
typedef berry::SmartPointer< const Self > | ConstPointer |
typedef berry::WeakPointer< Self > | WeakPtr |
typedef berry::WeakPointer< const Self > | ConstWeakPtr |
Static Public Member Functions inherited from berry::Object | |
static const char * | GetStaticClassName () |
static Reflection::TypeInfo | GetStaticTypeInfo () |
static QList< Reflection::TypeInfo > | GetStaticSuperclasses () |
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 |
An event object describing a change to a named property.
This concrete class was designed to be instantiated, but may also be subclassed if required.
The JFace frameworks contain classes that report property change events for internal state changes that may be of interest to external parties. A special listener interface (IPropertyChangeListener
) is defined for this purpose, and a typical class allow listeners to be registered via an addPropertyChangeListener
method.
Definition at line 41 of file berryPropertyChangeEvent.h.
berry::PropertyChangeEvent::PropertyChangeEvent | ( | Object::Pointer | source, |
const QString & | property, | ||
Object::Pointer | oldValue, | ||
Object::Pointer | newValue | ||
) |
Creates a new property change event.
source | the object whose property has changed |
property | the property that has changed (must not be null ) |
oldValue | the old value of the property, or null if none |
newValue | the new value of the property, or null if none |
berry::PropertyChangeEvent::berryObjectMacro | ( | PropertyChangeEvent | ) |
Object::Pointer berry::PropertyChangeEvent::GetNewValue | ( | ) |
Returns the new value of the property.
null
if not known or not relevant (for instance if the property was removed). Object::Pointer berry::PropertyChangeEvent::GetOldValue | ( | ) |
Returns the old value of the property.
null
if not known or not relevant (for instance if the property was just added and there was no old value). QString berry::PropertyChangeEvent::GetProperty | ( | ) |
Returns the name of the property that changed.
Warning: there is no guarantee that the property name returned is a constant string. Callers must compare property names using equals, not ==.
Object::Pointer berry::PropertyChangeEvent::GetSource | ( | ) |
Returns the object whose property has changed