ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/do_results3.6.tcl
(Generate patch)

Comparing ray/src/util/do_results3.6.tcl (file contents):
Revision 2.1 by greg, Thu Oct 27 15:56:08 1994 UTC vs.
Revision 2.4 by greg, Tue Mar 14 10:16:46 1995 UTC

# Line 53 | Line 53 | set conv(types) {GIF-bw GIF-8 PICT PS PPM-asc PPM-bin
53   set conv(typ) tga-24
54  
55   proc list_views {} {            # List finished and unfinished pictures
56 <        global radvar fvwbox ufvwbox
56 >        global radvar fvwbox ufvwbox alldone
57          set fpics {}
58          set ufpics {}
59          foreach vw $radvar(view) {
# Line 68 | Line 68 | proc list_views {} {           # List finished and unfinished p
68          eval $fvwbox insert end $fpics
69          $ufvwbox delete 0 end
70          eval $ufvwbox insert end $ufpics
71 +        set alldone [expr [llength $fpics] == [llength $radvar(view)]]
72   }
73  
74   proc delpic {} {                # Delete selected pictures
75 <        global curmess alldone
75 >        global curmess
76          set selected_pics [get_selpics]
77          if {"$selected_pics" == {}} {
78                  set curmess "No pictures selected."
# Line 79 | Line 80 | proc delpic {} {               # Delete selected pictures
80          }
81          if [tk_dialog .dlg {Verification} \
82                          "Really delete picture file(s) $selected_pics?" \
83 <                        questhead 1 {Delete} {Cancel}] {
83 >                        questhead 0 {Delete} {Cancel}] {
84                  return
85          }
86          if {! [catch {eval exec rm $selected_pics < /dev/null} curmess]} {
87                  set curmess "Deleted [llength $selected_pics] file(s)."
88          }
89          list_views
89        set alldone 0
90   }
91  
92   proc get_selpics {} {           # return selected pictures
# Line 140 | Line 140 | proc cnvpic {} {               # Convert selected pictures
140                  set p $radvar(PICTURE)_$vw.pic
141                  set df [format $convdest $vw]
142                  set curmess "Converting $p to $df..."
143 <                update idletasks
143 >                update
144                  set cc [format $conv($conv(typ),com) $p $df]
145                  if {! [catch {eval exec $cc} curmess]} {
146                          set curmess "Done."
# Line 154 | Line 154 | proc prtpic {} {               # Print selected pictures
154          foreach i [$fvwbox curselection] {
155                  set p $radvar(PICTURE)_[$fvwbox get $i].pic
156                  set curmess "Printing $p..."
157 <                update idletasks
157 >                update
158                  set pc [format $prntcom $p]
159                  if {! [catch {eval exec $pc} curmess]} {
160                          set curmess "Done."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines