author | insilmaril |
Mon May 15 07:32:10 2006 +0000 (2006-05-15) | |
changeset 327 | 40c4806dfef2 |
child 2 | 608f976aa7bb |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef HEADINGOBJ_H |
insilmaril@0 | 2 |
#define HEADINGOBJ_H |
insilmaril@0 | 3 |
|
insilmaril@0 | 4 |
#include "mapobj.h" |
insilmaril@0 | 5 |
|
insilmaril@0 | 6 |
class HeadingObj:public MapObj { |
insilmaril@0 | 7 |
public: |
insilmaril@0 | 8 |
HeadingObj(); |
insilmaril@0 | 9 |
HeadingObj(QCanvas*); |
insilmaril@0 | 10 |
virtual ~HeadingObj(); |
insilmaril@0 | 11 |
virtual void init(); |
insilmaril@0 | 12 |
virtual void copy(HeadingObj*); |
insilmaril@0 | 13 |
virtual void move (double x,double y); // move to absolute Position |
insilmaril@0 | 14 |
virtual void moveBy (double x,double y); // move to relative Position |
insilmaril@0 | 15 |
virtual void positionBBox(); |
insilmaril@0 | 16 |
virtual void calcBBoxSize(); |
insilmaril@0 | 17 |
private: |
insilmaril@0 | 18 |
QCanvasText* newLine(QString); // generate new textline |
insilmaril@0 | 19 |
public: |
insilmaril@0 | 20 |
virtual void setText(QString); |
insilmaril@0 | 21 |
virtual QString text(); |
insilmaril@0 | 22 |
virtual void setFont(QFont); |
insilmaril@0 | 23 |
virtual QFont getFont(); |
insilmaril@0 | 24 |
virtual void setColor(QColor); |
insilmaril@0 | 25 |
virtual QColor getColor(); |
insilmaril@0 | 26 |
virtual void setVisibility(bool); |
insilmaril@0 | 27 |
virtual int getHeight(); |
insilmaril@0 | 28 |
virtual int getWidth(); |
insilmaril@0 | 29 |
|
insilmaril@0 | 30 |
protected: |
insilmaril@0 | 31 |
QString heading; |
insilmaril@0 | 32 |
uint textwidth; // width for formatting text |
insilmaril@0 | 33 |
QPtrList <QCanvasText> textline; // a part of e.g. the parabel |
insilmaril@0 | 34 |
QColor color; |
insilmaril@0 | 35 |
QFont font; |
insilmaril@0 | 36 |
}; |
insilmaril@0 | 37 |
#endif |