Ignore:
Timestamp:
Jun 6, 2006, 10:33:16 AM (18 years ago)
Author:
mmc
Message:

Added popup options for the "download" button. Right now this works
only for <curve> objects. You can select between CSV and PDF output.
Will add other formats later.

Fixed a few "after cancel" errors that were happening when you switch
between inputs in the structure demo.

Fixed the colors and fonts for the new bug report window.

File:
1 edited

Legend:

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

    r195 r464  
    2828    public method delete {args}
    2929    public method scale {args}
    30     public method download {option}
     30    public method download {option args}
    3131
    3232    set _dataobj ""  ;# data object currently being displayed
     
    7373        -linestyle ""
    7474        -raise ""
     75        -description ""
    7576    }
    7677    foreach {opt val} $settings {
     
    148149# ----------------------------------------------------------------------
    149150# USAGE: download coming
     151# USAGE: download controls <downloadCommand>
    150152# USAGE: download now
    151153#
     
    155157# "string" is the data itself.
    156158# ----------------------------------------------------------------------
    157 itcl::body Rappture::ValueResult::download {option} {
     159itcl::body Rappture::ValueResult::download {option args} {
    158160    switch $option {
    159161        coming {
    160162            # nothing to do
     163        }
     164        controls {
     165            # no controls for this download yet
     166            return ""
    161167        }
    162168        now {
     
    166172        }
    167173        default {
    168             error "bad option \"$option\": should be coming, now"
     174            error "bad option \"$option\": should be coming, controls, now"
    169175        }
    170176    }
Note: See TracChangeset for help on using the changeset viewer.