Changeset 64bb607 in tol
- Timestamp:
- Jun 18, 2009, 1:28:49 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 4c3ff30
- Parents:
- cfc30c0
- File:
-
- 1 edited
-
tolbase/lib/toltk/tolinspe.tcl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/tolinspe.tcl
rcfc30c0 r64bb607 1305 1305 set node_prefix $node_type 1306 1306 #puts "SelectObject: node_prefix = $node_prefix" 1307 if {[regexp -- "pool" $node_type]} {1307 if {[regexp -- "pool" $node_type]} { 1308 1308 set tolset $data(pool,reference,[lindex $node_type 0]) 1309 1309 #puts "SelectObject: Spool: tolset=$tolset, info_node=$info_node" … … 3188 3188 #puts "CallUserFunction. grammar=$grammar, idx=$idx, items_selected=$items_selected" 3189 3189 3190 set itemsName ""3190 set all_objs [ list ] 3191 3191 foreach it $items_selected { 3192 set namTol [TclRefToNameTol $it] 3193 if {[string length $namTol]} { 3194 lappend itemsName [TclRefToNameTol $it] 3195 #lappend itemsName [lindex $it 1] 3196 } else { 3197 tk_messageBox -type ok -icon info \ 3198 -message [mc "VarWithoutNameNotFunc"] \ 3199 -title [mc "Warning"] 3200 return 0 3201 } 3202 } 3203 3204 if { [llength $itemsName] } { 3192 set tcl_ref [ lindex $it 0 ] 3193 set obj_addr [ ::tol::info address $tcl_ref ] 3194 lappend all_objs "GetObjectFromAddress(\"$obj_addr\")" 3195 } 3196 3197 if { [ llength $all_objs ] } { 3205 3198 incr group_id 3206 3199 array set regFun $regFunLst 3207 3200 set gui [bguifunction .t$group_id \ 3208 -title $regFun($idx,nameGui) \3209 -regpars $regFun($idx,parameters)]3201 -title $regFun($idx,nameGui) \ 3202 -regpars $regFun($idx,parameters)] 3210 3203 set txtPars [join [$gui get values] ,] 3211 3204 if {$txtPars ne ""} { … … 3216 3209 switch [lindex $typeGui 0] { 3217 3210 Ite { 3218 foreach item $itemsName{3219 set cmd "$regFun($idx,typeOut) $regFun($idx,nameFun) ($ item$txtPars)"3211 foreach obj $all_objs { 3212 set cmd "$regFun($idx,typeOut) $regFun($idx,nameFun) ($obj $txtPars)" 3220 3213 #Tolcon_Trace "Ite.cmd=$cmd" 3221 3214 ::tol::console eval $cmd … … 3224 3217 } 3225 3218 Set { 3226 set item [join $itemsName,]3227 set setCmd "SetOf[lindex $typeGui 1] ($ item)"3219 set obj_args [join $all_objs ,] 3220 set setCmd "SetOf[lindex $typeGui 1] ($obj_args)" 3228 3221 set cmd "$regFun($idx,typeOut) $regFun($idx,nameFun) ($setCmd $txtPars)" 3229 3222 #Tolcon_Trace "Set.cmd=$cmd"
Note: See TracChangeset
for help on using the changeset viewer.
