00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef SCHEDITANNOTATE_H
00021 #define SCHEDITANNOTATE_H
00022
00023 #include <qptrlist.h>
00024 #include <canvasorthotext.h>
00025
00026 class ScheditAnnotatePrefs;
00027 class KDialogBase;
00028 class KConfig;
00029
00033 class ScheditAnnotate : public CanvasOrthoText {
00034 private:
00035 #pragma pack (push,1)
00036 typedef struct {
00037 unsigned char ucType;
00038 unsigned short int usStartX;
00039 unsigned short int usStartY;
00040 unsigned char ucSizeIndex;
00041 unsigned char aucScrap1 [2];
00042 char alText [22];
00043 unsigned short int usScrap2;
00044 } AnnotateHdr;
00045 #pragma pack (pop)
00046
00047 AnnotateHdr header;
00048 QString qs;
00049
00050 QFont font;
00051
00052 int iSize;
00053
00054 static QColor colour;
00055
00056 static QPtrList<ScheditFontPrefs> aSetupPages;
00057
00058 void setupPainter ( QPainter & painter );
00059
00060
00061 public:
00062 ScheditAnnotate ( QCanvas * canvas,
00063 unsigned char * & puc );
00064
00065 ~ScheditAnnotate();
00066
00067 int rtti () const;
00068
00069 static void setup ( KDialogBase * dlg );
00070
00071 static void readProperties ( KConfig * config);
00072
00073 static void writeProperties ( KConfig * config );
00074 };
00075
00076 #endif
00077