modify back key to escape key
[profile/tv/apps/native/homescreen.git] / include / defs.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 #ifndef __DEFS_H__
18 #define __DEFS_H__
19
20 #define GRP_MAIN "main"
21 #define GRP_USER "user"
22 #define GRP_UBAR "ubar"
23 #define GRP_HOMEBAR_ITEM "homebar.item"
24 #define GRP_UBAR_ITEM "ubar.item"
25 #define GRP_DBAR_ITEM "dbar.item"
26 #define GRP_DBAR_LABEL "dbar.title"
27 #define GRP_DBAR_COMMON "dbar.common"
28 #define GRP_DBAR_APP "dbar.app"
29 #define GRP_DBAR_BROADCAST "dbar.broadcast"
30 #define GRP_DBAR_ALBUM "dbar.album"
31 #define GRP_ALBUM_THUMB "album.thumb"
32 #define GRP_DBAR_MUSIC "dbar.music"
33 #define GRP_DBAR_NOTIFICATION "dbar.notification"
34 #define GRP_DBAR_SOURCE "dbar.source"
35 #define GRP_DBAR_HISTORY "dbar.history"
36 #define GRP_PIN "pin"
37 #define GRP_EDIT_X "edit.x"
38 #define GRP_EDIT_ARROW_UP "edit.arrow.up"
39 #define GRP_EDIT_ARROW_DOWN "edit.arrow.down"
40 #define GRP_CBAR_X "cbar.x"
41 #define GRP_UBAR_LEFT_ARROW "ubar.left.arrow"
42 #define GRP_UBAR_RIGHT_ARROW "ubar.right.arrow"
43 #define GRP_UBAR_POPUP "ubar.popup"
44 #define GRP_UBAR_POPUP_ITEM "ubar.popup.item"
45 #define GRP_UBAR_LOGIN "ubar.login"
46 #define GRP_UBAR_DELETE "ubar.delete"
47 #define GRP_UBAR_ITEM_LEFT_ARROW "ubar.item.left.arrow"
48 #define GRP_UBAR_ITEM_RIGHT_ARROW "ubar.item.right.arrow"
49
50 #define PART_HOMEBAR "homebar"
51 #define PART_DYNAMICBAR "dynamicbar"
52 #define PART_USER "user"
53 #define PART_USER_THUMB_BG "user.thumb_bg"
54 #define PART_USER_THUMB "user.thumb"
55 #define PART_USER_NAME "user.name"
56 #define PART_USER_NAME_POPUP "user.name.popup"
57 #define PART_UBAR "ubar"
58 #define PART_UBAR_CONTENT "ubar.content"
59 #define PART_BG "bg"
60 #define PART_BG2 "bg2"
61 #define PART_ICON "icon"
62 #define PART_ICON_FOCUS "icon.focus"
63 #define PART_NAME "name"
64 #define PART_TITLE "title"
65 #define PART_SUBTITLE "subtitle"
66 #define PART_DESCRIPTION "description"
67 #define PART_THUMB "thumb"
68 #define PART_NUMBER "number"
69 #define PART_CHANNEL "channel"
70 #define PART_PROGRAM "program"
71 #define PART_DURATION "duration"
72 #define PART_FUNCS "functions"
73 #define PART_DEFAULT_TITLE "default.title"
74 #define PART_DEFAULT_DESC "default.desc"
75 #define PART_CONTENT "content"
76 #define PART_ELM_SWALLOWICON "elm.swallow.icon"
77 #define PART_POPUP_TEXT "title,text"
78 #define PART_POPUP_USER "popup.user"
79 #define PART_POPUP_ENTRY_NAME "popup.entry.name"
80 #define PART_POPUP_ENTRY_NAME_DESC "popup.entry.name.desc"
81 #define PART_POPUP_ENTRY_PW "popup.entry.pw"
82 #define PART_POPUP_ENTRY_PW_DESC "popup.entry.pw.desc"
83 #define PART_RIGHT_ARROW "right.arrow"
84 #define PART_LEFT_ARROW "left.arrow"
85 #define PART_KIDS "kids"
86 #define PART_USER_AGE "user.age"
87 #define PART_USER_LOGIN_THUMB "user.login.thumb"
88 #define PART_USER_LOGIN_NAME "user.login.name"
89 #define PART_USER_LOGIN_PW "user.login.pw"
90 #define PART_USER_LOGIN_PW_DESC "user.login.pw.desc"
91 #define PART_USER_DELETE_MESSAGE "user.delete.message"
92 #define PART_UBAR_RIGHT_ARROW "ubar.right.arrow"
93
94 #define PART_THUMB_1 "thumb.1"
95 #define PART_THUMB_2 "thumb.2"
96 #define PART_THUMB_3 "thumb.3"
97 #define PART_THUMB_4 "thumb.4"
98 #define PART_THUMB_5 "thumb.5"
99 #define PART_THUMB_6 "thumb.6"
100
101 #define SIG_SHOW_HOMEBAR "show,hbar"
102 #define SIG_SHOW_HOMEBAR_DONE "show,hbar,done"
103 #define SIG_HIDE_HOMEBAR "hide,hbar"
104 #define SIG_HIDE_HOMEBAR_DONE "hide,hbar,done"
105 #define SIG_SHOW_UBAR "show,ubar"
106 #define SIG_HIDE_UBAR "hide,ubar"
107 #define SIG_SHOW_DBAR "show,dbar"
108 #define SIG_HIDE_DBAR "hide,dbar"
109 #define SIG_INITIAL_FOCUS "initial,focus"
110 #define SIG_FOCUS_FROM_UP "focus,from,up"
111 #define SIG_FOCUS_FROM_DOWN "focus,from,down"
112 #define SIG_FOCUS_FROM_LEFT "focus,from,left"
113 #define SIG_FOCUS_FROM_RIGHT "focus,from,right"
114 #define SIG_FOCUS_FROM_EDIT "focus,form,edit"
115 #define SIG_FOCUS "focus"
116 #define SIG_FOCUS_NAME "focus,name"
117 #define SIG_UNFOCUS "unfocus"
118 #define SIG_UNFOCUS_NAME "unfocus,name"
119 #define SIG_UNFOCUS_TO_UP "unfocus,to,up"
120 #define SIG_UNFOCUS_TO_DOWN "unfocus,to,down"
121 #define SIG_UNFOCUS_TO_LEFT "unfocus,to,left"
122 #define SIG_UNFOCUS_TO_RIGHT "unfocus,to,right"
123 #define SIG_UNFOCUS_TO_DBAR "unfocus,to,dbar"
124 #define SIG_UNFOCUS_TO_HBAR "unfocus,to,hbar"
125 #define SIG_UNFOCUS_TO_XBAR "unfocus,to,xbar"
126 #define SIG_UNFOCUS_FROM_XBAR "unfocus,from,xbar"
127 #define SIG_HLIGHT_FROM_POPOVER "hlight,from,popover"
128 #define SIG_HIGHLIGHT "highlight"
129 #define SIG_HIDE "hide"
130 #define SIG_SHOW "show"
131 #define SIG_THUMB_3 "thumb,3"
132 #define SIG_THUMB_6 "thumb,6"
133 #define SIG_SHOW_DEFAULT_THUMB "show,default_thumb"
134 #define SIG_SHOW_DEFAULT_ICON "show,default_icon"
135 #define SIG_SHOW_THUMB1_VIDEO "show,thumb1,video"
136 #define SIG_SHOW_THUMB2_VIDEO "show,thumb2,video"
137 #define SIG_SHOW_THUMB3_VIDEO "show,thumb3,video"
138 #define SIG_SHOW_THUMB4_VIDEO "show,thumb4,video"
139 #define SIG_SHOW_THUMB5_VIDEO "show,thumb5,video"
140 #define SIG_SHOW_THUMB6_VIDEO "show,thumb6,video"
141 #define SIG_OUTSIDE_CLICKED "outside,clicked"
142 #define SIG_ARROW_CLICKED "arrow,clicked"
143 #define SIG_SHOW_EDIT_ITEM "show,edit,item"
144 #define SIG_DIM_ITEM "dim,item"
145 #define SIG_UNDIM_ITEM "undim,item"
146 #define SIG_FOCUS_ARROW "focus,arrow"
147 #define SIG_FOCUS_X "focus,x"
148 #define SIG_HIDE_NO_TITLE "no.title"
149 #define SIG_HIDE_TO_HBAR "hide,hbar"
150 #define SIG_SCROLL_DOWN "elm,action,scroll,down"
151 #define SIG_SCROLL_UP "elm,action,scroll,up"
152 #define SIG_CANCEL_CLICKED "cancel,clicked"
153 #define SIG_SHOW_AGE "show.age"
154 #define SIG_HIDE_PW "hide.pw"
155 #define SIG_SHOW_PW "show.pw"
156 #define SIG_HIDE_NAME "hide.name"
157 #define SIG_SHOW_NAME "show.name"
158 #define SIG_SHOW_WRONG_PW "show.wrong.pw"
159 #define SIG_SHOW_ARROW "show.arrow"
160 #define SIG_HIDE_ARROW "hide.arrow"
161
162 #define SRC_PROG "prog"
163 #define SRC_EDJE "edje"
164 #define SRC_ELM "elm"
165
166 #define DEF_USER_NAME "No Name"
167 #define DEF_ADD_NAME "ADD"
168 #define DEF_ADD_THUMB IMAGEDIR"/homebar_uc_ico_add.png"
169 #define DEF_USER_THUMB IMAGEDIR"/ico_family_mini.png"
170 #define DEF_USER_THUMB_BG IMAGEDIR"/ico_bg_114.png"
171 #define DEF_UBAR_ITEM_THUMB IMAGEDIR"/ico_boy_mini.png"
172 #define DEF_UBAR_ITEM_THUMB_BG IMAGEDIR"/ico_bg_98.png"
173 #define DEF_PIN_ITEM_DEFAULT_ICON IMAGEDIR"/icn_default.png"
174 #define DEF_PIN_ITEM_DEFAULT_ICON_FOCUS IMAGEDIR"/icn_default.png"
175 #define DEF_PIN_ITEM_CHANNEL_ICON IMAGEDIR"/icn_live_tv_nor.png"
176 #define DEF_PIN_ITEM_CHANNEL_ICON_FOCUS IMAGEDIR"/icn_live_tv_nor.png"
177 #define ICON_CHECK_FOC_PNG "ico_check_foc.png"
178
179 #define DATA_TITLE_WIDTH "title_width"
180 #define DATA_PIN_HEIGHT "pin_height"
181
182 #define STYLE_BTN_HOVERTEXT "hovertext"
183 #define STYLE_BTN_DIM_HOVERTEXT "dimhovertext"
184 #define STYLE_CTXPOPUP_HOVER "hoverpopup"
185 #define STYLE_LABEL_SLIDE_LEFT "slide_style_24_left"
186 #define STYLE_LABEL_SLIDE_CENTER "slide_style_24_center"
187 #define STYLE_LABEL_SLIDE_LEFT_32 "slide_style_32_left"
188 #define STYLE_LABEL_SLIDE_CENTER_40 "slide_style_40_center"
189 #define STYLE_LABEL_SLIDE_CENTER_22 "slide_style_22_center"
190 #define STYLE_LABEL_SLIDE_LEFT_20 "slide_style_20_left"
191 #define STYLE_LABEL_SLIDE_LEFT_28 "slide_style_28_left"
192 #define STYLE_POPUP_1LINE_2BUTTON "title.1line.2button"
193 #define STYLE_POPUP_BOTTOM_1LINE "bottom.1line"
194 #define STYLE_POPUP_USER "user"
195 #define LABEL_SLIDE_SPEED (40.0)
196
197 #define POSITION_CTXPOPUP_X 40
198 #define POSITION_CTXPOPUP_Y 200
199
200 #define ITEM_DEFAULT_BG_R 69
201 #define ITEM_DEFAULT_BG_G 143
202 #define ITEM_DEFAULT_BG_B 255
203 #define ITEM_CHANNEL_BG_R 50
204 #define ITEM_CHANNEL_BG_G 81
205 #define ITEM_CHANNEL_BG_B 128
206 #define ITEM_PACKAGE_BG_R 57
207 #define ITEM_PACKAGE_BG_G 114
208 #define ITEM_PACKAGE_BG_B 106
209
210 #define KEY_UP "Up"
211 #define KEY_DOWN "Down"
212 #define KEY_LEFT "Left"
213 #define KEY_RIGHT "Right"
214 #define KEY_ENTER "Return"
215 #define KEY_ESC "Escape"
216
217 #endif /* __DEFS_H__ */