Changeset 844 for trunk/gui/scripts


Ignore:
Timestamp:
Jan 4, 2008 9:19:46 AM (16 years ago)
Author:
gah
Message:

change HistoResult? to HistogramResult?

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r843 r844  
    11
    22# ----------------------------------------------------------------------
    3 #  COMPONENT: HistoResult - X/Y plot in a ResultSet
     3#  COMPONENT: HistogramResult - X/Y plot in a ResultSet
    44#
    55#  This widget is an X/Y plot, meant to view histograms produced
     
    1717package require BLT
    1818
    19 option add *HistoResult*Element.borderWidth 1 widgetDefault
    20 option add *HistoResult*Element.relief solid widgetDefault
    21 option add *HistoResult*x.loose 1 widgetDefault
    22 option add *HistoResult*y.loose 1 widgetDefault
    23 option add *HistoResult*Element.relief solid widgetDefault
    24 
    25 option add *HistoResult.width 3i widgetDefault
    26 option add *HistoResult.height 3i widgetDefault
    27 option add *HistoResult.gridColor #d9d9d9 widgetDefault
    28 option add *HistoResult.activeColor blue widgetDefault
    29 option add *HistoResult.dimColor gray widgetDefault
    30 option add *HistoResult.controlBackground gray widgetDefault
    31 option add *HistoResult.font \
     19option add *HistogramResult*Element.borderWidth 1 widgetDefault
     20option add *HistogramResult*Element.relief solid widgetDefault
     21option add *HistogramResult*x.loose 1 widgetDefault
     22option add *HistogramResult*y.loose 1 widgetDefault
     23option add *HistogramResult*Element.relief solid widgetDefault
     24
     25option add *HistogramResult.width 3i widgetDefault
     26option add *HistogramResult.height 3i widgetDefault
     27option add *HistogramResult.gridColor #d9d9d9 widgetDefault
     28option add *HistogramResult.activeColor blue widgetDefault
     29option add *HistogramResult.dimColor gray widgetDefault
     30option add *HistogramResult.controlBackground gray widgetDefault
     31option add *HistogramResult.font \
    3232    -*-helvetica-medium-r-normal-*-12-* widgetDefault
    3333
    34 option add *HistoResult.autoColors {
     34option add *HistogramResult.autoColors {
    3535    #0000ff #ff0000 #00cc00
    3636    #cc00cc #ff9900 #cccc00
     
    3939} widgetDefault
    4040
    41 option add *HistoResult*Balloon*Entry.background white widgetDefault
    42 
    43 itcl::class Rappture::HistoResult {
     41option add *HistogramResult*Balloon*Entry.background white widgetDefault
     42
     43itcl::class Rappture::HistogramResult {
    4444    inherit itk::Widget
    4545
     
    8888}
    8989                                                                               
    90 itk::usual HistoResult {
     90itk::usual HistogramResult {
    9191    keep -background -foreground -cursor -font
    9292}
     
    9595# CONSTRUCTOR
    9696# ----------------------------------------------------------------------
    97 itcl::body Rappture::HistoResult::constructor {args} {
     97itcl::body Rappture::HistogramResult::constructor {args} {
    9898    Rappture::dispatcher _dispatcher
    9999    $_dispatcher register !rebuild
     
    207207# DESTRUCTOR
    208208# ----------------------------------------------------------------------
    209 itcl::body Rappture::HistoResult::destructor {} {
     209itcl::body Rappture::HistogramResult::destructor {} {
    210210}
    211211
     
    217217# -brightness, -width, -linestyle and -raise.
    218218# ----------------------------------------------------------------------
    219 itcl::body Rappture::HistoResult::add {histogram {settings ""}} {
     219itcl::body Rappture::HistogramResult::add {histogram {settings ""}} {
    220220    array set params {
    221221        -color auto
     
    293293# order from bottom to top of this result.
    294294# ----------------------------------------------------------------------
    295 itcl::body Rappture::HistoResult::get {} {
     295itcl::body Rappture::HistogramResult::get {} {
    296296    # put the dataobj list in order according to -raise options
    297297    set clist $_hlist
     
    314314# are specified, then all histograms are deleted.
    315315# ----------------------------------------------------------------------
    316 itcl::body Rappture::HistoResult::delete {args} {
     316itcl::body Rappture::HistogramResult::delete {args} {
    317317    if {[llength $args] == 0} {
    318318        set args $_hlist
     
    358358# the user scans through data in the ResultSet viewer.
    359359# ----------------------------------------------------------------------
    360 itcl::body Rappture::HistoResult::scale {args} {
     360itcl::body Rappture::HistogramResult::scale {args} {
    361361    set allx [$itk_component(plot) x2axis use]
    362362    lappend allx x  ;# fix main x-axis too
     
    415415# "string" is the data itself.
    416416# ----------------------------------------------------------------------
    417 itcl::body Rappture::HistoResult::download {option args} {
     417itcl::body Rappture::HistogramResult::download {option args} {
    418418    switch $option {
    419419        coming {
     
    429429                pack $inner.summary -side top
    430430                radiobutton $inner.csv -text "Data as Comma-Separated Values" \
    431                     -variable Rappture::HistoResult::_downloadPopup(format) \
     431                    -variable Rappture::HistogramResult::_downloadPopup(format) \
    432432                    -value csv
    433433                pack $inner.csv -anchor w
    434434                radiobutton $inner.pdf -text "Image as PDF/PostScript" \
    435                     -variable Rappture::HistoResult::_downloadPopup(format) \
     435                    -variable Rappture::HistogramResult::_downloadPopup(format) \
    436436                    -value pdf
    437437                pack $inner.pdf -anchor w
     
    531531# widget to display new data.
    532532# ----------------------------------------------------------------------
    533 itcl::body Rappture::HistoResult::_rebuild {} {
     533itcl::body Rappture::HistogramResult::_rebuild {} {
    534534    set g $itk_component(plot)
    535535
     
    729729# current plot.
    730730# ----------------------------------------------------------------------
    731 itcl::body Rappture::HistoResult::_resetLimits {} {
     731itcl::body Rappture::HistogramResult::_resetLimits {} {
    732732    set g $itk_component(plot)
    733733
     
    805805# controls for this widget.  Changes the zoom for the current view.
    806806# ----------------------------------------------------------------------
    807 itcl::body Rappture::HistoResult::_zoom {option args} {
     807itcl::body Rappture::HistogramResult::_zoom {option args} {
    808808    switch -- $option {
    809809        reset {
     
    820820# pop up with element info.
    821821# ----------------------------------------------------------------------
    822 itcl::body Rappture::HistoResult::_hilite {state x y} {
     822itcl::body Rappture::HistogramResult::_hilite {state x y} {
    823823    set g $itk_component(plot)
    824824    set elem ""
     
    10301030# changes from the panel.
    10311031# ----------------------------------------------------------------------
    1032 itcl::body Rappture::HistoResult::_axis {option args} {
     1032itcl::body Rappture::HistogramResult::_axis {option args} {
    10331033    set inner [$itk_component(hull).axes component inner]
    10341034
     
    13791379# are not recognized are ignored.
    13801380# ----------------------------------------------------------------------
    1381 itcl::body Rappture::HistoResult::_getLineMarkerOptions {style} {
     1381itcl::body Rappture::HistogramResult::_getLineMarkerOptions {style} {
    13821382    array set lineOptions {
    13831383        "-color"  "-outline"
     
    14021402# are not recognized are ignored.
    14031403# ----------------------------------------------------------------------
    1404 itcl::body Rappture::HistoResult::_getTextMarkerOptions {style} {
     1404itcl::body Rappture::HistogramResult::_getTextMarkerOptions {style} {
    14051405    array set textOptions {
    14061406        "-color"  "-outline"
     
    14271427# x-axis name (x, x2, x3, etc.), and y is the y-axis name.
    14281428# ----------------------------------------------------------------------
    1429 itcl::body Rappture::HistoResult::_getAxes {xydata} {
     1429itcl::body Rappture::HistogramResult::_getAxes {xydata} {
    14301430    # rebuild if needed, so we know about the axes
    14311431    if {[$_dispatcher ispending !rebuild]} {
     
    14561456# CONFIGURATION OPTION: -gridcolor
    14571457# ----------------------------------------------------------------------
    1458 itcl::configbody Rappture::HistoResult::gridcolor {
     1458itcl::configbody Rappture::HistogramResult::gridcolor {
    14591459    if {"" == $itk_option(-gridcolor)} {
    14601460        $itk_component(plot) grid off
     
    14681468# CONFIGURATION OPTION: -autocolors
    14691469# ----------------------------------------------------------------------
    1470 itcl::configbody Rappture::HistoResult::autocolors {
     1470itcl::configbody Rappture::HistogramResult::autocolors {
    14711471    foreach c $itk_option(-autocolors) {
    14721472        if {[catch {winfo rgb $itk_component(hull) $c}]} {
  • trunk/gui/scripts/resultviewer.tcl

    r839 r844  
    213213            if {![info exists _mode2widget($mode)]} {
    214214                set w $itk_interior.xy
    215                 Rappture::HistoResult $w
     215                Rappture::HistogramResult $w
    216216                set _mode2widget($mode) $w
    217217            }
Note: See TracChangeset for help on using the changeset viewer.