Changeset 1077 for trunk/gui/scripts/loader.tcl
- Timestamp:
- Jul 23, 2008, 8:00:21 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/loader.tcl
r746 r1077 121 121 } 122 122 if {[llength $_uppath] > 0} { 123 $itk_component(combo) choices insert end @upload "Upload..." 123 $itk_component(combo) choices insert end \ 124 @upload [Rappture::filexfer::label upload] 124 125 } 125 126 … … 130 131 # 131 132 Rappture::Balloon $itk_component(hull).download \ 132 -title "Choose what to download:"133 -title "Choose what to [string tolower [Rappture::filexfer::label downloadWord]]:" 133 134 set inner [$itk_component(hull).download component inner] 134 135 … … 149 150 } 150 151 } 151 button $inner.go -text "Download"\152 button $inner.go -text [Rappture::filexfer::label download] \ 152 153 -command [itcl::code $this _downloadValues] 153 154 pack $inner.go -side bottom -padx 50 -pady {4 2} 154 155 155 156 if {[llength $_dnpaths] > 0} { 156 $itk_component(combo) choices insert end @download "Download..." 157 $itk_component(combo) choices insert end \ 158 @download [Rappture::filexfer::label download] 157 159 } 158 160 … … 304 306 set obj [$itk_component(combo) translate $newval] 305 307 if {$obj == "@upload"} { 306 if {[Rappture::filexfer::enabled]} { 307 set tool [Rappture::Tool::resources -appname] 308 Rappture::filexfer::upload \ 309 $tool $_uppath [itcl::code $this _uploadValue] 310 } 308 set tool [Rappture::Tool::resources -appname] 309 Rappture::filexfer::upload \ 310 $tool $_uppath [itcl::code $this _uploadValue] 311 311 312 312 # put the combobox back to its last value … … 417 417 418 418 set mesg "" 419 if {[Rappture::filexfer::enabled]} { 420 foreach path $_dnpaths { 421 if {$_dnpath2state($this-$path)} { 422 set info [$itk_option(-tool) valuefor $path] 423 set mesg [Rappture::filexfer::download $info input.txt] 424 if {"" != $mesg} { break } 425 } 419 foreach path $_dnpaths { 420 if {$_dnpath2state($this-$path)} { 421 set info [$itk_option(-tool) valuefor $path] 422 set mesg [Rappture::filexfer::download $info input.txt] 423 if {"" != $mesg} { break } 426 424 } 427 425 }
Note: See TracChangeset
for help on using the changeset viewer.