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