| 19 |
|
set n 1 |
| 20 |
|
foreach v $oldval { |
| 21 |
|
if {"[string index $v 0]" == "-"} { |
| 22 |
< |
lappend radvar(view) "$n $v" |
| 22 |
> |
lappend radvar(view) "u$n $v" |
| 23 |
|
} elseif {[lsearch -glob $radvar(view) \ |
| 24 |
|
"[lindex $v 0] *"] >= 0} { |
| 25 |
|
continue |
| 66 |
|
} else { |
| 67 |
|
set radvar(PENUMBRAS) False |
| 68 |
|
} |
| 69 |
+ |
if [info exists radvar(RAWSAVE)] { |
| 70 |
+ |
cardval radvar(RAWSAVE) {True False} |
| 71 |
+ |
} else { |
| 72 |
+ |
set radvar(RAWSAVE) False |
| 73 |
+ |
} |
| 74 |
|
if [info exists radvar(VARIABILITY)] { |
| 75 |
|
cardval radvar(VARIABILITY) {High Medium Low} |
| 76 |
|
} else { |
| 103 |
|
IND* { set radvar(INDIRECT) $vval } |
| 104 |
|
DET* { set radvar(DETAIL) $vval } |
| 105 |
|
PEN* { set radvar(PENUMBRAS) $vval } |
| 106 |
+ |
RAW* { set radvar(RAWSAVE) $vval } |
| 107 |
|
VAR* { set radvar(VARIABILITY) $vval } |
| 108 |
|
REP* { set radvar(REPORT) $vval } |
| 109 |
|
} |
| 125 |
|
} |
| 126 |
|
if {[lsearch -exact {ZONE QUALITY OCTREE PICTURE AMBFILE OPTFILE |
| 127 |
|
EXPOSURE RESOLUTION UP INDIRECT DETAIL PENUMBRAS |
| 128 |
< |
VARIABILITY REPORT} $vn] >= 0} { |
| 128 |
> |
RAWSAVE VARIABILITY REPORT} $vn] >= 0} { |
| 129 |
|
puts $fi "$vn= $radvar($vn)" |
| 130 |
|
return |
| 131 |
|
} |
| 154 |
|
} |
| 155 |
|
if {"$vl" == "all" && ! [chksave]} {return 0} |
| 156 |
|
set curmess {Please wait...} |
| 157 |
< |
update idletasks |
| 157 |
> |
update |
| 158 |
|
if [catch {exec rad -n -w -e $f >& /usr/tmp/ro[pid]}] { |
| 159 |
|
set curmess [exec cat /usr/tmp/ro[pid]] |
| 160 |
|
exec rm -f /usr/tmp/ro[pid] |
| 173 |
|
set curmess {Project loaded.} |
| 174 |
|
} else { |
| 175 |
|
foreach n $vl { |
| 176 |
< |
set radvar($n) {} |
| 176 |
> |
catch {unset radvar($n)} |
| 177 |
|
} |
| 178 |
|
while {[gets $fi curli] != -1} { |
| 179 |
|
if [regexp {^[a-zA-Z][a-zA-Z0-9]* *=} $curli] { |
| 248 |
|
return 0 |
| 249 |
|
} |
| 250 |
|
} |
| 251 |
+ |
if {[file exists $f] && ! [file writable $f] && |
| 252 |
+ |
[catch {exec chmod u+w $f} curmess]} { |
| 253 |
+ |
beep |
| 254 |
+ |
return 0 |
| 255 |
+ |
} |
| 256 |
|
if [save_vars $f] { |
| 257 |
|
set rifname [pwd]/$f |
| 258 |
|
set readonly 0 |
| 293 |
|
pack $w.left -side left |
| 294 |
|
button $w.left.load -text LOAD -width 5 \ |
| 295 |
|
-relief raised -command {newload $curfile} |
| 296 |
< |
button $w.left.save -text SAVE -width 5 \ |
| 297 |
< |
-relief raised -command {newsave $curfile} |
| 296 |
> |
button $w.left.save -text SAVE -width 5 -relief raised \ |
| 297 |
> |
-command "newsave \$curfile; update_dir $w.right" |
| 298 |
|
button $w.left.new -text NEW -width 5 \ |
| 299 |
|
-relief raised -command {newnew $curfile} |
| 300 |
|
pack $w.left.load $w.left.save $w.left.new -side top -pady 15 -padx 20 |