Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <berryIntroPart.h>
Public Member Functions | |
void | AddPropertyListener (IPropertyChangeListener *l) override |
~IntroPart () override | |
IIntroSite::Pointer | GetIntroSite () const override |
QIcon | GetTitleImage () const override |
QString | GetPartName () const override |
void | Init (IIntroSite::Pointer site, IMemento::Pointer memento) override |
void | RemovePropertyListener (IPropertyChangeListener *l) override |
void | SaveState (IMemento::Pointer memento) override |
void | SetInitializationData (const IConfigurationElement::Pointer &cfig, const QString &propertyName, const Object::Pointer &data) override |
Public Member Functions inherited from berry::IIntroPart | |
berryObjectMacro (berry::IIntroPart) | |
~IIntroPart () override | |
virtual void | StandbyStateChanged (bool standby)=0 |
virtual void | CreatePartControl (void *parent)=0 |
virtual void | SetFocus ()=0 |
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 |
Public Member Functions inherited from berry::IExecutableExtension | |
virtual | ~IExecutableExtension () |
virtual void | SetInitializationData (const SmartPointer< IConfigurationElement > &config, const QString &propertyName, const Object::Pointer &data)=0 |
Protected Member Functions | |
void | FirePropertyChange (int propertyId) |
IConfigurationElement::Pointer | GetConfigurationElement () |
QIcon | GetDefaultImage () const |
void | SetSite (IIntroSite::Pointer site) |
void | SetTitleImage (const QIcon &titleImage) |
void | SetTitle (const QString &titleLabel) |
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 |
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 Attributes inherited from berry::Object | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
Abstract base implementation of an intro part.
Subclasses must implement the following methods:
CreatePartControl
- to create the intro part's controls SetFocus
- to accept focus StandbyStateChanged
- to change the standby mode Subclasses may extend or reimplement the following methods as required:
SetInitializationData
- extend to provide additional initialization when the intro extension is instantiated Init(IIntroSite::Pointer, IMemento::Pointer)
- extend to provide additional initialization when intro is assigned its site GetAdapter
- reimplement to make their intro adaptable Definition at line 52 of file berryIntroPart.h.
|
override |
The IntroPart
implementation of this IIntroPart
method disposes the title image loaded by setInitializationData
. Subclasses may extend.
|
overridevirtual |
Adds a listener for changes to properties of this intro part. Has no effect if an identical listener is already registered.
listener | a property listener |
Implements berry::IIntroPart.
|
protected |
Fires a property changed event.
propertyId | the id of the property that changed |
|
protected |
Returns the configuration element for this part. The configuration element comes from the plug-in registry entry for the extension defining this part.
|
protected |
Returns the default title image.
|
overridevirtual |
|
overridevirtual |
Returns the title of this intro part.
The title is used to populate the title bar of this part's visual container.
null
) Implements berry::IIntroPart.
|
overridevirtual |
Returns the title image of this intro part.
The title image is usually used to populate the title bar of this part's visual container. Since this image is managed by the part itself, callers must not dispose the returned image.
Implements berry::IIntroPart.
|
overridevirtual |
The base implementation of this IIntroPart method ignores the memento and initializes the part in a fresh state. Subclasses may extend to perform any state restoration, but must call the super method.
site | the intro site |
memento | the intro part state or null if there is no previous saved state |
PartInitException | if this part was not initialized successfully |
Implements berry::IIntroPart.
|
overridevirtual |
Removes the given property listener from this intro part. Has no affect if an identical listener is not registered.
listener | a property listener |
Implements berry::IIntroPart.
|
overridevirtual |
The base implementation of this IIntroPart method does nothing. Subclasses may override.
memento | a memento to receive the object state |
Implements berry::IIntroPart.
|
override |
The IntroPart
implementation of this IExecutableExtension
records the configuration element in and internal state variable (accessible via getConfigElement
). It also loads the title image, if one is specified in the configuration element. Subclasses may extend.
Should not be called by clients. It is called by the core plugin when creating this executable extension.
|
protected |
Sets the part site.
Subclasses must invoke this method from IIntroPart#Init.
site | the intro part site |
|
protected |
Set the title string for this part.
titleLabel | the title string. Must not be null . |
|
protected |
Sets or clears the title image of this part.
titleImage | the title image, or null to clear |