Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Examples  

QSSelection Class Reference

Holds a list of selected objects for QSPlotView. More...

#include <qsplotview.h>

Inheritance diagram for QSSelection:

Inheritance graph
List of all members.

Public Methods

 QSSelection (QObject *parent=NULL)
virtual ~QSSelection ()
QSCObjectCollectioncollection () const
QSCObjectCollectionrootCollection () const
void set (QSCObject *object)
void turn (QSCObject *object)
virtual void insert (int position, QSCObject *object)
virtual void remove (int index)

Detailed Description

Holds a list of selected objects for QSPlotView.

Notice that selection doesn't own its objects, so QSCObject::colection() doesn't return selection but some other collection ( QSPage::objects() for example ) which the object belongs to. Only object which belongs to the same collection can be selected at one time. Before an object from another collection is added selection is cleared.

Constructor & Destructor Documentation

QSSelection::QSSelection QObject *    parent = NULL


virtual QSSelection::~QSSelection   [virtual]


Member Function Documentation

QSCObjectCollection* QSSelection::collection   const [inline]

Returns the selection default collection.

virtual void QSSelection::insert int    position,
QSCObject   object

Adds object to a selection

Reimplemented from QSCObjectCollection.

virtual void QSSelection::remove int    index [virtual]

Removes selected object from the selection

Reimplemented from QSCObjectCollection.

QSCObjectCollection* QSSelection::rootCollection   const [inline]

Returns the selection default collection.

void QSSelection::set QSCObject   object

Set selection to this object.

void QSSelection::turn QSCObject   object

Adds a new object to the selection or removes selected object.

The documentation for this class was generated from the following file:
Generated on Mon Mar 18 19:16:56 2002 for KMatplot library by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002