Ignore:
Timestamp:
Jul 16, 2005, 2:31:32 PM (19 years ago)
Author:
mmc
Message:

Lots of changes to support Huckel-IV:

  • Support for embedded <tool> declarations
  • New <integer> entry
  • Support for numbers and structures as output elements
  • Atom numbers/symbols in MoleculeViewer?
File:
1 edited

Legend:

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

    r11 r22  
    1515    inherit itk::Widget
    1616
    17     constructor {xmlobj path args} { # defined below }
     17    constructor {owner path args} { # defined below }
    1818
    1919    public method value {args}
     
    2222    public method tooltip {}
    2323
    24     private variable _xmlobj ""   ;# XML containing description
     24    private variable _owner ""    ;# thing managing this control
    2525    private variable _path ""     ;# path in XML to this number
    2626}
     
    3636# CONSTRUCTOR
    3737# ----------------------------------------------------------------------
    38 itcl::body Rappture::GroupEntry::constructor {xmlobj path args} {
    39     if {![Rappture::library isvalid $xmlobj]} {
    40         error "bad value \"$xmlobj\": should be Rappture::library"
     38itcl::body Rappture::GroupEntry::constructor {owner path args} {
     39    if {[catch {$owner isa Rappture::ControlOwner} valid] != 0 || !$valid} {
     40        error "bad object \"$owner\": should be Rappture::ControlOwner"
    4141    }
    42     set _xmlobj $xmlobj
     42    set _owner $owner
    4343    set _path $path
    4444
     
    6767# ----------------------------------------------------------------------
    6868itcl::body Rappture::GroupEntry::label {} {
    69     return [$_xmlobj get $_path.about.label]
     69    return [$_owner xml get $_path.about.label]
    7070}
    7171
     
    7979# ----------------------------------------------------------------------
    8080itcl::body Rappture::GroupEntry::tooltip {} {
    81     return [$_xmlobj get $_path.about.description]
     81    return [$_owner xml get $_path.about.description]
    8282}
Note: See TracChangeset for help on using the changeset viewer.