2 Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
3 Copyright (C) 2009,2010 ProFUSION embedded systems
4 Copyright (C) 2009,2010 Samsung Electronics
6 This file is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This file is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
24 name: "webkit/widget/checkbox";
28 image: "widget/check/img_check_on.png" COMP;
29 image: "widget/check/img_check_off.png" COMP;
30 image: "widget/check/img_check_off_focus.png" COMP;
31 image: "widget/check/img_check_on_focus.png" COMP;
32 image: "widget/check/img_check_off_hover.png" COMP;
33 image: "widget/check/img_check_on_hover.png" COMP;
44 if (get_int(isEnabled) == 1) {
45 set_state(PART:"check_button", "default", 0.0);
46 if (get_int(isChecked) == 1) {
47 set_state(PART:"check_button", "enabled_checked", 0.0);
48 if (get_int(isFocused) == 1)
49 set_state(PART:"check_button", "focus_checked", 0.0);
50 if (get_int(isHovered) == 1 && get_int(isFocused) == 0)
51 set_state(PART:"check_button", "hovered_checked", 0.0);
54 if (get_int(isFocused) == 1)
55 set_state(PART:"check_button", "focused", 0.0);
56 if (get_int(isHovered) == 1 && get_int(isFocused) == 0)
57 set_state(PART:"check_button", "hovered", 0.0);
61 set_state(PART:"check_button", "disabled", 0.0);
62 if (get_int(isChecked) == 1)
63 set_state(PART:"check_button", "disabled_checked", 0.0);
77 normal: "widget/check/img_check_off.png";
81 state: "enabled_checked" 0.0;
82 inherit: "default" 0.0;
84 normal: "widget/check/img_check_on.png";
88 state: "disabled_checked" 0.0;
89 inherit: "enabled_checked" 0.0;
90 color: 255 255 255 150;
93 state: "disabled" 0.0;
94 inherit: "default" 0.0;
95 color: 255 255 255 150;
98 state: "hovered_checked" 0.0;
99 inherit: "default" 0.0;
101 normal: "widget/check/img_check_on_hover.png";
105 state: "hovered" 0.0;
106 inherit: "default" 0.0;
108 normal: "widget/check/img_check_off_hover.png";
112 state: "focus_checked" 0.0;
113 inherit: "default" 0.0;
115 normal: "widget/check/img_check_on_focus.png";
119 state: "focused" 0.0;
120 inherit: "default" 0.0;
122 normal: "widget/check/img_check_off_focus.png";
132 set_int(isEnabled, 1);
140 set_int(isPressed, 1);
148 set_int(isChecked, 1);
156 set_int(isFocused, 1);
164 set_int(isHovered, 1);
172 set_int(isEnabled, 0);
173 set_int(isPressed, 0);
174 set_int(isChecked, 0);
175 set_int(isFocused, 0);
176 set_int(isHovered, 0);