diff -r e21e3b8c312c -r 80ae7b79828c frameobj.h --- a/frameobj.h Wed Apr 25 16:02:54 2007 +0000 +++ b/frameobj.h Wed Apr 25 16:02:54 2007 +0000 @@ -3,10 +3,16 @@ #include "mapobj.h" -enum FrameType {NoFrame,Rectangle,Ellipse}; + +/*! \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(); @@ -17,7 +23,10 @@ void positionBBox(); void calcBBoxSize(); void setRect (const QRectF &); // set dimensions - int getBorder(); + void setPadding(const int &); + int getPadding(); + void setBorderWidth (const int &); + int getBorderWidth (); FrameType getFrameType (); QString getFrameTypeName (); void setFrameType (const FrameType &); @@ -31,10 +40,11 @@ QString saveToDir (); private: - FrameType type; + FrameType type; //!< Frame type QGraphicsRectItem * rectFrame; QGraphicsEllipseItem * ellipseFrame; - int border; // distance text - frame + int padding; // distance text - frame + int borderWidth; QColor penColor; QColor brushColor; };