Ignore:
Timestamp:
Oct 18, 2012 9:03:17 PM (12 years ago)
Author:
mmc
Message:

Added the Rappture::Logger facility and updated many (not all)
of the input/output controls to use it. This logs user activity
so you can see how they are interacting with the widgets during
the course of a session. If the RAPPTURE_LOG variable is set to
a directory (like /tmp), then Rappture creates a unique log file
in this directory for each tool session and writes logging info
into that file. The middleware ensures that the file is write-only
so that private activity information doesn't get out to people who
try to snoop around.

File:
1 edited

Legend:

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

    r3177 r3186  
    7272    #
    7373    itk_component add gauge {
    74         $class $itk_interior.gauge -units $units -presets $presets
     74        $class $itk_interior.gauge -units $units -presets $presets -log $path
    7575    }
    7676    pack $itk_component(gauge) -expand yes -fill both
     
    7878
    7979    set min [$_owner xml get $path.min]
    80     if {"" != $min} { $itk_component(gauge) configure -minvalue $min }
     80    if {$min ne ""} { $itk_component(gauge) configure -minvalue $min }
    8181
    8282    set max [$_owner xml get $path.max]
    83     if {"" != $max} { $itk_component(gauge) configure -maxvalue $max }
    84 
    85     if {$class == "Rappture::Gauge" && "" != $min && "" != $max} {
     83    if {$max ne ""} { $itk_component(gauge) configure -maxvalue $max }
     84
     85    if {$class == "Rappture::Gauge" && $min ne "" && $max ne ""} {
    8686        set color [$_owner xml get $path.about.color]
    8787        if {$color == ""} {
     
    105105    # if the control has an icon, plug it in
    106106    set str [$_owner xml get $path.about.icon]
    107     if {$str != ""} {
     107    if {$str ne ""} {
    108108        $itk_component(gauge) configure -image [image create photo -data $str]
    109109    }
     
    115115    #
    116116    set str [$_owner xml get $path.default]
    117     if {"" != $str != ""} { $itk_component(gauge) value $str }
     117    if {$str ne ""} { $itk_component(gauge) value $str }
    118118}
    119119
Note: See TracChangeset for help on using the changeset viewer.