1 #ifndef ORNAMENTEDOBJ_H
2 #define ORNAMENTEDOBJ_H
5 #include "linkablemapobj.h"
7 class OrnamentedObj:public LinkableMapObj {
10 OrnamentedObj (QGraphicsScene*);
11 OrnamentedObj (OrnamentedObj*);
14 virtual void copy (OrnamentedObj*);
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
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 ();
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 ();
46 virtual void clearStandardFlags();
47 virtual void toggleStandardFlag(QString, bool exclusive=false);
48 virtual void activateStandardFlag(QString);
49 virtual void deactivateStandardFlag(QString);
50 virtual bool isSetStandardFlag(QString);
51 virtual QString getSystemFlagName (const QPointF &p);
52 virtual bool isActiveFlag(const QString&); // check if flag is set
53 virtual void updateNoteFlag();
54 virtual void getNoteFromTextEditor ();
55 virtual void updateFlagsToolbar();
56 virtual void setHideInExport(bool); // set export of object (and childs)
57 virtual bool hideInExport();
58 virtual bool isHidden ();
59 virtual QString getOrnAttr(); // get attributes for saveToDir
62 HeadingObj *heading; // Heading
63 NoteObj note; // Notes
64 bool isNoteInEditor; // true if TextEditor has this note
65 FlagRowObj *systemFlags; // System Flags
66 FlagRowObj *standardFlags; // Standard Flags
67 FrameObj *frame; // frame around object
68 QRectF ornamentsBBox; // bbox of flags and heading
69 QString url; // url to external doc
70 QString vymLink; // path to another map
71 bool hideExport; // hide in exports if set
72 bool hidden; // true if temporary hidden