Changeset 1695 for branches/blt4


Ignore:
Timestamp:
Apr 16, 2010, 9:44:55 AM (15 years ago)
Author:
gah
Message:
 
Location:
branches/blt4
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/configure

    r1680 r1695  
    89528952
    89538953
    8954 ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile lang/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/RpOctaveInterface.h lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/src/Makefile lang/tcl/scripts/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/octave/2/Makefile examples/app-fermi/octave/3/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/contour/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/cloud/Makefile examples/zoo/cloud/matlab/Makefile examples/zoo/curve/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/group/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/loadrun/Makefile examples/zoo/log/Makefile examples/zoo/note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile examples/zoo/unirect2d/Makefile test/Makefile test/src/Makefile"
     8954ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile lang/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/RpOctaveInterface.h lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/src/Makefile lang/tcl/scripts/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/octave/2/Makefile examples/app-fermi/octave/3/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/contour/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/cloud/Makefile examples/zoo/cloud/matlab/Makefile examples/zoo/curve/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/filechoice/Makefile examples/zoo/group/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/loadrun/Makefile examples/zoo/log/Makefile examples/zoo/note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile examples/zoo/unirect2d/Makefile test/Makefile test/src/Makefile"
    89558955
    89568956cat >confcache <<\_ACEOF
     
    97299729    "examples/zoo/enable/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/enable/Makefile" ;;
    97309730    "examples/zoo/field/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/field/Makefile" ;;
     9731    "examples/zoo/filechoice/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/filechoice/Makefile" ;;
    97319732    "examples/zoo/group/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/group/Makefile" ;;
    97329733    "examples/zoo/image/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/Makefile" ;;
  • branches/blt4/configure.in

    r1680 r1695  
    633633    examples/zoo/enable/Makefile
    634634    examples/zoo/field/Makefile
     635    examples/zoo/filechoice/Makefile
    635636    examples/zoo/group/Makefile
    636637    examples/zoo/image/Makefile
  • branches/blt4/examples/zoo/Makefile.in

    r1629 r1695  
    2222                enable \
    2323                field \
     24                filechoice \
    2425                group \
    2526                image \
  • branches/blt4/examples/zoo/filechoice/filechoice.tcl

    r1680 r1695  
    1313set driver [Rappture::library [lindex $argv 0]]
    1414
    15 $driver put output.string(stats).about.label "Echo of choice"
    1615set choice [$driver get input.filelist(stats).current]
    1716set choice [join [split $choice ,] \n]
    18 $driver put output.string(stats).current $choice
     17$driver put output.string(filelist).current $choice
     18$driver put output.string(filelist).about.label "Echo of File List"
     19$driver put output.string(filelist).about.description "Displays the values (one per line) from the filelist element."
     20set choice [$driver get input.filechoice(stats).current]
     21$driver put output.string(filechoice).about.label "Echo of File Choice"
     22$driver put output.string(filechoice).about.description "Displays the value selected from the filechoice element."
     23$driver put output.string(filechoice).current $choice
    1924
    2025# save the updated XML describing the run...
  • branches/blt4/gui/scripts/filechoiceentry.tcl

    r1685 r1695  
    220220            set first $tail
    221221        }
     222        set tail [file root $tail]
    222223        $itk_component(choice) choices insert end $file $tail
    223         set _str2val($file) $tail
     224        set _str2val($tail) $file
    224225        set len [string length $tail]
    225226        if {$len > $max} { set max $len }
  • branches/blt4/gui/scripts/filelistentry.tcl

    r1682 r1695  
    325325    eval $_tree delete [$_tree tag nodes unused]
    326326    $itk_component(tree) configure -width $max
     327    catch {
     328    if { ![$itk_component(tree) selection present] } {
     329        $itk_component(tree) selection set [$_tree firstchild root]
     330    }
     331    } err
     332    puts stderr "select=$err"
    327333}
    328334
  • branches/blt4/gui/scripts/flowvisviewer.tcl

    r1650 r1695  
    119119    private method str2millisecs { value }
    120120    private method millisecs2str { value }
    121     private method IsMapped { widget }
    122121    private method GetFlowInfo { widget }
    123122    private method particles { tag name }
     
    27452744        }
    27462745        "next" {
    2747             if { ![IsMapped $itk_component(3dview)] } {
     2746            if { ![winfo viewable $itk_component(3dview)] } {
    27482747                flow stop
    27492748                return
     
    29482947}
    29492948
    2950 itcl::body Rappture::FlowvisViewer::IsMapped { w } {
    2951     while { $w != "" }  {
    2952         if { ![winfo ismapped $w] } {
    2953             return 0
    2954         }
    2955         set w [winfo parent $w]
    2956         if { [winfo toplevel $w] == $w } {
    2957             break
    2958         }
    2959     }
    2960     return 1
    2961 }
    2962 
  • branches/blt4/gui/scripts/molvisviewer.tcl

    r1650 r1695  
    9191    private method DownloadPopup { popup command }
    9292    private method EnableDownload { popup what }
    93     private method IsMapped { widget }
    9493
    9594    private variable _icon 0
     
    10061005        unset _rocker(afterid)
    10071006    }
    1008     if { ![IsMapped $itk_component(3dview)] } {
     1007    if { ![winfo viewable $itk_component(3dview)] } {
    10091008        return
    10101009    }
     
    18571856}
    18581857
    1859 itcl::body Rappture::MolvisViewer::IsMapped { w } {
    1860     while { $w != "" }  {
    1861         if { ![winfo ismapped $w] } {
    1862             return 0
    1863         }
    1864         set w [winfo parent $w]
    1865         if { [winfo toplevel $w] == $w } {
    1866             break
    1867         }
    1868     }
    1869     return 1
    1870 }
  • branches/blt4/gui/scripts/tooltip.tcl

    r1614 r1695  
    3838    itk_option define -message message Message ""
    3939
    40     constructor {args} { # defined below }
    41 
    42     public method show {where}
     40    private common pending "" ;         # after ID for pending "tooltip show"
     41    private common catalog    ;         # maps widget => message
     42    private common delay      ;         # The delay in milliseconds to wait
     43                                        # before presenting the tooltip.
     44    constructor {args} {
     45        # defined below
     46    }
     47    public method show { where }
    4348    public method hide {}
    44 
    45     public proc for {widget args}
    46     public proc text {widget args}
    47     private common catalog    ;# maps widget => message
    48 
     49   
     50    public proc for { widget args }
     51    public proc text { widget args }
    4952    public proc tooltip {option args}
    50     private common pending "" ;# after ID for pending "tooltip show"
    51 
    5253    public proc cue {option args}
     54    public proc delay { widget args }
    5355
    5456    bind RapptureTooltip <Enter> \
     
    296298                after cancel $pending
    297299            }
    298             set pending [after 750 [itcl::code tooltip show $widget $loc]]
     300            set t 750
     301            if { [info exists delay($widget)] } {
     302                set t $delay($widget)
     303            }
     304            set pending [after $t [itcl::code tooltip show $widget $loc]]
    299305        }
    300306        show {
     
    384390
    385391# ----------------------------------------------------------------------
     392# USAGE: delay <widget> ?<value>?
     393#
     394# Used to query or set the text used for the tooltip for a widget.
     395# This is done automatically when you call the "for" proc, but it
     396# is sometimes handy to query or change the text later.
     397# ----------------------------------------------------------------------
     398itcl::body Rappture::Tooltip::delay {widget args} {
     399    if {[llength $args] == 0} {
     400        if {[info exists delay($widget)]} {
     401            return $delay($widget)
     402        }
     403        return ""
     404    } elseif {[llength $args] == 1} {
     405        set time [lindex $args 0]
     406        set delay($widget) $time
     407    } else {
     408        error "wrong # args: should be \"delay widget ?millisecs?\""
     409    }
     410}
     411
     412# ----------------------------------------------------------------------
    386413# CONFIGURATION OPTION: -icon
    387414# ----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.