author | insilmaril |
Tue Feb 21 16:18:23 2006 +0000 (2006-02-21) | |
changeset 216 | d5a0ea67c91d |
parent 177 | 494e8f40f0f7 |
child 227 | 38ad83f1d4ce |
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@0 | 9 |
OrnamentedObj (QCanvas*); |
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 void setHeading (QString s)=0; // set the heading, pure virtual |
insilmaril@0 | 16 |
// to take care of fontsize |
insilmaril@0 | 17 |
virtual QString getHeading(); // returns the heading |
insilmaril@0 | 18 |
virtual void setLinkColor(); // sets color according to colorhint, overloaded |
insilmaril@0 | 19 |
virtual void setVisibility(bool,int)=0; // set visibility |
insilmaril@0 | 20 |
virtual void setVisibility(bool)=0; // set vis. for w |
insilmaril@0 | 21 |
virtual void setColor(QColor,bool)=0; // set the color of text and link |
insilmaril@0 | 22 |
QColor getColor (); // get color of heading |
insilmaril@177 | 23 |
virtual void positionContents(); |
insilmaril@0 | 24 |
virtual void move (double,double); |
insilmaril@0 | 25 |
virtual void move (QPoint); |
insilmaril@0 | 26 |
virtual void moveBy (double,double); |
insilmaril@0 | 27 |
virtual void moveBy (QPoint); |
insilmaril@0 | 28 |
virtual void move2RelPos (QPoint); // move relativly to parent^ |
insilmaril@0 | 29 |
virtual void move2RelPos (double,double); |
insilmaril@0 | 30 |
virtual void setNote(QString); // set note |
insilmaril@0 | 31 |
virtual void setNote(NoteObj); // set note |
insilmaril@187 | 32 |
virtual QString getNote(); // returns note (HTML) |
insilmaril@187 | 33 |
virtual QString getNoteASCII(); // returns note (ASCII) |
insilmaril@187 | 34 |
virtual QString getNoteOpenDoc(); // returns note (OpenDoc) |
insilmaril@103 | 35 |
virtual void toggleStandardFlag(QString, bool); |
insilmaril@0 | 36 |
virtual void activateStandardFlag(QString); |
insilmaril@0 | 37 |
virtual QString getSystemFlagName (const QPoint &p); |
insilmaril@160 | 38 |
virtual void updateNoteFlag(); |
insilmaril@0 | 39 |
|
insilmaril@0 | 40 |
protected: |
insilmaril@0 | 41 |
HeadingObj *heading; // Heading |
insilmaril@0 | 42 |
NoteObj note; // Notes |
insilmaril@0 | 43 |
FlagRowObj *systemFlags; // System Flags |
insilmaril@0 | 44 |
FlagRowObj *standardFlags; // Standard Flags |
insilmaril@177 | 45 |
|
insilmaril@0 | 46 |
}; |
insilmaril@0 | 47 |
|
insilmaril@0 | 48 |
#endif |