Changeset 0bf09a4 in tol for tolbase/lib/toltk


Ignore:
Timestamp:
Nov 28, 2016, 10:35:21 AM (10 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
7b8f6fc
Parents:
0f71b65
Message:

Se eliminan algunos tabuladores y espacios adicionales.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/graph.tcl

    r0f71b65 r0bf09a4  
    2020      }
    2121      default {
    22        
     22
    2323      }
    2424    }
    … …  
    5252    bind scroll-$graph <ButtonRelease-1> { rbc::SetScrollPoint %W %x %y }
    5353    # este evento posiblemente ya no hara falta
    54     bind scroll-$graph <ButtonPress-3> { 
    55       if { [%W inside %x %y] } { 
    56         rbc::ResetScroll %W 
     54    bind scroll-$graph <ButtonPress-3> {
     55      if { [%W inside %x %y] } {
     56        rbc::ResetScroll %W
    5757      }
    5858    }
    … …  
    6161    puts "mode = $mode"
    6262    bind zoom-$graph <ButtonPress-1> { rbc::SetZoomPoint %W %x %y }
    63     if { [string equal $mode zoom-frame] } { 
     63    if { [string equal $mode zoom-frame] } {
    6464      bind zoom-$graph <ButtonRelease-1> { rbc::SetZoomPoint %W %x %y }
    6565    } else {
    6666      bind zoom-$graph <ButtonRelease-1> ""
    6767    }
    68     bind zoom-$graph <ButtonPress-3> { 
    69       if { [%W inside %x %y] } { 
    70         rbc::ResetZoom %W 
     68    bind zoom-$graph <ButtonPress-3> {
     69      if { [%W inside %x %y] } {
     70        rbc::ResetZoom %W
    7171      }
    7272    }
    … …  
    8080    set index [lsearch $oldTagList $tag]
    8181    if { $index >= 0 } {
    82         bindtags $widget [lreplace $oldTagList $index $index]
     82        bindtags $widget [lreplace $oldTagList $index $index]
    8383    }
    8484  }
    … …  
    8787proc rbc::InitStack { graph {mode zoom-frame} } {
    8888    global zoomInfo
    89  
     89
    9090    _rbc_InitStack $graph
    9191    # this is to allow zoom in, out scroll
    92  
     92
    9393    set zoomInfo($graph,mode) $mode
    9494}
    … …  
    135135  }
    136136  set zoomInfo($graph,stack) [linsert $zoomInfo($graph,stack) 0 $cmd]
    137   busy hold $graph 
     137  busy hold $graph
    138138  # This update lets the busy cursor take effect.
    139139  update
    … …  
    162162  ::bayesGraph::GrapOptApplyAxisTicks    $this ${this}::options gr,$gr
    163163  update
    164  
     164
    165165  busy release $graph
    166166}
    … …  
    185185    set modifier "Any-"
    186186  }
    187   bind select-region-$graph <${modifier}Motion> { 
     187  bind select-region-$graph <${modifier}Motion> {
    188188    rbc::GetCoords %W %x %y B
    189189    #rbc::MarkPoint $graph B
    … …  
    191191  }
    192192  if { $zoomInfo($graph,corner) == "A" } {
    193         if { ![$graph inside $x $y] } {
    194             return
    195         }
    196         # First corner selected, start watching motion events
    197 
    198         #rbc::MarkPoint $graph A
    199         rbc::ZoomTitleNext $graph
    200 
    201         rbc::AddBindTag $graph select-region-$graph
    202         set zoomInfo($graph,corner) B
    203   } else {
    204         # Delete the modal binding
    205         rbc::RemoveBindTag $graph select-region-$graph
    206         rbc::PushZoom $graph
    207         set zoomInfo($graph,corner) A
     193    if { ![$graph inside $x $y] } {
     194      return
     195    }
     196    # First corner selected, start watching motion events
     197
     198    #rbc::MarkPoint $graph A
     199    rbc::ZoomTitleNext $graph
     200
     201    rbc::AddBindTag $graph select-region-$graph
     202    set zoomInfo($graph,corner) B
     203  } else {
     204    # Delete the modal binding
     205    rbc::RemoveBindTag $graph select-region-$graph
     206    rbc::PushZoom $graph
     207    set zoomInfo($graph,corner) A
    208208  }
    209209}
    … …  
    213213
    214214    rbc::GetCoords $graph $x $y A
    215     bind scroll-region-$graph <Any-Motion> { 
    216         rbc::GetCoords %W %x %y B
    217         #rbc::MarkPoint $graph B
    218         rbc::Scroll %W
     215    bind scroll-region-$graph <Any-Motion> {
     216        rbc::GetCoords %W %x %y B
     217        #rbc::MarkPoint $graph B
     218        rbc::Scroll %W
    219219    }
    220220    if { $zoomInfo($graph,corner) == "A" } {
    221         if { ![$graph inside $x $y] } {
    222             return
    223         }
    224         # First corner selected, start watching motion events
    225 
    226         #rbc::MarkPoint $graph A
    227         rbc::ScrollTitle $graph
    228 
    229         rbc::AddBindTag $graph scroll-region-$graph
    230         set zoomInfo($graph,corner) B
    231     } else {
    232         # Delete the modal binding
    233       ResetScroll $graph
     221        if { ![$graph inside $x $y] } {
     222          return
     223        }
     224        # First corner selected, start watching motion events
     225
     226        #rbc::MarkPoint $graph A
     227        rbc::ScrollTitle $graph
     228
     229        rbc::AddBindTag $graph scroll-region-$graph
     230        set zoomInfo($graph,corner) B
     231    } else {
     232        # Delete the modal binding
     233        ResetScroll $graph
    234234    }
    235235}
    … …  
    262262  eval $graph marker delete [$graph marker names "scroll*"]
    263263  rbc::RemoveBindTag $graph scroll-region-$graph
    264   set zoomInfo($graph,corner) A 
     264  set zoomInfo($graph,corner) A
    265265}
    266266
    267267proc rbc::ScrollTitle { graph } {
    268268    if { [$graph cget -invertxy] } {
    269         set coords "-Inf -Inf"
    270     } else {
    271         set coords "-Inf Inf"
     269        set coords "-Inf -Inf"
     270    } else {
     271        set coords "-Inf Inf"
    272272    }
    273273    $graph marker create text -name "scrollTitle" -text "scrolling ..." \
    274         -coords $coords -bindtags "" -anchor nw
    275 }
     274        -coords $coords -bindtags "" -anchor nw
     275}
Note: See TracChangeset for help on using the changeset viewer.