1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/headingobj.h Tue Jan 24 15:09:48 2006 +0000
1.3 @@ -0,0 +1,37 @@
1.4 +#ifndef HEADINGOBJ_H
1.5 +#define HEADINGOBJ_H
1.6 +
1.7 +#include "mapobj.h"
1.8 +
1.9 +class HeadingObj:public MapObj {
1.10 +public:
1.11 + HeadingObj();
1.12 + HeadingObj(QCanvas*);
1.13 + virtual ~HeadingObj();
1.14 + virtual void init();
1.15 + virtual void copy(HeadingObj*);
1.16 + virtual void move (double x,double y); // move to absolute Position
1.17 + virtual void moveBy (double x,double y); // move to relative Position
1.18 + virtual void positionBBox();
1.19 + virtual void calcBBoxSize();
1.20 +private:
1.21 + QCanvasText* newLine(QString); // generate new textline
1.22 +public:
1.23 + virtual void setText(QString);
1.24 + virtual QString text();
1.25 + virtual void setFont(QFont);
1.26 + virtual QFont getFont();
1.27 + virtual void setColor(QColor);
1.28 + virtual QColor getColor();
1.29 + virtual void setVisibility(bool);
1.30 + virtual int getHeight();
1.31 + virtual int getWidth();
1.32 +
1.33 +protected:
1.34 + QString heading;
1.35 + uint textwidth; // width for formatting text
1.36 + QPtrList <QCanvasText> textline; // a part of e.g. the parabel
1.37 + QColor color;
1.38 + QFont font;
1.39 +};
1.40 +#endif