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 |
100 |
|
PEN* { set radvar(PENUMBRAS) $vval } |
101 |
|
VAR* { set radvar(VARIABILITY) $vval } |
102 |
|
REP* { set radvar(REPORT) $vval } |
103 |
+ |
RAW* { set radvar(RAWFILE) $vval } |
104 |
+ |
ZF* {set radvar(ZFILE) $vval } |
105 |
|
} |
106 |
|
|
107 |
|
} |
121 |
|
} |
122 |
|
if {[lsearch -exact {ZONE QUALITY OCTREE PICTURE AMBFILE OPTFILE |
123 |
|
EXPOSURE RESOLUTION UP INDIRECT DETAIL PENUMBRAS |
124 |
< |
VARIABILITY REPORT} $vn] >= 0} { |
124 |
> |
RAWFILE ZFILE VARIABILITY REPORT} $vn] >= 0} { |
125 |
|
puts $fi "$vn= $radvar($vn)" |
126 |
|
return |
127 |
|
} |
169 |
|
set curmess {Project loaded.} |
170 |
|
} else { |
171 |
|
foreach n $vl { |
172 |
< |
set radvar($n) {} |
172 |
> |
catch {unset radvar($n)} |
173 |
|
} |
174 |
|
while {[gets $fi curli] != -1} { |
175 |
|
if [regexp {^[a-zA-Z][a-zA-Z0-9]* *=} $curli] { |
244 |
|
return 0 |
245 |
|
} |
246 |
|
} |
247 |
+ |
if {[file exists $f] && ! [file writable $f] && |
248 |
+ |
[catch {exec chmod u+w $f} curmess]} { |
249 |
+ |
beep |
250 |
+ |
return 0 |
251 |
+ |
} |
252 |
|
if [save_vars $f] { |
253 |
|
set rifname [pwd]/$f |
254 |
|
set readonly 0 |
289 |
|
pack $w.left -side left |
290 |
|
button $w.left.load -text LOAD -width 5 \ |
291 |
|
-relief raised -command {newload $curfile} |
292 |
< |
button $w.left.save -text SAVE -width 5 \ |
293 |
< |
-relief raised -command {newsave $curfile} |
292 |
> |
button $w.left.save -text SAVE -width 5 -relief raised \ |
293 |
> |
-command "newsave \$curfile; update_dir $w.right" |
294 |
|
button $w.left.new -text NEW -width 5 \ |
295 |
|
-relief raised -command {newnew $curfile} |
296 |
|
pack $w.left.load $w.left.save $w.left.new -side top -pady 15 -padx 20 |