Changeset 766 for trunk/gui/scripts/resultviewer.tcl
- Timestamp:
- Jun 10, 2007, 4:06:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/resultviewer.tcl
r736 r766 43 43 private variable _mode2widget ;# maps plotting mode => widget 44 44 private variable _dataslots "" ;# list of all data objects in this widget 45 private variable _plotlist "" ;# list of indices plotted in _dataslots46 45 } 47 46 … … 154 153 switch -- $option { 155 154 add { 155 set params "" 156 156 foreach {index opts} $args { 157 if {$index == "params"} { 158 set params $opts 159 continue 160 } 157 161 set reset "-color autoreset" 158 162 set slot [lindex $_dataslots $index] … … 179 183 } 180 184 } 185 if {"" != $params && "" != $_mode} { 186 eval $_mode2widget($_mode) parameters $params 187 } 181 188 } 182 189 clear { … … 185 192 $_mode2widget($_mode) delete 186 193 } 187 set _plotlist ""188 194 } 189 195 default { … … 289 295 } 290 296 } 291 number - integer - boolean - choice { 297 number - integer { 298 set mode "number" 299 if {![info exists _mode2widget($mode)]} { 300 set w $itk_interior.number 301 Rappture::NumberResult $w 302 set _mode2widget($mode) $w 303 } 304 } 305 boolean - choice { 292 306 set mode "value" 293 307 if {![info exists _mode2widget($mode)]} {
Note: See TracChangeset
for help on using the changeset viewer.