Changeset 674 for trunk/gui/scripts
- Timestamp:
- Apr 19, 2007, 5:38:09 PM (17 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/sequenceresult.tcl
r644 r674 302 302 } 303 303 if {[llength $all] > 0} { 304 set delay [expr {int(ceil(pow($_play(speed)/10.0 ,2.0)*5))}]304 set delay [expr {int(ceil(pow($_play(speed)/10.0+2,2.0)*15))}] 305 305 set rval [eval Rappture::icon::gif_animate $delay $all] 306 306 } … … 342 342 343 343 # schedule the first frame 344 set delay [expr {int(ceil(pow($_play(speed)/10.0 ,2.0)*5))}]344 set delay [expr {int(ceil(pow($_play(speed)/10.0+2,2.0)*15))}] 345 345 set _afterId [after $delay [itcl::code $this _playFrame]] 346 346 } … … 492 492 goto $_pos 493 493 494 set delay [expr {int(ceil(pow($_play(speed)/10.0 ,2.0)*5))}]494 set delay [expr {int(ceil(pow($_play(speed)/10.0+2,2.0)*15))}] 495 495 set _afterId [after $delay [itcl::code $this _playFrame]] 496 496 } … … 515 515 if {"" != $_topmost} { 516 516 foreach dataobj [$_topmost value $_pos] { 517 $viewer add $dataobj "" 518 } 519 } 520 } 517 set settings "-color autoreset -width 2" 518 if {[catch {$dataobj hints style} style] == 0} { 519 eval lappend settings $style 520 } 521 $viewer add $dataobj $settings 522 } 523 } 524 } -
trunk/gui/scripts/textentry.tcl
r649 r674 25 25 option add *TextEntry.hintFont \ 26 26 -*-helvetica-medium-r-normal-*-*-100-* widgetDefault 27 option add *TextEntry. binaryFont \27 option add *TextEntry.codeFont \ 28 28 -*-courier-medium-r-normal-*-12-* widgetDefault 29 29 … … 242 242 243 243 bind $itk_component(entry) <KeyPress> [itcl::code $this _newValue] 244 bind $itk_component(entry) <Control-KeyPress-a> \ 245 "[list $itk_component(entry) selection range 0 end]; break" 244 246 245 247 itk_component add emenu { … … 252 254 $itk_component(emenu) add command -label "Paste" -accelerator "^V" \ 253 255 -command [list event generate $itk_component(entry) <<Paste>>] 256 $itk_component(emenu) add command -label "Select All" -accelerator "^A" -command [list $itk_component(entry) selection range 0 end] 254 257 bind $itk_component(entry) <<PopupMenu>> \ 255 258 [itcl::code $this _edit menu emenu %X %Y] … … 285 288 rename -background -textbackground textBackground Background 286 289 rename -foreground -textforeground textForeground Foreground 290 rename -font -codefont codeFont CodeFont 287 291 } 288 292 $itk_component(text) configure \ 289 293 -background $itk_option(-textbackground) \ 290 -foreground $itk_option(-textforeground) 294 -foreground $itk_option(-textforeground) \ 295 -font $itk_option(-codefont) 291 296 $itk_component(scrollbars) contents $itk_component(text) 292 297 293 298 bind $itk_component(text) <KeyPress> [itcl::code $this _newValue] 299 bind $itk_component(text) <Control-KeyPress-a> \ 300 "[list $itk_component(text) tag add sel 1.0 end]; break" 294 301 295 302 itk_component add tmenu { … … 302 309 $itk_component(tmenu) add command -label "Paste" -accelerator "^V" \ 303 310 -command [list event generate $itk_component(text) <<Paste>>] 311 $itk_component(tmenu) add command -label "Select All" -accelerator "^A" -command [list $itk_component(text) tag add sel 1.0 end] 304 312 $itk_component(tmenu) add separator 305 313 $itk_component(tmenu) add command -label "Upload..." \ … … 341 349 set _mode "binary" 342 350 set _value $newval 343 set font [option get $itk_component(hull) binaryFont BinaryFont]344 351 345 352 set size [string length $newval] … … 366 373 if {$len > 1600} { 367 374 set len 1600 368 set tail "... "375 set tail "...more..." 369 376 } 370 377 … … 400 407 set _value "" 401 408 regsub -all "\r" $newval "\n" newval 402 set font [option get $itk_component(hull) binaryFont Font]403 409 } 404 410 405 411 if {$_layout == "entry"} { 406 $itk_component(entry) configure -font $font407 412 $itk_component(entry) configure -state normal 408 413 $itk_component(emenu) entryconfigure "Cut" -state normal 409 $itk_component(emenu) entryconfigure "Copy" -state normal410 414 $itk_component(emenu) entryconfigure "Paste" -state normal 411 415 $itk_component(entry) delete 0 end … … 414 418 $itk_component(entry) configure -state disabled 415 419 $itk_component(emenu) entryconfigure "Cut" -state disabled 416 $itk_component(emenu) entryconfigure "Copy" -state disabled417 420 $itk_component(emenu) entryconfigure "Paste" -state disabled 418 421 } 419 422 } elseif {$_layout == "text"} { 420 $itk_component(text) configure -font $font421 423 $itk_component(text) configure -state normal 422 424 $itk_component(tmenu) entryconfigure "Cut" -state normal 423 $itk_component(tmenu) entryconfigure "Copy" -state normal424 425 $itk_component(tmenu) entryconfigure "Paste" -state normal 425 426 $itk_component(text) delete 1.0 end … … 432 433 -background $dbg -foreground $dfg 433 434 $itk_component(tmenu) entryconfigure "Cut" -state disabled 434 $itk_component(tmenu) entryconfigure "Copy" -state disabled435 435 $itk_component(tmenu) entryconfigure "Paste" -state disabled 436 436 } else { -
trunk/gui/scripts/tool.tcl
r640 r674 107 107 global errorInfo 108 108 109 # make sure that we save the proper application name 110 if {"" != $_appname} { 109 # 110 # Make sure that we save the proper application name. 111 # Actually, the best place to get this information is 112 # straight from the "installtool" script, but just in 113 # case we have an older tool, we should insert the 114 # tool name from the resources config file. 115 # 116 if {"" != $_appname && "" == [$_xmlobj get tool.name]} { 111 117 $_xmlobj put tool.name $_appname 112 118 }
Note: See TracChangeset
for help on using the changeset viewer.