2 * Copyright (C) 2012, Intel Corporation.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU Lesser General Public License,
6 * version 2.1, as published by the Free Software Foundation.
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU Lesser General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St
15 * - Fifth Floor, Boston, MA 02110-1301 USA
20 name: "webkit/widget/spinner";
23 image: "widget/spinner/sp_bg.png" COMP;
24 image: "widget/spinner/sp_up_default.png" COMP;
25 image: "widget/spinner/sp_down_default.png" COMP;
26 image: "widget/spinner/sp_up_pressed.png" COMP;
27 image: "widget/spinner/sp_down_pressed.png" COMP;
28 image: "widget/spinner/sp_up_hover.png" COMP;
29 image: "widget/spinner/sp_down_hover.png" COMP;
38 if (get_int(isEnabled) == 1) {
39 set_state(PART:"up_bt", "default", 0.0);
40 set_state(PART:"down_bt", "default", 0.0);
41 if (get_int(isSpinup)) {
42 if (get_int(isPressed))
43 set_state(PART:"up_bt", "pressed", 0.0);
46 if (get_int(isPressed))
47 set_state(PART:"down_bt", "pressed", 0.0);
51 set_state(PART:"up_bt", "disabled", 0.0);
52 set_state(PART:"down_bt", "disabled", 0.0);
72 normal: "widget/spinner/sp_bg.png";
93 image.normal: "widget/spinner/sp_up_default.png";
97 inherit: "default" 0.0;
98 image.normal: "widget/spinner/sp_up_pressed.png";
101 state: "disabled" 0.0;
102 inherit: "default" 0.0;
103 color: 255 255 255 150;
110 state: "default" 0.0;
123 image.normal: "widget/spinner/sp_down_default.png";
126 state: "pressed" 0.0;
127 inherit: "default" 0.0;
128 image.normal: "widget/spinner/sp_down_pressed.png";
131 state: "disabled" 0.0;
132 inherit: "default" 0.0;
133 color: 255 255 255 150;
138 name: "text_confinement";
141 state: "default" 0.0;
159 set_int(isSpinup, 1);
168 set_int(isPressed, 1);
177 set_int(isEnabled, 1);
185 set_int(isSpinup, 0);
186 set_int(isEnabled, 0);
187 set_int(isPressed, 0);