Address Book UI with RDF hook up

This commit is contained in:
chuang%netscape.com 1999-05-17 23:51:43 +00:00
Родитель 2c925d66df
Коммит 5541a90175
8 изменённых файлов: 26 добавлений и 167 удалений

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

@ -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");

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

@ -1,44 +0,0 @@
window {
display: block;
background-color:white;
}
tree {
display: table;
background-color: white;
border: none;
border-spacing: 0px;
//border-collapse: collapse;
width: 100%
}
treeitem {
display: table-row;
}
treehead {
display: table-header-group;
}
treebody {
display: table-row-group;
}
treecell {
display: table-cell;
color: black;
font-family: Verdana;
font-size: 10pt;
}
treecell[selectedcell] {
background-color: blue;
}
treehead treeitem treecell {
font-size: 8pt;
background-color: #a0a0a0;
border: thin black solid;
color: black;
}

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

@ -1,28 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://addressbook/skin/dirPane.css" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY directoryColumn.label "Directory">
]>
<window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<tree>
<treehead>
<treeitem>
<treecell>&directoryColumn.label;</treecell>
</treeitem>
</treehead>
<treebody rdf:containment="http://home.netscape.com/NC-rdf#child">
<treeitem id="directory">
<treecell><treeindentation/>Personal Address Book</treecell>
</treeitem>
</treebody>
</tree>
</window>

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

@ -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

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

@ -1,48 +0,0 @@
window {
display: block;
background-color: white;
}
tree {
display: table;
background-color: white;
border: none;
border-spacing: 0px;
//border-collapse: collapse;
width: 100%;
}
treeitem {
display: table-row;
}
treehead {
display: table-header-group;
}
treebody {
display: table-row-group;
}
treecell {
display: table-cell;
color: black;
font-family: Verdana;
font-size: 10pt;
}
treecell[selectedcell] {
background-color: blue;
}
treeitem[Status="new"] {
font-weight: bold;
}
treehead treeitem treecell {
font-size: 8pt;
background-color: #a0a0a0;
border: thin black solid;
color: black;
}

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

@ -1,45 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://addressbook/skin/resultPane.css" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY nameColumn.label "Name">
<!ENTITY emailColumn.label "Email">
<!ENTITY phoneColumn.label "Phone Number">
<!ENTITY orgColumn.label "Organization">
<!ENTITY nicknameColumn.label "Nickname">
<!ENTITY cityColumn.label "City">
]>
<window
xmlns:rdf="http://www.w3.org/TR/WD-rdf-syntax#"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<tree>
<treehead>
<treeitem>
<treecell>&nameColumn.label;</treecell>
<treecell>&emailColumn.label;</treecell>
<treecell>&phoneColumn.label;</treecell>
<treecell>&orgColumn.label;</treecell>
<treecell>&nicknameColumn.label;</treecell>
<treecell>&cityColumn.label;</treecell>
</treeitem>
</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>
</treeitem>
</treebody>
</tree>
</window>