7 /*! \brief This class adds a frame to a MapObj.
10 class FrameObj:public MapObj {
13 /*! \brief Supported frame types */
14 enum FrameType {NoFrame,Rectangle,RoundedRectangle,Ellipse,Cloud};
16 FrameObj(QGraphicsItem *parent);
20 void move (double x,double y); // move to absolute Position
21 void moveBy (double x,double y);// move to relative Position
24 void setRect (const QRectF &); // set dimensions
25 void setPadding(const int &);
27 qreal getTotalPadding(); // padding + borderwidth + xsize (e.g. cloud)
29 void setBorderWidth (const int &);
30 int getBorderWidth ();
31 FrameType getFrameType ();
32 FrameType getFrameType (const QString &);
33 QString getFrameTypeName ();
34 void setFrameType (const FrameType &);
35 void setFrameType (const QString &);
36 void setPenColor (QColor);
37 QColor getPenColor ();
38 void setBrushColor (QColor);
39 QColor getBrushColor ();
40 void setFrameIncludeChildren(bool);
41 bool getFrameIncludeChildren();
43 void setZValue (double z);
44 void setVisibility(bool);
48 FrameType type; //!< Frame type
49 QGraphicsRectItem * rectFrame;
50 QGraphicsEllipseItem * ellipseFrame;
51 QGraphicsPathItem *pathFrame;
52 int padding; // distance text - frame
54 qreal xsize; //! Extra size caused e.g. by cloud geometry