#90314, implement new <spinbuttons/> XUL widget.

Syntax:  <spinbuttons ondown="..." onup="..."/>

r=aegis, hewitt, sr=hyatt, a=dbaron
This commit is contained in:
hwaara%chello.se 2001-07-26 10:55:47 +00:00
Родитель 9a26cf12c7
Коммит 3146f15ee8
17 изменённых файлов: 166 добавлений и 1 удалений

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

@ -0,0 +1,35 @@
/*
* 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 Håkan Waara
* Portions created by Håkan Waara are Copyright (C)
* Håkan Waara. All Rights Reserved.
*
* Contributor(s): Håkan Waara (Original Author)
*/
.up {
list-style-image: url("chrome://global/skin/spinbtn-up.gif")
}
.up:hover:active {
list-style-image: url("chrome://global/skin/spinbtn-up-act.gif")
}
.down {
list-style-image: url("chrome://global/skin/spinbtn-dn.gif")
}
.down:hover:active {
list-style-image: url("chrome://global/skin/spinbtn-dn-act.gif")
}

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

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

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

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

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

@ -18,6 +18,7 @@ classic.jar:
skin/classic/global/radio.css
skin/classic/global/scrollbars.css
skin/classic/global/scrollbox.css
skin/classic/global/spinbuttons.css
skin/classic/global/splitter.css
skin/classic/global/tabbox.css
skin/classic/global/textbox.css

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

@ -0,0 +1,35 @@
/*
* 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 Håkan Waara
* Portions created by Håkan Waara are Copyright (C)
* Håkan Waara. All Rights Reserved.
*
* Contributor(s): Håkan Waara (Original Author)
*/
.up {
list-style-image: url("chrome://global/skin/spinbtn-up.gif")
}
.up:hover:active {
list-style-image: url("chrome://global/skin/spinbtn-up-act.gif")
}
.down {
list-style-image: url("chrome://global/skin/spinbtn-dn.gif")
}
.down:hover:active {
list-style-image: url("chrome://global/skin/spinbtn-dn-act.gif")
}

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

@ -312,6 +312,10 @@ classic.jar:
skin/classic/global/toolbargrippy-texture.gif (global/toolbargrippy-texture.gif)
skin/classic/global/loading.gif (global/loading.gif)
skin/classic/global/splitter-drag-bg.gif (global/splitter-drag-bg.gif)
skin/classic/global/spinbtn-up.gif (global/spinbtn-up.gif)
skin/classic/global/spinbtn-up-act.gif (global/spinbtn-up-act.gif)
skin/classic/global/spinbtn-dn.gif (global/spinbtn-dn.gif)
skin/classic/global/spinbtn-dn-act.gif (global/spinbtn-dn-act.gif)
skin/classic/global/dropmarker-down-on-active.gif (global/dropmarker-down-on-active.gif)
skin/classic/global/dropmarker-down-on-hover.gif (global/dropmarker-down-on-hover.gif)
skin/classic/global/dropmarker-down-disabled.gif (global/dropmarker-down-disabled.gif)

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

@ -0,0 +1,35 @@
/*
* 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 Håkan Waara
* Portions created by Håkan Waara are Copyright (C)
* Håkan Waara. All Rights Reserved.
*
* Contributor(s): Håkan Waara (Original Author)
*/
.up {
list-style-image: url("chrome://global/skin/spinbuttons/btn-up.gif");
}
.up:hover:active {
list-style-image: url("chrome://global/skin/spinbuttons/btn-up-act.gif");
}
.down {
list-style-image: url("chrome://global/skin/spinbuttons/btn-dn.gif");
}
.down:hover:active {
list-style-image: url("chrome://global/skin/spinbuttons/btn-dn-act.gif");
}

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

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

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

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

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

@ -323,6 +323,7 @@ modern.jar:
skin/modern/global/scrollbars-mini.css (global/scrollbars-mini.css)
skin/modern/global/scrollbox.css (global/scrollbox.css)
skin/modern/global/splitter.css (global/splitter.css)
skin/modern/global/spinbuttons.css (global/spinbuttons.css)
skin/modern/global/tabbox.css (global/tabbox.css)
skin/modern/global/textbox.css (global/textbox.css)
skin/modern/global/titledbox.css (global/titledbox.css)
@ -503,6 +504,10 @@ modern.jar:
skin/modern/global/scrollbar/thumb-vrt-grip.gif (global/scrollbar/thumb-vrt-grip.gif)
skin/modern/global/scrollbar/thumb-vrt-mid.gif (global/scrollbar/thumb-vrt-mid.gif)
skin/modern/global/scrollbar/thumb-vrt-top.gif (global/scrollbar/thumb-vrt-top.gif)
skin/modern/global/spinbuttons/btn-up.gif (global/spinbuttons/btn-up.gif)
skin/modern/global/spinbuttons/btn-dn.gif (global/spinbuttons/btn-dn.gif)
skin/modern/global/spinbuttons/btn-up-act.gif (global/spinbuttons/btn-up-act.gif)
skin/modern/global/spinbuttons/btn-dn-act.gif (global/spinbuttons/btn-dn-act.gif)
skin/modern/global/splitter/grip-hrz-act.gif (global/splitter/grip-hrz-act.gif)
skin/modern/global/splitter/grip-hrz-after.gif (global/splitter/grip-hrz-after.gif)
skin/modern/global/splitter/grip-hrz-before.gif (global/splitter/grip-hrz-before.gif)

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

@ -55,6 +55,7 @@ toolkit.jar:
content/global/bindings/scrollbar.xml (resources/content/bindings/scrollbar.xml)
content/global/bindings/scrollbox.xml (resources/content/bindings/scrollbox.xml)
content/global/bindings/splitter.xml (resources/content/bindings/splitter.xml)
content/global/bindings/spinbuttons.xml (resources/content/bindings/spinbuttons.xml)
content/global/bindings/stringbundle.xml (resources/content/bindings/stringbundle.xml)
content/global/bindings/tabbox.xml (resources/content/bindings/tabbox.xml)
content/global/bindings/text.xml (resources/content/bindings/text.xml)

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

@ -0,0 +1,43 @@
<?xml version="1.0"?>
<!--
- 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 Håkan Waara.
- Portions created by Håkan Waara are Copyright (C),
- Håkan Waara. All Rights Reserved.
-
- Contributor(s): Håkan Waara (Original Author)
-->
<bindings id="spinbuttonsBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="spinbuttons"
extends="chrome://global/content/bindings/spinbuttons.xml#spinbuttons-baseline">
<resources>
<stylesheet src="chrome://global/skin/spinbuttons.css"/>
</resources>
</binding>
<binding id="spinbuttons-baseline">
<content>
<xul:vbox flex="1" autostretch="never">
<xul:image inherits="onclick=onup" id="upButton" class="up"/>
<xul:image inherits="onclick=ondown" id="downButton" class="down"/>
</xul:vbox>
</content>
</binding>
</bindings>

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

@ -51,7 +51,7 @@ menulist[editable="true"],
popup, menupopup,
scrollbar, scrollbarbutton, slider, thumb, autorepeater,
splitter, statusbar, statusbarpanel,
toolbox, menubar, toolbar {
toolbox, menubar, toolbar, spinbuttons {
-moz-user-focus: ignore;
}
@ -661,6 +661,12 @@ statusbarpanel {
-moz-binding: url("chrome://global/content/bindings/general.xml#statusbar-panel");
}
/********** spinbuttons ***********/
spinbuttons {
-moz-binding: url("chrome://global/content/bindings/spinbuttons.xml#spinbuttons");
}
/********** stringbundle **********/
stringbundleset {