Changeset ffeacdc in tol
- Timestamp:
- Nov 18, 2016, 11:18:15 AM (10 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 6dc91d2
- Parents:
- b23291d
- Location:
- tolbase/lib
- Files:
-
- 4 edited
-
byswidget/bmultiselect/bmultiselect.tcl (modified) (2 diffs)
-
toltk/tolinspe__wtree2.tcl (modified) (1 diff)
-
toltk/tolprj.tcl (modified) (4 diffs)
-
wtree/wtree.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/byswidget/bmultiselect/bmultiselect.tcl
rb23291d rffeacdc 472 472 set last [lindex $indexes end] 473 473 if { $plus } { 474 set start [$right first] 475 if { $first != $start } { 476 $right move [lindex [$right range [$right first] $first] end-1] \ 477 after $last 478 $right selection clearall 479 $right selection set $first $last 480 } 474 # hacia arriba 475 if {$first eq [$right item firstchild root]} return 476 foreach index $indexes { 477 $right move $index before {} 478 } 479 #@+ set start [$right first] 480 #@+ if { $first != $start } { 481 #@+ $right move [lindex [$right range [$right first] $first] end-1] after $last 482 #@+ $right selection clearall 483 #@+ $right selection set $first $last 484 #@+ } 481 485 } else { 482 486 if { $first != 0 } { … … 499 503 if {$indexes != ""} { 500 504 set first [lindex $indexes 0] 501 set last [lindex $indexes end] 505 set last [lindex $indexes end] 502 506 if { $plus } { 503 set end [$right last] 504 if { $last != $end } { 505 $right move [lindex [$right find $last] 1] before $first 506 $right selection clearall 507 $right selection set $first $last 508 } 507 # hacia abajo 508 if {$last eq [$right item lastchild root]} return 509 foreach index [lreverse $indexes] { 510 $right move $index after {} 511 } 512 #@+ set end [$right last] 513 #@+ if { $last != $end } { 514 #@+ $right move [lindex [$right find $last] 1] before $first 515 #@+ $right selection clearall 516 #@+ $right selection set $first $last 517 #@+ } 509 518 } else { 510 519 set end [$right index end] -
tolbase/lib/toltk/tolinspe__wtree2.tcl
rb23291d rffeacdc 686 686 #///////////////////////////////////////////////////////////////////////////// 687 687 variable wt_vars 688 #@! REVISAR dejó de funcionar!689 688 set node [$wt_vars selection get 0] 690 689 if {$node == ""} { 691 690 ::TolInspector::SelectionCollapse 692 691 } else { 693 Tolcon_Trace "node $node"694 692 $wt_vars expand $node 695 693 } -
tolbase/lib/toltk/tolprj.tcl
rb23291d rffeacdc 805 805 set item "Set $name.$data(num)" 806 806 set value "Include(\"$filename\");" 807 Tolcon_Trace "item: $item, value: $value"808 807 writeini $fd $key $item $value 809 808 incr data(num) … … 1026 1025 set hasbutton 0 1027 1026 } 1028 Tolcon_Trace "prev $prev node $node"1029 1027 if {$prev eq "end"} { 1030 1028 set idx [$tv item create -parent $node -button $hasbutton -open 0] … … 1819 1817 return -code error "File $path doesn't exist" 1820 1818 } 1821 #@ Tolcon_Trace "Llamada a WtreeFromFile"1822 1819 set fd [iniparse:openfile $path] 1823 1820 BNodeFromFile $tv root "" $fd $proc … … 1871 1868 # Llamar recursivamente para los hijos 1872 1869 foreach child [$tv item children $index] { 1873 Tolcon_Trace "child $child"1874 1870 BNodeToFile $tv $child $fd 1875 1871 } -
tolbase/lib/wtree/wtree.tcl
rb23291d rffeacdc 837 837 method selection { args } { 838 838 if { [lindex $args 0] eq "set" } { 839 Tolcon_Trace "selection $args"840 839 switch [llength $args] { 841 840 1 { $tree selection clear all } … … 858 857 859 858 method move { item how dest } { 860 Tolcon_Trace "item: $item how: $how dest: $dest"861 859 if { $item eq $dest } { return } 862 860 switch $how {
Note: See TracChangeset
for help on using the changeset viewer.
