source: trunk/examples/zoo/binary/tool.xml @ 1715

Last change on this file since 1715 was 1715, checked in by mmc, 14 years ago

Fixed the image object to act more like a true input. If an image has a
label, it will show a thumbnail along with image info, and users can
right-click to get upload/download options. If there's no label, then
the image is shown full-size as before, so it acts like a decoration.

Changed binary string values to look like the image, with an icon representing
binary data and an info string showing info about the data type. This is
a little nicer than the hex dump we used to show for binary strings. String
size can be set to "binary" to force the string into the binary display
mode.

File size: 864 bytes
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>string</title>
5  <about>Example of using a Rappture &lt;string&gt; object to handle binary data.
6
7Strings are bits of text--ASCII or binary.  When a binary file is loaded, the string object shows some description of the data.  If the string is set to the size of a line (e.g., 40x1), it shows only the file size.  If the string is set to a larger area, it shows a hex dump of the data.
8
9Upload a gzipped tar file.  When you click the Simulate button, the output will show a table of contents.
10  </about>
11  <command>
12    tclsh @tool/tardir.tcl @driver
13  </command>
14</tool>
15<input>
16  <string id="tarball">
17    <about>
18      <label>Tarball</label>
19      <description>Upload a gzipped tar file (Unix-style archive file).</description>
20    </about>
21    <size>binary</size>
22    <default></default>
23  </string>
24</input>
25</run>
Note: See TracBrowser for help on using the repository browser.