18 #ifndef SYMBOLWIDGET_H
19 #define SYMBOLWIDGET_H
35 Line(
int _x1,
int _y1,
int _x2,
int _y2, QPen _style)
42 Arc(
int _x,
int _y,
int _w,
int _h,
int _angle,
int _arclen, QPen _style)
43 :
x(_x),
y(_y),
w(_w),
h(_h),
angle(_angle),
50 Area(
int _x,
int _y,
int _w,
int _h, QPen _Pen,
51 QBrush _Brush = QBrush(Qt::NoBrush))
52 :
x(_x),
y(_y),
w(_w),
h(_h),
Pen(_Pen),
Brush(_Brush) {};
59 Text(
int _x,
int _y,
const QString& _s, QColor _Color = QColor(0,0,0),
60 float _Size = 10.0,
float _mCos=1.0,
float _mSin=0.0)
77 int setSymbol(
const QString&,
const QString&,
const QString&);
89 void paintEvent(QPaintEvent*);
91 int analyseLine(
const QString&);
92 bool getIntegers(
const QString&,
93 int *i1=0,
int *i2=0,
int *i3=0,
int *i4=0,
int *i5=0,
int *i6=0);
94 bool getPen (
const QString&, QPen&,
int);
95 bool getBrush(
const QString&, QBrush&,
int);
97 QDragObject *myDragObject;
99 QString PaintText, DragNDropText;
100 int TextWidth, DragNDropWidth, TextHeight;
101 int cx, cy, x1, x2, y1, y2;
102 QPtrList<Line> Lines;
103 QPtrList<struct Arc> Arcs;
104 QPtrList<Area> Rects, Ellips;
105 QPtrList<Text> Texts;