2 name: "elm/layout/dialer/history/img";
10 min: LIST_ICON_SIZE LIST_ICON_SIZE;
11 max: LIST_ICON_SIZE LIST_ICON_SIZE;
18 signal: "mouse,clicked,1";
20 action: SIGNAL_EMIT "clicked,more" "gui";
26 name: "elm/genlist/item/history/default";
29 item: "texts" "text.call.name text.call.time text.call.type";
30 item: "contents" "call.swallow.more";
31 item: "states" "missed";
37 public not_first; /* can't call it 'first' as globals start as 0 */
39 public anim_states() {
40 new m = get_int(missed);
41 new s = get_int(selected);
45 run_program(PROGRAM:"show_selected");
47 run_program(PROGRAM:"show_missed");
50 run_program(PROGRAM:"show_selected");
52 run_program(PROGRAM:"show_default");
56 public set_missed(val) {
57 new m = get_int(missed);
58 new s = get_int(selected);
64 if (get_int(not_first)) {
67 run_program(PROGRAM:"animate_selected");
69 run_program(PROGRAM:"animate_missed");
72 run_program(PROGRAM:"animate_selected");
74 run_program(PROGRAM:"animate_default");
77 set_int(not_first, 1);
82 public set_selected(val) {
83 new s = get_int(selected);
86 set_int(selected, val);
93 image: "ico_arrow_right.png" COMP;
94 image: "ico_del.png" COMP;
104 state: "default" 0.0;
105 color: 255 255 255 0;
106 color_class: "action";
107 min: ACTION_WIDTH LIST_ITEM_HEIGHT;
110 state: "selected" 0.0;
111 inherit: "default" 0.0;
112 color: 255 255 255 255;
116 name: "text.call.name";
121 state: "default" 0.0;
122 color: 255 255 255 255;
123 color_class: "action";
126 offset: BORDER_PADDING ITEM_PADDING;
129 to_x: "call.swallow.more";
131 offset: -ITEM_PADDING -1;
142 inherit: "default" 0.0;
143 color_class: "caution";
146 state: "selected" 0.0;
147 inherit: "default" 0.0;
153 name: "text.call.time";
158 state: "default" 0.0;
159 color: 255 255 255 128;
160 color_class: "action";
163 offset: BORDER_PADDING 0;
167 offset: (-BORDER_PADDING - 1) (-ITEM_PADDING - 1);
178 inherit: "default" 0.0;
179 color_class: "caution";
182 state: "selected" 0.0;
183 inherit: "default" 0.0;
189 name: "text.call.type";
194 state: "default" 0.0;
195 color: 255 255 255 128;
196 color_class: "action";
202 to_x: "call.swallow.more";
204 offset: (-ITEM_PADDING - ITEM_PADDING) (-ITEM_PADDING - 1);
215 inherit: "default" 0.0;
216 color_class: "caution";
219 state: "selected" 0.0;
220 inherit: "default" 0.0;
226 name: "call.img.more";
230 state: "default" 0.0;
231 rel1.to: "call.swallow.more";
232 rel2.to: "call.swallow.more";
233 color_class: "action";
235 normal: "ico_arrow_right.png";
241 inherit: "default" 0.0;
244 state: "selected" 0.0;
245 inherit: "default" 0.0;
251 name: "call.swallow.more";
255 state: "default" 0.0;
256 min: LIST_ICON_SIZE LIST_ICON_SIZE;
257 max: LIST_ICON_SIZE LIST_ICON_SIZE;
262 offset: -BORDER_PADDING 0;
266 offset: -BORDER_PADDING -1;
274 signal: "elm,state,missed,active";
281 signal: "elm,state,missed,passive";
288 signal: "elm,state,selected";
295 signal: "elm,state,unselected";
304 action: STATE_SET "missed" 0.0;
306 target: "text.call.name";
307 target: "text.call.time";
308 target: "text.call.type";
309 target: "call.img.more";
312 name: "show_default";
313 action: STATE_SET "default" 0.0;
315 target: "text.call.name";
316 target: "text.call.time";
317 target: "text.call.type";
318 target: "call.img.more";
321 name: "show_selected";
322 action: STATE_SET "selected" 0.0;
324 target: "text.call.name";
325 target: "text.call.time";
326 target: "text.call.type";
327 target: "call.img.more";
331 name: "animate_missed";
332 action: STATE_SET "missed" 0.0;
333 transition: DECELERATE 0.1;
335 target: "text.call.name";
336 target: "text.call.time";
337 target: "text.call.type";
338 target: "call.img.more";
341 name: "animate_default";
342 action: STATE_SET "default" 0.0;
343 transition: DECELERATE 0.1;
345 target: "text.call.name";
346 target: "text.call.time";
347 target: "text.call.type";
348 target: "call.img.more";
351 name: "animate_selected";
352 action: STATE_SET "selected" 0.0;
353 transition: DECELERATE 0.1;
355 target: "text.call.name";
356 target: "text.call.time";
357 target: "text.call.type";
358 target: "call.img.more";
364 name: "elm/genlist/item/history-delete/default";
365 alias: "elm/genlist/item_odd/history-delete/default";
368 item: "contents" "call.swallow.delete";
369 item: "mode_part" "elm.swallow.decorate.content";
374 name: "content.clipper";
377 state: "default" 0.0;
380 state: "decorated" 0.0;
381 inherit: "default" 0.0;
383 offset: (-BORDER_PADDING - LIST_ICON_SIZE - ITEM_PADDING - 1) -1;
389 name: "elm.swallow.decorate.content";
393 clip_to: "content.clipper";
395 state: "default" 0.0;
400 name: "call.swallow.delete";
405 state: "default" 0.0;
414 state: "decorated" 0.0;
415 inherit: "default" 0.0;
420 offset: -BORDER_PADDING 0;
424 offset: -BORDER_PADDING -1;
431 name: "animate_decorated";
432 signal: "elm,state,decorate,enabled,effect";
434 action: STATE_SET "decorated" 0.0;
435 target: "content.clipper";
436 after: "animate_decorated2";
439 name: "animate_decorated2";
440 action: STATE_SET "decorated" 0.0;
441 transition: ACCELERATE 0.15;
442 target: "call.swallow.delete";
446 name: "animate_default";
447 signal: "elm,state,decorate,disabled,effect";
449 action: STATE_SET "default" 0.0;
450 transition: ACCELERATE 0.15;
451 target: "call.swallow.delete";
452 after: "animate_default2";
455 name: "animate_default2";
456 action: STATE_SET "default" 0.0;
457 target: "content.clipper";
461 signal: "elm,state,decorate,enabled";
463 action: STATE_SET "decorated" 0.0;
464 target: "content.clipper";
465 target: "call.swallow.delete";
468 signal: "elm,state,decorate,disabled";
470 action: STATE_SET "default" 0.0;
471 target: "content.clipper";
472 target: "call.swallow.delete";
476 signal: "elm,state,slide,active";
478 after: "animate_decorated";
481 signal: "elm,state,slide,passive";
483 after: "animate_default";
490 name: "elm/button/base/history-delete";
497 state: "default" 0.0;
498 min: LIST_ICON_SIZE LIST_ICON_SIZE;
499 max: LIST_ICON_SIZE LIST_ICON_SIZE;
500 color: 255 255 255 255;
501 color_class: "caution";
503 normal: "ico_del.png";
508 state: "pressed" 0.0;
509 inherit: "default" 0.0;
510 color: 255 255 255 128;
516 signal: "mouse,down,1";
518 action: SIGNAL_EMIT "elm,action,press" "";
521 signal: "mouse,up,1";
523 action: SIGNAL_EMIT "elm,action,unpress" "";
526 signal: "mouse,clicked,1";
528 action: SIGNAL_EMIT "elm,action,click" "";
532 signal: "mouse,up,1";
534 action: STATE_SET "default" 0.0;
535 transition: ACCELERATE 0.1;
540 signal: "mouse,down,1";
542 action: STATE_SET "pressed" 0.0;
543 transition: ACCELERATE 0.1;