Changeset b23291d in tol


Ignore:
Timestamp:
Nov 18, 2016, 11:05:35 AM (10 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
ffeacdc
Parents:
23399d1
Message:

Refs #1933
Se prescinde del paquete cwind en btable. Se usa twapi.
Se corrige un bug en el evento del doble clic en el inspector.

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

Location:
tolbase/lib
Files:
2 edited

Legend:

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

    r23399d1 rb23291d  
    1515
    1616if { [string equal $tcl_platform(platform) "windows"] } {
    17   package require cwind
     17  package require twapi 
    1818}
    1919
    … …  
    38813881
    38823882        $self _CmdSpecialCopy table
    3883         ::cwind::waitwind {Microsoft Excel*} 10
    3884         ::cwind::send |CTRL+| v |CTRL-|
     3883        set xlsapp [::twapi::comobj {Excel.Application}]
     3884        after 1000 set sleep_end 1     
     3885        vwait sleep_end
     3886        twapi::send_keys {^v}
    38853887        $self configure -colseparator $tempcolsep
    38863888        $self configure -rowseparator $temprowsep
  • tolbase/lib/toltk/tolinspe__wtree1.tcl

    r23399d1 rb23291d  
    722722
    723723  if { ![string length $node] } { return }
     724 
    724725  set treeParent [$wt_tree selection get 0]
    725726  set treeParent_tolRef [$wt_tree item text $treeParent Reference]
     727  if { [llength $treeParent_tolRef] < 1 } return
     728  if { [lindex $treeParent_tolRef 0] eq "Grammar" } return 
     729 
    726730  set treeNode -1
    727   if { [llength $treeParent_tolRef] > 1 } {
    728     set grammar [$wt_vars item text $node Grammar]
    729     if {$grammar eq "Set" || $grammar eq "NameBlock"} {
    730       $wt_tree item expand $treeParent
    731       #@ Se localiza el nodo seleccionado en el árbol (wt_tree)
    732       set index [$wt_vars item text $node Index]     
    733       foreach node_i [$wt_tree item children $treeParent] {
    734         set index_i [$wt_tree item text $node_i Index]
    735         if { [string equal $index $index_i] } {
    736           set treeNode $node_i
    737           break
    738         }
    739       }
    740     }
    741   }
     731
     732  set grammar [$wt_vars item text $node Grammar]
     733  if {$grammar eq "Set" || $grammar eq "NameBlock"} {
     734    $wt_tree item expand $treeParent
     735    #@ Se localiza el nodo seleccionado en el árbol (wt_tree)
     736    set index [$wt_vars item text $node Index]   
     737    foreach node_i [$wt_tree item children $treeParent] {
     738      set index_i [$wt_tree item text $node_i Index]
     739      if { [string equal $index $index_i] } {
     740        set treeNode $node_i
     741        break
     742      }
     743    }
     744  } else {
     745    return
     746  }
     747 
    742748  if { $treeNode != -1 } {
    743749    update
Note: See TracChangeset for help on using the changeset viewer.