2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http,//www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include "../../include/define.h"
20 name, GRP_VIEW_CHANNELINFO;
28 rel1.relative, 1.0 0.0;
29 rel2.relative, 1.0 1.0;
39 name, GRP_LAYOUT_CHANNELINFO;
47 rel1.relative, 1.0 0.5;
48 rel2.relative, 1.0 0.5;
56 inherit, "default" 0.0;
65 action, STATE_SET "show" 0.0;
67 transition, CUBIC_BEZIER 0.5 TRANSITION_EASE_IN_OUT;
72 action, STATE_SET "default" 0.0;
74 transition, CUBIC_BEZIER 0.167 TRANSITION_EASE_OUT;
75 after, "hide_finished";
78 name, "hide_finished";
79 action, SIGNAL_EMIT SIGNAL_HIDE_FINISHED SOURCE_ELM;
85 name, GRP_LAYOUT_CHANNELINFO_LIST;
87 image, "btn_navigation_up.png" COMP;
88 image, "btn_navigation_down.png" COMP;
97 rel1.relative, 1.0 0.5;
98 rel2.relative, 1.0 0.5;
105 inherit, "default" 0.0;
110 name, "part.navigation_up";
114 state, "default" 0.0;
115 image.normal, "btn_navigation_up.png";
131 name, "padding.next_channel";
134 state, "default" 0.0;
136 to, "part.navigation_up";
140 to, "part.navigation_up";
152 state, "default" 0.0;
154 to, "padding.next_channel";
158 to, "padding.next_channel";
164 color, 255 255 255 0;
168 inherit, "default" 0.0;
169 color, 255 255 255 255;
173 name, PART_CHANNELINFO_LIST_NEXT;
175 clip_to, "clip_next";
177 state, "default" 0.0;
189 inherit, "default" 0.0;
195 name, "padding.current_channel";
198 state, "default" 0.0;
213 name, "clip_current";
216 state, "default" 0.0;
218 to, "padding.current_channel";
222 to, "padding.current_channel";
228 color, 255 255 255 0;
232 inherit, "default" 0.0;
233 color, 255 255 255 255;
237 name, PART_CHANNELINFO_LIST_CURRENT;
239 clip_to, "clip_current";
241 state, "default" 0.0;
242 rel1.to, "clip_current";
243 rel2.to, "clip_current";
247 name, "padding.prev_channel";
250 state, "default" 0.0;
252 to, PART_CHANNELINFO_LIST_CURRENT;
256 to, PART_CHANNELINFO_LIST_CURRENT;
268 state, "default" 0.0;
270 to, "padding.prev_channel";
274 to, "padding.prev_channel";
280 color, 255 255 255 0;
284 inherit, "default" 0.0;
285 color, 255 255 255 255;
289 name, PART_CHANNELINFO_LIST_PREV;
291 clip_to, "clip_prev";
293 state, "default" 0.0;
305 inherit, "default" 0.0;
311 name, "padding.navigation_down";
314 state, "default" 0.0;
329 name, "part.navigation_down";
333 state, "default" 0.0;
334 image.normal, "btn_navigation_down.png";
336 to, "padding.navigation_down";
340 to, "padding.navigation_down";
353 action, STATE_SET "show" 0.0;
355 after, "show_current";
359 name, "show_current";
360 action, STATE_SET "show" 0.0;
361 target, "clip_current";
362 transition, CUBIC_BEZIER 0.334 TRANSITION_EASE_IN_OUT;
366 action, STATE_SET "show" 0.0;
368 target, PART_CHANNELINFO_LIST_NEXT;
370 target, PART_CHANNELINFO_LIST_PREV;
371 transition, CUBIC_BEZIER 0.401 TRANSITION_EASE_IN_OUT;
376 action, STATE_SET "default" 0.0;
378 transition, CUBIC_BEZIER 0.167 TRANSITION_EASE_OUT;
380 action, STATE_SET "default" 0.0;
382 target, PART_CHANNELINFO_LIST_NEXT;
384 target, PART_CHANNELINFO_LIST_PREV;
385 target, "clip_current";
387 action, SIGNAL_EMIT SIGNAL_HIDE_FINISHED SOURCE_ELM;
394 name, GRP_LAYOUT_CHANNELINFO_SEARCH;
401 state, "default" 0.0;
402 rel1.relative, 1.0 0.0;
403 rel2.relative, 1.0 1.0;
413 name, GRP_CHANNELINFO;
415 image, "ic_thumbnail_favorite_01.png" COMP;
416 image, "ic_thumbnail_lock_01_foc.png" COMP;
417 image, "ic_thumbnail_lock_01_nor.png" COMP;
420 public is_locked=0, is_favorite=0, is_focused=0;
422 public set_states() {
427 focused = get_int(is_focused);
428 locked = get_int(is_locked);
429 favorite = get_int(is_favorite);
433 run_program(PROGRAM:"do_focus_locked");
435 run_program(PROGRAM:"do_locked");
439 run_program(PROGRAM:"do_favorite");
448 state, "default" 0.0;
449 rel1.relative, 0.0 0.5;
450 rel2.relative, 0.0 0.5;
455 state, "focused" 0.0;
456 inherit, "default" 0.0;
457 color, COLOR_BG_FOCUSED;
461 name, "padding.left_top";
465 state, "default" 0.0;
480 name, PART_CHANNELINFO_CHANNEL;
484 state, "default" 0.0;
486 to, "padding.left_top";
490 to, "padding.left_top";
498 color, COLOR_TEXT_NORMAL;
504 state, "focused" 0.0;
505 inherit, "default" 0.0;
506 color, COLOR_TEXT_FOCUSED;
510 name, "padding.title";
514 state, "default" 0.0;
516 to, PART_CHANNELINFO_CHANNEL;
520 to, PART_CHANNELINFO_CHANNEL;
529 name, PART_CHANNELINFO_TITLE;
533 state, "default" 0.0;
547 color, COLOR_TEXT_NORMAL;
553 state, "focused" 0.0;
554 inherit, "default" 0.0;
555 color, COLOR_TEXT_FOCUSED;
559 name, "padding.time";
563 state, "default" 0.0;
565 to, PART_CHANNELINFO_TITLE;
569 to, PART_CHANNELINFO_TITLE;
578 name, PART_CHANNELINFO_TIME;
582 state, "default" 0.0;
596 color, 112 112 112 255;
602 state, "focused" 0.0;
603 inherit, "default" 0.0;
604 color, COLOR_TEXT_FOCUSED;
608 name, "padding.right_top";
612 state, "default" 0.0;
627 name, PART_CHANNELINFO_STATUS;
631 state, "default" 0.0;
633 to, "padding.right_top";
637 to, "padding.right_top";
647 name, PART_CHANNELINFO_LOCKED;
651 state, "default" 0.0;
652 image.normal, "ic_thumbnail_lock_01_nor.png";
654 to, PART_CHANNELINFO_STATUS;
658 to, PART_CHANNELINFO_STATUS;
667 state, "visible" 0.0;
668 inherit, "default" 0.0;
673 state, "focused" 0.0;
674 inherit, "default" 0.0;
675 image.normal, "ic_thumbnail_lock_01_foc.png";
681 name, "padding.channelinfo.locked";
685 state, "default" 0.0;
687 to, PART_CHANNELINFO_LOCKED;
691 to, PART_CHANNELINFO_LOCKED;
699 state, "visible" 0.0;
700 inherit, "default" 0.0;
704 state, "focused" 0.0;
705 inherit, "default" 0.0;
710 name, PART_CHANNELINFO_FAVORITE;
714 state, "default" 0.0;
715 image.normal, "ic_thumbnail_favorite_01.png";
717 to, "padding.channelinfo.locked";
721 to, "padding.channelinfo.locked";
730 state, "visible" 0.0;
731 inherit, "default" 0.0;
737 name, "padding.channelinfo.favorite";
741 state, "default" 0.0;
743 to, PART_CHANNELINFO_FAVORITE;
747 to, PART_CHANNELINFO_FAVORITE;
755 state, "visible" 0.0;
756 inherit, "default" 0.0;
764 signal, SIGNAL_FOCUSED;
767 set_int(is_focused, 1);
769 run_program(PROGRAM:"do_focused");
774 action, STATE_SET "focused" 0.0;
776 target, PART_CHANNELINFO_CHANNEL;
777 target, PART_CHANNELINFO_TITLE;
778 target, PART_CHANNELINFO_TIME;
782 signal, SIGNAL_UNFOCUSED;
785 set_int(is_focused, 0);
787 run_program(PROGRAM:"do_unfocused");
791 name, "do_unfocused";
792 action, STATE_SET "default" 0.0;
794 target, PART_CHANNELINFO_CHANNEL;
795 target, PART_CHANNELINFO_TITLE;
796 target, PART_CHANNELINFO_TIME;
800 signal, SIGNAL_RESET;
801 source, SOURCE_PROGRAM;
803 set_int(is_locked, 0);
804 set_int(is_favorite, 0);
805 run_program(PROGRAM:"do_reset");
810 action, STATE_SET "default" 0.0;
811 target, PART_CHANNELINFO_FAVORITE;
812 target, "padding.channelinfo.favorite";
813 target, PART_CHANNELINFO_LOCKED;
814 target, "padding.channelinfo.locked";
818 signal, SIGNAL_LOCKED;
819 source, SOURCE_PROGRAM;
821 set_int(is_locked, 1);
826 name, "set_favorite";
827 signal, SIGNAL_FAVORITE;
828 source, SOURCE_PROGRAM;
830 set_int(is_favorite, 1);
836 action, STATE_SET "visible" 0.0;
837 target, PART_CHANNELINFO_FAVORITE;
838 target, "padding.channelinfo.favorite";
842 action, STATE_SET "visible" 0.0;
843 target, PART_CHANNELINFO_LOCKED;
844 target, "padding.channelinfo.locked";
847 name, "do_focus_locked";
848 action, STATE_SET "focused" 0.0;
849 target, PART_CHANNELINFO_LOCKED;
850 target, "padding.channelinfo.locked";
856 name, GRP_CHANNELINFO_SIMPLE;
863 state, "default" 0.0;
871 name, "padding.left";
875 state, "default" 0.0;
890 name, PART_CHANNELINFO_CHANNEL;
894 state, "default" 0.0;
908 color, COLOR_TEXT_TRANS;
915 name, "padding.title";
919 state, "default" 0.0;
921 to, PART_CHANNELINFO_CHANNEL;
925 to, PART_CHANNELINFO_CHANNEL;
934 name, PART_CHANNELINFO_TITLE;
938 state, "default" 0.0;
952 color, COLOR_TEXT_TRANS;
959 name, PART_CHANNELINFO_TIME;
963 state, "default" 0.0;