X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcontainer.h;h=d04f6bfd49d44c2b44ba5eb4d8e1c2dc630b69d2;hb=dbfab6256efe6b03e9750e33081d9dcdcdfc1c34;hp=e7bf355217d82d6c7d8a7528797b2ca917e600ec;hpb=eb0057e8a8145032152e4c417fcd102ef5a21484;p=architektonas diff --git a/src/container.h b/src/container.h index e7bf355..d04f6bf 100644 --- a/src/container.h +++ b/src/container.h @@ -20,20 +20,40 @@ class Container: public Object virtual void PointerReleased(void); virtual bool NeedsUpdate(void); virtual void Add(Object *); + virtual QRectF Extents(void); virtual void Enumerate(FILE *); + virtual Object * Copy(void); + virtual void Rotate(Point, double); + virtual void RotateSelected(Point, double); + virtual void Mirror(Point, Point); + virtual void MirrorSelected(Point, Point); + virtual void Save(void); + virtual void Restore(void); + void Delete(Object *); + void DeleteSelectedItems(void); void Clear(void); + void SelectAll(void); + void DeselectAll(void); + int ItemsSelected(void); + Object * SelectedItem(unsigned int); + void MoveContentsTo(Container *); + void CopyContentsTo(Container *); + void MoveSelectedContentsTo(Container *); + void CopySelectedContentsTo(Container *); + void ResizeAllDimensions(double); protected: Vector oldPoint; // Used for dragging public: std::vector objects; + bool isTopLevelContainer; private: bool dragging; bool draggingHandle1; bool draggingHandle2; -// bool needUpdate; bool objectWasDragged; + bool hit; }; #endif // __CONTAINER_H__