Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | * scripts/tablelistSort.tcl: Using "-algn top" for the embedded * scripts/tablelistUtil.tcl: message widgets displaying multiline * scripts/tablelistWidget.tcl: texts. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | ae585976133e9e48131faf315729b9fcecc7b2e8 |
User & Date: | csaba 2013-04-17 20:51:44 |
Context
2013-04-26
| ||
18:05 | [Bug 3603562]: Integrated changes made by Frank to automatically track changes in canvas scale, i.e. zooming. Bumped version to 1.2 (new feature). New example for scaling. check-in: 90a1f4a28d user: andreask tags: trunk | |
2013-04-19
| ||
20:46 | * scripts/tablelistUtil.tcl: Small correction. check-in: 9d7f3b370b user: csaba tags: trunk | |
2013-04-17
| ||
20:51 | * scripts/tablelistSort.tcl: Using "-algn top" for the embedded * scripts/tablelistUtil.tcl: message widgets displaying multiline * scripts/tablelistWidget.tcl: texts. check-in: ae58597613 user: csaba tags: trunk | |
20:50 | * scripts/tablelistSort.tcl: Using "-algn top" for the embedded * scripts/tablelistUtil.tcl: message widgets displaying multiline * scripts/tablelistWidget.tcl: texts. check-in: efbd62d7a1 user: csaba tags: trunk | |
Changes
Changes to modules/tablelist/scripts/tablelistSort.tcl.
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 |
#
# Embed the message widgets displaying multiline elements
#
foreach {col text font pixels alignment} $multilineData {
findTabs $win $line $col $col tabIdx1 tabIdx2
set msgScript [list ::tablelist::displayText $win $key \
$col $text $font $pixels $alignment]
$w window create $tabIdx2 -pady $padY -create $msgScript
}
} else {
foreach text $dispItem \
colFont $data(colFontList) \
colTags $data(colTagsList) \
{pixels alignment} $data(colList) {
|
| > |
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 |
# # Embed the message widgets displaying multiline elements # foreach {col text font pixels alignment} $multilineData { findTabs $win $line $col $col tabIdx1 tabIdx2 set msgScript [list ::tablelist::displayText $win $key \ $col $text $font $pixels $alignment] $w window create $tabIdx2 \ -align top -pady $padY -create $msgScript } } else { foreach text $dispItem \ colFont $data(colFontList) \ colTags $data(colTagsList) \ {pixels alignment} $data(colList) { |
Changes to modules/tablelist/scripts/tablelistUtil.tcl.
1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 .... 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 .... 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 .... 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 .... 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 |
# precede it otherwise. #------------------------------------------------------------------------------ proc tablelist::insertMlElem {w index msgScript aux auxType alignment} { set index [$w index $index] set padY [expr {[$w cget -spacing1] == 0}] if {$auxType == 0} { ;# no image or window $w window create $index -pady $padY -create $msgScript } elseif {[string compare $alignment "right"] == 0} { if {$auxType == 1} { ;# image set aux [lreplace $aux 4 4 e] $w window create $index -padx 1 -pady $padY -create $aux } else { ;# window if {$auxType == 2} { ;# static width place $aux.w -anchor ne -relwidth "" -relx 1.0 } else { ;# dynamic width place $aux.w -anchor ne -relwidth 1.0 -relx 1.0 } $w window create $index -padx 1 -pady $padY -window $aux } $w window create $index -pady $padY -create $msgScript } else { $w window create $index -pady $padY -create $msgScript if {$auxType == 1} { ;# image set aux [lreplace $aux 4 4 w] $w window create $index -padx 1 -pady $padY -create $aux } else { ;# window if {$auxType == 2} { ;# static width place $aux.w -anchor nw -relwidth "" -relx 0.0 } else { ;# dynamic width ................................................................................ if {$auxWidth == 0} { ;# no image or window set areEqual [$w compare $index1 == $index2] $w delete $index1+1c $index2 set padY [expr {[$w cget -spacing1] == 0}] if {[catch {$w window cget $index1 -create} script] == 0 && [string match "::tablelist::displayText*" $script]} { $w window configure $index1 -pady $padY -create $msgScript set path [lindex [$w dump -window $index1] 1] if {[string compare $path ""] != 0 && [string compare [winfo class $path] "Message"] == 0} { eval $msgScript } } else { if {!$areEqual} { $w delete $index1 } $w window create $index1 -pady $padY -create $msgScript } } else { # # Check whether the image label or the frame containing a # window is mapped at the first or last position of the cell # $w mark set index2Mark $index2 ................................................................................ } set index $index1+1c } set padY [expr {[$w cget -spacing1] == 0}] if {[catch {$w window cget $index -create} script] == 0 && [string match "::tablelist::displayText*" $script]} { $w window configure $index -pady $padY -create $msgScript set path [lindex [$w dump -window $index] 1] if {[string compare $path ""] != 0 && [string compare [winfo class $path] "Message"] == 0} { eval $msgScript } } elseif {[string compare $alignment "right"] == 0} { $w window create index2Mark-1c -pady $padY -create $msgScript $w delete $index1 index2Mark-2c } else { $w window create $index1+1c -pady $padY -create $msgScript $w delete $index1+2c index2Mark } } else { # # Insert the message and aux. windows # if {$auxType == 1} { ;# image ................................................................................ # set w $data(body) set idx [$w index $line.end] if {$auxWidth == 0} { ;# no image or window if {$multiline} { $w insert $line.end "\t\t" $cellTags set padY [expr {[$w cget -spacing1] == 0}] $w window create $line.end-1c -pady $padY -create $msgScript } else { $w insert $line.end "\t$text\t" $cellTags } } else { $w insert $line.end "\t\t" $cellTags if {$auxType == 1} { ;# image # ................................................................................ # # Embed the message widgets displaying multiline elements # foreach {col text font pixels alignment} $multilineData { if {[findTabs $win $line $col $col tabIdx1 tabIdx2]} { set msgScript [list ::tablelist::displayText $win $key \ $col $text $font $pixels $alignment] $w window create $tabIdx2 -pady $padY -create $msgScript } } } else { foreach fmtCmdFlag $data(fmtCmdFlagList) \ colFont $data(colFontList) \ colTags $data(colTagsList) \ |
| | | | > | | > | > | > | > | > |
1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 .... 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 .... 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 .... 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 .... 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 |
# precede it otherwise. #------------------------------------------------------------------------------ proc tablelist::insertMlElem {w index msgScript aux auxType alignment} { set index [$w index $index] set padY [expr {[$w cget -spacing1] == 0}] if {$auxType == 0} { ;# no image or window $w window create $index -align top -pady $padY -create $msgScript } elseif {[string compare $alignment "right"] == 0} { if {$auxType == 1} { ;# image set aux [lreplace $aux 4 4 e] $w window create $index -padx 1 -pady $padY -create $aux } else { ;# window if {$auxType == 2} { ;# static width place $aux.w -anchor ne -relwidth "" -relx 1.0 } else { ;# dynamic width place $aux.w -anchor ne -relwidth 1.0 -relx 1.0 } $w window create $index -padx 1 -pady $padY -window $aux } $w window create $index -align top -pady $padY -create $msgScript } else { $w window create $index -align top -pady $padY -create $msgScript if {$auxType == 1} { ;# image set aux [lreplace $aux 4 4 w] $w window create $index -padx 1 -pady $padY -create $aux } else { ;# window if {$auxType == 2} { ;# static width place $aux.w -anchor nw -relwidth "" -relx 0.0 } else { ;# dynamic width ................................................................................ if {$auxWidth == 0} { ;# no image or window set areEqual [$w compare $index1 == $index2] $w delete $index1+1c $index2 set padY [expr {[$w cget -spacing1] == 0}] if {[catch {$w window cget $index1 -create} script] == 0 && [string match "::tablelist::displayText*" $script]} { $w window configure $index1 \ -align top -pady $padY -create $msgScript set path [lindex [$w dump -window $index1] 1] if {[string compare $path ""] != 0 && [string compare [winfo class $path] "Message"] == 0} { eval $msgScript } } else { if {!$areEqual} { $w delete $index1 } $w window create $index1 -align top -pady $padY -create $msgScript } } else { # # Check whether the image label or the frame containing a # window is mapped at the first or last position of the cell # $w mark set index2Mark $index2 ................................................................................ } set index $index1+1c } set padY [expr {[$w cget -spacing1] == 0}] if {[catch {$w window cget $index -create} script] == 0 && [string match "::tablelist::displayText*" $script]} { $w window configure $index \ -align top -pady $padY -create $msgScript set path [lindex [$w dump -window $index] 1] if {[string compare $path ""] != 0 && [string compare [winfo class $path] "Message"] == 0} { eval $msgScript } } elseif {[string compare $alignment "right"] == 0} { $w window create index2Mark-1c \ -align top -pady $padY -create $msgScript $w delete $index1 index2Mark-2c } else { $w window create $index1+1c \ -align top -pady $padY -create $msgScript $w delete $index1+2c index2Mark } } else { # # Insert the message and aux. windows # if {$auxType == 1} { ;# image ................................................................................ # set w $data(body) set idx [$w index $line.end] if {$auxWidth == 0} { ;# no image or window if {$multiline} { $w insert $line.end "\t\t" $cellTags set padY [expr {[$w cget -spacing1] == 0}] $w window create $line.end-1c \ -align top -pady $padY -create $msgScript } else { $w insert $line.end "\t$text\t" $cellTags } } else { $w insert $line.end "\t\t" $cellTags if {$auxType == 1} { ;# image # ................................................................................ # # Embed the message widgets displaying multiline elements # foreach {col text font pixels alignment} $multilineData { if {[findTabs $win $line $col $col tabIdx1 tabIdx2]} { set msgScript [list ::tablelist::displayText $win $key \ $col $text $font $pixels $alignment] $w window create $tabIdx2 \ -align top -pady $padY -create $msgScript } } } else { foreach fmtCmdFlag $data(fmtCmdFlagList) \ colFont $data(colFontList) \ colTags $data(colTagsList) \ |
Changes to modules/tablelist/scripts/tablelistWidget.tcl.
5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 |
# # Embed the message widgets displaying multiline elements # foreach {col text font pixels alignment} $multilineData { findTabs $win $line $col $col tabIdx1 tabIdx2 set msgScript [list ::tablelist::displayText $win $key \ $col $text $font $pixels $alignment] $w window create $tabIdx2 -pady $padY -create $msgScript } } unset data(rowsToDisplay) # # Adjust the heights of the body text widget # and of the listbox child, if necessary |
| |
5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 |
#
# Embed the message widgets displaying multiline elements
#
foreach {col text font pixels alignment} $multilineData {
findTabs $win $line $col $col tabIdx1 tabIdx2
set msgScript [list ::tablelist::displayText $win $key \
$col $text $font $pixels $alignment]
$w window create $tabIdx2 -align top -pady $padY -create $msgScript
}
}
unset data(rowsToDisplay)
#
# Adjust the heights of the body text widget
# and of the listbox child, if necessary
|