Changeset 7b8f6fc in tol for tolbase/lib/toltk/graph.tcl


Ignore:
Timestamp:
Nov 28, 2016, 10:42:29 AM (10 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
6f7a669
Parents:
0bf09a4
Message:

Refs #1933
Se redibuja el gráfico tras actualizar los ejes ($graph configure axis ...) ya que según parece con rbc esto no se hace automáticamente.
Se añade el método ClearCrosshairs.
Se soluciona un bug decompilando archivos desde la ventana derecha del inspector.
Se corrige la actualización del inspector según el item seleccionado en el árbol.

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

File:
1 edited

Legend:

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

    r0bf09a4 r7b8f6fc  
    8585}
    8686
     87proc rbc::ClearCrosshairs { graph } {
     88    rbc::RemoveBindTag $graph crosshairs-$graph
     89    $graph crosshairs off
     90}
     91
    8792proc rbc::InitStack { graph {mode zoom-frame} } {
    8893    global zoomInfo
    … …  
    9398    set zoomInfo($graph,mode) $mode
    9499}
    95 
    96100
    97101proc rbc::SetZoomScale { graph scale } {
    … …  
    155159    $graph axis configure $axis -min $min -max $max
    156160  }
     161  #@! Redibuja el gráfico
     162  event generate $graph <Configure>
    157163  # This "update" forces the graph to be redrawn
    158164  set this [::bayesGraph::getInstance $graph]
    … …  
    253259    $graph axis configure $axis -min $lower -max $upper
    254260  }
     261  #@! Redibuja el gráfico
     262  event generate $graph <Configure>
    255263  set zoomInfo($graph,A,x) $zoomInfo($graph,B,x)
    256264  set zoomInfo($graph,A,y) $zoomInfo($graph,B,y)
Note: See TracChangeset for help on using the changeset viewer.