Changeset 1918 for branches/blt4


Ignore:
Timestamp:
Oct 15, 2010 8:59:46 PM (14 years ago)
Author:
gah
Message:

examine group list with tree xml parser

Location:
branches/blt4/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/gui/scripts/Makefile.in

    r1897 r1918  
    3434                $(srcdir)/controls.tcl \
    3535                $(srcdir)/curve.tcl \
     36                $(srcdir)/datatable.tcl \
     37                $(srcdir)/datatableresult.tcl \
    3638                $(srcdir)/deviceEditor.tcl \
    3739                $(srcdir)/deviceLayout1D.tcl \
  • branches/blt4/gui/scripts/datatableresult.tcl

    r1917 r1918  
    5353    }
    5454    public method snap { w h }
     55    public method tooltip { desc x y }
    5556    public method parameters {title args} {
    5657        # do nothing
     
    144145    }
    145146    if { $params(-raise) } {
    146         puts stderr "raised set to $dataobj"
    147147        set _raised $dataobj
    148148    }
     
    325325        foreach { label description style } [$dataobj columns] {
    326326            foreach c [lsort -dictionary [array names labels $label*]] {
    327                 $itk_component(treeview) column insert end $c
    328                 Rappture::Tooltip::for $itk_component(treeview) $c
     327                eval $itk_component(treeview) column insert end [list $c] $style
     328                $itk_component(treeview) column bind $c <Enter> \
     329                    [itcl::code $this tooltip $description %X %Y]
     330                $itk_component(treeview) column bind $c <Leave> \
     331                    { Rappture::Tooltip::tooltip cancel }
     332            }
     333        }   
     334    }
     335    if { [llength $_dlist] == 1 } {
     336        foreach { label description style } [$dataobj columns] {
     337            foreach c [lsort -dictionary [array names labels $label*]] {
     338                $itk_component(treeview) column configure $c -text $label
    329339            }
    330340        }   
     
    354364}
    355365
     366itcl::body Rappture::DataTableResult::tooltip { description x y } {
     367    Rappture::Tooltip::text $itk_component(treeview) $description
     368    Rappture::Tooltip::tooltip pending $itk_component(treeview) @$x,$y
     369}
Note: See TracChangeset for help on using the changeset viewer.