ornamentedobj.h
author insilmaril
Tue, 10 Apr 2007 13:22:51 +0000
changeset 446 c56ce5d81cc3
parent 442 dfbc371b7280
child 447 72afe12da1c8
permissions -rw-r--r--
1.8.71 Basic support for macros
     1 #ifndef ORNAMENTEDOBJ_H
     2 #define ORNAMENTEDOBJ_H
     3 
     4 #include "frameobj.h"
     5 #include "linkablemapobj.h"
     6 
     7 class OrnamentedObj:public LinkableMapObj {
     8 public:	
     9     OrnamentedObj ();
    10     OrnamentedObj (QGraphicsScene*);
    11     OrnamentedObj (OrnamentedObj*);
    12     ~OrnamentedObj ();
    13     virtual void init ();
    14     virtual void copy (OrnamentedObj*);
    15 
    16     virtual QString getHeading();			// returns the heading	
    17 	virtual void setLinkColor();			// sets color according to colorhint, overloaded
    18 	virtual void setColor(QColor);			// set the color of text and link
    19 	QColor getColor ();						// get color of heading
    20 
    21 	virtual FrameType getFrameType ();
    22 	virtual void setFrameType (const FrameType &);
    23 	virtual void setFrameType (const QString &);
    24 	virtual void setFramePenColor (QColor);
    25 	virtual QColor getFramePenColor ();
    26 	virtual void setFrameBrushColor (QColor);
    27 	virtual QColor getFrameBrushColor ();
    28 
    29     virtual void positionContents();
    30     virtual void move   (double,double);
    31     virtual void move   (QPointF);
    32     virtual void moveBy (double,double);
    33     virtual void moveBy (QPointF);
    34     virtual void move2RelPos (QPointF);		// move relativly to parent^
    35     virtual void move2RelPos (double,double);
    36     virtual void setNote(QString);			// set note
    37     virtual void setNote(NoteObj);			// set note
    38     virtual QString getNote();				// returns note	(HTML)
    39     virtual QString getNoteASCII();			// returns note	(ASCII)
    40     virtual QString getNoteOpenDoc();		// returns note	(OpenDoc)
    41     virtual void setURL (QString);
    42     virtual QString getURL ();
    43     virtual void setVymLink (QString);
    44     virtual QString getVymLink ();
    45 
    46 	virtual void toggleStandardFlag(QString, bool);
    47 	virtual void activateStandardFlag(QString);
    48 	virtual void deactivateStandardFlag(QString);
    49 	virtual bool isSetStandardFlag(QString);
    50 	virtual QString getSystemFlagName (const QPointF &p);
    51 	virtual bool isActiveFlag(const QString&);	// check if flag is set
    52 	virtual void updateNoteFlag();
    53 	virtual void getNoteFromTextEditor ();
    54 	virtual void updateFlagsToolbar();
    55 	virtual void setHideInExport(bool);		// set export of object (and childs)
    56 	virtual bool hideInExport();
    57 	virtual bool isHidden ();
    58 	virtual QString getOrnAttr();			// get attributes for saveToDir
    59 
    60 protected:
    61     HeadingObj *heading;			// Heading
    62 	NoteObj note;					// Notes
    63 	bool isNoteInEditor;			// true if TextEditor has this note
    64 	FlagRowObj *systemFlags;		// System Flags
    65 	FlagRowObj *standardFlags;		// Standard Flags
    66 	FrameObj *frame;				// frame around object
    67 	QRectF ornamentsBBox;			// bbox of flags and heading
    68 	QString url;					// url to external doc
    69 	QString vymLink;				// path to another map
    70 	bool hideExport;				// hide in exports if set
    71 	bool hidden;					// true if temporary hidden
    72 };
    73 
    74 #endif