Changeset 6714
- Timestamp:
- Mar 24, 2020, 4:48:01 PM (4 years ago)
- Location:
- branches/1.7/gui/scripts
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.7/gui/scripts/controlOwner.tcl
r5679 r6714 131 131 # register the new widget for the path 132 132 set _path2widget($path) $widget 133 # puts stderr "controlOwner::widgetfor register $path" 133 134 134 135 # look up the containing panel and store it too … … 287 288 error "\"$newobj\" is not a Rappture::library" 288 289 } 290 # puts stderr "controlOwner::load" 289 291 foreach path [array names _path2widget] { 290 292 # the following elements do not accept "current" tags, skip them 291 293 set type [[tool] xml element -as type $path] 294 # puts stderr "controlOwner::load path = $path, type = $type" 292 295 if {[lsearch {group separator control} $type] >= 0} { 293 296 continue … … 333 336 } 334 337 } 338 # puts stderr "controlOwner::load done" 335 339 } 336 340 -
branches/1.7/gui/scripts/loader.tcl
r6463 r6714 214 214 puts stderr " $result" 215 215 } else { 216 # puts stderr "::load example file = $fname" 216 217 set label [$obj get about.label] 217 218 if {$label == ""} { … … 227 228 # translate default file name => default label 228 229 if {[string equal $defval [file tail $fname]]} { 230 # puts stderr "::load set default file = $fname" 229 231 $_owner xml put $path.default $label 230 232 } … … 324 326 325 327 itcl::body Rappture::Loader::SetDefaultValue { value } { 328 # puts stderr "Rappture::Loader::SetDefaultValue $value" 326 329 $itk_component(combo) value $value 327 330 _newValue … … 337 340 # 338 341 itcl::body Rappture::Loader::EventuallySetDefaultValue { value } { 339 after 100 [itcl::code $this SetDefaultValue $value] 342 global env 343 if { [info exists env(RAPPTURE_PHASES_LOADED)] } { 344 set setDefaultValueNow $env(RAPPTURE_PHASES_LOADED) 345 } else { 346 set setDefaultValueNow 2 347 } 348 349 # puts stderr "Rappture::Loader::EventuallySetDefaultValue $setDefaultValueNow" 350 351 if {$setDefaultValueNow == 0} { 352 after 100 [itcl::code $this EventuallySetDefaultValue $value] 353 } else { 354 [itcl::code $this SetDefaultValue $value] 355 } 340 356 } 341 357 … … 350 366 set newval [$itk_component(combo) value] 351 367 set obj [$itk_component(combo) translate $newval] 368 # puts stderr "loader::_newValue $obj $itk_option(-tool)" 352 369 if {$obj == "@upload"} { 353 370 set tool [Rappture::Tool::resources -appname] … … 384 401 $obj copy $_copyto from $_copyfrom 385 402 } 403 # puts stderr "loader::_newValue $newval $_label2file($newval)" 386 404 $_owner xml put $_path.file $_label2file($newval) 387 405 $itk_option(-tool) load $obj -
branches/1.7/gui/scripts/main.tcl
r6561 r6714 290 290 } 291 291 292 # 293 # force loaders to wait until all phases have been created 294 # EventuallySetDefaultValue checks RAPPTURE_PHASES_LOADED 295 # before loading default loader file 296 # 297 global env 298 set env(RAPPTURE_PHASES_LOADED) 0 299 292 300 foreach comp $phases { 293 301 set title [string trim [$tool xml get $comp.about.label]] … … 295 303 set title "Input #auto" 296 304 } 305 # puts stderr "main phase name $comp" 306 297 307 $win.pager insert end -name $comp -title $title 298 308 … … 304 314 pack $f.cntls -expand yes -fill both 305 315 } 316 317 set env(RAPPTURE_PHASES_LOADED) 1 306 318 307 319 # let components (loaders) in the newly created pages settle -
branches/1.7/gui/scripts/page.tcl
r5679 r6714 77 77 78 78 set type [$xmlobj element -as type $path.$cname] 79 # puts stderr "::Page $type" 79 80 if {$type == "about"} { 80 81 continue
Note: See TracChangeset
for help on using the changeset viewer.