4 #include "rs_entitycontainer.h"
5 #include "rs_graphicview.h"
8 * API Class for selecting entities.
9 * There's no interaction handled in this class.
10 * This class is connected to an entity container and
11 * can be connected to a graphic view.
13 * @author Andrew Mustun
18 RS_Selection(RS_EntityContainer & entityContainer,
19 RS_GraphicView * graphicView = NULL);
21 void selectSingle(RS_Entity * e);
22 void selectAll(bool select = true);
24 void invertSelection();
25 void selectWindow(const Vector & v1, const Vector & v2,
26 bool select = true, bool cross = false);
27 void deselectWindow(const Vector & v1, const Vector & v2);
28 void selectIntersected(const Vector & v1, const Vector & v2,
30 void deselectIntersected(const Vector & v1, const Vector & v2);
31 void selectContour(RS_Entity * e);
32 void selectLayer(RS_Entity * e);
33 void selectLayer(const QString & layerName, bool select = true);
34 void deselectLayer(QString & layerName);
37 RS_EntityContainer * container;
39 RS_GraphicView * graphicView;