BlueBerry
A modular, cross-platform, C++ application framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
berry::QtSelectionProvider Class Reference

#include <berryQtSelectionProvider.h>

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

List of all members.

Public Member Functions

 berryObjectMacro (QtSelectionProvider) QtSelectionProvider()
void AddSelectionChangedListener (ISelectionChangedListener::Pointer listener)
void RemoveSelectionChangedListener (ISelectionChangedListener::Pointer listener)
ISelection::ConstPointer GetSelection () const
void SetSelection (ISelection::Pointer selection)
QItemSelection GetQItemSelection () const
void SetQItemSelection (const QItemSelection &selection)
QItemSelectionModel * GetItemSelectionModel () const
void SetItemSelectionModel (QItemSelectionModel *combo)

Protected Slots

virtual void FireSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected)

Protected Attributes

ISelectionChangedListener::Events selectionEvents
QItemSelectionModel * qSelectionModel

Detailed Description

Definition at line 31 of file berryQtSelectionProvider.h.


Member Function Documentation

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 34 of file berryQtSelectionProvider.cpp.

void berry::QtSelectionProvider::FireSelectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
) [protected, virtual, slot]
QItemSelectionModel * berry::QtSelectionProvider::GetItemSelectionModel ( ) const

Definition at line 91 of file berryQtSelectionProvider.cpp.

Definition at line 73 of file berryQtSelectionProvider.cpp.

Referenced by FireSelectionChanged().

Returns the current selection for this provider.

Returns:
the current selection

Implements berry::ISelectionProvider.

Definition at line 48 of file berryQtSelectionProvider.cpp.

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 41 of file berryQtSelectionProvider.cpp.

void berry::QtSelectionProvider::SetItemSelectionModel ( QItemSelectionModel *  combo)

Definition at line 96 of file berryQtSelectionProvider.cpp.

References FireSelectionChanged(), and qSelectionModel.

void berry::QtSelectionProvider::SetQItemSelection ( const QItemSelection &  selection)

Definition at line 83 of file berryQtSelectionProvider.cpp.

Sets the current selection for this selection provider.

Parameters:
selectionthe new selection

Implements berry::ISelectionProvider.

Definition at line 61 of file berryQtSelectionProvider.cpp.

References berry::SmartPointer< TObjectType >::Cast().


Member Data Documentation

QItemSelectionModel* berry::QtSelectionProvider::qSelectionModel [protected]

Definition at line 58 of file berryQtSelectionProvider.h.

Referenced by SetItemSelectionModel().


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