Changeset 1677 for branches/blt4/gui


Ignore:
Timestamp:
Mar 29, 2010 4:28:58 PM (14 years ago)
Author:
gah
Message:
 
Location:
branches/blt4/gui/scripts
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/gui/scripts/Makefile.in

    r1676 r1677  
    4949                $(srcdir)/field3dresult.tcl \
    5050                $(srcdir)/filechoiceentry.tcl \
     51                $(srcdir)/filelistentry.tcl \
    5152                $(srcdir)/filexfer.tcl \
    5253                $(srcdir)/flowdial.tcl \
  • branches/blt4/gui/scripts/controls.tcl

    r1675 r1677  
    138138        filechoice {
    139139            Rappture::FileChoiceEntry $w $_owner $path
     140            bind $w <<Value>> [itcl::code $this _controlChanged $name]
     141        }
     142        filelist {
     143            Rappture::FileListEntry $w $_owner $path
    140144            bind $w <<Value>> [itcl::code $this _controlChanged $name]
    141145        }
  • branches/blt4/gui/scripts/filechoiceentry.tcl

    r1675 r1677  
    7979            set i1 [expr $first + 2]
    8080            set i2 [expr $last  - 2]
    81             set path [string range $glob $i1 $i2]
    82             set value [$_owner xml get $_path.$cname]
    83             set value [$_owner xml get $path]
     81            set cpath [string range $glob $i1 $i2]
     82            set value [$_owner xml get $cpath.$cname]
    8483            set glob [string replace $glob $first $last $value]
    85             $_owner notify add $this $path [itcl::code $this _whenidle]
     84            $_owner notify add $this $cpath [itcl::code $this _whenidle]
    8685        }
    8786    }
     
    205204            set i1 [expr $first + 2]
    206205            set i2 [expr $last  - 2]
    207             set path [string range $glob $i1 $i2]
    208             set value [$_owner xml get $path.current]
    209             puts stderr "$path.current: value=$value"
     206            set cpath [string range $glob $i1 $i2]
     207            set value [$_owner xml get $cpath.current]
     208            puts stderr "$cpath.current: value=$value"
    210209            if { $value == "" } {
    211                 set value [$_owner xml get $path.default]
    212                 puts stderr "$path.default: value=$value"
     210                puts stderr "$_owner xml get $cpath.default"
     211                set value [$_owner xml get $cpath.default]
     212                puts stderr "$cpath.default: value=$value"
    213213            }
    214214            set glob [string replace $glob $first $last $value]
    215215        }
    216         puts stderr "after glob=$glob"
    217216        # Replace the template with the substituted value.
    218217        set files [glob -nocomplain $glob]
    219         puts stderr "files=$files"
    220218        set allfiles [concat $allfiles $files]
    221219    }
     
    254252itcl::body Rappture::FileChoiceEntry::_tooltip {} {
    255253    set tip [string trim [$_owner xml get $_path.about.description]]
    256 
     254    puts stderr "tip=$tip, $_owner=$_owner path=$_path.about.description"
    257255    # get the description for the current choice, if there is one
    258256    set str [$itk_component(choice) value]
    259257    set path [$itk_component(choice) translate $str]
    260     set desc ""
    261     if {$path != ""} {
    262         set desc [$_owner xml get $path.about.description]
     258    set desc $path
     259    if {$path == ""} {
     260        set desc [$_owner xml get $_path.about.description]
    263261    }
    264262
  • branches/blt4/gui/scripts/xylegend.tcl

    r1671 r1677  
    116116            -height 100
    117117    }
     118   
    118119    blt::tk::scrollbar $itk_interior.scrl.xs
    119120    blt::tk::scrollbar $itk_interior.scrl.ys
Note: See TracChangeset for help on using the changeset viewer.