VElementSelectionChangedEvent Class Reference

#include <diagramviewevents.h>

Inheritance diagram for VElementSelectionChangedEvent:

VDiagramEvent VElementDocEvent VAttributeDocEvent VDocEvent VEvent MvcEvent List of all members.

Public Member Functions

 VElementSelectionChangedEvent (const AbstractElementSet &addedToSelection, const AbstractElementSet &removedFromSelection, MvcBase *sender)
const AbstractElementSetaddedToSelection ()
const AbstractElementSetremovedFromSelection ()

Detailed Description

The data that event provides dramatically simplifies the selection handler code for views (vs. just telling it the new selection) and isn't much of a burden on the DiagramController either.

Users often want to add or remove one item to or from a selection at a time, so this structure is very efficient.

The entire selection can still retrieved from DiagramController::elementSelection().

Note: QSet has been used instead of QList, as the element order does not matter, it removes duplicates automatically and (obviously) provides set operations that are very useful when adding and removing items from selections (it's lookup speed is also very good).


Constructor & Destructor Documentation

VElementSelectionChangedEvent::VElementSelectionChangedEvent ( const AbstractElementSet addedToSelection,
const AbstractElementSet removedFromSelection,
MvcBase sender 
) [inline]


Member Function Documentation

const AbstractElementSet& VElementSelectionChangedEvent::addedToSelection (  )  [inline]

const AbstractElementSet& VElementSelectionChangedEvent::removedFromSelection (  )  [inline]


The documentation for this class was generated from the following file:
Generated on Mon Jul 30 09:46:53 2007 for Digest by  doxygen 1.5.2