source: trunk/examples/zoo/image/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: 1015 bytes
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>image</title>
5  <about>Example of a Rappture &lt;image&gt; object.
6
7Images are used to decorate input and show output.
8
9When you click the Simulate button, the input image will be rotated to produce the output image.
10  </about>
11  <command>
12    tclsh @tool/image.tcl @driver
13  </command>
14</tool>
15<input>
16  <loader>
17    <about>
18      <label>Image</label>
19      <description>Use this to load different images.</description>
20    </about>
21    <example>*.xml</example>
22    <default>nanohub.xml</default>
23  </loader>
24  <image>
25    <about>
26      <label>Image</label>
27      <description>Input image that gets rotated.</description>
28      <diffs>ignore</diffs>
29    </about>
30    <convert>bmp</convert>
31  </image>
32  <number id="angle">
33    <about>
34      <label>Rotate</label>
35      <description>Rotate image by this amount in degrees.</description>
36    </about>
37    <units>deg</units>
38    <min>0deg</min>
39    <max>360deg</max>
40    <default>0deg</default>
41  </number>
42</input>
43</run>
Note: See TracBrowser for help on using the repository browser.