Changeset 3305 for branches/nanovis2/gui/scripts/controls.tcl
- Timestamp:
- Feb 18, 2013, 2:32:14 PM (11 years ago)
- Location:
- branches/nanovis2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/nanovis2
- Property svn:mergeinfo changed
/trunk merged: 3174,3177-3182,3184-3199,3275-3282,3285,3287
- Property svn:mergeinfo changed
-
branches/nanovis2/gui/scripts/controls.tcl
r3175 r3305 7 7 # ====================================================================== 8 8 # AUTHOR: Michael McLennan, Purdue University 9 # Copyright (c) 2004-20 05 Purdue Research Foundation9 # Copyright (c) 2004-2012 HUBzero Foundation, LLC 10 10 # 11 11 # See the file "license.terms" for information on usage and … … 38 38 protected method _controlValue {path {units ""}} 39 39 protected method _formatLabel {str} 40 protected method _changeTabs { }40 protected method _changeTabs {{why -program}} 41 41 protected method _resize {} 42 42 … … 74 74 -side top -tearoff 0 -highlightthickness 0 \ 75 75 -selectbackground $itk_option(-background) \ 76 -selectcommand [itcl::code $this _changeTabs ]]76 -selectcommand [itcl::code $this _changeTabs -user]] 77 77 78 78 set _frame [frame $f.inner] … … 284 284 set tip [$w tooltip] 285 285 if {"" != $tip} { 286 Rappture::Tooltip::for $w $tip 286 Rappture::Tooltip::for $w $tip -log $path 287 287 288 288 # add the tooltip to the label too, if there is one 289 289 if {$_name2info($name-label) != ""} { 290 Rappture::Tooltip::for $_name2info($name-label) $tip 290 Rappture::Tooltip::for $_name2info($name-label) $tip -log $path 291 291 } 292 292 } … … 711 711 712 712 # ---------------------------------------------------------------------- 713 # USAGE: _changeTabs 713 # USAGE: _changeTabs ?-user|-program? 714 714 # 715 715 # Used internally to change tabs when the user clicks on a tab … … 718 718 # the groups. 719 719 # ---------------------------------------------------------------------- 720 itcl::body Rappture::Controls::_changeTabs { } {720 itcl::body Rappture::Controls::_changeTabs {{why -program}} { 721 721 set i [$_tabs index select] 722 722 # we use _showing here instead of _controls because sometimes tabs … … 724 724 # _showing, even if tabs are disabled. 725 725 set name [lindex $_showing $i] 726 if { "" != $name} {726 if {$name ne ""} { 727 727 foreach w [grid slaves $_frame] { 728 728 grid forget $w … … 731 731 set wv $_name2info($name-value) 732 732 grid $wv -row 0 -column 0 -sticky new 733 734 if {$why eq "-user"} { 735 Rappture::Logger::log group $_name2info($name-path) 736 } 733 737 } 734 738 }
Note: See TracChangeset
for help on using the changeset viewer.