Changeset 2241
- Timestamp:
- May 16, 2011, 11:07:56 AM (14 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/analyzer.tcl
r2175 r2241 569 569 } 570 570 } 571 572 571 # if there are any valid results, add them to the resultset 573 572 if {$haveresults} { … … 580 579 set label [$xmlobj get output.$item.about.label] 581 580 } 582 583 581 set hidden [$xmlobj get output.$item.hide] 584 set hidden [expr {"" != $hidden && $hidden}] 585 582 if { $hidden == "" } { 583 set hidden 0 584 } 586 585 if {"" != $label && !$hidden} { 587 586 if {![info exists _label2page($label)]} { … … 653 652 foreach label [array names _label2page] { 654 653 set page $_label2page($label) 655 $page.rviewer clear 654 destroy $page.rviewer 655 #$page.rviewer clear 656 656 } 657 657 $itk_component(resultselector) value "" … … 968 968 set str [$_tool xml get $path.about.label] 969 969 if {"" == $str} { 970 1set str [$_tool xml element -as id $path]970 set str [$_tool xml element -as id $path] 971 971 } 972 972 append details "$str = $val\n" -
trunk/gui/scripts/barresult.tcl
r1929 r2241 251 251 } 252 252 pack $itk_component(legend) -expand yes -fill both 253 254 253 after idle [subst { 255 254 update idletasks … … 901 900 set g $itk_component(plot) 902 901 set elem "" 903 902 904 903 # Peek inside of Blt_ZoomStack package to see if we're currently in the 905 904 # middle of a zoom selection. … … 1129 1128 itcl::body Rappture::BarResult::_axis {option args} { 1130 1129 set inner [$itk_component(hull).axes component inner] 1131 1132 1130 switch -- $option { 1133 1131 hilite { -
trunk/gui/scripts/loader.tcl
r1694 r2241 34 34 protected method _downloadValues {} 35 35 protected method _tooltip {} 36 37 private method SetDefaultValue { value } 36 38 37 39 private variable _owner "" ;# thing managing this control … … 240 242 # 241 243 set str [$_owner xml get $path.default] 242 if {$str != ""} { after 1500 [itcl::code $this value $str] } 244 if { $str != "" } { 245 bind $itk_component(hull) <Map> [itcl::code $this SetDefaultValue $str] 246 } 243 247 } 244 248 … … 314 318 # query tooltip on-demand based on current choice 315 319 return "@[itcl::code $this _tooltip]" 320 } 321 322 # 323 # SetDefaultValue -- 324 # 325 # Sets the designated default value for the loader. This must be done 326 # after the entire application is assembled, otherwise the default 327 # values set up by the loader will be overwritten by the various widgets 328 # themselves when they try to set their default values. 329 # 330 # This is called from a <Map> event to the loader (combobox). This 331 # will get trigger the first time the loader is displayed. The binding 332 # is then removed. 333 # 334 itcl::body Rappture::Loader::SetDefaultValue { value } { 335 after idle [itcl::code $this value $value] 336 # We're done. Remove the binding. 337 bind $itk_component(hull) <Map> {} 316 338 } 317 339 -
trunk/gui/scripts/visviewer.tcl
r2237 r2241 25 25 set _servers(vtkvis) "localhost:2010" 26 26 27 pr ivatevariable _sid "" ;# socket connection to server27 protected variable _sid "" ;# socket connection to server 28 28 private common _done ;# Used to indicate status of send. 29 29 private variable _buffer ;# buffer for incoming/outgoing commands … … 41 41 protected variable _parser "" ;# interpreter for incoming commands 42 42 protected variable _image 43 protected variable _hostname 43 44 44 45 constructor { hostlist args } { … … 222 223 continue 223 224 } 225 set _hostname $hostname:$port 224 226 fconfigure $_sid -translation binary -encoding binary 225 227 -
trunk/gui/scripts/vtkviewer2.tcl
r2240 r2241 140 140 # ---------------------------------------------------------------------- 141 141 itcl::body Rappture::VtkViewer2::constructor {hostlist args} { 142 puts stderr "Enter constructor: [info level -1]" 142 143 143 144 # Rebuild event … … 338 339 # ---------------------------------------------------------------------- 339 340 itcl::body Rappture::VtkViewer2::destructor {} { 341 Disconnect 340 342 $_dispatcher cancel !rebuild 341 343 $_dispatcher cancel !resize … … 343 345 image delete $_image(download) 344 346 array unset _settings $this-* 345 blt::arcball destroy $_arcball347 catch { blt::arcball destroy $_arcball} 346 348 } 347 349 … … 619 621 # ---------------------------------------------------------------------- 620 622 itcl::body Rappture::VtkViewer2::Connect {} { 623 puts stderr "Enter Connect: [info level -1]" 621 624 set _hosts [GetServerList "vtkvis"] 622 625 if { "" == $_hosts } { … … 625 628 set result [VisViewer::Connect $_hosts] 626 629 if { $result } { 630 puts stderr "Connected to $_hostname sid=$_sid" 627 631 set w [winfo width $itk_component(view)] 628 632 set h [winfo height $itk_component(view)] … … 828 832 FixSettings axismode 829 833 830 831 834 if {"" != $_first} { 832 835 set location [$_first hints camera] … … 926 929 if { $location != "" } { 927 930 array set _view $location 928 parray _view929 931 } 930 932 } -
trunk/gui/scripts/xyresult.tcl
r2141 r2241 263 263 # USAGE: add <dataobj> ?<settings>? 264 264 # 265 # Clients use this to add a data objectto the plot. The optional <settings>265 # Clients use this to add a dataobj to the plot. The optional <settings> 266 266 # are used to configure the plot. Allowed settings are -color, 267 267 # -brightness, -width, -linestyle and -raise. … … 348 348 # ---------------------------------------------------------------------- 349 349 itcl::body Rappture::XyResult::get {} { 350 # put the data object list in order according to -raise options 351 set dlist $_dlist 352 foreach obj $dlist { 350 # put the dataobj list in order according to -raise options 351 set bottom {} 352 set top {} 353 foreach obj $_dlist { 353 354 if {[info exists _dataobj2raise($obj)] && $_dataobj2raise($obj)} { 354 355 set i [lsearch -exact $dlist $obj]
Note: See TracChangeset
for help on using the changeset viewer.