00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef SCHEDITTITLEBLOCK_H
00021 #define SCHEDITTITLEBLOCK_H
00022
00023 #include <qpoint.h>
00024 #include <qsize.h>
00025 #include <qpointarray.h>
00026 #include <qcanvas.h>
00027
00028 #include <scheditfontprefs.h>
00029 #include <scheditline.h>
00030
00031 #include "scheditlocatedtext.h"
00032
00033 class QCheckBox;
00034 class LabelIni;
00035 class QLabel;
00036 class ColourValuePref;
00037
00041 class ScheditTitleBlock : public QCanvasRectangle {
00042 private:
00043
00044 QPtrList<ScheditLocatedText> aslt;
00045
00046 ScheditLocatedText sltSize2;
00047 ScheditLocatedText sltDate;
00048 ScheditLocatedText sltFile;
00049
00050 QPointArray paTitleBlock;
00051 QPoint qpOffset;
00052 QPoint qpBlock;
00053
00054 static ScheditFontPrefs * lpText;
00055 static ColourValuePref * lpLine;
00056
00057 static QCheckBox * cbBlock;
00058 static LabelIni * laVisible;
00059 static QLabel * pixLabel;
00060
00061 public:
00062 ScheditTitleBlock( QCanvas * canvas );
00063
00064 ~ScheditTitleBlock();
00065
00066 void setOffset ( QPoint qp );
00067
00068 void setFileData ( QFileInfo qfi );
00069
00070 void setPageSize ( QString qs );
00071
00072 void draw ( QPainter& painter );
00073
00074 void drawShape ( QPainter & painter );
00075
00076 void sample ( void );
00077
00078 static void setup ( KDialogBase * dlg );
00079
00080 static void readProperties ( KConfig * config );
00081
00082 static void writeProperties ( KConfig * config );
00083 };
00084
00085 #endif