Bug 619996, part f: kill layout/forms/resources; r=bz
@ -1,46 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla 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/MPL/
|
||||
#
|
||||
# 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.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2001
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Brian Ryner <bryner@brianryner.com>
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -1,97 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla 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/MPL/
|
||||
-
|
||||
- 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.org code.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Netscape Communications Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s):
|
||||
- Brian Ryner <bryner@brianryner.com>
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<!DOCTYPE bindings [
|
||||
<!ENTITY % htmlFormDTD SYSTEM "chrome://forms/locale/htmlforms.dtd" >
|
||||
%htmlFormDTD;
|
||||
]>
|
||||
|
||||
<bindings id="buttonBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:xbl="http://www.mozilla.org/xbl">
|
||||
|
||||
<binding id="button" display="xul:button"
|
||||
extends="chrome://global/content/bindings/button.xml#button-base">
|
||||
<content>
|
||||
<xul:hbox class="box-inherit button-box" align="center" pack="center" flex="1">
|
||||
<xul:description class="button-box-text" flex="1">
|
||||
<children/>
|
||||
</xul:description>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="inputButton" extends="chrome://global/content/bindings/general.xml#basetext"
|
||||
display="xul:button">
|
||||
<content>
|
||||
<xul:hbox class="box-inherit button-box" align="center" pack="center" flex="1">
|
||||
<xul:description class="button-box-text" xbl:inherits="value" value=" "/>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="submitButton" extends="chrome://global/content/bindings/general.xml#basetext"
|
||||
display="xul:button">
|
||||
<content>
|
||||
<xul:hbox class="box-inherit button-box" align="center" pack="center" flex="1">
|
||||
<xul:description class="button-box-text" xbl:inherits="value" value="&submitForm;"/>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="fileButton" extends="chrome://global/content/bindings/general.xml#basetext"
|
||||
display="xul:button">
|
||||
<content>
|
||||
<xul:hbox class="box-inherit button-box" align="center" pack="center" flex="1">
|
||||
<xul:description class="button-box-text" value="&fileBrowse;"/>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="resetButton" extends="chrome://global/content/bindings/general.xml#basetext"
|
||||
display="xul:button">
|
||||
<content>
|
||||
<xul:hbox class="box-inherit button-box" align="center" pack="center" flex="1">
|
||||
<xul:description class="button-box-text" value="&resetForm;"/>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
|
@ -1,47 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla 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/MPL/
|
||||
-
|
||||
- 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.org code.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Netscape Communications Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s):
|
||||
- Brian Ryner <bryner@brianryner.com>
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<bindings id="checkboxBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<binding id="checkbox" extends="xul:image"/>
|
||||
|
||||
</bindings>
|
||||
|
||||
|
@ -1,53 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla 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/MPL/
|
||||
-
|
||||
- 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.org code.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Netscape Communications Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s):
|
||||
- Brian Ryner <bryner@brianryner.com>
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<bindings id="radioBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<binding id="radio" extends="xul:button">
|
||||
<content>
|
||||
<xul:hbox class="input-radio-check-box2" flex="1">
|
||||
<xul:image class="input-radio-check" flex="1"/>
|
||||
</xul:hbox>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
|
||||
|
@ -1,823 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla 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/MPL/
|
||||
-
|
||||
- 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.org code.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Netscape Communications Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s):
|
||||
- Brian Ryner <bryner@brianryner.com>
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<bindings id="selectBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:xbl="http://www.mozilla.org/xbl">
|
||||
|
||||
<binding id="select-treebody">
|
||||
<implementation>
|
||||
<field name="_lastSelectedRow">
|
||||
-1
|
||||
</field>
|
||||
</implementation>
|
||||
<handlers>
|
||||
<!-- If there is no modifier key, we select on mousedown, not
|
||||
click, so that drags work correctly. -->
|
||||
<handler event="mousedown">
|
||||
<![CDATA[
|
||||
if (!event.ctrlKey && !event.shiftKey && !event.metaKey) {
|
||||
var row = {};
|
||||
var col = {};
|
||||
var obj = {};
|
||||
var select = this.parentNode.parentNode.parentNode;
|
||||
var box = select.treeBoxObject;
|
||||
var selection = box.view.selection;
|
||||
box.getCellAt(event.clientX, event.clientY, row, col, obj);
|
||||
|
||||
// save off the last selected row
|
||||
this._lastSelectedRow = row.value;
|
||||
|
||||
if (row.value != -1 && !box.view.isContainer(row.value) &&
|
||||
obj.value != "twisty" && !selection.isSelected(row.value)) {
|
||||
selection.select(row.value);
|
||||
select.selectElement.setOptionsSelectedByIndex(row.value, row.value,
|
||||
true, true, false, false);
|
||||
if ("onchange" in select)
|
||||
select.onchange();
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</handler>
|
||||
|
||||
<!-- On a click (up+down on the same item), deselect everything
|
||||
except this item. -->
|
||||
<handler event="click">
|
||||
<![CDATA[
|
||||
if (event.button != 0) return;
|
||||
var row = {};
|
||||
var col = {};
|
||||
var obj = {};
|
||||
var select = this.parentNode.parentNode.parentNode;
|
||||
var box = select.treeBoxObject;
|
||||
var selection = box.view.selection;
|
||||
box.getCellAt(event.clientX, event.clientY, row, col, obj);
|
||||
|
||||
if (row.value == -1 || select.contentView.getItemAtIndex(row.value).disabled)
|
||||
return;
|
||||
|
||||
if (obj.value == "twisty") {
|
||||
box.view.toggleOpenState(row.value);
|
||||
return;
|
||||
}
|
||||
|
||||
if (box.view.isContainer(row.value))
|
||||
return;
|
||||
|
||||
select = select.selectElement;
|
||||
var augment = event.ctrlKey || event.metaKey;
|
||||
if (event.shiftKey) {
|
||||
selection.rangedSelect(-1, row.value, augment);
|
||||
var start = selection.shiftSelectPivot;
|
||||
if (start == -1)
|
||||
start = selection.currentIndex;
|
||||
select.setOptionsSelectedByIndex(start, row.value, true, !augment, false, false);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
}
|
||||
else if (augment) {
|
||||
selection.toggleSelect(row.value);
|
||||
select.setOptionsSelectedByIndex(row.value, row.value,
|
||||
selection.isSelected(row.value), false, false, false);
|
||||
selection.currentIndex = row.value;
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
}
|
||||
else {
|
||||
/* We want to deselect all the selected items except what was
|
||||
clicked, UNLESS it was a right-click. We have to do this
|
||||
in click rather than mousedown so that you can drag a
|
||||
selected group of items */
|
||||
|
||||
// if the last row has changed in between the time we
|
||||
// mousedown and the time we click, don't fire the select handler.
|
||||
// see bug #92366
|
||||
if (this._lastSelectedRow == row.value) {
|
||||
selection.select(row.value);
|
||||
select.setOptionsSelectedByIndex(row.value, row.value,
|
||||
true, true, false, false);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</handler>
|
||||
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
<binding id="select-size" extends="xul:tree">
|
||||
<content>
|
||||
<xul:hbox>
|
||||
<xul:treecol class="select-treecol" flex="1" primary="true"/>
|
||||
</xul:hbox>
|
||||
<xul:treerows class="select-treerows tree-rows" flex="1">
|
||||
<xul:hbox flex="1" class="tree-bodybox">
|
||||
<xul:treechildren class="select-treebody" anonid="treebody">
|
||||
<children/>
|
||||
</xul:treechildren>
|
||||
</xul:hbox>
|
||||
<xul:scrollbar orient="vertical" class="select-scrollbar" disabled="true"/>
|
||||
</xul:treerows>
|
||||
</content>
|
||||
|
||||
<implementation>
|
||||
<property name="treeBoxObject"
|
||||
onget="return this.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject);"
|
||||
readonly="true"/>
|
||||
<property name="view"
|
||||
onget="return this.treeBoxObject.view;"
|
||||
onset="return this.treeBoxObject.view=val;"/>
|
||||
<property name="contentView"
|
||||
onget="return this.view.QueryInterface(Components.interfaces.nsITreeContentView);"
|
||||
readonly="true"/>
|
||||
<property name="selectElement"
|
||||
onget="return this.QueryInterface(Components.interfaces.nsISelectElement);"
|
||||
readonly="true"/>
|
||||
<property name="currentIndex"
|
||||
onget="return this.view.selection.currentIndex;"
|
||||
onset="return this.view.selection.currentIndex=val;"/>
|
||||
<property name="singleSelection"
|
||||
onget="return this.getAttribute('seltype') == 'single'"
|
||||
readonly="true"/>
|
||||
<property name="firstSelectableOption" readonly="true"
|
||||
onget="return this.getNextOptionIndex(-1);"/>
|
||||
<property name="lastSelectableOption" readonly="true"
|
||||
onget="return this.getPrevOptionIndex(this.view.rowCount);"/>
|
||||
|
||||
<field name="selectionHead">
|
||||
-1
|
||||
</field>
|
||||
<field name="selectionTail">
|
||||
-1
|
||||
</field>
|
||||
<method name="getNextOptionIndex">
|
||||
<parameter name="aIndex"/>
|
||||
<body><![CDATA[
|
||||
var lastRow = this.view.rowCount - 1;
|
||||
for (var i = aIndex + 1; i <= lastRow; ++i) {
|
||||
var elem = this.contentView.getItemAtIndex(i);
|
||||
if (elem.tagName.toLowerCase() == "option" && !elem.disabled)
|
||||
break;
|
||||
}
|
||||
return i;
|
||||
]]></body>
|
||||
</method>
|
||||
<method name="getPrevOptionIndex">
|
||||
<parameter name="aIndex"/>
|
||||
<body><![CDATA[
|
||||
for (var i = aIndex - 1; i >= 0; --i) {
|
||||
var elem = this.contentView.getItemAtIndex(i);
|
||||
if (elem.tagName.toLowerCase() == "option" && !elem.disabled)
|
||||
break;
|
||||
}
|
||||
return i;
|
||||
]]></body>
|
||||
</method>
|
||||
<method name="adjustIndexForNesting">
|
||||
<parameter name="aIndex"/>
|
||||
<body><![CDATA[
|
||||
return this.selectElement.getOptionIndex(this.contentView.getItemAtIndex(aIndex),
|
||||
aIndex, false);
|
||||
]]></body>
|
||||
</method>
|
||||
<method name="computePageUpIndex">
|
||||
<parameter name="aCurrentIndex"/>
|
||||
<body><![CDATA[
|
||||
var f = this.treeBoxObject.getFirstVisibleRow();
|
||||
var i = 0;
|
||||
if (f > 0) {
|
||||
var p = this.treeBoxObject.getPageLength();
|
||||
if (f - p >= 0)
|
||||
i = aCurrentIndex - p;
|
||||
else
|
||||
i = aCurrentIndex - f;
|
||||
}
|
||||
return this.getPrevOptionIndex(i+1);
|
||||
]]></body>
|
||||
</method>
|
||||
<method name="computePageDownIndex">
|
||||
<parameter name="aCurrentIndex"/>
|
||||
<body><![CDATA[
|
||||
var l = this.view.rowCount - 1;
|
||||
var f = this.treeBoxObject.getFirstVisibleRow();
|
||||
var p = this.treeBoxObject.getPageLength();
|
||||
var i = l;
|
||||
var lastTopRowIndex = l - p;
|
||||
if (f <= lastTopRowIndex) {
|
||||
if (f + p <= lastTopRowIndex)
|
||||
i = aCurrentIndex + p;
|
||||
else
|
||||
i = lastTopRowIndex + aCurrentIndex - f + 1;
|
||||
}
|
||||
return this.getNextOptionIndex(i-1);
|
||||
]]></body>
|
||||
</method>
|
||||
<constructor>
|
||||
/* Update our hasgroups attribute */
|
||||
if (this.selectElement.hasOptGroups)
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "treebody").setAttribute("hasgroups", "true");
|
||||
</constructor>
|
||||
</implementation>
|
||||
|
||||
<handlers>
|
||||
<handler event="focus" action="this.treeBoxObject.focused = true;"/>
|
||||
<handler event="blur" action="this.treeBoxObject.focused = false;"/>
|
||||
|
||||
<handler event="keypress" keycode="VK_UP">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var c = this.currentIndex;
|
||||
var i = this.getPrevOptionIndex(c);
|
||||
if (i == -1)
|
||||
return;
|
||||
this.selectionHead = this.selectionTail = -1;
|
||||
this.view.selection.timedSelect(i, 500);
|
||||
this.treeBoxObject.ensureRowIsVisible(i);
|
||||
var selIndex = this.adjustIndexForNesting(i);
|
||||
this.selectElement.setOptionsSelectedByIndex(selIndex, selIndex, true, true,
|
||||
false, false);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_DOWN">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var c = this.currentIndex;
|
||||
var i = this.getNextOptionIndex(c);
|
||||
try { if (i >= this.view.rowCount)
|
||||
return;
|
||||
} catch (e) {}
|
||||
this.selectionHead = this.selectionTail = -1;
|
||||
this.view.selection.timedSelect(i, 500);
|
||||
this.treeBoxObject.ensureRowIsVisible(i);
|
||||
var selIndex = this.adjustIndexForNesting(i);
|
||||
this.selectElement.setOptionsSelectedByIndex(selIndex, selIndex, true, true, false,
|
||||
false);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_UP" modifiers="shift">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
if (this.singleSelection)
|
||||
return;
|
||||
var c = this.currentIndex;
|
||||
var i = this.getPrevOptionIndex(c);
|
||||
if (i == -1)
|
||||
return;
|
||||
|
||||
var selection = this.view.selection;
|
||||
var select = this.selectElement;
|
||||
var selIndex = this.adjustIndexForNesting(c);
|
||||
|
||||
if (c == this.selectionTail) {
|
||||
if (this.selectionHead < this.selectionTail) {
|
||||
selection.toggleSelect(c);
|
||||
select.setOptionsSelectedByIndex(selIndex, selIndex,
|
||||
selection.isSelected(c),
|
||||
false, false, false);
|
||||
this.currentIndex = i;
|
||||
}
|
||||
else {
|
||||
selection.toggleSelect(i);
|
||||
select.setOptionsSelectedByIndex(selIndex, selIndex, true, false, false, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
selection.clearSelection();
|
||||
this.selectionHead = c;
|
||||
selection.rangedSelect(c, i, true);
|
||||
var prevSelIndex = this.adjustIndexForNesting(i);
|
||||
select.setOptionsSelectedByIndex(selIndex, prevSelIndex, true, true, false, false);
|
||||
}
|
||||
this.selectionTail = i;
|
||||
this.treeBoxObject.ensureRowIsVisible(i);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_DOWN" modifiers="shift">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
if (this.singleSelection)
|
||||
return;
|
||||
var c = this.currentIndex;
|
||||
var i = this.getNextOptionIndex(c);
|
||||
try { if (i >= this.view.rowCount)
|
||||
return;
|
||||
} catch (e) {}
|
||||
|
||||
var selection = this.view.selection;
|
||||
var select = this.selectElement;
|
||||
var selIndex = this.adjustIndexForNesting(c);
|
||||
var nextSelIndex = this.adjustIndexForNesting(i);
|
||||
|
||||
if (c == this.selectionTail) {
|
||||
if (this.selectionHead > this.selectionTail) {
|
||||
selection.toggleSelect(c);
|
||||
select.setOptionsSelectedByIndex(selIndex, selIndex, selection.isSelected(c), false, false, false);
|
||||
this.currentIndex = i;
|
||||
}
|
||||
else {
|
||||
selection.toggleSelect(i);
|
||||
select.setOptionsSelectedByIndex(nextSelIndex, nextSelIndex, selection.isSelected(i), false, false, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
selection.clearSelection();
|
||||
this.selectionHead = c;
|
||||
selection.rangedSelect(c, i, true);
|
||||
select.setOptionsSelectedByIndex(selIndex, nextSelIndex, true, true, false, false);
|
||||
}
|
||||
this.selectionTail = i;
|
||||
this.treeBoxObject.ensureRowIsVisible(i);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_UP" modifiers="control">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var c = this.currentIndex;
|
||||
var i = this.getPrevOptionIndex(c);
|
||||
if (i == -1)
|
||||
return;
|
||||
this.currentIndex = i;
|
||||
this.treeBoxObject.ensureRowIsVisible(i);
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_DOWN" modifiers="control">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var c = this.currentIndex;
|
||||
var i = this.getNextOptionIndex(c);
|
||||
try { if (i >= this.view.rowCount)
|
||||
return;
|
||||
} catch (e) {}
|
||||
this.currentIndex = i;
|
||||
this.treeBoxObject.ensureRowIsVisible(i);
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_PAGE_UP">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var c = this.currentIndex;
|
||||
if (this.getPrevOptionIndex(c) == -1)
|
||||
return;
|
||||
this.selectionHead = this.selectionTail = -1;
|
||||
var i = this.computePageUpIndex(c);
|
||||
|
||||
this.treeBoxObject.scrollByPages(-1);
|
||||
this.view.selection.timedSelect(i, 500);
|
||||
var selIndex = this.adjustIndexForNesting(i);
|
||||
this.selectElement.setOptionsSelectedByIndex(selIndex, selIndex, true, true,
|
||||
false, false);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_PAGE_DOWN">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var c = this.currentIndex;
|
||||
var l = this.view.rowCount - 1;
|
||||
if (this.getNextOptionIndex(c) >= l)
|
||||
return;
|
||||
this.selectionHead = this.selectionTail = -1;
|
||||
var i = this.computePageDownIndex(c);
|
||||
this.treeBoxObject.scrollByPages(1);
|
||||
this.view.selection.timedSelect(i, 500);
|
||||
var selIndex = this.adjustIndexForNesting(i);
|
||||
this.selectElement.setOptionsSelectdByIndex(selIndex, selIndex, true, true,
|
||||
false, false);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_PAGE_UP" modifiers="shift">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
if (this.singleSelection)
|
||||
return;
|
||||
var c = this.currentIndex;
|
||||
if (this.getPrevOptionIndex(c) == -1)
|
||||
return;
|
||||
var box = this.treeBoxObject;
|
||||
var selection = box.view.selection;
|
||||
var select = this.selectElement;
|
||||
var i = this.computePageUpIndex(c);
|
||||
box.scrollByPages(-1);
|
||||
|
||||
var selIndex = this.adjustIndexForNesting(c);
|
||||
var selIndexEnd = this.adjustIndexForNesting(i);
|
||||
var selHeadNext = this.getNextOptionIndex(this.selectionHead);
|
||||
var selHeadPrev = this.getPrevOptionIndex(this.selectionHead);
|
||||
var selHeadNextIndex = this.adjustIndexForNesting(selHeadNext);
|
||||
var selHeadPrevIndex = this.adjustIndexForNesting(selHeadPrev);
|
||||
var curPrevIndex = this.adjustIndexForNesting(this.getPrevOptionIndex(c));
|
||||
|
||||
if (c == this.selectionTail) {
|
||||
if (this.selectionHead < this.selectionTail) {
|
||||
if (i < this.selectionHead) {
|
||||
selection.clearRange(c, this.selectionHead + 1);
|
||||
selection.rangedSelect(selHeadPrev, i, true);
|
||||
select.setOptionsSelectedByIndex(selIndex, selHeadNextIndex, false, false,
|
||||
false, false);
|
||||
select.setOptionsSelectedByIndex(selHeadPrevIndex, selIndexEnd, true, false,
|
||||
false, false);
|
||||
}
|
||||
else {
|
||||
selection.clearRange(c, i + 1);
|
||||
var selIndexEndNext = this.adjustIndexForNesting(this.getNextOptionIndex(i));
|
||||
select.setOptionsSelectedByIndex(selIndex, selIndexEndNext, false, false,
|
||||
false, false);
|
||||
this.currentIndex = i;
|
||||
}
|
||||
}
|
||||
else {
|
||||
selection.rangedSelect(c - 1, i, true);
|
||||
select.setOptionsSelectedByIndex(curPrevIndex, selIndexEnd, true, false,
|
||||
false, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
selection.clearSelection();
|
||||
this.selectionHead = c;
|
||||
selection.rangedSelect(c, i, true);
|
||||
select.setOptionsSelectedByIndex(selIndex, selIndexEnd, true, true, false, false);
|
||||
}
|
||||
this.selectionTail = i;
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="shift">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
if (this.singleSelection)
|
||||
return;
|
||||
var c = this.currentIndex;
|
||||
if (this.getNextOptionIndex(c) >= l)
|
||||
return;
|
||||
|
||||
var i = this.getPageDownIndex(c);
|
||||
var box = this.treeBoxObject;
|
||||
box.scrollByPages(1);
|
||||
|
||||
var selection = box.view.selection;
|
||||
var select = this.selectElement;
|
||||
var selIndex = this.adjustIndexForNesting(c);
|
||||
var selEndIndex = this.adjustIndexforNesting(i);
|
||||
var selHeadPrevIndex = this.adjustIndexForNesting(this.getPrevOptionIndex(this.selectionHead));
|
||||
var selHeadNextIndex = this.adjustIndexForNesting(this.getNextOptionIndex(this.selectionHead));
|
||||
var selEndPrevIndex = this.adjustIndexForNesting(this.getPrevOptionIndex(i));
|
||||
var curNextIndex = this.adjustIndexForNesting(this.getNextOptionIndex(c));
|
||||
|
||||
if (c == this.selectionTail) {
|
||||
if (this.selectionHead > this.selectionTail) {
|
||||
if (i > this.selectionHead) {
|
||||
selection.clearRange(c, this.selectionHead - 1);
|
||||
selection.rangedSelect(this.selectionHead + 1, i, true);
|
||||
select.setOptionsSelectedByIndex(selIndex, selHeadPrevIndex, false, false,
|
||||
false, false);
|
||||
select.setOptionsSelectedByIndex(selHeadNextIndex, selEndIndex, true, false,
|
||||
false, false);
|
||||
}
|
||||
else {
|
||||
selection.clearRange(c, i - 1);
|
||||
select.setOptionsSelectedByIndex(selIndex, selEndPrevIndex, false, false,
|
||||
false, false);
|
||||
this.currentIndex = i;
|
||||
}
|
||||
}
|
||||
else {
|
||||
selection.rangedSelect(c + 1, i, true);
|
||||
select.setOptionsSelectedByIndex(curNextIndex, i, true, false, false, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
selection.clearSelection();
|
||||
this.selectionHead = c;
|
||||
selection.rangedSelect(c, i, true);
|
||||
select.setOptionsSelectedByIndex(selIndex, selEndIndex, true, true, false, false);
|
||||
}
|
||||
this.selectionTail = i;
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_PAGE_UP" modifiers="control">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var c = this.currentIndex;
|
||||
if (this.getPrevOptionIndex(c) == -1)
|
||||
return;
|
||||
|
||||
this.treeBoxObject.scrollByPages(-1);
|
||||
this.currentIndex = this.computePageUpIndex(c);
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_PAGE_DOWN" modifiers="control">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var c = this.currentIndex;
|
||||
var l = this.view.rowCount - 1;
|
||||
if (this.getNextOptionIndex(c) >= l)
|
||||
return;
|
||||
|
||||
this.treeBoxObject.scrollByPages(1);
|
||||
this.currentIndex = this.computePageDownIndex(c);
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_HOME">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
|
||||
var firstOptionIndex = this.firstSelectableOption;
|
||||
if (firstOptionIndex >= this.view.rowCount ||
|
||||
this.currentIndex == firstOptionIndex)
|
||||
return;
|
||||
this.selectionHead = this.selectionTail = -1;
|
||||
|
||||
var box = this.treeBoxObject;
|
||||
box.view.selection.timedSelect(firstOptionIndex, 500);
|
||||
var selIndex = this.adjustIndexForNesting(firstOptionIndex);
|
||||
this.selectElement.setOptionsSelectedByIndex(selIndex, selIndex, true, true,
|
||||
false, false);
|
||||
box.ensureRowIsVisible(firstOptionIndex);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_END">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var box = this.treeBoxObject;
|
||||
var lastOptionIndex = this.lastSelectableOption;
|
||||
if (lastOptionIndex == -1 || this.currentIndex == lastOptionIndex)
|
||||
return;
|
||||
this.selectionHead = this.selectionTail = -1;
|
||||
box.view.selection.timedSelect(lastOptionIndex, 500);
|
||||
var selIndex = this.adjustIndexForNesting(lastOptionIndex);
|
||||
this.selectElement.setOptionsSelectedByIndex(selIndex, selIndex, true, true,
|
||||
false, false);
|
||||
box.ensureRowIsVisible(lastOptionIndex);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_HOME" modifiers="shift">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
if (this.singleSelection)
|
||||
return;
|
||||
var c = this.currentIndex;
|
||||
var firstOptionIndex = this.firstSelectableOption;
|
||||
if (firstOptionIndex >= this.view.rowCount ||
|
||||
c == firstOptionIndex)
|
||||
return;
|
||||
var box = this.treeBoxObject;
|
||||
var selection = box.view.selection;
|
||||
var select = this.selectElement;
|
||||
if (c != this.selectionTail) {
|
||||
selection.clearSelection();
|
||||
select.setOptionsSelectedByIndex(-1, -1, true, true, false, false);
|
||||
this.selectionHead = c;
|
||||
}
|
||||
selection.rangedSelect(c, firstOptionIndex, true);
|
||||
var selIndex = this.adjustIndexForNesting(firstOptionIndex);
|
||||
select.setOptionsSelectedByIndex(c, selIndex, true, false, false, false);
|
||||
this.selectionTail = firstOptionIndex;
|
||||
box.ensureRowIsVisible(firstOptionIndex);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_END" modifiers="shift">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
if (this.singleSelection)
|
||||
return;
|
||||
var c = this.currentIndex;
|
||||
var box = this.treeBoxObject;
|
||||
var lastOptionIndex = this.lastSelectableOption;
|
||||
if (lastOptionIndex == -1 || c == lastOptionIndex)
|
||||
return;
|
||||
var selection = box.view.selection;
|
||||
var select = this.selectElement;
|
||||
if (c != this.selectionTail) {
|
||||
selection.clearSelection();
|
||||
select.setOptionsSelectedByIndex(-1, -1, true, true, false, false);
|
||||
this.selectionHead = c;
|
||||
}
|
||||
selection.rangedSelect(c, lastOptionIndex, true);
|
||||
var selIndex = this.adjustIndexForNesting(lastOptionIndex);
|
||||
select.setOptionsSelectedByIndex(c, selIndex, true, false, false, false);
|
||||
this.selectionTail = lastOptionIndex;
|
||||
box.ensureRowIsVisible(lastOptionIndex);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_HOME" modifiers="control">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var firstOptionIndex = this.firstSelectableOption;
|
||||
if (firstOptionIndex >= this.view.rowCount)
|
||||
return;
|
||||
this.currentIndex = firstOptionIndex;
|
||||
this.treeBoxObject.ensureRowIsVisible(firstOptionIndex);
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress" keycode="VK_END" modifiers="control">
|
||||
<![CDATA[
|
||||
event.preventDefault();
|
||||
var lastOptionIndex = this.lastSelectableOption;
|
||||
if (lastOptionIndex == -1)
|
||||
return;
|
||||
this.currentIndex = lastOptionIndex;
|
||||
this.treeBoxObject.ensureRowIsVisible(lastOptionIndex);
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="keypress">
|
||||
<![CDATA[
|
||||
var c = this.currentIndex;
|
||||
if (event.keyCode == ' '.charCodeAt(0)) {
|
||||
event.preventDefault();
|
||||
var selection = this.view.selection;
|
||||
if (event.ctrlKey || !selection.isSelected(c)) {
|
||||
selection.toggleSelect(c);
|
||||
var selIndex = this.adjustIndexForNesting(c);
|
||||
this.selectElement.setOptionsSelectedByIndex(selIndex, selIndex,
|
||||
selection.isSelected(c),
|
||||
false, false, false);
|
||||
if ("onchange" in this)
|
||||
this.onchange();
|
||||
}
|
||||
} else if (event.keyCode == '+' || event.keyCode == '-') {
|
||||
event.preventDefault();
|
||||
var view = this.view;
|
||||
var elem = this.contentView.getItemAtIndex(c);
|
||||
if (elem.tagName.toLowerCase() == "optgroup" && !elem.disabled &&
|
||||
((event.keyCode == '+' && !view.isContainerOpen()) ||
|
||||
(event.keyCode == '-' && view.isContainerOpen())))
|
||||
view.toggleOpenState(c);
|
||||
}
|
||||
]]>
|
||||
</handler>
|
||||
|
||||
<!-- Select element doesn't dispatch selectHas(No)Groups events anymore,
|
||||
so this needs to be fixed if XBL form controls get activated at some
|
||||
point. See bug 328907 -->
|
||||
<handler event="selectHasGroups">
|
||||
<![CDATA[
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "treebody").setAttribute("hasgroups", "true");
|
||||
// force the tree to clear its cached twisty width
|
||||
this.treeBoxObject.clearStyleAndImageCaches();
|
||||
]]>
|
||||
</handler>
|
||||
|
||||
<handler event="selectHasNoGroups">
|
||||
<![CDATA[
|
||||
document.getAnonymousElementByAttribute(this, "anonid", "treebody").removeAttribute("hasgroups");
|
||||
// force the tree to clear its cached twisty width
|
||||
this.treeBoxObject.clearStyleAndImageCaches();
|
||||
]]>
|
||||
</handler>
|
||||
|
||||
</handlers>
|
||||
|
||||
</binding>
|
||||
|
||||
<binding id="select-treerows">
|
||||
<handlers>
|
||||
<handler event="underflow">
|
||||
<![CDATA[
|
||||
this.childNodes[1].setAttribute("disabled", true);
|
||||
event.stopPropagation();
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="overflow">
|
||||
<![CDATA[
|
||||
this.childNodes[1].removeAttribute("disabled");
|
||||
event.stopPropagation();
|
||||
]]>
|
||||
</handler>
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
<!-- select size=1 -->
|
||||
|
||||
<binding id="select" extends="xul:menu">
|
||||
<implementation>
|
||||
<property name="selectElement" readonly="true"
|
||||
onget="return this.QueryInterface(Components.interfaces.nsISelectElement);"/>
|
||||
<method name="updateLabel">
|
||||
<body>
|
||||
<![CDATA[
|
||||
var item = this.options.item(this.selectedIndex);
|
||||
if (item) {
|
||||
var newLabel = item.label;
|
||||
if (!newLabel)
|
||||
newLabel = item.text;
|
||||
this.setAttribute('label', newLabel);
|
||||
}
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
||||
<constructor>
|
||||
<![CDATA[
|
||||
this.updateLabel();
|
||||
]]>
|
||||
</constructor>
|
||||
</implementation>
|
||||
<content>
|
||||
<xul:hbox class="select-label-box" flex="1">
|
||||
<xul:label flex="1" value=" " xbl:inherits="value=label"/>
|
||||
</xul:hbox>
|
||||
<xul:dropmarker class="select-dropmarker" type="menu"/>
|
||||
<xul:menupopup class="select-menupopup">
|
||||
<children/>
|
||||
</xul:menupopup>
|
||||
</content>
|
||||
<handlers>
|
||||
<handler event="command" phase="capturing">
|
||||
<![CDATA[
|
||||
var option = event.originalTarget;
|
||||
if (option.localName.toLowerCase() != 'option')
|
||||
return;
|
||||
|
||||
// Notify the select element that the selected item has changed.
|
||||
// It will then give us a selectedItemChanged event.
|
||||
var optionIndex = this.selectElement.getOptionIndex(option, 0, true);
|
||||
var changed = this.selectElement.setOptionsSelectedByIndex(optionIndex, optionIndex,
|
||||
true, false, false, true);
|
||||
|
||||
if (changed && ("onchange" in this))
|
||||
this.onchange();
|
||||
]]>
|
||||
</handler>
|
||||
|
||||
<handler event="selectedItemChanged" action="this.updateLabel();"/>
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
<binding id="select-option" extends="xul:menuitem">
|
||||
<content>
|
||||
<xul:label xbl:inherits="value=label">
|
||||
<children/>
|
||||
</xul:label>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="select-optgroup">
|
||||
<content>
|
||||
<xul:menu flex="1" xbl:inherits="label" class="select-menuitem">
|
||||
<xul:menupopup class="select-optgrouppopup">
|
||||
<children/>
|
||||
</xul:menupopup>
|
||||
</xul:menu>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
@ -1,306 +0,0 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla 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/MPL/
|
||||
*
|
||||
* 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.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Brian Ryner <bryner@brianryner.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
|
||||
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
select[size] {
|
||||
-moz-binding: url("chrome://forms/content/select.xml#select-size");
|
||||
-moz-box-orient: vertical;
|
||||
-moz-user-focus: normal;
|
||||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
select, select[size="1"] {
|
||||
-moz-binding: url("chrome://forms/content/select.xml#select");
|
||||
display: -moz-inline-box;
|
||||
-moz-box-orient: horizontal;
|
||||
-moz-user-focus: normal;
|
||||
font: -moz-list;
|
||||
}
|
||||
|
||||
select[size] > option,
|
||||
select[size] > optgroup {
|
||||
-moz-binding: none;
|
||||
}
|
||||
|
||||
select option,
|
||||
select[size="1"] option {
|
||||
-moz-binding: url("chrome://forms/content/select.xml#select-option");
|
||||
}
|
||||
|
||||
select > optgroup,
|
||||
select[size="1"] > optgroup {
|
||||
-moz-binding: url("chrome://forms/content/select.xml#select-optgroup");
|
||||
display: -moz-box;
|
||||
-moz-box-orient: horizontal;
|
||||
-moz-user-focus: normal;
|
||||
}
|
||||
|
||||
xul|*.select-treecol {
|
||||
-moz-binding: none;
|
||||
}
|
||||
|
||||
xul|*.select-treerows {
|
||||
-moz-binding: url("chrome://forms/content/select.xml#select-treerows");
|
||||
}
|
||||
|
||||
xul|*.select-treebody {
|
||||
-moz-binding: url("chrome://forms/content/select.xml#select-treebody");
|
||||
display: -moz-box;
|
||||
}
|
||||
|
||||
xul|*.select-scrollbar[disabled="true"] {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
xul|*.select-menupopup,
|
||||
xul|*.select-optgrouppopup {
|
||||
display:-moz-popup!important;
|
||||
}
|
||||
|
||||
/* note: theme css MUST set the background color on
|
||||
select-optgrouppopup. we can't set it to inherit
|
||||
because it will inherit the highlight color if the
|
||||
optgroup is open. */
|
||||
|
||||
xul|*.select-menupopup {
|
||||
background-color: inherit !important;
|
||||
}
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
display: -moz-inline-box;
|
||||
margin: 3px 3px 3px 4px;
|
||||
|
||||
/* override these values from the input rule */
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
color: inherit;
|
||||
cursor: default;
|
||||
font: inherit;
|
||||
text-align: inherit;
|
||||
padding-top: 0px;
|
||||
padding-bottom: 0px;
|
||||
-moz-box-sizing: border-box;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
-moz-binding: url("chrome://forms/content/checkbox.xml#checkbox");
|
||||
}
|
||||
|
||||
input[type="radio"] {
|
||||
-moz-binding: url("chrome://forms/content/radio.xml#radio");
|
||||
}
|
||||
|
||||
button {
|
||||
-moz-binding: url("chrome://forms/content/button.xml#button");
|
||||
-moz-box-sizing: border-box;
|
||||
}
|
||||
|
||||
input[type="button"],input[type="submit"],input[type="reset"] {
|
||||
cursor: default;
|
||||
-moz-box-sizing: border-box;
|
||||
padding-top: 0px;
|
||||
padding-bottom: 0px;
|
||||
}
|
||||
|
||||
input[type="button"] {
|
||||
-moz-binding: url("chrome://forms/content/button.xml#inputButton");
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
-moz-binding: url("chrome://forms/content/button.xml#submitButton");
|
||||
}
|
||||
|
||||
input[type="reset"] {
|
||||
-moz-binding: url("chrome://forms/content/button.xml#resetButton");
|
||||
}
|
||||
|
||||
input[type="file"] > input[type="button"] {
|
||||
-moz-binding: url("chrome://forms/content/button.xml#fileButton");
|
||||
}
|
||||
|
||||
/*
|
||||
* The following rules are copied from forms.css, for widgets that aren't yet
|
||||
* defined in XBL.
|
||||
*/
|
||||
*|*::-moz-fieldset-content {
|
||||
display: block;
|
||||
height: inherit; /* Need this so percentage heights of kids work right */
|
||||
}
|
||||
|
||||
form {
|
||||
display: block;
|
||||
margin: 0 0 1em 0;
|
||||
}
|
||||
|
||||
/* miscellaneous form elements */
|
||||
|
||||
legend {
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
display: block;
|
||||
border: 2px solid black;
|
||||
padding: 4px 4px 4px 4px;
|
||||
margin-left: 2px;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
label {
|
||||
/* our <label> support is badly broken.
|
||||
does not support display types other than inline(b=100801)
|
||||
*/
|
||||
display: inline !important;
|
||||
}
|
||||
|
||||
/* default inputs, text inputs, and selects */
|
||||
input {
|
||||
background-color: -moz-Field;
|
||||
border: 2px inset ThreeDFace;
|
||||
color: -moz-FieldText;
|
||||
cursor: text;
|
||||
font: -moz-field;
|
||||
text-align: start;
|
||||
vertical-align: text-bottom;
|
||||
-moz-box-sizing: border-box;
|
||||
-moz-user-focus: normal;
|
||||
-moz-binding: url("chrome://global/content/platformHTMLBindings.xml#inputFields");
|
||||
padding: 1px 0 1px 0;
|
||||
}
|
||||
|
||||
input > .anonymous-div {
|
||||
white-space : nowrap;
|
||||
}
|
||||
|
||||
textarea {
|
||||
background-color: -moz-Field;
|
||||
border: 2px inset ThreeDFace;
|
||||
color: -moz-FieldText;
|
||||
cursor: text;
|
||||
font: medium -moz-fixed;
|
||||
margin: 1px 0 1px 0;
|
||||
text-align: start;
|
||||
vertical-align: text-bottom;
|
||||
-moz-box-sizing: border-box;
|
||||
-moz-user-focus: normal;
|
||||
-moz-binding: url("chrome://global/content/platformHTMLBindings.xml#textAreas");
|
||||
}
|
||||
|
||||
textarea > scrollbar {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
textarea > .anonymous-div,
|
||||
input > .anonymous-div {
|
||||
-moz-user-focus: none;
|
||||
overflow: auto;
|
||||
border: 0px !important;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
/* XXXldb I'm not sure if we really want the 'text-decoration: inherit',
|
||||
but it's needed to make 'text-decoration' "work" on text inputs. */
|
||||
text-decoration: inherit;
|
||||
-moz-text-decoration-color: inherit;
|
||||
-moz-text-decoration-style: inherit;
|
||||
}
|
||||
|
||||
input:disabled,
|
||||
textarea:disabled,
|
||||
option:disabled,
|
||||
optgroup:disabled,
|
||||
select:disabled,
|
||||
select:disabled::-moz-display-comboboxcontrol-frame {
|
||||
color: GrayText;
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
/* hidden inputs */
|
||||
input[type="hidden"] {
|
||||
display: none;
|
||||
-moz-binding: none;
|
||||
}
|
||||
|
||||
/* image buttons */
|
||||
input[type="image"] {
|
||||
border: none;
|
||||
vertical-align: baseline;
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
font-family: sans-serif;
|
||||
font-size: small;
|
||||
-moz-binding: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input[type="image"]:disabled {
|
||||
cursor: inherit;
|
||||
}
|
||||
|
||||
input[type="image"]:focus {
|
||||
outline: 1px dotted -moz-FieldText;
|
||||
}
|
||||
|
||||
/* file selector */
|
||||
input[type="file"] {
|
||||
white-space: nowrap;
|
||||
border: none;
|
||||
cursor: default;
|
||||
-moz-binding: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* button part of file selector */
|
||||
input[type="file"] > input[type="button"] {
|
||||
height: inherit;
|
||||
}
|
||||
|
||||
input[type="file"] > input[type="button"]::-moz-focus-inner
|
||||
{
|
||||
padding: 0px 2px 0px 2px;
|
||||
border: 1px dotted transparent;
|
||||
}
|
||||
|
||||
@media print {
|
||||
input, textarea, select, button {
|
||||
-moz-user-focus: none !important;
|
||||
}
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
forms.jar:
|
||||
content/forms/xbl-forms.css (content/xbl-forms.css)
|
||||
content/forms/select.xml (content/select.xml)
|
||||
content/forms/checkbox.xml (content/checkbox.xml)
|
||||
content/forms/button.xml (content/button.xml)
|
||||
content/forms/radio.xml (content/radio.xml)
|
||||
skin/classic/forms/button.css (skin/button.css)
|
||||
skin/classic/forms/checkbox.css (skin/checkbox.css)
|
||||
skin/classic/forms/forms.css (skin/forms.css)
|
||||
skin/classic/forms/radio.css (skin/radio.css)
|
||||
skin/classic/forms/select.css (skin/select.css)
|
||||
skin/classic/forms/select-dropdown.css (skin/select-dropdown.css)
|
||||
skin/classic/forms/arrow-dn-dis.gif (skin/arrow-dn-dis.gif)
|
||||
skin/classic/forms/arrow-dn.gif (skin/arrow-dn.gif)
|
||||
skin/classic/forms/cbox-check-dis.gif (skin/cbox-check-dis.gif)
|
||||
skin/classic/forms/cbox-check.gif (skin/cbox-check.gif)
|
||||
skin/classic/forms/radio-check-dis.gif (skin/radio-check-dis.gif)
|
||||
skin/classic/forms/radio-check.gif (skin/radio-check.gif)
|
||||
skin/classic/forms/twisty-clsd.gif (skin/twisty-clsd.gif)
|
||||
skin/classic/forms/twisty-open.gif (skin/twisty-open.gif)
|
||||
|
||||
en-US.jar:
|
||||
locale/en-US/forms/htmlforms.dtd (locale/en-US/htmlforms.dtd)
|
@ -1,40 +0,0 @@
|
||||
<!-- ***** BEGIN LICENSE BLOCK *****
|
||||
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
-
|
||||
- The contents of this file are subject to the Mozilla 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/MPL/
|
||||
-
|
||||
- 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.org code.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- Netscape Communications Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s):
|
||||
- Brian Ryner <bryner@brianryner.com>
|
||||
-
|
||||
- Alternatively, the contents of this file may be used under the terms of
|
||||
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
- in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
- of those above. If you wish to allow use of your version of this file only
|
||||
- under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
- use your version of this file under the terms of the MPL, indicate your
|
||||
- decision by deleting the provisions above and replace them with the notice
|
||||
- and other provisions required by the LGPL or the GPL. If you do not delete
|
||||
- the provisions above, a recipient may use your version of this file under
|
||||
- the terms of any one of the MPL, the GPL or the LGPL.
|
||||
-
|
||||
- ***** END LICENSE BLOCK ***** -->
|
||||
|
||||
<!ENTITY resetForm "Reset">
|
||||
<!ENTITY submitForm "Submit Query">
|
||||
<!ENTITY fileBrowse "Browse…">
|
Before Width: | Height: | Size: 65 B |
Before Width: | Height: | Size: 56 B |
@ -1,129 +0,0 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla 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/MPL/
|
||||
*
|
||||
* 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 the Initial Developer are Copyright (C) 1998-1999
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Joe Hewitt (hewitt@netscape.com)
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/* ===== button.css =====================================================
|
||||
== Styles used by the XUL button element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url(http://www.w3.org/1999/xhtml);
|
||||
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* :::::::::: button :::::::::: */
|
||||
|
||||
button,
|
||||
input[type="button"],
|
||||
input[type="submit"],
|
||||
input[type="reset"] {
|
||||
/* -moz-appearance: button; */
|
||||
border: 3px solid;
|
||||
-moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow;
|
||||
background-color: ThreeDFace;
|
||||
color: ButtonText;
|
||||
}
|
||||
|
||||
xul|*.button-box {
|
||||
border: 1px solid transparent;
|
||||
padding: 0px 4px 1px 3px;
|
||||
}
|
||||
|
||||
xul|*.button-box-text {
|
||||
margin: 0 !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* .......... active/open/checked state .......... */
|
||||
|
||||
button:hover:active,
|
||||
input[type="button"]:hover:active,
|
||||
input[type="submit"]:hover:active,
|
||||
input[type="reset"]:hover:active {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDShadow transparent;
|
||||
}
|
||||
|
||||
button:hover:active > xul|*.button-box,
|
||||
input[type="button"]:hover:active > xul|*.button-box,
|
||||
input[type="submit"]:hover:active > xul|*.button-box,
|
||||
input[type="reset"]:hover:active > xul|*.button-box {
|
||||
padding: 1px 3px 0px 4px;
|
||||
}
|
||||
|
||||
/* .......... focused state .......... */
|
||||
|
||||
button:focus,
|
||||
input[type="button"]:focus,
|
||||
input[type="submit"]:focus,
|
||||
input[type="reset"]:focus {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight transparent;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight transparent;
|
||||
}
|
||||
|
||||
button:focus > xul|*.button-box,
|
||||
input[type="button"]:focus > xul|*.button-box,
|
||||
input[type="submit"]:focus > xul|*.button-box,
|
||||
input[type="reset"]:focus > xul|*.button-box {
|
||||
border: 1px dotted ThreeDDarkShadow;
|
||||
}
|
||||
|
||||
/* .......... disabled state .......... */
|
||||
|
||||
button:disabled,
|
||||
input[type="button"]:disabled,
|
||||
input[type="submit"]:disabled,
|
||||
input[type="reset"]:disabled {
|
||||
-moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow !important;
|
||||
-moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow !important;
|
||||
-moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow !important;
|
||||
-moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow !important;
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
button:disabled > xul|*.button-box,
|
||||
input[type="button"]:disabled > xul|*.button-box,
|
||||
input[type="submit"]:disabled > xul|*.button-box,
|
||||
input[type="reset"]:disabled > xul|*.button-box {
|
||||
padding: 0px 4px 1px 3px !important;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 60 B |
Before Width: | Height: | Size: 54 B |
@ -1,87 +0,0 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla 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/MPL/
|
||||
*
|
||||
* 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 the Initial Developer are Copyright (C) 1998-1999
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/* ===== checkbox.css ===================================================
|
||||
== Styles used by the XUL checkbox element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url(http://www.w3.org/1999/xhtml);
|
||||
|
||||
/* ::::: checkbox ::::: */
|
||||
|
||||
input[type="checkbox"] {
|
||||
/* -moz-appearance: checkbox; */
|
||||
-moz-box-align: center;
|
||||
border: 2px solid;
|
||||
padding-left: 1px;
|
||||
padding-right: 1px;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
min-width: 13px;
|
||||
min-height: 13px;
|
||||
background: -moz-Field no-repeat 50% 50%;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:hover:active {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:focus {
|
||||
-moz-border-top-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDHighlight;
|
||||
-moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
}
|
||||
|
||||
/* ..... disabled state ..... */
|
||||
|
||||
input[type="checkbox"]:disabled {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
/* ..... checked state ..... */
|
||||
|
||||
input[type="checkbox"]:checked {
|
||||
list-style-image: url("chrome://forms/skin/cbox-check.gif");
|
||||
}
|
||||
|
||||
input[type="checkbox"]:disabled:checked {
|
||||
list-style-image: url("chrome://forms/skin/cbox-check-dis.gif") !important;
|
||||
}
|
||||
|
@ -1,47 +0,0 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla 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/MPL/
|
||||
*
|
||||
* 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.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2002
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Brian Ryner <bryner@brianryner.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/* This file contains skin-specific rules for HTML form controls */
|
||||
|
||||
/* xbl-forms.css contains the XBL bindings common to all skins */
|
||||
@import url("chrome://forms/content/xbl-forms.css");
|
||||
|
||||
@import url("chrome://forms/skin/select.css");
|
||||
@import url("chrome://forms/skin/select-dropdown.css");
|
||||
@import url("chrome://forms/skin/checkbox.css");
|
||||
@import url("chrome://forms/skin/button.css");
|
||||
@import url("chrome://forms/skin/radio.css");
|
Before Width: | Height: | Size: 46 B |
Before Width: | Height: | Size: 46 B |
@ -1,94 +0,0 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla 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/MPL/
|
||||
*
|
||||
* 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 the Initial Developer are Copyright (C) 1998-1999
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
||||
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/* ===== radio.css ===================================================
|
||||
== Styles used by the XUL radio element.
|
||||
======================================================================= */
|
||||
|
||||
@namespace url(http://www.w3.org/1999/xhtml);
|
||||
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/* ..... disabled state ..... */
|
||||
|
||||
input[type="radio"]:disabled {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
/* ::::: checkmark image ::::: */
|
||||
|
||||
input[type="radio"] {
|
||||
/* -moz-appearance: radio; */
|
||||
margin: 1px 0px;
|
||||
border-top: 1px solid ThreeDShadow;
|
||||
border-right: 1px solid ThreeDHighlight;
|
||||
border-bottom: 1px solid ThreeDHighlight;
|
||||
border-left: 1px solid ThreeDShadow;
|
||||
border-radius: 50%;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background-color: -moz-Field;
|
||||
}
|
||||
|
||||
xul|*.input-radio-check-box2 {
|
||||
border-top: 1px solid ThreeDDarkShadow;
|
||||
border-right: 1px solid ThreeDLightShadow;
|
||||
border-bottom: 1px solid ThreeDLightShadow;
|
||||
border-left: 1px solid ThreeDDarkShadow;
|
||||
border-radius: 50%;
|
||||
padding: 2px;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
list-style-image: none;
|
||||
}
|
||||
|
||||
input[type="radio"]:hover:active {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
input[type="radio"]:focus > xul|*.input-radio-check-box2 {
|
||||
border: 1px solid ThreeDDarkShadow;
|
||||
}
|
||||
|
||||
/* ..... selected state ..... */
|
||||
|
||||
input[type="radio"]:checked > xul|*.input-radio-check-box2 {
|
||||
list-style-image: url("chrome://forms/skin/radio-check.gif");
|
||||
}
|
||||
|
||||
input[type="radio"]:disabled:checked {
|
||||
list-style-image: url("chrome://forms/skin/radio-check-dis.gif") !important
|
||||
}
|
@ -1,135 +0,0 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla 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/MPL/
|
||||
*
|
||||
* 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.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2002
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Brian Ryner <bryner@brianryner.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
|
||||
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/**
|
||||
<select size=1/> Widget
|
||||
**/
|
||||
|
||||
select, select[size="1"] {
|
||||
/*-moz-appearance: menulist;*/
|
||||
margin: 2px 4px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
-moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
|
||||
background-color: -moz-Field;
|
||||
color: -moz-FieldText;
|
||||
}
|
||||
|
||||
xul|*.select-label-box {
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
margin: 1px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
xul|*.select-dropmarker {
|
||||
/*-moz-appearance: menulist-button;*/
|
||||
min-width: 17px;
|
||||
-moz-box-align: center;
|
||||
-moz-box-pack: center;
|
||||
border: 2px solid;
|
||||
background-color: -moz-Dialog;
|
||||
list-style-image: url("chrome://forms/skin/arrow-dn.gif");
|
||||
}
|
||||
|
||||
xul|*.select-dropmarker,
|
||||
select:disabled:hover:active > xul|*.select-dropmarker {
|
||||
-moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
-moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
|
||||
-moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
select:hover:active > xul|*.select-dropmarker {
|
||||
-moz-border-top-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-right-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-bottom-colors: ThreeDShadow ThreeDFace;
|
||||
-moz-border-left-colors: ThreeDShadow ThreeDFace;
|
||||
padding: 2px 0px 0px 2px;
|
||||
}
|
||||
|
||||
select:focus > xul|*.select-label-box {
|
||||
border: 1px dotted #F5DB95;
|
||||
background-color: Highlight;
|
||||
color: HighlightText;
|
||||
}
|
||||
|
||||
xul|*.select-menupopup,
|
||||
xul|*.select-optgrouppopup {
|
||||
-moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars");
|
||||
}
|
||||
|
||||
xul|*.select-optgrouppopup {
|
||||
background-color: -moz-Field !important;
|
||||
}
|
||||
|
||||
option,
|
||||
optgroup {
|
||||
color: -moz-FieldText;
|
||||
}
|
||||
|
||||
select > option {
|
||||
/* make the popup wide enough for the dropdown arrow */
|
||||
padding-right: 28px;
|
||||
}
|
||||
|
||||
xul|*.select-menuitem > xul|*.menu-text {
|
||||
margin-left: 0px !important;
|
||||
}
|
||||
|
||||
/* ..... disabled state ..... */
|
||||
|
||||
select:disabled {
|
||||
background-color: -moz-Dialog;
|
||||
color: GrayText;
|
||||
}
|
||||
|
||||
select:disabled > xul|*.select-dropmarker {
|
||||
list-style-image: url("chrome://forms/skin/arrow-dn-dis.gif");
|
||||
}
|
||||
|
||||
option[_moz-menuactive="true"],
|
||||
xul|*.select-menuitem[_moz-menuactive="true"] {
|
||||
background-color: Highlight;
|
||||
color: HighlightText !important;
|
||||
}
|
@ -1,123 +0,0 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla 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/MPL/
|
||||
*
|
||||
* 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.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* Netscape Communications Corporation.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2002
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Brian Ryner <bryner@brianryner.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
|
||||
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
|
||||
|
||||
/**
|
||||
<select/> Widget
|
||||
**/
|
||||
|
||||
select[size] {
|
||||
border: 2px inset ThreeDFace;
|
||||
margin: 0;
|
||||
min-height: 0;
|
||||
color: inherit;
|
||||
/* -moz-appearance: treeview; */
|
||||
}
|
||||
|
||||
xul|*.select-treebody::-moz-tree-row {
|
||||
/* -moz-appearance: treeitem; */
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
xul|*.select-treecol {
|
||||
margin: 0px !important;
|
||||
border: none !important;
|
||||
padding: 0px !important;
|
||||
}
|
||||
|
||||
/* ::::: tree rows ::::: */
|
||||
|
||||
xul|*.select-treebody::-moz-tree-row {
|
||||
border: 1px solid transparent;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
xul|*.select-treebody::-moz-tree-row(selected) {
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
xul|*.select-treebody::-moz-tree-row(selected, focus) {
|
||||
background-color: Highlight;
|
||||
}
|
||||
|
||||
xul|*.select-treebody::-moz-tree-row(current, focus) {
|
||||
border: 1px dotted #F5DB95;
|
||||
}
|
||||
|
||||
/* ::::: tree cells ::::: */
|
||||
|
||||
xul|*.select-treebody::-moz-tree-cell {
|
||||
padding: 0px 0px 0px 2px;
|
||||
}
|
||||
|
||||
xul|*.select-treebody::-moz-tree-cell-text {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
xul|*.select-treebody::-moz-tree-cell-text(selected) {
|
||||
color: -moz-DialogText;
|
||||
}
|
||||
|
||||
xul|*.select-treebody::-moz-tree-cell-text(selected, focus) {
|
||||
color: HighlightText;
|
||||
}
|
||||
|
||||
|
||||
/* ::::: twisty ::::: */
|
||||
|
||||
xul|*.select-treebody[hasgroups="true"]::-moz-tree-twisty
|
||||
{
|
||||
padding-right: 2px;
|
||||
width: 10px; /* The image's width is 10 pixels */
|
||||
list-style-image: url("chrome://forms/skin/twisty-clsd.gif");
|
||||
}
|
||||
|
||||
xul|*.select-treebody[hasgroups="true"]::-moz-tree-twisty(open) {
|
||||
width: 10px; /* The image's width is 10 pixels */
|
||||
list-style-image: url("chrome://forms/skin/twisty-open.gif");
|
||||
}
|
||||
|
||||
xul|*.select-treebody[hasgroups="true"]::-moz-tree-indentation {
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
xul|*.select-treebody::-moz-tree-line {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 841 B |
Before Width: | Height: | Size: 835 B |