Changeset 1918 for branches/blt4
- Timestamp:
- Oct 15, 2010 8:59:46 PM (14 years ago)
- Location:
- branches/blt4/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/scripts/Makefile.in
r1897 r1918 34 34 $(srcdir)/controls.tcl \ 35 35 $(srcdir)/curve.tcl \ 36 $(srcdir)/datatable.tcl \ 37 $(srcdir)/datatableresult.tcl \ 36 38 $(srcdir)/deviceEditor.tcl \ 37 39 $(srcdir)/deviceLayout1D.tcl \ -
branches/blt4/gui/scripts/datatableresult.tcl
r1917 r1918 53 53 } 54 54 public method snap { w h } 55 public method tooltip { desc x y } 55 56 public method parameters {title args} { 56 57 # do nothing … … 144 145 } 145 146 if { $params(-raise) } { 146 puts stderr "raised set to $dataobj"147 147 set _raised $dataobj 148 148 } … … 325 325 foreach { label description style } [$dataobj columns] { 326 326 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 329 339 } 330 340 } … … 354 364 } 355 365 366 itcl::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.