Changeset 3305 for branches/nanovis2/gui/scripts/deviceViewer1D.tcl
- Timestamp:
- Feb 18, 2013, 2:32:14 PM (12 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/deviceViewer1D.tcl
r1929 r3305 10 10 # ====================================================================== 11 11 # AUTHOR: Michael McLennan, Purdue University 12 # Copyright (c) 2004-20 05 Purdue Research Foundation12 # Copyright (c) 2004-2012 HUBzero Foundation, LLC 13 13 # 14 14 # See the file "license.terms" for information on usage and … … 43 43 protected method _loadDevice {} 44 44 protected method _loadParameters {frame path} 45 protected method _changeTabs { }45 protected method _changeTabs {{why -program}} 46 46 protected method _fixSize {} 47 47 protected method _fixAxes {} … … 77 77 blt::tabset $itk_interior.tabs -borderwidth 0 -relief flat \ 78 78 -side bottom -tearoff 0 \ 79 -selectcommand [itcl::code $this _changeTabs ]79 -selectcommand [itcl::code $this _changeTabs -user] 80 80 } { 81 81 keep -activebackground -activeforeground … … 456 456 457 457 # ---------------------------------------------------------------------- 458 # USAGE: _changeTabs 458 # USAGE: _changeTabs ?-user|-program? 459 459 # 460 460 # Used internally to change the field being displayed whenever a new 461 461 # tab is selected. 462 462 # ---------------------------------------------------------------------- 463 itcl::body Rappture::DeviceViewer1D::_changeTabs { } {463 itcl::body Rappture::DeviceViewer1D::_changeTabs {{why -program}} { 464 464 set graph $itk_component(graph) 465 465 … … 475 475 } else { 476 476 set name [lindex [array names _tab2fields] 0] 477 } 478 479 if {$why eq "-user"} { 480 Rappture::Logger::log device1D -field $name 477 481 } 478 482 … … 740 744 bell 741 745 Rappture::Tooltip::cue $itk_component(geditor) $result 746 Rappture::Logger::log warning $_marker(path) $result 742 747 return 0 743 748 } … … 746 751 bell 747 752 Rappture::Tooltip::cue $itk_component(geditor) $result 753 Rappture::Logger::log warning $_marker(path) $result 748 754 return 0 749 755 } … … 761 767 $_owner changed $_marker(path) 762 768 event generate $itk_component(hull) <<Edit>> 769 Rappture::Logger::log input $_marker(path) $value 763 770 764 771 _changeTabs … … 798 805 799 806 # create the widget 800 $type $w -units $units -presets $presets 807 $type $w -units $units -presets $presets -log $path 801 808 pack $w -side top -anchor w 802 809 bind $w <<Value>> [itcl::code $this _controlSet $w $libObj $path]
Note: See TracChangeset
for help on using the changeset viewer.