Changeset 1346


Ignore:
Timestamp:
Mar 19, 2009 12:47:42 PM (15 years ago)
Author:
gah
Message:
 
Location:
trunk/gui/scripts
Files:
8 added
1 edited

Legend:

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

    r1345 r1346  
    147147
    148148    array set _downloadPopup {
    149         format image_draft
     149        format draft
    150150    }
    151151
     
    523523                radiobutton $inner.draft -text "Image (draft $res)" \
    524524                    -variable Rappture::MolvisViewer::_downloadPopup(format) \
    525                     -value image_draft
     525                    -value draft
    526526                pack $inner.draft -anchor w
    527527
     
    529529                radiobutton $inner.medium -text "Image (standard $res)" \
    530530                    -variable Rappture::MolvisViewer::_downloadPopup(format) \
    531                     -value image_medium
     531                    -value $res
    532532                pack $inner.medium -anchor w
    533533
     
    535535                radiobutton $inner.high -text "Image (high quality $res)" \
    536536                    -variable Rappture::MolvisViewer::_downloadPopup(format) \
    537                     -value image_high
     537                    -value $res
    538538                pack $inner.high -anchor w
    539539
     
    561561            }
    562562            switch -- $_downloadPopup(format) {
    563                 image_draft {
     563                draft {
    564564                    # Get the image data (as base64) and decode it back to
    565565                    # binary.  This is better than writing to temporary
     
    570570                    return [list .jpg $bytes]
    571571                }
    572                 image_medium {
     572                "2400x2400" {
    573573                    return [$this GetPngImage [lindex $args 0] 2400 2400]
    574574                }
    575                 image_high {
     575                "1200x1200" {
    576576                    return [$this GetPngImage [lindex $args 0] 1200 1200]
    577577                }
Note: See TracChangeset for help on using the changeset viewer.