Changeset ffeacdc in tol


Ignore:
Timestamp:
Nov 18, 2016, 11:18:15 AM (10 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
6dc91d2
Parents:
b23291d
Message:

Refs #1933
Mejora en bmultiselect.
Se quitan algunas trazas

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7351 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tolbase/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/byswidget/bmultiselect/bmultiselect.tcl

    rb23291d rffeacdc  
    472472      set last [lindex $indexes end]     
    473473      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        #@+ }       
    481485      } else {
    482486        if { $first != 0 } {
    … …  
    499503    if {$indexes != ""} {
    500504      set first [lindex $indexes 0]
    501       set last [lindex $indexes end]     
     505      set last [lindex $indexes end]
    502506      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        #@+ }
    509518      } else {
    510519        set end [$right index end]
  • tolbase/lib/toltk/tolinspe__wtree2.tcl

    rb23291d rffeacdc  
    686686#/////////////////////////////////////////////////////////////////////////////
    687687  variable wt_vars
    688   #@! REVISAR dejó de funcionar!
    689688  set node [$wt_vars selection get 0]
    690689  if {$node == ""} {
    691690    ::TolInspector::SelectionCollapse
    692691  } else {
    693     Tolcon_Trace "node $node"
    694692    $wt_vars expand $node
    695693  }
  • tolbase/lib/toltk/tolprj.tcl

    rb23291d rffeacdc  
    805805      set item "Set $name.$data(num)"
    806806      set value "Include(\"$filename\");"
    807       Tolcon_Trace "item: $item, value: $value"
    808807      writeini $fd $key $item $value
    809808      incr data(num)
    … …  
    10261025        set hasbutton 0
    10271026      }
    1028       Tolcon_Trace "prev $prev node $node"
    10291027      if {$prev eq "end"} {
    10301028        set idx [$tv item create -parent $node -button $hasbutton -open 0]
    … …  
    18191817    return -code error "File $path doesn't exist"
    18201818  }
    1821   #@ Tolcon_Trace "Llamada a WtreeFromFile"
    18221819  set fd [iniparse:openfile $path]
    18231820  BNodeFromFile $tv root "" $fd $proc
    … …  
    18711868  # Llamar recursivamente para los hijos
    18721869  foreach child [$tv item children $index] {
    1873     Tolcon_Trace "child $child"
    18741870    BNodeToFile $tv $child $fd
    18751871  }
  • tolbase/lib/wtree/wtree.tcl

    rb23291d rffeacdc  
    837837  method selection { args } {
    838838    if { [lindex $args 0] eq "set" } {
    839       Tolcon_Trace "selection $args"
    840839      switch [llength $args] {
    841840        1 { $tree selection clear all }
    … …  
    858857 
    859858  method move { item how dest } {
    860     Tolcon_Trace "item: $item how: $how dest: $dest"
    861859    if { $item eq $dest } { return }
    862860    switch $how {
Note: See TracChangeset for help on using the changeset viewer.