Changeset 3764 for trunk


Ignore:
Timestamp:
Jul 9, 2013 8:20:10 PM (11 years ago)
Author:
gah
Message:

fix: change in XyLegend::reset method

Location:
trunk/gui/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/barchartresult.tcl

    r3454 r3764  
    108108    protected method _leaveMarker { g name }
    109109    private method _formatTickLabel { w value }
     110    private method ResetLegend {}
    110111
    111112    private variable _dispatcher "" ;# dispatcher for !events
     
    256257    }
    257258    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]
    262260
    263261    # quick-and-dirty zoom functionality, for now...
     
    798796        }
    799797    }
    800     $itk_component(legend) reset
     798    ResetLegend
    801799}
    802800
     
    16271625    return $label
    16281626}
     1627
     1628#
     1629# ResetLegend --
     1630#
     1631itcl::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  
    106106    protected method LeaveMarker { g name }
    107107    protected method FormatLabels { g value }
     108    private method ResetLegend {}
    108109
    109110    private variable _dispatcher "" ;# dispatcher for !events
     
    252253    }
    253254    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]
    258256
    259257    # quick-and-dirty zoom functionality, for now...
     
    822820    }
    823821    $g configure -invertxy $invert
    824     $itk_component(legend) reset
     822    ResetLegend
    825823}
    826824
     
    16101608    return " "
    16111609}
     1610
     1611#
     1612# ResetLegend --
     1613#
     1614itcl::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  
    9595    protected method GetValue {dataobj {which both}}
    9696    protected method GetInfo {what dataobj {which both}}
     97    private method ResetLegend {}
    9798
    9899    private variable _dispatcher "" ;# dispatcher for !events
     
    243244    }
    244245    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
    249248    # quick-and-dirty zoom functionality, for now...
    250249    Blt_ZoomStack $itk_component(plot)
     
    15641563    }
    15651564}
     1565
     1566#
     1567# ResetLegend --
     1568#
     1569itcl::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.