-
Notifications
You must be signed in to change notification settings - Fork 24
/
teardrops2.ulp
652 lines (547 loc) · 27.4 KB
/
teardrops2.ulp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
#usage "<b>Teardrops1 - v1.02 (06/18/09)</b>\n"
"<p>"
"This ULP allows creation of teardrop-shaped connections from a board's vias/pads to their attached wire segments. "
"Making these connections teardrop shaped enhances manufacturability and reduces board failure by ensuring "
"connectivity between the segment and via/pad in cases where the via hole is not accurately drilled and "
"would otherwise sever the segment."
"<p>"
"<author>Original Author: Tad Artis ([email protected])<br>"
"Modifications: Bob Starr ([email protected])</author>"
// THIS PROGRAM IS PROVIDED AS IS AND WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED
string HelpText = usage +
"<p><b>Implementation</b><br>"
"This ULP is a variant based on via_teardrops1.ulp by Tad Ardis originally. This version is designed to support pads as well. "
"An attempt has been made to implement teardrops in this ULP while maintaining DRC validity. "
"Teardrops are implemented as 'two' added wire segments attaching from the original signal, at a short radius from the via, to two tangential "
"points at the via's edge. These two attachments form a small triangle and then are further attached to the via's center in order to "
"avoid ratsnest dangling segment errors. The user can specify the radius from the via at which the teardrop begins."
"<p><b>Output</b><br>"
"The output of this program is an .scr script which may be run to add vias to all signals on the board. "
"This .scr file is also properly formatted to allow it to be read into a spreadsheet program as a .csv file which will be found to contain "
"detailed information about the signal and via to which each teardrop is being added. The spreadsheet "
"columns can be sorted and copied back to an .scr to simplify adding teardrops to only certain net classes, via sizes, layers, etc. "
"The spreadsheet format may also allow teardrops to be added to an unused signal layer which would facilitate cutting "
"them from undesired portions of the board and might create a cleaner situation for future board upgrades."
"<p><b>Warnings</b><br>"
"<b>This ULP should be used with forethought or on a copy of your board file just before plotting.</b><br>"
"It may difficult to remove teardrops once added. It may be difficult to run the teardrop ULP a second time on a board which "
"already has teardrops. It may be possible to alleviate these concerns by using the spreadsheet output or a find/replace "
"on the .scr file to send the "
"teardrops to unused signal layers which are then included when the origin signal layer is plotted.<br>"
"One should be aware that there are small hexogonal points at the ends of the added teardrop segments which protrude beyond "
"the tangent of the via. In most cases these protrusions are tiny and won't present any design rule violations."
"<p><b>Limitations</b><br>"
"The current software operates using mm units for .scr and only accepts units in mils from the user and in generated spreadsheet values."
"<p><b>Copyright</b><br>"
"Enhancements to the ULP are welcome without the necessity of contacting the author."
"<p>"
"This program is provided AS IS and without warranty of any kind, expressed or implied."
"This program may be freely modified and distributed."
"<p>"
"<hr>"
"<font color=red>All text in red shows differences with the previous version of this program.</font>"
"<hr>"
;
string Release = "1.02";
string ReleaseDate = "June 18, 2009";
string HistoryText1 =
"<p>"
"This program was based on the original via_teardrops1.ulp work by Tad Artis ([email protected]).<br>"
"An attempt has been made to add usable support for teardropping pads as well in this adaptation."
"<p>"
"The following is a history of this program (most recent first)."
"<p>"
"Version 1.0"
"<ul>"
"<li>Initial version. Released on January 5, 2008.</li>"
"</ul>"
;
string HistoryText2 = "";
int ScreenWidth = 800;
int ScreenHeight = 600;
int User_Pads = 0;
int User_Vias = 1;
real User_Tear_Radius = 1.5;
real User_Ignore_Width = 25;
real User_Ignore_sdratio = 1.5;
real uiw_internal;
int via_count;
int aring;
int radius, radius_sq, tangent_radius;
int in1,in2;
int x_cross, y_cross;
int x1, x2, y1, y2;
int t, tstep;
int changes = 0;
real xstep, ystep, xc, yc;
real astart,aend,sin_of_astart,cos_of_astart,wstep,w;
real tearseg_delta_w, tearseg_w, tearseg_len;
int tearseg_xend, tearseg_yend;
string vcount, fname, params;
// Output in dual-use .scr and spreadsheet .csv format
void output_hdr(void)
{
printf("# SCR Command, Signal Name, Signal Class, Layer, Width, Via Drill, Via Layer Diameter, Via X, Via Y, Ratio segment_width/Via_drill_size\n");
}
void output_text(string t)
{
printf("%s#, , , , , , , , , \n", t);
}
void output_via_wire(int layer, int width, int x1, int y1, int x2, int y2, UL_VIA V, UL_WIRE W, UL_SIGNAL S)
{
printf("LAYER %d; WIRE '%s' %.4f (%.4f %.4f) (%.4f %.4f); #, %s, %s, %d, %.1f, %.1f, %.1f, %.3f, %.3f, %.2f\n",
layer, S.name, u2mm(width), u2mm(x1), u2mm(y1), u2mm(x2), u2mm(y2),
S.name, S.class.name, layer, u2mil(width), u2mil(V.drill), u2mil(V.diameter[layer]), u2mil(V.x), u2mil(V.y), real(width)/V.drill);
}
void output_pad_wire(int layer, int width, int x1, int y1, int x2, int y2, UL_PAD P, UL_WIRE W, UL_SIGNAL S)
{
printf("LAYER %d; WIRE '%s' %.4f (%.4f %.4f) (%.4f %.4f); #, %s, %s, %d, %.1f, %.1f, %.1f, %.3f, %.3f, %.2f\n",
layer, S.name, u2mm(width), u2mm(x1), u2mm(y1), u2mm(x2), u2mm(y2),
P.name, P.name, layer, u2mil(width), u2mil(P.drill), u2mil(P.diameter[layer]), u2mil(P.x), u2mil(P.y), real(width)/P.drill);
}
void do_pads(UL_SIGNAL S)
{
int shape;
S.contactrefs(C)
{
if (C.contact.pad)
{
via_count++;
sprintf(vcount, "Processing Pad #%d -- Signal %s", via_count, C.contact.pad.name);
status(vcount);
// find wires starting within teardrop-apex radius of the via and ending outside it.
radius = C.contact.pad.drill * (User_Tear_Radius - 0.25);
radius_sq = radius * radius;
S.wires(W)
{
// quick check first. See if either wire endpoint is within a square of size 2 x radius of the pad.
in1 = 0;
in2 = 0;
if ((W.width < uiw_internal) && (real(W.width)/C.contact.pad.drill < User_Ignore_sdratio))
{
if (W.layer >= 1 && W.layer <= 16)
{
shape = C.contact.pad.shape[W.layer];
if (shape == PAD_SHAPE_ROUND || shape == PAD_SHAPE_OCTAGON)
{
// Passed user specified wires to ignore
if (abs(W.x1-C.contact.pad.x)<radius && abs(W.y1-C.contact.pad.y)<radius)
in1 = 1;
if (abs(W.x2-C.contact.pad.x)<radius && abs(W.y2-C.contact.pad.y)<radius)
in2 = 1;
if (in1 || in2)
{
if (in1)
{
if (((W.x1-C.contact.pad.x)*(W.x1-C.contact.pad.x)+(W.y1-C.contact.pad.y)*(W.y1-C.contact.pad.y)) > radius_sq)
in1 = 0;
}
if (in2)
{
if (((W.x2-C.contact.pad.x)*(W.x2-C.contact.pad.x)+(W.y2-C.contact.pad.y)*(W.y2-C.contact.pad.y)) > radius_sq)
in2 = 0;
}
}
}
}
}
if (in1 ^ in2)
{
changes = 1;
// Calculate point where wire crosses radius. Move calculations relative to via's center.
x1 = W.x1-C.contact.pad.x;
x2 = W.x2-C.contact.pad.x;
y1 = W.y1-C.contact.pad.y;
y2 = W.y2-C.contact.pad.y;
// Make x1,y1 always the end closest to via center.
if (in2)
{
// Swap start/end
t = x1;
x1 = x2;
x2 = t;
t = y1;
y1 = y2;
y2 = t;
}
// Perhaps the line and arc intersections equations could be solved directly without too much trouble,
// but didn't feel like dealing with it and the special cases.
if (!W.arc)
{
// Easiest to represent the line parametrically and step up it.
tstep = max(abs(y2-y1),abs(x2-x1));
xstep = (x2-x1)/real(tstep);
ystep = (y2-y1)/real(tstep);
tstep = tstep >>1;
// We're double testing points here, but don't feel like fixing.
for (t = 0; tstep > 0; t = t+tstep)
{
xc = x1+xstep*t;
yc = y1+ystep*t;
if ((xc*xc + yc*yc) > radius_sq)
{
// backup a little and increase resolution
t = t-tstep;
tstep = tstep >> 1;
}
}
}
else
{
// wire segment is an arc
// Get correct arc starting end angle for x1,y1
if ((x1+C.contact.pad.x) == W.arc.x1 && (y1+C.contact.pad.y) == W.arc.y1)
{
astart = W.arc.angle1;
aend = W.arc.angle2;
}
else
{
// Swap start/end
astart = W.arc.angle2;
aend = W.arc.angle1;
}
// wstep is the change in angle to the next point on the arc to test.
astart = PI/180 * astart;
aend = PI/180 * aend;
wstep = (aend-astart)/2; // make wstep 1/2 the difference
sin_of_astart = W.arc.radius*sin(astart);
cos_of_astart = W.arc.radius*cos(astart);
// dy = radius*(sin(astart+dw)-sin(astart))
// dx = radius*(cos(astart+dw)-cos(astart))
// w is the current angle on the arc being tested
// We're double testing points here, but don't feel like fixing.
for (w = astart+wstep; abs(wstep) > .00001; w = w+wstep)
{
yc = y1+W.arc.radius*sin(w)-sin_of_astart;
xc = x1+W.arc.radius*cos(w)-cos_of_astart;
if ((xc*xc + yc*yc) > radius_sq)
{
// backup a little and increase resolution
w = w-wstep;
wstep = wstep/2;
}
}
}
// Determine location of tangents of via back to wire.
// angular offset = sin (viaradius/(seg to via ctr distance))
int wmult = 1;
int width = W.width;
int aring = C.contact.pad.diameter[W.layer] - C.contact.pad.drill;
// printf("# width=%f, drill=%f, diameter=%f, aring=%f\n", u2mil(width), u2mil(C.contact.pad.drill), u2mil(C.contact.pad.diameter[W.layer]), u2mil(aring));
// [RES102] - Adjusted tangent divide ratios and added logic to determine
// if wire width is less than 10 mil or the annular ring is less than the wire width,
// double the wire width for better fill.
if ((u2mil(width) <= 10) || ((u2mil(aring) / 2.0) > u2mil(width)))
wmult = 2;
width = width * wmult;
if (u2mil(C.contact.pad.diameter[W.layer]) >= 100)
tangent_radius = (C.contact.pad.diameter[W.layer] - (W.width * wmult)) / 4; // [RES102] was 8
else
tangent_radius = (C.contact.pad.diameter[W.layer] - (W.width * wmult)) / 2; // [RES102] was 4
if (tangent_radius > 0)
{
// don't bother if wire is bigger than via
tearseg_delta_w = asin(real(tangent_radius)/radius);
tearseg_len = sqrt(radius * radius - tangent_radius * tangent_radius);
if (xc == 0)
{
if (yc < 0)
tearseg_w = PI*.5;
else
tearseg_w = -PI*.5;
}
else
{
tearseg_w = atan (real(yc)/(xc));
}
// Get the right quadrant
if (xc > 0)
tearseg_w = tearseg_w + PI;
tearseg_xend = C.contact.pad.x+xc + tearseg_len*cos(tearseg_w-tearseg_delta_w);
tearseg_yend = C.contact.pad.y+yc + tearseg_len*sin(tearseg_w-tearseg_delta_w);
// Suggest a script command.
output_pad_wire(W.layer, width, int(C.contact.pad.x+xc), int(C.contact.pad.y+yc), tearseg_xend, tearseg_yend, C.contact.pad, W, S);
// Now add segment to the center of the via so ratsnest doesn't show up as dangling.
output_pad_wire(W.layer, width, int(C.contact.pad.x), int(C.contact.pad.y), tearseg_xend, tearseg_yend, C.contact.pad, W, S);
// Now the other side of the tear
tearseg_xend = C.contact.pad.x+xc + tearseg_len*cos(tearseg_w+tearseg_delta_w);
tearseg_yend = C.contact.pad.y+yc + tearseg_len*sin(tearseg_w+tearseg_delta_w);
// Suggest a script command.
output_pad_wire(W.layer, width, int(C.contact.pad.x+xc), int(C.contact.pad.y+yc), tearseg_xend, tearseg_yend, C.contact.pad, W, S);
// Now add segment to the center of the via so ratsnest doesn't show up as dangling.
output_pad_wire(W.layer, width, int(C.contact.pad.x), int(C.contact.pad.y), tearseg_xend, tearseg_yend, C.contact.pad, W, S);
}
}
}
}
}
}
void do_vias(UL_SIGNAL S)
{
S.vias(V)
{
via_count++;
sprintf (vcount, "Processing Via #%d -- Signal %s", via_count, S.name);
status (vcount);
// find wires starting within teardrop-apex radius of the via and ending outside it.
radius = V.drill * User_Tear_Radius;
radius_sq = radius * radius;
S.wires(W)
{
// quick check first. See if either wire endpoint is within a square of size 2 x radius of the via.
in1 = 0;
in2 = 0;
if ((W.width < uiw_internal) && (real(W.width)/V.drill < User_Ignore_sdratio))
{
// Passed user specified wires to ignore
if (abs(W.x1-V.x)<radius && abs(W.y1-V.y)<radius)
in1 = 1;
if (abs(W.x2-V.x)<radius && abs(W.y2-V.y)<radius)
in2 = 1;
if (in1 || in2)
{
// Check location more carefully
// Check layer
if (W.layer >= V.start && W.layer <= V.end)
{
if (in1)
{
if (((W.x1-V.x)*(W.x1-V.x)+(W.y1-V.y)*(W.y1-V.y)) > radius_sq)
in1 = 0;
}
if (in2)
{
if (((W.x2-V.x)*(W.x2-V.x)+(W.y2-V.y)*(W.y2-V.y)) > radius_sq)
in2 = 0;
}
}
else
{
in1 = 0;
in2 = 0;
}
}
}
if (in1 ^ in2)
{
changes = 1;
// Calculate point where wire crosses radius. Move calculations relative to via's center.
x1 = W.x1-V.x;
x2 = W.x2-V.x;
y1 = W.y1-V.y;
y2 = W.y2-V.y;
// Make x1,y1 always the end closest to via center.
if (in2)
{
// Swap start/end
t = x1;
x1 = x2;
x2 = t;
t = y1;
y1 = y2;
y2 = t;
}
// Perhaps the line and arc intersections equations could be solved directly without too much trouble,
// but didn't feel like dealing with it and the special cases.
if (!W.arc)
{
// Easiest to represent the line parametrically and step up it.
tstep = max(abs(y2-y1),abs(x2-x1));
xstep = (x2-x1)/real(tstep);
ystep = (y2-y1)/real(tstep);
tstep = tstep >>1;
// We're double testing points here, but don't feel like fixing.
for (t = 0; tstep > 0; t = t+tstep)
{
xc = x1+xstep*t;
yc = y1+ystep*t;
if ((xc*xc + yc*yc) > radius_sq)
{
// backup a little and increase resolution
t = t-tstep;
tstep = tstep >> 1;
}
}
}
else
{
// wire segment is an arc
// Get correct arc starting end angle for x1,y1
if ((x1+V.x) == W.arc.x1 && (y1+V.y) == W.arc.y1)
{
astart = W.arc.angle1;
aend = W.arc.angle2;
}
else
{
// Swap start/end
astart = W.arc.angle2;
aend = W.arc.angle1;
}
// wstep is the change in angle to the next point on the arc to test.
astart = PI/180 * astart;
aend = PI/180 * aend;
wstep = (aend-astart)/2; // make wstep 1/2 the difference
sin_of_astart = W.arc.radius*sin(astart);
cos_of_astart = W.arc.radius*cos(astart);
// dy = radius*(sin(astart+dw)-sin(astart))
// dx = radius*(cos(astart+dw)-cos(astart))
// w is the current angle on the arc being tested
// We're double testing points here, but don't feel like fixing.
for (w = astart+wstep; abs(wstep) > .00001; w = w+wstep)
{
yc = y1+W.arc.radius*sin(w)-sin_of_astart;
xc = x1+W.arc.radius*cos(w)-cos_of_astart;
if ((xc*xc + yc*yc) > radius_sq)
{
// backup a little and increase resolution
w = w-wstep;
wstep = wstep/2;
}
}
}
// Determine location of tangents of via back to wire.
// angular offset = sin (viaradius/(seg to via ctr distance))
tangent_radius = (V.diameter[W.layer] - W.width)/2;
if (tangent_radius > 0)
{
// don't bother if wire is bigger than via
tearseg_delta_w = asin(real(tangent_radius)/radius);
tearseg_len = sqrt (radius * radius - tangent_radius * tangent_radius);
if (xc == 0)
{
if (yc < 0)
tearseg_w = PI*.5;
else
tearseg_w = -PI*.5;
}
else
{
tearseg_w = atan (real(yc)/(xc));
}
// Get the right quadrant
if (xc > 0)
tearseg_w = tearseg_w + PI;
tearseg_xend = V.x+xc + tearseg_len*cos(tearseg_w-tearseg_delta_w);
tearseg_yend = V.y+yc + tearseg_len*sin(tearseg_w-tearseg_delta_w);
// Suggest a script command.
output_via_wire (W.layer, W.width, int(V.x+xc), int(V.y+yc), tearseg_xend, tearseg_yend, V, W, S);
// Now add segment to the center of the via so ratsnest doesn't show up as dangling.
output_via_wire (W.layer, W.width, int(V.x), int(V.y), tearseg_xend, tearseg_yend, V, W, S);
// Now the other side of the tear
tearseg_xend = V.x+xc + tearseg_len*cos(tearseg_w+tearseg_delta_w);
tearseg_yend = V.y+yc + tearseg_len*sin(tearseg_w+tearseg_delta_w);
// Suggest a script command.
output_via_wire (W.layer, W.width, int(V.x+xc), int(V.y+yc), tearseg_xend, tearseg_yend, V, W, S);
// Now add segment to the center of the via so ratsnest doesn't show up as dangling.
output_via_wire (W.layer, W.width, int(V.x), int(V.y), tearseg_xend, tearseg_yend, V, W, S);
}
}
}
}
}
void generate_tears (void)
{
if (!board)
{
dlgMessageBox("You should run this ULP from an open board design.");
return;
}
board(B)
{
uiw_internal = User_Ignore_Width/u2mil(1); // Convert user mil units to internal units.
via_count = 0;
fname = filesetext(B.name, "_AddTearDrops.scr");
if (!User_Vias && !User_Pads)
{
dlgMessageBox("You must check vias and/or pads option.");
return;
}
output(fname, "wtD")
{
output_text("# Script generated to add teardrops to board vias.");
output_text("# Script values in mm and spreadsheet values in mils:");
output_text("# This script generated with the following user parameters:");
sprintf(params, "# Teardrop Apex Radius Factor: %.2f. Ignoring segments >= %.1f mils. Ignoring segments with width/via_hole ratio >= %.1f. ",
User_Tear_Radius, User_Ignore_Width, User_Ignore_sdratio);
output_text(params);
output_text("");
output_hdr ();
output_text("SET WIRE_BEND 2;"); // straight lines for drawing our teardrop wires.
output_text("GRID MM;");
B.signals(S)
{
if (User_Vias)
do_vias(S);
if (User_Pads)
do_pads(S);
}
output_text("GRID LAST;");
//sprintf (vcount, "Via Count: %d\nGenerated script file: %s", via_count, filename(fname));
//dlgMessageBox(vcount);
if (changes)
exit ("script '" + fname + "';\n");
else
dlgMessageBox("No teardrops generated with current parameters");
}
}
}
//*****************************
string mainscrtext =
"\nStatus bar will show progress while generating teardrops.\n\n"
"Apex Radius Factor sets the distance from the apex of a teardrop to the associated via's center. "
"The Radius Factor entered is multiplied by the via's drill-hole diameter to arrive at a physical distance."
"For example, with an entered radius factor of 1.5 operating on a via with a drill size of 10mils, the apex begins "
"15 mils from that particular via's center.";
dlgDialog("Teardrops for Vias")
{
dlgHBoxLayout dlgSpacing(ScreenWidth/2);
dlgHBoxLayout
{
dlgVBoxLayout dlgSpacing(ScreenHeight/2);
dlgTabWidget
{
dlgTabPage("Processing")
{
dlgTextView(mainscrtext);
dlgHBoxLayout
{
dlgGroup("Parameters")
{
dlgSpacing(10);
dlgHBoxLayout
{
dlgLabel("Teardrop Apex Radius Factor ");
dlgRealEdit(User_Tear_Radius, 0.5, 2.5);
dlgSpacing(20);
dlgLabel("Ignore all segments >= ");
dlgRealEdit(User_Ignore_Width, 4.0, 400.0);
dlgLabel(" mils");
dlgSpacing(20);
dlgLabel("Ignore all segments/drill ratios >= ");
dlgRealEdit(User_Ignore_sdratio, 0.1, 99.0);
}
dlgVBoxLayout
{
dlgCheckBox("&Teardrop Vias", User_Vias);
dlgCheckBox("&Teardrop Pads", User_Pads);
dlgStretch(1);
dlgSpacing(10);
dlgPushButton("Teardrop Board") generate_tears();
dlgPushButton("-Cancel") dlgReject();
}
}
}
} // tab page
dlgTabPage("Overview")
{
dlgTextView(HelpText);
}
dlgTabPage("History")
{
dlgTextView(HistoryText1 + Release + " " + ReleaseDate + " " + HistoryText2);
}
}
}
};