X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=frameobj.h;fp=frameobj.h;h=0000000000000000000000000000000000000000;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=ea5fc06551b50edc7a894c23fdb3024cb0e2d317;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/frameobj.h b/frameobj.h deleted file mode 100644 index ea5fc06..0000000 --- a/frameobj.h +++ /dev/null @@ -1,60 +0,0 @@ -#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,RoundedRectangle,Ellipse,Cloud}; - - FrameObj(QGraphicsItem *parent); - ~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(); - qreal getTotalPadding(); // padding + borderwidth + xsize (e.g. cloud) - qreal getXPadding(); - void setBorderWidth (const int &); - int getBorderWidth (); - FrameType getFrameType (); - FrameType getFrameType (const QString &); - QString getFrameTypeName (); - void setFrameType (const FrameType &); - void setFrameType (const QString &); - void setPenColor (QColor); - QColor getPenColor (); - void setBrushColor (QColor); - QColor getBrushColor (); - void setFrameIncludeChildren(bool); - bool getFrameIncludeChildren(); - void repaint(); - void setZValue (double z); - void setVisibility(bool); - QString saveToDir (); - -private: - FrameType type; //!< Frame type - QGraphicsRectItem * rectFrame; - QGraphicsEllipseItem * ellipseFrame; - QGraphicsPathItem *pathFrame; - int padding; // distance text - frame - int borderWidth; - qreal xsize; //! Extra size caused e.g. by cloud geometry - QColor penColor; - QColor brushColor; - bool includeChildren; -}; -#endif -