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

#include <berryISelectionProvider.h>

+ Inheritance diagram for berry::ISelectionProvider:
+ Collaboration diagram for berry::ISelectionProvider:

List of all members.

Public Member Functions

 berryInterfaceMacro (ISelectionProvider, berry)~ISelectionProvider()
virtual void AddSelectionChangedListener (ISelectionChangedListener::Pointer listener)=0
virtual ISelection::ConstPointer GetSelection () const =0
virtual void RemoveSelectionChangedListener (ISelectionChangedListener::Pointer listener)=0
virtual void SetSelection (ISelection::Pointer selection)=0

Detailed Description

Interface common to all objects that provide a selection.

See also:
ISelection
ISelectionChangedListener
SelectionChangedEvent

Definition at line 37 of file berryISelectionProvider.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

Implemented in berry::QtSelectionProvider.

Returns the current selection for this provider.

Returns:
the current selection

Implemented in berry::QtSelectionProvider.

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

Implemented in berry::QtSelectionProvider.

virtual void berry::ISelectionProvider::SetSelection ( ISelection::Pointer  selection) [pure virtual]

Sets the current selection for this selection provider.

Parameters:
selectionthe new selection

Implemented in berry::QtSelectionProvider.


The documentation for this struct was generated from the following file: