headingobj.h
author insilmaril
Mon Nov 20 12:12:05 2006 +0000 (2006-11-20)
changeset 405 a4532e5c2ce3
parent 2 608f976aa7bb
child 406 1c8ff1928b97
permissions -rw-r--r--
historywindow moved to mainwindow. Started to get rid of Q3PtrList finally
     1 #ifndef HEADINGOBJ_H
     2 #define HEADINGOBJ_H
     3 
     4 #include "mapobj.h"
     5 //Added by qt3to4:
     6 #include <Q3PtrList>
     7 
     8 class HeadingObj:public MapObj {
     9 public:
    10     HeadingObj();
    11     HeadingObj(Q3Canvas*);
    12     virtual ~HeadingObj();
    13     virtual void init();
    14     virtual void copy(HeadingObj*);
    15     virtual void move (double x,double y);      // move to absolute Position
    16     virtual void moveBy (double x,double y);    // move to relative Position
    17     virtual void positionBBox();
    18 	virtual void calcBBoxSize();
    19 private:
    20     Q3CanvasText* newLine(QString);				// generate new textline
    21 public:    
    22     virtual void setText(QString);
    23     virtual QString text();
    24     virtual void setFont(QFont);
    25     virtual QFont getFont();
    26     virtual void setColor(QColor);
    27     virtual QColor getColor();
    28     virtual void setVisibility(bool);
    29 	virtual int getHeight();
    30 	virtual int getWidth();
    31 
    32 protected:
    33     QString heading;
    34     int textwidth;								// width for formatting text
    35     Q3PtrList <Q3CanvasText> textline;			// a part of e.g. the parabel
    36     QColor color;
    37     QFont font;
    38 };
    39 #endif