frameobj.h
changeset 470 80ae7b79828c
parent 442 dfbc371b7280
     1.1 --- a/frameobj.h	Wed Apr 25 16:02:54 2007 +0000
     1.2 +++ b/frameobj.h	Wed Apr 25 16:02:54 2007 +0000
     1.3 @@ -3,10 +3,16 @@
     1.4  
     1.5  #include "mapobj.h"
     1.6  
     1.7 -enum FrameType {NoFrame,Rectangle,Ellipse};
     1.8 +
     1.9 +/*! \brief This class adds a frame to a MapObj. 
    1.10 +*/
    1.11  
    1.12  class FrameObj:public MapObj {
    1.13  public:
    1.14 +
    1.15 +	/*! \brief Supported frame types */
    1.16 +	enum FrameType {NoFrame,Rectangle,Ellipse};
    1.17 +
    1.18      FrameObj();
    1.19      FrameObj(QGraphicsScene*);
    1.20      ~FrameObj();
    1.21 @@ -17,7 +23,10 @@
    1.22  	void positionBBox();			 
    1.23  	void calcBBoxSize();			
    1.24  	void setRect (const QRectF &);	  // set dimensions			
    1.25 -    int getBorder();
    1.26 +    void setPadding(const int &);
    1.27 +    int getPadding();
    1.28 +    void setBorderWidth (const int &);
    1.29 +    int getBorderWidth ();
    1.30      FrameType getFrameType ();
    1.31      QString getFrameTypeName ();
    1.32      void setFrameType (const FrameType &);
    1.33 @@ -31,10 +40,11 @@
    1.34  	QString saveToDir ();
    1.35  
    1.36  private:
    1.37 -    FrameType type;
    1.38 +    FrameType type;			//!< Frame type
    1.39      QGraphicsRectItem * rectFrame;
    1.40      QGraphicsEllipseItem * ellipseFrame;
    1.41 -    int border;									// distance text - frame
    1.42 +    int padding;					// distance text - frame
    1.43 +	int borderWidth;
    1.44  	QColor penColor;
    1.45  	QColor brushColor;
    1.46  };