ornamentedobj.h
author insilmaril
Mon May 08 13:25:48 2006 +0000 (2006-05-08)
changeset 321 220e40e6c4ff
parent 260 69d648a0a15b
child 366 e95081c21da2
permissions -rw-r--r--
1.7.16 Small bugfixes
     1 #ifndef ORNAMENTEDOBJ_H
     2 #define ORNAMENTEDOBJ_H
     3 
     4 #include "linkablemapobj.h"
     5 
     6 class OrnamentedObj:public LinkableMapObj {
     7 public:	
     8     OrnamentedObj ();
     9     OrnamentedObj (QCanvas*);
    10     OrnamentedObj (OrnamentedObj*);
    11     ~OrnamentedObj ();
    12     virtual void init ();
    13     virtual void copy (OrnamentedObj*);
    14 
    15     virtual QString getHeading();			// returns the heading	
    16 	virtual void setLinkColor();			// sets color according to colorhint, overloaded
    17 	virtual void setColor(QColor);			// set the color of text and link
    18 	QColor getColor ();						// get color of heading
    19     virtual void positionContents();
    20     virtual void move   (double,double);
    21     virtual void move   (QPoint);
    22     virtual void moveBy (double,double);
    23     virtual void moveBy (QPoint);
    24     virtual void move2RelPos (QPoint);		// move relativly to parent^
    25     virtual void move2RelPos (double,double);
    26     virtual void setNote(QString);			// set note
    27     virtual void setNote(NoteObj);			// set note
    28     virtual QString getNote();				// returns note	(HTML)
    29     virtual QString getNoteASCII();			// returns note	(ASCII)
    30     virtual QString getNoteOpenDoc();		// returns note	(OpenDoc)
    31     virtual void setURL (QString);
    32     virtual QString getURL ();
    33     virtual void setVymLink (QString);
    34     virtual QString getVymLink ();
    35 
    36 	virtual void toggleStandardFlag(QString, bool);
    37 	virtual void activateStandardFlag(QString);
    38 	virtual bool isSetStandardFlag(QString);
    39 	virtual QString getSystemFlagName (const QPoint &p);
    40 	virtual bool isActiveFlag(const QString&);	// check if flag is set
    41 	virtual void updateNoteFlag();
    42 	virtual void setHideInExport(bool);		// set export of object (and childs)
    43 	virtual bool hideInExport();
    44 	virtual bool isHidden ();
    45 	virtual QString getOrnAttr();			// get attributes for saveToDir
    46 
    47 protected:
    48     HeadingObj *heading;			// Heading
    49 	NoteObj note;					// Notes
    50 	FlagRowObj *systemFlags;		// System Flags
    51 	FlagRowObj *standardFlags;		// Standard Flags
    52 	QRect ornamentsBBox;			// bbox of flags and heading
    53 	QString url;					// url to external doc
    54 	QString vymLink;				// path to another map
    55 	bool hideExport;				// hide in exports if set
    56 	bool hidden;					// true if temporary hidden
    57 };
    58 
    59 #endif