Changeset 8 for trunk/gui/scripts/analyzer.tcl
- Timestamp:
- Apr 2, 2005 9:33:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/analyzer.tcl
r6 r8 125 125 # 126 126 # If the simulation page is showing, this kicks off the simulator 127 # by executing the executable.command associated with the -tool. While127 # by executing the tool.command associated with the -tool. While 128 128 # the simulation is running, it shows status. When the simulation is 129 129 # finished, it switches automatically to "analyze" mode and shows … … 137 137 138 138 set job(control) "" 139 set job(error) "" 139 140 140 141 # if the hold window is set, then put up a busy cursor … … 152 153 set xml2 [$itk_option(-device) xml] 153 154 regsub -all {&} $xml2 {\\\&} xml2 154 regsub {</ tool>} $xml "$xml2</tool>" xml155 regsub {</run>} $xml "$xml2</run>" xml 155 156 puts $fid $xml 156 157 close $fid … … 159 160 # execute the tool using the path from the tool description 160 161 if {$status == 0} { 161 set cmd [$itk_option(-tool) get executable.command]162 set cmd [$itk_option(-tool) get tool.command] 162 163 163 164 set status [catch {eval blt::bgexec \ … … 211 212 212 213 # if control mode is "auto", then simulate right away 213 if { $_control == "auto"} {214 if {[string match auto* $_control]} { 214 215 simulate 215 216 } … … 231 232 232 233 # try to load new results from the given file 233 set _run [Rappture:: Library::open$file]234 set _run [Rappture::library $file] 234 235 235 236 # go through the analysis and create widgets to display results 236 237 foreach item [array names _widgets] { 237 $_widgets($item) configure - run$_run238 $_widgets($item) configure -output $_run 238 239 } 239 240 } … … 254 255 # CONFIGURATION OPTION: -tool 255 256 # 256 # Set to the Rappture:: Library object representing the tool being257 # Set to the Rappture::library object representing the tool being 257 258 # run in this analyzer. 258 259 # ---------------------------------------------------------------------- 259 260 itcl::configbody Rappture::Analyzer::tool { 260 261 if {![Rappture::library isvalid $itk_option(-tool)]} { 261 error "bad value \"$itk_option(-tool)\": should be Rappture:: Library"262 error "bad value \"$itk_option(-tool)\": should be Rappture::library" 262 263 } 263 264 … … 271 272 # CONFIGURATION OPTION: -device 272 273 # 273 # Set to the Rappture:: Library object representing the device being274 # Set to the Rappture::library object representing the device being 274 275 # run in this analyzer. 275 276 # ---------------------------------------------------------------------- … … 277 278 if {$itk_option(-device) != "" 278 279 && ![Rappture::library isvalid $itk_option(-device)]} { 279 error "bad value \"$itk_option(-device)\": should be Rappture:: Library"280 error "bad value \"$itk_option(-device)\": should be Rappture::library" 280 281 } 281 282 reset … … 285 286 # CONFIGURATION OPTION: -analysis 286 287 # 287 # Set to the Rappture:: Library object representing the analysis that288 # Set to the Rappture::library object representing the analysis that 288 289 # should be shown in this analyzer. 289 290 # ---------------------------------------------------------------------- 290 291 itcl::configbody Rappture::Analyzer::analysis { 291 292 if {![Rappture::library isvalid $itk_option(-analysis)]} { 292 error "bad value \"$itk_option(-analysis)\": should be Rappture:: Library"293 error "bad value \"$itk_option(-analysis)\": should be Rappture::library" 293 294 } 294 295 set _control [$itk_option(-analysis) get control] … … 314 315 pack $_widgets($item) -expand yes -fill both 315 316 } 317 elevels* { 318 set name "page[incr counter]" 319 320 set page [$itk_component(results) insert end $name] 321 $itk_component(resultselector) choices insert end \ 322 $name "Energy Levels" 323 324 set _widgets($item) [Rappture::EnergyLevels $page.#auto \ 325 -layout [$itk_option(-analysis) element -flavor object $item]] 326 pack $_widgets($item) -expand yes -fill both 327 } 316 328 } 317 329 }
Note: See TracChangeset
for help on using the changeset viewer.