ornamentedobj.h
branchvendor
changeset 0 7a96bd401351
child 2 608f976aa7bb
child 103 c810a11d11d9
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ornamentedobj.h	Sun Jan 30 12:58:47 2005 +0000
     1.3 @@ -0,0 +1,47 @@
     1.4 +#ifndef ORNAMENTEDOBJ_H
     1.5 +#define ORNAMENTEDOBJ_H
     1.6 +
     1.7 +#include "linkablemapobj.h"
     1.8 +
     1.9 +class OrnamentedObj:public LinkableMapObj {
    1.10 +	Q_OBJECT
    1.11 +public:	
    1.12 +    OrnamentedObj ();
    1.13 +    OrnamentedObj (QCanvas*);
    1.14 +    OrnamentedObj (OrnamentedObj*);
    1.15 +    ~OrnamentedObj ();
    1.16 +    virtual void init ();
    1.17 +    virtual void copy (OrnamentedObj*);
    1.18 +
    1.19 +    virtual void setHeading (QString s)=0;  // set the heading, pure virtual 
    1.20 +											// to take care of fontsize
    1.21 +    virtual QString getHeading();			// returns the heading	
    1.22 +	virtual void setLinkColor();			// sets color according to colorhint, overloaded
    1.23 +    virtual void setVisibility(bool,int)=0;	// set visibility
    1.24 +    virtual void setVisibility(bool)=0;	    // set vis. for w
    1.25 +	virtual void setColor(QColor,bool)=0;		// set the color of text and link
    1.26 +	QColor getColor ();						// get color of heading
    1.27 +    virtual void move   (double,double);
    1.28 +    virtual void move   (QPoint);
    1.29 +    virtual void moveBy (double,double);
    1.30 +    virtual void moveBy (QPoint);
    1.31 +    virtual void move2RelPos (QPoint);		// move relativly to parent^
    1.32 +    virtual void move2RelPos (double,double);
    1.33 +    virtual void setNote(QString);			// set note
    1.34 +    virtual void setNote(NoteObj);			// set note
    1.35 +    virtual QString getNote();				// returns note	
    1.36 +	virtual void toggleStandardFlag(QString);
    1.37 +	virtual void activateStandardFlag(QString);
    1.38 +	virtual QString getSystemFlagName (const QPoint &p);
    1.39 +
    1.40 +public slots:
    1.41 +	void updateNoteFlag();
    1.42 +
    1.43 +protected:
    1.44 +    HeadingObj *heading;			// Heading
    1.45 +	NoteObj note;					// Notes
    1.46 +	FlagRowObj *systemFlags;		// System Flags
    1.47 +	FlagRowObj *standardFlags;		// Standard Flags
    1.48 +};
    1.49 +
    1.50 +#endif