1 |
< |
# SCCSid "$SunId$ LBL" |
1 |
> |
# RCSid: $Id$ |
2 |
|
# |
3 |
|
# Results screen for trad |
4 |
|
# |
33 |
|
set conv(ras-24,nam) "Sun 24-bit" |
34 |
|
set conv(ras-24,com) "ra_pr24 %s %s" |
35 |
|
set conv(ras-24,suf) .ras |
36 |
< |
set conv(PS,nam) "PostScript B&W" |
37 |
< |
set conv(PS,com) "ra_ps %s %s" |
38 |
< |
set conv(PS,suf) .ps |
36 |
> |
set conv(PS-bw,nam) "PostScript B&W" |
37 |
> |
set conv(PS-bw,com) "ra_ps -b -C %s %s" |
38 |
> |
set conv(PS-bw,suf) .ps |
39 |
> |
set conv(PS-clr,nam) "PostScript Color" |
40 |
> |
set conv(PS-clr,com) "ra_ps -c -C %s %s" |
41 |
> |
set conv(PS-clr,suf) .ps |
42 |
|
set conv(tga-bw,nam) "Targa B&W" |
43 |
|
set conv(tga-bw,com) "ra_t8 -b %s %s" |
44 |
|
set conv(tga-bw,suf) .tga |
51 |
|
set conv(tga-24,nam) "Targa 24-bit" |
52 |
|
set conv(tga-24,com) "ra_t16 -3 %s %s" |
53 |
|
set conv(tga-24,suf) .tga |
54 |
< |
set conv(types) {GIF-bw GIF-8 PICT PS PPM-asc PPM-bin ras-bw ras-8 ras-24\ |
55 |
< |
tga-bw tga-8 tga-16 tga-24 TIFF-bw TIFF-24} |
54 |
> |
set conv(types) {GIF-bw GIF-8 PICT PS-bw PS-clr PPM-asc PPM-bin ras-bw ras-8\ |
55 |
> |
ras-24 tga-bw tga-8 tga-16 tga-24 TIFF-bw TIFF-24} |
56 |
|
set conv(typ) tga-24 |
57 |
|
|
58 |
|
proc testappend {flst tf} { # test if tf exists and append to flst if so |
59 |
|
upvar $flst mylist |
60 |
< |
if [file exists $tf] { |
60 |
> |
if [file isfile $tf] { |
61 |
|
lappend mylist $tf |
62 |
|
} |
63 |
|
} |
67 |
|
set fpics {} |
68 |
|
set ufpics {} |
69 |
|
foreach vw $radvar(view) { |
70 |
< |
if [file exists ${rawfroot}_[lindex $vw 0].unf] { |
70 |
> |
if [file isfile ${rawfroot}_[lindex $vw 0].unf] { |
71 |
|
lappend ufpics [lindex $vw 0] |
72 |
< |
} elseif {[file exists $radvar(PICTURE)_[lindex $vw 0].pic]} { |
72 |
> |
} elseif {[file isfile $radvar(PICTURE)_[lindex $vw 0].hdr]} { |
73 |
|
lappend fpics [lindex $vw 0] |
74 |
|
} |
75 |
|
} |
102 |
|
global fvwbox ufvwbox radvar rawfroot |
103 |
|
set sl {} |
104 |
|
foreach i [$fvwbox curselection] { |
105 |
< |
testappend sl $radvar(PICTURE)_[$fvwbox get $i].pic |
105 |
> |
testappend sl $radvar(PICTURE)_[$fvwbox get $i].hdr |
106 |
|
if {$getall && $rawfroot != $radvar(PICTURE)} { |
107 |
< |
testappend sl ${rawfroot}_[$fvwbox get $i].pic |
107 |
> |
testappend sl ${rawfroot}_[$fvwbox get $i].hdr |
108 |
|
} |
109 |
|
if {$getall && $radvar(ZFILE) != {}} { |
110 |
|
testappend sl $radvar(ZFILE)_[$fvwbox get $i].zbf |
151 |
|
set curmess "No finished pictures selected." |
152 |
|
foreach i [$fvwbox curselection] { |
153 |
|
set vw [$fvwbox get $i] |
154 |
< |
set p $radvar(PICTURE)_$vw.pic |
154 |
> |
set p $radvar(PICTURE)_$vw.hdr |
155 |
|
set df [format $convdest $vw] |
156 |
|
set curmess "Converting $p to $df..." |
157 |
|
update |
166 |
|
global curmess prntcom radvar fvwbox |
167 |
|
set curmess "No finished pictures selected." |
168 |
|
foreach i [$fvwbox curselection] { |
169 |
< |
set p $radvar(PICTURE)_[$fvwbox get $i].pic |
169 |
> |
set p $radvar(PICTURE)_[$fvwbox get $i].hdr |
170 |
|
set curmess "Printing $p..." |
171 |
|
update |
172 |
|
set pc [format $prntcom $p] |
232 |
|
helplink $w.cnvb trad results convert |
233 |
|
menubutton $w.typb -text $conv($conv(typ),nam) -relief raised \ |
234 |
|
-menu $w.typb.m |
235 |
< |
place $w.typb -relwidth .1786 -relheight .0610 -relx .2143 -rely .7317 |
235 |
> |
place $w.typb -relwidth .1986 -relheight .0610 -relx .2143 -rely .7317 |
236 |
|
helplink $w.typb trad results convtype |
237 |
|
menu $w.typb.m |
238 |
|
foreach t $conv(types) { |
242 |
|
set convdest $radvar(PICTURE)_%s$conv($t,suf)" |
243 |
|
} |
244 |
|
label $w.fil -text File: |
245 |
< |
place $w.fil -relx .4286 -rely .7317 |
245 |
> |
place $w.fil -relx .4486 -rely .7317 |
246 |
|
set convdest $radvar(PICTURE)_%s$conv($conv(typ),suf) |
247 |
|
entry $w.file -textvariable convdest -relief sunken |
248 |
< |
place $w.file -relwidth .4286 -relheight .0610 -relx .5000 -rely .7317 |
248 |
> |
place $w.file -relwidth .4086 -relheight .0610 -relx .5200 -rely .7317 |
249 |
|
helplink $w.file trad results convfile |
250 |
|
# Print picture(s) |
251 |
|
button $w.prtb -text Print -relief raised -command prtpic |