author | insilmaril |
Mon Jul 27 12:53:17 2009 +0000 (2009-07-27) | |
changeset 782 | ffb02a9bb508 |
parent 776 | 25e634a7e1dc |
child 790 | 133e2ed6b9c5 |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef ORNAMENTEDOBJ_H |
insilmaril@0 | 2 |
#define ORNAMENTEDOBJ_H |
insilmaril@0 | 3 |
|
insilmaril@628 | 4 |
#include "attribute.h" |
insilmaril@442 | 5 |
#include "frameobj.h" |
insilmaril@0 | 6 |
#include "linkablemapobj.h" |
insilmaril@0 | 7 |
|
insilmaril@618 | 8 |
/*! \brief Adds various ornaments and data to the class LinkableMapObj |
insilmaril@476 | 9 |
|
insilmaril@476 | 10 |
The ornaments are: |
insilmaril@476 | 11 |
- frame |
insilmaril@476 | 12 |
- note |
insilmaril@476 | 13 |
- references |
insilmaril@476 | 14 |
- flags |
insilmaril@476 | 15 |
- standard flags |
insilmaril@476 | 16 |
- system flags |
insilmaril@618 | 17 |
- attributes (key/value pairs) |
insilmaril@476 | 18 |
*/ |
insilmaril@476 | 19 |
|
insilmaril@0 | 20 |
class OrnamentedObj:public LinkableMapObj { |
insilmaril@0 | 21 |
public: |
insilmaril@0 | 22 |
OrnamentedObj (); |
insilmaril@408 | 23 |
OrnamentedObj (QGraphicsScene*); |
insilmaril@0 | 24 |
OrnamentedObj (OrnamentedObj*); |
insilmaril@0 | 25 |
~OrnamentedObj (); |
insilmaril@0 | 26 |
virtual void init (); |
insilmaril@0 | 27 |
virtual void copy (OrnamentedObj*); |
insilmaril@0 | 28 |
|
insilmaril@0 | 29 |
virtual void setLinkColor(); // sets color according to colorhint, overloaded |
insilmaril@243 | 30 |
virtual void setColor(QColor); // set the color of text and link |
insilmaril@0 | 31 |
QColor getColor (); // get color of heading |
insilmaril@442 | 32 |
|
insilmaril@777 | 33 |
virtual FrameObj* getFrame(); |
insilmaril@476 | 34 |
virtual FrameObj::FrameType getFrameType (); |
insilmaril@476 | 35 |
virtual QString getFrameTypeName (); |
insilmaril@476 | 36 |
virtual void setFrameType (const FrameObj::FrameType &); |
insilmaril@442 | 37 |
virtual void setFrameType (const QString &); |
insilmaril@476 | 38 |
virtual void setFramePadding (const int &); |
insilmaril@476 | 39 |
virtual int getFramePadding (); |
insilmaril@476 | 40 |
virtual void setFrameBorderWidth(const int &); |
insilmaril@476 | 41 |
virtual int getFrameBorderWidth (); |
insilmaril@442 | 42 |
virtual void setFramePenColor (QColor); |
insilmaril@442 | 43 |
virtual QColor getFramePenColor (); |
insilmaril@442 | 44 |
virtual void setFrameBrushColor (QColor); |
insilmaril@442 | 45 |
virtual QColor getFrameBrushColor (); |
insilmaril@442 | 46 |
|
insilmaril@177 | 47 |
virtual void positionContents(); |
insilmaril@0 | 48 |
virtual void move (double,double); |
insilmaril@408 | 49 |
virtual void move (QPointF); |
insilmaril@0 | 50 |
virtual void moveBy (double,double); |
insilmaril@408 | 51 |
virtual void moveBy (QPointF); |
insilmaril@408 | 52 |
virtual void move2RelPos (QPointF); // move relativly to parent^ |
insilmaril@0 | 53 |
virtual void move2RelPos (double,double); |
insilmaril@628 | 54 |
|
insilmaril@767 | 55 |
virtual void activateStandardFlag(Flag *flag); |
insilmaril@766 | 56 |
virtual void deactivateStandardFlag(const QString &name); |
insilmaril@408 | 57 |
virtual QString getSystemFlagName (const QPointF &p); |
insilmaril@753 | 58 |
|
insilmaril@0 | 59 |
protected: |
insilmaril@0 | 60 |
HeadingObj *heading; // Heading |
insilmaril@0 | 61 |
FlagRowObj *systemFlags; // System Flags |
insilmaril@0 | 62 |
FlagRowObj *standardFlags; // Standard Flags |
insilmaril@442 | 63 |
FrameObj *frame; // frame around object |
insilmaril@408 | 64 |
QRectF ornamentsBBox; // bbox of flags and heading |
insilmaril@0 | 65 |
}; |
insilmaril@0 | 66 |
|
insilmaril@0 | 67 |
#endif |