X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=ornamentedobj.h;fp=ornamentedobj.h;h=0000000000000000000000000000000000000000;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=0a2717b05a19543a548575c042a3c0c8c4f53013;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/ornamentedobj.h b/ornamentedobj.h deleted file mode 100644 index 0a2717b..0000000 --- a/ornamentedobj.h +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef ORNAMENTEDOBJ_H -#define ORNAMENTEDOBJ_H - -#include "frameobj.h" -#include "linkablemapobj.h" - -class TreeItem; - -/*! \brief Adds various ornaments and data to the class LinkableMapObj - -The ornaments are: - - frame - - note - - references - - flags - - standard flags - - system flags - */ -// - attributes (key/value pairs) - -class OrnamentedObj:public LinkableMapObj { -public: - OrnamentedObj (QGraphicsItem* parent, TreeItem *ti=NULL); - virtual ~OrnamentedObj (); - virtual void init (); - virtual void copy (OrnamentedObj*); - - virtual void setLinkColor(); // sets color according to colorhint, overloaded - virtual void setColor(QColor); // set the color of text and link - QColor getColor (); // get color of heading - QRectF getBBoxHeading(); - - virtual void setRotation (const qreal &a); - virtual FrameObj* getFrame(); - virtual FrameObj::FrameType getFrameType (); - virtual QString getFrameTypeName (); - virtual void setFrameType (const FrameObj::FrameType &); - virtual void setFrameType (const QString &); - virtual void setFramePadding (const int &); - virtual int getFramePadding (); - virtual void setFrameBorderWidth(const int &); - virtual int getFrameBorderWidth (); - virtual void setFramePenColor (QColor); - virtual QColor getFramePenColor (); - virtual void setFrameBrushColor (QColor); - virtual QColor getFrameBrushColor (); - virtual void setFrameIncludeChildren (bool); - virtual bool getFrameIncludeChildren (); - virtual QRectF getOrnamentsBBox(); - - virtual void positionContents(); - virtual void move (double,double); - virtual void move (QPointF); - virtual void moveBy (double,double); - virtual void moveBy (QPointF); - virtual void move2RelPos (QPointF); // move relativly to parent^ - virtual void move2RelPos (double,double); - - virtual void activateStandardFlag(Flag *flag); - virtual void deactivateStandardFlag(const QString &name); - virtual QString getSystemFlagName (const QPointF &p); - virtual QRectF getBBoxFlag (const QString &name); - -protected: - HeadingObj *heading; // Heading - FlagRowObj *systemFlags; // System Flags - FlagRowObj *standardFlags; // Standard Flags - FrameObj *frame; // frame around object - QRectF ornamentsBBox; // bbox of flags and heading -}; - -#endif