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,Ellipse};
17 FrameObj(QGraphicsScene*);
21 void move (double x,double y); // move to absolute Position
22 void moveBy (double x,double y); // move to relative Position
25 void setRect (const QRectF &); // set dimensions
26 void setPadding(const int &);
28 void setBorderWidth (const int &);
29 int getBorderWidth ();
30 FrameType getFrameType ();
31 QString getFrameTypeName ();
32 void setFrameType (const FrameType &);
33 void setFrameType (const QString &);
34 void setPenColor (QColor);
35 QColor getPenColor ();
36 void setBrushColor (QColor);
37 QColor getBrushColor ();
39 void setVisibility(bool);
43 FrameType type; //!< Frame type
44 QGraphicsRectItem * rectFrame;
45 QGraphicsEllipseItem * ellipseFrame;
46 int padding; // distance text - frame