- Timestamp:
- Jul 9, 2013 8:20:10 PM (11 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/barchartresult.tcl
r3454 r3764 108 108 protected method _leaveMarker { g name } 109 109 private method _formatTickLabel { w value } 110 private method ResetLegend {} 110 111 111 112 private variable _dispatcher "" ;# dispatcher for !events … … 256 257 } 257 258 pack $itk_component(legend) -expand yes -fill both 258 after idle [subst { 259 update idletasks 260 $itk_component(legend) reset 261 }] 259 after idle [itcl::code $this ResetLegend] 262 260 263 261 # quick-and-dirty zoom functionality, for now... … … 798 796 } 799 797 } 800 $itk_component(legend) reset798 ResetLegend 801 799 } 802 800 … … 1627 1625 return $label 1628 1626 } 1627 1628 # 1629 # ResetLegend -- 1630 # 1631 itcl::body Rappture::BarchartResult::ResetLegend {} { 1632 set g $itk_component(plot) 1633 update idletasks 1634 $itk_component(legend) reset [$g element show] 1635 } -
trunk/gui/scripts/histogramresult.tcl
r3454 r3764 106 106 protected method LeaveMarker { g name } 107 107 protected method FormatLabels { g value } 108 private method ResetLegend {} 108 109 109 110 private variable _dispatcher "" ;# dispatcher for !events … … 252 253 } 253 254 pack $itk_component(legend) -expand yes -fill both 254 after idle [subst { 255 update idletasks 256 $itk_component(legend) reset 257 }] 255 after idle [itcl::code $this ResetLegend] 258 256 259 257 # quick-and-dirty zoom functionality, for now... … … 822 820 } 823 821 $g configure -invertxy $invert 824 $itk_component(legend) reset822 ResetLegend 825 823 } 826 824 … … 1610 1608 return " " 1611 1609 } 1610 1611 # 1612 # ResetLegend -- 1613 # 1614 itcl::body Rappture::HistogramResult::ResetLegend {} { 1615 set g $itk_component(plot) 1616 update idletasks 1617 $itk_component(legend) reset [$g element show] 1618 } -
trunk/gui/scripts/numberresult.tcl
r3454 r3764 95 95 protected method GetValue {dataobj {which both}} 96 96 protected method GetInfo {what dataobj {which both}} 97 private method ResetLegend {} 97 98 98 99 private variable _dispatcher "" ;# dispatcher for !events … … 243 244 } 244 245 pack $itk_component(legend) -expand yes -fill both 245 after idle [subst { 246 update idletasks 247 $itk_component(legend) reset 248 }] 246 after idle [itcl::code $this ResetLegend] 247 249 248 # quick-and-dirty zoom functionality, for now... 250 249 Blt_ZoomStack $itk_component(plot) … … 1564 1563 } 1565 1564 } 1565 1566 # 1567 # ResetLegend -- 1568 # 1569 itcl::body Rappture::NumberResult::ResetLegend {} { 1570 set g $itk_component(plot) 1571 update idletasks 1572 $itk_component(legend) reset [$g element show] 1573 }
Note: See TracChangeset
for help on using the changeset viewer.