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/analyzer.tcl

    r3175 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
     
    8282    private variable _label2page       ;# maps output label => result set
    8383    private variable _label2desc       ;# maps output label => description
     84    private variable _label2item       ;# maps output label => output.xxx item
    8485    private variable _lastlabel ""     ;# label of last example loaded
    8586    private variable _plotlist ""      ;# items currently being plotted
     
    129130    }
    130131    pack $itk_component(simulate) -side left -padx 4 -pady 4
     132
     133    # BE CAREFUL: Shift focus when we click on "Simulate".
     134    #   This shifts focus away from input widgets and causes them to
     135    #   finalize and log any pending changes.  A better way would be
     136    #   to have the "sync" operation finalize/sync, but this works
     137    #   for now.
     138    bind $itk_component(simulate) <ButtonPress> {focus %W}
    131139
    132140    # if there's a hub url, then add "About" and "Questions" links
     
    615623            }
    616624
     625            Rappture::Logger::log download [$itk_component(viewselector) value]
    617626            set mesg [Rappture::filexfer::download $data $file]
    618627            if {[string length $mesg] > 0} {
     
    745754        eval $f.rviewer plot add $_plotlist
    746755        blt::busy release [winfo toplevel $itk_component(hull)]
     756        Rappture::Logger::log output $_label2item($name)
     757        Rappture::Tooltip::for $itk_component(viewselector) \
     758            "@[itcl::code $this _resultTooltip]" -log $_label2item($name)
    747759    }
    748760}
     
    830842                                insert end $name]
    831843                            set _label2page($label) $page
     844                            set _label2item($label) output.$item
    832845                            set _label2desc($label) \
    833846                                [$xmlobj get output.$item.about.description]
     
    899912                $itk_component(viewselector) choices delete 0 end
    900913                catch {unset _label2page}
     914                catch {unset _label2item}
    901915                catch {unset _label2desc}
    902916                set _plotlist ""
Note: See TracChangeset for help on using the changeset viewer.