scale, 1;
description {
state, "default" 0.0;
- rel1.relative, 1.0 0.5;
- rel2.relative, 1.0 0.5;
+ rel1.relative, 1.0 0.0;
+ rel2.relative, 1.0 1.0;
min, 536 0;
align, 1.0 0.5;
fixed, 1 0;
}
group {
- name, GRP_CHANNELINFO;
+ name, GRP_LAYOUT_CHANNELINFO;
+ parts {
+ part {
+ name, PART_CONTENT;
+ type, SWALLOW;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1.relative, 1.0 0.5;
+ rel2.relative, 1.0 0.5;
+ min, 536 486;
+ align, 0.0 0.5;
+ fixed, 1 1;
+ visible, 0;
+ }
+ description {
+ state, "show" 0.0;
+ inherit, "default" 0.0;
+ align, 1.0 0.5;
+ visible, 1;
+ }
+ }
+ }
+ programs {
+ program {
+ signal, SIGNAL_SHOW;
+ action, STATE_SET "show" 0.0;
+ target, PART_CONTENT;
+ transition, CUBIC_BEZIER 0.5 TRANSITION_EASE_IN_OUT;
+ }
+ program {
+ signal, SIGNAL_HIDE;
+ source, SOURCE_ELM;
+ action, STATE_SET "default" 0.0;
+ target, PART_CONTENT;
+ transition, CUBIC_BEZIER 0.167 TRANSITION_EASE_OUT;
+ after, "hide_finished";
+ }
+ program {
+ name, "hide_finished";
+ action, SIGNAL_EMIT SIGNAL_HIDE_FINISHED SOURCE_ELM;
+ }
+ }
+}
+
+group {
+ name, GRP_LAYOUT_CHANNELINFO_LIST;
+ images {
+ image, "btn_navigation_up.png" COMP;
+ image, "btn_navigation_down.png" COMP;
+ }
parts {
part {
name, "bg";
- type, RECT;
+ type, SPACER;
scale, 1;
description {
state, "default" 0.0;
rel1.relative, 1.0 0.5;
rel2.relative, 1.0 0.5;
- min, 536 174;
+ min, 536 486;
+ align, 0.0 0.5;
+ fixed, 1 1;
+ }
+ description {
+ state, "show" 0.0;
+ inherit, "default" 0.0;
align, 1.0 0.5;
+ }
+ }
+ part {
+ name, "part.navigation_up";
+ type, IMAGE;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ image.normal, "btn_navigation_up.png";
+ rel1 {
+ to, "bg";
+ relative, 0.5 0.0;
+ }
+ rel2 {
+ to, "bg";
+ relative, 0.5 0.0;
+ }
+ min, 98 34;
+ align, 0.5 0.0;
+ fixed, 1 1;
+ visible, 1;
+ }
+ }
+ part {
+ name, "padding.next_channel";
+ type, SPACER;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "part.navigation_up";
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, "part.navigation_up";
+ relative, 0.5 1.0;
+ }
+ min, 0 20;
+ align, 0.5 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, "clip_next";
+ type, RECT;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "padding.next_channel";
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, "padding.next_channel";
+ relative, 0.5 1.0;
+ }
+ min, 536 70;
+ align, 0.5 0.0;
+ fixed, 1 1;
+ color, 255 255 255 0;
+ }
+ description {
+ state, "show" 0.0;
+ inherit, "default" 0.0;
+ color, 255 255 255 255;
+ }
+ }
+ part {
+ name, PART_CHANNELINFO_LIST_NEXT;
+ type, SWALLOW;
+ clip_to, "clip_next";
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "clip_next";
+ relative, 0.0 0.5;
+ offset, 0 20;
+ }
+ rel2 {
+ to, "clip_next";
+ relative, 1.0 0.5;
+ offset, 0 20;
+ }
+ align, 0.0 0.5;
+ }
+ description {
+ state, "show" 0.0;
+ inherit, "default" 0.0;
+ rel1.offset, 0 0;
+ rel2.offset, 0 0;
+ }
+ description {
+ state, "up" 0.0;
+ inherit, "show" 0.0;
+ rel1.relative, 0.0 0.0;
+ rel2.relative, 1.0 0.0;
+ align, 0.0 0.0;
+ }
+ description {
+ state, "down" 0.0;
+ inherit, "show" 0.0;
+ rel1.relative, 0.0 1.0;
+ rel2.relative, 1.0 1.0;
+ align, 0.0 1.0;
+ }
+ }
+ part {
+ name, "padding.current_channel";
+ type, SPACER;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "clip_next";
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, "clip_next";
+ relative, 0.5 1.0;
+ }
+ min, 0 32;
+ align, 0.5 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, "clip_current";
+ type, RECT;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "padding.current_channel";
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, "padding.current_channel";
+ relative, 0.5 1.0;
+ }
+ min, 536 174;
+ align, 0.5 0.0;
fixed, 1 1;
+ color, 255 255 255 0;
+ }
+ description {
+ state, "show" 0.0;
+ inherit, "default" 0.0;
+ color, 255 255 255 255;
+ }
+ }
+ part {
+ name, PART_CHANNELINFO_LIST_CURRENT;
+ type, SWALLOW;
+ clip_to, "clip_current";
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "clip_current";
+ relative, 0.0 0.5;
+ }
+ rel2 {
+ to, "clip_current";
+ relative, 1.0 0.5;
+ }
+ align, 0.0 0.5;
+ }
+ description {
+ state, "up" 0.0;
+ inherit, "default" 0.0;
+ rel1.relative, 0.0 0.0;
+ rel2.relative, 1.0 0.0;
+ align, 0.0 0.0;
+ }
+ description {
+ state, "down" 0.0;
+ inherit, "default" 0.0;
+ rel1.relative, 0.0 1.0;
+ rel2.relative, 1.0 1.0;
+ align, 0.0 1.0;
+ }
+ }
+ part {
+ name, "padding.prev_channel";
+ type, SPACER;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "clip_current";
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, "clip_current";
+ relative, 0.5 1.0;
+ }
+ min, 0 32;
+ align, 0.5 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, "clip_prev";
+ type, RECT;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "padding.prev_channel";
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, "padding.prev_channel";
+ relative, 0.5 1.0;
+ }
+ min, 536 70;
+ align, 0.5 0.0;
+ fixed, 1 1;
+ color, 255 255 255 0;
+ }
+ description {
+ state, "show" 0.0;
+ inherit, "default" 0.0;
+ color, 255 255 255 255;
+ }
+ }
+ part {
+ name, PART_CHANNELINFO_LIST_PREV;
+ type, SWALLOW;
+ clip_to, "clip_prev";
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "clip_prev";
+ relative, 0.0 0.5;
+ offset, 0 -20;
+ }
+ rel2 {
+ to, "clip_prev";
+ relative, 1.0 0.5;
+ offset, 0 -20;
+ }
+ align, 0.0 0.5;
+ }
+ description {
+ state, "show" 0.0;
+ inherit, "default" 0.0;
+ rel1.offset, 0 0;
+ rel2.offset, 0 0;
+ }
+ description {
+ state, "up" 0.0;
+ inherit, "show" 0.0;
+ rel1.relative, 0.0 0.0;
+ rel2.relative, 1.0 0.0;
+ align, 0.0 0.0;
+ }
+ description {
+ state, "down" 0.0;
+ inherit, "show" 0.0;
+ rel1.relative, 0.0 1.0;
+ rel2.relative, 1.0 1.0;
+ align, 0.0 1.0;
+ }
+ }
+ part {
+ name, "padding.navigation_down";
+ type, SPACER;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "clip_prev";
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, "clip_prev";
+ relative, 0.5 1.0;
+ }
+ min, 0 20;
+ align, 0.0 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, "part.navigation_down";
+ type, IMAGE;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ image.normal, "btn_navigation_down.png";
+ rel1 {
+ to, "padding.navigation_down";
+ relative, 0.5 1.0;
+ }
+ rel2 {
+ to, "padding.navigation_down";
+ relative, 0.5 1.0;
+ }
+ min, 98 34;
+ align, 0.5 0.0;
+ fixed, 1 1;
+ visible, 1;
+ }
+ }
+ }
+ programs {
+ program {
+ signal, SIGNAL_SHOW;
+ action, STATE_SET "show" 0.0;
+ target, "bg";
+ after, "show_current";
+ after, "show_other";
+ }
+ program {
+ name, "show_current";
+ action, STATE_SET "show" 0.0;
+ target, "clip_current";
+ transition, CUBIC_BEZIER 0.334 TRANSITION_EASE_IN_OUT;
+ }
+ program {
+ name, "show_other";
+ action, STATE_SET "show" 0.0;
+ target, "clip_next";
+ target, PART_CHANNELINFO_LIST_NEXT;
+ target, "clip_prev";
+ target, PART_CHANNELINFO_LIST_PREV;
+ transition, CUBIC_BEZIER 0.401 TRANSITION_EASE_IN_OUT;
+ }
+ program {
+ signal, SIGNAL_HIDE;
+ source, SOURCE_ELM;
+ action, STATE_SET "default" 0.0;
+ target, "bg";
+ transition, CUBIC_BEZIER 0.167 TRANSITION_EASE_OUT;
+ sequence {
+ action, STATE_SET "default" 0.0;
+ target, "clip_next";
+ target, PART_CHANNELINFO_LIST_NEXT;
+ target, "clip_prev";
+ target, PART_CHANNELINFO_LIST_PREV;
+ target, "clip_current";
+
+ action, SIGNAL_EMIT SIGNAL_HIDE_FINISHED SOURCE_ELM;
+ }
+ }
+ program {
+ signal, SIGNAL_ANIM_MOVE_UP;
+ source, SOURCE_PROGRAM;
+ action, STATE_SET "show" 0.0;
+ target, PART_CHANNELINFO_LIST_NEXT;
+ target, PART_CHANNELINFO_LIST_CURRENT;
+ target, PART_CHANNELINFO_LIST_PREV;
+ sequence {
+ action, STATE_SET "up" 0.0;
+ transition, CUBIC_BEZIER 0.667 TRANSITION_EASE_IN_OUT;
+ target, PART_CHANNELINFO_LIST_NEXT;
+ target, PART_CHANNELINFO_LIST_CURRENT;
+ target, PART_CHANNELINFO_LIST_PREV;
+ after, "anim_end";
+ }
+ }
+ program {
+ signal, SIGNAL_ANIM_MOVE_DOWN;
+ source, SOURCE_PROGRAM;
+ action, STATE_SET "show" 0.0;
+ target, PART_CHANNELINFO_LIST_NEXT;
+ target, PART_CHANNELINFO_LIST_CURRENT;
+ target, PART_CHANNELINFO_LIST_PREV;
+ sequence {
+ action, STATE_SET "down" 0.0;
+ transition, CUBIC_BEZIER 0.667 TRANSITION_EASE_IN_OUT;
+ target, PART_CHANNELINFO_LIST_NEXT;
+ target, PART_CHANNELINFO_LIST_CURRENT;
+ target, PART_CHANNELINFO_LIST_PREV;
+ after, "anim_end";
+ }
+ }
+ program {
+ name, "anim_end";
+ action, SIGNAL_EMIT SIGNAL_ANIM_FINISHED SOURCE_ELM;
+ }
+ }
+}
+
+group {
+ name, GRP_LAYOUT_CHANNELINFO_SEARCH;
+ parts {
+ part {
+ name, PART_CONTENT;
+ type, SWALLOW;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1.relative, 1.0 0.0;
+ rel2.relative, 1.0 1.0;
+ min, 536 0;
+ align, 1.0 0.0;
+ fixed, 1 0;
+ }
+ }
+ }
+}
+
+group {
+ name, GRP_CHANNELINFO;
+ images {
+ image, "ic_thumbnail_favorite_01.png" COMP;
+ image, "ic_thumbnail_lock_01_foc.png" COMP;
+ image, "ic_thumbnail_lock_01_nor.png" COMP;
+ }
+ script {
+ public is_locked=0, is_favorite=0, is_focused=0;
+
+ public set_states() {
+ new focused;
+ new locked;
+ new favorite;
+
+ focused = get_int(is_focused);
+ locked = get_int(is_locked);
+ favorite = get_int(is_favorite);
+
+ if (locked == 1) {
+ if (focused == 1)
+ run_program(PROGRAM:"do_focus_locked");
+ else
+ run_program(PROGRAM:"do_locked");
+ }
+
+ if (favorite == 1)
+ run_program(PROGRAM:"do_favorite");
+ }
+ }
+ parts {
+ part {
+ name, "bg";
+ type, RECT;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1.relative, 0.0 0.5;
+ rel2.relative, 0.0 0.5;
+ min, 536 174;
+ align, 0.0 0.5;
}
description {
state, "focused" 0.0;
}
part {
name, PART_CHANNELINFO_STATUS;
- type, SWALLOW;
+ type, SPACER;
scale, 1;
description {
state, "default" 0.0;
fixed, 1 1;
}
}
+
+ part {
+ name, PART_CHANNELINFO_LOCKED;
+ type, IMAGE;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ image.normal, "ic_thumbnail_lock_01_nor.png";
+ rel1 {
+ to, PART_CHANNELINFO_STATUS;
+ relative, 1.0 0.0;
+ }
+ rel2 {
+ to, PART_CHANNELINFO_STATUS;
+ relative, 1.0 0.0;
+ }
+ min, 0 0;
+ align, 1.0 0.0;
+ fixed, 1 1;
+ visible, 0;
+ }
+ description {
+ state, "visible" 0.0;
+ inherit, "default" 0.0;
+ min, 28 28;
+ visible, 1;
+ }
+ description {
+ state, "focused" 0.0;
+ inherit, "default" 0.0;
+ image.normal, "ic_thumbnail_lock_01_foc.png";
+ min, 28 28;
+ visible, 1;
+ }
+ }
+ part {
+ name, "padding.channelinfo.locked";
+ type, SPACER;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, PART_CHANNELINFO_LOCKED;
+ relative, 0.0 0.0;
+ }
+ rel2 {
+ to, PART_CHANNELINFO_LOCKED;
+ relative, 0.0 0.0;
+ }
+ min, 0 0;
+ align, 1.0 0.0;
+ fixed, 1 1;
+ }
+ description {
+ state, "visible" 0.0;
+ inherit, "default" 0.0;
+ min, 10 0;
+ }
+ description {
+ state, "focused" 0.0;
+ inherit, "default" 0.0;
+ min, 10 0;
+ }
+ }
+ part {
+ name, PART_CHANNELINFO_FAVORITE;
+ type, IMAGE;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ image.normal, "ic_thumbnail_favorite_01.png";
+ rel1 {
+ to, "padding.channelinfo.locked";
+ relative, 0.0 0.0;
+ }
+ rel2 {
+ to, "padding.channelinfo.locked";
+ relative, 0.0 0.0;
+ }
+ min, 0 0;
+ align, 1.0 0.0;
+ fixed, 1 1;
+ visible, 0;
+ }
+ description {
+ state, "visible" 0.0;
+ inherit, "default" 0.0;
+ min, 28 28;
+ visible, 1;
+ }
+ }
+ part {
+ name, "padding.channelinfo.favorite";
+ type, SPACER;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, PART_CHANNELINFO_FAVORITE;
+ relative, 0.0 0.0;
+ }
+ rel2 {
+ to, PART_CHANNELINFO_FAVORITE;
+ relative, 0.0 0.0;
+ }
+ min, 0 0;
+ align, 1.0 0.0;
+ fixed, 1 1;
+ }
+ description {
+ state, "visible" 0.0;
+ inherit, "default" 0.0;
+ min, 10 0;
+ }
+ }
}
programs {
program {
name, "focused";
signal, SIGNAL_FOCUSED;
source, SOURCE_ELM;
+ script {
+ set_int(is_focused, 1);
+ set_states();
+ run_program(PROGRAM:"do_focused");
+ }
+ }
+ program {
+ name, "do_focused";
action, STATE_SET "focused" 0.0;
target, "bg";
target, PART_CHANNELINFO_CHANNEL;
name, "unfocused";
signal, SIGNAL_UNFOCUSED;
source, SOURCE_ELM;
+ script {
+ set_int(is_focused, 0);
+ set_states();
+ run_program(PROGRAM:"do_unfocused");
+ }
+ }
+ program {
+ name, "do_unfocused";
action, STATE_SET "default" 0.0;
target, "bg";
target, PART_CHANNELINFO_CHANNEL;
target, PART_CHANNELINFO_TITLE;
target, PART_CHANNELINFO_TIME;
}
+ program {
+ name, "reset";
+ signal, SIGNAL_RESET;
+ source, SOURCE_PROGRAM;
+ script {
+ set_int(is_locked, 0);
+ set_int(is_favorite, 0);
+ run_program(PROGRAM:"do_reset");
+ }
+ }
+ program {
+ name, "do_reset";
+ action, STATE_SET "default" 0.0;
+ target, PART_CHANNELINFO_FAVORITE;
+ target, "padding.channelinfo.favorite";
+ target, PART_CHANNELINFO_LOCKED;
+ target, "padding.channelinfo.locked";
+ }
+ program {
+ name, "set_locked";
+ signal, SIGNAL_LOCKED;
+ source, SOURCE_PROGRAM;
+ script {
+ set_int(is_locked, 1);
+ set_states();
+ }
+ }
+ program {
+ name, "set_favorite";
+ signal, SIGNAL_FAVORITE;
+ source, SOURCE_PROGRAM;
+ script {
+ set_int(is_favorite, 1);
+ set_states();
+ }
+ }
+ program {
+ name, "do_favorite";
+ action, STATE_SET "visible" 0.0;
+ target, PART_CHANNELINFO_FAVORITE;
+ target, "padding.channelinfo.favorite";
+ }
+ program {
+ name, "do_locked";
+ action, STATE_SET "visible" 0.0;
+ target, PART_CHANNELINFO_LOCKED;
+ target, "padding.channelinfo.locked";
+ }
+ program {
+ name, "do_focus_locked";
+ action, STATE_SET "focused" 0.0;
+ target, PART_CHANNELINFO_LOCKED;
+ target, "padding.channelinfo.locked";
+ }
+ }
+}
+
+group {
+ name, GRP_CHANNELINFO_SIMPLE;
+ parts {
+ part {
+ name, "bg";
+ type, RECT;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ min, 536 70;
+ align, 0.0 0.0;
+ visible, 0;
+ }
+ }
+ part {
+ name, "padding.left";
+ type, SPACER;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "bg";
+ relative, 0.0 0.0;
+ }
+ rel2 {
+ to, "bg";
+ relative, 0.0 0.0;
+ }
+ min, 28 0;
+ align, 0.0 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, PART_CHANNELINFO_CHANNEL;
+ type, TEXT;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "padding.left";
+ relative, 1.0 0.0;
+ }
+ rel2 {
+ to, "padding.left";
+ relative, 1.0 0.0;
+ }
+ text {
+ font, FONT_LIGHT;
+ size, 32;
+ align, 0.0 0.5;
+ }
+ color, COLOR_TEXT_TRANS;
+ min, 480 32;
+ align, 0.0 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, "padding.title";
+ type, SPACER;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, PART_CHANNELINFO_CHANNEL;
+ relative, 0.0 1.0;
+ }
+ rel2 {
+ to, PART_CHANNELINFO_CHANNEL;
+ relative, 0.0 1.0;
+ }
+ min, 0 6;
+ align, 0.0 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, PART_CHANNELINFO_TITLE;
+ type, TEXT;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ rel1 {
+ to, "padding.title";
+ relative, 0.0 1.0;
+ }
+ rel2 {
+ to, "padding.title";
+ relative, 0.0 1.0;
+ }
+ text {
+ font, FONT_LIGHT;
+ size, 32;
+ align, 0.0 0.5;
+ }
+ color, COLOR_TEXT_TRANS;
+ min, 480 32;
+ align, 0.0 0.0;
+ fixed, 1 1;
+ }
+ }
+ part {
+ name, PART_CHANNELINFO_TIME;
+ type, TEXT;
+ scale, 1;
+ description {
+ state, "default" 0.0;
+ visible, 0;
+ }
+ }
}
}