Ignore:
Timestamp:
Jun 8, 2005 5:37:19 PM (19 years ago)
Author:
mmc
Message:

Many improvements, including a new energy level viewer
for Huckel-IV. Added support for a new <boolean> type.
Fixed the cloud/field stuff so that when a cloud is 1D,
it reverts to BLT vectors so it will plot correctly.
Fixed the install script to work better on Windows.

File:
1 edited

Legend:

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

    r11 r13  
    1414option add *ResultSet.width 4i widgetDefault
    1515option add *ResultSet.height 4i widgetDefault
    16 option add *ResultSet.colors {blue #000066} widgetDefault
     16option add *ResultSet.colors {blue magenta} widgetDefault
    1717option add *ResultSet.toggleBackground gray widgetDefault
    1818option add *ResultSet.toggleForeground white widgetDefault
     
    130130# Adds a new result to this result set.  Scans through all existing
    131131# results to look for a difference compared to previous results.
    132 # Returns an instruction to the caller, indicating how the various
     132# Returns the index of this new result to the caller.  The various
    133133# data objects for this result set should be added to their result
    134 # viewers.
     134# viewers at the same index.
    135135# ----------------------------------------------------------------------
    136136itcl::body Rappture::ResultSet::add {xmlobj} {
     
    149149        $itk_component(status) configure -text "1 result"
    150150        $itk_component(clear) configure -state normal
    151         return "add"
     151        return 0
    152152    }
    153153
     
    173173
    174174    # build a tuple for this new object
    175     set op "add"
    176175    set cols ""
    177176    set tuple ""
     
    198197
    199198        # overwrite the first matching entry
    200         set i [lindex $ilist 0]
    201         $_results put $i $tuple
     199        set index [lindex $ilist 0]
     200        $_results put $index $tuple
    202201        set _recent $xmlobj
    203         set op "replace $i"
    204 
    205202    } else {
     203        set index [$_results size]
    206204        $_results insert end $tuple
    207205        set _recent $xmlobj
     
    215213    $itk_component(clear) configure -state normal
    216214
    217     return $op
     215    return $index
    218216}
    219217
     
    232230    }
    233231    catch {unset _col2widget}
     232    set _plotall ""
    234233    set _counter 0
    235234
Note: See TracChangeset for help on using the changeset viewer.