Changeset 1603 for trunk/gui


Ignore:
Timestamp:
Oct 29, 2009 11:41:56 AM (14 years ago)
Author:
gah
Message:
 
Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r1602 r1603  
    4242       
    4343    public method print { graph toolName plotName }
     44    public method reset {}
    4445
    4546    private method CopyOptions { cmd orig clone }
     
    7071    private method RestoreSettings { toolName plotName }
    7172    private method SaveSettings { toolName plotName }
     73    private method DestroySettings {}
    7274    private method ResetSettings { }
    7375    private method GetOutput {}
    7476    private method Done { state }
    75     private method DestroySettings {}
    7677    private method restore { toolName plotName data }
    7778    private common _settings
     
    153154    set _clone ""
    154155    set _graph ""
     156}
     157
     158itcl::body Rappture::XyPrint::reset {} {
     159    Done 0
    155160}
    156161
     
    272277itcl::body Rappture::XyPrint::CloneGraph { orig } {
    273278    set top $itk_interior
     279    if { $_clone != "" } {
     280        puts stderr "clone is $_clone"
     281    }
    274282    set clone [blt::graph $top.graph]
    275283    CopyOptions "configure" $orig $clone
  • trunk/gui/scripts/xyresult.tcl

    r1598 r1603  
    487487            if {![winfo exists .xyresultdownload]} {
    488488                # if we haven't created the popup yet, do it now
    489                 Rappture::Balloon $popup -title "[Rappture::filexfer::label downloadWord] as..."
     489                Rappture::Balloon $popup \
     490                    -title "[Rappture::filexfer::label downloadWord] as..."
    490491                set inner [$popup component inner]
    491492                label $inner.summary -text "" -anchor w
     
    567568                        Rappture::XyPrint $inner.print
    568569                        blt::table $inner 0,0 $inner.print -fill both
     570                        $popup configure -deactivatecommand \
     571                            [list $inner.print reset]
    569572                    }
    570573                    update
Note: See TracChangeset for help on using the changeset viewer.