1.1 --- a/ornamentedobj.h Sun Jan 30 12:58:47 2005 +0000
1.2 +++ b/ornamentedobj.h Tue Jul 04 12:10:56 2006 +0000
1.3 @@ -4,23 +4,19 @@
1.4 #include "linkablemapobj.h"
1.5
1.6 class OrnamentedObj:public LinkableMapObj {
1.7 - Q_OBJECT
1.8 public:
1.9 OrnamentedObj ();
1.10 - OrnamentedObj (QCanvas*);
1.11 + OrnamentedObj (Q3Canvas*);
1.12 OrnamentedObj (OrnamentedObj*);
1.13 ~OrnamentedObj ();
1.14 virtual void init ();
1.15 virtual void copy (OrnamentedObj*);
1.16
1.17 - virtual void setHeading (QString s)=0; // set the heading, pure virtual
1.18 - // to take care of fontsize
1.19 virtual QString getHeading(); // returns the heading
1.20 virtual void setLinkColor(); // sets color according to colorhint, overloaded
1.21 - virtual void setVisibility(bool,int)=0; // set visibility
1.22 - virtual void setVisibility(bool)=0; // set vis. for w
1.23 - virtual void setColor(QColor,bool)=0; // set the color of text and link
1.24 + virtual void setColor(QColor); // set the color of text and link
1.25 QColor getColor (); // get color of heading
1.26 + virtual void positionContents();
1.27 virtual void move (double,double);
1.28 virtual void move (QPoint);
1.29 virtual void moveBy (double,double);
1.30 @@ -29,19 +25,35 @@
1.31 virtual void move2RelPos (double,double);
1.32 virtual void setNote(QString); // set note
1.33 virtual void setNote(NoteObj); // set note
1.34 - virtual QString getNote(); // returns note
1.35 - virtual void toggleStandardFlag(QString);
1.36 + virtual QString getNote(); // returns note (HTML)
1.37 + virtual QString getNoteASCII(); // returns note (ASCII)
1.38 + virtual QString getNoteOpenDoc(); // returns note (OpenDoc)
1.39 + virtual void setURL (QString);
1.40 + virtual QString getURL ();
1.41 + virtual void setVymLink (QString);
1.42 + virtual QString getVymLink ();
1.43 +
1.44 + virtual void toggleStandardFlag(QString, bool);
1.45 virtual void activateStandardFlag(QString);
1.46 + virtual bool isSetStandardFlag(QString);
1.47 virtual QString getSystemFlagName (const QPoint &p);
1.48 -
1.49 -public slots:
1.50 - void updateNoteFlag();
1.51 + virtual bool isActiveFlag(const QString&); // check if flag is set
1.52 + virtual void updateNoteFlag();
1.53 + virtual void setHideInExport(bool); // set export of object (and childs)
1.54 + virtual bool hideInExport();
1.55 + virtual bool isHidden ();
1.56 + virtual QString getOrnAttr(); // get attributes for saveToDir
1.57
1.58 protected:
1.59 HeadingObj *heading; // Heading
1.60 NoteObj note; // Notes
1.61 FlagRowObj *systemFlags; // System Flags
1.62 FlagRowObj *standardFlags; // Standard Flags
1.63 + QRect ornamentsBBox; // bbox of flags and heading
1.64 + QString url; // url to external doc
1.65 + QString vymLink; // path to another map
1.66 + bool hideExport; // hide in exports if set
1.67 + bool hidden; // true if temporary hidden
1.68 };
1.69
1.70 #endif