author | insilmaril |
Thu Jul 28 10:23:24 2005 +0000 (2005-07-28) | |
changeset 140 | cf1e44192f1e |
child 2 | 608f976aa7bb |
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@0 | 11 |
FrameObj(QCanvas*); |
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@0 | 29 |
QCanvasRectangle* rectFrame; |
insilmaril@0 | 30 |
int border; // distance text - frame |
insilmaril@0 | 31 |
}; |
insilmaril@0 | 32 |
#endif |
insilmaril@0 | 33 |