author | insilmaril |
Wed Mar 21 11:51:38 2007 +0000 (2007-03-21) | |
changeset 437 | 918417b015e0 |
parent 408 | c2a05fa925a1 |
child 442 | dfbc371b7280 |
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@421 | 6 |
enum FrameType {NoFrame,Rectangle,Ellipse}; |
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@421 | 26 |
QString saveToDir (); |
insilmaril@0 | 27 |
|
insilmaril@0 | 28 |
protected: |
insilmaril@0 | 29 |
FrameType type; |
insilmaril@408 | 30 |
QGraphicsRectItem * rectFrame; |
insilmaril@421 | 31 |
QGraphicsEllipseItem * ellipseFrame; |
insilmaril@0 | 32 |
int border; // distance text - frame |
insilmaril@0 | 33 |
}; |
insilmaril@0 | 34 |
#endif |
insilmaril@0 | 35 |