00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef SCHEDITJUNCTION_H
00021 #define SCHEDITJUNCTION_H
00022
00023 #include "labelini.h"
00024 #include "doscolourbox.h"
00025 #include "spinvalue.h"
00026 #include "scheditprefs.h"
00027 #include <qpainter.h>
00028 #include <qcheckbox.h>
00029
00030 class KDialogBase;
00031 class KConfig;
00032 class ColourValuePref;
00033
00037 class ScheditJunction : public QCanvasEllipse {
00038 private:
00039 #pragma pack (push,1)
00040 typedef struct {
00041 unsigned char ucType;
00042 unsigned short int usStartX;
00043 unsigned short int usStartY;
00044 unsigned char aucScrap [11];
00045 } JunctionHdr;
00046 #pragma pack (pop)
00047 JunctionHdr header;
00048
00049 static ColourValuePref * lp;
00050
00051 public:
00052 ScheditJunction(QCanvas * canvas, unsigned char * & puc);
00053
00054 ScheditJunction ( QCanvas * canvas, QPoint qp );
00055
00056 ~ScheditJunction();
00057
00058 int rtti () const;
00059
00060 void draw ( QPainter& painter );
00061
00062 static void setup ( KDialogBase * dlg );
00063
00064 static void readProperties ( KConfig * config );
00065
00066 static void writeProperties ( KConfig * config );
00067
00068 static int point ( int iStyle );
00069 };
00070
00071
00072 #endif