Ignore:
Timestamp:
Mar 27, 2011 3:14:54 PM (12 years ago)
Author:
mmc
Message:

Integrated the new -tooltip support into the builder and added tooltips
for the Tool section. Also, fixed a problem whereby you would load an
XML file and then switch to another, and the program would prompt you
to save changes, even though nothing was changed. Empty strings were
being inserted into the XML causing it to appear different than the
original. That's fixed now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/builder/scripts/main.tcl

    r2155 r2158  
    190190
    191191    if {$what == "-new"} {
    192         set xmlobj [Rappture::LibraryObj ::#auto "<?xml version=\"1.0\"?><run/>"]
    193         $xmlobj put tool.command ""
     192        set xmlobj [Rappture::LibraryObj ::#auto "<?xml version=\"1.0\"?><run><tool/></run>"]
    194193    } else {
    195194        if {$what == "-file"} {
     
    10311030
    10321031    # copy the ToolXml object and pass to analyzer to show outputs
    1033     set synthrun [Rappture::LibraryObj ::#auto "<?xml version=\"1.0\"?><run/>"]
     1032    set synthrun [Rappture::LibraryObj ::#auto "<?xml version=\"1.0\"?><run><tool/></run>"]
    10341033    $synthrun copy "" from $ToolXml ""
    10351034    $f.analyze load $synthrun
     
    12461245                }
    12471246                lappend atargs -$key $val
     1247            }
     1248
     1249            # add any tooltip info for this attribute
     1250            if {[info exists info(-tooltip)] && $info(-tooltip) ne ""} {
     1251                lappend atargs -tooltip $info(-tooltip)
    12481252            }
    12491253
Note: See TracChangeset for help on using the changeset viewer.