diff options
author | David Walter Seikel | 2012-04-22 09:20:32 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-04-22 09:20:32 +1000 |
commit | 3ad3455551be0d7859ecb02290376206d5e66498 (patch) | |
tree | 497917e12b4d7f458dff9765d9b53f64c4e03fc3 /libraries/elementary/data/themes/widgets/spinner.edc | |
parent | Update EFL to latest beta. (diff) | |
download | SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.zip SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.gz SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.bz2 SledjHamr-3ad3455551be0d7859ecb02290376206d5e66498.tar.xz |
And actually include new files, plus elementary libraries.
Diffstat (limited to 'libraries/elementary/data/themes/widgets/spinner.edc')
-rw-r--r-- | libraries/elementary/data/themes/widgets/spinner.edc | 1033 |
1 files changed, 1033 insertions, 0 deletions
diff --git a/libraries/elementary/data/themes/widgets/spinner.edc b/libraries/elementary/data/themes/widgets/spinner.edc new file mode 100644 index 0000000..ad58b65 --- /dev/null +++ b/libraries/elementary/data/themes/widgets/spinner.edc | |||
@@ -0,0 +1,1033 @@ | |||
1 | group { name: "elm/spinner/base/default"; | ||
2 | images { | ||
3 | image: "shelf_inset.png" COMP; | ||
4 | image: "bt_base1.png" COMP; | ||
5 | image: "bt_hilight.png" COMP; | ||
6 | image: "bt_shine.png" COMP; | ||
7 | image: "bt_glow.png" COMP; | ||
8 | image: "bt_dis_base.png" COMP; | ||
9 | image: "bt_dis_hilight.png" COMP; | ||
10 | image: "sp_bt_l.png" COMP; | ||
11 | image: "sp_bt_r.png" COMP; | ||
12 | } | ||
13 | parts { | ||
14 | part { name: "bg"; | ||
15 | type: RECT; | ||
16 | description { state: "default" 0.0; | ||
17 | min: 0 30; | ||
18 | rel1.offset: 1 1; | ||
19 | rel2.offset: -2 -2; | ||
20 | color: 255 255 255 0; | ||
21 | } | ||
22 | } | ||
23 | part { name: "conf_over"; | ||
24 | mouse_events: 0; | ||
25 | description { state: "default" 0.0; | ||
26 | rel1.to: "bg"; | ||
27 | rel2.to: "bg"; | ||
28 | image { | ||
29 | normal: "shelf_inset.png"; | ||
30 | border: 7 7 7 7; | ||
31 | middle: 0; | ||
32 | } | ||
33 | fill.smooth : 0; | ||
34 | } | ||
35 | } | ||
36 | part { name: "left_bt"; | ||
37 | mouse_events: 1; | ||
38 | description { state: "default" 0.0; | ||
39 | rel1 { to: "bg"; | ||
40 | offset: 3 3; | ||
41 | } | ||
42 | rel2 { to: "bg"; | ||
43 | offset: -4 -4; | ||
44 | } | ||
45 | align: 0.0 0.5; | ||
46 | min: 24 24; | ||
47 | aspect: 1.0 1.0; | ||
48 | aspect_preference: VERTICAL; | ||
49 | image { | ||
50 | normal: "bt_base1.png"; | ||
51 | border: 6 6 6 6; | ||
52 | } | ||
53 | fill.smooth : 0; | ||
54 | } | ||
55 | description { state: "clicked" 0.0; | ||
56 | inherit: "default" 0.0; | ||
57 | image.normal: "bt_base1.png"; | ||
58 | image.middle: SOLID; | ||
59 | } | ||
60 | description { state: "disabled" 0.0; | ||
61 | inherit: "default" 0.0; | ||
62 | image { | ||
63 | normal: "bt_dis_base.png"; | ||
64 | border: 4 4 4 4; | ||
65 | } | ||
66 | } | ||
67 | } | ||
68 | part { name: "left_over1"; | ||
69 | mouse_events: 0; | ||
70 | description { state: "default" 0.0; | ||
71 | rel1.to: "left_bt"; | ||
72 | rel2 { to: "left_bt"; | ||
73 | relative: 1.0 0.5; | ||
74 | } | ||
75 | image { | ||
76 | normal: "bt_hilight.png"; | ||
77 | border: 7 7 7 0; | ||
78 | } | ||
79 | } | ||
80 | description { state: "disabled" 0.0; | ||
81 | inherit: "default" 0.0; | ||
82 | image { | ||
83 | normal: "bt_dis_hilight.png"; | ||
84 | border: 4 4 4 0; | ||
85 | } | ||
86 | } | ||
87 | } | ||
88 | part { name: "left_over2"; | ||
89 | mouse_events: 1; | ||
90 | repeat_events: 1; | ||
91 | ignore_flags: ON_HOLD; | ||
92 | description { state: "default" 0.0; | ||
93 | rel1.to: "left_bt"; | ||
94 | rel2.to: "left_bt"; | ||
95 | image { | ||
96 | normal: "bt_shine.png"; | ||
97 | border: 7 7 7 7; | ||
98 | } | ||
99 | } | ||
100 | description { state: "disabled" 0.0; | ||
101 | inherit: "default" 0.0; | ||
102 | visible: 0; | ||
103 | } | ||
104 | } | ||
105 | part { name: "left_over3"; | ||
106 | mouse_events: 1; | ||
107 | repeat_events: 1; | ||
108 | description { state: "default" 0.0; | ||
109 | color: 255 255 255 0; | ||
110 | rel1.to: "left_bt"; | ||
111 | rel2.to: "left_bt"; | ||
112 | image { | ||
113 | normal: "bt_glow.png"; | ||
114 | border: 12 12 12 12; | ||
115 | } | ||
116 | fill.smooth : 0; | ||
117 | } | ||
118 | description { state: "clicked" 0.0; | ||
119 | inherit: "default" 0.0; | ||
120 | visible: 1; | ||
121 | color: 255 255 255 255; | ||
122 | } | ||
123 | } | ||
124 | part { name: "right_bt"; | ||
125 | mouse_events: 1; | ||
126 | description { state: "default" 0.0; | ||
127 | rel1 { to: "bg"; | ||
128 | offset: -26 3; | ||
129 | } | ||
130 | rel2 { to: "bg"; | ||
131 | offset: -4 -4; | ||
132 | } | ||
133 | align: 1.0 0.5; | ||
134 | min: 24 24; | ||
135 | aspect: 1.0 1.0; | ||
136 | aspect_preference: VERTICAL; | ||
137 | image { | ||
138 | normal: "bt_base1.png"; | ||
139 | border: 5 5 4 12; | ||
140 | } | ||
141 | fill.smooth : 0; | ||
142 | } | ||
143 | description { state: "clicked" 0.0; | ||
144 | inherit: "default" 0.0; | ||
145 | image.normal: "bt_base1.png"; | ||
146 | image.middle: SOLID; | ||
147 | } | ||
148 | description { state: "disabled" 0.0; | ||
149 | inherit: "default" 0.0; | ||
150 | image { | ||
151 | normal: "bt_dis_base.png"; | ||
152 | border: 4 4 4 4; | ||
153 | } | ||
154 | } | ||
155 | } | ||
156 | part { name: "right_over1"; | ||
157 | mouse_events: 0; | ||
158 | description { state: "default" 0.0; | ||
159 | rel1.to: "right_bt"; | ||
160 | rel2 { to: "right_bt"; | ||
161 | relative: 1.0 0.5; | ||
162 | } | ||
163 | image { | ||
164 | normal: "bt_hilight.png"; | ||
165 | border: 7 7 7 0; | ||
166 | } | ||
167 | } | ||
168 | description { state: "disabled" 0.0; | ||
169 | inherit: "default" 0.0; | ||
170 | image { | ||
171 | normal: "bt_dis_hilight.png"; | ||
172 | border: 4 4 4 0; | ||
173 | } | ||
174 | } | ||
175 | } | ||
176 | part { name: "right_over2"; | ||
177 | mouse_events: 1; | ||
178 | repeat_events: 1; | ||
179 | ignore_flags: ON_HOLD; | ||
180 | description { state: "default" 0.0; | ||
181 | rel1.to: "right_bt"; | ||
182 | rel2.to: "right_bt"; | ||
183 | image { | ||
184 | normal: "bt_shine.png"; | ||
185 | border: 7 7 7 7; | ||
186 | } | ||
187 | } | ||
188 | description { state: "disabled" 0.0; | ||
189 | inherit: "default" 0.0; | ||
190 | visible: 0; | ||
191 | } | ||
192 | } | ||
193 | part { name: "right_over3"; | ||
194 | mouse_events: 1; | ||
195 | repeat_events: 1; | ||
196 | description { state: "default" 0.0; | ||
197 | color: 255 255 255 0; | ||
198 | rel1.to: "right_bt"; | ||
199 | rel2.to: "right_bt"; | ||
200 | image { | ||
201 | normal: "bt_glow.png"; | ||
202 | border: 12 12 12 12; | ||
203 | } | ||
204 | fill.smooth : 0; | ||
205 | } | ||
206 | description { state: "clicked" 0.0; | ||
207 | inherit: "default" 0.0; | ||
208 | visible: 1; | ||
209 | color: 255 255 255 255; | ||
210 | } | ||
211 | } | ||
212 | part { name: "left_bt_icon"; | ||
213 | repeat_events: 1; | ||
214 | description { state: "default" 0.0; | ||
215 | rel1.to: "left_bt"; | ||
216 | rel1.offset: 4 4; | ||
217 | rel2.to: "left_bt"; | ||
218 | rel2.offset: -5 -5; | ||
219 | align: 0.5 0.5; | ||
220 | min: 16 16; | ||
221 | aspect: 1.0 1.0; | ||
222 | aspect_preference: BOTH; | ||
223 | image.normal: "sp_bt_l.png"; | ||
224 | } | ||
225 | description { state: "rtl" 0.0; | ||
226 | inherit: "default" 0.0; | ||
227 | image.normal: "sp_bt_r.png"; | ||
228 | } | ||
229 | } | ||
230 | part { name: "right_bt_icon"; | ||
231 | repeat_events: 1; | ||
232 | description { state: "default" 0.0; | ||
233 | rel1.to: "right_bt"; | ||
234 | rel1.offset: 4 4; | ||
235 | rel2.to: "right_bt"; | ||
236 | rel2.offset: -5 -5; | ||
237 | align: 0.5 0.5; | ||
238 | min: 16 16; | ||
239 | aspect: 1.0 1.0; | ||
240 | aspect_preference: BOTH; | ||
241 | image.normal: "sp_bt_r.png"; | ||
242 | } | ||
243 | description { state: "rtl" 0.0; | ||
244 | inherit: "default" 0.0; | ||
245 | image.normal: "sp_bt_l.png"; | ||
246 | } | ||
247 | } | ||
248 | part { name: "elm.text"; | ||
249 | type: TEXT; | ||
250 | mouse_events: 0; | ||
251 | scale: 1; | ||
252 | description { state: "default" 0.0; | ||
253 | visible: 1; | ||
254 | align: 0.0 0.5; | ||
255 | rel1 { relative: 1.0 0.0; | ||
256 | offset: 3 2; | ||
257 | to_x: "left_bt"; | ||
258 | to_y: "bg"; | ||
259 | } | ||
260 | rel2 { relative: 0.0 1.0; | ||
261 | offset: -3 -2; | ||
262 | to_x: "right_bt"; | ||
263 | to_y: "bg"; | ||
264 | } | ||
265 | color: 0 0 0 255; | ||
266 | text { | ||
267 | font: "Sans,Edje-Vera"; | ||
268 | size: 10; | ||
269 | min: 1 1; | ||
270 | align: 0.5 0.5; | ||
271 | } | ||
272 | } | ||
273 | description { state: "active" 0.0; | ||
274 | inherit: "default" 0.0; | ||
275 | visible: 0; | ||
276 | } | ||
277 | description { state: "disabled_active" 0.0; | ||
278 | inherit: "default" 0.0; | ||
279 | color: 0 0 0 128; | ||
280 | color3: 0 0 0 0; | ||
281 | } | ||
282 | description { state: "disabled" 0.0; | ||
283 | inherit: "default" 0.0; | ||
284 | color: 0 0 0 128; | ||
285 | color3: 0 0 0 0; | ||
286 | } | ||
287 | } | ||
288 | part { name: "elm.dragable.slider"; | ||
289 | type: RECT; | ||
290 | mouse_events: 0; | ||
291 | scale: 1; | ||
292 | dragable { | ||
293 | x: 1 1 0; | ||
294 | y: 0 0 0; | ||
295 | } | ||
296 | description { state: "default" 0.0; | ||
297 | rel1.to: "bg"; | ||
298 | rel2.to: "bg"; | ||
299 | fixed: 1 1; | ||
300 | color: 0 0 0 0; | ||
301 | } | ||
302 | } | ||
303 | part { name: "button_events"; | ||
304 | type: RECT; | ||
305 | dragable { | ||
306 | events: "elm.dragable.slider"; | ||
307 | } | ||
308 | mouse_events: 1; | ||
309 | description { state: "default" 0.0; | ||
310 | rel1.to: "elm.text"; | ||
311 | rel2.to: "elm.text"; | ||
312 | color: 0 0 0 0; | ||
313 | } | ||
314 | } | ||
315 | part { name: "elm.swallow.entry"; | ||
316 | type: SWALLOW; | ||
317 | description { state: "default" 0.0; | ||
318 | visible: 0; | ||
319 | align: 0.5 0.5; | ||
320 | rel1 { relative: 1.0 0.5; | ||
321 | offset: 3 2; | ||
322 | to_x: "left_bt"; | ||
323 | to_y: "bg"; | ||
324 | } | ||
325 | rel2 { relative: 0.0 0.5; | ||
326 | offset: -3 -2; | ||
327 | to_x: "right_bt"; | ||
328 | to_y: "bg"; | ||
329 | } | ||
330 | fixed: 1 1; | ||
331 | color: 0 0 0 0; | ||
332 | } | ||
333 | description { state: "active" 0.0; | ||
334 | inherit: "default" 0.0; | ||
335 | visible: 1; | ||
336 | color: 255 255 255 255; | ||
337 | } | ||
338 | description { state: "disabled_active" 0.0; | ||
339 | inherit: "default" 0.0; | ||
340 | visible: 0; | ||
341 | } | ||
342 | description { state: "disabled" 0.0; | ||
343 | inherit: "default" 0.0; | ||
344 | visible: 0; | ||
345 | } | ||
346 | } | ||
347 | part { name: "disabler"; | ||
348 | type: RECT; | ||
349 | description { state: "default" 0.0; | ||
350 | color: 0 0 0 0; | ||
351 | visible: 0; | ||
352 | } | ||
353 | description { state: "disabled" 0.0; | ||
354 | inherit: "default" 0.0; | ||
355 | visible: 1; | ||
356 | } | ||
357 | } | ||
358 | } | ||
359 | programs { | ||
360 | program { name: "text_show"; | ||
361 | signal: "elm,state,text,visible"; | ||
362 | source: "elm"; | ||
363 | action: STATE_SET "visible" 0.0; | ||
364 | target: "elm.text"; | ||
365 | } | ||
366 | program { name: "text_hide"; | ||
367 | signal: "elm,state,text,hidden"; | ||
368 | source: "elm"; | ||
369 | action: STATE_SET "default" 0.0; | ||
370 | target: "elm.text"; | ||
371 | } | ||
372 | program { name: "dec"; | ||
373 | signal: "mouse,down,1"; | ||
374 | source: "left_bt"; | ||
375 | action: SIGNAL_EMIT "elm,action,decrement,start" ""; | ||
376 | } | ||
377 | program { name: "dec2"; | ||
378 | signal: "mouse,up,1"; | ||
379 | source: "left_bt"; | ||
380 | action: SIGNAL_EMIT "elm,action,decrement,stop" ""; | ||
381 | } | ||
382 | program { name: "inc"; | ||
383 | signal: "mouse,down,1"; | ||
384 | source: "right_bt"; | ||
385 | action: SIGNAL_EMIT "elm,action,increment,start" ""; | ||
386 | } | ||
387 | program { name: "inc2"; | ||
388 | signal: "mouse,up,1"; | ||
389 | source: "right_bt"; | ||
390 | action: SIGNAL_EMIT "elm,action,increment,stop" ""; | ||
391 | } | ||
392 | program { | ||
393 | name: "left_bt_click"; | ||
394 | signal: "mouse,down,1"; | ||
395 | source: "left_over2"; | ||
396 | action: STATE_SET "clicked" 0.0; | ||
397 | target: "left_bt"; | ||
398 | } | ||
399 | program { | ||
400 | name: "left_bt_unclick"; | ||
401 | signal: "mouse,up,1"; | ||
402 | source: "left_over2"; | ||
403 | action: STATE_SET "default" 0.0; | ||
404 | target: "left_bt"; | ||
405 | } | ||
406 | program { | ||
407 | name: "left_bt_click2"; | ||
408 | signal: "mouse,down,1"; | ||
409 | source: "left_over3"; | ||
410 | action: STATE_SET "clicked" 0.0; | ||
411 | target: "left_over3"; | ||
412 | } | ||
413 | program { | ||
414 | name: "left_bt_unclick2"; | ||
415 | signal: "mouse,up,1"; | ||
416 | source: "left_over3"; | ||
417 | action: STATE_SET "default" 0.0; | ||
418 | transition: DECELERATE 0.5; | ||
419 | target: "left_over3"; | ||
420 | } | ||
421 | program { | ||
422 | name: "left_bt_unclick3"; | ||
423 | signal: "mouse,up,1"; | ||
424 | source: "left_over2"; | ||
425 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
426 | } | ||
427 | program { | ||
428 | name: "left_bt_pressed_anim"; | ||
429 | signal: "elm,left,anim,activate"; | ||
430 | source: "elm"; | ||
431 | action: STATE_SET "clicked" 0.0; | ||
432 | target: "left_bt"; | ||
433 | target: "left_over3"; | ||
434 | after: "left_bt_unpressed_anim"; | ||
435 | } | ||
436 | program { | ||
437 | name: "left_bt_unpressed_anim"; | ||
438 | action: STATE_SET "default" 0.0; | ||
439 | transition: DECELERATE 0.5; | ||
440 | target: "left_bt"; | ||
441 | target: "left_over3"; | ||
442 | } | ||
443 | |||
444 | program { | ||
445 | name: "right_bt_click"; | ||
446 | signal: "mouse,down,1"; | ||
447 | source: "right_over2"; | ||
448 | action: STATE_SET "clicked" 0.0; | ||
449 | target: "right_bt"; | ||
450 | } | ||
451 | program { | ||
452 | name: "right_bt_unclick"; | ||
453 | signal: "mouse,up,1"; | ||
454 | source: "right_over2"; | ||
455 | action: STATE_SET "default" 0.0; | ||
456 | target: "right_bt"; | ||
457 | } | ||
458 | program { | ||
459 | name: "right_bt_click2"; | ||
460 | signal: "mouse,down,1"; | ||
461 | source: "right_over3"; | ||
462 | action: STATE_SET "clicked" 0.0; | ||
463 | target: "right_over3"; | ||
464 | } | ||
465 | program { | ||
466 | name: "right_bt_unclick2"; | ||
467 | signal: "mouse,up,1"; | ||
468 | source: "right_over3"; | ||
469 | action: STATE_SET "default" 0.0; | ||
470 | transition: DECELERATE 0.5; | ||
471 | target: "right_over3"; | ||
472 | } | ||
473 | program { | ||
474 | name: "right_bt_unclick3"; | ||
475 | signal: "mouse,up,1"; | ||
476 | source: "right_over2"; | ||
477 | action: SIGNAL_EMIT "elm,action,click" ""; | ||
478 | } | ||
479 | program { | ||
480 | name: "right_bt_pressed_anim"; | ||
481 | signal: "elm,right,anim,activate"; | ||
482 | source: "elm"; | ||
483 | action: STATE_SET "clicked" 0.0; | ||
484 | target: "right_bt"; | ||
485 | target: "right_over3"; | ||
486 | after: "right_bt_unpressed_anim"; | ||
487 | } | ||
488 | program { | ||
489 | name: "right_bt_unpressed_anim"; | ||
490 | action: STATE_SET "default" 0.0; | ||
491 | transition: DECELERATE 0.5; | ||
492 | target: "right_bt"; | ||
493 | target: "right_over3"; | ||
494 | } | ||
495 | |||
496 | program { name: "disable"; | ||
497 | signal: "elm,state,disabled"; | ||
498 | source: "elm"; | ||
499 | action: STATE_SET "disabled" 0.0; | ||
500 | target: "left_bt"; | ||
501 | target: "left_over1"; | ||
502 | target: "left_over2"; | ||
503 | target: "right_bt"; | ||
504 | target: "right_over1"; | ||
505 | target: "right_over2"; | ||
506 | target: "disabler"; | ||
507 | after: "disable_text"; | ||
508 | } | ||
509 | program { name: "disable_text"; | ||
510 | script { | ||
511 | new st[31]; | ||
512 | new Float:vl; | ||
513 | get_state(PART:"elm.text", st, 30, vl); | ||
514 | if (!strcmp(st, "active")) | ||
515 | set_state(PART:"elm.text", "disabled_active", 0.0); | ||
516 | else | ||
517 | set_state(PART:"elm.text", "disabled", 0.0); | ||
518 | |||
519 | get_state(PART:"elm.swallow.entry", st, 30, vl); | ||
520 | if (!strcmp(st, "active")) | ||
521 | set_state(PART:"elm.swallow.entry", "disabled_active", 0.0); | ||
522 | else | ||
523 | set_state(PART:"elm.swallow.entry", "disabled", 0.0); | ||
524 | } | ||
525 | } | ||
526 | program { name: "enable"; | ||
527 | signal: "elm,state,enabled"; | ||
528 | source: "elm"; | ||
529 | action: STATE_SET "default" 0.0; | ||
530 | target: "left_bt"; | ||
531 | target: "left_over1"; | ||
532 | target: "left_over2"; | ||
533 | target: "right_bt"; | ||
534 | target: "right_over1"; | ||
535 | target: "right_over2"; | ||
536 | target: "disabler"; | ||
537 | after: "enable_text"; | ||
538 | } | ||
539 | program { name: "enable_text"; | ||
540 | script { | ||
541 | new st[31]; | ||
542 | new Float:vl; | ||
543 | get_state(PART:"elm.text", st, 30, vl); | ||
544 | if (!strcmp(st, "disabled_active")) | ||
545 | set_state(PART:"elm.text", "active", 0.0); | ||
546 | else | ||
547 | set_state(PART:"elm.text", "default", 0.0); | ||
548 | |||
549 | get_state(PART:"elm.swallow.entry", st, 30, vl); | ||
550 | if (!strcmp(st, "disabled_active")) | ||
551 | set_state(PART:"elm.swallow.entry", "active", 0.0); | ||
552 | else | ||
553 | set_state(PART:"elm.swallow.entry", "default", 0.0); | ||
554 | } | ||
555 | } | ||
556 | program { name: "active"; | ||
557 | signal: "elm,state,active"; | ||
558 | source: "elm"; | ||
559 | action: STATE_SET "active" 0.0; | ||
560 | target: "elm.text"; | ||
561 | target: "elm.swallow.entry"; | ||
562 | } | ||
563 | program { name: "inactive"; | ||
564 | signal: "elm,state,inactive"; | ||
565 | source: "elm"; | ||
566 | action: STATE_SET "default" 0.0; | ||
567 | target: "elm.text"; | ||
568 | target: "elm.swallow.entry"; | ||
569 | } | ||
570 | program { name: "toggle_text"; | ||
571 | signal: "mouse,up,1"; | ||
572 | source: "button_events"; | ||
573 | action: SIGNAL_EMIT "elm,action,entry,toggle" ""; | ||
574 | } | ||
575 | program { name: "to_rtl"; | ||
576 | signal: "edje,state,rtl"; | ||
577 | source: "edje"; | ||
578 | action: STATE_SET "rtl" 0.0; | ||
579 | target: "right_bt_icon"; | ||
580 | target: "left_bt_icon"; | ||
581 | } | ||
582 | program { name: "to_ltr"; | ||
583 | signal: "edje,state,ltr"; | ||
584 | source: "edje"; | ||
585 | action: STATE_SET "default" 0.0; | ||
586 | target: "right_bt_icon"; | ||
587 | target: "left_bt_icon"; | ||
588 | } | ||
589 | } | ||
590 | } | ||
591 | |||
592 | /////////////////////////////////////////////////////////////////////////////// | ||
593 | group { name: "elm/spinner/base/vertical"; | ||
594 | images { | ||
595 | image: "shelf_inset.png" COMP; | ||
596 | image: "bt_hilight.png" COMP; | ||
597 | image: "bt_shine.png" COMP; | ||
598 | image: "bt_glow.png" COMP; | ||
599 | image: "bt_dis_base.png" COMP; | ||
600 | image: "bt_dis_hilight.png" COMP; | ||
601 | image: "up.png" COMP; | ||
602 | image: "down.png" COMP; | ||
603 | image: "bt_spinner_up.png" COMP; | ||
604 | image: "bt_spinner_down.png" COMP; | ||
605 | image: "bt_spinner_hilight.png" COMP; | ||
606 | } | ||
607 | parts { | ||
608 | part { name: "bg"; | ||
609 | type: RECT; | ||
610 | description { state: "default" 0.0; | ||
611 | min: 0 30; | ||
612 | rel1.offset: 1 1; | ||
613 | rel2.offset: -2 -2; | ||
614 | color: 255 255 255 0; | ||
615 | } | ||
616 | } | ||
617 | part { name: "conf_over"; | ||
618 | mouse_events: 0; | ||
619 | description { state: "default" 0.0; | ||
620 | rel1 { | ||
621 | to: "bg"; | ||
622 | relative: 0.0 0.0; | ||
623 | } | ||
624 | rel2 { | ||
625 | to: "bg"; | ||
626 | } | ||
627 | image { | ||
628 | normal: "shelf_inset.png"; | ||
629 | border: 7 7 7 7; | ||
630 | middle: 0; | ||
631 | } | ||
632 | fill.smooth : 0; | ||
633 | } | ||
634 | } | ||
635 | part { name: "down_bt"; | ||
636 | mouse_events: 1; | ||
637 | description { state: "default" 0.0; | ||
638 | fixed: 1 1; | ||
639 | rel1 { | ||
640 | to: "up_bt"; | ||
641 | relative: 0 1; | ||
642 | offset: 0 1; | ||
643 | } | ||
644 | rel2 { | ||
645 | to_y: "bg"; | ||
646 | to_x: "up_bt"; | ||
647 | relative: 1 1; | ||
648 | offset: -1 -4; | ||
649 | } | ||
650 | align: 1.0 0.5; | ||
651 | min: 24 16; | ||
652 | image { | ||
653 | normal: "bt_spinner_down.png"; | ||
654 | border: 6 6 6 6; | ||
655 | } | ||
656 | fill.smooth : 0; | ||
657 | } | ||
658 | description { state: "clicked" 0.0; | ||
659 | inherit: "default" 0.0; | ||
660 | image.normal: "bt_spinner_down.png"; | ||
661 | image.middle: SOLID; | ||
662 | } | ||
663 | description { state: "disabled" 0.0; | ||
664 | inherit: "default" 0.0; | ||
665 | image { | ||
666 | normal: "bt_dis_base.png"; | ||
667 | border: 4 4 4 4; | ||
668 | } | ||
669 | } | ||
670 | } | ||
671 | part { name: "down_over3"; | ||
672 | mouse_events: 1; | ||
673 | repeat_events: 1; | ||
674 | description { state: "default" 0.0; | ||
675 | color: 255 255 255 0; | ||
676 | rel1.to: "down_bt"; | ||
677 | rel2.to: "down_bt"; | ||
678 | image { | ||
679 | normal: "bt_glow.png"; | ||
680 | border: 12 12 12 12; | ||
681 | } | ||
682 | fill.smooth : 0; | ||
683 | } | ||
684 | description { state: "clicked" 0.0; | ||
685 | inherit: "default" 0.0; | ||
686 | visible: 1; | ||
687 | color: 255 255 255 255; | ||
688 | } | ||
689 | } | ||
690 | part { name: "up_bt"; | ||
691 | mouse_events: 1; | ||
692 | description { state: "default" 0.0; | ||
693 | fixed: 1 0; | ||
694 | rel1 { to: "bg"; | ||
695 | relative: 0 0; | ||
696 | offset: 0 2; | ||
697 | } | ||
698 | rel2 { to: "bg"; | ||
699 | relative: 1 0.5; | ||
700 | offset: -3 0; | ||
701 | } | ||
702 | align: 1.0 0.5; | ||
703 | min: 24 16; | ||
704 | aspect: 1.5 1.0; | ||
705 | aspect_preference: BOTH; | ||
706 | image { | ||
707 | normal: "bt_spinner_up.png"; | ||
708 | border: 6 6 6 6; | ||
709 | } | ||
710 | fill.smooth : 0; | ||
711 | } | ||
712 | description { state: "clicked" 0.0; | ||
713 | inherit: "default" 0.0; | ||
714 | image.normal: "bt_spinner_up.png"; | ||
715 | image.middle: SOLID; | ||
716 | } | ||
717 | description { state: "disabled" 0.0; | ||
718 | inherit: "default" 0.0; | ||
719 | image { | ||
720 | normal: "bt_dis_base.png"; | ||
721 | border: 4 4 4 4; | ||
722 | } | ||
723 | } | ||
724 | } | ||
725 | part { name: "up_over1"; | ||
726 | mouse_events: 0; | ||
727 | description { state: "default" 0.0; | ||
728 | rel1.to: "up_bt"; | ||
729 | rel2 { to: "up_bt"; | ||
730 | relative: 1.0 0.5; | ||
731 | } | ||
732 | image { | ||
733 | normal: "bt_spinner_hilight.png"; | ||
734 | border: 7 7 7 0; | ||
735 | } | ||
736 | } | ||
737 | description { state: "disabled" 0.0; | ||
738 | inherit: "default" 0.0; | ||
739 | image { | ||
740 | normal: "bt_dis_hilight.png"; | ||
741 | border: 4 4 4 0; | ||
742 | } | ||
743 | } | ||
744 | } | ||
745 | part { name: "up_over3"; | ||
746 | mouse_events: 1; | ||
747 | repeat_events: 1; | ||
748 | description { state: "default" 0.0; | ||
749 | color: 255 255 255 0; | ||
750 | rel1.to: "up_bt"; | ||
751 | rel2.to: "up_bt"; | ||
752 | image { | ||
753 | normal: "bt_glow.png"; | ||
754 | border: 12 12 12 12; | ||
755 | } | ||
756 | fill.smooth : 0; | ||
757 | } | ||
758 | description { state: "clicked" 0.0; | ||
759 | inherit: "default" 0.0; | ||
760 | visible: 1; | ||
761 | color: 255 255 255 255; | ||
762 | } | ||
763 | } | ||
764 | part { name: "down_bt_icon"; | ||
765 | repeat_events: 1; | ||
766 | description { state: "default" 0.0; | ||
767 | rel1.to: "down_bt"; | ||
768 | rel1.offset: 5 3; | ||
769 | rel2.to: "down_bt"; | ||
770 | rel2.offset: -6 -3; | ||
771 | align: 0.5 0.5; | ||
772 | image.normal: "down.png"; | ||
773 | } | ||
774 | } | ||
775 | part { name: "up_bt_icon"; | ||
776 | repeat_events: 1; | ||
777 | description { state: "default" 0.0; | ||
778 | rel1.to: "up_bt"; | ||
779 | rel1.offset: 5 3; | ||
780 | rel2.to: "up_bt"; | ||
781 | rel2.offset: -6 -3; | ||
782 | align: 0.5 0.5; | ||
783 | image.normal: "up.png"; | ||
784 | } | ||
785 | } | ||
786 | part { name: "elm.text"; | ||
787 | type: TEXT; | ||
788 | mouse_events: 0; | ||
789 | scale: 1; | ||
790 | description { state: "default" 0.0; | ||
791 | visible: 1; | ||
792 | align: 0.0 0.5; | ||
793 | rel1 { relative: 0.0 0.0; | ||
794 | offset: 3 2; | ||
795 | to_x: "bg"; | ||
796 | to_y: "bg"; | ||
797 | } | ||
798 | rel2 { relative: 0.0 1.0; | ||
799 | offset: -3 -2; | ||
800 | to_x: "down_bt"; | ||
801 | to_y: "bg"; | ||
802 | } | ||
803 | color: 0 0 0 255; | ||
804 | text { | ||
805 | font: "Sans,Edje-Vera"; | ||
806 | size: 10; | ||
807 | min: 1 1; | ||
808 | align: 0.5 0.5; | ||
809 | } | ||
810 | } | ||
811 | description { state: "active" 0.0; | ||
812 | inherit: "default" 0.0; | ||
813 | visible: 0; | ||
814 | } | ||
815 | description { state: "disabled_active" 0.0; | ||
816 | inherit: "default" 0.0; | ||
817 | color: 0 0 0 128; | ||
818 | color3: 0 0 0 0; | ||
819 | } | ||
820 | description { state: "disabled" 0.0; | ||
821 | inherit: "default" 0.0; | ||
822 | color: 0 0 0 128; | ||
823 | color3: 0 0 0 0; | ||
824 | } | ||
825 | } | ||
826 | part { name: "elm.dragable.slider"; | ||
827 | type: RECT; | ||
828 | mouse_events: 0; | ||
829 | scale: 1; | ||
830 | dragable { | ||
831 | x: 1 1 0; | ||
832 | y: 0 0 0; | ||
833 | } | ||
834 | description { state: "default" 0.0; | ||
835 | rel1.to: "bg"; | ||
836 | rel2.to: "bg"; | ||
837 | fixed: 1 1; | ||
838 | color: 0 0 0 0; | ||
839 | } | ||
840 | } | ||
841 | part { name: "button_events"; | ||
842 | type: RECT; | ||
843 | dragable { | ||
844 | events: "elm.dragable.slider"; | ||
845 | } | ||
846 | mouse_events: 1; | ||
847 | description { state: "default" 0.0; | ||
848 | rel1.to: "elm.text"; | ||
849 | rel2.to: "elm.text"; | ||
850 | color: 0 0 0 0; | ||
851 | } | ||
852 | } | ||
853 | part { name: "elm.swallow.entry"; | ||
854 | type: SWALLOW; | ||
855 | description { state: "default" 0.0; | ||
856 | visible: 0; | ||
857 | align: 0.5 0.5; | ||
858 | rel1 { relative: 0.0 0.5; | ||
859 | offset: 3 2; | ||
860 | to: "bg"; | ||
861 | } | ||
862 | rel2 { relative: 1.0 0.5; | ||
863 | offset: -3 -2; | ||
864 | to: "bg"; | ||
865 | } | ||
866 | fixed: 1 1; | ||
867 | color: 0 0 0 0; | ||
868 | } | ||
869 | description { state: "active" 0.0; | ||
870 | inherit: "default" 0.0; | ||
871 | visible: 1; | ||
872 | color: 255 255 255 255; | ||
873 | } | ||
874 | description { state: "disabled_active" 0.0; | ||
875 | inherit: "default" 0.0; | ||
876 | visible: 0; | ||
877 | } | ||
878 | description { state: "disabled" 0.0; | ||
879 | inherit: "default" 0.0; | ||
880 | visible: 0; | ||
881 | } | ||
882 | } | ||
883 | part { name: "disabler"; | ||
884 | type: RECT; | ||
885 | description { state: "default" 0.0; | ||
886 | color: 0 0 0 0; | ||
887 | visible: 0; | ||
888 | } | ||
889 | description { state: "disabled" 0.0; | ||
890 | inherit: "default" 0.0; | ||
891 | visible: 1; | ||
892 | } | ||
893 | } | ||
894 | } | ||
895 | programs { | ||
896 | program { name: "text_show"; | ||
897 | signal: "elm,state,text,visible"; | ||
898 | source: "elm"; | ||
899 | action: STATE_SET "visible" 0.0; | ||
900 | target: "elm.text"; | ||
901 | } | ||
902 | program { name: "text_hide"; | ||
903 | signal: "elm,state,text,hidden"; | ||
904 | source: "elm"; | ||
905 | action: STATE_SET "default" 0.0; | ||
906 | target: "elm.text"; | ||
907 | } | ||
908 | program { name: "dec"; | ||
909 | signal: "mouse,down,1"; | ||
910 | source: "down_bt"; | ||
911 | action: SIGNAL_EMIT "elm,action,decrement,start" ""; | ||
912 | } | ||
913 | program { name: "dec2"; | ||
914 | signal: "mouse,up,1"; | ||
915 | source: "down_bt"; | ||
916 | action: SIGNAL_EMIT "elm,action,decrement,stop" ""; | ||
917 | } | ||
918 | program { name: "inc"; | ||
919 | signal: "mouse,down,1"; | ||
920 | source: "up_bt"; | ||
921 | action: SIGNAL_EMIT "elm,action,increment,start" ""; | ||
922 | } | ||
923 | program { name: "inc2"; | ||
924 | signal: "mouse,up,1"; | ||
925 | source: "up_bt"; | ||
926 | action: SIGNAL_EMIT "elm,action,increment,stop" ""; | ||
927 | } | ||
928 | program { | ||
929 | name: "down_bt_click2"; | ||
930 | signal: "mouse,down,1"; | ||
931 | source: "down_over3"; | ||
932 | action: STATE_SET "clicked" 0.0; | ||
933 | target: "down_over3"; | ||
934 | } | ||
935 | program { | ||
936 | name: "down_bt_unclick2"; | ||
937 | signal: "mouse,up,1"; | ||
938 | source: "down_over3"; | ||
939 | action: STATE_SET "default" 0.0; | ||
940 | transition: DECELERATE 0.5; | ||
941 | target: "down_over3"; | ||
942 | } | ||
943 | program { | ||
944 | name: "up_bt_click2"; | ||
945 | signal: "mouse,down,1"; | ||
946 | source: "up_over3"; | ||
947 | action: STATE_SET "clicked" 0.0; | ||
948 | target: "up_over3"; | ||
949 | } | ||
950 | program { | ||
951 | name: "up_bt_unclick2"; | ||
952 | signal: "mouse,up,1"; | ||
953 | source: "up_over3"; | ||
954 | action: STATE_SET "default" 0.0; | ||
955 | transition: DECELERATE 0.5; | ||
956 | target: "up_over3"; | ||
957 | } | ||
958 | program { name: "disable"; | ||
959 | signal: "elm,state,disabled"; | ||
960 | source: "elm"; | ||
961 | action: STATE_SET "disabled" 0.0; | ||
962 | target: "down_bt"; | ||
963 | target: "up_bt"; | ||
964 | target: "disabler"; | ||
965 | after: "disable_text"; | ||
966 | } | ||
967 | program { name: "disable_text"; | ||
968 | script { | ||
969 | new st[31]; | ||
970 | new Float:vl; | ||
971 | get_state(PART:"elm.text", st, 30, vl); | ||
972 | if (!strcmp(st, "active")) | ||
973 | set_state(PART:"elm.text", "disabled_active", 0.0); | ||
974 | else | ||
975 | set_state(PART:"elm.text", "disabled", 0.0); | ||
976 | |||
977 | get_state(PART:"elm.swallow.entry", st, 30, vl); | ||
978 | if (!strcmp(st, "active")) | ||
979 | set_state(PART:"elm.swallow.entry", "disabled_active", 0.0); | ||
980 | else | ||
981 | set_state(PART:"elm.swallow.entry", "disabled", 0.0); | ||
982 | } | ||
983 | } | ||
984 | program { name: "enable"; | ||
985 | signal: "elm,state,enabled"; | ||
986 | source: "elm"; | ||
987 | action: STATE_SET "default" 0.0; | ||
988 | target: "down_bt"; | ||
989 | target: "up_bt"; | ||
990 | target: "disabler"; | ||
991 | after: "enable_text"; | ||
992 | } | ||
993 | program { name: "enable_text"; | ||
994 | script { | ||
995 | new st[31]; | ||
996 | new Float:vl; | ||
997 | get_state(PART:"elm.text", st, 30, vl); | ||
998 | if (!strcmp(st, "disabled_active")) | ||
999 | set_state(PART:"elm.text", "active", 0.0); | ||
1000 | else | ||
1001 | set_state(PART:"elm.text", "default", 0.0); | ||
1002 | |||
1003 | get_state(PART:"elm.swallow.entry", st, 30, vl); | ||
1004 | if (!strcmp(st, "disabled_active")) | ||
1005 | set_state(PART:"elm.swallow.entry", "active", 0.0); | ||
1006 | else | ||
1007 | set_state(PART:"elm.swallow.entry", "default", 0.0); | ||
1008 | } | ||
1009 | } | ||
1010 | program { name: "active"; | ||
1011 | signal: "elm,state,active"; | ||
1012 | source: "elm"; | ||
1013 | action: STATE_SET "active" 0.0; | ||
1014 | target: "elm.text"; | ||
1015 | target: "elm.swallow.entry"; | ||
1016 | } | ||
1017 | program { name: "inactive"; | ||
1018 | signal: "elm,state,inactive"; | ||
1019 | source: "elm"; | ||
1020 | action: STATE_SET "default" 0.0; | ||
1021 | target: "elm.text"; | ||
1022 | target: "elm.swallow.entry"; | ||
1023 | } | ||
1024 | program { name: "toggle_text"; | ||
1025 | signal: "mouse,up,1"; | ||
1026 | source: "button_events"; | ||
1027 | action: SIGNAL_EMIT "elm,action,entry,toggle" ""; | ||
1028 | } | ||
1029 | } | ||
1030 | } | ||
1031 | |||
1032 | |||
1033 | /////////////////////////////////////////////////////////////////////////////// | ||