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.
23
name: "webkit/widget/combo";
26
image: "widget/combo/combo_normal.png" COMP;
27
image: "widget/combo/combo_normal_button.png" COMP;
28
image: "widget/combo/combo_hover.png" COMP;
29
image: "widget/combo/combo_hover_button.png" COMP;
30
image: "widget/combo/combo_focus.png" COMP;
31
image: "widget/combo/combo_focus_button.png" COMP;
32
image: "widget/combo/combo_press.png" COMP;
33
image: "widget/combo/combo_press_button.png" COMP;
34
image: "widget/combo/icon.png" COMP;
45
if (get_int(isEnabled) == 1) {
46
set_state(PART:"combo", "default", 0.0);
47
set_state(PART:"combo_button", "default", 0.0);
48
set_state(PART:"combo_button_icon", "default", 0.0);
49
if (get_int(isFocused) == 1) {
50
set_state(PART:"combo", "focused", 0.0);
51
set_state(PART:"combo_button", "focused", 0.0);
52
if (get_int(isPressed) == 1) {
53
set_state(PART:"combo", "pressed", 0.0);
54
set_state(PART:"combo_button", "pressed", 0.0);
57
else if (get_int(isHovered) == 1) {
58
set_state(PART:"combo", "hovered", 0.0);
59
set_state(PART:"combo_button", "hovered", 0.0);
60
if (get_int(isPressed) == 1) {
61
set_state(PART:"combo", "pressed", 0.0);
62
set_state(PART:"combo_button", "pressed", 0.0);
67
set_state(PART:"combo", "disabled", 0.0);
68
set_state(PART:"combo_button", "disabled", 0.0);
69
set_state(PART:"combo_button_icon", "disabled", 0.0);
85
name: "combo_clipper";
101
clip_to: "combo_clipper";
103
state: "default" 0.0;
106
normal: "widget/combo/combo_normal.png";
111
state: "disabled" 0.0;
112
inherit: "default" 0.0;
113
color: 255 255 255 150;
116
state: "hovered" 0.0;
117
inherit: "default" 0.0;
119
normal: "widget/combo/combo_hover.png";
124
state: "focused" 0.0;
125
inherit: "default" 0.0;
127
normal: "widget/combo/combo_focus.png";
132
state: "pressed" 0.0;
133
inherit: "default" 0.0;
135
normal: "widget/combo/combo_press.png";
142
name: "bt_combo_clipper";
146
state: "default" 0.0;
159
name: "combo_button";
161
clip_to: "bt_combo_clipper";
163
state: "default" 0.0;
164
min: 18 20; // 3 + 5 + image width (10), 5 + 5 + image height (10)
165
rel1.to: "bt_combo_clipper";
167
normal: "widget/combo/combo_normal_button.png";
172
state: "disabled" 0.0;
173
inherit: "default" 0.0;
174
color: 255 255 255 150;
175
rel1.to: "bt_combo_clipper";
178
state: "hovered" 0.0;
179
inherit: "default" 0.0;
180
rel1.to: "bt_combo_clipper";
182
normal: "widget/combo/combo_hover_button.png";
187
state: "focused" 0.0;
188
inherit: "default" 0.0;
189
rel1.to: "bt_combo_clipper";
191
normal: "widget/combo/combo_focus_button.png";
196
state: "pressed" 0.0;
197
inherit: "default" 0.0;
198
rel1.to: "bt_combo_clipper";
200
normal: "widget/combo/combo_press_button.png";
208
name: "combo_button_icon";
210
clip_to: "bt_combo_clipper";
212
state: "default" 0.0;
215
color: 255 255 255 150;
217
to: "bt_combo_clipper";
222
to: "bt_combo_clipper";
227
normal: "widget/combo/icon.png";
232
state: "disabled" 0.0;
233
inherit: "default" 0.0;
234
color: 255 255 255 50;
236
normal: "widget/combo/icon.png";
243
name: "text_confinement";
246
state: "default" 0.0;
265
set_int(isEnabled, 1);
273
set_int(isPressed, 1);
281
set_int(isFocused, 1);
289
set_int(isHovered, 1);
297
set_int(isEnabled, 0);
298
set_int(isPressed, 0);
299
set_int(isChecked, 0);
300
set_int(isFocused, 0);
301
set_int(isHovered, 0);