Changeset 2325 for branches/blt4/gui
- Timestamp:
- Jul 29, 2011 12:52:41 PM (13 years ago)
- Location:
- branches/blt4/gui/scripts
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/scripts/Makefile.in
r2201 r2325 50 50 $(srcdir)/energyLevels.tcl \ 51 51 $(srcdir)/field.tcl \ 52 $(srcdir)/fieldentry.tcl \ 52 53 $(srcdir)/field2dresult.tcl \ 53 54 $(srcdir)/field3dresult.tcl \ -
branches/blt4/gui/scripts/controls.tcl
r2173 r2325 581 581 set queue [lrange $queue 1 end] 582 582 set c [winfo class $w] 583 if {[lsearch {DeviceEditor Note} $c] >= 0} {583 if {[lsearch {DeviceEditor FieldEditor Note} $c] >= 0} { 584 584 set expandgroup 1 585 585 break -
branches/blt4/gui/scripts/field.tcl
r2297 r2325 153 153 154 154 set rlist "" 155 puts stderr "children of field=[$_field children]" 155 156 156 157 # BE CAREFUL: return component names in proper order 157 158 foreach cname [$_field children -type component] { 159 puts stderr "cname=$cname" 158 160 if {[info exists _comp2dims($cname)] 159 161 && [string match $pattern $cname]} { -
branches/blt4/gui/scripts/heightmapviewer.tcl
r2048 r2325 35 35 inherit Rappture::VisViewer 36 36 37 itk_option define -device device Device "" 37 38 itk_option define -plotforeground plotForeground Foreground "" 38 39 itk_option define -plotbackground plotBackground Background "" … … 752 753 # Tell the engine to expect some data 753 754 set tag $dataobj-$comp 755 puts stderr "dataobj=$dataobj component=$comp tag=$tag" 754 756 if { ![info exists _serverObjs($tag)] } { 755 757 set data [$dataobj blob $comp] … … 1050 1052 set tag "" 1051 1053 if {"" != $_first} { 1054 puts stderr "first=$_first components=[$_first components]" 1052 1055 set comp [lindex [$_first components] 0] 1053 1056 set tag $_first-$comp … … 1420 1423 $inner.format value "PNG (Portable Network Graphics format)" 1421 1424 } 1425 1426 # ---------------------------------------------------------------------- 1427 # OPTION: -device 1428 # ---------------------------------------------------------------------- 1429 itcl::configbody Rappture::HeightmapViewer::device { 1430 puts stderr "HeightmapViewer: device=$itk_option(-device)" 1431 if {$itk_option(-device) != "" } { 1432 1433 if {![Rappture::library isvalid $itk_option(-device)]} { 1434 error "bad value \"$itk_option(-device)\": should be Rappture::library object" 1435 } 1436 $this delete 1437 $this add $itk_option(-device) 1438 } else { 1439 $this delete 1440 } 1441 1442 if { [isconnected] } { 1443 $_dispatcher event -idle !rebuild 1444 } 1445 } 1446 -
branches/blt4/gui/scripts/page.tcl
r2173 r2325 79 79 continue 80 80 } 81 81 puts stderr "type=$type" 82 82 if {$type == "loader"} { 83 83 # … … 126 126 $xmlobj put $path.$cname.current $obj 127 127 } 128 } 129 130 # if there's a link, then set up a callback to load from it 131 set link [$xmlobj get $path.$cname.link] 132 if {"" != $link} { 133 $_owner notify add $this $link \ 134 [itcl::code $this _link $xmlobj $link $w $path.$cname] 135 } 136 } elseif {$type == "fieldentry"} { 137 puts stderr "found $type" 138 # 139 # Add <structure>'s as the central element of the page. 140 # 141 set w "$frame.entry[incr num]" 142 ::Rappture::FieldEntry ::$w $_owner@$path.$cname.current 143 pack $w -expand yes -fill both 144 $_owner widgetfor $path.$cname $w 145 bind $w <<Value>> [list $_owner changed $path.$cname] 146 147 if {"" == $deveditor} { 148 set deveditor $w 149 } 150 151 # if there's a default value, load it now 152 if {"" != [$xmlobj element -as type $path.$cname.current]} { 153 set elem $path.$cname.current 154 } else { 155 set elem $path.$cname.default 156 } 157 if {"" != [$xmlobj element -as type $elem]} { 158 set dataobj [Rappture::Field ::\#auto $xmlobj $elem] 159 $w value $dataobj 128 160 } 129 161 … … 262 294 $_owner changed $path2 263 295 } 296 -
branches/blt4/gui/scripts/visviewer.tcl
r2242 r2325 527 527 # 528 528 itcl::body Rappture::VisViewer::SendEcho {channel {data ""}} { 529 #puts stderr ">>($data)"529 puts stderr ">>($data)" 530 530 if {[string length $itk_option(-sendcommand)] > 0} { 531 531 uplevel #0 $itk_option(-sendcommand) [list $channel $data]
Note: See TracChangeset
for help on using the changeset viewer.