Ignore:
Timestamp:
Apr 19, 2007, 5:38:09 PM (18 years ago)
Author:
mmc
Message:

Fixed sequences so that styles for embedded curves are handled properly.
Fixed the play times for sequences so they are a little slower. This
works better with the frame updates over VNC. Added "select all" to
the menu for string items.

File:
1 edited

Legend:

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

    r644 r674  
    302302                    }
    303303                    if {[llength $all] > 0} {
    304                         set delay [expr {int(ceil(pow($_play(speed)/10.0,2.0)*5))}]
     304                        set delay [expr {int(ceil(pow($_play(speed)/10.0+2,2.0)*15))}]
    305305                        set rval [eval Rappture::icon::gif_animate $delay $all]
    306306                    }
     
    342342
    343343    # schedule the first frame
    344     set delay [expr {int(ceil(pow($_play(speed)/10.0,2.0)*5))}]
     344    set delay [expr {int(ceil(pow($_play(speed)/10.0+2,2.0)*15))}]
    345345    set _afterId [after $delay [itcl::code $this _playFrame]]
    346346}
     
    492492    goto $_pos
    493493
    494     set delay [expr {int(ceil(pow($_play(speed)/10.0,2.0)*5))}]
     494    set delay [expr {int(ceil(pow($_play(speed)/10.0+2,2.0)*15))}]
    495495    set _afterId [after $delay [itcl::code $this _playFrame]]
    496496}
     
    515515    if {"" != $_topmost} {
    516516        foreach dataobj [$_topmost value $_pos] {
    517             $viewer add $dataobj ""
    518         }
    519     }
    520 }
     517            set settings "-color autoreset -width 2"
     518            if {[catch {$dataobj hints style} style] == 0} {
     519                eval lappend settings $style
     520            }
     521            $viewer add $dataobj $settings
     522        }
     523    }
     524}
Note: See TracChangeset for help on using the changeset viewer.