author | insilmaril |
Fri Dec 29 13:52:17 2006 +0000 (2006-12-29) | |
changeset 412 | 8059b6aa74d7 |
parent 2 | 608f976aa7bb |
child 421 | 5522d1da7e37 |
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@408 | 11 |
FrameObj(QGraphicsScene*); |
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@408 | 19 |
void setRect (const QRectF &); // 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@408 | 29 |
QGraphicsRectItem * rectFrame; |
insilmaril@0 | 30 |
int border; // distance text - frame |
insilmaril@0 | 31 |
}; |
insilmaril@0 | 32 |
#endif |
insilmaril@0 | 33 |