Ignore:
Timestamp:
Aug 28, 2005, 9:09:01 PM (19 years ago)
Author:
mmc
Message:

Added support for file transfer with the desktop. Each Rappture
application acts like an http server, configured to listen on
a particular port according to the parameters found in the file
~/data/sessions/$SESSION/resources. When the server is active,
the GUI has a "Download..." button in the results area. A Java
client (in the filexfer directory) connects to the server and
listens for download requests. When the user clicks on "Download...",
the desired result is spooled to a file, and a Java client pops up
a web page requesting the file. This downloads the result to the
user's desktop.

Note that if the $SESSION environment variable is not set, these
changes do nothing.

File:
1 edited

Legend:

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

    r46 r50  
    2929    public method delete {args}
    3030    public method scale {args}
     31    public method download {}
    3132
    3233    public method select {option args}
     
    241242
    242243# ----------------------------------------------------------------------
     244# USAGE: download
     245#
     246# Clients use this method to create a downloadable representation
     247# of the plot.  Returns a list of the form {ext string}, where
     248# "ext" is the file extension (indicating the type of data) and
     249# "string" is the data itself.
     250# ----------------------------------------------------------------------
     251itcl::body Rappture::TextResult::download {} {
     252    return [list .txt [$itk_component(text) get 1.0 end]]
     253}
     254
     255# ----------------------------------------------------------------------
    243256# USAGE: select all
    244257#
Note: See TracChangeset for help on using the changeset viewer.