Changeset 7b8f6fc in tol


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

Location:
tolbase/lib/toltk
Files:
5 edited

Legend:

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

    r0bf09a4 r7b8f6fc  
    653653  # comprobamos que existan valores y aplicamos
    654654  if {([info exists values_y]) && ([llength $values_y])} {
    655 
    656655    set tmpOpt(var,yAxisMin) [lindex $values_y 0]
    657656    set tmpOpt(var,yAxisMax) [lindex $values_y 1]
    … …  
    679678      $tmpOpt(var,x2AxisMin) $tmpOpt(var,x2AxisMax)
    680679  }
    681   #Aplicamos valores a loe ejes
    682   GrapOptApplyAxisTicks    $this ${this}::options gr,$gr
     680  #Aplicamos valores a los ejes
     681  GrapOptApplyAxisTicks $this ${this}::options gr,$gr
    683682}
    684683
  • tolbase/lib/toltk/bysgropt.tcl

    r0bf09a4 r7b8f6fc  
    37593759    }
    37603760    $g axis configure $axis $axis -min $min -max $max
     3761    #@! Redibuja el gráfico
     3762    event generate $g <Configure>
    37613763  }
    37623764}
  • 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)
  • tolbase/lib/toltk/tclIndex

    r0bf09a4 r7b8f6fc  
    795795
    796796set auto_index(Rbc_ViewMode) [list source [file join $dir graph.tcl]]
     797set auto_index(::rbc::ClearCrosshairs) [list source [file join $dir graph.tcl]]
    797798set auto_index(::rbc::SetZoomScale) [list source [file join $dir graph.tcl]]
    798799set auto_index(::rbc::ClearMode) [list source [file join $dir graph.tcl]]
  • tolbase/lib/toltk/tolinspe__wtree2.tcl

    r0bf09a4 r7b8f6fc  
    3636    set open 1
    3737  }
    38   if { [$wt_tree item state get $idx_file focus] } {
     38  if { [$wt_tree item state get $idx_file selected] } {
    3939    SelectObject
    4040  }
    … …  
    5555    set open 1
    5656  }
    57   if { [$wt_tree item state get $idx focus] } {
     57  if { [$wt_tree item state get $idx selected] } {
    5858    SelectObject
    5959  }
    … …  
    7676
    7777  #Tolcon_Trace "Abierto el nodo root-console"
    78   if { [$wt_tree item state get $idx_con focus] } {
     78  if { [$wt_tree item state get $idx_con selected] } {
    7979    SelectObject
    8080  }
    … …  
    376376            File {
    377377              if {[llength $options_selected(File)] == 1} {
    378                 set objName [lindex [lindex $options_selected(File) 0] 1]
     378                set objName [lindex [lindex $options_selected(File) 0] 2]               
    379379                $data_menu(main) add command -label [mc "View file"] \
    380380                  -command [list ::TolInspector::ViewFile $objName]
    … …  
    388388                foreach objInfo $options_selected(File) {
    389389                  $data_menu(File,View) add command -label [lindex $objInfo 1] \
    390                     -command [list ::TolInspector::ViewFile [lindex $objInfo 1]]
     390                    -command [list ::TolInspector::ViewFile [lindex $objInfo 2]]
    391391                }
    392392                if $InRootFiles {
    … …  
    395395                  foreach objInfo $options_selected(File) {
    396396                    $data_menu(File,Decompile) add command -label [lindex $objInfo 1] \
    397                       -command [list ::TolInspector::DecompileFile [lindex $objInfo 1]]
     397                      -command [list ::TolInspector::DecompileFile [lindex $objInfo 2]]
    398398                  }
    399399                }
Note: See TracChangeset for help on using the changeset viewer.