add folder size to folder pane, r=cavin, sr=sspitzer, 173825

This commit is contained in:
bienvenu%netscape.com 2002-11-06 00:27:13 +00:00
Родитель 2d8942f521
Коммит 582566aef2
3 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -96,6 +96,9 @@
<binding subject="?member"
predicate="http://home.netscape.com/NC-rdf#TotalMessages"
object="?totalCount" />
<binding subject="?member"
predicate="http://home.netscape.com/NC-rdf#FolderSize"
object="?folderSize" />
<binding subject="?member"
predicate="http://home.netscape.com/NC-rdf#PageTitleFakeAccount"
object="?fakeAccount" />
@ -112,6 +115,7 @@
properties="hasUnreadMessages-?hasUnreadMessages subfoldersHaveUnreadMessages-?subfoldersHaveUnreadMessages"/>
<treecell label="?totalCount"
properties="hasUnreadMessages-?hasUnreadMessages subfoldersHaveUnreadMessages-?subfoldersHaveUnreadMessages"/>
<treecell label="?folderSize"/>
</treerow>
</treeitem>
</treechildren>
@ -139,6 +143,11 @@
persist="hidden width"
flex="1"
label="&totalColumn.label;"/>
<splitter class="tree-splitter"/>
<treecol id="folderSizeCol"
persist="hidden width"
flex="1"
label="&folderSizeColumn.label;"/>
</treecols>
</tree>
</overlay>

Просмотреть файл

@ -790,6 +790,11 @@ function UpgradeFolderPaneUI()
var folderTotalCol = document.getElementById("folderTotalCol");
folderTotalCol.setAttribute("hidden", "true");
pref.setIntPref("mail.ui.folderpane.version", 2);
} // we fall through to the == 2 case so we'll upgrade v 1 profiles correctly
if (folderPaneUIVersion <= 2) {
var folderSizeCol = document.getElementById("folderSizeCol");
folderSizeCol.setAttribute("hidden", "true");
pref.setIntPref("mail.ui.folderpane.version", 3);
}
}

Просмотреть файл

@ -20,6 +20,7 @@ Rights Reserved.
<!ENTITY nameColumn.label "Name">
<!ENTITY unreadColumn.label "Unread">
<!ENTITY totalColumn.label "Total">
<!ENTITY folderSizeColumn.label "Size">
<!ENTITY accounts.label "Accounts">
<!-- LOCALIZATION NOTE (accounts.img) : DONT_TRANSLATE -->
<!ENTITY accounts.img "chrome://messenger/skin/local-mailhost.gif">