Ignore:
Timestamp:
Mar 18, 2011 9:01:35 AM (13 years ago)
Author:
mmc
Message:

Oops! Fixed a problem with the "xml" method added to the Tool class for
the regression tester. The base class ControlOwner? already has this method,
so it should not have been added at the Tool level. The Tool's implementation
broke the ordinary workings of the Rappture GUI.

Removed a debug puts statement from XyResult? and updated it to work with
the new CurveValue? objects in addition to the old Curves.

File:
1 edited

Legend:

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

    r2135 r2141  
    2929    public method abort {}
    3030    public method reset {}
    31     public method xml {args}
    3231
    3332    protected method _mkdir {dir}
     
    344343
    345344# ----------------------------------------------------------------------
    346 # USAGE: xml ?<option> <arg> <arg>...?
    347 #
    348 # Used to access the XML specification for this tool.  With no extra
    349 # args, it returns the Rappture XML object.  Otherwise, it applies
    350 # the option/args to the object and returns the result.  The <option>
    351 # might be something like "children" or "element" or any other
    352 # operation supported by a Rappture::library object.
    353 # ----------------------------------------------------------------------
    354 itcl::body Rappture::Tool::xml {args} {
    355     if {[llength $args] == 0} {
    356         return $_xmlobj
    357     }
    358     return [eval $_xmlobj $args]
    359 }
    360 
    361 # ----------------------------------------------------------------------
    362345# USAGE: _output <data>
    363346#
Note: See TracChangeset for help on using the changeset viewer.