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/meshresult.tcl

    r413 r464  
    3636    public method delete {args}
    3737    public method scale {args}
    38     public method download {option}
     38    public method download {option args}
    3939
    4040    protected method _rebuild {}
     
    131131        -raise 0
    132132        -linestyle solid
     133        -description ""
    133134    }
    134135    foreach {opt val} $settings {
     
    259260
    260261# ----------------------------------------------------------------------
    261 # USAGE: download
     262# USAGE: download coming
     263# USAGE: download controls <downloadCommand>
     264# USAGE: download now
    262265#
    263266# Clients use this method to create a downloadable representation
     
    266269# "string" is the data itself.
    267270# ----------------------------------------------------------------------
    268 itcl::body Rappture::MeshResult::download {option} {
     271itcl::body Rappture::MeshResult::download {option args} {
    269272    switch $option {
    270273        coming {
    271274            # nothing to do
     275        }
     276        controls {
     277            # no controls for this download yet
     278            return ""
    272279        }
    273280        now {
     
    291298        }
    292299        default {
    293             error "bad option \"$option\": should be coming, now"
     300            error "bad option \"$option\": should be coming, controls, now"
    294301        }
    295302    }
Note: See TracChangeset for help on using the changeset viewer.