Changeset e933fd6 in tol for tolbase/lib/toltk/editor.tcl


Ignore:
Timestamp:
Nov 10, 2016, 12:56:04 PM (10 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a762e01
Parents:
0731938
Message:

Refs #1933
Se sustituyen los ::blt::tabset por NoteBook de BWidget. En total se sustituyeron 19 tabsets.
Se suspenden un par de widgets que parece que no se usan, y por tanto tampoco se les ha sustituido ::blt::tabset: bsersel, btab. bchilddetail tampoco parece usarse.
Se corrige un problem en InsertItem de tolinspe.

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

File:
1 edited

Legend:

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

    r0731938 re933fd6  
    16461646  wm protocol $dialog WM_DELETE_WINDOW [list ::Editor::OptionsDestroy $this $dialog]
    16471647  set w [$dialog getframe]
    1648   set w_tabset [::blt::tabset $w.ts -relief flat -highlightthickness 0\
    1649             -bd 0 -outerpad 0 -tier 2 -slant right -textside right ]
    1650    
     1648  set w_tabset [NoteBook $w.nb -tabbevelsize 8 -tabpady {2 6} -font {Arial 8}]
    16511649  #insertar tabset
    1652   $w_tabset insert end Headers Others
    1653   set f1 [frame $w_tabset.f1]
    1654   set f2 [frame $w_tabset.f2]
    1655    
    1656    
    1657   $w_tabset tab configure "Headers" -text [mc "Headers"] -window $f1\
    1658           -fill both -padx 0 -selectbackground \#d9d9d9 -bg gray75
    1659   $w_tabset tab configure "Others" -text [mc "Others"] -window $f2\
    1660           -fill both -padx 0 -selectbackground \#d9d9d9 -bg gray75
    1661    
     1650  set num_i 0
     1651  foreach lab_i [list Headers Others] {
     1652    $w_tabset insert $num_i $lab_i -text "  [mc $lab_i]  " -background \#d9d9d9
     1653    set tab_i [$w_tabset getframe $lab_i]
     1654    $tab_i configure -borderwidth 2 -background \#d9d9d9
     1655    incr num_i   
     1656    set f$num_i [frame $tab_i.f]
     1657    pack $tab_i.f -fill both -expand yes 
     1658  }
     1659  $w_tabset raise [$w_tabset pages 0]
     1660 
    16621661  OptionsGet $this
    16631662  OptionsCreateHeaders $this $f1
    … …  
    16831682 
    16841683  pack $w_bbox   -fill x -expand false -side bottom
     1684  $w_tabset compute_size 
    16851685  pack $w_tabset -fill both -expand true
    16861686 
Note: See TracChangeset for help on using the changeset viewer.