зеркало из https://github.com/mozilla/gecko-dev.git
Address Book UI with RDF hook up
This commit is contained in:
Родитель
f23666f3ec
Коммит
9f5069da25
|
@ -29,4 +29,7 @@ newcard.gif
|
|||
newlist.gif
|
||||
property.gif
|
||||
abnewmsg.gif
|
||||
person.gif
|
||||
list.gif
|
||||
myaddrbk.gif
|
||||
editcard.xul
|
||||
|
|
|
@ -41,6 +41,9 @@ EXPORT_RESOURCE_SAMPLES = \
|
|||
$(srcdir)/newlist.gif \
|
||||
$(srcdir)/property.gif \
|
||||
$(srcdir)/abnewmsg.gif \
|
||||
$(srcdir)/person.gif \
|
||||
$(srcdir)/list.gif \
|
||||
$(srcdir)/myaddrbk.gif \
|
||||
$(srcdir)/editcard.xul \
|
||||
$(srcdir)/addressbook.js \
|
||||
$(NULL)
|
||||
|
|
|
@ -1,3 +1,16 @@
|
|||
function ChangeDirectoryByDOMNode(dirNode)
|
||||
{
|
||||
var uri = dirNode.getAttribute('id');
|
||||
dump(uri + "\n");
|
||||
ChangeDirectoryByURI(uri);
|
||||
}
|
||||
|
||||
function ChangeDirectoryByURI(uri)
|
||||
{
|
||||
var tree = frames[0].frames[1].document.getElementById('resultTree');
|
||||
tree.childNodes[7].setAttribute('id', uri);
|
||||
}
|
||||
|
||||
function EditCard()
|
||||
{
|
||||
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
|
||||
|
|
|
@ -42,3 +42,10 @@ treehead treeitem treecell {
|
|||
color: black;
|
||||
}
|
||||
|
||||
treeitem > treecell > titledbutton {
|
||||
vertical-align: bottom;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
list-style-image: url("chrome://addressbook/skin/myaddrbk.gif");
|
||||
}
|
||||
|
||||
|
|
|
@ -8,11 +8,12 @@
|
|||
|
||||
<window
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
|
||||
<tree>
|
||||
<tree rdf:datasources="rdf:addressdirectory" id="dirTree" onclick="return parent.parent.ChangeDirectoryByDOMNode(event.target.parentNode)">
|
||||
<treecol rdf:resource="http://home.netscape.com/NC-rdf#DirName"/>
|
||||
<treehead>
|
||||
<treeitem>
|
||||
<treecell>&directoryColumn.label;</treecell>
|
||||
|
@ -20,8 +21,8 @@
|
|||
</treehead>
|
||||
|
||||
<treebody rdf:containment="http://home.netscape.com/NC-rdf#child">
|
||||
<treeitem id="directory">
|
||||
<treecell><treeindentation/>Personal Address Book</treecell>
|
||||
<treeitem id="abdirectory:/" open="true">
|
||||
<treecell/>
|
||||
</treeitem>
|
||||
</treebody>
|
||||
</tree>
|
||||
|
|
|
@ -36,8 +36,11 @@ install::
|
|||
$(MAKE_INSTALL) newlist.gif $(DIST)\bin\res\mailnews\addrbook
|
||||
$(MAKE_INSTALL) property.gif $(DIST)\bin\res\mailnews\addrbook
|
||||
$(MAKE_INSTALL) abnewmsg.gif $(DIST)\bin\res\mailnews\addrbook
|
||||
$(MAKE_INSTALL) person.gif $(DIST)\bin\res\mailnews\addrbook
|
||||
$(MAKE_INSTALL) list.gif $(DIST)\bin\res\mailnews\addrbook
|
||||
$(MAKE_INSTALL) myaddrbk.gif $(DIST)\bin\res\mailnews\addrbook
|
||||
$(MAKE_INSTALL) editcard.xul $(DIST)\bin\res\mailnews\addrbook
|
||||
$(MAKE_INSTALL) addressbook.js $(DIST)\bin\res\mailnews\addrbook
|
||||
$(MAKE_INSTALL) addressbook.js $(DIST)\bin\res\mailnews\addrbook
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\res\mailnews\addrbook\addrshell.xul
|
||||
|
@ -52,6 +55,8 @@ clobber::
|
|||
rm -f $(DIST)\res\mailnews\addrbook\newlist.gif
|
||||
rm -f $(DIST)\res\mailnews\addrbook\property.gif
|
||||
rm -f $(DIST)\res\mailnews\addrbook\abnewmsg.gif
|
||||
rm -f $(DIST)\res\mailnews\addrbook\person.gif
|
||||
rm -f $(DIST)\res\mailnews\addrbook\list.gif
|
||||
rm -f $(DIST)\res\mailnews\addrbook\myaddrbk.gif
|
||||
rm -f $(DIST)\res\mailnews\addrbook\editcard.xul
|
||||
rm -f $(DIST)\res\mailnews\addrbook\addressbook.js
|
||||
|
||||
|
|
|
@ -46,3 +46,10 @@ treehead treeitem treecell {
|
|||
color: black;
|
||||
}
|
||||
|
||||
treeitem > treecell > titledbutton {
|
||||
vertical-align: bottom;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
list-style-image: url("chrome://addressbook/skin/person.gif");
|
||||
}
|
||||
|
||||
|
|
|
@ -12,12 +12,18 @@
|
|||
]>
|
||||
|
||||
<window
|
||||
xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
|
||||
<tree>
|
||||
<tree rdf:datasources="rdf:addressdirectory rdf:addresscard" id="resultTree">
|
||||
<treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#PersonName"/>
|
||||
<treecol id="EmailColumn" rdf:resource="http://home.netscape.com/NC-rdf#Email"/>
|
||||
<treecol id="WorkPhoneColumn" rdf:resource="http://home.netscape.com/NC-rdf#WorkPhone"/>
|
||||
<treecol id="OrganizationColumn" rdf:resource="http://home.netscape.com/NC-rdf#Organization"/>
|
||||
<treecol id="NicknameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Nickname"/>
|
||||
<treecol id="CityColumn" rdf:resource="http://home.netscape.com/NC-rdf#City"/>
|
||||
<treehead>
|
||||
<treeitem>
|
||||
<treecell>&nameColumn.label;</treecell>
|
||||
|
@ -30,14 +36,14 @@
|
|||
</treehead>
|
||||
|
||||
|
||||
<treebody id="person" name="personlist">
|
||||
<treeitem open="true">
|
||||
<treecell>Candice huang</treecell>
|
||||
<treecell>chuang@netscape.com</treecell>
|
||||
<treecell>2674</treecell>
|
||||
<treecell>Mail</treecell>
|
||||
<treecell>candice</treecell>
|
||||
<treecell>Mountain View</treecell>
|
||||
<treebody id="" name="cardTreeBody">
|
||||
<treeitem open="false">
|
||||
<treecell/>
|
||||
<treecell/>
|
||||
<treecell/>
|
||||
<treecell/>
|
||||
<treecell/>
|
||||
<treecell/>
|
||||
</treeitem>
|
||||
</treebody>
|
||||
</tree>
|
||||
|
|
Загрузка…
Ссылка в новой задаче