author | insilmaril |
Wed Oct 18 10:45:00 2006 +0000 (2006-10-18) | |
changeset 393 | 053b8645e3e9 |
parent 0 | 7a96bd401351 |
child 408 | c2a05fa925a1 |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef FRAMEOBJ_H |
insilmaril@0 | 2 |
#define FRAMEOBJ_H |
insilmaril@0 | 3 |
|
insilmaril@0 | 4 |
#include "mapobj.h" |
insilmaril@0 | 5 |
|
insilmaril@0 | 6 |
enum FrameType {NoFrame,Rectangle}; |
insilmaril@0 | 7 |
|
insilmaril@0 | 8 |
class FrameObj:public MapObj { |
insilmaril@0 | 9 |
public: |
insilmaril@0 | 10 |
FrameObj(); |
insilmaril@2 | 11 |
FrameObj(Q3Canvas*); |
insilmaril@0 | 12 |
~FrameObj(); |
insilmaril@0 | 13 |
void init(); |
insilmaril@0 | 14 |
void clear(); |
insilmaril@0 | 15 |
void move (double x,double y); // move to absolute Position |
insilmaril@0 | 16 |
void moveBy (double x,double y); // move to relative Position |
insilmaril@0 | 17 |
void positionBBox(); |
insilmaril@0 | 18 |
void calcBBoxSize(); |
insilmaril@0 | 19 |
void setRect (const QRect &); // set dimensions |
insilmaril@0 | 20 |
int getBorder(); |
insilmaril@0 | 21 |
FrameType getFrameType (); |
insilmaril@0 | 22 |
QString getFrameTypeName (); |
insilmaril@0 | 23 |
void setFrameType (const FrameType &); |
insilmaril@0 | 24 |
void setFrameType (const QString &); |
insilmaril@0 | 25 |
void setVisibility(bool); |
insilmaril@0 | 26 |
|
insilmaril@0 | 27 |
protected: |
insilmaril@0 | 28 |
FrameType type; |
insilmaril@2 | 29 |
Q3CanvasRectangle* rectFrame; |
insilmaril@0 | 30 |
int border; // distance text - frame |
insilmaril@0 | 31 |
}; |
insilmaril@0 | 32 |
#endif |
insilmaril@0 | 33 |