-class RS_Selection {
-public:
- RS_Selection(RS_EntityContainer& entityContainer,
- RS_GraphicView* graphicView=NULL);
-
- void selectSingle(RS_Entity* e);
- void selectAll(bool select=true);
- void deselectAll() {
- selectAll(false);
- }
- void invertSelection();
- void selectWindow(const Vector& v1, const Vector& v2,
- bool select=true, bool cross=false);
- void deselectWindow(const Vector& v1, const Vector& v2) {
- selectWindow(v1, v2, false);
- }
- void selectIntersected(const Vector& v1, const Vector& v2,
- bool select=true);
- void deselectIntersected(const Vector& v1, const Vector& v2) {
- selectIntersected(v1, v2, false);
- }
- void selectContour(RS_Entity* e);
-
- void selectLayer(RS_Entity* e);
- void selectLayer(const QString& layerName, bool select=true);
- void deselectLayer(QString& layerName) {
- selectLayer(layerName, false);
- }
-
-protected:
- RS_EntityContainer* container;
- RS_Graphic* graphic;
- RS_GraphicView* graphicView;
+class RS_Selection
+{
+ public:
+ RS_Selection(RS_EntityContainer & entityContainer,
+ GraphicView * graphicView = NULL);
+
+ void selectSingle(RS_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(RS_Entity * e);
+ void selectLayer(RS_Entity * e);
+ void selectLayer(const QString & layerName, bool select = true);
+ void deselectLayer(QString & layerName);
+
+ protected:
+ RS_EntityContainer * container;
+ Drawing * graphic;
+ GraphicView * graphicView;