Changeset 1717 for trunk


Ignore:
Timestamp:
May 18, 2010, 3:34:18 PM (14 years ago)
Author:
gah
Message:
 
Location:
trunk/gui/scripts
Files:
4 edited

Legend:

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

    r1539 r1717  
    2424    constructor {owner args} {
    2525        Rappture::ControlOwner::constructor $owner
    26     } { # defined below }
    27 
     26    } {
     27        # defined below
     28    }
    2829    public method value {args}
    2930    public method download {option args}
    3031    public method add {dataobj {settings ""}}
    3132    public method delete {args}
    32     public method parameters {title args} { # do nothing }
     33    public method parameters {title args} {
     34        # do nothing
     35    }
     36    public method snap {w h}
    3337
    3438    protected method _redraw {}
     
    217221    return "device1D"
    218222}
     223
     224itcl::body Rappture::DeviceEditor::snap { w h } {
     225    return [$_current snap $w $h]
     226}
  • trunk/gui/scripts/field2dresult.tcl

    r1543 r1717  
    3838    public method delete {args}
    3939    public method scale {args}
     40    public method snap {w h}
    4041    public method parameters {title args} { # do nothing }
    4142    public method download {option args}
     
    151152    $itk_component(renderer) download $option
    152153}
     154
     155itcl::body Rappture::Field2DResult::snap { w h } {
     156    return [$itk_component(renderer) snap $w $h]
     157}
  • trunk/gui/scripts/field3dresult.tcl

    r1506 r1717  
    3737    public method delete {args}
    3838    public method scale {args}
     39    public method snap {w h}
    3940    public method parameters {title args} { # do nothing }
    4041    public method download {option args}
     
    153154    $itk_component(renderer) download $option $args
    154155}
     156
     157itcl::body Rappture::Field3DResult::snap { w h } {
     158    return [$itk_component(renderer) snap $w $h]
     159}
  • trunk/gui/scripts/xyprint.tcl

    r1653 r1717  
    4141
    4242    private method CopyOptions { cmd orig clone }
    43     private method CopyBindings { oper orig clone args }
    4443    private method CloneGraph { orig }
    4544
     
    218217    set psdata [$_clone postscript output]
    219218
     219    if 0 {
     220        set f [open "junk.raw" "w"]
     221        puts -nonewline $f $psdata
     222        close $f
     223    }
    220224    if { $format == "eps" } {
    221         if 0 {
    222             set f [open "junk.raw" "w"]
    223             puts -nonewline $f $psdata
    224             close $f
    225         }
    226225        return [list .$format $psdata]
    227226    }
     
    272271        set initial [lindex $option 3]
    273272        set current [lindex $option 4]
     273        if { $switch == "-data" } {
     274            continue
     275        }
    274276        if { [string compare $initial $current] == 0 } {
    275277            continue
     
    310312    foreach marker [$orig marker names] {
    311313        $clone marker create [$orig marker type $marker] -name $marker
    312         CopyBindings marker $orig $clone $marker
    313314        CopyOptions [list marker configure $marker] $orig $clone
    314315    }
     
    10811082        -weight $_settings($this-legend-font-weight) \
    10821083        -slant $_settings($this-legend-font-slant)
    1083     $_clone legend configure -font $_fonts(legend)
     1084    $_clone legend configure -font fixed -font $_fonts(legend)
    10841085    ApplyElementSettings
    10851086}
Note: See TracChangeset for help on using the changeset viewer.