X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fselection.h;fp=src%2Fbase%2Fselection.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=cbc426fc1ebd9f14c0f0f5c6437052ea805daf94;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/selection.h b/src/base/selection.h deleted file mode 100644 index cbc426f..0000000 --- a/src/base/selection.h +++ /dev/null @@ -1,44 +0,0 @@ -#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