2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
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 #ifndef __AIR_HOME_DEFS_H__
18 #define __AIR_HOME_DEFS_H__
20 #define VIEW_HOME "VIEW_HOME"
21 #define VIEW_RECENT "VIEW_RECENT"
22 #define VIEW_USER "VIEW_USER"
23 #define VIEW_USER_EDIT "VIEW_USER_EDIT"
24 #define VIEW_PHOTO "VIEW_PHOTO"
25 #define VIEW_ACTION_MENU "VIEW_ACTION_MENU"
27 #define SRC_PROG "prog"
28 #define SRC_EDJE "edje"
30 #define ICON_ADD "add"
32 #define GRP_HOME "group.home"
33 #define GRP_HOME_UP_ARROW "group.home.up.arrow"
34 #define GRP_HOME_DOWN_ARROW "group.home.down.arrow"
35 #define GRP_HOME_ITEM "group.home.item"
36 #define GRP_RECENT "group.recent"
37 #define GRP_RECENT_DELETE "group.recent.delete"
38 #define GRP_RECENT_ICON "group.recent.icon"
39 #define GRP_RECENT_PREVIEW "group.recent.preview"
40 #define GRP_USER "group.user"
41 #define GRP_USER_ITEM "group.user.item"
42 #define GRP_USER_EDIT "group.user.edit"
43 #define GRP_USER_EDIT_CONTENTS "group.user.edit.contents"
44 #define GRP_USER_EDIT_SWITCH "group.user.edit.switch"
45 #define GRP_USER_EDIT_PHOTO "group.user.edit.photo"
46 #define GRP_USER_EDIT_ENTRY "group.user.edit.entry"
47 #define GRP_USER_EDIT_DELETE "group.user.edit.delete"
48 #define GRP_USER_EDIT_ICON_LIST "group.user.edit.icon.list"
49 #define GRP_USER_EDIT_ICON_LIST_ITEM "group.user.edit.icon.list.item"
50 #define GRP_BAR_ITEM "group.bar.item"
51 #define GRP_PHOTO "group.photo"
52 #define GRP_PHOTO_VIEWER "group.photo.viewer"
53 #define GRP_PHOTO_NO_CONTENT "group.photo.no.content"
54 #define GRP_ACTION_MENU "group.action.menu"
55 #define GRP_ACTION_MENU_LIVETV "group.action.menu.livetv"
56 #define GRP_ACTION_MENU_TABLE_ITEM "group.action.menu.table.item"
58 #define PART_HOME_MENU_BAR "part.home.menu.bar"
59 #define PART_HOME_UP_ARROW "part.home.up.arrow"
60 #define PART_HOME_DOWN_ARROW "part.home.down.arrow"
61 #define PART_RECENT_DELETE_ICON "part.recent.delete.icon"
62 #define PART_RECENT_CONTENTS "part.recent.contents"
63 #define PART_RECENT_NO_CONTENTS "part.recent.no.contents"
64 #define PART_RECENT_TITLE "part.recent.title"
65 #define PART_RECENT_SUBTITLE "part.recent.subtitle"
66 #define PART_RECENT_THUMBNAIL "part.recent.thumbnail"
67 #define PART_RECENT_THUMBNAIL_BG "part.recent.thumbnail.bg"
68 #define PART_RECENT_TEXT_BG "part.recent.text.bg"
69 #define PART_RECENT_ICON "part.recent.icon"
70 #define PART_RECENT_FAVORITE "part.recent.favorite"
71 #define PART_RECENT_DELETE "part.recent.delete"
72 #define PART_RECENT_DELETE_FOCUS "part.recent.delete.focus"
73 #define PART_USER_EDIT_TITLE "part.user.edit.title"
74 #define PART_USER_EDIT_BTN_DONE "part.user.edit.btn.done"
75 #define PART_USER_EDIT_BTN_CANCEL "part.user.edit.btn.cancel"
76 #define PART_USER_EDIT_CONTENTS "part.user.edit.contents"
77 #define PART_USER_EDIT_CONTENTS_PHOTO "part.user.edit.contents.photo"
78 #define PART_USER_EDIT_CONTENTS_NAME "part.user.edit.contents.name"
79 #define PART_USER_EDIT_CONTENTS_PIN "part.user.edit.contents.pin"
80 #define PART_USER_EDIT_CONTENTS_LOCK "part.user.edit.contents.lock"
81 #define PART_USER_EDIT_CONTENTS_DELETE "part.user.edit.contents.delete"
82 #define PART_USER_EDIT_PHOTO "part.user.edit.photo"
83 #define PART_USER_EDIT_PHOTO_FOCUS "part.user.edit.photo.focus"
84 #define PART_USER_EDIT_ENTRY "part.user.edit.entry"
85 #define PART_USER_EDIT_ICON_LIST "part.user.edit.icon.list"
86 #define PART_USER_EDIT_ICON_LIST_ITEM "part.user.edit.icon.list.item"
87 #define PART_USER_EDIT_ICON_LIST_ITEM_FOCUS "part.user.edit.icon.list.item.focus"
88 #define PART_USER_EDIT_SWITCH "part.user.edit.switch"
89 #define PART_BAR_ITEM_BG "part.bar.item.bg"
90 #define PART_BAR_ITEM_ICON "part.bar.item.icon"
91 #define PART_BAR_ITEM_ICON_FOCUS "part.bar.item.icon.focus"
92 #define PART_BAR_ITEM_TITLE "part.bar.item.title"
93 #define PART_BAR_ITEM_TITLE_FOCUS "part.bar.item.title.focus"
94 #define PART_BAR_ITEM_BADGE "part.bar.item.badge"
95 #define PART_BAR_ITEM_BADGE_COUNT "part.bar.item.badge.count"
96 #define PART_BAR_ITEM_LOCK "part.bar.item.lock"
97 #define PART_BAR_ITEM_LOCK_FOCUS "part.bar.item.lock.focus"
98 #define PART_BAR_ITEM_MASK "part.bar.item.mask"
99 #define PART_USER_BAR "part.user.bar"
100 #define PART_PHOTO_LIST "part.photo.list"
101 #define PART_PHOTO_VIEWER "part.photo.viewer"
102 #define PART_PHOTO_VIEWER_CANCEL "part.photo.viewer.cancel"
103 #define PART_PHOTO_VIEWER_DONE "part.photo.viewer.done"
104 #define PART_TITLE_TEXT "title,text"
105 #define PART_POPUP_BUTTON_1 "button1"
106 #define PART_POPUP_BUTTON_2 "button2"
107 #define PART_SWALLOW_ICON "elm.swallow.icon"
108 #define PART_SWALLOW_CONTENT "elm.swallow.content"
109 #define PART_ACTION_MENU_LIVETV "part.action.menu.livetv"
110 #define PART_ACTION_MENU_TABLE "part.action.menu.table"
111 #define PART_ACTION_MENU_TABLE_ITEM_BG "part.action.menu.table.bg"
112 #define PART_ACTION_MENU_TABLE_ITEM_ICON "part.action.menu.table.item.icon"
113 #define PART_ACTION_MENU_TABLE_ITEM_ICON_FOCUS "part.action.menu.table.item.icon.focus"
114 #define PART_ACTION_MENU_TABLE_ITEM_TEXT "part.action.menu.table.item.text"
115 #define PART_ACTION_MENU_TABLE_ITEM_TEXT_FOCUS "part.action.menu.table.item.text.focus"
117 #define SIG_SHOW_NAVIGATION "sig.show.navigation"
118 #define SIG_HIDE_NAVIGATION "sig.hide.navigation"
119 #define SIG_INITIAL_FOCUS "sig.initial.focus"
120 #define SIG_FOCUS "sig.focus"
121 #define SIG_FOCUS_TO_UP "sig.focus.to.up"
122 #define SIG_FOCUS_TO_DOWN "sig.focus.to.down"
123 #define SIG_FOCUS_TO_RIGHT "sig.focus.to.right"
124 #define SIG_FOCUS_TO_LEFT "sig.focus.to.left"
125 #define SIG_UNFOCUS "sig.unfocus"
126 #define SIG_UNFOCUS_TO_RIGHT "sig.unfocus.to.right"
127 #define SIG_UNFOCUS_TO_LEFT "sig.unfocus.to.left"
128 #define SIG_DISABLE "sig.disable"
129 #define SIG_ENABLE "sig.enable"
130 #define SIG_SHOW_MASK "sig.show.mask"
131 #define SIG_SHOW "sig.show"
132 #define SIG_SHOW_DONE "sig.show.done"
133 #define SIG_HIDE "sig.hide"
134 #define SIG_HIDE_DONE "sig.hide.done"
135 #define SIG_CLICK_ITEM "sig.click.item"
136 #define SIG_CLICK_ARROW "sig.click.arrow"
137 #define SIG_SHOW_ARROW "sig.show.arrow"
138 #define SIG_HIDE_ARROW "sig.hide.arrow"
139 #define SIG_SELECT "elm,state,selected"
140 #define SIG_UNSELECT "elm,state,unselected"
142 #define TITLE_WIDTH "title.width"
144 #define STYLE_LABEL_TITLE "slide_home_title"
145 #define STYLE_LABEL_TITLE_FOCUS "slide_home_title_focus"
146 #define STYLE_LABEL_RECENT_TITLE "slide_recent_title"
147 #define STYLE_LABEL_RECENT_SUBTITLE "slide_recent_subtitle"
148 #define STYLE_INPUT "input.field"
149 #define STYLE_GENGRID_ITEM "gengrid_item"
150 #define STYLE_LABEL_ACTION_MENU_TITLE "slide_action_menu_title"
151 #define STYLE_LABEL_ACTION_MENU_TITLE_FOCUS "slide_action_menu_title_focus"
152 #define STYLE_LABEL_ACTION_MENU_TITLE_DIS "slide_action_menu_title_dis"
154 #define COLOR_DEFAULT_R 0
155 #define COLOR_DEFAULT_G 119
156 #define COLOR_DEFAULT_B 246
157 #define COLOR_DEFAULT_A 255
159 #define IMAGE_SWITCH_ON IMAGEDIR"/btn_switch_on_nor.png"
160 #define IMAGE_SWITCH_OFF IMAGEDIR"/btn_switch_off_nor.png"
161 #define IMAGE_MASK IMAGEDIR"/mask_user_nor.png"
162 #define IMAGE_BADGE IMAGEDIR"/badge_bg.png"
163 #define IMAGE_USER_ADD IMAGEDIR"/btn_user_add_nor.png"
164 #define IMAGE_USER_ADD_FOCUS IMAGEDIR"/btn_user_add_foc.png"
165 #define IMAGE_USER_DEFAULT IMAGEDIR"/ic_user_01_nor.png"
166 #define IMAGE_USER_DEFAULT_FOCUS IMAGEDIR"/ic_user_01_foc.png"
167 #define IMAGE_USER_DEFAULT_02 IMAGEDIR"/ic_user_02_nor.png"
168 #define IMAGE_USER_DEFAULT_02_FOCUS IMAGEDIR"/ic_user_02_foc.png"
169 #define IMAGE_USER_DEFAULT_03 IMAGEDIR"/ic_user_03_nor.png"
170 #define IMAGE_USER_DEFAULT_03_FOCUS IMAGEDIR"/ic_user_03_foc.png"
171 #define IMAGE_USER_DEFAULT_04 IMAGEDIR"/ic_user_04_nor.png"
172 #define IMAGE_USER_DEFAULT_04_FOCUS IMAGEDIR"/ic_user_04_foc.png"
173 #define IMAGE_USER_DEFAULT_05 IMAGEDIR"/ic_user_05_nor.png"
174 #define IMAGE_USER_DEFAULT_05_FOCUS IMAGEDIR"/ic_user_05_foc.png"
175 #define IMAGE_USER_DEFAULT_06 IMAGEDIR"/ic_user_06_nor.png"
176 #define IMAGE_USER_DEFAULT_06_FOCUS IMAGEDIR"/ic_user_06_foc.png"
177 #define IMAGE_USER_DEFAULT_07 IMAGEDIR"/ic_user_07_nor.png"
178 #define IMAGE_USER_DEFAULT_07_FOCUS IMAGEDIR"/ic_user_07_foc.png"
179 #define IMAGE_USER_CURRENT_DEFAULT IMAGEDIR"/ic_user_profile_current_01_nor.png"
180 #define IMAGE_USER_CURRENT_DEFAULT_FOCUS IMAGEDIR"/ic_user_profile_current_01_foc.png"
181 #define IMAGE_USER_CURRENT_DEFAULT_02 IMAGEDIR"/ic_user_profile_current_02_nor.png"
182 #define IMAGE_USER_CURRENT_DEFAULT_02_FOCUS IMAGEDIR"/ic_user_profile_current_02_foc.png"
183 #define IMAGE_USER_CURRENT_DEFAULT_03 IMAGEDIR"/ic_user_profile_current_03_nor.png"
184 #define IMAGE_USER_CURRENT_DEFAULT_03_FOCUS IMAGEDIR"/ic_user_profile_current_03_foc.png"
185 #define IMAGE_USER_CURRENT_DEFAULT_04 IMAGEDIR"/ic_user_profile_current_04_nor.png"
186 #define IMAGE_USER_CURRENT_DEFAULT_04_FOCUS IMAGEDIR"/ic_user_profile_current_04_foc.png"
187 #define IMAGE_USER_CURRENT_DEFAULT_05 IMAGEDIR"/ic_user_profile_current_05_nor.png"
188 #define IMAGE_USER_CURRENT_DEFAULT_05_FOCUS IMAGEDIR"/ic_user_profile_current_05_foc.png"
189 #define IMAGE_USER_CURRENT_DEFAULT_06 IMAGEDIR"/ic_user_profile_current_06_nor.png"
190 #define IMAGE_USER_CURRENT_DEFAULT_06_FOCUS IMAGEDIR"/ic_user_profile_current_06_foc.png"
191 #define IMAGE_USER_CURRENT_DEFAULT_07 IMAGEDIR"/ic_user_profile_current_07_nor.png"
192 #define IMAGE_USER_CURRENT_DEFAULT_07_FOCUS IMAGEDIR"/ic_user_profile_current_07_foc.png"
193 #define IMAGE_RECENT_DELETE_NOR IMAGEDIR"/btn_bar_clearall_nor.png"
194 #define IMAGE_RECENT_DELETE_FOC IMAGEDIR"/btn_bar_clearall_foc.png"
195 #define IMAGE_RECENT_DELETE_DIS IMAGEDIR"/btn_bar_clearall_dis.png"
196 #define IMAGE_RECENT_ICON_APP IMAGEDIR"/ic_thumbnail_app.png"
197 #define IMAGE_RECENT_ICON_CHANNEL IMAGEDIR"/ic_thumbnail_tv.png"
198 #define IMAGE_RECENT_ICON_MOVIE IMAGEDIR"/ic_thumbnail_movie.png"
199 #define IMAGE_RECENT_ICON_GALLERY IMAGEDIR"/ic_thumbnail_gallery.png"
200 #define IMAGE_RECENT_ICON_MUSIC IMAGEDIR"/ic_thumbnail_music.png"
201 #define IMAGE_RECENT_ICON_WEB IMAGEDIR"/ic_thumbnail_web.png"
202 #define IMAGE_RECENT_THUMB_APP IMAGEDIR"/ic_default_app.png"
203 #define IMAGE_RECENT_THUMB_CHANNEL IMAGEDIR"/ic_default_tv.png"
204 #define IMAGE_RECENT_THUMB_SETTING IMAGEDIR"/ic_default_setting"
205 #define IMAGE_ACTION_MENU_ICON_RESET IMAGEDIR"/btn_menu_reset_nor.png"
206 #define IMAGE_ACTION_MENU_ICON_RESET_FOCUS IMAGEDIR"/btn_menu_reset_foc.png"
207 #define IMAGE_ACTION_MENU_ICON_RESET_DIS IMAGEDIR"/btn_menu_reset_dis.png"
209 #define MAX_ITEM_COUNT 8
210 #define MAX_USER_COUNT 9
212 #define MESSAGE_ADD_USER "Add user"
213 #define MESSAGE_EDIT_USER "Edit user"
214 #define MESSAGE_DELETE_USER "Delete user"
215 #define MESSAGE_DELETE "Delete"
216 #define MESSAGE_CANCEL "Cancel"
217 #define MESSAGE_OK "OK"
218 #define MESSAGE_DONE "Done"
219 #define MESSAGE_DISCARD "Discard"
220 #define MESSAGE_RESET "Reset"
221 #define MESSAGE_DELETE_CONTENTS "If you delete this user, their data will also be deleted."
222 #define MESSAGE_DISCARD_CONTENTS "Discard all entered data?<br> If you are out of this screen, data won't be saved"
223 #define MESSAGE_RESET_CONTENTS "Reset all entered data?<br>If you choose the Reset, all data will be deleted"
225 #define KEY_MEDIA "media_id"
226 #define KEY_CHANNEL "service_id"
227 #define KEY_INFOSQUARE "launch_type"
229 #define PACKAGE_LIVETV "org.tizen.live-tv"
230 #define PACKAGE_MEDIAHUB "org.tizen.mediahub"
231 #define PACKAGE_SETTINGS "org.tizen.settings-tv-ref"
232 #define PACKAGE_INFOSQUARE "org.tizen.infosquare"
233 #define PACKAGE_BROWSER "org.tizen.browser"
235 #define GUM_ATTR_NAME "username"
236 #define GUM_ATTR_USERTYPE "usertype"
237 #define GUM_ATTR_UID "uid"
238 #define GUM_ATTR_ICON "icon"
239 #define GUM_ATTR_PASSWORD "secret"
240 #define GUM_LIST_USERTYPE_NORMAL "normal"
241 #define GUM_LIST_USERTYPE_ADMIN "admin"
243 #define TRANSITION_DECEL DECEL 0.3
244 #define TRANSITION_LINEAR LINEAR 0.2
246 #endif /* __AIR_HOME_DEFS_H__ */