headingobj.h
author insilmaril
Fri Feb 01 15:28:35 2008 +0000 (2008-02-01)
changeset 664 01c028006e6d
parent 471 9c26d66d4c53
permissions -rw-r--r--
Added brasilian translation by Amadeu Júnior
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@471
     6
/*! \brief The heading of an OrnamentedObj */
insilmaril@471
     7
insilmaril@0
     8
class HeadingObj:public MapObj {
insilmaril@0
     9
public:
insilmaril@0
    10
    HeadingObj();
insilmaril@408
    11
    HeadingObj(QGraphicsScene*);
insilmaril@0
    12
    virtual ~HeadingObj();
insilmaril@0
    13
    virtual void init();
insilmaril@0
    14
    virtual void copy(HeadingObj*);
insilmaril@0
    15
    virtual void move (double x,double y);      // move to absolute Position
insilmaril@0
    16
    virtual void moveBy (double x,double y);    // move to relative Position
insilmaril@0
    17
    virtual void positionBBox();
insilmaril@0
    18
	virtual void calcBBoxSize();
insilmaril@0
    19
private:
insilmaril@569
    20
//    QGraphicsSimpleTextItem* newLine(QString);		// generate new textline
insilmaril@569
    21
    QGraphicsTextItem* newLine(QString);		// generate new textline
insilmaril@0
    22
public:    
insilmaril@0
    23
    virtual void setText(QString);
insilmaril@0
    24
    virtual QString text();
insilmaril@0
    25
    virtual void setFont(QFont);
insilmaril@0
    26
    virtual QFont getFont();
insilmaril@0
    27
    virtual void setColor(QColor);
insilmaril@0
    28
    virtual QColor getColor();
insilmaril@0
    29
    virtual void setVisibility(bool);
insilmaril@408
    30
	virtual qreal getHeight();
insilmaril@408
    31
	virtual qreal getWidth();
insilmaril@0
    32
insilmaril@0
    33
protected:
insilmaril@0
    34
    QString heading;
insilmaril@377
    35
    int textwidth;								// width for formatting text
insilmaril@569
    36
//    QList <QGraphicsSimpleTextItem*> textline;	// a part of e.g. the parabel
insilmaril@569
    37
    QList <QGraphicsTextItem*> textline;	// a part of e.g. the parabel
insilmaril@0
    38
    QColor color;
insilmaril@0
    39
    QFont font;
insilmaril@0
    40
};
insilmaril@0
    41
#endif