Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryQtSelectionProvider.h>
Public Member Functions | |
berryObjectMacro (QtSelectionProvider) | |
QtSelectionProvider () | |
void | AddSelectionChangedListener (ISelectionChangedListener *listener) override |
void | RemoveSelectionChangedListener (ISelectionChangedListener *listener) override |
ISelection::ConstPointer | GetSelection () const override |
void | SetSelection (const ISelection::ConstPointer &selection) override |
virtual void | SetSelection (const ISelection::ConstPointer &selection, QItemSelectionModel::SelectionFlags) |
QItemSelection | GetQItemSelection () const |
void | SetQItemSelection (const QItemSelection &selection) |
QItemSelectionModel * | GetItemSelectionModel () const |
void | SetItemSelectionModel (QItemSelectionModel *combo) |
Public Member Functions inherited from berry::ISelectionProvider | |
berryObjectMacro (berry::ISelectionProvider)~ISelectionProvider() | |
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 |
Protected Slots | |
virtual void | FireSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
Protected Attributes | |
ISelectionChangedListener::Events | selectionEvents |
QItemSelectionModel * | qSelectionModel |
Protected Attributes inherited from berry::Object | |
QAtomicInt | m_ReferenceCount |
QMutex | m_ReferenceCountLock |
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 |
Definition at line 31 of file berryQtSelectionProvider.h.
berry::QtSelectionProvider::QtSelectionProvider | ( | ) |
Definition at line 26 of file berryQtSelectionProvider.cpp.
|
overridevirtual |
Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.
listener | a selection changed listener |
Implements berry::ISelectionProvider.
Definition at line 31 of file berryQtSelectionProvider.cpp.
References berry::ISelectionChangedListener::Events::AddListener(), and selectionEvents.
berry::QtSelectionProvider::berryObjectMacro | ( | QtSelectionProvider | ) |
|
protectedvirtualslot |
Reimplemented in QmitkDataNodeSelectionProvider.
Definition at line 102 of file berryQtSelectionProvider.cpp.
References GetQItemSelection(), berry::ISelectionChangedListener::Events::selectionChanged, and selectionEvents.
Referenced by SetItemSelectionModel().
QItemSelectionModel * berry::QtSelectionProvider::GetItemSelectionModel | ( | ) | const |
Definition at line 82 of file berryQtSelectionProvider.cpp.
References qSelectionModel.
QItemSelection berry::QtSelectionProvider::GetQItemSelection | ( | ) | const |
Definition at line 68 of file berryQtSelectionProvider.cpp.
References qSelectionModel.
Referenced by FireSelectionChanged().
|
overridevirtual |
Returns the current selection for this provider.
Implements berry::ISelectionProvider.
Reimplemented in QmitkDataNodeSelectionProvider.
Definition at line 41 of file berryQtSelectionProvider.cpp.
References qSelectionModel.
|
overridevirtual |
Removes the given selection change listener from this selection provider. Has no affect if an identical listener is not registered.
listener | a selection changed listener |
Implements berry::ISelectionProvider.
Definition at line 36 of file berryQtSelectionProvider.cpp.
References berry::ISelectionChangedListener::Events::RemoveListener(), and selectionEvents.
void berry::QtSelectionProvider::SetItemSelectionModel | ( | QItemSelectionModel * | combo | ) |
Definition at line 87 of file berryQtSelectionProvider.cpp.
References FireSelectionChanged(), and qSelectionModel.
void berry::QtSelectionProvider::SetQItemSelection | ( | const QItemSelection & | selection | ) |
Definition at line 76 of file berryQtSelectionProvider.cpp.
References qSelectionModel.
|
overridevirtual |
Sets the current selection for this selection provider.
selection | the new selection |
Implements berry::ISelectionProvider.
Definition at line 52 of file berryQtSelectionProvider.cpp.
|
virtual |
Definition at line 57 of file berryQtSelectionProvider.cpp.
References berry::SmartPointer< TObjectType >::Cast(), and qSelectionModel.
|
protected |
Definition at line 60 of file berryQtSelectionProvider.h.
Referenced by QmitkDataNodeSelectionProvider::GetDataNodeSelection(), GetItemSelectionModel(), GetQItemSelection(), GetSelection(), SetItemSelectionModel(), SetQItemSelection(), SetSelection(), and QmitkDataNodeSelectionProvider::SetSelection().
|
protected |
Definition at line 59 of file berryQtSelectionProvider.h.
Referenced by AddSelectionChangedListener(), QmitkDataNodeSelectionProvider::FireSelectionChanged(), FireSelectionChanged(), and RemoveSelectionChangedListener().