Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berry::QtSelectionProvider Class Reference

#include <berryQtSelectionProvider.h>

Inheritance diagram for berry::QtSelectionProvider:
Collaboration diagram for berry::QtSelectionProvider:

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::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
 

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< 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
 

Detailed Description

Definition at line 31 of file berryQtSelectionProvider.h.

Constructor & Destructor Documentation

berry::QtSelectionProvider::QtSelectionProvider ( )

Definition at line 26 of file berryQtSelectionProvider.cpp.

Member Function Documentation

void berry::QtSelectionProvider::AddSelectionChangedListener ( ISelectionChangedListener listener)
overridevirtual

Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.

Parameters
listenera 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  )
void berry::QtSelectionProvider::FireSelectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
protectedvirtualslot
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().

ISelection::ConstPointer berry::QtSelectionProvider::GetSelection ( ) const
overridevirtual

Returns the current selection for this provider.

Returns
the current selection

Implements berry::ISelectionProvider.

Reimplemented in QmitkDataNodeSelectionProvider.

Definition at line 41 of file berryQtSelectionProvider.cpp.

References qSelectionModel.

void berry::QtSelectionProvider::RemoveSelectionChangedListener ( ISelectionChangedListener listener)
overridevirtual

Removes the given selection change listener from this selection provider. Has no affect if an identical listener is not registered.

Parameters
listenera 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.

void berry::QtSelectionProvider::SetSelection ( const ISelection::ConstPointer selection)
overridevirtual

Sets the current selection for this selection provider.

Parameters
selectionthe new selection

Implements berry::ISelectionProvider.

Definition at line 52 of file berryQtSelectionProvider.cpp.

void berry::QtSelectionProvider::SetSelection ( const ISelection::ConstPointer selection,
QItemSelectionModel::SelectionFlags  flags 
)
virtual

Member Data Documentation


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