--- /dev/null
+#ifndef FRAMEOBJ_H
+#define FRAMEOBJ_H
+
+#include "mapobj.h"
+
+
+/*! \brief This class adds a frame to a MapObj.
+*/
+
+class FrameObj:public MapObj {
+public:
+
+ /*! \brief Supported frame types */
+ enum FrameType {NoFrame,Rectangle,Ellipse};
+
+ FrameObj();
+ FrameObj(QGraphicsScene*);
+ ~FrameObj();
+ void init();
+ void clear();
+ void move (double x,double y); // move to absolute Position
+ void moveBy (double x,double y); // move to relative Position
+ void positionBBox();
+ void calcBBoxSize();
+ void setRect (const QRectF &); // set dimensions
+ void setPadding(const int &);
+ int getPadding();
+ void setBorderWidth (const int &);
+ int getBorderWidth ();
+ FrameType getFrameType ();
+ QString getFrameTypeName ();
+ void setFrameType (const FrameType &);
+ void setFrameType (const QString &);
+ void setPenColor (QColor);
+ QColor getPenColor ();
+ void setBrushColor (QColor);
+ QColor getBrushColor ();
+ void repaint();
+ void setVisibility(bool);
+ QString saveToDir ();
+
+private:
+ FrameType type; //!< Frame type
+ QGraphicsRectItem * rectFrame;
+ QGraphicsEllipseItem * ellipseFrame;
+ int padding; // distance text - frame
+ int borderWidth;
+ QColor penColor;
+ QColor brushColor;
+};
+#endif
+