Changeset 3188


Ignore:
Timestamp:
Oct 23, 2012 5:23:10 AM (12 years ago)
Author:
mmc
Message:

Added unexpected bug reports to the logger as "oops!" messages.
Fixed the HeightmapViewer? to log user events properly (not just any
internal call to change view parameters).

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r3177 r3188  
    1 
    21# ----------------------------------------------------------------------
    32#  UTILITY: bugreport
     
    432431    set details(referrer) [Rappture::Tool::resources -appname]
    433432    set details(platform) [array get tcl_platform]
     433
     434    Rappture::Logger::log oops! $summary
    434435}
    435436
  • trunk/gui/scripts/heightmapviewer.tcl

    r3187 r3188  
    9191
    9292    protected method State {comp}
    93     protected method FixSettings {what {value ""} {why -program}}
     93    protected method FixSettings {what {why -program}}
    9494    protected method GetTransfuncData {dataobj comp}
    9595    protected method Resize {}
     
    10421042
    10431043# ----------------------------------------------------------------------
    1044 # USAGE: FixSettings <what> ?<value>? ?-user|-program?
     1044# USAGE: FixSettings <what> ?-user|-program?
    10451045#
    10461046# Used internally to update rendering settings whenever parameters
     
    10481048# to the back end.
    10491049# ----------------------------------------------------------------------
    1050 itcl::body Rappture::HeightmapViewer::FixSettings { what {value ""} {why -program} } {
     1050itcl::body Rappture::HeightmapViewer::FixSettings {what {why -program}} {
    10511051    switch -- $what {
    10521052        "legend" {
     
    10691069                #$itk_component(legend) delete all
    10701070            }
    1071             Rappture::Logger::log heightmap legend $_settings($this-legend)
     1071            if {$why eq "-user"} {
     1072                Rappture::Logger::log heightmap legend $_settings($this-legend)
     1073            }
    10721074        }
    10731075        "surface" {
     
    10751077                SendCmd "heightmap data visible $_settings($this-surface)"
    10761078            }
    1077             Rappture::Logger::log heightmap surface $_settings($this-surface)
     1079            if {$why eq "-user"} {
     1080                Rappture::Logger::log heightmap surface $_settings($this-surface)
     1081            }
    10781082        }
    10791083        "grid" {
     
    10811085                SendCmd "grid visible $_settings($this-grid)"
    10821086            }
    1083             Rappture::Logger::log heightmap grid $_settings($this-grid)
     1087            if {$why eq "-user"} {
     1088                Rappture::Logger::log heightmap grid $_settings($this-grid)
     1089            }
    10841090        }
    10851091        "axes" {
     
    10871093                SendCmd "axis visible $_settings($this-axes)"
    10881094            }
    1089             Rappture::Logger::log heightmap axes $_settings($this-axes)
     1095            if {$why eq "-user"} {
     1096                Rappture::Logger::log heightmap axes $_settings($this-axes)
     1097            }
    10901098        }
    10911099        "wireframe" {
     
    10931101                SendCmd "heightmap polygon $_settings($this-wireframe)"
    10941102            }
    1095             Rappture::Logger::log heightmap wireframe $_settings($this-wireframe)
     1103            if {$why eq "-user"} {
     1104                Rappture::Logger::log heightmap wireframe $_settings($this-wireframe)
     1105            }
    10961106        }
    10971107        "contourlines" {
     
    11061116                }
    11071117            }
    1108             Rappture::Logger::log heightmap contourlines $_settings($this-contourlines)
     1118            if {$why eq "-user"} {
     1119                Rappture::Logger::log heightmap contourlines $_settings($this-contourlines)
     1120            }
    11091121        }
    11101122        default {
Note: See TracChangeset for help on using the changeset viewer.