ornamentedobj.h
author insilmaril
Tue Jan 03 09:44:41 2006 +0000 (2006-01-03)
changeset 170 e696dd4a100f
parent 103 c810a11d11d9
child 177 494e8f40f0f7
permissions -rw-r--r--
1.7.6 New features for floatimages and fixes
     1 #ifndef ORNAMENTEDOBJ_H
     2 #define ORNAMENTEDOBJ_H
     3 
     4 #include "linkablemapobj.h"
     5 
     6 class OrnamentedObj:public LinkableMapObj {
     7 public:	
     8     OrnamentedObj ();
     9     OrnamentedObj (QCanvas*);
    10     OrnamentedObj (OrnamentedObj*);
    11     ~OrnamentedObj ();
    12     virtual void init ();
    13     virtual void copy (OrnamentedObj*);
    14 
    15     virtual void setHeading (QString s)=0;  // set the heading, pure virtual 
    16 											// to take care of fontsize
    17     virtual QString getHeading();			// returns the heading	
    18 	virtual void setLinkColor();			// sets color according to colorhint, overloaded
    19     virtual void setVisibility(bool,int)=0;	// set visibility
    20     virtual void setVisibility(bool)=0;	    // set vis. for w
    21 	virtual void setColor(QColor,bool)=0;		// set the color of text and link
    22 	QColor getColor ();						// get color of heading
    23     virtual void move   (double,double);
    24     virtual void move   (QPoint);
    25     virtual void moveBy (double,double);
    26     virtual void moveBy (QPoint);
    27     virtual void move2RelPos (QPoint);		// move relativly to parent^
    28     virtual void move2RelPos (double,double);
    29     virtual void setNote(QString);			// set note
    30     virtual void setNote(NoteObj);			// set note
    31     virtual QString getNote();				// returns note	
    32 	virtual void toggleStandardFlag(QString, bool);
    33 	virtual void activateStandardFlag(QString);
    34 	virtual QString getSystemFlagName (const QPoint &p);
    35 	virtual void updateNoteFlag();
    36 
    37 protected:
    38     HeadingObj *heading;			// Heading
    39 	NoteObj note;					// Notes
    40 	FlagRowObj *systemFlags;		// System Flags
    41 	FlagRowObj *standardFlags;		// Standard Flags
    42 };
    43 
    44 #endif