Changeset 6dc91d2 in tol for tolbase/lib/toltk/tolprj.tcl


Ignore:
Timestamp:
Nov 23, 2016, 12:06:20 PM (10 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
cc64b09
Parents:
ffeacdc
Message:

Refs #1933
Se incorporan las barras a la ventana de salida del inspector (tolbase.tcl).
Se corrige un bug con el botón derecho sobre el árbol del inspector (tolinspewtree2.tcl).
Se revisan los binds del editor de PRJs (tolprj.tcl) y se hace uso de la nueva opción de wtree: -selectcommand.
Se añade el método focus y dos opciones de configuración (selectcommand y bindtags) al wtree (wtree.tcl).

Se revisa listboxplus:

+ Se añaden algunas opciones auxiliares (para evitar errores)
+ Se suspenden las barras para que no salgan duplicadas (wtree ya las tiene)
+ Se redirigen los mecanismos de ordenación a los de wtree (véase _SortByColumn, por ejemplo).

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

File:
1 edited

Legend:

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

    rffeacdc r6dc91d2  
    408408  set tv [::wtree $f.sw.t -table 0 -filter no \
    409409    -background white -showroot 1 -selectmode single -showheader 0 \
     410    -selectcommand "::TolProject::SelectProc $this" \
    410411    -highlightbackground gray75 -highlightcolor black \
    411412    -highlightthickness 0 -font $toltk_options(fonts,Label) \
    … …  
    425426  $tv column configure "range 1 end" -visible no
    426427  $tv column configure first -expand yes -weight 1
    427   $tv column configure all -itembackground ""       
    428   $tv notify bind $tv <Selection> "::TolProject::SelectProc $this"       
     428  $tv column configure all -itembackground ""
    429429 
    430430  $f.sw setwidget $f.sw.t
    … …  
    441441  grid columnconfigure $f 0 -weight 1
    442442
    443 
    444   bind $tv.frameTree.t <Control-KeyRelease> [list ::TolProject::OnControlKey $this %K %k]
    445 
    446   bind $tv.frameTree.t <Button-1> "::focus $tv" 
    447  
    448   bind $tv.frameTree.t <Button-3> +[list ::TolProject::PostVariable $this %X %Y]
    449  
    450   set prevBind [bind $tv.frameTree.t <Double-1>]
    451   set newBind "[lrange $prevBind 0 [expr [llength $prevBind]-3]] ; mdidoc disableglobalraise ; ::TolProject::OpenNodeIfTerminal $this ; break"
    452   #@ mdidoc disableglobalraise y break parece que cumplen el mismo cometido
    453   bind $tv.frameTree.t <Double-1> $newBind
    454  
    455   set prevBind [bind $tv.frameTree.t <KeyPress-Return>]
    456   set newBind "[lrange $prevBind 0 [expr [llength $prevBind]-3]] ; ::TolProject::OpenNodeIfTerminal $this ; break"
    457   bind $tv.frameTree.t <KeyPress-Return> $newBind   
    458 
    459   bind $tv.frameTree.t <KeyPress-space>  +[list ::TolProject::NodeActiveAttributes $this]
    460   bind $tv.frameTree.t <KeyPress-Delete> +[list ::TolProject::DeleteActiveNode     $this]
    461   bind $tv.frameTree.t <KeyPress-F9>     "::TolProject::CompileActiveNode    $this ; break"
    462   bind $tv.frameTree.t <KeyPress-F8>     "::TolProject::DecompileActiveNode  $this ; break" 
     443  bind $tv <Control-KeyRelease> [list ::TolProject::OnControlKey $this %K %k]
     444  bind $tv <Button-1> "::focus $tv"
     445  bind $tv <Button-3> +[list ::TolProject::PostVariable $this %X %Y]
     446
     447  bind $tv <Double-1> "mdidoc disableglobalraise ; ::TolProject::OpenNodeIfTerminal $this"
     448  bind $tv <KeyPress-Return> "::TolProject::OpenNodeIfTerminal $this"
     449
     450  bind $tv <KeyPress-space>  +[list ::TolProject::NodeActiveAttributes $this]
     451  bind $tv <KeyPress-Delete> +[list ::TolProject::DeleteActiveNode     $this]
     452  bind $tv <KeyPress-F9>     "::TolProject::CompileActiveNode    $this ; break"
     453  bind $tv <KeyPress-F8>     "::TolProject::DecompileActiveNode  $this ; break" 
    463454 
    464455  set data(mainMenu) [menu $tv.m -tearoff 0]
Note: See TracChangeset for help on using the changeset viewer.