58 p->
Painter->setPen(QPen(QPen::black,0));
68 p->
Painter->setBrush(QColor(192, 192, 192));
69 p->
Painter->setPen(QColor(152, 152, 152));
75 Points.setPoints(3, x, dy, (x+dx)>>1, y, dx, dy);
76 p->
Painter->drawConvexPolygon(Points);
77 p->
Painter->setPen(QColor(224, 224, 224));
78 p->
Painter->drawLine(x, dy, (x+dx)>>1, y);
82 p->
Painter->setPen(QColor(152, 152, 152));
85 Points.setPoints(3, x, y-dy, (x+dx)>>1, y, dx, y-dy);
86 p->
Painter->drawConvexPolygon(Points);
87 p->
Painter->setPen(QColor(208, 208, 208));
88 p->
Painter->drawLine(x, y-dy, (x+dx)>>1, y);
89 p->
Painter->setPen(QColor(224, 224, 224));
90 p->
Painter->drawLine(x, y-dy, dx, y-dy);
92 p->
Painter->setBrush(QBrush(Qt::NoBrush));
103 p->
Painter->setPen(QPen(QPen::darkGray,3));
105 p->
Painter->setPen(QPen(QPen::darkRed,2));
124 int tHeight = metrics.lineSpacing();
126 int colWidth=0,
x=8, y;
131 if(
y2 < (tHeight + 8))
133 y =
y2 - tHeight - 6;
137 Lines.append(
new Line(0,
y2, 0, 0, QPen(QPen::black,0)));
139 Lines.append(
new Line(0, 0,
x2, 0, QPen(QPen::black,0)));
140 Lines.append(
new Line(0, y+2,
x2, y+2, QPen(QPen::black,2)));
148 Str = QObject::tr(
"no variables");
160 int counting, invisibleCount=0;
161 int startWriting, lastCount = 1;
172 invisibleCount = counting - y/tHeight;
184 if(colWidth < 0)
goto funcEnd;
190 counting /= pD->count;
191 for(
int z1=0; z1<lastCount; z1++) {
193 for(
int z=pD->count; z>0; z--) {
194 if(startWriting <= 0) {
195 y += tHeight*startWriting;
197 if(y < tHeight)
break;
200 if(colWidth < 0)
goto funcEnd;
203 y -= tHeight*counting;
205 else startWriting -= counting;
209 if(y >= tHeight)
if(y <
y2-tHeight-5)
210 Lines.append(
new Line(0, y+1,
x2, y+1, QPen(QPen::black,0)));
212 lastCount *= pD->count;
215 Lines.append(
new Line(
x-8,
y2,
x-8, 0, QPen(QPen::black,0)));
217 Lines.current()->style = QPen(QPen::black,2);
231 if(colWidth < 0)
goto funcEnd;
240 Str = QObject::tr(
"invalid");
242 if(colWidth < 0)
goto funcEnd;
247 if(z > NumAll) NumAll = z;
249 if(g->
Var.right(2) !=
".X")
252 if(startWriting-- > 0)
continue;
253 if(y < tHeight)
break;
261 if(colWidth < 0)
goto funcEnd;
270 if(startWriting-- > 0) {
271 pcy += strlen(pcy) + 1;
274 if(y < tHeight)
break;
278 if(colWidth < 0)
goto funcEnd;
281 pcy += strlen(pcy) + 1;
286 if(z > NumLeft) NumLeft = z;
289 Str = QObject::tr(
"wrong dependency");
291 if(colWidth < 0)
goto funcEnd;
296 Str = QObject::tr(
"no data");
298 if(colWidth < 0)
goto funcEnd;
303 Lines.append(
new Line(
x-8,
y2,
x-8, 0, QPen(QPen::black,0)));
307 if(invisibleCount > 0) {
314 NumLeft = NumAll - NumLeft - y;
336 if(
x1 <= 0)
return 0;
340 if(clickPos > (
cy-20)) {
394 Name = QObject::tr(
"Tabular");
395 BitmapFile = (
char *)
"tabular";