source: trunk/lang/tcl/scripts/objects/note/note.rp @ 3177

Last change on this file since 3177 was 3177, checked in by mmc, 12 years ago

Updated all of the copyright notices to reference the transfer to
the new HUBzero Foundation, LLC.

File size: 1.3 KB
Line 
1# ----------------------------------------------------------------------
2#  RAPPTURE OBJECT: note
3#
4#  A note is not an input or an output, but a documentation element
5#  that can be embedded within the tool--right now, only on the input
6#  side.
7#
8# ======================================================================
9#  AUTHOR:  Michael McLennan, Purdue University
10#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
11#
12#  See the file "license.terms" for information on usage and
13#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14# ======================================================================
15
16object note {
17    palettes "Inputs" "Documentation"
18
19    help http://rappture.org/wiki/rp_xml_ele_note
20
21    attr contents -title "HTML File" -type file -path contents -tooltip "Name of an HTML file loaded into the note area as documentation.  The file may contain embedded images and links, as long as those files reside in the same directory as the HTML file or have explicit http:// paths."
22
23
24    check contents {
25        set fname [string trim $attr(contents)]
26        if {[string length $fname] == 0
27              || [string equal $fname "select a file"]} {
28            return [list warning "Should set an HTML file with the contents of the note, or else delete the element."]
29        }
30    }
31}
Note: See TracBrowser for help on using the repository browser.