X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcontainer.h;h=7d5ef4cf8e01f4873347ca8325d982793b60b616;hb=4bc000ba003a53fb11428a2eb71e3b4471a15c7a;hp=a5322896e59b85d782e20e69f3f7d320a32d2df3;hpb=ba6723b86d8dd67ebc7b11b245de3e7ff64f06b1;p=architektonas diff --git a/src/container.h b/src/container.h index a532289..7d5ef4c 100644 --- a/src/container.h +++ b/src/container.h @@ -16,34 +16,47 @@ class Container: public Object virtual void Draw(Painter *); virtual Vector Center(void); virtual bool Collided(Vector); - virtual void PointerMoved(Vector); + virtual bool PointerMoved(Vector); virtual void PointerReleased(void); virtual bool NeedsUpdate(void); virtual void Add(Object *); + virtual QRectF Extents(void); virtual void Enumerate(FILE *); -// virtual ObjectType Type(void); + 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); -// ObjectType SelectedItemType(unsigned int); Object * SelectedItem(unsigned int); -// void ReparentContentsTo(Object *); 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; + Object * lastObjectClicked; + Object * lastObjectHovered; + Object * penultimateObjectHovered; private: bool dragging; bool draggingHandle1; bool draggingHandle2; -// bool needUpdate; bool objectWasDragged; + bool hit; }; #endif // __CONTAINER_H__