1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/frameobj.h Wed Feb 01 16:39:06 2006 +0000
1.3 @@ -0,0 +1,33 @@
1.4 +#ifndef FRAMEOBJ_H
1.5 +#define FRAMEOBJ_H
1.6 +
1.7 +#include "mapobj.h"
1.8 +
1.9 +enum FrameType {NoFrame,Rectangle};
1.10 +
1.11 +class FrameObj:public MapObj {
1.12 +public:
1.13 + FrameObj();
1.14 + FrameObj(QCanvas*);
1.15 + ~FrameObj();
1.16 + void init();
1.17 + void clear();
1.18 + void move (double x,double y); // move to absolute Position
1.19 + void moveBy (double x,double y); // move to relative Position
1.20 + void positionBBox();
1.21 + void calcBBoxSize();
1.22 + void setRect (const QRect &); // set dimensions
1.23 + int getBorder();
1.24 + FrameType getFrameType ();
1.25 + QString getFrameTypeName ();
1.26 + void setFrameType (const FrameType &);
1.27 + void setFrameType (const QString &);
1.28 + void setVisibility(bool);
1.29 +
1.30 +protected:
1.31 + FrameType type;
1.32 + QCanvasRectangle* rectFrame;
1.33 + int border; // distance text - frame
1.34 +};
1.35 +#endif
1.36 +