diff -r dfbc371b7280 -r 988f1908a7c4 frameobj.h --- a/frameobj.h Sat Mar 31 09:28:27 2007 +0000 +++ b/frameobj.h Fri Jul 23 16:43:49 2010 +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; };