1 #ifndef ORNAMENTEDOBJ_H
2 #define ORNAMENTEDOBJ_H
6 #include "linkablemapobj.h"
8 /*! \brief Adds various ornaments and data to the class LinkableMapObj
17 - attributes (key/value pairs)
20 class OrnamentedObj:public LinkableMapObj {
23 OrnamentedObj (QGraphicsScene*);
24 OrnamentedObj (OrnamentedObj*);
27 virtual void copy (OrnamentedObj*);
29 virtual void setLinkColor(); // sets color according to colorhint, overloaded
30 virtual void setColor(QColor); // set the color of text and link
31 QColor getColor (); // get color of heading
33 virtual FrameObj::FrameType getFrameType ();
34 virtual QString getFrameTypeName ();
35 virtual void setFrameType (const FrameObj::FrameType &);
36 virtual void setFrameType (const QString &);
37 virtual void setFramePadding (const int &);
38 virtual int getFramePadding ();
39 virtual void setFrameBorderWidth(const int &);
40 virtual int getFrameBorderWidth ();
41 virtual void setFramePenColor (QColor);
42 virtual QColor getFramePenColor ();
43 virtual void setFrameBrushColor (QColor);
44 virtual QColor getFrameBrushColor ();
46 virtual void positionContents();
47 virtual void move (double,double);
48 virtual void move (QPointF);
49 virtual void moveBy (double,double);
50 virtual void moveBy (QPointF);
51 virtual void move2RelPos (QPointF); // move relativly to parent^
52 virtual void move2RelPos (double,double);
54 virtual void activateStandardFlag(Flag *flag);
55 virtual void deactivateStandardFlag(const QString &name);
56 virtual QString getSystemFlagName (const QPointF &p);
58 //virtual void getNoteFromTextEditor ();// FIXME-3 should move to vymview?!
59 virtual QString getOrnXMLAttr(); // get attributes for saveToDir
62 HeadingObj *heading; // Heading
63 FlagRowObj *systemFlags; // System Flags
64 FlagRowObj *standardFlags; // Standard Flags
65 FrameObj *frame; // frame around object
66 QRectF ornamentsBBox; // bbox of flags and heading