1 #ifndef ORNAMENTEDOBJ_H
2 #define ORNAMENTEDOBJ_H
5 #include "linkablemapobj.h"
9 /*! \brief Adds various ornaments and data to the class LinkableMapObj
19 // - attributes (key/value pairs)
21 class OrnamentedObj : public LinkableMapObj {
23 OrnamentedObj(QGraphicsItem *parent, TreeItem *ti = NULL);
24 virtual ~OrnamentedObj();
26 virtual void copy(OrnamentedObj *);
29 virtual void setColor(QColor); // set the color of text and link
30 QColor getColor(); // get color of heading
31 QRectF getBBoxHeading();
33 virtual void setRotation(const qreal &a);
34 virtual FrameObj *getFrame();
35 virtual FrameObj::FrameType getFrameType();
36 virtual QString getFrameTypeName();
37 virtual void setFrameType(const FrameObj::FrameType &);
38 virtual void setFrameType(const QString &);
39 virtual void setFramePadding(const int &);
40 virtual int getFramePadding();
41 virtual void setFrameBorderWidth(const int &);
42 virtual int getFrameBorderWidth();
43 virtual void setFramePenColor(QColor);
44 virtual QColor getFramePenColor();
45 virtual void setFrameBrushColor(QColor);
46 virtual QColor getFrameBrushColor();
47 virtual void setFrameIncludeChildren(bool);
48 virtual bool getFrameIncludeChildren();
49 virtual QRectF getOrnamentsBBox();
51 virtual void positionContents();
52 virtual void move(double, double);
53 virtual void move(QPointF);
54 virtual void moveBy(double, double);
55 virtual void moveBy(QPointF);
56 virtual void move2RelPos(QPointF); // move relativly to parent^
57 virtual void move2RelPos(double, double);
59 virtual QUuid findSystemFlagUidByPos(const QPointF &p);
60 virtual QRectF getBBoxSystemFlagByUid(const QUuid &u);
63 HeadingObj *heading; // Heading
64 FlagRowObj *systemFlagRowObj; // System Flags
65 FlagRowObj *standardFlagRowObj; // Standard Flags
66 FrameObj *frame; // frame around object
67 QRectF ornamentsBBox; // bbox of flags and heading