Ignore:
Timestamp:
Feb 18, 2013, 2:32:14 PM (11 years ago)
Author:
ldelgass
Message:

sync with trunk

Location:
branches/nanovis2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/nanovis2

  • branches/nanovis2/gui/scripts/controls.tcl

    r3175 r3305  
    77# ======================================================================
    88#  AUTHOR:  Michael McLennan, Purdue University
    9 #  Copyright (c) 2004-2005  Purdue Research Foundation
     9#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
    1010#
    1111#  See the file "license.terms" for information on usage and
     
    3838    protected method _controlValue {path {units ""}}
    3939    protected method _formatLabel {str}
    40     protected method _changeTabs {}
     40    protected method _changeTabs {{why -program}}
    4141    protected method _resize {}
    4242
     
    7474        -side top -tearoff 0 -highlightthickness 0 \
    7575        -selectbackground $itk_option(-background) \
    76         -selectcommand [itcl::code $this _changeTabs]]
     76        -selectcommand [itcl::code $this _changeTabs -user]]
    7777
    7878    set _frame [frame $f.inner]
     
    284284        set tip [$w tooltip]
    285285        if {"" != $tip} {
    286             Rappture::Tooltip::for $w $tip
     286            Rappture::Tooltip::for $w $tip -log $path
    287287
    288288            # add the tooltip to the label too, if there is one
    289289            if {$_name2info($name-label) != ""} {
    290                 Rappture::Tooltip::for $_name2info($name-label) $tip
     290                Rappture::Tooltip::for $_name2info($name-label) $tip -log $path
    291291            }
    292292        }
     
    711711
    712712# ----------------------------------------------------------------------
    713 # USAGE: _changeTabs
     713# USAGE: _changeTabs ?-user|-program?
    714714#
    715715# Used internally to change tabs when the user clicks on a tab
     
    718718# the groups.
    719719# ----------------------------------------------------------------------
    720 itcl::body Rappture::Controls::_changeTabs {} {
     720itcl::body Rappture::Controls::_changeTabs {{why -program}} {
    721721    set i [$_tabs index select]
    722722    # we use _showing here instead of _controls because sometimes tabs
     
    724724    # _showing, even if tabs are disabled.
    725725    set name [lindex $_showing $i]
    726     if {"" != $name} {
     726    if {$name ne ""} {
    727727        foreach w [grid slaves $_frame] {
    728728            grid forget $w
     
    731731        set wv $_name2info($name-value)
    732732        grid $wv -row 0 -column 0 -sticky new
     733
     734        if {$why eq "-user"} {
     735            Rappture::Logger::log group $_name2info($name-path)
     736        }
    733737    }
    734738}
Note: See TracChangeset for help on using the changeset viewer.