author | insilmaril |
Sat Feb 24 12:32:53 2007 +0000 (2007-02-24) | |
changeset 431 | c2ffbc9b832d |
parent 408 | c2a05fa925a1 |
child 442 | dfbc371b7280 |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef ORNAMENTEDOBJ_H |
insilmaril@0 | 2 |
#define ORNAMENTEDOBJ_H |
insilmaril@0 | 3 |
|
insilmaril@0 | 4 |
#include "linkablemapobj.h" |
insilmaril@0 | 5 |
|
insilmaril@0 | 6 |
class OrnamentedObj:public LinkableMapObj { |
insilmaril@0 | 7 |
public: |
insilmaril@0 | 8 |
OrnamentedObj (); |
insilmaril@408 | 9 |
OrnamentedObj (QGraphicsScene*); |
insilmaril@0 | 10 |
OrnamentedObj (OrnamentedObj*); |
insilmaril@0 | 11 |
~OrnamentedObj (); |
insilmaril@0 | 12 |
virtual void init (); |
insilmaril@0 | 13 |
virtual void copy (OrnamentedObj*); |
insilmaril@0 | 14 |
|
insilmaril@0 | 15 |
virtual QString getHeading(); // returns the heading |
insilmaril@0 | 16 |
virtual void setLinkColor(); // sets color according to colorhint, overloaded |
insilmaril@243 | 17 |
virtual void setColor(QColor); // set the color of text and link |
insilmaril@0 | 18 |
QColor getColor (); // get color of heading |
insilmaril@177 | 19 |
virtual void positionContents(); |
insilmaril@0 | 20 |
virtual void move (double,double); |
insilmaril@408 | 21 |
virtual void move (QPointF); |
insilmaril@0 | 22 |
virtual void moveBy (double,double); |
insilmaril@408 | 23 |
virtual void moveBy (QPointF); |
insilmaril@408 | 24 |
virtual void move2RelPos (QPointF); // move relativly to parent^ |
insilmaril@0 | 25 |
virtual void move2RelPos (double,double); |
insilmaril@0 | 26 |
virtual void setNote(QString); // set note |
insilmaril@0 | 27 |
virtual void setNote(NoteObj); // set note |
insilmaril@187 | 28 |
virtual QString getNote(); // returns note (HTML) |
insilmaril@187 | 29 |
virtual QString getNoteASCII(); // returns note (ASCII) |
insilmaril@187 | 30 |
virtual QString getNoteOpenDoc(); // returns note (OpenDoc) |
insilmaril@243 | 31 |
virtual void setURL (QString); |
insilmaril@243 | 32 |
virtual QString getURL (); |
insilmaril@243 | 33 |
virtual void setVymLink (QString); |
insilmaril@243 | 34 |
virtual QString getVymLink (); |
insilmaril@243 | 35 |
|
insilmaril@103 | 36 |
virtual void toggleStandardFlag(QString, bool); |
insilmaril@0 | 37 |
virtual void activateStandardFlag(QString); |
insilmaril@366 | 38 |
virtual void deactivateStandardFlag(QString); |
insilmaril@297 | 39 |
virtual bool isSetStandardFlag(QString); |
insilmaril@408 | 40 |
virtual QString getSystemFlagName (const QPointF &p); |
insilmaril@236 | 41 |
virtual bool isActiveFlag(const QString&); // check if flag is set |
insilmaril@160 | 42 |
virtual void updateNoteFlag(); |
insilmaril@417 | 43 |
virtual void getNoteFromTextEditor (); |
insilmaril@366 | 44 |
virtual void updateFlagsToolbar(); |
insilmaril@243 | 45 |
virtual void setHideInExport(bool); // set export of object (and childs) |
insilmaril@243 | 46 |
virtual bool hideInExport(); |
insilmaril@260 | 47 |
virtual bool isHidden (); |
insilmaril@243 | 48 |
virtual QString getOrnAttr(); // get attributes for saveToDir |
insilmaril@0 | 49 |
|
insilmaril@0 | 50 |
protected: |
insilmaril@0 | 51 |
HeadingObj *heading; // Heading |
insilmaril@0 | 52 |
NoteObj note; // Notes |
insilmaril@417 | 53 |
bool isNoteInEditor; // true if TextEditor has this note |
insilmaril@0 | 54 |
FlagRowObj *systemFlags; // System Flags |
insilmaril@0 | 55 |
FlagRowObj *standardFlags; // Standard Flags |
insilmaril@408 | 56 |
QRectF ornamentsBBox; // bbox of flags and heading |
insilmaril@243 | 57 |
QString url; // url to external doc |
insilmaril@243 | 58 |
QString vymLink; // path to another map |
insilmaril@243 | 59 |
bool hideExport; // hide in exports if set |
insilmaril@260 | 60 |
bool hidden; // true if temporary hidden |
insilmaril@0 | 61 |
}; |
insilmaril@0 | 62 |
|
insilmaril@0 | 63 |
#endif |