Merge branch '0128_tizen20'
[apps/core/preloaded/video-player.git] / include / mp-video-value-define.h
1 /*
2  * To apply the Flora License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
3  *
4  *    Copyright [2012] [JongDong Lee <jongdong.lee@samsung.com>, ChangSun Lee <cs78.lee@samsung.com>]
5  *
6  *    Licensed under the Flora License, Version 1.0 (the "License");
7  *    you may not use this file except in compliance with the License.
8  *    You may obtain a copy of the License at
9  *
10  *        http://www.tizenopensource.org/license
11  *
12  *    Unless required by applicable law or agreed to in writing, software
13  *    distributed under the License is distributed on an "AS IS" BASIS,
14  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *    See the License for the specific language governing permissions and
16  *    limitations under the License.
17  */
18
19
20 #ifndef _VIDEO_VALUE_DEFINE_
21 #define  _VIDEO_VALUE_DEFINE_
22
23 #include <utilX.h>
24
25
26 //PLAY_TIME_FORMAT
27 #define PLAY_TIME_FORMAT "02u:%02u:%02u"
28
29
30 //PLAY_TIME_ARGS
31 #define PLAY_TIME_ARGS(t) \
32         (t) / (60 * 60), \
33         ((t) / 60) % 60, \
34         (t) % 60
35
36 #define PLAY_TIME_LENGTH 9
37
38
39 #define _EDJ(x) elm_layout_edje_get(x)
40
41
42 #ifdef PREFIX
43 #undef PREFIX
44 #endif
45
46 #ifdef LOCALEDIR
47 #undef LOCALEDIR
48 #endif
49
50 #define PREFIX                                          "/usr/apps/org.tizen.video-player"
51 #define EDJ_PATH                                        "/usr/apps/org.tizen.video-player/res/edje"
52 #define LOCALEDIR                                       "/usr/apps/org.tizen.video-player/res/locale"
53
54
55 #define VIDEO_CHAPTER_VIEW_DATA_DIR             "/opt/usr/media/.video_thumb"
56
57
58 #define VIDEO_HEAD_ICON_ALLSHARE                        PREFIX"/res/images/icon/T01-2_icon_title_allshare.png"
59 #define VIDEO_HEAD_ICON_SOUNDPATH                       PREFIX"/res/images/icon/T01-2_icon_title_soundpath.png"
60 #define VIDEO_LIST_VIEW_ICON_FOLDER                     PREFIX"/res/images/icon/06_myfiles_list_folder.png"
61
62 #define VIDEO_PLAYER_MORE_ICON_TRIM             PREFIX"/res/images/icon/T01-2_icon_popup_trim.png"
63 #define VIDEO_PLAYER_MORE_ICON_SOUND_ALIVE      PREFIX"/res/images/icon/T01-2_icon_popup_sound_allive.png"
64 #define VIDEO_PLAYER_MORE_ICON_SUBTITLE         PREFIX"/res/images/icon/T01-2_icon_popup_subtitle.png"
65 #define VIDEO_PLAYER_MORE_ICON_REPEAT           PREFIX"/res/images/icon/T01-2_icon_popup_sound_repeat_mode.png"
66 #define VIDEO_PLAYER_MORE_ICON_AUDIO_TRACK      PREFIX"/res/images/icon/T01-2_icon_popup_sound_audio_track.png"
67 #define VIDEO_PLAYER_MORE_ICON_SETTING          PREFIX"/res/images/icon/T01-2_icon_popup_sound_settings.png"
68 #define VIDEO_PLAYER_MORE_ICON_ADD_TO_HOME      PREFIX"/res/images/icon/T01_controlbar_icon_add_to_home.png"
69
70
71 #define VIDEO_PLAYER_TOOLBAR_ICON_VIDEOS        PREFIX"/res/images/toolbar/T01-2_controlbar_icon_video.png"
72 #define VIDEO_PLAYER_TOOLBAR_ICON_RECORDED      PREFIX"/res/images/toolbar/T01-2_controlbar_icon_recorded.png"
73 #define VIDEO_PLAYER_TOOLBAR_ICON_FOLDER        PREFIX"/res/images/toolbar/T01-2_controlbar_icon_folder.png"
74 #define VIDEO_PLAYER_TOOLBAR_ICON_ASF           PREFIX"/res/images/toolbar/T01-2_controlbar_icon_near_device.png"
75 #define VIDEO_PLAYER_TOOLBAR_ICON_BACK          PREFIX"/res/images/toolbar/T01-2_btn_toolbar_back.png"
76 #define VIDEO_PLAYER_TOOLBAR_ICON_VOLUME        PREFIX"/res/images/toolbar/T01-2_btn_toolbar_volum.png"
77 #define VIDEO_PLAYER_TOOLBAR_ICON_CANCEL        PREFIX"/res/images/toolbar/T01-2_icon_toolbar_cancel.png"
78 #define VIDEO_PLAYER_TOOLBAR_ICON_DELETE        PREFIX"/res/images/toolbar/T01-2_icon_toolbar_delete.png"
79 #define VIDEO_PLAYER_TOOLBAR_ICON_DONE          PREFIX"/res/images/toolbar/T01-2_icon_toolbar_done.png"
80 #define VIDEO_PLAYER_TOOLBAR_ICON_SETTING       PREFIX"/res/images/toolbar/T01-2_icon_toolbar_setting.png"
81 #define VIDEO_PLAYER_TOOLBAR_ICON_SORT          PREFIX"/res/images/toolbar/T01-2_icon_toolbar_sort_by.png"
82 #define VIDEO_PLAYER_TOOLBAR_ICON_SEARCH        PREFIX"/res/images/toolbar/T02_controlbar_icon_search.png"
83
84
85 #define VIDEO_PLAYER_MAIN_EDJ                           EDJ_PATH"/main.edj"
86 #define VIDEO_PLAYER_BOOKMARK_EDJ                       EDJ_PATH"/bookmark.edj"
87 #define VIDEO_PLAYER_BOOKMARK_ITEM_EDJ                  EDJ_PATH"/bookmark_item.edj"
88 #define VIDEO_PLAYER_CONTROL_EDJ                        EDJ_PATH"/control.edj"
89 #define VIDEO_PLAYER_PANEL_EDJ                          EDJ_PATH"/panel.edj"
90 #define VIDEO_PLAYER_PROGRESS_EDJ                       EDJ_PATH"/progress.edj"
91 #define VIDEO_PLAYER_TRIM_EDJ                           EDJ_PATH"/trim.edj"
92 #define VIDEO_PLAYER_TRIM_ITEM_EDJ                      EDJ_PATH"/trim_item.edj"
93 #define VIDEO_PLAYER_PROGRESS_TRIM_EDJ                  EDJ_PATH"/progress_trim.edj"
94 #define VIDEO_PLAYER_ADD_TAG                            EDJ_PATH"/add_tag.edj"
95 #define VIDEO_PLAYER_ANIMATION_EDJ                      EDJ_PATH"/animation.edj"
96 #define VIDEO_PLAYER_DETAIL_EDJ                         EDJ_PATH"/detail.edj"
97 #define VIDEO_PLAYER_SUBTITLE_EDJ                       EDJ_PATH"/subtitle.edj"
98 #define VIDEO_PLAYER_SUBTITLE_SYNC_EDJ                  EDJ_PATH"/subtitle_sync.edj"
99 #define VIDEO_PLAYER_LISTVIEW_EDJ                       EDJ_PATH"/listview.edj"
100 #define VIDEO_PLAYER_MULTI_WIN_EDJ                      EDJ_PATH"/multi_win.edj"
101 #define VIDEO_PLAYER_SETTING_EDJ                        EDJ_PATH"/setting.edj"
102 #define VIDEO_PLAYER_LANDSCAPE_THUMB_EDJ        EDJ_PATH"/landscape_thumbnail.edj"
103 #define VIDEO_PLAYER_CHAPTER_VIEW_EDJ           EDJ_PATH"/vp-chapter-view.edj"
104 #define VIDEO_PLAYER_SPEEDBOX_VIEW_EDJ          EDJ_PATH"/vp-speedbox-popup.edj"
105 #define VIDEO_PLAYER_VOLUME_POPUP_EDJ           EDJ_PATH"/vp-volume-popup.edj"
106
107
108
109 #define VIDEO_CUSTOM_THEME                              EDJ_PATH"/vp-custom-winset-style.edj"
110 #define VIDEO_PLAYER_OPTION_BUTTON_EDJ                  EDJ_PATH"/option_button.edj"
111 #define VIDEO_PLAYER_POPUP_PROGRESSBAR_EDJ              EDJ_PATH"/popup_progressbar.edj"
112
113 #define VIDEO_PLAYER_SEARCH_VIEW_LAYOUT_EDJ             EDJ_PATH"/search-view-layout.edj"
114
115
116 #define MAIN_EDJ_GROUP                                  "main"
117 #define CONTROL_EDJ_GROUP                               "control"
118 #define PROGRESS_EDJ_GROUP                              "progress"
119 #define BOOKMARK_EDJ_GROUP                              "bookmark"
120 #define BOOKMARK_ITEM_EDJ_GROUP                         "bookmark.item"
121 #define BOOKMARK_REMOVE_EDJ_GROUP                       "bookmark.end"
122 #define TRIM_EDJ_GROUP                                  "trim.control"
123 #define TRIM_ITEM_EDJ_GROUP                             "trim.item"
124 #define CHAPTER_VIEW_EDJ_GROUP                          "chapter"
125 #define SPEEDBOX_EDJ_GROUP                              "speedbox"
126 #define VOLUME_EDJ_GROUP                                "volume"
127
128 #define PANEL_EDJ_GROUP                                 "panel"
129 #define FAVORITE_EDJ_GROUP                              "favorite"
130 #define ANIMATION_EDJ_GROUP                             "animation"
131 #define DETAIL_EDJ_GROUP                                "detail"
132 #define SUBTITLE_EDJ_GROUP                              "subtitle"
133 #define SUBTITLE_SYNC_EDJ_GROUP                         "subtitle.sync"
134 #define PANEL_BUTTON_EDJ_GROUP                          "panel.button"
135 #define OPTION_EDJ_GROUP                                "option"
136 #define LISTVIEW_EDJ_GROUP                              "listview"
137 #define MULTIWIN_EDJ_GROUP                              "mw"
138 #define SETTING_EDJ_GROUP                               "setting"
139 #define LANDSCAPE_THUMB_EDJ_GROUP               "landscape.thumb"
140
141 #define SEARCH_VIEW_LAYOUT_GROUP                        "video-player.search-view.layout"
142
143 #define SWALLOW_MAIN_CONTROL                            "main.panel"
144 #define SWALLOW_MAIN_BOOKMARK                           "main.bookmark"
145 #define SWALLOW_MAIN_ANIMATION                          "main.animation"
146 #define SWALLOW_MAIN_PANEL_BUTTON                       "main.panel.button"
147 #define SWALLOW_MAIN_OPTION_BUTTON                      "main.option.button"
148 #define SWALLOW_SETTING_LISTVIEW                        "setting.list"
149
150
151 #define SWALLOW_BOOKMARK_GRID                           "bookmark.swallow"
152
153 #define SWALLOW_PANEL_CONTROL                           "panel.control"
154 #define SWALLOW_PANEL_PROGRESS_BAR                      "panel.progress"
155
156 #define SWALLOW_DETAIL_LIST                             "detail.list"
157
158 #define SWALLOW_TRIM_THUMBNAIL                          "trim.control.thumb"
159
160 #define PART_BUTTON_ICON                                "icon"
161
162
163 #define MAIN_SPEED_TEXT                                 "main.speedbox.txt"
164 #define SUBTITLE_TEXT                                   "subtitle.txt"
165
166
167 #define SIGNAL_CONTROL_PART_PLAY_BUTTON                 "control.play.button"
168 #define SIGNAL_CONTROL_PART_BACK_BUTTON                 "control.back.button"
169 #define SIGNAL_CONTROL_PART_VOL_BUTTON                  "control.volume.button"
170 #define SIGNAL_CONTROL_PART_MUTE_BUTTON                 "control.volume.mute.button"
171
172 #define SIGNAL_CONTROL_PART_SOUNDPATH_BUTTON            "control.soundpath.button"
173 #define SIGNAL_CONTROL_PART_SCREENSIZE_BUTTON           "control.screensize.button"
174 #define SIGNAL_CONTROL_PART_FF_BUTTON                   "control.normal.ff.button"
175 #define SIGNAL_CONTROL_PART_REW_BUTTON                  "control.normal.rew.button"
176 #define SIGNAL_CONTROL_PART_TRIM_FF_BUTTON              "control.trim.ff.button"
177 #define SIGNAL_CONTROL_PART_TRIM_REW_BUTTON             "control.trim.rew.button"
178
179 #define PART_CONTROL_TRIM_DONE_BUTTON                   "control.trim.done.button"
180 #define PART_CONTROL_TRIM_CANCEL_BUTTON                 "control.trim.cancel.button"
181 #define PART_CONTROL_SPEED_BOX_REW                      "control.normal.rew.speed.swallow"
182 #define PART_CONTROL_SPEED_BOX_FF                       "control.normal.ff.speed.swallow"
183
184 #define SIGNAL_HIDDEN_BUTTON_PANEL_SOUNDPATH            "hidden.button.panel.soundpath"
185 #define SIGNAL_HIDDEN_BUTTON_PANEL_ALLSHARE             "hidden.button.panel.allshare"
186
187 #define PART_PANEL_BUTTON_SA                            "panel.button.sa"
188 #define PART_PANEL_BUTTON_REPEAT                        "panel.button.repeat"
189
190 #define PART_BOOKMARK_ADD                               "bookmark.add"
191 #define PART_BOOKMARK_DEL                               "bookmark.end.btn"
192
193 #define SIGNAL_VOLUME_PORTRAIT_MODE                     "signal.volume.potrait.mode"
194 #define SIGNAL_VOLUME_LANDSCAPE_MODE                    "signal.volume.landscape.mode"
195
196 #define SIGNAL_SPEEDBOX_SET_MODE_1                      "signal.speedbox.set.mode.1"
197 #define SIGNAL_SPEEDBOX_SET_MODE_2                      "signal.speedbox.set.mode.2"
198 #define SIGNAL_SPEEDBOX_SET_MODE_3                      "signal.speedbox.set.mode.3"
199
200 #define SIGNAL_SPEEDBOX_SHOW                            "signal.speedbox.visible.on"
201 #define SIGNAL_SPEEDBOX_HIDE                            "signal.speedbox.visible.off"
202
203 #define SIGNAL_CONTROL_MODE_NORMAL                      "signal.control.mode.normal"
204 #define SIGNAL_CONTROL_MODE_BOOKMARK                    "signal.control.mode.bookmark"
205 #define SIGNAL_CONTROL_MODE_TRIM                        "signal.control.mode.trim"
206 #define SIGNAL_CONTROL_MODE_STREAMING                   "signal.control.mode.streaming"
207 #define SIGNAL_CONTROL_MODE_DLNA                        "signal.control.mode.dlna"
208 #define SIGNAL_CONTROL_MODE_VISIBLE_OFF                 "signal.control.mode.visible.off"
209 #define SIGNAL_CONTROL_BACK_BUTTON_DOWN                 "signal.control.back.button.up"
210
211 #define SIGNAL_CONTROL_VOL_BUTTON_DOWN                  "signal.control.volume.button.down"
212 #define SIGNAL_CONTROL_VOL_BUTTON_UP                    "signal.control.volume.button.up"
213
214 #define SIGNAL_CONTROL_MUTE_BUTTON_DOWN                 "signal.control.volume.mute.button.down"
215 #define SIGNAL_CONTROL_MUTE_BUTTON_UP                   "signal.control.volume.mute.button.up"
216
217 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_DOWN            "signal.control.soundpath.button.down"
218 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_UP              "signal.control.soundpath.button.up"
219 #define SIGNAL_CONTROL_SCREENSIZE_NORMAL                "signal.control.screensize.normal"
220 #define SIGNAL_CONTROL_SCREENSIZE_EXPAND                "signal.control.screensize.expand"
221 #define SIGNAL_CONTROL_NORMAL_FF_BUTTON_DOWN            "signal.control.normal.ff.button.down"
222 #define SIGNAL_CONTROL_NORMAL_FF_BUTTON_UP              "signal.control.normal.ff.button.up"
223 #define SIGNAL_CONTROL_NORMAL_FF_BUTTON_CLICKED         "signal.control.normal.ff.button.clicked"
224 #define SIGNAL_CONTROL_NORMAL_REW_BUTTON_DOWN           "signal.control.normal.rew.button.down"
225 #define SIGNAL_CONTROL_NORMAL_REW_BUTTON_UP             "signal.control.normal.rew.button.up"
226 #define SIGNAL_CONTROL_NORMAL_REW_BUTTON_CLICKED                "signal.control.normal.rew.button.clicked"
227 #define SIGNAL_CONTROL_NORMAL_FF_STEP                   "signal.control.normal.ff.button.step"
228 #define SIGNAL_CONTROL_NORMAL_REW_STEP                  "signal.control.normal.rew.button.step"
229 #define SIGNAL_CONTROL_NORMAL_FF_LANDSCAPE_STEP         "signal.control.normal.ff.button.landscape.step"
230 #define SIGNAL_CONTROL_NORMAL_REW_LANDSCAPE_STEP        "signal.control.normal.rew.button.landscape.step"
231 #define SIGNAL_CONTROL_TRIM_FF_STEP                     "signal.control.trim.ff.button.step"
232 #define SIGNAL_CONTROL_TRIM_REW_STEP                    "signal.control.trim.rew.button.step"
233
234 #define SIGNAL_PANEL_BUTTON_SA_DOWN                     "signal.panel.button.sa.down"
235 #define SIGNAL_PANEL_BUTTON_SA_UP                       "signal.panel.button.sa.up"
236 #define SIGNAL_PANEL_BUTTON_REPEAT_DOWN                 "signal.panel.button.repeat.down"
237 #define SIGNAL_PANEL_BUTTON_REPEAT_UP                   "signal.panel.button.repeat.up"
238
239 #define SIGNAL_BOOKMARK_ADD_DOWN                        "signal.bookmark.add.down"
240 #define SIGNAL_BOOKMARK_ADD_UP                          "signal.bookmark.add.up"
241
242 #define SIGNAL_BOOKMARK_EXPAND                          "signal.bookmark.expand"
243 #define SIGNAL_BOOKMARK_NORMAL                          "signal.bookmark.normal"
244 #define SIGNAL_BOOKMARK_DEL_DOWN                        "signal.bookmark.end.btn.down"
245
246 #define SIGNAL_CONTROL_TRIM_DONE_BUTTON_DOWN            "signal.control.trim.done.button.down"
247 #define SIGNAL_CONTROL_TRIM_CANCEL_BUTTON_DOWN          "signal.control.trim.cancel.button.down"
248
249 #define SIGNAL_CONTROL_TRIM_FF_BUTTON_DOWN              "signal.control.trim.ff.button.down"
250 #define SIGNAL_CONTROL_TRIM_FF_BUTTON_UP                "signal.control.trim.ff.button.up"
251 #define SIGNAL_CONTROL_TRIM_REW_BUTTON_DOWN             "signal.control.trim.rew.button.down"
252 #define SIGNAL_CONTROL_TRIM_REW_BUTTON_UP               "signal.control.trim.rew.button.up"
253
254 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_ACTIVE          "signal.control.soundpath.button.active"
255 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_UNACTIVE        "signal.control.soundpath.button.unactive"
256
257 #define PART_OPTION_SCREEN_SIZE                         "option.screensize"
258 #define PART_OPTION_SHARE                               "option.share"
259 #define PART_OPTION_BOOKMARK                            "option.bookmark"
260 #define PART_OPTION_MULTIWIN                            "option.multiwin"
261 #define PART_OPTION_MORE                                "option.more"
262 #define PART_OPTION_SOUND_ALIVE                         "option.sa"
263 #define PART_OPTION_TRIM                                "option.trim"
264 #define PART_OPTION_REPEAT                              "option.repeat"
265 #define PART_OPTION_CONNECT_INFO                        "option.connectinfo"
266
267 #define SIGNAL_OPTION_SCREEN_SIZE_DOWN                  "signal.option.screensize.down"
268 #define SIGNAL_OPTION_SHARE_DOWN                        "signal.option.share.down"
269 #define SIGNAL_OPTION_BOOKMARK_DOWN                     "signal.option.bookmark.down"
270 #define SIGNAL_OPTION_MULTIWIN_UP                       "signal.option.multiwin.up"
271 #define SIGNAL_OPTION_MORE_DOWN                         "signal.option.more.down"
272 #define SIGNAL_OPTION_SOUND_ALIVE_DOWN                  "signal.option.sa.down"
273 #define SIGNAL_OPTION_TRIM_DOWN                         "signal.option.trim.down"
274 #define SIGNAL_OPTION_REPEAT_DOWN                       "signal.option.repeat.down"
275 #define SIGNAL_OPTION_CONNECT_INFO_DOWN                 "signal.option.connectinfo.down"
276
277 #define SIGNAL_LAYOUT_PIXMAP_BG_SHOW                    "signal.layout.pixmap.bg.show"
278 #define SIGNAL_LAYOUT_PIXMAP_BG_HIDE                    "signal.layout.pixmap.bg.hide"
279
280 #define SIGNAL_LAYOUT_INDICATOR_SHOW                    "signal.layout.indicator.show"
281 #define SIGNAL_LAYOUT_INDICATOR_HIDE                    "signal.layout.indicator.hide"
282
283 #define PART_MW_CLOSE                                   "mw.close"
284 #define PART_MW_PANEL_HIDE                              "mw.panel.hide"
285 #define PART_MW_PANEL_SHOW                              "mw.panel.show"
286 #define PART_MW_FULL_SIZE                               "mw.full.size"
287 #define PART_MW_REW                                     "mw.control.rew"
288 #define PART_MW_PLAY                                    "mw.control.play"
289 #define PART_MW_PAUSE                                   "mw.control.pause"
290 #define PART_MW_FF                                      "mw.control.ff"
291 #define PART_MW_RESIZE                                  "mw.resize"
292
293 #define SIGNAL_CONTORL_SHOW_FINISH                      "signal.control.show.finish"
294 #define SIGNAL_CONTORL_HIDE_FINISH                      "signal.control.hide.finish"
295
296 #define SIGNAL_NAVIFRAME_TITLE_SHOW                     "elm,state,title,show"
297 #define SIGNAL_NAVIFRAME_TITLE_HIDE                     "elm,state,title,hide"
298
299 #define SIGNAL_MAIN_CONTROL_PORTRAIT_SHOW               "signal.main.control.portrait.show"
300 #define SIGNAL_MAIN_CONTROL_LANDSCAPE_SHOW              "signal.main.control.landscape.show"
301
302 #define SIGNAL_MAIN_CONTROL_NORMAL_HIDE                 "signal.main.control.hide"
303 #define SIGNAL_MAIN_CONTROL_LANDSCAPE_BOOKMAKR_HIDE     "signal.main.control.hide.with.bookmark"
304
305 #define SIGNAL_MW_CLOSE_CLICKED                         "signal.mw.close.clicked"
306 #define SIGNAL_MW_PANEL_HIDE_CLICKED                    "signal.mw.panel.hide.clicked"
307 #define SIGNAL_MW_PANEL_SHOW_CLICKED                    "signal.mw.panel.show.clicked"
308 #define SIGNAL_MW_FULL_SIZE_CLICKED                     "signal.mw.full.size.clicked"
309 #define SIGNAL_MW_REW_CLICKED                           "signal.mw.control.rew.clicked"
310 #define SIGNAL_MW_PLAY_CLICKED                          "signal.mw.control.play.clicked"
311 #define SIGNAL_MW_PAUSE_CLICKED                         "signal.mw.control.pause.clicked"
312 #define SIGNAL_MW_FF_CLICKED                            "signal.mw.control.ff.clicked"
313 #define SIGNAL_MW_RESIZE_DOWN                           "signal.mw.resize.down"
314
315 #define SIGNAL_MW_HIDE_CONTROL                          "signal.mw.hide.control"
316 #define SIGNAL_MW_SHOW_CONTROL                          "signal.mw.show.control"
317
318 #define SIGNAL_MW_SET_PAUSE_STATUS                      "signal.mw.set.pause.status"
319 #define SIGNAL_MW_SET_PLAY_STATUS                       "signal.mw.set.play.status"
320
321 #define SIGNAL_MW_PIXMAP_SHOW                           "signal.mw.image.show"
322 #define SIGNAL_MW_PIXMAP_HIDE                           "signal.mw.image.hide"
323
324 #define SIGNAL_MW_PIXMAP_ALPHA_SET                      "signal.mw.image.alpha.set"
325 #define SIGNAL_MW_PIXMAP_ALPHA_UNSET                    "signal.mw.image.alpha.unset"
326
327 #define SIGNAL_OPTION_SELECT_BG_CLEAR                   "signal.option.select.bg.clear"
328
329 #define SIGNAL_OPTION_SCREEN_SIZE_NORMAL                "signal.option.screensize.normal"
330 #define SIGNAL_OPTION_SCREEN_SIZE_FULL                  "signal.option.screensize.full"
331 #define SIGNAL_OPTION_SCREEN_SIZE_ORIGIN                "signal.option.screensize.origin"
332
333 #define SIGNAL_OPTION_REPEAT_ON                         "signal.option.repeat.on"
334 #define SIGNAL_OPTION_REPEAT_OFF                        "signal.option.repeat.off"
335
336 #define SIGNAL_OPTION_MODE_LOCAL                        "signal.option.mode.local"
337 #define SIGNAL_OPTION_MODE_MYFILE                       "signal.option.mode.myfile"
338 #define SIGNAL_OPTION_MODE_EMAIL                        "signal.option.mode.email"
339 #define SIGNAL_OPTION_MODE_WEB                          "signal.option.mode.web"
340 #define SIGNAL_OPTION_MODE_MESSAGE                      "signal.option.mode.message"
341 #define SIGNAL_OPTION_MODE_ALLSHARE                     "signal.option.mode.allshare"
342
343 #define SIGNAL_PANEL_BUTTON_REPEAT_OFF                  "signal.panel.button.repeat.off"
344 #define SIGNAL_PANEL_BUTTON_REPEAT_ONE                  "signal.panel.button.repeat.one"
345 #define SIGNAL_PANEL_BUTTON_REPEAT_ALL                  "signal.panel.button.repeat.all"
346
347 #define SIGNAL_NAVIFRAME_PORTRATE_MODE                  "signal.naviframe.portrate.mode"
348 #define SIGNAL_NAVIFRAME_LANDSCAPE_MODE                 "signal.naviframe.landscape.mode"
349
350 #define SIGNAL_MAIN_PORTRATE_MODE                       "signal.main.portrate.mode"
351 #define SIGNAL_MAIN_LANDSCAPE_MODE                      "signal.main.landscape.mode"
352 #define SIGNAL_MAIN_TRIM_MODE                           "signal.main.trim.mode"
353
354 #define SIGNAL_MAIN_LANDSCAPE_BOOKMAKR_SHOW             "signal.main.landscape.bookmark.show"
355 #define SIGNAL_MAIN_LANDSCAPE_BOOKMAKR_HIDE             "signal.main.landscape.bookmark.hide"
356
357 #define SIGNAL_PANEL_PORTRATE_MODE                      "signal.panel.portrate.mode"
358 #define SIGNAL_PANEL_LANDSCAPE_MODE                     "signal.panel.landscape.mode"
359 #define SIGNAL_PANEL_TRIM_MODE                          "signal.panel.trim.mode"
360
361 #define SIGNAL_PROGRESS_PORTRATE_MODE                   "signal.progress.portrate.mode"
362 #define SIGNAL_PROGRESS_LANDSCAPE_MODE                  "signal.progress.landscape.mode"
363
364 #define SIGNAL_PROGRESS_POINTER_SHOW                    "signal.progress.pointer.show"
365 #define SIGNAL_PROGRESS_POINTER_HIDE                    "signal.progress.pointer.hide"
366
367 #define SIGNAL_PROGRESS_ADJUSTMENT_SHOW                 "signal.progress.adjustment.show"
368 #define SIGNAL_PROGRESS_ADJUSTMENT_HIDE                 "signal.progress.adjustment.hide"
369
370 #define SIGNAL_CONTROL_PORTRATE_MODE                    "signal.control.portrate.mode"
371 #define SIGNAL_CONTROL_LANDSCAPE_MODE                   "signal.control.landscape.mode"
372
373 #define SIGNAL_CONTROL_STREAMING_PORTRATE_MODE          "signal.control.streaming.portrate.mode"
374 #define SIGNAL_CONTROL_STREAMING_LANDSCAPE_MODE         "signal.control.streaming.landscape.mode"
375
376 #define SIGNAL_CONTROL_SET_MUTE                         "signal.control.volume.set.mute"
377 #define SIGNAL_CONTROL_UNSET_MUTE                       "signal.control.volume.unset.mute"
378
379
380 // Callback signals.
381 #define SIGNAL_CONTROL_PLAY_BUTTON_DOWN                 "signal.control.play.button.down"
382 #define SIGNAL_CONTROL_PLAY_BUTTON_UP                   "signal.control.play.button.up"
383 #define SIGNAL_CONTROL_PLAY_PAUSE_PRESS                 "signal.control.play.pause.press"
384 #define SIGNAL_CONTROL_PLAY_RESUME_PRESS                "signal.control.play.resume.press"
385
386 // Emit signals.
387 #define SIGNAL_CONTROL_PLAY_RESUME                      "signal.control.play.resume"
388 #define SIGNAL_CONTROL_PLAY_PAUSE                       "signal.control.play.pause"
389
390 #define SIGNAL_MAIN_MUTE_SHOW                           "signal.main.mute.show"
391 #define SIGNAL_MAIN_MUTE_HIDE                           "signal.main.mute.hide"
392
393 #define SIGNAL_MAIN_NOCONTENTS_SHOW                     "signal.main.nocontents.show"
394 #define SIGNAL_MAIN_NOCONTENTS_HIDE                     "signal.main.nocontents.hide"
395
396 #define SIGNAL_MAIN_SPEEDBOX_SHOW                       "signal.main.speedbox.show"
397 #define SIGNAL_MAIN_SPEEDBOX_HIDE                       "signal.main.speedbox.hide"
398
399 #define SIGNAL_MAIN_SCREEN_TOUCH_TOGGLE                 "main.screen.touch.toggle"
400 #define SIGNAL_MAIN_ANIMATION_SHOW                      "signal.main.animation.show"
401 #define SIGNAL_MAIN_ANIMATION_HIDE                      "signal.main.animation.hide"
402
403 #define SIGNAL_ANIMATION_IMAGE_LOADING                  "signal.loading.image.step"
404
405 #define SIGNAL_HIDDEN_BUTTON_PANEL_SOUNDPATH_SHOW       "signal.hidden.button.panel.soundpath.show"
406 #define SIGNAL_HIDDEN_BUTTON_PANEL_SOUNDPATH_HIDE       "signal.hidden.button.panel.soundpath.hide"
407 #define SIGNAL_HIDDEN_BUTTON_PANEL_ALLSHARE_SHOW        "signal.hidden.button.panel.allshare.show"
408 #define SIGNAL_HIDDEN_BUTTON_PANEL_ALLSHARE_HIDE        "signal.hidden.button.panel.allshare.hide"
409
410 #define SIGNAL_SUBTITLE_PORTRATE_MODE                   "signal.subtitle.portrate.mode"
411 #define SIGNAL_SUBTITLE_LANDSCAPE_MODE                  "signal.subtitle.landscape.mode"
412
413 #define SIGNAL_SUBTITLE_TXT_SHOW                        "signal.subtitle.txt.show"
414 #define SIGNAL_SUBTITLE_TXT_HIDE                        "signal.subtitle.txt.hide"
415
416 #define SIGNAL_SUBTITLE_LAYOUT_SHOW                     "signal.subtitle.layout.show"
417 #define SIGNAL_SUBTITLE_LAYOUT_HIDE                     "signal.subtitle.layout.hide"
418
419 #define SIGNAL_SUBTITLE_SIZE_SMALL                      "signal.subtitle.size.small"
420 #define SIGNAL_SUBTITLE_SIZE_MEDIUM                     "signal.subtitle.size.medium"
421 #define SIGNAL_SUBTITLE_SIZE_LARGE                      "signal.subtitle.size.large"
422
423 #define SIGNAL_SUBTITLE_SYNC_SHOW                       "signal.subtitle.sync.show"
424 #define SIGNAL_SUBTITLE_SYNC_HIDE                       "signal.subtitle.sync.hide"
425
426
427 #define PART_SUBTITLE_SYNC_SLOW_BUTTON                  "subtitle.sync.slow.button"
428 #define PART_SUBTITLE_SYNC_FAST_BUTTON                  "subtitle.sync.fast.button"
429 #define PART_SUBTITLE_SYNC_TXT                          "subtitle.sync.txt"
430
431 #define SIGNAL_SUBTITLE_SYNC_SLOW_DOWN                  "signal.subtitle.sync.slow.button.down"
432 #define SIGNAL_SUBTITLE_SYNC_FAST_DOWN                  "signal.subtitle.sync.fast.button.down"
433
434
435 #define SIGNAL_LOCKSCREEN_SHOW                          "signal.lockscreen.show"
436 #define SIGNAL_LOCKSCREEN_HIDE                          "signal.lockscreen.hide"
437
438
439 #define SIGNAL_LISTVIEW_PORTRAIT_PREVIEW_SHOW           "signal.listview.preview.show"
440 #define SIGNAL_LISTVIEW_PORTRAIT_PREVIEW_HIDE           "signal.listview.preview.hide"
441
442 #define SIGNAL_LISTVIEW_SELECTION_INFO_SHOW                     "signal.listview.selection.info.show"
443 #define SIGNAL_LISTVIEW_SELECTION_INFO_HIDE                     "signal.listview.selection.info.hide"
444
445 #define SIGNAL_LANDSCAPE_THUMB_PREVIEW_SHOW                     "signal.landscape.thumb.preview.show"
446 #define SIGNAL_LANDSCAPE_THUMB_PREVIEW_HIDE                     "signal.landscape.thumb.preview.hide"
447
448
449
450 #define TAG_FAVOURITES                                  "Favourites"
451 #define PACKAGE                                         "video-player"
452 #define PAUSE_KEY                                       "XF86AudioPause"
453 #define PLAY_KEY                                        "XF86AudioPlay"
454 #define STOP_KEY                                        "XF86AudioStop"
455 #define NEXT_KEY                                        "XF86AudioNext"
456 #define PREV_KEY                                        "XF86AudioPrev"
457 #define FORWARD_KEY                                     "XF86AudioForward"
458 #define REWIND_KEY                                      "XF86AudioRewind"
459 #define END_KEY                                         KEY_END
460 #define HOME_KEY                                        KEY_SELECT
461 #define KEY_CANCLE                                      KEY_CANCEL
462 #define POWER_KEY                                       "XF86PowerOff"
463
464 #define VOLUME_DOWN_KEY                                 KEY_VOLUMEDOWN
465 #define VOLUME_UP_KEY                                   KEY_VOLUMEUP
466
467 #define VOLUME_MUTE                                     0
468 #define KEY_GRAB_SHARED                                 SHARED_GRAB
469 #define KEY_GRAB_EXCLUSIVE                              EXCLUSIVE_GRAB
470 #define KEY_GRAB_TOP_POSITION                           TOP_POSITION_GRAB
471 #define KEY_GRAB_OR_EXCLUSIVE                           OR_EXCLUSIVE_GRAB
472 #define STR_LEN_MAX                                     4096 * 3
473 #define SVC_LEN_MAX                                     2048
474
475 #define _WIFI_MODE_                                     1
476 #define _3G_MODE_                                       2
477 #define USE_STREAMING_ANI                               1
478 #define LONG_PRESS_INTERVAL                             1.0
479 #define DOUBLE_CLICK_TIME                               0.2
480
481 #define SCREEN_TOUCH_TOGGLE_AREA_Y_START                0.065
482 #define SCREEN_TOUCH_TOGGLE_AREA_Y_END                  0.78
483
484 #define TAG_LIST_SIZE                                   256
485
486 #define ANIMATION_TIMER_INTERVAL                        0.05
487 #define ANIMATION_MAX_COUNT                             30
488
489 #define BOOSTER_STEP_DISTANCE                           99
490 #define TRIM_DETAIL_STEP_DISTANCE                       30
491
492 #define SIGNAL_TEXT_MAX_LEN                             64
493 #define CAPTION_TEXT_MAX_LEN                            16
494 #define STR_UUID_LEN_MAX                                37
495
496 #define DEFAULT_SCALE_WIDTH                             720
497 #define DEFAULT_SCALE_HEIGHT                            1280
498
499 #define DEFAULT_MW_WIDTH                                496
500 #define DEFAULT_MW_HEIGHT                               286
501
502 #define VIDEO_ICON_WIDTH                                168
503 #define VIDEO_ICON_HEIGHT                               124
504
505
506 #endif //_VIDEO_VALUE_DEFINE_
507