- Timestamp:
- Jun 11, 2012, 7:49:48 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/analyzer.tcl
r3024 r3030 363 363 itcl::body Rappture::Analyzer::destructor {} { 364 364 after cancel [itcl::code $this simulate] 365 $_resultset notify remove $this 365 366 itcl::delete object $_resultset 366 367 } -
trunk/gui/scripts/resultselector.tcl
r3024 r3030 410 410 itcl::body Rappture::ResultSelector::_fixControls {args} { 411 411 array set eventData $args 412 if {![info exists itk_component(dials)]} { 413 # no controls? then nothing to fix 414 # this happens when the widget is being destroyed 415 return 416 } 412 417 set shortlist $itk_component(dials) 413 418 -
trunk/tester/scripts/statuslist.tcl
r2139 r3030 289 289 set c $itk_component(listview) 290 290 291 # translate the screen y to the canvas y (may be scrolled down) 292 set y [$c canvasy $y] 293 291 294 set index "" 292 295 foreach id [$c find overlapping 10 $y 10 $y] { -
trunk/tester/scripts/stringdiffs.tcl
r2139 r3030 32 32 33 33 protected method _yview {args} 34 protected method _ysbar {args} 34 35 } 35 36 … … 128 129 $itk_component(body1) configure \ 129 130 -xscrollcommand [list $itk_component(xsbar1) set] \ 130 -yscrollcommand [ list $itk_component(ysbar) set]131 -yscrollcommand [itcl::code $this _ysbar body1] 131 132 $itk_component(body2) configure \ 132 -xscrollcommand [list $itk_component(xsbar2) set] 133 -xscrollcommand [list $itk_component(xsbar2) set] \ 134 -yscrollcommand [itcl::code $this _ysbar body2] 133 135 134 136 grid $itk_component(title1) -row 0 -column 0 -sticky nsew … … 205 207 # USAGE: _yview <arg> <arg>... 206 208 # 207 # Loads two values into the viewer and shows their differences. 208 # If the strings are short, the diffs are shown inline. Otherwise, 209 # they are show with side-by-side viewers. 209 # Called whenever the scrollbar changes the y-view of the diffs. 210 # Sends the new command along to both views so they are aligned. 210 211 # ---------------------------------------------------------------------- 211 212 itcl::body Rappture::Tester::StringDiffs::_yview {args} { 212 213 eval $itk_component(body1) yview $args 213 214 eval $itk_component(body2) yview $args 215 } 216 217 # ---------------------------------------------------------------------- 218 # USAGE: _ysbar <whichChanged> <arg> <arg>... 219 # 220 # Called whenever the y-view of one widget changes. Copies the 221 # current view from the <whichChanged> widget to the other side, 222 # and updates the bubble to display the correct view. 223 # ---------------------------------------------------------------------- 224 itcl::body Rappture::Tester::StringDiffs::_ysbar {which args} { 225 switch -- $which { 226 body1 { 227 set pos [lindex [$itk_component(body1) yview] 0] 228 $itk_component(body2) yview moveto $pos 229 } 230 body2 { 231 set pos [lindex [$itk_component(body2) yview] 0] 232 $itk_component(body1) yview moveto $pos 233 } 234 } 235 eval $itk_component(ysbar) set $args 214 236 } 215 237
Note: See TracChangeset
for help on using the changeset viewer.