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

sync with trunk

Location:
branches/nanovis2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/nanovis2

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

    r1929 r3305  
    1010# ======================================================================
    1111#  AUTHOR:  Michael McLennan, Purdue University
    12 #  Copyright (c) 2004-2005  Purdue Research Foundation
     12#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
    1313#
    1414#  See the file "license.terms" for information on usage and
     
    4343    protected method _loadDevice {}
    4444    protected method _loadParameters {frame path}
    45     protected method _changeTabs {}
     45    protected method _changeTabs {{why -program}}
    4646    protected method _fixSize {}
    4747    protected method _fixAxes {}
     
    7777        blt::tabset $itk_interior.tabs -borderwidth 0 -relief flat \
    7878            -side bottom -tearoff 0 \
    79             -selectcommand [itcl::code $this _changeTabs]
     79            -selectcommand [itcl::code $this _changeTabs -user]
    8080    } {
    8181        keep -activebackground -activeforeground
     
    456456
    457457# ----------------------------------------------------------------------
    458 # USAGE: _changeTabs
     458# USAGE: _changeTabs ?-user|-program?
    459459#
    460460# Used internally to change the field being displayed whenever a new
    461461# tab is selected.
    462462# ----------------------------------------------------------------------
    463 itcl::body Rappture::DeviceViewer1D::_changeTabs {} {
     463itcl::body Rappture::DeviceViewer1D::_changeTabs {{why -program}} {
    464464    set graph $itk_component(graph)
    465465
     
    475475    } else {
    476476        set name [lindex [array names _tab2fields] 0]
     477    }
     478
     479    if {$why eq "-user"} {
     480        Rappture::Logger::log device1D -field $name
    477481    }
    478482
     
    740744                    bell
    741745                    Rappture::Tooltip::cue $itk_component(geditor) $result
     746                    Rappture::Logger::log warning $_marker(path) $result
    742747                    return 0
    743748                }
     
    746751                bell
    747752                Rappture::Tooltip::cue $itk_component(geditor) $result
     753                Rappture::Logger::log warning $_marker(path) $result
    748754                return 0
    749755            }
     
    761767            $_owner changed $_marker(path)
    762768            event generate $itk_component(hull) <<Edit>>
     769            Rappture::Logger::log input $_marker(path) $value
    763770
    764771            _changeTabs
     
    798805
    799806    # create the widget
    800     $type $w -units $units -presets $presets
     807    $type $w -units $units -presets $presets -log $path
    801808    pack $w -side top -anchor w
    802809    bind $w <<Value>> [itcl::code $this _controlSet $w $libObj $path]
Note: See TracChangeset for help on using the changeset viewer.