Changeset 3656 for trunk/gui/scripts


Ignore:
Timestamp:
May 15, 2013 2:02:59 PM (11 years ago)
Author:
gah
Message:

fix assorted automatic tickets: bad data in curve, more trim space, move image creation before errors in constructor

Location:
trunk/gui/scripts
Files:
4 edited

Legend:

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

    r3653 r3656  
    124124    # examples/ and docs/ dirs from the install location
    125125    foreach runobj $loadobjs {
    126         set tdir [$runobj get tool.version.application.directory(tool)]
     126        set tdir \
     127            [string trim [$runobj get tool.version.application.directory(tool)]]
    127128        if {[file isdirectory $tdir] && \
    128129            [file exists $tdir/tool.xml]} {
     
    221222# Add a place for about/questions in the breadcrumbs area of this pager.
    222223#
    223 set app [$tool xml get tool.id]
     224set app [string trim [$tool xml get tool.id]]
    224225set url [Rappture::Tool::resources -huburl]
    225226if {"" != $url && "" != $app} {
  • trunk/gui/scripts/sequencedial.tcl

    r3330 r3656  
    7878    private method EventuallyRedraw {}
    7979    private variable _redrawPending 0
    80 
     80    private variable _afterId -1
    8181    private variable _values ""       ;# list of all values on the dial
    8282    private variable _val2label       ;# maps value => string label(s)
     
    121121itcl::body Rappture::SequenceDial::destructor {} {
    122122    configure -variable ""  ;# remove variable trace
    123     EventuallyRedraw
     123    after cancel $_afterId
    124124}
    125125
     
    155155itcl::body Rappture::SequenceDial::EventuallyRedraw {} {
    156156    if { !$_redrawPending } {
    157         after 150 [itcl::code $this _redraw]
     157        set _afterId [after 150 [itcl::code $this _redraw]]
    158158        event generate $itk_component(hull) <<Value>>
    159159        set _resizePending 1
  • trunk/gui/scripts/vtkheightmapviewer.tcl

    r3638 r3656  
    8080    protected method Rotate {option x y}
    8181    protected method Zoom {option}
    82    
     82
    8383    # The following methods are only used by this class.
    8484    private method BuildAxisTab {}
     
    193193    $_parser alias legend [itcl::code $this ReceiveLegend]
    194194
     195    # Create image for legend colorbar.
     196    set _image(legend) [image create photo]
     197
    195198    # Initialize the view to some default parameters.
    196199    array set _view {
     
    209212
    210213    array set _settings {
    211         axisFlymode             "static"
    212         axisMinorTicks          1
    213         stretchToFit            0
     214        axisFlymode             "static"
     215        axisMinorTicks          1
     216        stretchToFit            0
    214217        axisLabels              1
    215218        axisVisible             1
     
    250253    itk_component add fieldmenu {
    251254        menu $itk_component(plotarea).menu \
    252             -relief flat \
     255            -relief flat \
    253256            -tearoff no
    254257    } {
     
    332335        puts stderr "errs=$errs errorInfo=$errorInfo"
    333336    }
    334     set _image(legend) [image create photo]
    335337
    336338    # Hack around the Tk panewindow.  The problem is that the requested
     
    15021504                $itk_component(outline) configure -state normal
    15031505                SendCmd "camera mode image"
    1504             }
     1506            }
    15051507            if {$_settings(stretchToFit)} {
    15061508                if {$scale == 0} {
  • trunk/gui/scripts/xyprint.tcl

    r3635 r3656  
    14511451        }
    14521452        set axis [list $axis]
    1453         append out "    if \{ [llength [preview axis names $axis]] == 1 \} \{\n"
     1453        append out "    if \{ \[llength \[preview axis names $axis\]\] == 1 \} \{\n"
    14541454        append out "        preview axis configure $axis"
    14551455        foreach opt { -hide -min -max -loose -title -stepsize -subdivisions } {
Note: See TracChangeset for help on using the changeset viewer.