X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcontainer.h;h=905e7572fab7ca8c31ab5688ecd48544dd2ef985;hb=4b37ccbdf263a4798e53a62e33d869a728ace283;hp=7801c8f7871c8d0a521dbbbb488a44f601872bbe;hpb=bd9b40058a376c946318a444dd6c77737ec6ac98;p=architektonas diff --git a/src/container.h b/src/container.h index 7801c8f..905e757 100644 --- a/src/container.h +++ b/src/container.h @@ -7,9 +7,12 @@ class Container: public Object { public: +// Container(void); Container(Vector, Object * p = 0); + Container(const Container &); ~Container(); + Container & operator=(const Container &); virtual void Draw(Painter *); virtual Vector Center(void); virtual bool Collided(Vector); @@ -17,17 +20,32 @@ 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); + 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 MoveSelectedContentsTo(Container *); + void ResizeAllDimensions(double); protected: Vector oldPoint; // Used for dragging - private: + public: std::vector objects; + bool isTopLevelContainer; + private: bool dragging; bool draggingHandle1; bool draggingHandle2; -// bool needUpdate; bool objectWasDragged; + bool hit; }; #endif // __CONTAINER_H__