зеркало из https://github.com/mozilla/pjs.git
Added card view pane to address book window and added selectaddress.xul
This commit is contained in:
Родитель
67d20c6543
Коммит
c5980e88c5
|
@ -23,3 +23,6 @@ resultPane.xul
|
|||
cardviewPane.xul
|
||||
addresspanes.html
|
||||
editcard.xul
|
||||
selectaddress.xul
|
||||
selectaddress.html
|
||||
addressbucket.xul
|
||||
|
|
|
@ -36,6 +36,9 @@ EXPORT_RESOURCE_SAMPLES = \
|
|||
$(srcdir)/addresspanes.html \
|
||||
$(srcdir)/editcard.xul \
|
||||
$(srcdir)/addressbook.js \
|
||||
$(srcdir)/selectaddress.xul \
|
||||
$(srcdir)/selectaddress.html \
|
||||
$(srcdir)/addressbucket.xul \
|
||||
$(NULL)
|
||||
|
||||
EXPORT_RESOURCE_SAMPLES_TO_REMOVE := $(addprefix $(SAMPLES_DIR)/, $(EXPORT_RESOURCE_SAMPLES))
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<window xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
title="&addressbookWindow.title;"
|
||||
style="width:100%;height:100%">
|
||||
style="width:100%;height:100%">
|
||||
|
||||
<html:script src="chrome://messenger/content/widgetglue.js"/>
|
||||
<html:script src="chrome://messenger/content/commandglue.js"/>
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
<HTML>
|
||||
|
||||
<FRAMESET COLS="30%,70%">
|
||||
|
||||
<FRAME NAME=directory SRC="chrome://addressbook/content/dirPane.xul">
|
||||
<FRAMESET ROWS="50%,50%">
|
||||
|
||||
<FRAME NAME=person SRC="chrome://addressbook/content/resultPane.xul">
|
||||
<FRAME NAME=property SRC="chrome://addressbook/content/cardviewPane.xul">
|
||||
|
||||
</FRAMESET>
|
||||
|
||||
</FRAMESET>
|
||||
|
||||
</HTML>
|
|
@ -1,11 +1,74 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://addressbook/skin/" type="text/css"?>
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<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">
|
||||
<window style="background-color: #dddddd"
|
||||
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">
|
||||
|
||||
<box align="horizontal" style="width:100%">
|
||||
<spring style="width:5px"/>
|
||||
<box style="border-width:0; border-bottom-width:2; border-style:solid">
|
||||
<html:div style="font-size:150%; font-weight: bold; padding-top:2px"
|
||||
id="CardTitle">*</html:div>
|
||||
</box>
|
||||
</box>
|
||||
|
||||
<box align="horizontal" style="width:100%; height:100%">
|
||||
<spring style="width:5px"/>
|
||||
|
||||
<box align="vertical" flex="50%">
|
||||
<box id="cvbName" align="vertical" class="CardView">
|
||||
<html:div class="CardViewHeading" id="cvhName">Name</html:div>
|
||||
<spring class="CardViewHeadingSpace"/>
|
||||
<html:div class="CardViewText" id="cvNickname">*</html:div>
|
||||
<html:div class="CardViewText" id="cvEmail1">*</html:div>
|
||||
<html:div class="CardViewText" id="cvEmail2">*</html:div>
|
||||
<spring class="CardViewBottomSpace"/>
|
||||
</box>
|
||||
|
||||
<box id="cvbHome" align="vertical" class="CardView">
|
||||
<html:div class="CardViewHeading">Home</html:div>
|
||||
<spring class="CardViewHeadingSpace"/>
|
||||
<html:div class="CardViewText" id="cvHomeAddress">*</html:div>
|
||||
<html:div class="CardViewText" id="cvHomeCityStZip">*</html:div>
|
||||
</box>
|
||||
|
||||
<box id="cvbOther" align="vertical" class="CardView">
|
||||
<html:div class="CardViewHeading">Other</html:div>
|
||||
<html:div class="CardViewText" id="cvNotes">*</html:div>
|
||||
</box>
|
||||
</box>
|
||||
|
||||
<spring style="width:20px"/>
|
||||
|
||||
<box align="vertical" flex="50%">
|
||||
<box id="cvbPhone" align="vertical" class="CardView">
|
||||
<html:div class="CardViewHeading">Phone</html:div>
|
||||
<spring class="CardViewHeadingSpace"/>
|
||||
<html:div class="CardViewText" id="cvPhWork">*</html:div>
|
||||
<html:div class="CardViewText" id="cvPhHome">*</html:div>
|
||||
<html:div class="CardViewText" id="cvPhFax">*</html:div>
|
||||
<html:div class="CardViewText" id="cvPhCellular">*</html:div>
|
||||
<html:div class="CardViewText" id="cvPhPager">*</html:div>
|
||||
<spring class="CardViewBottomSpace"/>
|
||||
</box>
|
||||
|
||||
<box id="cvbWork" align="vertical" class="CardView">
|
||||
<html:div class="CardViewHeading">Work</html:div>
|
||||
<spring class="CardViewHeadingSpace"/>
|
||||
<html:div class="CardViewText" id="cvJobTitle">*</html:div>
|
||||
<html:div class="CardViewText" id="cvOrganization">*</html:div>
|
||||
<html:div class="CardViewText" id="cvWorkAddress">*</html:div>
|
||||
<html:div class="CardViewText" id="cvWorkCityStZip">*</html:div>
|
||||
</box>
|
||||
</box>
|
||||
|
||||
<spring style="width:5px"/>
|
||||
</box>
|
||||
|
||||
|
||||
This is card view pane
|
||||
</window>
|
||||
|
|
|
@ -31,6 +31,9 @@ install::
|
|||
$(MAKE_INSTALL) addresspanes.html $(DIST)\bin\chrome\addressbook\content\default
|
||||
$(MAKE_INSTALL) editcard.xul $(DIST)\bin\chrome\addressbook\content\default
|
||||
$(MAKE_INSTALL) addressbook.js $(DIST)\bin\chrome\addressbook\content\default
|
||||
$(MAKE_INSTALL) selectaddress.xul $(DIST)\bin\chrome\addressbook\content\default
|
||||
$(MAKE_INSTALL) selectaddress.html $(DIST)\bin\chrome\addressbook\content\default
|
||||
$(MAKE_INSTALL) addressbucket.xul $(DIST)\bin\chrome\addressbook\content\default
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\chrome\addressbook\content\default\addressbook.xul
|
||||
|
@ -40,4 +43,10 @@ clobber::
|
|||
rm -f $(DIST)\chrome\addressbook\content\default\addresspanes.html
|
||||
rm -f $(DIST)\chrome\addressbook\content\default\editcard.xul
|
||||
rm -f $(DIST)\chrome\addressbook\content\default\addressbook.js
|
||||
rm -f $(DIST)\chrome\addressbook\content\default\selectaddress.xul
|
||||
rm -f $(DIST)\chrome\addressbook\content\default\selectaddress.html
|
||||
rm -f $(DIST)\chrome\addressbook\content\default\addressbucket.xul
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -16,8 +16,10 @@
|
|||
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<html:script src="chrome://addressbook/content/addressbook.js"/>
|
||||
|
||||
<tree rdf:datasources="rdf:addressdirectory rdf:addresscard" id="resultTree">
|
||||
|
||||
<tree rdf:datasources="rdf:addressdirectory rdf:addresscard" id="resultTree" onclick="DisplayCardViewPane(event.target.parentNode)">
|
||||
<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"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче