Changeset 97db5a0 in tol for tolbase/lib/toltk/tolinspe__main.tcl
- Timestamp:
- Nov 30, 2016, 8:07:19 AM (10 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 5c511c0
- Parents:
- 6f7a669
- File:
-
- 1 edited
-
tolbase/lib/toltk/tolinspe__main.tcl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/tolinspe__main.tcl
r6f7a669 r97db5a0 304 304 #///////////////////////////////////////////////////////////////////////////// 305 305 global toltk_options 306 global show_filters 306 307 variable w_tabset 307 308 variable wt_vars … … 323 324 324 325 # Creation of the right TREE RIGHT with VARIABLES 325 set wt_vars [::wtree $sw21.vars -table 1 -filter no\326 set wt_vars [::wtree $sw21.vars -table 1 -filter $show_filters \ 326 327 -background white -showroot 0 -selectmode extended -showheader 1 \ 327 328 -highlightbackground gray75 -highlightcolor black \ 328 329 -highlightthickness 0 -font $toltk_options(fonts,Label) \ 329 330 -columns [list \ 330 [list text -label Index-tags Index] \331 [list text -label Grammar-tags Grammar] \332 [list {image text} -label Name-tags Name] \333 [list text -label Content-tags Content] \334 [list text -label Description-tags Description] \335 [list text -label Path-tags Path] \336 [list text -label Reference-tags Reference] \331 [list text -label [mc Index] -tags Index] \ 332 [list text -label [mc Grammar] -tags Grammar] \ 333 [list {image text} -label [mc Name] -tags Name] \ 334 [list text -label [mc Content] -tags Content] \ 335 [list text -label [mc Description] -tags Description] \ 336 [list text -label [mc Path] -tags Path] \ 337 [list text -label [mc Reference] -tags Reference] \ 337 338 ]] 339 #@ filtro: 0(Index) 0(no) 2(Name) 1(yes) 340 $wt_vars configure -columnfilter [list 0 0 2 1] 338 341 # configuration of the tree of variables 339 342 $wt_vars column configure Grammar -visible no … … 346 349 347 350 # Creation of the right TREE RIGHT with FUNCTIONS 348 set wt_funcs [::wtree $sw22.vars -table 1 -filter no\351 set wt_funcs [::wtree $sw22.vars -table 1 -filter $show_filters \ 349 352 -background white -showroot 0 -selectmode extended -showheader 1 \ 350 353 -highlightbackground gray75 -highlightcolor black \ 351 354 -highlightthickness 0 -font $toltk_options(fonts,Label) \ 352 355 -columns [list \ 353 [list text -label Index-tags Index] \354 [list text -label Grammar-tags Grammar] \355 [list {image text} -label Name-tags Name] \356 [list text -label Content-tags Content] \357 [list text -label Description-tags Description] \358 [list text -label Path-tags Path] \359 [list text -label Reference-tags Reference] \356 [list text -label [mc Index] -tags Index] \ 357 [list text -label [mc Grammar] -tags Grammar] \ 358 [list {image text} -label [mc Name] -tags Name] \ 359 [list text -label [mc Content] -tags Content] \ 360 [list text -label [mc Description] -tags Description] \ 361 [list text -label [mc Path] -tags Path] \ 362 [list text -label [mc Reference] -tags Reference] \ 360 363 ]] 364 #@ filtro: 0(Index) 0(no) 2(Name) 1(yes) 365 $wt_funcs configure -columnfilter [list 0 0 2 1] 361 366 # configuration of the tree of functions 362 367 $wt_funcs column configure Grammar -visible no … … 511 516 } 512 517 return [OneLine $content] 513 set content [string trim $content]514 set lnidx [string first "\n" $content]515 if { $lnidx != -1 } {516 if { [incr lnidx -1] > 0 } {517 return "[string range $content 0 $lnidx]..."518 } else {519 return "..."520 }521 }522 set content523 518 } 524 519 }
Note: See TracChangeset
for help on using the changeset viewer.
