7336fcd2411d4349a807e47a364e650969449f84
[profile/tv/apps/native/videoplayer.git] / include / define.h
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 /* View definitions */
18 #define VIEW_ID_PLAYER "VIEW_PLAYER"
19
20 /* Part name definitions */
21 #define PART_CONTENTAREA "content.area"
22 #define PART_TITLETEXT "title.text"
23 #define PART_RESOLUTIONTEXT "resolution.text"
24 #define PART_SOURCETEXT "source.text"
25 #define PART_DATETEXT "date.text"
26 #define PART_SWALLOWAREA "swallow.area"
27 #define PART_ELM_SWALLOWICON "elm.swallow.icon"
28 #define PART_SLIDER "slider.area"
29 #define PART_CURTIME_TEXT "elapsed.time"
30 #define PART_COUNTTEXT "count.text"
31 #define PART_CURRENTTEXT "current.text"
32 #define PART_TOTALTIME_TEXT "total.time"
33 #define PART_VOLUME_VALUE "volume.value"
34 #define PART_VOLUME_BAR "swallow.volume.bar"
35
36 /* Group name definitions */
37 #define GRP_VIDEO_PLAYER "video_player"
38 #define GRP_VOLUME "volume"
39
40 /* Signal definitions */
41 #define SIG_SELECTED "selected"
42 #define SIG_CLICKED "clicked"
43 #define SIG_CHANGED "changed"
44 #define SIG_FOCUSED "focused"
45 #define SIG_UNFOCUSED "unfocused"
46 #define SIG_VOLUME_MUTE "volume,mute"
47 #define SIG_VOLUME_UNMUTE "volume,unmute"
48 #define SIG_SHOW_VIEW "show,view"
49 #define SIG_HIDE_VIEW "hide,view"
50 #define SIG_SET_PAUSE "set,pause,icon"
51 #define SIG_SET_PLAY "set,play,icon"
52 #define SIG_SLIDER_FOCUS "slider,focus,in"
53 #define SIG_SLIDER_UNFOCUS "slider,focus,out"
54 #define SIG_BTN_ANI_START "mouse,anim,start"
55 #define SIG_BTN_ANI_FIN "btn,anim,finish"
56
57 /* Style definitions */
58 #define STYLE_INVISIBLE "invisible"
59 #define STYLE_CTXPOPUP_VIEWER "viewer_popup"
60 #define STYLE_BTN_SHORTTEXT "shorttext"
61 #define STYLE_TOOLTIP "videobtn_tooltip"
62 #define STYLE_CTXPOPUP_VIEWER "viewer_popup"
63 #define STYLE_SLIDER "progress_slider"
64 #define STYLE_VOLUME_BAR "volume_bar"
65
66 /* images */
67 #define IMAGE_VIDEO_BTN_REW_NORMAL "btn_video_rew_nor.png"
68 #define IMAGE_VIDEO_BTN_REW_FOCUS "btn_video_rew_foc.png"
69 #define IMAGE_VIDEO_BTN_FF_NORMAL "btn_video_ff_nor.png"
70 #define IMAGE_VIDEO_BTN_FF_FOCUS "btn_video_ff_foc.png"
71 #define IMAGE_VIDEO_BTN_PREV_NORMAL "btn_video_prev_nor.png"
72 #define IMAGE_VIDEO_BTN_PREV_FOCUS "btn_video_prev_foc.png"
73 #define IMAGE_VIDEO_BTN_NEXT_NORMAL "btn_video_next_nor.png"
74 #define IMAGE_VIDEO_BTN_NEXT_FOCUS "btn_video_next_foc.png"
75 #define IMAGE_VIDEO_BTN_PAUSE_NORMAL "btn_video_pause_nor.png"
76 #define IMAGE_VIDEO_BTN_PAUSE_FOCUS "btn_video_pause_foc.png"
77 #define IMAGE_VIDEO_BTN_PLAY_NORMAL "btn_video_play_nor.png"
78 #define IMAGE_VIDEO_BTN_PLAY_FOCUS "btn_video_play_foc.png"
79 #define IMAGE_VIDEO_BTN_SETTING_NORMAL "btn_video_setting_nor.png"
80 #define IMAGE_VIDEO_BTN_SETTING_FOCUS "btn_video_setting_foc.png"
81 #define IMAGE_VIDEO_BTN_SETTING_HIGHLIGHT "btn_video_setting_high.png"
82 #define IMAGE_VIDEO_BTN_REPEATOFF_NORMAL "btn_video_offrepeat_nor.png"
83 #define IMAGE_VIDEO_BTN_REPEATOFF_FOCUS "btn_video_offrepeat_foc.png"
84 #define IMAGE_VIDEO_BTN_REPEATALL_NORMAL "btn_video_repeatall_nor.png"
85 #define IMAGE_VIDEO_BTN_REPEATALL_FOCUS "btn_video_repeatall_foc.png"
86 #define IMAGE_VIDEO_BTN_REPEATONE_NORMAL "btn_video_repeatone_nor.png"
87 #define IMAGE_VIDEO_BTN_REPEATONE_FOCUS "btn_video_repeatone_foc.png"
88
89 #define IMAGE_TOOLTIP_ARROW "tooltip_arrow.png"
90
91 #define IMAGE_ICON_CHECK_HIGH "ico_check_high.png"
92 #define IMAGE_ICON_CHECK_FOC "ico_check_foc.png"
93
94 #define IMAGE_SLIDER_NOB_NORMAL "progressbar_thumb_nor.png"
95 #define IMAGE_SLIDER_NOB_FOCUS "progressbar_thumb_foc.png"
96 #define IMAGE_VIDEO_PROGRESS_BG "videoplay_progress_foc_bg.png"
97
98 /* sizes */
99 #define PADDING_BOX 50
100
101 #define POSITION_SETTING_POPUP_X 1285
102 #define POSITION_SETTING_POPUP_Y 732
103
104 #define POSITION_SCREEN_POPUP_X 1285
105 #define POSITION_SCREEN_POPUP_Y 732
106
107 #define POSITION_SOUND_POPUP_X 1285
108 #define POSITION_SOUND_POPUP_Y 650
109
110 /* others */
111 #define TIMEOUT_TOOLTIP 2.0
112 #define TIMEOUT_VIDEOPLAYER 5.0