Changeset 3804 for branches/1.3
- Timestamp:
- Jul 15, 2013, 11:25:45 AM (11 years ago)
- Location:
- branches/1.3/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3/gui/scripts/molvisviewer.tcl
r3800 r3804 450 450 -param "" 451 451 } 452 array set params $ settings452 array set params $options 453 453 454 454 set pos [lsearch -exact $dataobj $_dlist] -
branches/1.3/gui/scripts/resultviewer.tcl
r3800 r3804 118 118 set slot [lindex $_dataslots $i] 119 119 foreach dobj $slot { 120 if {"" != $_mode} { 121 $_mode2widget($_mode) delete $dobj 122 } 120 123 itcl::delete object $dobj 121 124 } … … 138 141 } 139 142 143 if {"" != $_mode} { 144 $_mode2widget($_mode) delete $dobj 145 } 140 146 # destroy the object and forget it 141 147 itcl::delete object $dobj -
branches/1.3/gui/scripts/xyresult.tcl
r3802 r3804 1131 1131 } else { 1132 1132 # Set the axis range from the entry values. 1133 set min $_axisPopup($axis-min) 1134 set max $_axisPopup($axis-max) 1133 set label $_axisPopup(label) 1134 set min $_axisPopup(${label}-min) 1135 set max $_axisPopup(${label}-max) 1135 1136 $g axis configure $axis -min $min -max $max 1136 1137 } … … 1158 1159 return 1159 1160 } 1160 set _axisPopup($axis-min) $min 1161 set label $_axisPopup(label) 1162 set _axisPopup(${label}-min) $min 1161 1163 } 1162 1164 "max" { … … 1168 1170 return 1169 1171 } 1170 set _axisPopup($axis-max) $max 1172 set label $_axisPopup(label) 1173 set _axisPopup(${label}-max) $max 1171 1174 } 1172 1175 } … … 1339 1342 } 1340 1343 set amin "" 1341 if { [info exists _limits(${axis}${type}-min)] } { 1342 set amin $_limits(${axis}${type}-min) 1344 set label $_axisPopup(label) 1345 if { [info exists _limits(${label}-min)] } { 1346 set amin $_limits(${label}-min) 1343 1347 } 1344 1348 set amax "" 1345 if { [info exists _limits(${ axis}${type}-max)] } {1346 set amax $_limits(${ axis}${type}-max)1349 if { [info exists _limits(${label}-max)] } { 1350 set amax $_limits(${label}-max) 1347 1351 } 1348 1352 set auto 1 … … 1355 1359 set _axisPopup(auto) $_axisPopup($axis-auto) 1356 1360 SetAxisRangeState $axis 1357 if { ![info exists _axisPopup($ axis-min)] } {1361 if { ![info exists _axisPopup(${label}-min)] } { 1358 1362 if { $amin != "" } { 1359 set _axisPopup($ axis-min) $amin1360 set _axisPopup(min) $_axisPopup($ axis-min)1363 set _axisPopup(${label}-min) $amin 1364 set _axisPopup(min) $_axisPopup(${label}-min) 1361 1365 SetAxis min 1362 1366 } else { 1363 set _axisPopup($ axis-min) $min1364 } 1365 } 1366 if { ![info exists _axisPopup($ axis-max)] } {1367 set _axisPopup(${label}-min) $min 1368 } 1369 } 1370 if { ![info exists _axisPopup(${label}-max)] } { 1367 1371 if { $amax != "" } { 1368 set _axisPopup($ axis-max) $amax1369 set _axisPopup(max) $_axisPopup($ axis-max)1372 set _axisPopup(${label}-max) $amax 1373 set _axisPopup(max) $_axisPopup(${label}-max) 1370 1374 SetAxis max 1371 1375 } else { 1372 set _axisPopup($ axis-max) $max1373 } 1374 } 1375 set _axisPopup(min) $_axisPopup($axis-min)1376 set _axisPopup(max) $_axisPopup($axis-max)1376 set _axisPopup(${label}-max) $max 1377 } 1378 } 1379 set _axisPopup(min) $_axisPopup(${label}-min) 1380 set _axisPopup(max) $_axisPopup(${label}-max) 1377 1381 set _axisPopup(axis) $axis 1378 1382 … … 1480 1484 if { $min != "" && ( ![info exists _limits($tag)] || 1481 1485 $_limits($tag) > $min ) } { 1482 set _limits( tag) $min1486 set _limits($tag) $min 1483 1487 } 1484 1488 set tag ${label}-max
Note: See TracChangeset
for help on using the changeset viewer.