Changeset 435 for trunk/gui/scripts/sequence.tcl
- Timestamp:
- May 9, 2006 5:56:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/sequence.tcl
r428 r435 51 51 } 52 52 53 set ctype "" 54 set _dataobjs($index) "" 53 55 foreach cname [$_xmlobj children $name] { 54 56 set type [$xmlobj element -as type $path.$name.$cname] … … 56 58 index { 57 59 # ignore this 60 continue 58 61 } 59 62 curve { 60 63 set obj [Rappture::Curve ::#auto $xmlobj $path.$name.$cname] 61 break62 64 } 63 65 field { 64 66 set obj [Rappture::Field ::#auto $xmlobj $path.$name.$cname] 65 break66 67 } 67 68 image { 68 69 set obj [Rappture::Image ::#auto $xmlobj $path.$name.$cname] 69 break70 70 } 71 71 default { … … 73 73 } 74 74 } 75 if {"" == $ctype} { 76 set ctype $type 77 } 78 if {$type == $ctype} { 79 lappend _dataobjs($index) $obj 80 } else { 81 itcl::delete object $obj 82 } 75 83 } 76 set _dataobjs($index) $obj77 84 } 78 85 … … 80 87 # Generate a list of sorted index values. 81 88 # 82 set units [$xmlobj get path.index.units]89 set units [$xmlobj get $path.index.units] 83 90 if {"" != $units} { 84 91 # build up a list: {10m 10} {10cm 0.1} ... … … 125 132 itcl::body Rappture::Sequence::destructor {} { 126 133 foreach key [array names _dataobjs] { 127 itcl::delete object $_dataobjs($key)134 eval itcl::delete object $_dataobjs($key) 128 135 } 129 136 itcl::delete object $_xmlobj
Note: See TracChangeset
for help on using the changeset viewer.