43 |
|
return -1 |
44 |
|
} |
45 |
|
set curmess {} |
46 |
< |
set n [lsearch -glob $radvar(view) "$viewname *"] |
46 |
> |
set n [lsearch -exact $radvar(view) $viewname] |
47 |
> |
if {$n < 0} { |
48 |
> |
set n [lsearch -glob $radvar(view) "$viewname *"] |
49 |
> |
} |
50 |
|
if {$n >= 0} { |
51 |
|
set radvar(view) [lreplace $radvar(view) $n $n] |
52 |
|
if {"$pos" != "end" && $pos > $n} {incr pos -1} |
80 |
|
} |
81 |
|
|
82 |
|
proc copyviews rf { # copy view settings from another RIF |
83 |
< |
load_vars [file tail $rf] {view UP PICTURE RESOLUTION} |
83 |
> |
load_vars [file tail $rf] {view UP PICTURE RESOLUTION RAWSAVE} |
84 |
|
vnchange viewname {} w |
85 |
|
} |
86 |
|
|
176 |
|
entry $w.rze -textvariable radvar(RESOLUTION) -relief sunken |
177 |
|
place $w.rze -relwidth .2857 -relheight .0610 -relx .2857 -rely .7717 |
178 |
|
helplink $w.rze trad views resolution |
179 |
+ |
# Rawsave |
180 |
+ |
checkbutton $w.rawb -relief flat -text Rawsave \ |
181 |
+ |
-variable radvar(RAWSAVE) -onvalue True -offvalue False |
182 |
+ |
place $w.rawb -relx .6429 -rely .7717 |
183 |
+ |
helplink $w.rawb trad views rawsave |
184 |
|
# Revert and Copy buttons |
185 |
|
button $w.revert -text Revert -relief raised \ |
186 |
|
-command "copyviews $rifname" |
194 |
|
helplink $w.copy trad views copy |
195 |
|
# Assign focus |
196 |
|
bind $w.vne <Return> "focus $w.vo.e" |
197 |
< |
bind $w.vo.e <Return> addview |
197 |
> |
bind $w.vo.e <Return> "addview ; $w.vclr invoke" |
198 |
|
bind $w.vo.e <B2-Motion> {} |
199 |
|
bind $w.vo.e <Button-2> "$w.vo.e insert insert \[selection get\]" |
200 |
|
$w.vclr invoke |