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