25 int _x1,
int _y1,
int _Type)
77 if(relative) {
x1 += x_;
cx += x_; }
78 else {
x1 = x_;
cx = x_; }
107 p->
Painter->setPen(QPen(QPen::black,1));
110 int xpaint=0, ypaint=4, phi=0;
112 case isVWireLabel: ypaint=0; xpaint=4; phi=16*140;
break;
119 int a = int(
double(
x2) / p->
Scale) >> 1;
120 int b = int(
double(
y2) / p->
Scale) >> 1;
123 if(phi == 16*50) phi += 16*180;
127 p->
map(
cx+xpaint,
cy+ypaint, xpaint, ypaint);
130 if(phi != 0) phi += 16*180;
135 p->
map(
cx+xpaint,
cy-ypaint, xpaint, ypaint);
144 p->
map(
cx-xpaint,
cy+ypaint, xpaint, ypaint);
147 if(phi > 16*90) phi += 16*180;
153 p->
map(
cx-xpaint,
cy-ypaint, xpaint, ypaint);
158 p->
Painter->setPen(QPen(QPen::darkMagenta,0));
160 p->
Painter->setPen(QPen(QPen::red,0));
163 p->
Painter->drawLine(a, b, c, b);
164 p->
Painter->drawLine(a, b, a, d);
165 p->
Painter->drawLine(xpaint, ypaint, a, b);
170 p->
Painter->setPen(QPen(QPen::darkGray,3));
181 QSize r = metrics.size(0,
Name);
193 s += QString::number(
cx)+
" "+QString::number(
cy)+
" "
194 + QString::number(
cx)+
" "+QString::number(
cy)
196 + QString::number(
x1)+
" "+QString::number(
y1)+
" 0 \""