+++ /dev/null
-#ifndef __SELECTION_H__
-#define __SELECTION_H__
-
-#include "entitycontainer.h"
-
-class Drawing;
-class GraphicView;
-
-/**
- * API Class for selecting entities.
- * There's no interaction handled in this class.
- * This class is connected to an entity container and
- * can be connected to a graphic view.
- *
- * @author Andrew Mustun
- */
-class Selection
-{
- public:
- Selection(EntityContainer & entityContainer,
- GraphicView * graphicView = NULL);
-
- void selectSingle(Entity * e);
- void selectAll(bool select = true);
- void deselectAll();
- void invertSelection();
- void selectWindow(const Vector & v1, const Vector & v2,
- bool select = true, bool cross = false);
- void deselectWindow(const Vector & v1, const Vector & v2);
- void selectIntersected(const Vector & v1, const Vector & v2,
- bool select = true);
- void deselectIntersected(const Vector & v1, const Vector & v2);
- void selectContour(Entity * e);
- void selectLayer(Entity * e);
- void selectLayer(const QString & layerName, bool select = true);
- void deselectLayer(QString & layerName);
-
- protected:
- EntityContainer * container;
- Drawing * graphic;
- GraphicView * graphicView;
-};
-
-#endif