Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Removed Name columns from dir diff. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | table-list |
Files: | files | file ages | folders |
SHA1: |
0f4c63dfb29becd2201272728de016e1 |
User & Date: | peter.spjuth@gmail.com 2010-06-23 21:28:39.000 |
Context
2010-06-23
| ||
22:34 | Make sure Restart is only scheduled once. check-in: 07f2a54ef5 user: peter.spjuth@gmail.com tags: table-list | |
21:28 | Removed Name columns from dir diff. check-in: 0f4c63dfb2 user: peter.spjuth@gmail.com tags: table-list | |
21:23 | Remade hidden columns into row attributes. check-in: 79b9aabf5f user: peter.spjuth@gmail.com tags: table-list | |
Changes
Changes to src/dirdiff.tcl.
︙ | ︙ | |||
258 259 260 261 262 263 264 | variable leftDir "" variable rightDir "" constructor {args} { variable color install tree using tablelist::tablelist $win.tree -height 20 \ -movablecolumns no -setgrid no -showseparators yes \ | | | | | | < < | 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | variable leftDir "" variable rightDir "" constructor {args} { variable color install tree using tablelist::tablelist $win.tree -height 20 \ -movablecolumns no -setgrid no -showseparators yes \ -columns {0 "Structure" 0 Size 0 Date 0 Size 0 Date} install vsb using scrollbar $win.vsb -orient vertical \ -command "$tree yview" install hsb using scrollbar $win.hsb -orient horizontal \ -command "$tree xview" set AfterId "" set IdleQueue {} $tree configure -yscrollcommand "$vsb set" -xscrollcommand "$hsb set" $tree columnconfigure 0 -name structure $tree columnconfigure 1 -name leftsize -align right $tree columnconfigure 2 -name leftdate $tree columnconfigure 3 -name rightsize -align right $tree columnconfigure 4 -name rightdate set color(unknown) grey set color(empty) grey set color(equal) {} set color(new) green set color(old) blue set color(change) red |
︙ | ︙ | |||
361 362 363 364 365 366 367 | $tree cellconfigure $topIndex,structure -text $d1 } else { $tree cellconfigure $topIndex,structure -text "$d1 vs $d2" } $tree rowattrib $topIndex type directory $self SetNodeStatus $topIndex empty $tree rowattrib $topIndex leftfull $leftDir | < < | 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 | $tree cellconfigure $topIndex,structure -text $d1 } else { $tree cellconfigure $topIndex,structure -text "$d1 vs $d2" } $tree rowattrib $topIndex type directory $self SetNodeStatus $topIndex empty $tree rowattrib $topIndex leftfull $leftDir $tree rowattrib $topIndex rightfull $rightDir $self UpdateDirNode $topIndex } # Format a time stamp for display proc FormatDate {date} { clock format $date -format "%Y-%m-%d %H:%M:%S" |
︙ | ︙ | |||
659 660 661 662 663 664 665 | } new - old - change { set pstatus change break } } } | < | 655 656 657 658 659 660 661 662 663 664 665 666 667 668 | } new - old - change { set pstatus change break } } } $self SetNodeStatus $parent $pstatus } method UpdateDirNode {node} { if {[$tree rowattrib $node type] ne "directory"} { return } |
︙ | ︙ | |||
687 688 689 690 691 692 693 | set rightfull [$tree rowattrib $node rightfull] set equal [CompareFiles $leftfull $rightfull] if {$equal} { $self SetNodeStatus $node equal } else { $self SetNodeStatus $node change } | < < < < < < < < | 682 683 684 685 686 687 688 689 690 691 692 693 694 695 | set rightfull [$tree rowattrib $node rightfull] set equal [CompareFiles $leftfull $rightfull] if {$equal} { $self SetNodeStatus $node equal } else { $self SetNodeStatus $node change } } # List files under a directory node # Returns status for the new node method ListFiles {df1 df2 node} { if {$df1 ne ""} { set type [file type $df1] |
︙ | ︙ | |||
722 723 724 725 726 727 728 | set size2 "" set time2 "" } else { set size2 $stat2(size) set time2 [FormatDate $stat2(mtime)] } if {$type eq "directory"} { | < < < < < < < < < | | < < | | | 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 | set size2 "" set time2 "" } else { set size2 $stat2(size) set time2 [FormatDate $stat2(mtime)] } if {$type eq "directory"} { set values [list $name \ "" "" \ "" ""] } else { set values [list $name \ $size1 $time1 \ $size2 $time2] } set id [$tree insertchild $node end $values] $tree rowattrib $id type $type $tree rowattrib $id status unknown $tree rowattrib $id leftfull $df1 $tree rowattrib $id rightfull $df2 |
︙ | ︙ |