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