X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcontainer.h;h=fd574daa4fbadd68836961471476f4c575aa58c3;hb=70297ac8ec7453e4196f4b58056bcfe4b04f2aca;hp=4922fb4fd7545e62334125e96ac22ac14ab6dbb3;hpb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;p=architektonas diff --git a/src/container.h b/src/container.h index 4922fb4..fd574da 100644 --- a/src/container.h +++ b/src/container.h @@ -7,27 +7,44 @@ class Container: public Object { public: +// Container(void); Container(Vector, Object * p = 0); + Container(const Container &); ~Container(); - virtual void Draw(QPainter *); + Container & operator=(const Container &); + virtual void Draw(Painter *); virtual Vector Center(void); virtual bool Collided(Vector); virtual void PointerMoved(Vector); virtual void PointerReleased(void); virtual bool NeedsUpdate(void); - void Add(Object *); + virtual void Add(Object *); + virtual QRectF Extents(void); + virtual void Enumerate(FILE *); + 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__