initial draft of the org.tizen.video-player
[apps/core/preloaded/video-player.git] / include / mp-video-value-define.h
index 0112dbc..ca44f0b 100755 (executable)
@@ -1,17 +1,19 @@
 /*
- * Copyright 2012  Samsung Electronics Co., Ltd
+ * 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.
  *
- * Licensed under the Flora License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.tizenopensource.org/license
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ *    Copyright [2012] [JongDong Lee <jongdong.lee@samsung.com>, ChangSun Lee <cs78.lee@samsung.com>]
+ *
+ *    Licensed under the Flora License, Version 1.0 (the "License");
+ *    you may not use this file except in compliance with the License.
+ *    You may obtain a copy of the License at
+ *
+ *        http://www.tizenopensource.org/license
+ *
+ *    Unless required by applicable law or agreed to in writing, software
+ *    distributed under the License is distributed on an "AS IS" BASIS,
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *    See the License for the specific language governing permissions and
+ *    limitations under the License.
  */
 
 
 #define EDJ_PATH                                       "/opt/apps/org.tizen.video-player/res/edje"
 #define LOCALEDIR                                      "/opt/apps/org.tizen.video-player/res/locale"
 
-#define VIDEO_HEAD_ICON_ADD                            PREFIX"/res/images/01_header_icon_add.png"
-#define VIDEO_HEAD_ICON_DEL                            PREFIX"/res/images/01_header_icon_cancel.png"
-#define VIDEO_HEAD_ICON_OTHERS                         PREFIX"/res/images/01_header_icon_others.png"
+#define VIDEO_BOOKMARK_DIR                             PREFIX"/data"
+#define VIDEO_TRIM_DATA_DIR                            PREFIX"/data"
 
-#define VIDEO_HEAD_ICON_SOUNDPATH                      PREFIX"/res/images/T01_icon_soundPath_h.png"
+#define VIDEO_HEAD_ICON_SOUNDPATH                      PREFIX"/res/images/icon/T01-2_icon_title_soundpath.png"
 
 #define VIDEO_PLAYER_MAIN_EDJ                          EDJ_PATH"/main.edj"
 #define VIDEO_PLAYER_CONTROL_EDJ                       EDJ_PATH"/control.edj"
 #define VIDEO_PLAYER_ADD_TAG                           EDJ_PATH"/add_tag.edj"
 #define VIDEO_PLAYER_ANIMATION_EDJ                     EDJ_PATH"/animation.edj"
 #define VIDEO_PLAYER_DETAIL_EDJ                                EDJ_PATH"/detail.edj"
-#define VIDEO_PLAYER_SUBTITLE_EDJ                      EDJ_PATH"/subtitle.edj"
+#define VIDEO_PLAYER_MULTI_WIN_EDJ                     EDJ_PATH"/multi_win.edj"
 #define VIDEO_CUSTOM_THEME                             EDJ_PATH"/vp-custom-winset-style.edj"
 #define VIDEO_PLAYER_HIDDEN_PANEL_EDJ                  EDJ_PATH"/hidden_button_panel.edj"
-#define VIDEO_PLAYER_OPTION_BUTTON_EDJ                 EDJ_PATH"/option_button.edj"
+#define VIDEO_PLAYER_POPUP_PROGRESSBAR_EDJ             EDJ_PATH"/popup_progressbar.edj"
+
+
+
 
 #define MAIN_EDJ_GROUP                                 "main"
 #define CONTROL_EDJ_GROUP                              "control"
 #define PROGRESS_EDJ_GROUP                             "progress"
+#define MULTIWIN_EDJ_GROUP                             "mw"
+
 #define PANEL_EDJ_GROUP                                        "panel"
 #define        FAVORITE_EDJ_GROUP                              "favorite"
 #define ANIMATION_EDJ_GROUP                            "animation"
 #define DETAIL_EDJ_GROUP                               "detail"
-#define SUBTITLE_EDJ_GROUP                             "subtitle"
-#define HIDDEN_PANEL_EDJ_GROUP                 "hidden_panel"
-#define OPTION_EDJ_GROUP                               "option"
+#define PANEL_BUTTON_EDJ_GROUP                         "panel.button"
 
 #define SWALLOW_MAIN_CONTROL                           "main.panel"
 #define SWALLOW_MAIN_ANIMATION                         "main.animation"
-#define SWALLOW_MAIN_HIDDEN_BUTTON                     "main.hidden.button"
-#define SWALLOW_MAIN_OPTION_BUTTON                     "main.option.button"
-
+#define SWALLOW_MAIN_PANEL_BUTTON                      "main.panel.button"
 
 #define SWALLOW_PANEL_CONTROL                          "panel.control"
 #define SWALLOW_PANEL_PROGRESS_BAR                     "panel.progress"
 
 #define SWALLOW_DETAIL_LIST                            "detail.list"
-#define SUBTITLE_TEXT                                  "subtitle.txt"
 #define PART_BUTTON_ICON                               "icon"
 
+#define MAIN_SPEED_TEXT                                        "main.speedbox.txt"
+
 
 #define SIGNAL_CONTROL_PART_PLAY_BUTTON                        "control.play.button"
 #define SIGNAL_CONTROL_PART_BACK_BUTTON                        "control.back.button"
 #define SIGNAL_CONTROL_PART_VOL_BUTTON                 "control.volume.button"
 #define SIGNAL_CONTROL_PART_SOUNDPATH_BUTTON           "control.soundpath.button"
-#define SIGNAL_CONTROL_PART_SCREENSIZE_BUTTON          "control.screensize.button"
 #define SIGNAL_CONTROL_PART_FF_BUTTON                  "control.normal.ff.button"
 #define SIGNAL_CONTROL_PART_REW_BUTTON                 "control.normal.rew.button"
-#define SIGNAL_CONTROL_PART_HQ_BUTTON                  "control.streaming.hq.button"
+
 #define SIGNAL_HIDDEN_BUTTON_PANEL_SOUNDPATH           "hidden.button.panel.soundpath"
 
-#define SIGNAL_CONTROL_MODE_NORMAL                     "signal.control.mode.normal"
 #define SIGNAL_CONTROL_MODE_STREAMING                  "signal.control.mode.streaming"
+#define SIGNAL_CONTROL_MODE_DLNA                       "signal.control.mode.dlna"
 #define SIGNAL_CONTROL_MODE_VISIBLE_OFF                        "signal.control.mode.visible.off"
-#define SIGNAL_CONTROL_BACK_BUTTON_DOWN                        "signal.control.back.button.down"
-
-#define SIGNAL_CONTROL_FF_MODE_NORMAL                  "signal.control.ff.normal"
-#define SIGNAL_CONTROL_FF_MODE_EXTEND                  "signal.control.ff.extend"
-
-#define SIGNAL_CONTROL_REW_MODE_NORMAL                 "signal.control.rew.normal"
-#define SIGNAL_CONTROL_REW_MODE_EXTEND                 "signal.control.rew.extend"
+#define SIGNAL_CONTROL_MODE_NORMAL                     "signal.control.mode.normal"
+#define SIGNAL_CONTROL_BACK_BUTTON_DOWN                        "signal.control.back.button.up"
 
 #define SIGNAL_CONTROL_VOL_BUTTON_DOWN                 "signal.control.volume.button.down"
 #define SIGNAL_CONTROL_VOL_BUTTON_UP                   "signal.control.volume.button.up"
 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_DOWN           "signal.control.soundpath.button.down"
 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_UP             "signal.control.soundpath.button.up"
-#define SIGNAL_CONTROL_SCREENSIZE_NORMAL               "signal.control.screensize.normal"
-#define SIGNAL_CONTROL_SCREENSIZE_EXPAND               "signal.control.screensize.expand"
 #define SIGNAL_CONTROL_NORMAL_FF_BUTTON_DOWN           "signal.control.normal.ff.button.down"
 #define SIGNAL_CONTROL_NORMAL_FF_BUTTON_UP             "signal.control.normal.ff.button.up"
 #define SIGNAL_CONTROL_NORMAL_REW_BUTTON_DOWN          "signal.control.normal.rew.button.down"
 #define SIGNAL_CONTROL_NORMAL_REW_BUTTON_UP            "signal.control.normal.rew.button.up"
-#define SIGNAL_CONTROL_HQ_BUTTON_DOWN                  "signal.control.streaming.hq.button.down"
-#define SIGNAL_CONTROL_HQ_BUTTON_UP                    "signal.control.streaming.hq.button.up"
-#define SIGNAL_HIDDEN_PANEL_SOUNDPATH_DOWN             "signal.hidden.button.panel.soundpath.down"
-#define SIGNAL_HIDDEN_PANEL_SOUNDPATH_UP               "signal.hidden.button.panel.soundpath.up"
+#define SIGNAL_CONTROL_NORMAL_FF_STEP                  "signal.control.normal.ff.button.step"
+#define SIGNAL_CONTROL_NORMAL_REW_STEP                 "signal.control.normal.rew.button.step"
+#define SIGNAL_CONTROL_NORMAL_FF_LANDSCAPE_STEP                "signal.control.normal.ff.button.landscape.step"
+#define SIGNAL_CONTROL_NORMAL_REW_LANDSCAPE_STEP       "signal.control.normal.rew.button.landscape.step"
+
 
 #define SIGNAL_CONTROL_VOL_BUTTON_MUTE                 "signal.control.volume.button.mute"
 #define SIGNAL_CONTROL_VOL_BUTTON_UNMUTE               "signal.control.volume.button.unmute"
 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_ACTIVE         "signal.control.soundpath.button.active"
 #define SIGNAL_CONTROL_SOUNDPATH_BUTTON_UNACTIVE       "signal.control.soundpath.button.unactive"
-#define SIGNAL_CONTROL_STREAMING_QUALITY_HIGH          "signal.control.streaming.quality.high"
-#define SIGNAL_CONTROL_STREAMING_QUALITY_NORMAL                "signal.control.streaming.quality.normal"
-#define SIGNAL_CONTROL_STREAMING_QUALITY_HIDE          "signal.control.streaming.quality.hide"
 
 
-#define SIGNAL_OPTION_PART_SCREEN_SIZE                 "option.screensize"
-#define SIGNAL_OPTION_PART_DETAIL                      "option.detail"
+#define SIGNAL_MW_PIXMAP_SHOW                          "signal.mw.image.show"
+#define SIGNAL_MW_PIXMAP_HIDE                          "signal.mw.image.hide"
 
-#define SIGNAL_OPTION_SCREEN_SIZE_DOWN                 "signal.option.screensize.down"
-#define SIGNAL_OPTION_DETAIL_DOWN                      "signal.option.detail.down"
+#define SIGNAL_NAVIFRAME_PORTRATE_MODE                 "signal.naviframe.portrate.mode"
+#define SIGNAL_NAVIFRAME_LANDSCAPE_MODE                        "signal.naviframe.landscape.mode"
 
-#define SIGNAL_OPTION_SCREEN_SIZE_NORMAL               "signal.option.screensize.normal"
-#define SIGNAL_OPTION_SCREEN_SIZE_EXPAND               "signal.option.screensize.expand"
+#define SIGNAL_MAIN_PORTRATE_MODE                      "signal.main.portrate.mode"
+#define SIGNAL_MAIN_LANDSCAPE_MODE                     "signal.main.landscape.mode"
+
+#define SIGNAL_PANEL_PORTRATE_MODE                     "signal.panel.portrate.mode"
+#define SIGNAL_PANEL_LANDSCAPE_MODE                    "signal.panel.landscape.mode"
+
+#define SIGNAL_PROGRESS_PORTRATE_MODE                  "signal.progress.portrate.mode"
+#define SIGNAL_PROGRESS_LANDSCAPE_MODE                 "signal.progress.landscape.mode"
+
+#define SIGNAL_PROGRESS_ADJUSTMENT_SHOW                        "signal.progress.adjustment.show"
+#define SIGNAL_PROGRESS_ADJUSTMENT_HIDE                        "signal.progress.adjustment.hide"
+
+
+#define SIGNAL_CONTROL_PORTRATE_MODE                   "signal.control.portrate.mode"
+#define SIGNAL_CONTROL_LANDSCAPE_MODE                  "signal.control.landscape.mode"
+
+#define SIGNAL_CONTROL_STREAMING_PORTRATE_MODE         "signal.control.streaming.portrate.mode"
+#define SIGNAL_CONTROL_STREAMING_LANDSCAPE_MODE                "signal.control.streaming.landscape.mode"
 
 // Callback signals.
 #define SIGNAL_CONTROL_PLAY_BUTTON_DOWN                        "signal.control.play.button.down"
 #define SIGNAL_CONTROL_PLAY_RESUME                     "signal.control.play.resume"
 #define SIGNAL_CONTROL_PLAY_PAUSE                      "signal.control.play.pause"
 
-#define SIGNAL_CONTROL_SCREENSIZE_BUTTON_NORMAL                "signal.control.screensize.button.normal"
-#define SIGNAL_CONTROL_SCREENSIZE_BUTTON_EXPAND                "signal.control.screensize.button.expand"
-
-#define SIGNAL_OPTION_MODE_STREAMING                           "signal.option.mode.streaming"
-
-
 #define SIGNAL_MAIN_MUTE_SHOW                          "signal.main.mute.show"
 #define SIGNAL_MAIN_MUTE_HIDE                          "signal.main.mute.hide"
 
-#define SIGNAL_MAIN_NOCONTENTS_SHOW                                    "signal.main.nocontents.show"
-#define SIGNAL_MAIN_NOCONTENTS_HIDE                                    "signal.main.nocontents.hide"
+#define SIGNAL_MAIN_NOCONTENTS_SHOW                    "signal.main.nocontents.show"
+#define SIGNAL_MAIN_NOCONTENTS_HIDE                    "signal.main.nocontents.hide"
+
+#define SIGNAL_MAIN_SPEEDBOX_SHOW                      "signal.main.speedbox.show"
+#define SIGNAL_MAIN_SPEEDBOX_HIDE                      "signal.main.speedbox.hide"
 
-#define SIGNAL_MAIN_SCREEN_TOUCH_PRESS                 "signal.main.screen.touch.press"
 #define SIGNAL_MAIN_SCREEN_TOUCH_TOGGLE                        "main.screen.touch.toggle"
 #define SIGNAL_MAIN_ANIMATION_SHOW                     "signal.main.animation.show"
 #define SIGNAL_MAIN_ANIMATION_HIDE                     "signal.main.animation.hide"
 
-#define SIGNAL_MAIN_OPTION_BUTTON_BG_HIDE              "signal.main.option.button.bg.hide"
-
 #define SIGNAL_ANIMATION_IMAGE_LOADING                 "signal.loading.image.step"
 
-#define SIGNAL_HIDDEN_BUTTON_PANEL_SOUNDPATH_SHOW      "signal.hidden.button.panel.soundpath.show"
-#define SIGNAL_HIDDEN_BUTTON_PANEL_SOUNDPATH_HIDE      "signal.hidden.button.panel.soundpath.hide"
 
 #define TAG_FAVOURITES                                 "Favourites"
 #define PACKAGE                                                "video-player"
 #define KEY_GRAB_TOP_POSITION                          TOP_POSITION_GRAB
 #define KEY_GRAB_OR_EXCLUSIVE                          OR_EXCLUSIVE_GRAB
 #define STR_LEN_MAX                                    4096 * 3
+#define SVC_LEN_MAX                                    2048
 
 #define        XML_ITEM_NUM                                    6
 #define _WIFI_MODE_                                    1
 #define _3G_MODE_                                      2
 #define USE_STREAMING_ANI                              1
-#define LONG_PRESS_INTERVAL                            0.5
+#define LONG_PRESS_INTERVAL                            1.0
+#define DOUBLE_CLICK_TIME                              0.2
 
 #define        SCREEN_TOUCH_TOGGLE_AREA_Y_START                0.065
 #define        SCREEN_TOUCH_TOGGLE_AREA_Y_END                  0.78
 #define CAPTION_TEXT_MAX_LEN                           16
 #define STR_UUID_LEN_MAX                               37
 
+#define DEFAULT_SCALE_WIDTH                            720
+#define DEFAULT_SCALE_HEIGHT                           1280
+
+#define DEFAULT_MW_WIDTH                               496
+#define DEFAULT_MW_HEIGHT                              286
+
 #endif //_VIDEO_VALUE_DEFINE_
+