ornamentedobj.h
author insilmaril
Wed, 30 Jul 2008 14:42:03 +0000
branchrelease-1-12-maintained
changeset 43 cf274b28e5fe
parent 0 7a96bd401351
child 2 608f976aa7bb
child 103 c810a11d11d9
permissions -rw-r--r--
Fixed animation timer, which didn't stop once activated
     1 #ifndef ORNAMENTEDOBJ_H
     2 #define ORNAMENTEDOBJ_H
     3 
     4 #include "linkablemapobj.h"
     5 
     6 class OrnamentedObj:public LinkableMapObj {
     7 	Q_OBJECT
     8 public:	
     9     OrnamentedObj ();
    10     OrnamentedObj (QCanvas*);
    11     OrnamentedObj (OrnamentedObj*);
    12     ~OrnamentedObj ();
    13     virtual void init ();
    14     virtual void copy (OrnamentedObj*);
    15 
    16     virtual void setHeading (QString s)=0;  // set the heading, pure virtual 
    17 											// to take care of fontsize
    18     virtual QString getHeading();			// returns the heading	
    19 	virtual void setLinkColor();			// sets color according to colorhint, overloaded
    20     virtual void setVisibility(bool,int)=0;	// set visibility
    21     virtual void setVisibility(bool)=0;	    // set vis. for w
    22 	virtual void setColor(QColor,bool)=0;		// set the color of text and link
    23 	QColor getColor ();						// get color of heading
    24     virtual void move   (double,double);
    25     virtual void move   (QPoint);
    26     virtual void moveBy (double,double);
    27     virtual void moveBy (QPoint);
    28     virtual void move2RelPos (QPoint);		// move relativly to parent^
    29     virtual void move2RelPos (double,double);
    30     virtual void setNote(QString);			// set note
    31     virtual void setNote(NoteObj);			// set note
    32     virtual QString getNote();				// returns note	
    33 	virtual void toggleStandardFlag(QString);
    34 	virtual void activateStandardFlag(QString);
    35 	virtual QString getSystemFlagName (const QPoint &p);
    36 
    37 public slots:
    38 	void updateNoteFlag();
    39 
    40 protected:
    41     HeadingObj *heading;			// Heading
    42 	NoteObj note;					// Notes
    43 	FlagRowObj *systemFlags;		// System Flags
    44 	FlagRowObj *standardFlags;		// Standard Flags
    45 };
    46 
    47 #endif