mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
more changes
This commit is contained in:
parent
37479f1a1d
commit
7c1af58b0a
@ -70,14 +70,10 @@ treeitem[selected="true"][container="true"][open="true"] > treerow > .treecell-p
|
||||
list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open-sel.gif");
|
||||
}
|
||||
|
||||
box#header {
|
||||
#header {
|
||||
list-style-image: url("chrome://communicator/skin/sidebar/sidebar-icon.gif");
|
||||
}
|
||||
|
||||
box#header > toolbar > .circle {
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
box#reorder {
|
||||
text-align: center;
|
||||
}
|
||||
|
@ -95,3 +95,4 @@ winclassic.gif
|
||||
wink.gif
|
||||
winwide.gif
|
||||
wizard.css
|
||||
importDialog.css
|
||||
|
@ -128,6 +128,7 @@ EXPORT_RESOURCE_SAMPLES = \
|
||||
wink.gif \
|
||||
winwide.gif \
|
||||
wizard.css \
|
||||
importDialog.css \
|
||||
$(NULL)
|
||||
|
||||
DIRS = addressbook messengercompose
|
||||
|
24
themes/modern/messenger/importDialog.css
Normal file
24
themes/modern/messenger/importDialog.css
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code, released
|
||||
* March 31, 1998.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -26,11 +26,9 @@
|
||||
var targets = this.targets;
|
||||
if (targets) {
|
||||
for (var i=0; i< targets.length; i++) {
|
||||
dump("searchScopeSet: targets[" + i + "] = " + targets[i] + "\n")
|
||||
targets[i].searchScope = val;
|
||||
}
|
||||
}
|
||||
dump("done\n");
|
||||
]]>
|
||||
</setter>
|
||||
<getter>
|
||||
@ -67,16 +65,25 @@
|
||||
for (var i=0; i<targetIds.length;i++) {
|
||||
var target = document.getElementById(targetIds[i]);
|
||||
if (target) targets[j++] = target;
|
||||
if (!target) dump("Bad target " + i + ": " + targetIds[i] + "\n");
|
||||
}
|
||||
return targets;
|
||||
]]>
|
||||
</getter>
|
||||
</property>
|
||||
|
||||
<!-- value forwards to the internal menulist's "data" attribute -->
|
||||
<property name="value" onget="return this.anonymousContent[0].selectedItem.data">
|
||||
<setter>
|
||||
<![CDATA[
|
||||
var menulist = this.anonymousContent[0];
|
||||
var dataItems = menulist.getElementsByAttribute("data", val);
|
||||
menulist.selectedItem = dataItems[0];
|
||||
]]>
|
||||
</setter>
|
||||
</property>
|
||||
<method name="refreshList">
|
||||
<body>
|
||||
<![CDATA[
|
||||
dump("refreshing <" + this.tagName + ">\n");
|
||||
var menuItemIds = this.valueIds;
|
||||
var menuItemStrings = this.valueStrings;
|
||||
|
||||
@ -113,15 +120,12 @@
|
||||
<argument name="event"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
dump("onSelect!\n");
|
||||
var menulist = this.anonymousContent[0];
|
||||
|
||||
// notify targets
|
||||
var targets = this.targets;
|
||||
if (targets) {
|
||||
dump("There are " + targets.length + " targets\n");
|
||||
for (var i=0; i< targets.length; i++) {
|
||||
dump("onSelect: targets[" + i + "] = " + targets[i] + "\n");
|
||||
targets[i].parentValue = menulist.data;
|
||||
}
|
||||
}
|
||||
@ -221,7 +225,7 @@
|
||||
// we inherit from a deck, so just use it's index attribute
|
||||
// to hide/show widgets
|
||||
if (val == Components.interfaces.nsMsgSearchAttrib.Priority)
|
||||
this.setAttribute("index", "2");
|
||||
this.setAttribute("index", "1");
|
||||
else if (val == Components.interfaces.nsMsgSearchAttrib.MsgStatus)
|
||||
this.setAttribute("index", "2");
|
||||
else
|
||||
@ -229,6 +233,70 @@
|
||||
]]>
|
||||
</setter>
|
||||
</property>
|
||||
<property name="value">
|
||||
<setter>
|
||||
<![CDATA[
|
||||
this.internalValue = val;
|
||||
var type = val.attrib;
|
||||
if (type == Components.interfaces.nsMsgSearchAttrib.Priority)
|
||||
this.anonymousContent[1].data=val.priority;
|
||||
else if (type == Components.interfaces.nsMsgSearchAttrib.MsgStatus)
|
||||
this.anonymousContent[2].data=val.status;
|
||||
else
|
||||
this.anonymousContent[0].value = val.str;
|
||||
]]>
|
||||
</setter>
|
||||
<getter>
|
||||
<![CDATA[
|
||||
return this.internalValue;
|
||||
]]>
|
||||
</getter>
|
||||
</property>
|
||||
</interface>
|
||||
</binding>
|
||||
<binding id="searchterm">
|
||||
<interface>
|
||||
<!-- the three tags that make up a term - to use, set the
|
||||
attribute in the XUL to the ID of the term.
|
||||
-->
|
||||
<property name="searchattribute" readonly="true" onget="return document.getElementById(this.getAttribute('searchattribute'));"/>
|
||||
|
||||
<property name="searchoperator" readonly="true" onget="return document.getElementById(this.getAttribute('searchoperator'));"/>
|
||||
|
||||
<property name="searchvalue" readonly="true" onget="return document.getElementById(this.getAttribute('searchvalue'));"/>
|
||||
|
||||
<!-- takes an nsIMsgSearchValue and initializes the appropriate widget
|
||||
with the right value
|
||||
-->
|
||||
<!-- right now only handles filters - need to abstract termlist -->
|
||||
<method name="initialize">
|
||||
<argument name="filter"/>
|
||||
<argument name="termIndex"/>
|
||||
<body>
|
||||
<![CDATA[
|
||||
var attrib = new Object;
|
||||
var op = new Object;
|
||||
var value = new Object;
|
||||
var booland = new Object;
|
||||
var header = new Object;
|
||||
filter.GetTerm(termIndex, attrib, op, value, booland, header);
|
||||
|
||||
var searchAttribute=this.searchattribute;
|
||||
var searchOperator=this.searchoperator;
|
||||
var searchValue=this.searchvalue;
|
||||
|
||||
dump("searchAttribute=" + searchAttribute + "\n");
|
||||
dump("searchOperator=" + searchOperator + "\n");
|
||||
dump("searchValue=" + searchValue + "\n");
|
||||
|
||||
dump("Setting " + attrib.value + ", " +
|
||||
op.value + ", " + value.value + "\n");
|
||||
if (searchAttribute) searchAttribute.value = attrib.value;
|
||||
if (searchOperator) searchOperator.value = op.value;
|
||||
if (searchValue) searchValue.value = value.value;
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
</interface>
|
||||
</binding>
|
||||
</bindings>
|
||||
|
@ -128,3 +128,4 @@ install::
|
||||
$(MAKE_INSTALL) wink.gif $(DIST)\bin\chrome\$(THEME)\messenger\skin
|
||||
$(MAKE_INSTALL) winwide.gif $(DIST)\bin\chrome\$(THEME)\messenger\skin
|
||||
$(MAKE_INSTALL) wizard.css $(DIST)\bin\chrome\$(THEME)\messenger\skin
|
||||
$(MAKE_INSTALL) importDialog.css $(DIST)\bin\chrome\$(THEME)\messenger\skin
|
||||
|
@ -313,3 +313,7 @@ searchoperator {
|
||||
searchvalue {
|
||||
behavior: url(chrome://messenger/skin/mailWidgets.xml#searchvalue);
|
||||
}
|
||||
|
||||
searchterm {
|
||||
behavior: url(chrome://messenger/skin/mailWidgets.xml#searchterm);
|
||||
}
|
@ -67,7 +67,7 @@ window[chromehidden~="extrachrome"] .chromeclass-extrachrome {
|
||||
list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
|
||||
}
|
||||
|
||||
#sessionhist-popup
|
||||
#ubhist-keyword-popup
|
||||
{
|
||||
margin : 0px 4px 0px 0px;
|
||||
width : 10px;
|
||||
|
Loading…
Reference in New Issue
Block a user