Merge "Esc key handling in MessageBox and ProgressPopup Signed-off-by: vipul <vipul...
authorvipul <vipul.kumar@samsung.com>
Wed, 3 Jul 2013 13:43:22 +0000 (13:43 +0000)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 3 Jul 2013 13:43:22 +0000 (13:43 +0000)
133 files changed:
inc/FUiCtrlEditArea.h
inc/FUiCtrlEditField.h
inc/FUiCtrlExpandableEditArea.h
inc/FUiCtrlForm.h
inc/FUiCtrlTextBox.h
inc/FUiTouchPinchGestureDetector.h
res/common/usr/share/osp/bitmaps/480x800/00_edit_field_no_line_square_bg.#.png [changed mode: 0644->0755]
res/common/usr/share/osp/bitmaps/480x800/00_search_edit_field_focus.#.png
res/common/usr/share/osp/bitmaps/480x800/black/00_more_popup_press.#.png
res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_bg.#.png
res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_bg_ef.#.png
res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_bottom.png
res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_bottom_ef.png
res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_left.png
res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_left_ef.png
res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_right.png
res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_right_ef.png
res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_top.png
res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_top_ef.png
res/common/usr/share/osp/bitmaps/480x800/default/00_more_popup_press.#.png
res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_bg.#.png
res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_bg_ef.#.png
res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_bottom.png
res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_bottom_ef.png
res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_left.png
res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_left_ef.png
res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_right.png
res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_right_ef.png
res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_top.png
res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_top_ef.png
res/common/usr/share/osp/bitmaps/480x800/white/00_more_popup_press.#.png
res/common/usr/share/osp/bitmaps/480x800/white/00_popup_bubble_bg.#.png
res/common/usr/share/osp/bitmaps/480x800/white/00_popup_bubble_bg_ef.#.png
res/common/usr/share/osp/bitmaps/720x1280/00_edit_field_no_line_square_bg.#.png [changed mode: 0644->0755]
res/common/usr/share/osp/bitmaps/720x1280/black/00_more_popup_press.#.png
res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_bg.#.png
res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_bg_ef.#.png
res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_bottom_ef.png
res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_left_ef.png
res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_right_ef.png
res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_top_ef.png
res/common/usr/share/osp/bitmaps/720x1280/default/00_more_popup_press.#.png
res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_bg.#.png
res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_bg_ef.#.png
res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_bottom_ef.png
res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_left_ef.png
res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_right_ef.png
res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_top_ef.png
res/common/usr/share/osp/bitmaps/720x1280/white/00_more_popup_press.#.png
res/common/usr/share/osp/bitmaps/720x1280/white/00_popup_bubble_bg.#.png
res/common/usr/share/osp/bitmaps/720x1280/white/00_popup_bubble_bg_ef.#.png
src/graphics/FGrp_CanvasImpl.cpp
src/ui/FUiAccessibilityContainer.cpp
src/ui/FUi_AccessibilityContainer.cpp
src/ui/FUi_AccessibilityElement.cpp
src/ui/FUi_AccessibilityManager.cpp
src/ui/FUi_Control.cpp
src/ui/FUi_ControlImpl.cpp
src/ui/FUi_ControlManager.cpp
src/ui/FUi_EflUiEventManager.cpp
src/ui/FUi_FocusManagerImpl.cpp
src/ui/FUi_ResourceManager.cpp
src/ui/FUi_TouchManager.cpp
src/ui/controls/FUiCtrl_Button.cpp
src/ui/controls/FUiCtrl_ButtonPresenter.cpp
src/ui/controls/FUiCtrl_ContextMenu.cpp
src/ui/controls/FUiCtrl_ContextMenuListPresenter.cpp
src/ui/controls/FUiCtrl_ContextMenuModel.cpp
src/ui/controls/FUiCtrl_DateTimeBarPresenter.cpp
src/ui/controls/FUiCtrl_Edit.cpp
src/ui/controls/FUiCtrl_EditCopyPasteManager.cpp
src/ui/controls/FUiCtrl_EditDatePresenter.cpp
src/ui/controls/FUiCtrl_EditPresenter.cpp
src/ui/controls/FUiCtrl_EditTimePresenter.cpp
src/ui/controls/FUiCtrl_FastScrollIndex.cpp
src/ui/controls/FUiCtrl_FastScrollPresenter.cpp
src/ui/controls/FUiCtrl_FooterImpl.cpp
src/ui/controls/FUiCtrl_Form.cpp
src/ui/controls/FUiCtrl_FormImpl.cpp
src/ui/controls/FUiCtrl_GroupContainer.cpp
src/ui/controls/FUiCtrl_HeaderImpl.cpp
src/ui/controls/FUiCtrl_IconListItem.cpp
src/ui/controls/FUiCtrl_IconListPresenter.cpp
src/ui/controls/FUiCtrl_Indicator.cpp
src/ui/controls/FUiCtrl_IndicatorManager.cpp
src/ui/controls/FUiCtrl_Keypad.cpp
src/ui/controls/FUiCtrl_OptionMenuItem.cpp
src/ui/controls/FUiCtrl_OptionMenuPresenter.cpp
src/ui/controls/FUiCtrl_PopupPresenter.cpp
src/ui/controls/FUiCtrl_ScrollPanel.cpp
src/ui/controls/FUiCtrl_ScrollPanelPresenter.cpp
src/ui/controls/FUiCtrl_SearchBar.cpp
src/ui/controls/FUiCtrl_Slider.cpp
src/ui/controls/FUiCtrl_SliderPresenter.cpp
src/ui/controls/FUiCtrl_SplitPanel.cpp
src/ui/controls/FUiCtrl_TabBar.cpp
src/ui/controls/FUiCtrl_TabBarPresenter.cpp
src/ui/controls/FUiCtrl_TableViewItem.cpp
src/ui/controls/FUiCtrl_TableViewPresenter.cpp
src/ui/controls/FUiCtrl_TokenEditPresenter.cpp
src/ui/controls/FUiCtrl_Toolbar.cpp
src/ui/controls/FUiCtrl_ToolbarPresenter.cpp
src/ui/inc/FUiCtrl_DateTimeBarPresenter.h
src/ui/inc/FUiCtrl_EditPresenter.h
src/ui/inc/FUiCtrl_Form.h
src/ui/inc/FUiCtrl_Indicator.h
src/ui/inc/FUiCtrl_OptionMenuPresenter.h
src/ui/inc/FUiCtrl_ScrollPanel.h
src/ui/inc/FUiCtrl_ScrollPanelPresenter.h
src/ui/inc/FUiCtrl_SearchBar.h
src/ui/inc/FUiCtrl_Slider.h
src/ui/inc/FUiCtrl_SliderPresenter.h
src/ui/inc/FUiCtrl_TabBar.h
src/ui/inc/FUiCtrl_TabBarItem.h
src/ui/inc/FUiCtrl_TabBarPresenter.h
src/ui/inc/FUiCtrl_TableViewItem.h
src/ui/inc/FUi_AccessibilityContainer.h
src/ui/inc/FUi_Control.h
src/ui/inc/FUi_ControlImpl.h
src/ui/inc/FUi_ControlManager.h
src/ui/inc/FUi_IControlManagerEventListener.h [new file with mode: 0644]
src/ui/inc/FUi_ResourceContextMenuConfig.h
src/ui/inc/FUi_ResourceEditConfig.h
src/ui/inc/FUi_ResourceManager.h
src/ui/inc/FUi_ResourceTabBarConfig.h
src/ui/resource/FUi_ResourceConfigParser.cpp
src/ui/resource/FUi_ResourceContextMenuConfig.cpp
src/ui/resource/FUi_ResourceEditConfig.cpp
src/ui/resource/FUi_ResourceFooterConfig.cpp
src/ui/resource/FUi_ResourceHeaderConfig.cpp
src/ui/resource/FUi_ResourceOptionMenuConfig.cpp
src/ui/resource/FUi_ResourceTabBarConfig.cpp
src/ui/resource/FUi_ResourceTableViewConfig.cpp

index 6fe2126..adfe8ec 100755 (executable)
@@ -639,6 +639,7 @@ public:
         * @exception   E_INVALID_ARG   The specified input parameter is invalid. @n
         *                                                              The specified @c size cannot be a negative integer.
         * @exception   E_SYSTEM                A system error has occurred.
+        * @remarks             The specified @c size should be greater than or equal to minimum font size which is 4.
         * @see                 GetTextSize()
         */
        result SetTextSize(int size);
@@ -654,6 +655,7 @@ public:
         * @exception   E_INVALID_ARG   The specified input parameter is invalid. @n
         *                                                              The specified @c size cannot be a negative integer.
         * @exception   E_SYSTEM                A system error has occurred.
+        * @remarks             The specified @c size should be greater than or equal to minimum font size which is 4.0f.
         * @see                 GetTextSizeF()
         */
        result SetTextSize(float size);
index a4951cb..beeeb4d 100755 (executable)
@@ -634,6 +634,7 @@ public:
         * @exception   E_INVALID_ARG   The specified input parameter is invalid. @n
         *                                                              The @c size cannot be a negative integer.
         * @exception   E_SYSTEM                A system error has occurred.
+        * @remarks             The specified @c size should be greater than or equal to minimum font size which is 4.
         * @see                 GetTextSize()
         */
        result SetTextSize(int size);
@@ -649,6 +650,7 @@ public:
         * @exception   E_INVALID_ARG   The specified input parameter is invalid. @n
         *                                                              The @c size cannot be a negative integer.
         * @exception   E_SYSTEM                A system error has occurred.
+        * @remarks             The specified @c size should be greater than or equal to minimum font size which is 4.0f.
         * @see                 GetTextSizeF()
         */
        result SetTextSize(float size);
index 9ede203..aee9ba9 100755 (executable)
@@ -650,6 +650,7 @@ public:
        * @exception   E_INVALID_ARG       The specified @c size is invalid, @n
        *                                                                       or the specified @c size is a negative integer.
        * @exception   E_SYSTEM            A system error has occurred.
+       * @remarks     The specified @c size should be greater than or equal to minimum font size which is 4.
        * @see         GetTextSize()
        */
        result SetTextSize(int size);
@@ -665,6 +666,7 @@ public:
        * @exception   E_INVALID_ARG       The specified @c size is invalid, @n
        *                                                                       or the specified @c size is a negative integer.
        * @exception   E_SYSTEM            A system error has occurred.
+       * @remarks     The specified @c size should be greater than or equal to minimum font size which is 4.0f.
        * @see         GetTextSizeF()
        */
        result SetTextSize(float size);
index 234ac47..975ea7a 100644 (file)
@@ -1080,7 +1080,7 @@ public:
        *                                      else @c false
        * @exception    E_SUCCESS            The method is successful.
        * @exception    E_INVALID_OPERATION        The current state of the instance prohibits the execution of a specified operation. @n
-       *                                       If the style of %Form is not ::FORM_STYLE_INDICATOR_AUTO_HIDE,
+       *                                       If the style of %Form is not ::FORM_STYLE_PORTRAIT_INDICATOR_AUTO_HIDE,
        *                                       the method returns @c E_INVALID_OPERATION.
        * @remarks      If this method is not explicitly called, the notification tray is opened.
        * @see            IsNotificationTrayOpenEnabled()
@@ -1097,7 +1097,7 @@ public:
        *                 else @c false
        * @exception      E_SUCCESS            The method is successful.
        * @exception     E_INVALID_OPERATION        The current state of the instance prohibits the execution of a specified operation. @n
-       *                                       If the style of %Form is not ::FORM_STYLE_INDICATOR_AUTO_HIDE,
+       *                                       If the style of %Form is not ::FORM_STYLE_PORTRAIT_INDICATOR_AUTO_HIDE,
        *                                       the method returns @c E_INVALID_OPERATION.
        * @remarks        The specific error code can be accessed using the GetLastResult() method.
        * @see            SetNotificationTrayOpenEnabled()
index 48dbb3a..6c5dd33 100644 (file)
@@ -565,6 +565,7 @@ public:
         * @exception   E_INVALID_ARG       The specified input parameter is invalid. @n
         *                                                                      The specified @c size cannot be a negative integer.
         * @exception   E_SYSTEM            A system error has occurred.
+        * @remarks             The specified @c size should be greater than or equal to minimum font size which is 4.
         * @see                 GetTextSize()
         */
        result SetTextSize(int size);
@@ -580,6 +581,7 @@ public:
         * @exception   E_INVALID_ARG       The specified input parameter is invalid. @n
         *                                                                      The specified @c size cannot be a negative integer.
         * @exception   E_SYSTEM            A system error has occurred.
+        * @remarks             The specified @c size should be greater than or equal to minimum font size which is 4.0f.
         * @see                 GetTextSizeF()
         */
        result SetTextSize(float size);
index f30bbef..7ff87e9 100644 (file)
@@ -93,7 +93,7 @@ public:
        * @param[in]    listener                                                The event listener to add
        * @exception    E_SUCCESS                                       The method is successful.
        * @exception    E_OBJ_ALREADY_EXIST     The listener is already added.
-       * @see                                  RemoveRotationGestureEventListener()
+       * @see                                  RemovePinchGestureEventListener()
        */
        result AddPinchGestureEventListener(Tizen::Ui::ITouchPinchGestureEventListener& listener);
 
@@ -106,7 +106,7 @@ public:
        * @param[in]    listener                                                The listener to remove
        * @exception    E_SUCCESS                                       The method is successful.
        * @exception    E_OBJ_NOT_FOUND The specified @c listener is not found.
-       * @see                                  AddRotationGestureEventListener()
+       * @see                                  AddPinchGestureEventListener()
        */
        result RemovePinchGestureEventListener(Tizen::Ui::ITouchPinchGestureEventListener& listener);
 
old mode 100644 (file)
new mode 100755 (executable)
index 63f59f6..c21d62e
Binary files a/res/common/usr/share/osp/bitmaps/480x800/00_edit_field_no_line_square_bg.#.png and b/res/common/usr/share/osp/bitmaps/480x800/00_edit_field_no_line_square_bg.#.png differ
index 924b51b..29c6a80 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/00_search_edit_field_focus.#.png and b/res/common/usr/share/osp/bitmaps/480x800/00_search_edit_field_focus.#.png differ
index f917f23..fe031a4 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_more_popup_press.#.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_more_popup_press.#.png differ
index 3625e91..0348934 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_bg.#.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_bg.#.png differ
index b7426fa..ec3d42e 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_bg_ef.#.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_bg_ef.#.png differ
index aae4fdb..1e05607 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_bottom.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_bottom.png differ
index 12c65f8..2e6c843 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_bottom_ef.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_bottom_ef.png differ
index a7be7bd..cf1f668 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_left.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_left.png differ
index 253fe7f..e934d8c 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_left_ef.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_left_ef.png differ
index b65b16e..4732066 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_right.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_right.png differ
index e50dad1..1670715 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_right_ef.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_right_ef.png differ
index c8d6c07..90177c8 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_top.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_top.png differ
index fd4d190..f0849a3 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_top_ef.png and b/res/common/usr/share/osp/bitmaps/480x800/black/00_popup_bubble_tail_top_ef.png differ
index f917f23..fe031a4 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_more_popup_press.#.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_more_popup_press.#.png differ
index 3625e91..0348934 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_bg.#.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_bg.#.png differ
index b7426fa..ec3d42e 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_bg_ef.#.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_bg_ef.#.png differ
index aae4fdb..1e05607 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_bottom.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_bottom.png differ
index 12c65f8..2e6c843 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_bottom_ef.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_bottom_ef.png differ
index a7be7bd..cf1f668 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_left.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_left.png differ
index 253fe7f..e934d8c 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_left_ef.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_left_ef.png differ
index b65b16e..4732066 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_right.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_right.png differ
index e50dad1..1670715 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_right_ef.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_right_ef.png differ
index c8d6c07..90177c8 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_top.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_top.png differ
index fd4d190..f0849a3 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_top_ef.png and b/res/common/usr/share/osp/bitmaps/480x800/default/00_popup_bubble_tail_top_ef.png differ
index f917f23..fe031a4 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/white/00_more_popup_press.#.png and b/res/common/usr/share/osp/bitmaps/480x800/white/00_more_popup_press.#.png differ
index 3625e91..efca13c 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/white/00_popup_bubble_bg.#.png and b/res/common/usr/share/osp/bitmaps/480x800/white/00_popup_bubble_bg.#.png differ
index b7426fa..4e9c67f 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/480x800/white/00_popup_bubble_bg_ef.#.png and b/res/common/usr/share/osp/bitmaps/480x800/white/00_popup_bubble_bg_ef.#.png differ
old mode 100644 (file)
new mode 100755 (executable)
index 63f59f6..c21d62e
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/00_edit_field_no_line_square_bg.#.png and b/res/common/usr/share/osp/bitmaps/720x1280/00_edit_field_no_line_square_bg.#.png differ
index 7db4441..c08eb05 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/black/00_more_popup_press.#.png and b/res/common/usr/share/osp/bitmaps/720x1280/black/00_more_popup_press.#.png differ
index af20fbd..b45dedb 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_bg.#.png and b/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_bg.#.png differ
index 60e7825..900f4e7 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_bg_ef.#.png and b/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_bg_ef.#.png differ
index 48229e2..587452a 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_bottom_ef.png and b/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_bottom_ef.png differ
index ddba5b0..9d84fc3 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_left_ef.png and b/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_left_ef.png differ
index dbe997e..49f13ea 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_right_ef.png and b/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_right_ef.png differ
index a96f1bf..194a9d6 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_top_ef.png and b/res/common/usr/share/osp/bitmaps/720x1280/black/00_popup_bubble_tail_top_ef.png differ
index 7db4441..c08eb05 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/default/00_more_popup_press.#.png and b/res/common/usr/share/osp/bitmaps/720x1280/default/00_more_popup_press.#.png differ
index af20fbd..b45dedb 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_bg.#.png and b/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_bg.#.png differ
index 60e7825..900f4e7 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_bg_ef.#.png and b/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_bg_ef.#.png differ
index 48229e2..587452a 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_bottom_ef.png and b/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_bottom_ef.png differ
index ddba5b0..9d84fc3 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_left_ef.png and b/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_left_ef.png differ
index dbe997e..49f13ea 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_right_ef.png and b/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_right_ef.png differ
index a96f1bf..194a9d6 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_top_ef.png and b/res/common/usr/share/osp/bitmaps/720x1280/default/00_popup_bubble_tail_top_ef.png differ
index 7db4441..c08eb05 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/white/00_more_popup_press.#.png and b/res/common/usr/share/osp/bitmaps/720x1280/white/00_more_popup_press.#.png differ
index af20fbd..56bd48a 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/white/00_popup_bubble_bg.#.png and b/res/common/usr/share/osp/bitmaps/720x1280/white/00_popup_bubble_bg.#.png differ
index 60e7825..4a63bbe 100644 (file)
Binary files a/res/common/usr/share/osp/bitmaps/720x1280/white/00_popup_bubble_bg_ef.#.png and b/res/common/usr/share/osp/bitmaps/720x1280/white/00_popup_bubble_bg_ef.#.png differ
index b778c63..c6ecf2e 100755 (executable)
@@ -2777,12 +2777,16 @@ _CanvasImpl::GetFontN(void)
        if (this->_pFont)
        {
                pFont = _FontImpl::CloneN(*(this->_pFont));
-               SysTryCatch(NID_GRP, pFont, r = E_OUT_OF_MEMORY, E_OPERATION_FAILED, "[E_OUT_OF_MEMORY] Failed to create Font instance.");
+               SysTryCatch(NID_GRP, pFont, r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to create Font instance.");
        }
        else
        {
-               // make font instance with the attribute of system default font
-               // shkim, TODO
+               pFont = new Font();
+               SysTryCatch(NID_GRP, pFont, r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to allocate memory.");
+
+               const float defaultFontSize = _ResUtil::ConvertToVirCoordY(16.0f);
+               result r = pFont->Construct(FONT_STYLE_PLAIN, defaultFontSize);
+               SysTryCatch(NID_GRP, IsSucceeded(r), , r, "[%s] Propagating.", GetErrorMessage(r));
        }
 
        SetLastResult(r);
index 21ef355..db41fdc 100644 (file)
@@ -80,7 +80,7 @@ AccessibilityContainer::GetElement(const String& name) const
        SysAssertf(__pAccessibilityContainerImpl != null, "Not constructed properly by platform.");
        ClearLastResult();
        AccessibilityElement* pElement = __pAccessibilityContainerImpl->GetChildElement(name);
-       SysTryReturn(NID_UI, pElement, null, E_SYSTEM, "[E_SYSTEM] Getting a child by name is failed..");
+       SysTryReturn(NID_UI, pElement, null, E_SYSTEM, "[E_SYSTEM] Getting a child by name is failed.. name : %ls", name.GetPointer());
        return pElement;
 }
 
index ce179ce..9240bdc 100644 (file)
@@ -250,7 +250,22 @@ _AccessibilityContainer::GetChildElement(int index) const
                return false;
        }
 }
-
+bool
+_AccessibilityContainer::IsContains(const _AccessibilityElement& element)
+{
+       result r = E_SUCCESS;
+       _AccessibilityElement* pElement = null;
+       int count = __elementList.GetCount();
+       for (int i = 0; i < count ;i++)
+       {
+               r = __elementList.GetAt(i, pElement);
+               if (pElement == &element)
+               {
+                       return true;
+               }
+       }
+       return false;
+}
 _AccessibilityElement*
 _AccessibilityContainer::GetChildElement(const String& name) const
 {
index 83851f7..eb0bcab 100644 (file)
@@ -118,6 +118,10 @@ _AccessibilityElement::~_AccessibilityElement(void)
        __pStatusId = null;
        delete [] __pValueId;
        __pValueId = null;
+       if (__pParent && this == __pParent->GetCurrentFocusedElement())
+       {
+               _AccessibilityManager::GetInstance()->RequestAutoReading(_ACCESSIBILITY_AUTO_READING_MODE_FIRST_ITEM);
+       }
 }
 result
 _AccessibilityElement::Construct(const String& name, const FloatRectangle& bounds)
index ffc4442..03e824b 100644 (file)
@@ -115,7 +115,7 @@ public:
                }
                if (__start)
                {
-                       return;
+                       Stop();
                }
                __start = true;
                __mode = mode;
@@ -1226,6 +1226,10 @@ _AccessibilityManager::RemoveContainer(const _AccessibilityContainer& container)
        }
        if (__pTargetContainer == &container)
        {
+               if(__pTargetContainer)
+               {
+                       __pTargetContainer->SetCurrentFocusedElement(null);
+               }
                __pTargetContainer = null;
                __pTargetElement = null;
        }
@@ -1636,7 +1640,12 @@ _AccessibilityManager::MoveFocus(_AccessibilityFocusDirection direction)
                {
                        pElement = null;
                        __pTargetElement = null;
+                       if(__pTargetContainer)
+                       {
+                               __pTargetContainer->SetCurrentFocusedElement(null);
+                       }
                        __pTargetContainer = null;
+                       
                }
                else
                {
@@ -1774,7 +1783,7 @@ _AccessibilityManager::MoveFocus(_AccessibilityFocusDirection direction)
 void
 _AccessibilityManager::RequestToDrawFocusUi()
 {
-       if (__pTargetContainer)
+       if (__targetControlHandle.IsValid() && __pTargetContainer->IsContains(*__pTargetElement))
        {
                //HidePopup();
                DrawFocusUi(*__pTargetElement);
@@ -2339,6 +2348,10 @@ _AccessibilityManager::OnAccessibilityScreenReaderIsActivated(bool set)
                {
                        __pTtsPlayer->Deactivate();
                        EraseFocusUi();
+                       if(__pTargetContainer)
+                       {
+                               __pTargetContainer->SetCurrentFocusedElement(null);
+                       }
                        __pTargetContainer = null;
                        __pTargetElement = null;
                        __pTitleElement = null;
@@ -2455,7 +2468,10 @@ void
 _AccessibilityManager::ResetFocusInformation(void)
 {
        EraseFocusUi();
-
+       if(__pTargetContainer)
+       {
+               __pTargetContainer->SetCurrentFocusedElement(null);
+       }
        __pTargetContainer = null;
        __pTargetElement = null;
        __pTitleElement = null;
index 7acccf2..a8f38ef 100644 (file)
@@ -4348,7 +4348,11 @@ _Control::GetTopmostChildAt(const Point& point) const
        SysTryReturn(NID_UI, pRootControlElement, null, E_SYSTEM, "[E_SYSTEM] pRootControlElement is null.");
 
        _ControlVisualElement* pHitTestElm = pRootControlElement->GetControlChildAtPoint(ptf);
-       SysTryReturn(NID_UI, pHitTestElm, null, E_SYSTEM, "[E_SYSTEM] pHitTestElm is null.");
+       if (pHitTestElm == null)
+       {
+               SysSecureLog(NID_UI, "pHitTestElm is null, point(%f, %f)", ptf.x, ptf.y);
+               return null;
+       }
 
        pTouchedControl = static_cast <_Control*>(pHitTestElm->GetUserData());
 
@@ -4847,10 +4851,20 @@ _Control::PrintDescription(bool printChildren, int depth, int level)
                SysLog(NID_UI, "%ls %ls", indent.GetPointer(), publicDescription.GetPointer());
        }
 
+       _ControlManager* pControlManager = _ControlManager::GetInstance();
+       SysTryReturn(NID_UI, pControlManager, null, E_SYSTEM, "[E_SYSTEM] _ControlManager does not exist.");
+
+       bool focused = false;
+       _Control* pFocusedControl = pControlManager->GetFocusControl();
+       if (pFocusedControl && (pFocusedControl == this))
+       {
+               focused = true;
+       }
+
        // Core
-       SysLog(NID_UI, "%ls 0x%x(%d %ls) enable(%d) enableState(%d) visible(%d) visibleState(%d) focusable(%d) clip(%d) movable(%d) resizable(%d) inputEnableState(%d)",
+       SysLog(NID_UI, "%ls 0x%x(%d %ls) enable(%d) enableState(%d) visible(%d) visibleState(%d) focusable(%d) focused(%d) clip(%d) movable(%d) resizable(%d) inputEnableState(%d)",
                indent.GetPointer(), this, __controlHandle.ToInt(), GetName().GetPointer(), IsEnabled(), GetEnableState(), IsVisible(), GetVisibleState(),
-               IsFocusable(), IsClipToParent(), IsMovable(), IsResizable(), GetInputEnableState());
+               IsFocusable(), focused, IsClipToParent(), IsMovable(), IsResizable(), GetInputEnableState());
 
        Rectangle bounds = GetBounds();
        Dimension min = GetMinimumSize();
@@ -5215,6 +5229,11 @@ _Control::OnChildControlFocusMoved(const _Control& control)
 {
 }
 
+void
+_Control::OnDescendantControlFocusMoved(const _Control& control)
+{
+}
+
 bool
 _Control::IsChildControlFocusManage(void) const
 {
@@ -5326,9 +5345,8 @@ _Control::GetFocusListN(void) const
        {
                _Control* pEnumeratorControl = null;
                pEnum->GetCurrent(pEnumeratorControl);
-               _ContainerImpl* pTempContainerImpl = dynamic_cast<_ContainerImpl*>(static_cast <_ControlImpl* >(pEnumeratorControl->GetUserData()));
 
-               if (pTempContainerImpl != null && (nextContainerIndex < i))
+               if (nextContainerIndex < i)
                {
                        if (pEnumeratorControl->IsChildControlFocusManage() == false)
                        {
index 62ab152..25e8c2f 100644 (file)
@@ -4867,6 +4867,12 @@ _ControlImpl::OnChildControlFocusMoved(const _Control& control)
 }
 
 void
+_ControlImpl::OnDescendantControlFocusMoved(const _Control& control)
+{
+       GetCore().OnDescendantControlFocusMoved(control);
+}
+
+void
 _ControlImpl::OnFocusModeStateChanged(void)
 {
        GetCore().OnFocusModeStateChanged();
index c50cf9a..c55c53c 100644 (file)
@@ -49,6 +49,7 @@
 #include "FUi_UiEventManager.h"
 #include "FUi_TouchManager.h"
 #include "FUi_DimmingManager.h"
+#include "FUi_IControlManagerEventListener.h"
 #include "FUi_TouchLongPressGestureDetector.h"
 #include "FUi_TouchTapGestureDetector.h"
 #include "FUi_KeyEventManager.h"
@@ -64,6 +65,7 @@
 #include "FUiCtrl_Frame.h"
 #include "FUiCtrl_IndicatorManager.h"
 
+using namespace std;
 using namespace Tizen::App;
 using namespace Tizen::App::Package;
 using namespace Tizen::Base;
@@ -168,6 +170,8 @@ _ControlManager::Release(void)
        result  r = _SettingInfoImpl::RemoveSettingEventListenerForInternal(*__pInstance);
        SysTryReturnVoidResult(NID_UI, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
 
+       __pInstance->CallControlManagerEventListener();
+
        delete __pInstance;
        __pInstance = null;
 }
@@ -317,6 +321,7 @@ _ControlManager::_ControlManager(void) // [ToDo] exception check.
        , __defaultFontName(L"")
        , __screenDpi(0)
        , __pClipboardOwner(null)
+       , __pControlManagerEventListenerList(new (std::nothrow) LinkedListT<_IControlManagerEventListener*>)
 {
        result r = GetAppCoordinateSystem(__isCoordinateSystemLogical, __logicalCoordinateSystem, __logicalBaseScreenSize);
        SysTryReturnVoidResult(NID_UI, r == E_SUCCESS, E_SYSTEM, "[E_SYSTEM] System error occurred.");
@@ -705,6 +710,25 @@ _ControlManager::CallOnDetachingFromMainTree(_Control& control)
        return r;
 }
 
+void
+_ControlManager::CallControlManagerEventListener(void)
+{
+       unique_ptr<IEnumeratorT<_IControlManagerEventListener*> > pEnumerator(__pControlManagerEventListenerList->GetEnumeratorN());
+       if (pEnumerator)
+       {
+               while (pEnumerator->MoveNext() == E_SUCCESS)
+               {
+                       _IControlManagerEventListener* pListener = null;
+                       pEnumerator->GetCurrent(pListener);
+                       
+                       if (pListener)
+                       {
+                               pListener->OnControlManagerTerminating();
+                       }
+               }
+       }
+}
+
 result
 _ControlManager::CloseWindow(_Window& window) // [ToDo] exception check.
 {
@@ -1255,6 +1279,26 @@ _ControlManager::GetClipboardOwner(void) const
        return GetCurrentFrame();
 }
 
+result
+_ControlManager::AddControlManagerEventListener(_IControlManagerEventListener& listener)
+{
+       bool exist = __pControlManagerEventListenerList->Contains(&listener);
+       SysTryReturn(NID_UI, exist == false, E_OBJ_ALREADY_EXIST, E_OBJ_ALREADY_EXIST, "[%s] Propagating.", GetErrorMessage(E_OBJ_ALREADY_EXIST));
+
+       __pControlManagerEventListenerList->Add(&listener);
+
+       return E_SUCCESS;
+}
+
+result
+_ControlManager::RemoveControlManagerEventListener(_IControlManagerEventListener& listener)
+{
+       result r = __pControlManagerEventListenerList->Remove(&listener);
+       SysTryReturn(NID_UI, r == E_SUCCESS, E_OBJ_NOT_FOUND, E_OBJ_NOT_FOUND, "[%s] Propagating.", GetErrorMessage(E_OBJ_NOT_FOUND));
+
+       return E_SUCCESS;
+}
+
 _Control*
 _ControlManager::GetTopmostTouchedControl(const Point& point)
 {
@@ -1610,10 +1654,7 @@ _ControlManager::RemoveGestureDetector(const _TouchGestureDetector& gesture)
 {
        ClearLastResult();
 
-       result r = __pGestureList->Remove(&(const_cast<_TouchGestureDetector&>(gesture)));
-       SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
-
-       return E_SUCCESS;
+       return __pGestureList->Remove(&(const_cast<_TouchGestureDetector&>(gesture)));
 }
 
 IListT <_TouchGestureDetector*>*
index ebc0468..45a27fb 100644 (file)
@@ -88,6 +88,7 @@ Ecore_X_Atom keyboardExist = 0;
 const wchar_t* KEYBOARD_INSERTED_EVENT = L"KEYBOARD_INSERTED";
 const int DEVICE_COUNT = 999;
 bool touchPressed[DEVICE_COUNT] = {false,};
+bool keyPressed[_KEY_HARDWARE_MAX] = {false,};
 
 Evas_Object*
 GetEvasObject(const _Control& control)
@@ -1172,7 +1173,7 @@ OnKeyPressed(void* pData __UNUSED__, int type __UNUSED__, void* pEventInfo)
 
        if (_KeyEvent::GetKeyCode(pEv->keyname) == _KEY_INVALID)
        {
-               SysLog(NID_UI, "KeyCode is Invalid");
+               SysLog(NID_UI, "KeyCode %s is invalid", pEv->keyname);
                return ECORE_CALLBACK_PASS_ON;
        }
 
@@ -1180,6 +1181,8 @@ OnKeyPressed(void* pData __UNUSED__, int type __UNUSED__, void* pEventInfo)
        SysSecureLog(NID_UI, "KeyName = %s, KeyCode = %d, KeyModifier = %x", pEv->keyname, _KeyEvent::GetKeyCode(pEv->keyname), _KeyEvent::GetKeyModifier(pEv->modifiers));
        event.Send();
 
+       keyPressed[_KeyEvent::GetKeyCode(pEv->keyname)] = true;
+
        SetLastResult(E_SUCCESS);
 
        return ECORE_CALLBACK_PASS_ON;
@@ -1193,7 +1196,13 @@ OnKeyReleased(void* pData __UNUSED__, int type __UNUSED__, void* pEventInfo)
 
        if (_KeyEvent::GetKeyCode(pEv->keyname) == _KEY_INVALID)
        {
-               SysLog(NID_UI, "KeyCode is Invalid");
+               SysLog(NID_UI, "KeyCode %s is invalid", pEv->keyname);
+               return ECORE_CALLBACK_PASS_ON;
+       }
+
+       if (keyPressed[_KeyEvent::GetKeyCode(pEv->keyname)] != true)
+       {
+               SysLog(NID_UI, "KeyCode %s is not pressed", pEv->keyname);
                return ECORE_CALLBACK_PASS_ON;
        }
 
@@ -1201,6 +1210,8 @@ OnKeyReleased(void* pData __UNUSED__, int type __UNUSED__, void* pEventInfo)
        SysSecureLog(NID_UI, "KeyName = %s, KeyCode = %d, KeyModifier = %x", pEv->keyname, _KeyEvent::GetKeyCode(pEv->keyname), _KeyEvent::GetKeyModifier(pEv->modifiers));
        event.Send();
 
+       keyPressed[_KeyEvent::GetKeyCode(pEv->keyname)] = false;
+
        SetLastResult(E_SUCCESS);
 
        return ECORE_CALLBACK_PASS_ON;
@@ -1252,7 +1263,7 @@ OnTouchPressed(void* pData __UNUSED__, int type __UNUSED__, void* pEventInfo)
 
                        for(int i=0; i<DEVICE_COUNT; i++)
                        {
-                               touchPressed[pEv->multi.device] = false;
+                               touchPressed[i] = false;
                        }
 
                        pTouchManager->ResetTouchInfo();
index f427063..a75b0e7 100644 (file)
@@ -340,6 +340,7 @@ _FocusManagerImpl::StartFocusTraversal(_Control* pControl, FocusDirection focusD
                bool findNextFocusControl = false;
                _Control* pNextFocusControl = null;
                int count = 0;
+               int loopCount = pFocusControlList->GetCount() + 1;
                while (pEnum->MoveNext() == E_SUCCESS)
                {
                        _Control* pEnumeratorControl = null;
@@ -366,7 +367,7 @@ _FocusManagerImpl::StartFocusTraversal(_Control* pControl, FocusDirection focusD
                                        else
                                        {
                                                count ++;
-                                               if ((pFocusControlList->GetCount()) == count) 
+                                               if (loopCount == count) 
                                                {
                                                        return;
                                                }
@@ -391,6 +392,11 @@ _FocusManagerImpl::StartFocusTraversal(_Control* pControl, FocusDirection focusD
                        if (pParentControl)
                        {
                                pParentControl->OnChildControlFocusMoved(*pNextFocusControl);
+                               while(pParentControl)
+                               {
+                                       pParentControl->OnDescendantControlFocusMoved(*pNextFocusControl);
+                                       pParentControl = pParentControl->GetParent();
+                               }
                        }
                        pNextFocusControl->DrawFocus();
                }
index db702fb..5e69c82 100644 (file)
@@ -1276,925 +1276,645 @@ _ResourceManager::GetDefaultShapeWithScaling(int shapeId, _ControlOrientation or
                }
 
 void
+_ResourceManager::LoadBlackPalette(void)
+{
+       ADD_PALETTE(BASIC::foreground, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::background, 0xFF000000);
+       ADD_PALETTE(BASIC::B011, 0xFF000000);
+       ADD_PALETTE(BASIC::B012, 0xFF000000);
+       ADD_PALETTE(BASIC::B013, 0xFF000000);
+       ADD_PALETTE(BASIC::B014, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::B015, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::B016, 0xFF000000);
+       ADD_PALETTE(BASIC::B017, 0xFF000000);
+       ADD_PALETTE(BASIC::B018, 0xFF6590FF);
+       ADD_PALETTE(BASIC::B0211, 0xFF000000);
+       ADD_PALETTE(BASIC::B0211D, 0xFF000000);
+       ADD_PALETTE(BASIC::B0212, 0xFF1C1E28);
+       ADD_PALETTE(BASIC::B0213, 0xFF404040);
+       ADD_PALETTE(BASIC::B0214, 0xFF222C47);
+       ADD_PALETTE(BASIC::B0215, 0xFF1D263C);
+       ADD_PALETTE(BASIC::B0216, 0xFF222C47);
+       ADD_PALETTE(BASIC::B0217, 0xFF11131B);
+       ADD_PALETTE(BASIC::B0217D, 0x7F11131B);
+       ADD_PALETTE(BASIC::B0221, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::B0222, 0x3FFFFFFF);
+       ADD_PALETTE(BASIC::B0223, 0x00000000);
+       ADD_PALETTE(BASIC::B0224, 0xFF27282B);
+       ADD_PALETTE(BASIC::B0225, 0xFF2A5181);
+       ADD_PALETTE(BASIC::B0226, 0xFF4B73A3);
+       ADD_PALETTE(BASIC::B0227, 0xFF000000);
+       ADD_PALETTE(BASIC::B0228, 0xFF1A5274);
+       ADD_PALETTE(BASIC::B0232, 0x00000000);
+       ADD_PALETTE(BASIC::B0233, 0x00000000);
+       ADD_PALETTE(BASIC::B031, 0x00000000);
+       ADD_PALETTE(BASIC::B041, 0xFF2B3AAF);
+       ADD_PALETTE(BASIC::B041P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B042, 0xFF2A39AC);
+       ADD_PALETTE(BASIC::B043, 0x00001BEA);
+       ADD_PALETTE(BASIC::B044, 0xFF2B3AAF);
+       ADD_PALETTE(BASIC::B0511, 0xFF313F66);
+       ADD_PALETTE(BASIC::B0511P, 0xFF2A39AC);
+       ADD_PALETTE(BASIC::B0512, 0x00000000);
+       ADD_PALETTE(BASIC::B0513, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::B0514, 0xFF313F66);
+       ADD_PALETTE(BASIC::B0514P1, 0xFF303FB2);
+       ADD_PALETTE(BASIC::B0514P2, 0xFF5163E9);
+       ADD_PALETTE(BASIC::B0514L3, 0xFF6590FF);
+       ADD_PALETTE(BASIC::B0515L1, 0xFF464C5E);
+       ADD_PALETTE(BASIC::B0515L2, 0x7F454442);
+       ADD_PALETTE(BASIC::B0516, 0x00000000);
+       ADD_PALETTE(BASIC::B0517, 0x00000000);
+       ADD_PALETTE(BASIC::B0517P1, 0x00000000);
+       ADD_PALETTE(BASIC::B0517P2, 0x00000000);
+       ADD_PALETTE(BASIC::B0518, 0xFF2E4468);
+       ADD_PALETTE(BASIC::B0518P, 0x00000000);
+       ADD_PALETTE(BASIC::B0519, 0xFFF25D28);
+       ADD_PALETTE(BASIC::B0520, 0xFF2E4468);
+       ADD_PALETTE(BASIC::B0520P, 0xFF3C649B);
+       ADD_PALETTE(BASIC::B052L1, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L1P, 0xFF5D83FF);
+       ADD_PALETTE(BASIC::B052L1D, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L2, 0x00000000);
+       ADD_PALETTE(BASIC::B052L2P, 0x005787B8);
+       ADD_PALETTE(BASIC::B052L3, 0x00000000);
+       ADD_PALETTE(BASIC::B052L3P, 0x00000000);
+       ADD_PALETTE(BASIC::B052L4, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L4P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L4D, 0x66FAFAFA);
+       ADD_PALETTE(BASIC::B052L5, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L6, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L6D, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::B052L6P1, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L6P2, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L7, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L8, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L8P, 0xFF5D83FF);
+       ADD_PALETTE(BASIC::B052L8D, 0x66FAFAFA);
+       ADD_PALETTE(BASIC::B052L9, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L9P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L9D, 0x66FAFAFA);
+       ADD_PALETTE(BASIC::B052L10, 0x00000000);
+       ADD_PALETTE(BASIC::B0531, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::B0532, 0x00000000);
+       ADD_PALETTE(BASIC::B0533, 0x00000000);
+       ADD_PALETTE(BASIC::B0534, 0x00000000);
+       ADD_PALETTE(BASIC::B0535, 0x00000000);
+       ADD_PALETTE(BASIC::B0536, 0x00000000);
+       ADD_PALETTE(BASIC::B0537, 0x00000000);
+       ADD_PALETTE(BASIC::B0541, 0xFF6B728A);
+       ADD_PALETTE(BASIC::B0541P, 0xFF0D1D96);
+       ADD_PALETTE(BASIC::B0541D, 0x996B728A);
+       ADD_PALETTE(BASIC::B0542, 0x00000000);
+       ADD_PALETTE(BASIC::B0542P, 0x00000000);
+       ADD_PALETTE(BASIC::B0543, 0x00000000);
+       ADD_PALETTE(BASIC::B0544, 0x00000000);
+       ADD_PALETTE(BASIC::B0545, 0x00000000);
+       ADD_PALETTE(BASIC::B0551, 0x00000000);
+       ADD_PALETTE(BASIC::B0552, 0x00000000);
+       ADD_PALETTE(BASIC::B0553, 0xFFA5A5A5);
+       ADD_PALETTE(BASIC::B0554, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::B0555, 0x00000000);
+       ADD_PALETTE(BASIC::B0556, 0x00000000);
+       ADD_PALETTE(BASIC::B0557, 0x00000000);
+       ADD_PALETTE(BASIC::B0558, 0x00000000);
+       ADD_PALETTE(BASIC::B061L1, 0xFF1D263C);
+       ADD_PALETTE(BASIC::B061L2, 0xFF49577B);
+       ADD_PALETTE(BASIC::B061L3, 0xFF969A9C);
+       ADD_PALETTE(BASIC::B061L4, 0xFF1D263C);
+       ADD_PALETTE(BASIC::B061L5, 0xFF222222);
+       ADD_PALETTE(BASIC::B061L6, 0xFF333537);
+       ADD_PALETTE(BASIC::B0621L1, 0x00000000);
+       ADD_PALETTE(BASIC::B0621L2, 0x00000000);
+       ADD_PALETTE(BASIC::B0622L1, 0x001D263C);
+       ADD_PALETTE(BASIC::B0622L2, 0x3FFFFFFF);
+       ADD_PALETTE(BASIC::B0623L1, 0xFF1D263C);
+       ADD_PALETTE(BASIC::B0623L2, 0xFF626675);
+       ADD_PALETTE(BASIC::B0624L1, 0xFF1D263C);
+       ADD_PALETTE(BASIC::B0624L2, 0xFF626675);
+       ADD_PALETTE(BASIC::B0624L3, 0xFF313F66);
+       ADD_PALETTE(BASIC::B0624L4, 0xFF000000);
+       ADD_PALETTE(BASIC::B0624L5, 0xFF5783FF);
+       ADD_PALETTE(BASIC::B0624L6, 0xFF5783FF);
+       ADD_PALETTE(BASIC::B063L1, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L1P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L1D, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::B063L2, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L3, 0xFF6E6F76);
+       ADD_PALETTE(BASIC::B063L4, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L5, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L5D, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::B063L6, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L6P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L6D, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::B063L7, 0xFF656565);
+       ADD_PALETTE(BASIC::B063L8, 0xFF6E6F76);
+       ADD_PALETTE(BASIC::B063L8P, 0x00000000);
+       ADD_PALETTE(BASIC::B063L8D, 0x996E6F76);
+       ADD_PALETTE(BASIC::B063L9, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B064L1, 0xFF6890FF);
+       ADD_PALETTE(BASIC::B064L2, 0xFFD7D7D7);
+       ADD_PALETTE(BASIC::B064L2P, 0xFFD7D7D7);
+       ADD_PALETTE(BASIC::B064L2D, 0xFFD7D7D7);
+       ADD_PALETTE(BASIC::B064L3, 0xFF000000);
+       ADD_PALETTE(BASIC::B064L3P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B064L3D, 0x7F000000);
+       ADD_PALETTE(BASIC::B065L1, 0x00000000);
+       ADD_PALETTE(BASIC::B065L2, 0x00000000);
+       ADD_PALETTE(BASIC::B065L3, 0x00000000);
+       ADD_PALETTE(BASIC::B065L3P, 0x00000000);
+       ADD_PALETTE(BASIC::B065L4, 0xFFEEEEEE);
+       ADD_PALETTE(BASIC::B065L4D, 0x99EEEEEE);
+       ADD_PALETTE(BASIC::B065L4P, 0xFF2A39AC);
+       ADD_PALETTE(BASIC::B065L5, 0x00000000);
+       ADD_PALETTE(BASIC::B071, 0xFF393B41);
+       ADD_PALETTE(BASIC::B0721, 0xFFA09F9A);
+       ADD_PALETTE(BASIC::B0722, 0xFF5D83FF);
+       ADD_PALETTE(BASIC::B0723, 0xFF212428);
+       ADD_PALETTE(BASIC::B0724, 0xFF404040);
+       ADD_PALETTE(BASIC::B0725, 0xFF4F66A7);
+       ADD_PALETTE(BASIC::B0726, 0xFF404040);
+       ADD_PALETTE(BASIC::B0731, 0xFF2B3AAF);
+       ADD_PALETTE(BASIC::B0732, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B0741, 0xFFA09F9A);
+       ADD_PALETTE(BASIC::B0742, 0xFF5D83FF);
+       ADD_PALETTE(BASIC::B0743, 0xFF212428);
+       ADD_PALETTE(BASIC::B0744, 0xFF404040);
+       ADD_PALETTE(BASIC::B0745, 0x00000000);
+       ADD_PALETTE(BASIC::B0751, 0xFF3B73B6);
+       ADD_PALETTE(BASIC::F011L1, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F011L1P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F011L1D, 0x7FFAFAFA);
+       ADD_PALETTE(BASIC::F011L2, 0xFF6890FF);
+       ADD_PALETTE(BASIC::F011L2D, 0x996890FF);
+       ADD_PALETTE(BASIC::F011L3, 0xFF6E6F76);
+       ADD_PALETTE(BASIC::F011L3D, 0x996E6F76);
+       ADD_PALETTE(BASIC::F011L4, 0xFF6E6F76);
+       ADD_PALETTE(BASIC::F011L4D, 0x996E6F76);
+       ADD_PALETTE(BASIC::F011L5, 0xFF5D83FF);
+       ADD_PALETTE(BASIC::F011L6, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F011L7, 0xFF6E6F76);
+       ADD_PALETTE(BASIC::F011L7D, 0x996E6F76);
+       ADD_PALETTE(BASIC::F011L8, 0xFFD10000);
+       ADD_PALETTE(BASIC::F011L9, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::F011L10, 0xFFF9F9F9);
+       ADD_PALETTE(BASIC::F011L11, 0xFF808080);
+       ADD_PALETTE(BASIC::F011L12, 0xFF4093F7);
+       ADD_PALETTE(BASIC::F011L13, 0x00000000);
+       ADD_PALETTE(BASIC::F011L14, 0x00000000);
+       ADD_PALETTE(BASIC::F011L15, 0xFFD10000);
+       ADD_PALETTE(BASIC::F011L16, 0xFF6E6F76);
+       ADD_PALETTE(BASIC::F011L17, 0xFF8B8B8B);
+       ADD_PALETTE(BASIC::F011L18, 0xFF686868);
+       ADD_PALETTE(BASIC::F011L19, 0xFF6E6F76);
+       ADD_PALETTE(BASIC::F011L20, 0x00000000);
+       ADD_PALETTE(BASIC::F011L21, 0xFF6E6F76);
+       ADD_PALETTE(BASIC::F011L22, 0xFF6E6F76);
+       ADD_PALETTE(BASIC::F011L23, 0xFF1382FF);
+       ADD_PALETTE(BASIC::F021L1i, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F021L1iP, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F021L1iD, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::F022L1i, 0xFF6C6E77);
+       ADD_PALETTE(BASIC::F022L2i, 0xFF2B3AAF);
+       ADD_PALETTE(BASIC::F022L2iD, 0x992B3AAF);
+       ADD_PALETTE(BASIC::F031L1, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F031L1P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F031L1D, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::F031L2, 0x00000000);
+       ADD_PALETTE(BASIC::F031L2P, 0x00000000);
+       ADD_PALETTE(BASIC::F031L2D, 0x00000000);
+       ADD_PALETTE(BASIC::F031L3, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F031L3P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F031L3D, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::F032L1, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F032L1P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F032L1D, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::F032L2, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F032L2P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F032L2D, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::F032L3, 0xFFF9F9F9);
+       ADD_PALETTE(BASIC::F032L3P, 0xFFF9F9F9);
+       ADD_PALETTE(BASIC::F041i, 0xFF5D6176);
+       ADD_PALETTE(BASIC::F041iD, 0x995D6176);
+       ADD_PALETTE(BASIC::F051, 0xFF485D93);
+       ADD_PALETTE(BASIC::F052, 0xFF3A72FF);
+       ADD_PALETTE(BASIC::F053, 0xFF485D93);
+       ADD_PALETTE(BASIC::F053P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F053D, 0x99485D93);
+       ADD_PALETTE(BASIC::F054, 0xFF202432);
+       ADD_PALETTE(BASIC::F055, 0xFF3A72FF);
+       ADD_PALETTE(BASIC::W011, 0xFF4B4D56);
+       ADD_PALETTE(BASIC::W011D, 0x994B4D56);
+       ADD_PALETTE(BASIC::W012, 0xFF095FD4);
+       ADD_PALETTE(BASIC::W012D, 0x99095FD4);
+       ADD_PALETTE(BASIC::W012P, 0xFF232F91);
+       ADD_PALETTE(BASIC::W013, 0x00000000);
+       ADD_PALETTE(BASIC::W0141, 0xFFDB0000);
+       ADD_PALETTE(BASIC::W0141P, 0xFFA10808);
+       ADD_PALETTE(BASIC::W0141D, 0x99DB0000);
+       ADD_PALETTE(BASIC::W015, 0xFF343432);
+       ADD_PALETTE(BASIC::W021L1, 0xFF000000);
+       ADD_PALETTE(BASIC::W021L1P, 0xFF2B3AAF);
+       ADD_PALETTE(BASIC::W021L2, 0xFF425790);
+       ADD_PALETTE(BASIC::W021L2P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W021L3, 0xFF425790);
+       ADD_PALETTE(BASIC::W021L3P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W021L4, 0xFFF0F0F0);
+       ADD_PALETTE(BASIC::W031L1, 0xFF000000);
+       ADD_PALETTE(BASIC::W031L1D, 0x99000000);
+       ADD_PALETTE(BASIC::W031L2, 0xFF000000);
+       ADD_PALETTE(BASIC::W031L2D, 0x99000000);
+       ADD_PALETTE(BASIC::W032, 0xFF5D6176);
+       ADD_PALETTE(BASIC::W032P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W032D, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::W041, 0xFFE1DDD1);
+       ADD_PALETTE(BASIC::W051, 0xFF000000);
+       ADD_PALETTE(BASIC::W0611, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W0611P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W0611D, 0x99FAFAFA);
+       ADD_PALETTE(BASIC::W062L1, 0xFF555861);
+       ADD_PALETTE(BASIC::W062L1D, 0x99555861);
+       ADD_PALETTE(BASIC::W062L2, 0xFF415BFE);
+       ADD_PALETTE(BASIC::W062L2D, 0x7F415BFE);
+       ADD_PALETTE(BASIC::W062L3, 0xFFD8D7D2);
+       ADD_PALETTE(BASIC::W062L3D, 0x4CD8D7D2);
+       ADD_PALETTE(BASIC::W062L4, 0xFF3677C3);
+       ADD_PALETTE(BASIC::W062L4D, 0x4C3677C3);
+       ADD_PALETTE(BASIC::W062L5, 0xFFC7D3E3);
+       ADD_PALETTE(BASIC::W0631, 0xFFEEEEEE);
+       ADD_PALETTE(BASIC::W0632, 0xFF4C5158);
+       ADD_PALETTE(BASIC::W0641, 0xFF6B6D79);
+       ADD_PALETTE(BASIC::W0641P, 0xFF2A39AC);
+       ADD_PALETTE(BASIC::W0641D, 0x996B6D79);
+       ADD_PALETTE(BASIC::W0651, 0xFF3A3A3A);
+       ADD_PALETTE(BASIC::W0711, 0xFF525767);
+       ADD_PALETTE(BASIC::W0712, 0xFF4267A9);
+       ADD_PALETTE(BASIC::W0713, 0xFF2B3AAF);
+       ADD_PALETTE(BASIC::W0714, 0xFF263E5F);
+       ADD_PALETTE(BASIC::W0715, 0xFF2B3AAF);
+       ADD_PALETTE(BASIC::W0721, 0x00000000);
+       ADD_PALETTE(BASIC::W0811, 0xFF253296);
+       ADD_PALETTE(BASIC::W0812, 0x00000000);
+       ADD_PALETTE(BASIC::W0813, 0xFF595959);
+       ADD_PALETTE(BASIC::W082, 0x00000000);
+       ADD_PALETTE(BASIC::W083, 0x00000000);
+       ADD_PALETTE(BASIC::W084, 0xB2FAFAFA);
+       ADD_PALETTE(BASIC::W084P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W085, 0x00000000);
+       ADD_PALETTE(BASIC::W091, 0xFF2B3AAF);
+       ADD_PALETTE(BASIC::W092, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W101, 0xFF4884D6);
+       ADD_PALETTE(BASIC::W111, 0xFFC8CEDB);
+       ADD_PALETTE(BASIC::W112L1, 0xFF8995AE);
+       ADD_PALETTE(BASIC::W112L2, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W1121, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W1122, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W1123, 0x4C000000);
+       ADD_PALETTE(BASIC::W1211, 0x00000000);
+       ADD_PALETTE(BASIC::W1212, 0x00000000);
+       ADD_PALETTE(BASIC::W1221, 0xFF000000);
+       ADD_PALETTE(BASIC::W1222, 0xFF878580);
+       ADD_PALETTE(BASIC::W1223, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::W131, 0xFF343739);
+       ADD_PALETTE(BASIC::W132, 0xFF2B3AAF);
+       ADD_PALETTE(BASIC::W141, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W151, 0x66000000);
+       ADD_PALETTE(BASIC::W152, 0xFF42434B);
+       ADD_PALETTE(BASIC::W153, 0xFF2B3AAF);
+       ADD_PALETTE(BASIC::W154, 0xFF1C1E28);
+       ADD_PALETTE(BASIC::W161, 0xFF001BEA);
+}
+
+void
+_ResourceManager::LoadWhitePalette(void)
+{
+       ADD_PALETTE(BASIC::foreground, 0xFF000000);
+       ADD_PALETTE(BASIC::background, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::B011, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::B012, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::B013, 0xFF000000);
+       ADD_PALETTE(BASIC::B014, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::B015, 0xFF202327);
+       ADD_PALETTE(BASIC::B016, 0xFF000000);
+       ADD_PALETTE(BASIC::B017, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B018, 0xFF6590FF);
+       ADD_PALETTE(BASIC::B0211, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::B0211D, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::B0212, 0xFFEDEBE4);
+       ADD_PALETTE(BASIC::B0213, 0xFF5B5656);
+       ADD_PALETTE(BASIC::B0214, 0xFFDCDAD3);
+       ADD_PALETTE(BASIC::B0215, 0xFFDEDCD5);
+       ADD_PALETTE(BASIC::B0216, 0xFFBDBBB5);
+       ADD_PALETTE(BASIC::B0217, 0xFFEFEDE5);
+       ADD_PALETTE(BASIC::B0217D, 0x7FEFEDE5);
+       ADD_PALETTE(BASIC::B0221, 0xFF8A8A8A);
+       ADD_PALETTE(BASIC::B0222, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::B0223, 0xFFD3D1CB);
+       ADD_PALETTE(BASIC::B0224, 0xFFB9B8B2);
+       ADD_PALETTE(BASIC::B0225, 0xFF2A5181);
+       ADD_PALETTE(BASIC::B0226, 0xFF4B73A3);
+       ADD_PALETTE(BASIC::B0227, 0xFF000000);
+       ADD_PALETTE(BASIC::B0228, 0xFF1A5274);
+       ADD_PALETTE(BASIC::B0232, 0x00000000);
+       ADD_PALETTE(BASIC::B0233, 0x00000000);
+       ADD_PALETTE(BASIC::B031, 0x00000000);
+       ADD_PALETTE(BASIC::B041, 0xFF5787C2);
+       ADD_PALETTE(BASIC::B041P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B042, 0xFF0079D4);
+       ADD_PALETTE(BASIC::B043, 0xFF5787C2);
+       ADD_PALETTE(BASIC::B044, 0xFF2A89C2);
+       ADD_PALETTE(BASIC::B0511, 0xFFEDEBE4);
+       ADD_PALETTE(BASIC::B0511P, 0xFF0E66AA);
+       ADD_PALETTE(BASIC::B0512, 0x00000000);
+       ADD_PALETTE(BASIC::B0513, 0xFF202327);
+       ADD_PALETTE(BASIC::B0514, 0xFFEDEBE4);
+       ADD_PALETTE(BASIC::B0514P1, 0xFF0E66AA);
+       ADD_PALETTE(BASIC::B0514P2, 0xFF007BDA);
+       ADD_PALETTE(BASIC::B0514L3, 0xFF6590FF);
+       ADD_PALETTE(BASIC::B0515L1, 0xFFDEDCD5);
+       ADD_PALETTE(BASIC::B0515L2, 0x7F626262);
+       ADD_PALETTE(BASIC::B0516, 0x00000000);
+       ADD_PALETTE(BASIC::B0517, 0x00000000);
+       ADD_PALETTE(BASIC::B0517P1, 0x00000000);
+       ADD_PALETTE(BASIC::B0517P2, 0x00000000);
+       ADD_PALETTE(BASIC::B0518, 0x003567A3);
+       ADD_PALETTE(BASIC::B0518P, 0x00000000);
+       ADD_PALETTE(BASIC::B0519, 0xFFF25D28);
+       ADD_PALETTE(BASIC::B0520, 0xFF3567A3);
+       ADD_PALETTE(BASIC::B0520P, 0xFF2A89C2);
+       ADD_PALETTE(BASIC::B052L1, 0xFF656565);
+       ADD_PALETTE(BASIC::B052L1P, 0xFF007BDA);
+       ADD_PALETTE(BASIC::B052L1D, 0x7F656565);
+       ADD_PALETTE(BASIC::B052L2, 0xFF525252);
+       ADD_PALETTE(BASIC::B052L2P, 0xFF4093F7);
+       ADD_PALETTE(BASIC::B052L3, 0x00000000);
+       ADD_PALETTE(BASIC::B052L3P, 0x00000000);
+       ADD_PALETTE(BASIC::B052L4, 0xFF282828);
+       ADD_PALETTE(BASIC::B052L4P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L4D, 0x7F282828);
+       ADD_PALETTE(BASIC::B052L5, 0xFF282828);
+       ADD_PALETTE(BASIC::B052L6, 0xFF282828);
+       ADD_PALETTE(BASIC::B052L6D, 0x7F282828);
+       ADD_PALETTE(BASIC::B052L6P1, 0xFF0E68AD);
+       ADD_PALETTE(BASIC::B052L6P2, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L7, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L8, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L8P, 0xFF4093F7);
+       ADD_PALETTE(BASIC::B052L8D, 0x7FFAFAFA);
+       ADD_PALETTE(BASIC::B052L9, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L9P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B052L9D, 0x7FFAFAFA);
+       ADD_PALETTE(BASIC::B052L10, 0x00000000);
+       ADD_PALETTE(BASIC::B0531, 0xFF202327);
+       ADD_PALETTE(BASIC::B0532, 0x00000000);
+       ADD_PALETTE(BASIC::B0533, 0x00000000);
+       ADD_PALETTE(BASIC::B0534, 0x00000000);
+       ADD_PALETTE(BASIC::B0535, 0x00000000);
+       ADD_PALETTE(BASIC::B0536, 0x00000000);
+       ADD_PALETTE(BASIC::B0537, 0x00000000);
+       ADD_PALETTE(BASIC::B0541, 0xFFF7F5ED);
+       ADD_PALETTE(BASIC::B0541P, 0xFF007AD8);
+       ADD_PALETTE(BASIC::B0541D, 0x7FF7F5ED);
+       ADD_PALETTE(BASIC::B0542, 0x00000000);
+       ADD_PALETTE(BASIC::B0542P, 0x00000000);
+       ADD_PALETTE(BASIC::B0543, 0x00000000);
+       ADD_PALETTE(BASIC::B0544, 0x00000000);
+       ADD_PALETTE(BASIC::B0545, 0x00000000);
+       ADD_PALETTE(BASIC::B0551, 0x00000000);
+       ADD_PALETTE(BASIC::B0552, 0x00000000);
+       ADD_PALETTE(BASIC::B0553, 0xFF0C0F14);
+       ADD_PALETTE(BASIC::B0554, 0xFF414447);
+       ADD_PALETTE(BASIC::B0555, 0x00000000);
+       ADD_PALETTE(BASIC::B0556, 0x00000000);
+       ADD_PALETTE(BASIC::B0557, 0x00000000);
+       ADD_PALETTE(BASIC::B0558, 0x00000000);
+       ADD_PALETTE(BASIC::B061L1, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::B061L2, 0xFFDBD9CE);
+       ADD_PALETTE(BASIC::B061L3, 0xFFD6D3C9);
+       ADD_PALETTE(BASIC::B061L4, 0xFF444444);
+       ADD_PALETTE(BASIC::B061L5, 0xFF222222);
+       ADD_PALETTE(BASIC::B061L6, 0xFF17191C);
+       ADD_PALETTE(BASIC::B0621L1, 0x00000000);
+       ADD_PALETTE(BASIC::B0621L2, 0x00000000);
+       ADD_PALETTE(BASIC::B0622L1, 0x00444444);
+       ADD_PALETTE(BASIC::B0622L2, 0x3FFFFFFF);
+       ADD_PALETTE(BASIC::B0623L1, 0xFF2D2D2D);
+       ADD_PALETTE(BASIC::B0623L2, 0xFF5B5B5B);
+       ADD_PALETTE(BASIC::B0624L1, 0xFFCDCDCD);
+       ADD_PALETTE(BASIC::B0624L2, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B0624L3, 0xFF303337);
+       ADD_PALETTE(BASIC::B0624L4, 0xFF000000);
+       ADD_PALETTE(BASIC::B0624L5, 0xFF007BDA);
+       ADD_PALETTE(BASIC::B0624L6, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L1, 0xFF000000);
+       ADD_PALETTE(BASIC::B063L1P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L1D, 0x7F000000);
+       ADD_PALETTE(BASIC::B063L2, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L3, 0xFF808080);
+       ADD_PALETTE(BASIC::B063L4, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L5, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B063L5D, 0x7FFAFAFA);
+       ADD_PALETTE(BASIC::B063L6, 0xFF454545);
+       ADD_PALETTE(BASIC::B063L6P, 0xFF454545);
+       ADD_PALETTE(BASIC::B063L6D, 0x7F454545);
+       ADD_PALETTE(BASIC::B063L7, 0xFFBABABA);
+       ADD_PALETTE(BASIC::B063L8, 0xFF808080);
+       ADD_PALETTE(BASIC::B063L8P, 0x00000000);
+       ADD_PALETTE(BASIC::B063L8D, 0x7F808080);
+       ADD_PALETTE(BASIC::B063L9, 0xFF252525);
+       ADD_PALETTE(BASIC::B064L1, 0xFF3B73B6);
+       ADD_PALETTE(BASIC::B064L2, 0xFF808080);
+       ADD_PALETTE(BASIC::B064L2P, 0xFF808080);
+       ADD_PALETTE(BASIC::B064L2D, 0xFF808080);
+       ADD_PALETTE(BASIC::B064L3, 0xFF3A3A3A);
+       ADD_PALETTE(BASIC::B064L3P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B064L3D, 0x7F3A3A3A);
+       ADD_PALETTE(BASIC::B065L1, 0x00000000);
+       ADD_PALETTE(BASIC::B065L2, 0x00000000);
+       ADD_PALETTE(BASIC::B065L3, 0x00000000);
+       ADD_PALETTE(BASIC::B065L3P, 0x00000000);
+       ADD_PALETTE(BASIC::B065L4, 0xFFF7F5ED);
+       ADD_PALETTE(BASIC::B065L4D, 0x7FF7F5ED);
+       ADD_PALETTE(BASIC::B065L4P, 0xFF007AD8);
+       ADD_PALETTE(BASIC::B065L5, 0x00000000);
+       ADD_PALETTE(BASIC::B071, 0xFFC6C4BE);
+       ADD_PALETTE(BASIC::B0721, 0xFFA09F9A);
+       ADD_PALETTE(BASIC::B0722, 0xFF3B73B6);
+       ADD_PALETTE(BASIC::B0723, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::B0724, 0xFFD1CFC9);
+       ADD_PALETTE(BASIC::B0725, 0xFF3B73B6);
+       ADD_PALETTE(BASIC::B0726, 0xFFE2DFD5);
+       ADD_PALETTE(BASIC::B0731, 0xFF3B73B6);
+       ADD_PALETTE(BASIC::B0732, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::B0741, 0xFFA09F9A);
+       ADD_PALETTE(BASIC::B0742, 0xFF3B73B6);
+       ADD_PALETTE(BASIC::B0743, 0xFFE6E3D8);
+       ADD_PALETTE(BASIC::B0744, 0xFFC5C2B7);
+       ADD_PALETTE(BASIC::B0745, 0x00000000);
+       ADD_PALETTE(BASIC::B0751, 0xFF3B73B6);
+       ADD_PALETTE(BASIC::F011L1, 0xFF000000);
+       ADD_PALETTE(BASIC::F011L1P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F011L1D, 0x7F000000);
+       ADD_PALETTE(BASIC::F011L2, 0xFF3B73B6);
+       ADD_PALETTE(BASIC::F011L2D, 0x7F3B73B6);
+       ADD_PALETTE(BASIC::F011L3, 0xFF4F4F4F);
+       ADD_PALETTE(BASIC::F011L3D, 0xFF4F4F4F);
+       ADD_PALETTE(BASIC::F011L4, 0xFF4F4F4F);
+       ADD_PALETTE(BASIC::F011L4D, 0x7F4F4F4F);
+       ADD_PALETTE(BASIC::F011L5, 0xFF3B73B6);
+       ADD_PALETTE(BASIC::F011L6, 0xFF808080);
+       ADD_PALETTE(BASIC::F011L7, 0xFF686866);
+       ADD_PALETTE(BASIC::F011L7D, 0xCC686866);
+       ADD_PALETTE(BASIC::F011L8, 0xFFC24747);
+       ADD_PALETTE(BASIC::F011L9, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::F011L10, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F011L11, 0xFF808080);
+       ADD_PALETTE(BASIC::F011L12, 0xFF4093F7);
+       ADD_PALETTE(BASIC::F011L13, 0x00000000);
+       ADD_PALETTE(BASIC::F011L14, 0x00000000);
+       ADD_PALETTE(BASIC::F011L15, 0xFFE94949);
+       ADD_PALETTE(BASIC::F011L16, 0xFF8B8B8B);
+       ADD_PALETTE(BASIC::F011L17, 0xFF8B8B8B);
+       ADD_PALETTE(BASIC::F011L18, 0xFF686868);
+       ADD_PALETTE(BASIC::F011L19, 0xFF8B8B8B);
+       ADD_PALETTE(BASIC::F011L20, 0x00000000);
+       ADD_PALETTE(BASIC::F011L21, 0xFF808080);
+       ADD_PALETTE(BASIC::F011L22, 0xFF9A9A9A);
+       ADD_PALETTE(BASIC::F011L23, 0xFF1382FF);
+       ADD_PALETTE(BASIC::F021L1i, 0xFF808080);
+       ADD_PALETTE(BASIC::F021L1iP, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F021L1iD, 0x7F808080);
+       ADD_PALETTE(BASIC::F022L1i, 0xFFB8B8B8);
+       ADD_PALETTE(BASIC::F022L2i, 0xFF4C85C9);
+       ADD_PALETTE(BASIC::F022L2iD, 0x4C4C85C9);
+       ADD_PALETTE(BASIC::F031L1, 0xFF3A3A3A);
+       ADD_PALETTE(BASIC::F031L1P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F031L1D, 0x7F3A3A3A);
+       ADD_PALETTE(BASIC::F031L2, 0x00000000);
+       ADD_PALETTE(BASIC::F031L2P, 0x00000000);
+       ADD_PALETTE(BASIC::F031L2D, 0x00000000);
+       ADD_PALETTE(BASIC::F031L3, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F031L3P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F031L3D, 0x7FFAFAFA);
+       ADD_PALETTE(BASIC::F032L1, 0xFF656565);
+       ADD_PALETTE(BASIC::F032L1P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F032L1D, 0x7F656565);
+       ADD_PALETTE(BASIC::F032L2, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F032L2P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::F032L2D, 0x7FFAFAFA);
+       ADD_PALETTE(BASIC::F032L3, 0xFFF9F9F9);
+       ADD_PALETTE(BASIC::F032L3P, 0xFFF9F9F9);
+       ADD_PALETTE(BASIC::F041i, 0xFF808080);
+       ADD_PALETTE(BASIC::F041iD, 0x7F808080);
+       ADD_PALETTE(BASIC::F051, 0xFF90A9C7);
+       ADD_PALETTE(BASIC::F052, 0xFF007BDB);
+       ADD_PALETTE(BASIC::F053, 0xFF808080);
+       ADD_PALETTE(BASIC::F053P, 0xFF000000);
+       ADD_PALETTE(BASIC::F053D, 0x7F808080);
+       ADD_PALETTE(BASIC::F054, 0xFFE3E1D9);
+       ADD_PALETTE(BASIC::F055, 0xFF007BDA);
+       ADD_PALETTE(BASIC::W011, 0xFFF7F5ED);
+       ADD_PALETTE(BASIC::W011D, 0x7FF7F5ED);
+       ADD_PALETTE(BASIC::W012, 0xFF0058D0);
+       ADD_PALETTE(BASIC::W012D, 0x7F0058D0);
+       ADD_PALETTE(BASIC::W012P, 0xFF0051BF);
+       ADD_PALETTE(BASIC::W013, 0x00000000);
+       ADD_PALETTE(BASIC::W0141, 0xFFC12C21);
+       ADD_PALETTE(BASIC::W0141P, 0xFFC12C21);
+       ADD_PALETTE(BASIC::W0141D, 0x7FC12C21);
+       ADD_PALETTE(BASIC::W015, 0xFF343432);
+       ADD_PALETTE(BASIC::W021L1, 0xFFF8F6EF);
+       ADD_PALETTE(BASIC::W021L1P, 0xFF5787C2);
+       ADD_PALETTE(BASIC::W021L2, 0xFF0E68AD);
+       ADD_PALETTE(BASIC::W021L2P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W021L3, 0xFF0E68AD);
+       ADD_PALETTE(BASIC::W021L3P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W021L4, 0xFF000000);
+       ADD_PALETTE(BASIC::W031L1, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W031L1D, 0x7FFAFAFA);
+       ADD_PALETTE(BASIC::W031L2, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W031L2D, 0x7FFAFAFA);
+       ADD_PALETTE(BASIC::W032, 0xFF878580);
+       ADD_PALETTE(BASIC::W032P, 0xFF000000);
+       ADD_PALETTE(BASIC::W032D, 0x7F878580);
+       ADD_PALETTE(BASIC::W041, 0xFF17191C);
+       ADD_PALETTE(BASIC::W051, 0xFF000000);
+       ADD_PALETTE(BASIC::W0611, 0xFF3B73B6);
+       ADD_PALETTE(BASIC::W0611P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W0611D, 0x7F3B73B6);
+       ADD_PALETTE(BASIC::W062L1, 0xFFC5C5C5);
+       ADD_PALETTE(BASIC::W062L1D, 0x4CC5C5C5);
+       ADD_PALETTE(BASIC::W062L2, 0xFF007DDE);
+       ADD_PALETTE(BASIC::W062L2D, 0x7F007DDE);
+       ADD_PALETTE(BASIC::W062L3, 0xFF615F5B);
+       ADD_PALETTE(BASIC::W062L3D, 0x4C615F5B);
+       ADD_PALETTE(BASIC::W062L4, 0xFF70A9EE);
+       ADD_PALETTE(BASIC::W062L4D, 0x4C70A9EE);
+       ADD_PALETTE(BASIC::W062L5, 0xFF223148);
+       ADD_PALETTE(BASIC::W0631, 0xFF656565);
+       ADD_PALETTE(BASIC::W0632, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W0641, 0xFFF7F5ED);
+       ADD_PALETTE(BASIC::W0641P, 0xFF0079D4);
+       ADD_PALETTE(BASIC::W0641D, 0x7FF7F5ED);
+       ADD_PALETTE(BASIC::W0651, 0xFFBFBFBF);
+       ADD_PALETTE(BASIC::W0711, 0xFF769DCC);
+       ADD_PALETTE(BASIC::W0712, 0x00000000);
+       ADD_PALETTE(BASIC::W0713, 0xFF4093F7);
+       ADD_PALETTE(BASIC::W0714, 0x00000000);
+       ADD_PALETTE(BASIC::W0715, 0xFF2889FF);
+       ADD_PALETTE(BASIC::W0721, 0x00000000);
+       ADD_PALETTE(BASIC::W0811, 0xFF5787C2);
+       ADD_PALETTE(BASIC::W0812, 0x00000000);
+       ADD_PALETTE(BASIC::W0813, 0xFF494949);
+       ADD_PALETTE(BASIC::W082, 0x00000000);
+       ADD_PALETTE(BASIC::W083, 0x00000000);
+       ADD_PALETTE(BASIC::W084, 0xB2FAFAFA);
+       ADD_PALETTE(BASIC::W084P, 0xFFFAFAFA);
+       ADD_PALETTE(BASIC::W085, 0x00000000);
+       ADD_PALETTE(BASIC::W091, 0xFF444444);
+       ADD_PALETTE(BASIC::W092, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::W101, 0xFF5893E4);
+       ADD_PALETTE(BASIC::W111, 0xFFE7E5DE);
+       ADD_PALETTE(BASIC::W112L1, 0xFFB4B4B4);
+       ADD_PALETTE(BASIC::W112L2, 0xFFFFFFFF);
+       ADD_PALETTE(BASIC::W1121, 0xFF000000);
+       ADD_PALETTE(BASIC::W1122, 0xFF000000);
+       ADD_PALETTE(BASIC::W1123, 0x4C000000);
+       ADD_PALETTE(BASIC::W1211, 0x00000000);
+       ADD_PALETTE(BASIC::W1212, 0x00000000);
+       ADD_PALETTE(BASIC::W1221, 0x00000000);
+       ADD_PALETTE(BASIC::W1222, 0x00000000);
+       ADD_PALETTE(BASIC::W1223, 0x00000000);
+       ADD_PALETTE(BASIC::W131, 0xFF959595);
+       ADD_PALETTE(BASIC::W132, 0xFF5787C2);
+       ADD_PALETTE(BASIC::W141, 0xFF808080);
+       ADD_PALETTE(BASIC::W151, 0xFF95948F);
+       ADD_PALETTE(BASIC::W152, 0xFF878787);
+       ADD_PALETTE(BASIC::W153, 0xFF5787C2);
+       ADD_PALETTE(BASIC::W154, 0xFFEFECE0);
+       ADD_PALETTE(BASIC::W161, 0xFF007BDA);
+}
+
+#undef ADD_PALETTE
+
+void
+_ResourceManager::LoadDefaultPalette(void)
+{
+}
+void
 _ResourceManager::LoadPaletteInformation(const Tizen::Base::String& systemTheme)
 {
        if(systemTheme == L"black")
        {
-               ADD_PALETTE(BASIC::foreground, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::background, 0xFF000000);
-               ADD_PALETTE(BASIC::B011, 0xFF000000);
-               ADD_PALETTE(BASIC::B012, 0xFF000000);
-               ADD_PALETTE(BASIC::B013, 0xFF000000);
-               ADD_PALETTE(BASIC::B014, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::B015, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B016, 0xFF000000);
-               ADD_PALETTE(BASIC::B017, 0xFF000000);
-               ADD_PALETTE(BASIC::B018, 0xFF6590FF);
-               ADD_PALETTE(BASIC::B0211, 0xFF000000);
-               ADD_PALETTE(BASIC::B0211D, 0xFFDBD9D4);
-               ADD_PALETTE(BASIC::B0212, 0xFF1C1E28);
-               ADD_PALETTE(BASIC::B0213, 0xFF404040);
-               ADD_PALETTE(BASIC::B0214, 0xFF222C47);
-               ADD_PALETTE(BASIC::B0215, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B0216, 0xFF222C47);
-               ADD_PALETTE(BASIC::B0217, 0xFF11131B);
-               ADD_PALETTE(BASIC::B0217D, 0x7F11131B);
-               ADD_PALETTE(BASIC::B0221, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::B0222, 0x3FFFFFFF);
-               ADD_PALETTE(BASIC::B0223, 0xFF000000);
-               ADD_PALETTE(BASIC::B0224, 0xFF27282B);
-               ADD_PALETTE(BASIC::B0225, 0xFF2A5181);
-               ADD_PALETTE(BASIC::B0226, 0xFF4B73A3);
-               ADD_PALETTE(BASIC::B0227, 0xFF000000);
-               ADD_PALETTE(BASIC::B0228, 0xFF1A5274);
-               ADD_PALETTE(BASIC::B0232, 0x00000000);
-               ADD_PALETTE(BASIC::B0233, 0x00000000);
-               ADD_PALETTE(BASIC::B031, 0x00000000);
-               ADD_PALETTE(BASIC::B041, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::B041P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B042, 0xFF2A39AC);
-               ADD_PALETTE(BASIC::B043, 0xFF001BEA);
-               ADD_PALETTE(BASIC::B044, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::B0511, 0xFF313F66);
-               ADD_PALETTE(BASIC::B0511P, 0xFF2A39AC);
-               ADD_PALETTE(BASIC::B0512, 0x00000000);
-               ADD_PALETTE(BASIC::B0513, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B0514, 0xFF313F66);
-               ADD_PALETTE(BASIC::B0514P1, 0xFF303FB2);
-               ADD_PALETTE(BASIC::B0514P2, 0xFF5163E9);
-               ADD_PALETTE(BASIC::B0514L2, 0xFF6590FF);
-               ADD_PALETTE(BASIC::B0515L1, 0xFF464C5E);
-               ADD_PALETTE(BASIC::B0515L2, 0x7F454442);
-               ADD_PALETTE(BASIC::B0516, 0x00000000);
-               ADD_PALETTE(BASIC::B0517, 0x00000000);
-               ADD_PALETTE(BASIC::B0517P1, 0x00000000);
-               ADD_PALETTE(BASIC::B0517P2, 0x00000000);
-               ADD_PALETTE(BASIC::B0518, 0xFF2E4468);
-               ADD_PALETTE(BASIC::B0518P, 0x00000000);
-               ADD_PALETTE(BASIC::B0519, 0xFFF25D28);
-               ADD_PALETTE(BASIC::B0520, 0xFF2E4468);
-               ADD_PALETTE(BASIC::B0520P, 0xFF3C649B);
-               ADD_PALETTE(BASIC::B052L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L1P, 0xFF5D83FF);
-               ADD_PALETTE(BASIC::B052L1D, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L2, 0x00000000);
-               ADD_PALETTE(BASIC::B052L2P, 0x005787B8);
-               ADD_PALETTE(BASIC::B052L3, 0x00000000);
-               ADD_PALETTE(BASIC::B052L3P, 0x00000000);
-               ADD_PALETTE(BASIC::B052L4, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L4P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L4D, 0x66FAFAFA);
-               ADD_PALETTE(BASIC::B052L5, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L6, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L6P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L7, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L8, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L8P, 0xFF5D83FF);
-               ADD_PALETTE(BASIC::B052L8D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B052L9, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L9P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L9D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B052L10, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B0531, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B0532, 0x00000000);
-               ADD_PALETTE(BASIC::B0533, 0x00000000);
-               ADD_PALETTE(BASIC::B0534, 0x00000000);
-               ADD_PALETTE(BASIC::B0535, 0x00000000);
-               ADD_PALETTE(BASIC::B0536, 0x00000000);
-               ADD_PALETTE(BASIC::B0537, 0x00000000);
-               ADD_PALETTE(BASIC::B0541, 0xFF6B728A);
-               ADD_PALETTE(BASIC::B0541P, 0xFF0D1D96);
-               ADD_PALETTE(BASIC::B0541D, 0x7F6B728A);
-               ADD_PALETTE(BASIC::B0542, 0x00000000);
-               ADD_PALETTE(BASIC::B0542P, 0x00000000);
-               ADD_PALETTE(BASIC::B0543, 0x00000000);
-               ADD_PALETTE(BASIC::B0544, 0x00000000);
-               ADD_PALETTE(BASIC::B0545, 0x00000000);
-               ADD_PALETTE(BASIC::B0551, 0x00000000);
-               ADD_PALETTE(BASIC::B0552, 0x00000000);
-               ADD_PALETTE(BASIC::B0553, 0xFFA5A5A5);
-               ADD_PALETTE(BASIC::B0554, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::B0555, 0x00000000);
-               ADD_PALETTE(BASIC::B0556, 0x00000000);
-               ADD_PALETTE(BASIC::B0557, 0x00000000);
-               ADD_PALETTE(BASIC::B0558, 0x00000000);
-               ADD_PALETTE(BASIC::B061L1, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B061L2, 0xFF49577B);
-               ADD_PALETTE(BASIC::B061L3, 0xFF969A9C);
-               ADD_PALETTE(BASIC::B061L4, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B061L5, 0xFF222222);
-               ADD_PALETTE(BASIC::B061L6, 0xFF333537);
-               ADD_PALETTE(BASIC::B0621L1, 0x00000000);
-               ADD_PALETTE(BASIC::B0621L2, 0x00000000);
-               ADD_PALETTE(BASIC::B0622L1, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B0622L2, 0xFF626675);
-               ADD_PALETTE(BASIC::B0623L1, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B0623L2, 0xFF626675);
-               ADD_PALETTE(BASIC::B0624L1, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B0624L2, 0xFF626675);
-               ADD_PALETTE(BASIC::B0624L3, 0xFF313F66);
-               ADD_PALETTE(BASIC::B0624L4, 0xFF000000);
-               ADD_PALETTE(BASIC::B0624L5, 0xFF5783FF);
-               ADD_PALETTE(BASIC::B0624L6, 0xFF5783FF);
-               ADD_PALETTE(BASIC::B063L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L1P, 0x00000000);
-               ADD_PALETTE(BASIC::B063L1D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B063L2, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L3, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::B063L4, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L5, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L5D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B063L6, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L6P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L6D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B063L7, 0xFF656565);
-               ADD_PALETTE(BASIC::B063L8, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::B063L8P, 0x00000000);
-               ADD_PALETTE(BASIC::B063L8D, 0x7F6E6F76);
-               ADD_PALETTE(BASIC::B063L9, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B064L1, 0xFF6890FF);
-               ADD_PALETTE(BASIC::B064L2, 0xFFD7D7D7);
-               ADD_PALETTE(BASIC::B064L2P, 0xFFD7D7D7);
-               ADD_PALETTE(BASIC::B064L2D, 0xFFD7D7D7);
-               ADD_PALETTE(BASIC::B064L3, 0xFF000000);
-               ADD_PALETTE(BASIC::B064L3P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B064L3D, 0x7F000000);
-               ADD_PALETTE(BASIC::B065L1, 0x00000000);
-               ADD_PALETTE(BASIC::B065L2, 0x00000000);
-               ADD_PALETTE(BASIC::B065L3, 0x00000000);
-               ADD_PALETTE(BASIC::B065L3P, 0x00000000);
-               ADD_PALETTE(BASIC::B065L4, 0xFFEEEEEE);
-               ADD_PALETTE(BASIC::B065L4D, 0x99EEEEEE);
-               ADD_PALETTE(BASIC::B065L4P, 0xFF2A39AC);
-               ADD_PALETTE(BASIC::B065L5, 0x00000000);
-               ADD_PALETTE(BASIC::B071, 0xFF393B41);
-               ADD_PALETTE(BASIC::B0721, 0xFFA09F9A);
-               ADD_PALETTE(BASIC::B0722, 0xFF5D83FF);
-               ADD_PALETTE(BASIC::B0723, 0xFF212428);
-               ADD_PALETTE(BASIC::B0724, 0xFF404040);
-               ADD_PALETTE(BASIC::B0725, 0xFF4F66A7);
-               ADD_PALETTE(BASIC::B0726, 0xFF404040);
-               ADD_PALETTE(BASIC::B0731, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::B0732, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B0741, 0xFFA09F9A);
-               ADD_PALETTE(BASIC::B0742, 0xFF5D83FF);
-               ADD_PALETTE(BASIC::B0743, 0xFF212428);
-               ADD_PALETTE(BASIC::B0744, 0xFF404040);
-               ADD_PALETTE(BASIC::B0745, 0x00000000);
-               ADD_PALETTE(BASIC::B0751, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::F011L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F011L1P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F011L1D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::F011L2, 0xFF6890FF);
-               ADD_PALETTE(BASIC::F011L2D, 0x7F6890FF);
-               ADD_PALETTE(BASIC::F011L3, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L3D, 0x7F6E6F76);
-               ADD_PALETTE(BASIC::F011L4, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L4D, 0x7F6E6F76);
-               ADD_PALETTE(BASIC::F011L5, 0xFF5D83FF);
-               ADD_PALETTE(BASIC::F011L6, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F011L7, 0XFF6E6F76);
-               ADD_PALETTE(BASIC::F011L7D, 0X7F6E6F76);
-               ADD_PALETTE(BASIC::F011L8, 0xFFD10000);
-               ADD_PALETTE(BASIC::F011L9, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::F011L10, 0xFFF9F9F9);
-               ADD_PALETTE(BASIC::F011L11, 0xFF808080);
-               ADD_PALETTE(BASIC::F011L12, 0xFF4093F7);
-               ADD_PALETTE(BASIC::F011L13, 0x00000000);
-               ADD_PALETTE(BASIC::F011L14, 0x00000000);
-               ADD_PALETTE(BASIC::F011L15, 0xFFD10000);
-               ADD_PALETTE(BASIC::F011L16, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L17, 0xFF8B8B8B);
-               ADD_PALETTE(BASIC::F011L18, 0xFF686868);
-               ADD_PALETTE(BASIC::F011L19, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L20, 0x00000000);
-               ADD_PALETTE(BASIC::F011L21, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L22, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L23, 0xFF1382FF);
-               ADD_PALETTE(BASIC::F021L1i, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F021L1iP, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F021L1iD, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::F022L1i, 0xFF6C6E77);
-               ADD_PALETTE(BASIC::F022L2i, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::F022L2iD, 0x992D3AAF);
-               ADD_PALETTE(BASIC::F031L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L1P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L1D, 0x99FAFAFA);
-               ADD_PALETTE(BASIC::F031L2, 0x00000000);
-               ADD_PALETTE(BASIC::F031L2P, 0x00000000);
-               ADD_PALETTE(BASIC::F031L2D, 0x00000000);
-               ADD_PALETTE(BASIC::F031L3, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L3P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L3D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::F032L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L1P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L1D, 0x99FAFAFA);
-               ADD_PALETTE(BASIC::F032L2, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L2P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L2D, 0x99FAFAFA);
-               ADD_PALETTE(BASIC::F032L3, 0xFFF9F9F9);
-               ADD_PALETTE(BASIC::F032L3P, 0xFFF9F9F9);
-               ADD_PALETTE(BASIC::F041i, 0xFF5D6176);
-               ADD_PALETTE(BASIC::F041iD, 0x7F5D6176);
-               ADD_PALETTE(BASIC::F051, 0xFF485D93);
-               ADD_PALETTE(BASIC::F052, 0xFF3A72FF);
-               ADD_PALETTE(BASIC::F053, 0xFF485D93);
-               ADD_PALETTE(BASIC::F053P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F053D, 0x7F485D93);
-               ADD_PALETTE(BASIC::F054, 0xFF202432);
-               ADD_PALETTE(BASIC::F055, 0xFF3A72FF);
-               ADD_PALETTE(BASIC::W011, 0xFF4B4D56);
-               ADD_PALETTE(BASIC::W011D, 0x994B4D56);
-               ADD_PALETTE(BASIC::W012, 0xFF095FD4);
-               ADD_PALETTE(BASIC::W012D, 0x99095FD4);
-               ADD_PALETTE(BASIC::W012P, 0xFF232F91);
-               ADD_PALETTE(BASIC::W013, 0x00000000);
-               ADD_PALETTE(BASIC::W0141, 0xFFDB0000);
-               ADD_PALETTE(BASIC::W0141P, 0xFFA10808);
-               ADD_PALETTE(BASIC::W0141D, 0x99DB0000);
-               ADD_PALETTE(BASIC::W015, 0xFF343432);
-               ADD_PALETTE(BASIC::W021L1, 0xFF000000);
-               ADD_PALETTE(BASIC::W021L1P, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W021L2, 0xFF425790);
-               ADD_PALETTE(BASIC::W021L2P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W021L3, 0xFF425790);
-               ADD_PALETTE(BASIC::W021L3P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W021L4, 0xFFF0F0F0);
-               ADD_PALETTE(BASIC::W031L1, 0xFF000000);
-               ADD_PALETTE(BASIC::W031L1D, 0x7F000000);
-               ADD_PALETTE(BASIC::W031L2, 0xFF000000);
-               ADD_PALETTE(BASIC::W031L2D, 0x7F000000);
-               ADD_PALETTE(BASIC::W032, 0xFF5D6176);
-               ADD_PALETTE(BASIC::W032P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W032D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::W041, 0xFFE1DDD1);
-               ADD_PALETTE(BASIC::W051, 0xFF000000);
-               ADD_PALETTE(BASIC::W0611, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W0611P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W0611D, 0x99FAFAFA);
-               ADD_PALETTE(BASIC::W062L1, 0xFF555861);
-               ADD_PALETTE(BASIC::W062L1D, 0x7F555861);
-               ADD_PALETTE(BASIC::W062L2, 0xFF415BFE);
-               ADD_PALETTE(BASIC::W062L2D, 0x7F415BFE);
-               ADD_PALETTE(BASIC::W062L3, 0xFFD8D7D2);
-               ADD_PALETTE(BASIC::W062L3D, 0x4CD8D7D2);
-               ADD_PALETTE(BASIC::W062L4, 0xFF3677C3);
-               ADD_PALETTE(BASIC::W062L4D, 0x4C3677C3);
-               ADD_PALETTE(BASIC::W062L5, 0xFFC7D3E3);
-               ADD_PALETTE(BASIC::W0631, 0xFFEEEEEE);
-               ADD_PALETTE(BASIC::W0632, 0xFF4C5158);
-               ADD_PALETTE(BASIC::W0641, 0xFF6B6D79);
-               ADD_PALETTE(BASIC::W0641P, 0xFF2A39AC);
-               ADD_PALETTE(BASIC::W0641D, 0x7F6B6D79);
-               ADD_PALETTE(BASIC::W0651, 0xFF3A3A3A);
-               ADD_PALETTE(BASIC::W0711, 0xFF525767);
-               ADD_PALETTE(BASIC::W0712, 0xFF4267A9);
-               ADD_PALETTE(BASIC::W0713, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W0714, 0xFF263E5F);
-               ADD_PALETTE(BASIC::W0715, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W0721, 0x00000000);
-               ADD_PALETTE(BASIC::W0811, 0xFF253296);
-               ADD_PALETTE(BASIC::W0812, 0x00000000);
-               ADD_PALETTE(BASIC::W0813, 0xFF595959);
-               ADD_PALETTE(BASIC::W082, 0x00000000);
-               ADD_PALETTE(BASIC::W083, 0x00000000);
-               ADD_PALETTE(BASIC::W084, 0xB2FAFAFA);
-               ADD_PALETTE(BASIC::W084P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W085, 0x00000000);
-               ADD_PALETTE(BASIC::W091, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W092, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W101, 0xFF4884D6);
-               ADD_PALETTE(BASIC::W111, 0xFFC8CEDB);
-               ADD_PALETTE(BASIC::W112L1, 0xFF8995AE);
-               ADD_PALETTE(BASIC::W112L2, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W1121, 0xFF000000);
-               ADD_PALETTE(BASIC::W1122, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W1123, 0x4C000000);
-               ADD_PALETTE(BASIC::W1211, 0x00000000);
-               ADD_PALETTE(BASIC::W1212, 0x00000000);
-               ADD_PALETTE(BASIC::W1221, 0xFF000000);
-               ADD_PALETTE(BASIC::W1222, 0xFF878580);
-               ADD_PALETTE(BASIC::W1223, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::W131, 0xFF343739);
-               ADD_PALETTE(BASIC::W132, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W141, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::W151, 0x66000000);
-               ADD_PALETTE(BASIC::W152, 0xFF42434B);
-               ADD_PALETTE(BASIC::W153, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W154, 0xFF1C1E28);
-               ADD_PALETTE(BASIC::W161, 0xFF001BEA);
+               LoadBlackPalette();
        }
        else if (systemTheme == L"white")
        {
-               ADD_PALETTE(BASIC::foreground, 0xFF000000);
-               ADD_PALETTE(BASIC::background, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B011, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B012, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B013, 0xFF000000);
-               ADD_PALETTE(BASIC::B014, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::B015, 0xFF202327);
-               ADD_PALETTE(BASIC::B016, 0xFF000000);
-               ADD_PALETTE(BASIC::B017, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B018, 0xFF6590FF);
-               ADD_PALETTE(BASIC::B0211, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B0211D, 0xFF333639);
-               ADD_PALETTE(BASIC::B0212, 0xFFEDEBE4);
-               ADD_PALETTE(BASIC::B0213, 0xFF5B5656);
-               ADD_PALETTE(BASIC::B0214, 0xFFDCDAD3);
-               ADD_PALETTE(BASIC::B0215, 0xFFDEDCD5);
-               ADD_PALETTE(BASIC::B0216, 0xFFBDBBB5);
-               ADD_PALETTE(BASIC::B0217, 0xFFEFEDE5);
-               ADD_PALETTE(BASIC::B0217D, 0x7FEFEDE5);
-               ADD_PALETTE(BASIC::B0221, 0xFF8A8A8A);
-               ADD_PALETTE(BASIC::B0222, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::B0223, 0xFFD3D1CB);
-               ADD_PALETTE(BASIC::B0224, 0xFFB9B8B2);
-               ADD_PALETTE(BASIC::B0225, 0xFF2A5181);
-               ADD_PALETTE(BASIC::B0226, 0xFF4B73A3);
-               ADD_PALETTE(BASIC::B0227, 0xFF000000);
-               ADD_PALETTE(BASIC::B0228, 0xFF1A5274);
-               ADD_PALETTE(BASIC::B0232, 0x00000000);
-               ADD_PALETTE(BASIC::B0233, 0x00000000);
-               ADD_PALETTE(BASIC::B031, 0x00000000);
-               ADD_PALETTE(BASIC::B041, 0xFF5787C2);
-               ADD_PALETTE(BASIC::B041P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B042, 0xFF0079D4);
-               ADD_PALETTE(BASIC::B043, 0xFF5787C2);
-               ADD_PALETTE(BASIC::B044, 0xFF2A89C2);
-               ADD_PALETTE(BASIC::B0511, 0xFFEDEBE4);
-               ADD_PALETTE(BASIC::B0511P, 0xFF0E66AA);
-               ADD_PALETTE(BASIC::B0512, 0x00000000);
-               ADD_PALETTE(BASIC::B0513, 0xFF202327);
-               ADD_PALETTE(BASIC::B0514, 0xFFEDEBE4);
-               ADD_PALETTE(BASIC::B0514P1, 0xFF0E66AA);
-               ADD_PALETTE(BASIC::B0514P2, 0xFF007BDA);
-               ADD_PALETTE(BASIC::B0514L2, 0xFF6590FF);
-               ADD_PALETTE(BASIC::B0515L1, 0xFFDEDCD5);
-               ADD_PALETTE(BASIC::B0515L2, 0x7F626262);
-               ADD_PALETTE(BASIC::B0516, 0x00000000);
-               ADD_PALETTE(BASIC::B0517, 0x00000000);
-               ADD_PALETTE(BASIC::B0517P1, 0x00000000);
-               ADD_PALETTE(BASIC::B0517P2, 0x00000000);
-               ADD_PALETTE(BASIC::B0518, 0x003567A3);
-               ADD_PALETTE(BASIC::B0518P, 0x00000000);
-               ADD_PALETTE(BASIC::B0519, 0xFFF25D28);
-               ADD_PALETTE(BASIC::B0520, 0xFF3567A3);
-               ADD_PALETTE(BASIC::B0520P, 0xFF2A89C2);
-               ADD_PALETTE(BASIC::B052L1, 0xFF656565);
-               ADD_PALETTE(BASIC::B052L1P, 0xFF007BDA);
-               ADD_PALETTE(BASIC::B052L1D, 0x7F656565);
-               ADD_PALETTE(BASIC::B052L2, 0xFF525252);
-               ADD_PALETTE(BASIC::B052L2P, 0xFF4093F7);
-               ADD_PALETTE(BASIC::B052L3, 0x00000000);
-               ADD_PALETTE(BASIC::B052L3P, 0x00000000);
-               ADD_PALETTE(BASIC::B052L4, 0xFF3A3A3A);
-               ADD_PALETTE(BASIC::B052L4P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L4D, 0x4C3A3A3A);
-               ADD_PALETTE(BASIC::B052L5, 0xFF252525);
-               ADD_PALETTE(BASIC::B052L6, 0xFF555555);
-               ADD_PALETTE(BASIC::B052L6P, 0xFF0E68AD);
-               ADD_PALETTE(BASIC::B052L7, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L8, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L8P, 0xFF4093F7);
-               ADD_PALETTE(BASIC::B052L8D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B052L9, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L9P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L9D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B052L10, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B0531, 0xFF202327);
-               ADD_PALETTE(BASIC::B0532, 0x00000000);
-               ADD_PALETTE(BASIC::B0533, 0x00000000);
-               ADD_PALETTE(BASIC::B0534, 0x00000000);
-               ADD_PALETTE(BASIC::B0535, 0x00000000);
-               ADD_PALETTE(BASIC::B0536, 0x00000000);
-               ADD_PALETTE(BASIC::B0537, 0x00000000);
-               ADD_PALETTE(BASIC::B0541, 0xFFF7F5ED);
-               ADD_PALETTE(BASIC::B0541P, 0xFF007AD8);
-               ADD_PALETTE(BASIC::B0541D, 0x7FF7F5ED);
-               ADD_PALETTE(BASIC::B0542, 0x00000000);
-               ADD_PALETTE(BASIC::B0542P, 0x00000000);
-               ADD_PALETTE(BASIC::B0543, 0x00000000);
-               ADD_PALETTE(BASIC::B0544, 0x00000000);
-               ADD_PALETTE(BASIC::B0545, 0x00000000);
-               ADD_PALETTE(BASIC::B0551, 0x00000000);
-               ADD_PALETTE(BASIC::B0552, 0x00000000);
-               ADD_PALETTE(BASIC::B0553, 0xFF0C0F14);
-               ADD_PALETTE(BASIC::B0554, 0xFF414447);
-               ADD_PALETTE(BASIC::B0555, 0x00000000);
-               ADD_PALETTE(BASIC::B0556, 0x00000000);
-               ADD_PALETTE(BASIC::B0557, 0x00000000);
-               ADD_PALETTE(BASIC::B0558, 0x00000000);
-               ADD_PALETTE(BASIC::B061L1, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B061L2, 0xFFDBD9CE);
-               ADD_PALETTE(BASIC::B061L3, 0xFFD6D3C9);
-               ADD_PALETTE(BASIC::B061L4, 0xFF444444);
-               ADD_PALETTE(BASIC::B061L5, 0xFF222222);
-               ADD_PALETTE(BASIC::B061L6, 0xFF17191C);
-               ADD_PALETTE(BASIC::B0621L1, 0x00000000);
-               ADD_PALETTE(BASIC::B0621L2, 0x00000000);
-               ADD_PALETTE(BASIC::B0622L1, 0xFF2D2D2D);
-               ADD_PALETTE(BASIC::B0622L2, 0xFF5B5B5B);
-               ADD_PALETTE(BASIC::B0623L1, 0xFF2D2D2D);
-               ADD_PALETTE(BASIC::B0623L2, 0xFF5B5B5B);
-               ADD_PALETTE(BASIC::B0624L1, 0xFFCDCDCD);
-               ADD_PALETTE(BASIC::B0624L2, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B0624L3, 0xFF303337);
-               ADD_PALETTE(BASIC::B0624L4, 0xFF000000);
-               ADD_PALETTE(BASIC::B0624L5, 0xFF007BDA);
-               ADD_PALETTE(BASIC::B0624L6, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L1, 0xFF000000);
-               ADD_PALETTE(BASIC::B063L1P, 0x00000000);
-               ADD_PALETTE(BASIC::B063L1D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B063L2, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L3, 0xFF808080);
-               ADD_PALETTE(BASIC::B063L4, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L5, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L5D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B063L6, 0xFF454545);
-               ADD_PALETTE(BASIC::B063L6P, 0xFF454545);
-               ADD_PALETTE(BASIC::B063L6D, 0x7F454545);
-               ADD_PALETTE(BASIC::B063L7, 0xFFBABABA);
-               ADD_PALETTE(BASIC::B063L8, 0xFF808080);
-               ADD_PALETTE(BASIC::B063L8P, 0x00000000);
-               ADD_PALETTE(BASIC::B063L8D, 0x7F808080);
-               ADD_PALETTE(BASIC::B063L9, 0xFF252525);
-               ADD_PALETTE(BASIC::B064L1, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::B064L2, 0xFF808080);
-               ADD_PALETTE(BASIC::B064L2P, 0xFF808080);
-               ADD_PALETTE(BASIC::B064L2D, 0xFF808080);
-               ADD_PALETTE(BASIC::B064L3, 0xFF3A3A3A);
-               ADD_PALETTE(BASIC::B064L3P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B064L3D, 0x7F3A3A3A);
-               ADD_PALETTE(BASIC::B065L1, 0x00000000);
-               ADD_PALETTE(BASIC::B065L2, 0x00000000);
-               ADD_PALETTE(BASIC::B065L3, 0x00000000);
-               ADD_PALETTE(BASIC::B065L3P, 0x00000000);
-               ADD_PALETTE(BASIC::B065L4, 0xFFF7F5ED);
-               ADD_PALETTE(BASIC::B065L4D, 0x7FF7F5ED);
-               ADD_PALETTE(BASIC::B065L4P, 0xFF007AD8);
-               ADD_PALETTE(BASIC::B065L5, 0x00000000);
-               ADD_PALETTE(BASIC::B071, 0xFFC6C4BE);
-               ADD_PALETTE(BASIC::B0721, 0xFFA09F9A);
-               ADD_PALETTE(BASIC::B0722, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::B0723, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B0724, 0xFFD1CFC9);
-               ADD_PALETTE(BASIC::B0725, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::B0726, 0xFFE2DFD5);
-               ADD_PALETTE(BASIC::B0731, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::B0732, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B0741, 0xFFA09F9A);
-               ADD_PALETTE(BASIC::B0742, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::B0743, 0xFFE6E3D8);
-               ADD_PALETTE(BASIC::B0744, 0xFFC5C2B7);
-               ADD_PALETTE(BASIC::B0745, 0x00000000);
-               ADD_PALETTE(BASIC::B0751, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::F011L1, 0xFF000000);
-               ADD_PALETTE(BASIC::F011L1P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F011L1D, 0x7F000000);
-               ADD_PALETTE(BASIC::F011L2, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::F011L2D, 0x7F3B73B6);
-               ADD_PALETTE(BASIC::F011L3, 0xFF4F4F4F);
-               ADD_PALETTE(BASIC::F011L3D, 0xFF4F4F4F);
-               ADD_PALETTE(BASIC::F011L4, 0xFF4F4F4F);
-               ADD_PALETTE(BASIC::F011L4D, 0x7F4F4F4F);
-               ADD_PALETTE(BASIC::F011L5, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::F011L6, 0xFF808080);
-               ADD_PALETTE(BASIC::F011L7, 0xFF686866);
-               ADD_PALETTE(BASIC::F011L7D, 0xCC686866);
-               ADD_PALETTE(BASIC::F011L8, 0xFFC24747);
-               ADD_PALETTE(BASIC::F011L9, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::F011L10, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F011L11, 0xFF808080);
-               ADD_PALETTE(BASIC::F011L12, 0xFF4093F7);
-               ADD_PALETTE(BASIC::F011L13, 0x00000000);
-               ADD_PALETTE(BASIC::F011L14, 0x00000000);
-               ADD_PALETTE(BASIC::F011L15, 0xFFE94949);
-               ADD_PALETTE(BASIC::F011L16, 0xFF8B8B8B);
-               ADD_PALETTE(BASIC::F011L17, 0xFF8B8B8B);
-               ADD_PALETTE(BASIC::F011L18, 0xFF686868);
-               ADD_PALETTE(BASIC::F011L19, 0xFF8B8B8B);
-               ADD_PALETTE(BASIC::F011L20, 0x00000000);
-               ADD_PALETTE(BASIC::F011L21, 0xFF808080);
-               ADD_PALETTE(BASIC::F011L22, 0xFF9A9A9A);
-               ADD_PALETTE(BASIC::F011L23, 0xFF1382FF);
-               ADD_PALETTE(BASIC::F021L1i, 0xFF808080);
-               ADD_PALETTE(BASIC::F021L1iP, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F021L1iD, 0x7F808080);
-               ADD_PALETTE(BASIC::F022L1i, 0xFFB8B8B8);
-               ADD_PALETTE(BASIC::F022L2i, 0xFF4C85C9);
-               ADD_PALETTE(BASIC::F022L2iD, 0x4C4C85C9);
-               ADD_PALETTE(BASIC::F031L1, 0xFF3A3A3A);
-               ADD_PALETTE(BASIC::F031L1P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L1D, 0x7F3A3A3A);
-               ADD_PALETTE(BASIC::F031L2, 0x00000000);
-               ADD_PALETTE(BASIC::F031L2P, 0x00000000);
-               ADD_PALETTE(BASIC::F031L2D, 0x00000000);
-               ADD_PALETTE(BASIC::F031L3, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L3P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L3D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::F032L1, 0xFF656565);
-               ADD_PALETTE(BASIC::F032L1P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L1D, 0x7F656565);
-               ADD_PALETTE(BASIC::F032L2, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L2P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L2D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::F032L3, 0xFFF9F9F9);
-               ADD_PALETTE(BASIC::F032L3P, 0xFFF9F9F9);
-               ADD_PALETTE(BASIC::F041i, 0xFF808080);
-               ADD_PALETTE(BASIC::F041iD, 0x7F808080);
-               ADD_PALETTE(BASIC::F051, 0xFF90A9C7);
-               ADD_PALETTE(BASIC::F052, 0xFF007BDB);
-               ADD_PALETTE(BASIC::F053, 0xFF808080);
-               ADD_PALETTE(BASIC::F053P, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::F053D, 0x7F808080);
-               ADD_PALETTE(BASIC::F054, 0xFFE3E1D9);
-               ADD_PALETTE(BASIC::F055, 0xFF007BDA);
-               ADD_PALETTE(BASIC::W011, 0xFFF7F5ED);
-               ADD_PALETTE(BASIC::W011D, 0x7FF7F5ED);
-               ADD_PALETTE(BASIC::W012, 0xFF0058D0);
-               ADD_PALETTE(BASIC::W012D, 0x7F0058D0);
-               ADD_PALETTE(BASIC::W012P, 0xFF0051BF);
-               ADD_PALETTE(BASIC::W013, 0x00000000);
-               ADD_PALETTE(BASIC::W0141, 0xFFC12C21);
-               ADD_PALETTE(BASIC::W0141P, 0xFFC12C21);
-               ADD_PALETTE(BASIC::W0141D, 0x7FC12C21);
-               ADD_PALETTE(BASIC::W015, 0xFF343432);
-               ADD_PALETTE(BASIC::W021L1, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::W021L1P, 0xFF5787C2);
-               ADD_PALETTE(BASIC::W021L2, 0xFF0E68AD);
-               ADD_PALETTE(BASIC::W021L2P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W021L3, 0xFF0E68AD);
-               ADD_PALETTE(BASIC::W021L3P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W021L4, 0xFF000000);
-               ADD_PALETTE(BASIC::W031L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W031L1D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::W031L2, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W031L2D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::W032, 0xFF878580);
-               ADD_PALETTE(BASIC::W032P, 0xFF000000);
-               ADD_PALETTE(BASIC::W032D, 0x7F878580);
-               ADD_PALETTE(BASIC::W041, 0xFF17191C);
-               ADD_PALETTE(BASIC::W051, 0xFF000000);
-               ADD_PALETTE(BASIC::W0611, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::W0611P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W0611D, 0x7F3B73B6);
-               ADD_PALETTE(BASIC::W062L1, 0xFFC5C5C5);
-               ADD_PALETTE(BASIC::W062L1D, 0x4CC5C5C5);
-               ADD_PALETTE(BASIC::W062L2, 0xFF007DDE);
-               ADD_PALETTE(BASIC::W062L2D, 0x7F007DDE);
-               ADD_PALETTE(BASIC::W062L3, 0xFF615F5B);
-               ADD_PALETTE(BASIC::W062L3D, 0x4C615F5B);
-               ADD_PALETTE(BASIC::W062L4, 0xFF70A9EE);
-               ADD_PALETTE(BASIC::W062L4D, 0x4C70A9EE);
-               ADD_PALETTE(BASIC::W062L5, 0xFF223148);
-               ADD_PALETTE(BASIC::W0631, 0xFF656565);
-               ADD_PALETTE(BASIC::W0632, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W0641, 0xFFF7F5ED);
-               ADD_PALETTE(BASIC::W0641P, 0xFF0079D4);
-               ADD_PALETTE(BASIC::W0641D, 0x7FF7F5ED);
-               ADD_PALETTE(BASIC::W0651, 0xFFBFBFBF);
-               ADD_PALETTE(BASIC::W0711, 0xFF769DCC);
-               ADD_PALETTE(BASIC::W0712, 0x00000000);
-               ADD_PALETTE(BASIC::W0713, 0xFF4093F7);
-               ADD_PALETTE(BASIC::W0714, 0x00000000);
-               ADD_PALETTE(BASIC::W0715, 0xFF2889FF);
-               ADD_PALETTE(BASIC::W0721, 0x00000000);
-               ADD_PALETTE(BASIC::W0811, 0xFF5787C2);
-               ADD_PALETTE(BASIC::W0812, 0x00000000);
-               ADD_PALETTE(BASIC::W0813, 0xFF494949);
-               ADD_PALETTE(BASIC::W082, 0x00000000);
-               ADD_PALETTE(BASIC::W083, 0x00000000);
-               ADD_PALETTE(BASIC::W084, 0xB2FAFAFA);
-               ADD_PALETTE(BASIC::W084P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W085, 0x00000000);
-               ADD_PALETTE(BASIC::W091, 0xFF444444);
-               ADD_PALETTE(BASIC::W092, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::W101, 0xFF5893E4);
-               ADD_PALETTE(BASIC::W111, 0xFFE7E5DE);
-               ADD_PALETTE(BASIC::W112L1, 0xFFB4B4B4);
-               ADD_PALETTE(BASIC::W112L2, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::W1121, 0xFF000000);
-               ADD_PALETTE(BASIC::W1122, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::W1123, 0x4C000000);
-               ADD_PALETTE(BASIC::W1211, 0x00000000);
-               ADD_PALETTE(BASIC::W1212, 0x00000000);
-               ADD_PALETTE(BASIC::W1221, 0x00000000);
-               ADD_PALETTE(BASIC::W1222, 0x00000000);
-               ADD_PALETTE(BASIC::W1223, 0x00000000);
-               ADD_PALETTE(BASIC::W131, 0xFF959595);
-               ADD_PALETTE(BASIC::W132, 0xFF5787C2);
-               ADD_PALETTE(BASIC::W141, 0xFF808080);
-               ADD_PALETTE(BASIC::W151, 0xFF95948F);
-               ADD_PALETTE(BASIC::W152, 0xFF878787);
-               ADD_PALETTE(BASIC::W153, 0xFF5787C2);
-               ADD_PALETTE(BASIC::W154, 0xFFEFECE0);
-               ADD_PALETTE(BASIC::W161, 0xFF007BDA);
+               LoadWhitePalette();
        }
        else if (systemTheme == L"default")
        {
-               ADD_PALETTE(BASIC::foreground, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::background, 0xFF000000);
-               ADD_PALETTE(BASIC::B011, 0xFF000000);
-               ADD_PALETTE(BASIC::B012, 0xFF000000);
-               ADD_PALETTE(BASIC::B013, 0xFF000000);
-               ADD_PALETTE(BASIC::B014, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::B015, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B016, 0xFF000000);
-               ADD_PALETTE(BASIC::B017, 0xFF000000);
-               ADD_PALETTE(BASIC::B018, 0xFF6590FF);
-               ADD_PALETTE(BASIC::B0211, 0xFF000000);
-               ADD_PALETTE(BASIC::B0211D, 0xFFDBD9D4);
-               ADD_PALETTE(BASIC::B0212, 0xFF1C1E28);
-               ADD_PALETTE(BASIC::B0213, 0xFF404040);
-               ADD_PALETTE(BASIC::B0214, 0xFF222C47);
-               ADD_PALETTE(BASIC::B0215, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B0216, 0xFF222C47);
-               ADD_PALETTE(BASIC::B0217, 0xFF11131B);
-               ADD_PALETTE(BASIC::B0217D, 0x7F11131B);
-               ADD_PALETTE(BASIC::B0221, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::B0222, 0x3FFFFFFF);
-               ADD_PALETTE(BASIC::B0223, 0xFF000000);
-               ADD_PALETTE(BASIC::B0224, 0xFF27282B);
-               ADD_PALETTE(BASIC::B0225, 0xFF2A5181);
-               ADD_PALETTE(BASIC::B0226, 0xFF4B73A3);
-               ADD_PALETTE(BASIC::B0227, 0xFF000000);
-               ADD_PALETTE(BASIC::B0228, 0xFF1A5274);
-               ADD_PALETTE(BASIC::B0232, 0x00000000);
-               ADD_PALETTE(BASIC::B0233, 0x00000000);
-               ADD_PALETTE(BASIC::B031, 0x00000000);
-               ADD_PALETTE(BASIC::B041, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::B041P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B042, 0xFF2A39AC);
-               ADD_PALETTE(BASIC::B043, 0xFF001BEA);
-               ADD_PALETTE(BASIC::B044, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::B0511, 0xFF313F66);
-               ADD_PALETTE(BASIC::B0511P, 0xFF2A39AC);
-               ADD_PALETTE(BASIC::B0512, 0x00000000);
-               ADD_PALETTE(BASIC::B0513, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B0514, 0xFF313F66);
-               ADD_PALETTE(BASIC::B0514P1, 0xFF303FB2);
-               ADD_PALETTE(BASIC::B0514P2, 0xFF5163E9);
-               ADD_PALETTE(BASIC::B0514L2, 0xFF6590FF);
-               ADD_PALETTE(BASIC::B0515L1, 0xFF464C5E);
-               ADD_PALETTE(BASIC::B0515L2, 0x7F454442);
-               ADD_PALETTE(BASIC::B0516, 0x00000000);
-               ADD_PALETTE(BASIC::B0517, 0x00000000);
-               ADD_PALETTE(BASIC::B0517P1, 0x00000000);
-               ADD_PALETTE(BASIC::B0517P2, 0x00000000);
-               ADD_PALETTE(BASIC::B0518, 0xFF2E4468);
-               ADD_PALETTE(BASIC::B0518P, 0x00000000);
-               ADD_PALETTE(BASIC::B0519, 0xFFF25D28);
-               ADD_PALETTE(BASIC::B0520, 0xFF2E4468);
-               ADD_PALETTE(BASIC::B0520P, 0xFF3C649B);
-               ADD_PALETTE(BASIC::B052L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L1P, 0xFF5D83FF);
-               ADD_PALETTE(BASIC::B052L1D, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L2, 0x00000000);
-               ADD_PALETTE(BASIC::B052L2P, 0x005787B8);
-               ADD_PALETTE(BASIC::B052L3, 0x00000000);
-               ADD_PALETTE(BASIC::B052L3P, 0x00000000);
-               ADD_PALETTE(BASIC::B052L4, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L4P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L4D, 0x66FAFAFA);
-               ADD_PALETTE(BASIC::B052L5, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L6, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L6P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L7, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L8, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L8P, 0xFF5D83FF);
-               ADD_PALETTE(BASIC::B052L8D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B052L9, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L9P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B052L9D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B052L10, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B0531, 0xFFF8F6EF);
-               ADD_PALETTE(BASIC::B0532, 0x00000000);
-               ADD_PALETTE(BASIC::B0533, 0x00000000);
-               ADD_PALETTE(BASIC::B0534, 0x00000000);
-               ADD_PALETTE(BASIC::B0535, 0x00000000);
-               ADD_PALETTE(BASIC::B0536, 0x00000000);
-               ADD_PALETTE(BASIC::B0537, 0x00000000);
-               ADD_PALETTE(BASIC::B0541, 0xFF6B728A);
-               ADD_PALETTE(BASIC::B0541P, 0xFF0D1D96);
-               ADD_PALETTE(BASIC::B0541D, 0x7F6B728A);
-               ADD_PALETTE(BASIC::B0542, 0x00000000);
-               ADD_PALETTE(BASIC::B0542P, 0x00000000);
-               ADD_PALETTE(BASIC::B0543, 0x00000000);
-               ADD_PALETTE(BASIC::B0544, 0x00000000);
-               ADD_PALETTE(BASIC::B0545, 0x00000000);
-               ADD_PALETTE(BASIC::B0551, 0x00000000);
-               ADD_PALETTE(BASIC::B0552, 0x00000000);
-               ADD_PALETTE(BASIC::B0553, 0xFFA5A5A5);
-               ADD_PALETTE(BASIC::B0554, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::B0555, 0x00000000);
-               ADD_PALETTE(BASIC::B0556, 0x00000000);
-               ADD_PALETTE(BASIC::B0557, 0x00000000);
-               ADD_PALETTE(BASIC::B0558, 0x00000000);
-               ADD_PALETTE(BASIC::B061L1, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B061L2, 0xFF49577B);
-               ADD_PALETTE(BASIC::B061L3, 0xFF969A9C);
-               ADD_PALETTE(BASIC::B061L4, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B061L5, 0xFF222222);
-               ADD_PALETTE(BASIC::B061L6, 0xFF333537);
-               ADD_PALETTE(BASIC::B0621L1, 0x00000000);
-               ADD_PALETTE(BASIC::B0621L2, 0x00000000);
-               ADD_PALETTE(BASIC::B0622L1, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B0622L2, 0xFF626675);
-               ADD_PALETTE(BASIC::B0623L1, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B0623L2, 0xFF626675);
-               ADD_PALETTE(BASIC::B0624L1, 0xFF1D263C);
-               ADD_PALETTE(BASIC::B0624L2, 0xFF626675);
-               ADD_PALETTE(BASIC::B0624L3, 0xFF313F66);
-               ADD_PALETTE(BASIC::B0624L4, 0xFF000000);
-               ADD_PALETTE(BASIC::B0624L5, 0xFF5783FF);
-               ADD_PALETTE(BASIC::B0624L6, 0xFF5783FF);
-               ADD_PALETTE(BASIC::B063L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L1P, 0x00000000);
-               ADD_PALETTE(BASIC::B063L1D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B063L2, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L3, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::B063L4, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L5, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L5D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B063L6, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L6P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B063L6D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::B063L7, 0xFF656565);
-               ADD_PALETTE(BASIC::B063L8, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::B063L8P, 0x00000000);
-               ADD_PALETTE(BASIC::B063L8D, 0x7F6E6F76);
-               ADD_PALETTE(BASIC::B063L9, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B064L1, 0xFF6890FF);
-               ADD_PALETTE(BASIC::B064L2, 0xFFD7D7D7);
-               ADD_PALETTE(BASIC::B064L2P, 0xFFD7D7D7);
-               ADD_PALETTE(BASIC::B064L2D, 0xFFD7D7D7);
-               ADD_PALETTE(BASIC::B064L3, 0xFF000000);
-               ADD_PALETTE(BASIC::B064L3P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B064L3D, 0x7F000000);
-               ADD_PALETTE(BASIC::B065L1, 0x00000000);
-               ADD_PALETTE(BASIC::B065L2, 0x00000000);
-               ADD_PALETTE(BASIC::B065L3, 0x00000000);
-               ADD_PALETTE(BASIC::B065L3P, 0x00000000);
-               ADD_PALETTE(BASIC::B065L4, 0xFFEEEEEE);
-               ADD_PALETTE(BASIC::B065L4D, 0x99EEEEEE);
-               ADD_PALETTE(BASIC::B065L4P, 0xFF2A39AC);
-               ADD_PALETTE(BASIC::B065L5, 0x00000000);
-               ADD_PALETTE(BASIC::B071, 0xFF393B41);
-               ADD_PALETTE(BASIC::B0721, 0xFFA09F9A);
-               ADD_PALETTE(BASIC::B0722, 0xFF5D83FF);
-               ADD_PALETTE(BASIC::B0723, 0xFF212428);
-               ADD_PALETTE(BASIC::B0724, 0xFF404040);
-               ADD_PALETTE(BASIC::B0725, 0xFF4F66A7);
-               ADD_PALETTE(BASIC::B0726, 0xFF404040);
-               ADD_PALETTE(BASIC::B0731, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::B0732, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::B0741, 0xFFA09F9A);
-               ADD_PALETTE(BASIC::B0742, 0xFF5D83FF);
-               ADD_PALETTE(BASIC::B0743, 0xFF212428);
-               ADD_PALETTE(BASIC::B0744, 0xFF404040);
-               ADD_PALETTE(BASIC::B0745, 0x00000000);
-               ADD_PALETTE(BASIC::B0751, 0xFF3B73B6);
-               ADD_PALETTE(BASIC::F011L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F011L1P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F011L1D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::F011L2, 0xFF6890FF);
-               ADD_PALETTE(BASIC::F011L2D, 0x7F6890FF);
-               ADD_PALETTE(BASIC::F011L3, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L3D, 0x7F6E6F76);
-               ADD_PALETTE(BASIC::F011L4, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L4D, 0x7F6E6F76);
-               ADD_PALETTE(BASIC::F011L5, 0xFF5D83FF);
-               ADD_PALETTE(BASIC::F011L6, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F011L7, 0XFF6E6F76);
-               ADD_PALETTE(BASIC::F011L7D, 0X7F6E6F76);
-               ADD_PALETTE(BASIC::F011L8, 0xFFD10000);
-               ADD_PALETTE(BASIC::F011L9, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::F011L10, 0xFFF9F9F9);
-               ADD_PALETTE(BASIC::F011L11, 0xFF808080);
-               ADD_PALETTE(BASIC::F011L12, 0xFF4093F7);
-               ADD_PALETTE(BASIC::F011L13, 0x00000000);
-               ADD_PALETTE(BASIC::F011L14, 0x00000000);
-               ADD_PALETTE(BASIC::F011L15, 0xFFD10000);
-               ADD_PALETTE(BASIC::F011L16, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L17, 0xFF8B8B8B);
-               ADD_PALETTE(BASIC::F011L18, 0xFF686868);
-               ADD_PALETTE(BASIC::F011L19, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L20, 0x00000000);
-               ADD_PALETTE(BASIC::F011L21, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L22, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::F011L23, 0xFF1382FF);
-               ADD_PALETTE(BASIC::F021L1i, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F021L1iP, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F021L1iD, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::F022L1i, 0xFF6C6E77);
-               ADD_PALETTE(BASIC::F022L2i, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::F022L2iD, 0x992D3AAF);
-               ADD_PALETTE(BASIC::F031L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L1P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L1D, 0x99FAFAFA);
-               ADD_PALETTE(BASIC::F031L2, 0x00000000);
-               ADD_PALETTE(BASIC::F031L2P, 0x00000000);
-               ADD_PALETTE(BASIC::F031L2D, 0x00000000);
-               ADD_PALETTE(BASIC::F031L3, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L3P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F031L3D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::F032L1, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L1P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L1D, 0x99FAFAFA);
-               ADD_PALETTE(BASIC::F032L2, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L2P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F032L2D, 0x99FAFAFA);
-               ADD_PALETTE(BASIC::F032L3, 0xFFF9F9F9);
-               ADD_PALETTE(BASIC::F032L3P, 0xFFF9F9F9);
-               ADD_PALETTE(BASIC::F041i, 0xFF5D6176);
-               ADD_PALETTE(BASIC::F041iD, 0x7F5D6176);
-               ADD_PALETTE(BASIC::F051, 0xFF485D93);
-               ADD_PALETTE(BASIC::F052, 0xFF3A72FF);
-               ADD_PALETTE(BASIC::F053, 0xFF485D93);
-               ADD_PALETTE(BASIC::F053P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::F053D, 0x7F485D93);
-               ADD_PALETTE(BASIC::F054, 0xFF202432);
-               ADD_PALETTE(BASIC::F055, 0xFF3A72FF);
-               ADD_PALETTE(BASIC::W011, 0xFF4B4D56);
-               ADD_PALETTE(BASIC::W011D, 0x994B4D56);
-               ADD_PALETTE(BASIC::W012, 0xFF095FD4);
-               ADD_PALETTE(BASIC::W012D, 0x99095FD4);
-               ADD_PALETTE(BASIC::W012P, 0xFF232F91);
-               ADD_PALETTE(BASIC::W013, 0x00000000);
-               ADD_PALETTE(BASIC::W0141, 0xFFDB0000);
-               ADD_PALETTE(BASIC::W0141P, 0xFFA10808);
-               ADD_PALETTE(BASIC::W0141D, 0x99DB0000);
-               ADD_PALETTE(BASIC::W015, 0xFF343432);
-               ADD_PALETTE(BASIC::W021L1, 0xFF000000);
-               ADD_PALETTE(BASIC::W021L1P, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W021L2, 0xFF425790);
-               ADD_PALETTE(BASIC::W021L2P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W021L3, 0xFF425790);
-               ADD_PALETTE(BASIC::W021L3P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W021L4, 0xFFF0F0F0);
-               ADD_PALETTE(BASIC::W031L1, 0xFF000000);
-               ADD_PALETTE(BASIC::W031L1D, 0x7F000000);
-               ADD_PALETTE(BASIC::W031L2, 0xFF000000);
-               ADD_PALETTE(BASIC::W031L2D, 0x7F000000);
-               ADD_PALETTE(BASIC::W032, 0xFF5D6176);
-               ADD_PALETTE(BASIC::W032P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W032D, 0x7FFAFAFA);
-               ADD_PALETTE(BASIC::W041, 0xFFE1DDD1);
-               ADD_PALETTE(BASIC::W051, 0xFF000000);
-               ADD_PALETTE(BASIC::W0611, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W0611P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W0611D, 0x99FAFAFA);
-               ADD_PALETTE(BASIC::W062L1, 0xFF555861);
-               ADD_PALETTE(BASIC::W062L1D, 0x7F555861);
-               ADD_PALETTE(BASIC::W062L2, 0xFF415BFE);
-               ADD_PALETTE(BASIC::W062L2D, 0x7F415BFE);
-               ADD_PALETTE(BASIC::W062L3, 0xFFD8D7D2);
-               ADD_PALETTE(BASIC::W062L3D, 0x4CD8D7D2);
-               ADD_PALETTE(BASIC::W062L4, 0xFF3677C3);
-               ADD_PALETTE(BASIC::W062L4D, 0x4C3677C3);
-               ADD_PALETTE(BASIC::W062L5, 0xFFC7D3E3);
-               ADD_PALETTE(BASIC::W0631, 0xFFEEEEEE);
-               ADD_PALETTE(BASIC::W0632, 0xFF4C5158);
-               ADD_PALETTE(BASIC::W0641, 0xFF6B6D79);
-               ADD_PALETTE(BASIC::W0641P, 0xFF2A39AC);
-               ADD_PALETTE(BASIC::W0641D, 0x7F6B6D79);
-               ADD_PALETTE(BASIC::W0651, 0xFF3A3A3A);
-               ADD_PALETTE(BASIC::W0711, 0xFF525767);
-               ADD_PALETTE(BASIC::W0712, 0xFF4267A9);
-               ADD_PALETTE(BASIC::W0713, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W0714, 0xFF263E5F);
-               ADD_PALETTE(BASIC::W0715, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W0721, 0x00000000);
-               ADD_PALETTE(BASIC::W0811, 0xFF253296);
-               ADD_PALETTE(BASIC::W0812, 0x00000000);
-               ADD_PALETTE(BASIC::W0813, 0xFF595959);
-               ADD_PALETTE(BASIC::W082, 0x00000000);
-               ADD_PALETTE(BASIC::W083, 0x00000000);
-               ADD_PALETTE(BASIC::W084, 0xB2FAFAFA);
-               ADD_PALETTE(BASIC::W084P, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W085, 0x00000000);
-               ADD_PALETTE(BASIC::W091, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W092, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W101, 0xFF4884D6);
-               ADD_PALETTE(BASIC::W111, 0xFFC8CEDB);
-               ADD_PALETTE(BASIC::W112L1, 0xFF8995AE);
-               ADD_PALETTE(BASIC::W112L2, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W1121, 0xFF000000);
-               ADD_PALETTE(BASIC::W1122, 0xFFFAFAFA);
-               ADD_PALETTE(BASIC::W1123, 0x4C000000);
-               ADD_PALETTE(BASIC::W1211, 0x00000000);
-               ADD_PALETTE(BASIC::W1212, 0x00000000);
-               ADD_PALETTE(BASIC::W1221, 0xFF000000);
-               ADD_PALETTE(BASIC::W1222, 0xFF878580);
-               ADD_PALETTE(BASIC::W1223, 0xFFFFFFFF);
-               ADD_PALETTE(BASIC::W131, 0xFF343739);
-               ADD_PALETTE(BASIC::W132, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W141, 0xFF6E6F76);
-               ADD_PALETTE(BASIC::W151, 0x66000000);
-               ADD_PALETTE(BASIC::W152, 0xFF42434B);
-               ADD_PALETTE(BASIC::W153, 0xFF2B3AAF);
-               ADD_PALETTE(BASIC::W154, 0xFF1C1E28);
-               ADD_PALETTE(BASIC::W161, 0xFF001BEA);
+               LoadBlackPalette();
        }
        else
        {
@@ -2202,8 +1922,6 @@ _ResourceManager::LoadPaletteInformation(const Tizen::Base::String& systemTheme)
        }
 }
 
-#undef ADD_PALETTE
-
 result
 _ResourceManager::LoadThemeInformation(String& systemTheme, String& userTheme)
 {
index 1383a3a..f760c53 100644 (file)
@@ -530,7 +530,11 @@ _MultiFingerInfo::SetFingerInfo(unsigned long pointId, const FloatPoint& point,
                delete pFingerList;
        }
 
-       SysTryReturnResult(NID_UI, pFingerInfo, E_INVALID_CONDITION, "[E_INVALID_CONDITION] pFingerInfo is null");
+       if (pFingerInfo == null)
+       {
+               SysLog(NID_UI, "Failed to SetFingerInfo, pFingerInfo is null");
+               return E_INVALID_CONDITION;
+       }
 
        switch (status)
        {
@@ -846,9 +850,9 @@ _TouchManager::SetTouchCanceled(_Control* pControl)
                _TouchManager* pTouchManager = _TouchManager::GetInstance();
                SysTryReturnVoidResult(NID_UI, pTouchManager, E_SYSTEM, "[E_SYSTEM] _TouchManager does not exist.");
 
-               result r = pTouchManager->AddPoint(touchInfo.GetPointId(), currentPoint, _TOUCH_CANCELED);
-               SysTryReturnVoidResult(NID_UI, r == E_SUCCESS, E_SYSTEM, "[E_SYSTEM] System error occurred.");
+               pTouchManager->AddPoint(touchInfo.GetPointId(), currentPoint, _TOUCH_CANCELED);
 
+               SysLog(NID_UI, "SendTouchCancelEvent");
                pEventManager->SendEvent(event);
 
                IListT<_FingerInfo*>* pFingerInfoList = pTouchManager->GetMultiFingerInfoListN();
index 37fd71e..4ca33b7 100644 (file)
@@ -1486,66 +1486,54 @@ _Button::GetContentSizeInternalF(bool horizontalMode, bool verticalMode) const
                }
        }
 
+       FloatDimension textSize(0.0f, 0.0f);
        FloatDimension dimension(0.0f, 0.0f);
        FloatRectangle contentRect(0.0f, 0.0f, 0.0f, 0.0f);
 
        TextObject* pTextObject = __pButtonPresenter->GetTextObject();
-       Font* pFont = __pButtonPresenter->GetFont();
 
-       TextObjectActionType previousActionType = pTextObject->GetAction();
-       TextObjectWrapType previousWrapType = pTextObject->GetWrap();
        FloatRectangle previousRect = pTextObject->GetBoundsF();
 
-       pTextObject->SetBounds(FloatRectangle(0.0f, 0.0f, GetBoundsF().width - __leftMargin * 2, GetBoundsF().height - __topMargin * 2));
-       pTextObject->SetAction(TEXT_OBJECT_ACTION_TYPE_NONE);
-       pTextObject->SetWrap(TEXT_OBJECT_WRAP_TYPE_WORD);
-       pTextObject->SetFont(pFont, 0, pTextObject->GetTextLength());
-       pTextObject->Compose();
+       dimension.width = GetBoundsF().width - __leftMargin * 2;
+       dimension.height = GetBoundsF().height - __topMargin * 2;
 
        _ControlOrientation orientation = GetOrientation();
        if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
        {
                contentRect.width = _ControlManager::GetInstance()->GetScreenSizeF().width;
+               contentRect.height = _ControlManager::GetInstance()->GetScreenSizeF().height;
        }
        else
        {
                contentRect.width = _ControlManager::GetInstance()->GetScreenSizeF().height;
+               contentRect.height = _ControlManager::GetInstance()->GetScreenSizeF().width;
        }
 
        if (horizontalMode == true)
        {
-               dimension = pTextObject->GetTextExtentF(0, pTextObject->GetTextLength());
-
-               if (dimension.width > contentRect.width - GetBoundsF().x - __leftMargin * 2)
-               {
-                       dimension.width = contentRect.width - GetBoundsF().x - __leftMargin * 2;
+               FloatRectangle bounds(0.0f, 0.0f, contentRect.width - GetBoundsF().x - __leftMargin, dimension.height);
+               pTextObject->SetBounds(bounds);
+               pTextObject->SetAction(TEXT_OBJECT_ACTION_TYPE_NONE);
+               pTextObject->Compose();
 
-                       pTextObject->SetBounds(FloatRectangle(previousRect.x, previousRect.y, dimension.width, previousRect.height));
-                       pTextObject->Compose();
+               textSize = pTextObject->GetTextExtentF();
 
-                       dimension.height = pTextObject->GetTotalHeightF();
-               }
+               dimension.width = (textSize.width < bounds.width) ? textSize.width : bounds.width;
        }
 
        if (verticalMode == true)
        {
-               dimension = pTextObject->GetTextExtentF();
-
-               if (dimension.width > GetBoundsF().width - __leftMargin * 2)
-               {
-                       dimension.width = GetBoundsF().width - __leftMargin * 2;
+               FloatRectangle bounds(0.0f, 0.0f, dimension.width, dimension.height);
+               pTextObject->SetBounds(bounds);
+               pTextObject->SetAction(TEXT_OBJECT_ACTION_TYPE_NONE);
+               pTextObject->Compose();
 
-                       pTextObject->SetBounds(FloatRectangle(previousRect.x, previousRect.y, dimension.width, previousRect.height));
-                       pTextObject->Compose();
+               textSize = pTextObject->GetTextExtentF();
 
-                       dimension.height = pTextObject->GetTotalHeightF();
-               }
+               dimension.height = textSize.height;
        }
 
        pTextObject->SetBounds(previousRect);
-       pTextObject->SetAction(previousActionType);
-       pTextObject->SetWrap(previousWrapType);
-       pTextObject->Compose();
 
        dimension.width += __leftMargin * 4 - __leftTouchMargin - __rightTouchMargin;
        dimension.height += __topMargin * 4 - __topTouchMargin - __bottomTouchMargin;
index 60e3f28..d5d7a63 100644 (file)
@@ -484,6 +484,10 @@ _ButtonPresenter::DrawBackground(void)
        }
        else // nobody set bitmap (default bitmap draw) // if (__pButton->IsUserBackgroundBitmap(status))
        {
+               __pBase->SetImageSource(L"");
+
+               __lazyDecode = false;
+
                pCanvas = __pButton->GetCanvasN();
                if (pCanvas == null)
                {
index a052513..adb2f85 100644 (file)
@@ -514,13 +514,15 @@ _ContextMenu::GetItemActionIdAt(int index) const
 {
        int count = __actionId.GetCount();
        int actionId = -1;
+       result r = E_SUCCESS;
 
        if (count <= 0 || index >= count)
        {
                return -1;
        }
 
-       __actionId.GetAt(index, actionId);
+       r = __actionId.GetAt(index, actionId);
+       SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, actionId, r, "[%s] Propagating.", GetErrorMessage(r));
 
        return actionId;
 }
index 040e017..45f5e64 100644 (file)
@@ -229,13 +229,28 @@ _ContextMenuListPresenter::CreateItem(const Base::String& text, int actionId, co
        FloatDimension itemSize(0.0f, 0.0f);
 
        __pFont->GetTextExtent(text, text.GetLength(), textArea);
-       float labelLeftMargin = 0.0f, labelTopMargin = 0.0f;
-       GET_SHAPE_CONFIG(LABEL::LEFT_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, labelLeftMargin);
+       float labelTopMargin = 0.0f;
+       float iconGap = 0.0f;
+       float textGap = 0.0f;
+       float textLabelX = 0.0f;
        GET_SHAPE_CONFIG(LABEL::TOP_MARGIN,  _CONTROL_ORIENTATION_PORTRAIT, labelTopMargin);
-       textArea.width  += 2.0f * labelLeftMargin;
+       GET_SHAPE_CONFIG(CONTEXTMENU::LIST_TEXT_GAP, _CONTROL_ORIENTATION_PORTRAIT, textGap);
+       iconGap = __itemGap;
+
+       if (itemType == CONTEXT_MENU_ITEM_DRAWING_TYPE_BITMAP)
+       {
+               textArea.width  +=  2.0 * iconGap;
+               itemSize.width =  textArea.width + bitmapWidth + textGap;
+               textLabelX = iconGap + bitmapWidth;
+       }
+       else
+       {
+               textArea.width  += 2.0f * textGap;
+               itemSize.width = textArea.width;
+       }
+
        textArea.height += 2.0f * labelTopMargin;
        itemSize.height = __itemHeight + (__dividerHeight * 2.0f);
-       itemSize.width =  __leftMargin + textArea.width + __rightMargin + bitmapWidth;
 
        itemSize.width = itemSize.width < __itemMinWidth ? __itemMinWidth : itemSize.width;
 
@@ -248,7 +263,6 @@ _ContextMenuListPresenter::CreateItem(const Base::String& text, int actionId, co
        pItem->SetSize(itemSize);
 
        // add text label
-       float textLabelX = __leftMargin + bitmapWidth;
 
        pLabel = _Label::CreateLabelN();
        pLabel->SetText(text);
@@ -259,7 +273,7 @@ _ContextMenuListPresenter::CreateItem(const Base::String& text, int actionId, co
        itemSize = pItem->GetSize();
        pLabel->SetBounds(FloatRectangle(textLabelX, (itemSize.height - textArea.height) / 2.0f, textArea.width, textArea.height));
        pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
-       pLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
+       pLabel->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
        pLabel->SetTextConfig(__itemFontSize, LABEL_TEXT_STYLE_NORMAL);
 
        pLabel->SetTouchPressThreshold(TOUCH_PRESS_THRESHOLD_INSENSITIVE);
index be5b574..e4f2166 100644 (file)
@@ -144,7 +144,10 @@ _ContextMenuModel::ResetAllItem(void)
        for(int index = 0; index < count; index++)
        {
                pItem = static_cast <_ContextMenuItem*>(__items.GetAt(index));
-               pItem->SetAndInvalidate(false);
+               if (pItem)
+               {
+                       pItem->SetAndInvalidate(false);
+               }
        }
 }
 
index db87e93..ed29811 100644 (file)
@@ -65,6 +65,7 @@ _DateTimeBarPresenter::_DateTimeBarPresenter(_DateTimeBar* pDateTimeBar)
        , __isFocused(false)
        , __focusedIndex(-1)
        , __focusBounds(FloatRectangle())
+       , __isFlickCanceled(false)
 {
 }
 
@@ -1173,6 +1174,7 @@ _DateTimeBarPresenter::OnTouchPressed(const _Control& source, const _TouchInfo&
        if (__isFlickInProgress)
        {
                ResetFlickAnimationTimer();
+               __isFlickCanceled = true;
        }
 
        __touchMoveHandled = false;
@@ -1221,7 +1223,7 @@ _DateTimeBarPresenter::OnTouchReleased(const _Control& source, const _TouchInfo&
        int index = GetItemIndexFromPosition(touchinfo.GetCurrentPosition());
        bool isEventFire = true;
 
-       if (index != -1 && __isTouchMoved == false && __isFlickInProgress == false)
+       if (index != -1 && !__isTouchMoved && !__isFlickInProgress && !__isFlickCanceled)
        {
                PLAY_FEEDBACK(_RESOURCE_FEEDBACK_PATTERN_TAP, __pDateTimeBar);
                SetItemStatus(index, DATETIMEBAR_ITEM_STATUS_SELECTED);
@@ -1230,6 +1232,7 @@ _DateTimeBarPresenter::OnTouchReleased(const _Control& source, const _TouchInfo&
        else
        {
                isEventFire = false;
+               __isFlickCanceled = false;
        }
 
        __isTouchMoved = false;
@@ -1599,6 +1602,7 @@ result
 _DateTimeBarPresenter::StartFlickAnimationTimer(void)
 {
        result r = E_SUCCESS;
+       __isFlickInProgress = true;
 
        if (__pFlickAnimationTimer == null)
        {
index 85d3fa1..b865dba 100755 (executable)
@@ -440,13 +440,14 @@ _Edit::Initialize(int editStyle, InputStyle inputStyle, int limitLength, GroupSt
 
        InitializeColorInformation();
 
+       __inputStyle = inputStyle;
+
        r = _pEditPresenter->Initialize(*this);
        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Failed to construct", GetErrorMessage(r));
 
        r = _pEditPresenter->SetTextLimitLength(limitLength);
        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Failed to set limit length", GetErrorMessage(r));
 
-       __inputStyle = inputStyle;
        if (inputStyle == INPUT_STYLE_OVERLAY)
        {
                if (!(editStyle & EDIT_STYLE_FLEXIBLE) && !(editStyle & EDIT_STYLE_VIEWER))
@@ -2152,7 +2153,6 @@ _Edit::OnAncestorEnableStateChanged(const _Control& control)
        if (!enableState)
        {
                _pEditPresenter->ChangeToUnbindState();
-               __internalFocus = false;
        }
 
        Invalidate();
@@ -2169,7 +2169,6 @@ _Edit::OnAncestorVisibleStateChanged(const _Control& control)
        if (!visibleState)
        {
                _pEditPresenter->ChangeToUnbindState();
-               __internalFocus = false;
        }
 
        Invalidate();
@@ -3167,7 +3166,7 @@ _Edit::SetPropertyViewModeEnabled(const Variant& enabled)
 Variant
 _Edit::GetPropertyViewModeEnabled(void) const
 {
-       return Variant(_pEditPresenter->IsViewModeEnabled());
+       return Variant(_pEditPresenter->IsViewModeEnabled(false));
 }
 
 result
index 90e412a..b0e46f9 100644 (file)
@@ -936,6 +936,23 @@ _EditCopyPasteHandler::CheckReverseStatus(void)
        _ControlOrientation orientation = pEdit->GetOrientation();
        FloatRectangle rect = GetBoundsF();
        FloatRectangle cursorAbsBounds = __pCopyPasteManager->GetCursorBoundsF(true);
+       float clipboardHeight = 0.0f;
+       FloatRectangle keypadBounds(0.0f, 0.0f, 0.0f, 0.0f);
+       float adjustHeight = 0.0f;
+
+       _EditPresenter* pEditPresenter = pEdit->GetPresenter();
+       SysTryReturnVoidResult(NID_UI_CTRL, pEditPresenter, E_INVALID_STATE, "pEditPresenter is null.\n");
+
+       clipboardHeight = pEditPresenter->GetClipboardHeight();
+       pEditPresenter->GetKeypadBoundsEx(keypadBounds);
+       if (clipboardHeight > keypadBounds.height)
+       {
+               adjustHeight = clipboardHeight;
+       }
+       else
+       {
+               adjustHeight = keypadBounds.height;
+       }
 
        if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
        {
@@ -946,6 +963,10 @@ _EditCopyPasteHandler::CheckReverseStatus(void)
                screenSize.width = pControlManager->GetScreenSizeF().height;
                screenSize.height = pControlManager->GetScreenSizeF().width;
        }
+       if (adjustHeight > 0.0f)
+       {
+               screenSize.height -= adjustHeight;
+       }
 
        if (__singleHandler)
        {
@@ -1187,7 +1208,6 @@ bool
 _EditCopyPasteHandler::OnTouchMoved(const _Control& source, const _TouchInfo& touchinfo)
 {
        int cursorPos = -1;
-       int previousCursorPos = -1;
        FloatRectangle cursorRect(0.0f, 0.0f, 0.0f, 0.0f);
        FloatRectangle absCursorRect(0.0f, 0.0f, 0.0f, 0.0f);
        FloatRectangle rect = GetBoundsF();
@@ -1195,7 +1215,6 @@ _EditCopyPasteHandler::OnTouchMoved(const _Control& source, const _TouchInfo& to
        FloatPoint touchPoint(0.0f, 0.0f);
        FloatPoint checkPoint(0.0f, 0.0f);
        __isTouchMoving = true;
-       bool cursorChange = false;
 
        _Edit* pEdit = __pCopyPasteManager->GetEdit();
        SysTryReturn(NID_UI_CTRL, pEdit, false, E_INVALID_STATE, "[E_INVALID_STATE] pEdit is null.\n");
@@ -1218,23 +1237,11 @@ _EditCopyPasteHandler::OnTouchMoved(const _Control& source, const _TouchInfo& to
        absTextObjectBounds.y = absEditBounds.y + textObjectBounds.y;
        absTextObjectBounds.width = textObjectBounds.width;
        absTextObjectBounds.height  = textObjectBounds.height;
-       bool  needToFixYPosition= false;
-
        if (__touchPressedPoint.x == point.x && __touchPressedPoint.y == point.y)
        {
                return true;
        }
 
-       if (!__singleHandler)
-       {
-               previousCursorPos = __pCopyPasteManager->GetCursorPosition();
-       }
-
-       FloatPoint absoluteTouchMovedPoint = FloatPoint(GetBoundsF().x + point.x, GetBoundsF().y + point.y);
-       if (__handlerDirection == HANDLER_DIRECTION_REVERSE_2 || __handlerDirection == HANDLER_DIRECTION_REVERSE_3)
-       {
-               absoluteTouchMovedPoint.y += (GetBoundsF().height + absCursorRect.height);
-       }
        if (__rowIndex == -1 && __columnIndex == -1)
        {
                pEditPresenter->CalculateCursorBounds(pEditPresenter->GetTextBoundsF(), cursorRect,__handlerCursorPos);
@@ -1246,25 +1253,97 @@ _EditCopyPasteHandler::OnTouchMoved(const _Control& source, const _TouchInfo& to
                pEditPresenter->CalculateAbsoluteCursorBounds(__rowIndex, __columnIndex, absCursorRect);
        }
 
-       if (absTextObjectBounds.height >= (totalHeight - firstDisplayY))
+       FloatPoint absoluteTouchMovedPoint = FloatPoint(GetBoundsF().x + point.x, GetBoundsF().y + point.y);
+       //Calculate handler's position
+       if (__singleHandler)
        {
-               absTextObjectBounds.height = totalHeight - firstDisplayY;
-               absTextObjectBounds.y += absCursorRect.height/2.0f;
-               if (absTextObjectBounds.y > absoluteTouchMovedPoint.y || (absTextObjectBounds.y + absTextObjectBounds.height) < absoluteTouchMovedPoint.y)
+               touchPoint.x = absoluteTouchMovedPoint.x;
+               if (__handlerDirection == HANDLER_DIRECTION_NONE)
                {
-                       needToFixYPosition = true;
+                       touchPoint.y = absoluteTouchMovedPoint.y - GetBoundsF().height/2.0f;
+               }
+               else // HANDLER_DIRECTION_REVERSE_2
+               {
+                       touchPoint.y = absoluteTouchMovedPoint.y + GetBoundsF().height/2.0f;
                }
        }
        else
        {
-               absTextObjectBounds.y += absCursorRect.height/2.0f;
-               if (firstDisplayY == 0.0f && absTextObjectBounds.y > absoluteTouchMovedPoint.y)
+               if (__leftHandler)
                {
-                       needToFixYPosition = true;
+                       if (__handlerDirection == HANDLER_DIRECTION_NONE)
+                       {
+                               touchPoint.x = absoluteTouchMovedPoint.x + GetBoundsF().width/2.0f;
+                               touchPoint.y = absoluteTouchMovedPoint.y - GetBoundsF().height/2.0f;
+                       }
+                       else if (__handlerDirection == HANDLER_DIRECTION_REVERSE_1)
+                       {
+                               touchPoint.x = absoluteTouchMovedPoint.x - GetBoundsF().width/2.0f;
+                               touchPoint.y = absoluteTouchMovedPoint.y - GetBoundsF().height/2.0f;
+                       }
+                       else if (__handlerDirection == HANDLER_DIRECTION_REVERSE_2)
+                       {
+                               touchPoint.x = absoluteTouchMovedPoint.x + GetBoundsF().width/2.0f;
+                               touchPoint.y = absoluteTouchMovedPoint.y + GetBoundsF().height/2.0f;                    
+                       }
+                       else if (__handlerDirection == HANDLER_DIRECTION_REVERSE_3)
+                       {
+                               touchPoint.x = absoluteTouchMovedPoint.x - GetBoundsF().width/2.0f;
+                               touchPoint.y = absoluteTouchMovedPoint.y + GetBoundsF().height/2.0f;
+                       }
                }
-               else if ((totalHeight - firstDisplayY) == absTextObjectBounds.height && (absTextObjectBounds.y + absTextObjectBounds.height) < absoluteTouchMovedPoint.y)
+               else
                {
-                       needToFixYPosition = true;
+                       if (__handlerDirection == HANDLER_DIRECTION_NONE)
+                       {
+                               touchPoint.x = absoluteTouchMovedPoint.x - GetBoundsF().width/2.0f;
+                               touchPoint.y = absoluteTouchMovedPoint.y - GetBoundsF().height/2.0f;
+                       }
+                       else if (__handlerDirection == HANDLER_DIRECTION_REVERSE_1)
+                       {
+                               touchPoint.x = absoluteTouchMovedPoint.x + GetBoundsF().width/2.0f;
+                               touchPoint.y = absoluteTouchMovedPoint.y - GetBoundsF().height/2.0f;
+                       }
+                       else if (__handlerDirection == HANDLER_DIRECTION_REVERSE_2)
+                       {
+                               touchPoint.x = absoluteTouchMovedPoint.x - GetBoundsF().width/2.0f;
+                               touchPoint.y = absoluteTouchMovedPoint.y + GetBoundsF().height/2.0f;
+                       }
+                       else if (__handlerDirection == HANDLER_DIRECTION_REVERSE_3)
+                       {
+                               touchPoint.x = absoluteTouchMovedPoint.x + GetBoundsF().width/2.0f;
+                               touchPoint.y = absoluteTouchMovedPoint.y + GetBoundsF().height/2.0f;
+                       }
+               }
+       }
+       if (totalHeight - firstDisplayY < absTextObjectBounds.height)
+       {
+               absTextObjectBounds.height = totalHeight - firstDisplayY - 1.0f; // check TextObject
+       }
+
+       if (totalLine != 1) //single line edit doesn't need to adjust horizontal value.
+       {
+               if (absTextObjectBounds.x > touchPoint.x)
+               {
+                       touchPoint.x = absTextObjectBounds.x;
+               }
+               if (absTextObjectBounds.x + absTextObjectBounds.width <= touchPoint.x) // check FloatRectangle Contains?
+               {
+                       touchPoint.x = absTextObjectBounds.x + absTextObjectBounds.width - 1.0f;
+               }
+       }
+       if (absTextObjectBounds.y > touchPoint.y)
+       {
+               if (totalLine == 1 || firstDisplayY == 0.0f) // whether need to scroll the text or not
+               {
+                       touchPoint.y = absTextObjectBounds.y; //not need to scroll the text.
+               }
+       }
+       if (absTextObjectBounds.y + absTextObjectBounds.height < touchPoint.y)
+       {
+               if (totalLine == 1 || (totalHeight - firstDisplayY < textObjectBounds.height) || curCursorLine == (totalLine - 1)) // || pTextObject->IsDisplayedLastLine()) // whether need to scroll the text or not
+               {
+                       touchPoint.y = absTextObjectBounds.y + absTextObjectBounds.height - 1.0f; // check TextObject
                }
        }
 
@@ -1282,271 +1361,108 @@ _EditCopyPasteHandler::OnTouchMoved(const _Control& source, const _TouchInfo& to
 
                if (curCursorLine == nextHandlerLine)
                {
-                       if (__leftHandler && absoluteTouchMovedPoint.y > absCursorRect.y)
+                       if (__leftHandler && absoluteTouchMovedPoint.y >= absCursorRect.y + absCursorRect.height)
                        {
-                               needToFixYPosition = true;
+                               touchPoint.y = absCursorRect.y + absCursorRect.height/2.0f;
                        }
-                       else if (!__leftHandler && absoluteTouchMovedPoint.y < absCursorRect.y)
+                       else if (!__leftHandler && absoluteTouchMovedPoint.y <= absCursorRect.y + absCursorRect.height)
                        {
-                               needToFixYPosition = true;
+                               touchPoint.y = absCursorRect.y + absCursorRect.height/2.0f;
                        }
                }
        }
 
-       touchPoint.x = cursorRect.x + (point.x - __touchPressedPoint.x);
-       if (totalLine == 1 || needToFixYPosition)
-       {
-               touchPoint.y = cursorRect.y + cursorRect.height/2;
-       }
-       else
+       touchPoint.x = touchPoint.x - absEditBounds.x - textObjectBounds.x;
+       touchPoint.y = touchPoint.y - absEditBounds.y - textObjectBounds.y;
+
+       if (Math::Abs(touchPoint.y) < 1)
        {
-               touchPoint.y = cursorRect.y + cursorRect.height + (point.y - __touchPressedPoint.y);
+               touchPoint.y = 0.0f;
        }
+
        int rowIndex = -1;
        int columnIndex = -1;
-       bool cursorPosFromTouch = false;
-       cursorPos = pEditPresenter->GetCursorPositionAt(touchPoint, rowIndex, columnIndex, true);
+       cursorPos = pTextObject->GetTextIndexFromPosition(touchPoint.x, touchPoint.y, rowIndex, columnIndex, true);
 
-       if (cursorPos != -1 && __handlerCursorPos != cursorPos)
+       if (__handlerCursorPos == cursorPos)
        {
-               cursorPosFromTouch = true;
-               FloatRectangle cursorBounds(0.0f, 0.0f, 0.0f, 0.0f);
-               if (__rowIndex == -1 && __columnIndex == -1)
-               {
-                       pEdit->CalculateAbsoluteCursorBounds(cursorPos, cursorBounds);
-               }
-               else
-               {
-                       pEditPresenter->CalculateAbsoluteCursorBounds(__rowIndex, __columnIndex, cursorBounds);
-               }
-               cursorChange = true;
-               checkPoint.x = cursorBounds.x;
-
-               if (absoluteTouchMovedPoint.y -__absoluteTouchPressedPoint.y >= 0.0f || totalLine == 1)
-               {
-                       checkPoint.y = cursorBounds.y + cursorBounds.height;
-               }
-               else
-               {
-                       checkPoint.y = cursorBounds.y;
-               }
+               return true;
        }
 
-       if (cursorPos == -1 || (cursorChange && !__pCopyPasteManager->CheckHandleBounds(FloatPoint(checkPoint.x, checkPoint.y))))
+       if (cursorPos == -1)
        {
-               if (cursorPos != -1)
+               //To get cursorPos
+               if (totalLine != 1)
                {
-                       if (totalLine == 1)
-                       {
-                               pTextObject->SetFirstDisplayLineIndexFromTextIndex(cursorPos);
-                       }
-                       else
-                       {
-                               if (absoluteTouchMovedPoint.y -__absoluteTouchPressedPoint.y >= 0.0f)
-                               {
-                                       if (curCursorLine < totalLine - 1)
-                                       {
-                                               if (!pTextObject->IsDisplayedLastLine())
-                                               {
-                                                       int line = pTextObject->GetFirstDisplayLineIndex();
-                                                       pTextObject->SetFirstDisplayLineIndex(line+1);
-                                               }
-                                               else
-                                               {
-                                                       if (__singleHandler || __pCopyPasteManager->CheckHandlePosition(__leftHandler, cursorPos))
-                                                       {
-                                                               __pCopyPasteManager->SetCursorPosition(cursorPos);
-                                                               pEditPresenter->ScrollPanelToCursorPosition(true);
-                                                       }
-                                                       else
-                                                       {
-                                                               return true;
-                                                       }
-                                               }
-                                       }
-                               }
-                               else
-                               {
-                                       if (curCursorLine !=0)
-                                       {
-                                               if (!pTextObject->IsDisplayedFirstLine())
-                                               {
-                                                       int line = pTextObject->GetFirstDisplayLineIndex();
-                                                       pTextObject->SetFirstDisplayLineIndex(line-1);
-                                               }
-                                               else
-                                               {
-                                                       __pCopyPasteManager->SetCursorPosition(cursorPos);
-                                                       pEditPresenter->ScrollPanelToCursorPosition(true);
-                                               }
-                                       }
-                               }
-                       }
-               }
-               else
-               {
-                       if (totalLine == 1)
+                       if (absoluteTouchMovedPoint.y > (absCursorRect.y + absCursorRect.height))
                        {
-                               if (point.x - __touchPressedPoint.x == 0.0f)
-                               {
-                                       return true;
-
-                               }
-                               else if (point.x - __touchPressedPoint.x > 0.0f)
-                               {
-                                       if (__handlerCursorPos == pEditPresenter->GetTextLength())
-                                       {
-                                               cursorPos = __handlerCursorPos;
-                                       }
-                                       else
-                                       {
-                                               cursorPos = __handlerCursorPos + 1;
-
-                                               if (!__singleHandler && __leftHandler && (cursorPos == pEditPresenter->GetTextLength()))
-                                               {
-                                                       cursorPos = __handlerCursorPos;
-                                               }
-                                       }
-                               }
-                               else
+                               if (curCursorLine < totalLine - 1)
                                {
-                                       if (__handlerCursorPos != 0)
+                                       int offset = __handlerCursorPos - pTextObject->GetFirstTextIndexAt(curCursorLine);
+                                       int firstTextIndex = pTextObject->GetFirstTextIndexAt(curCursorLine+1);
+                                       cursorPos = offset + firstTextIndex;
+                                       int textLength = pTextObject->GetTextLengthAt(curCursorLine+1);
+                                       if (offset > textLength)
                                        {
-                                               cursorPos = __handlerCursorPos - 1;
-
-                                               if (!__singleHandler && __leftHandler)
-                                               {
-                                                       pTextObject->SetFirstDisplayLineIndexFromTextIndex(cursorPos);
-                                               }
+                                               cursorPos = firstTextIndex+textLength;
                                        }
                                }
-                               if (point.y < 0.0f || (point.y > GetBoundsF().height))
-                               {
-                                       return true;
-                               }
                        }
                        else
                        {
-                               if (absoluteTouchMovedPoint.y -__absoluteTouchPressedPoint.y >= 0.0f)
+                               if (curCursorLine !=0)
                                {
-                                       if (curCursorLine < totalLine - 1)
+                                       if (__rowIndex == 0)
                                        {
-                                               int offset = __handlerCursorPos - pTextObject->GetFirstTextIndexAt(curCursorLine);
-                                               int firstTextIndex = pTextObject->GetFirstTextIndexAt(curCursorLine+1);
-                                               cursorPos = offset + firstTextIndex;
-                                               int textLength = pTextObject->GetTextLengthAt(curCursorLine+1);
-                                               if (offset > textLength)
-                                               {
-                                                       cursorPos = firstTextIndex+textLength;
-                                               }
-                                               if (!pTextObject->IsDisplayedLastLine())
-                                               {
-                                                       int line = pTextObject->GetFirstDisplayLineIndex();
-                                                       pTextObject->SetFirstDisplayLineIndex(line+1);
-                                                       __pCopyPasteManager->SetCursorPosition(cursorPos);
-                                                       pEditPresenter->ScrollPanelToCursorPosition(true);
-                                               }
-                                               else
-                                               {
-                                                       if (__singleHandler || __pCopyPasteManager->CheckHandlePosition(__leftHandler, cursorPos))
-                                                       {
-                                                               __pCopyPasteManager->SetCursorPosition(cursorPos);
-                                                               pEditPresenter->ScrollPanelToCursorPosition(true);
-                                                       }
-                                                       else
-                                                       {
-                                                               return true;
-                                                       }
-                                               }
+                                               return true;
                                        }
-                               }
-                               else
-                               {
-                                       if (curCursorLine !=0)
+                                       int offset = __handlerCursorPos - pTextObject->GetFirstTextIndexAt(curCursorLine);
+                                       int firstTextIndex = pTextObject->GetFirstTextIndexAt(curCursorLine-1);
+                                       cursorPos = offset + firstTextIndex;
+                                       int textLength = pTextObject->GetTextLengthAt(curCursorLine-1);
+                                       if (offset > textLength)
                                        {
-                                               if (__rowIndex == 0)
-                                               {
-                                                       return true;
-                                               }
-                                               int offset = __handlerCursorPos - pTextObject->GetFirstTextIndexAt(curCursorLine);
-                                               int firstTextIndex = pTextObject->GetFirstTextIndexAt(curCursorLine-1);
-                                               cursorPos = offset + firstTextIndex;
-                                               int textLength = pTextObject->GetTextLengthAt(curCursorLine-1);
-                                               if (offset > textLength)
-                                               {
-                                                       cursorPos = firstTextIndex+textLength;
-                                               }
-                                               if (!pTextObject->IsDisplayedFirstLine())
-                                               {
-                                                       int line = pTextObject->GetFirstDisplayLineIndex();
-                                                       pTextObject->SetFirstDisplayLineIndex(line-1);
-                                                       __pCopyPasteManager->SetCursorPosition(cursorPos);
-                                                       pEditPresenter->ScrollPanelToCursorPosition(true);
-                                               }
-                                               else
-                                               {
-                                                       __pCopyPasteManager->SetCursorPosition(cursorPos);
-                                                       pEditPresenter->ScrollPanelToCursorPosition(true);
-                                               }
+                                               cursorPos = firstTextIndex+textLength;
                                        }
                                }
                        }
                }
+               if (cursorPos == -1)
+               {
+                       return true;
+               }
        }
 
-       if (!__singleHandler && !__pCopyPasteManager->CheckHandlePosition(__leftHandler, cursorPos))
+       if (__handlerCursorPos == cursorPos)
        {
-               __pCopyPasteManager->SetCursorPosition(previousCursorPos);
-               pEditPresenter->SetCursorChangedFlag(!__leftHandler);
-
-               if ((__pCopyPasteManager->GetEdit()->GetEditStyle() & EDIT_STYLE_SINGLE_LINE))
-               {
-                       _EditCopyPasteManager::HandlerType nextHandlerType = _EditCopyPasteManager::HANDLER_TYPE_MAX;
-                       if (__leftHandler)
-                       {
-                               nextHandlerType = _EditCopyPasteManager::HANDLER_TYPE_RIGHT;
-                       }
-                       else
-                       {
-                               nextHandlerType = _EditCopyPasteManager::HANDLER_TYPE_LEFT;
-                       }
-                       int nextHandler = __pCopyPasteManager->GetHandlerCursorPosition(nextHandlerType);
-                       if (Math::Abs(nextHandler - __handlerCursorPos) <= 1)
-                       {
-                               pTextObject->SetFirstDisplayLineIndexFromTextIndex(nextHandler);
-                       }
-               }
                return true;
        }
-
-       if (cursorPos == -1 || __handlerCursorPos == cursorPos)
+       if (!__singleHandler)
        {
-               if (!__singleHandler)
-               {
-                       __pCopyPasteManager->SetCursorPosition(previousCursorPos);
-                       pEditPresenter->SetCursorChangedFlag(!__leftHandler);
-               }
-               if (!__singleHandler && (__pCopyPasteManager->GetEdit()->GetEditStyle() & EDIT_STYLE_SINGLE_LINE))
+               if (!__pCopyPasteManager->CheckHandlePosition(__leftHandler, cursorPos))
                {
-                       _EditCopyPasteManager::HandlerType nextHandlerType = _EditCopyPasteManager::HANDLER_TYPE_MAX;
-                       if (__leftHandler)
-                       {
-                               nextHandlerType = _EditCopyPasteManager::HANDLER_TYPE_RIGHT;
-                       }
-                       else
-                       {
-                               nextHandlerType = _EditCopyPasteManager::HANDLER_TYPE_LEFT;
-                       }
-                       int nextHandler = __pCopyPasteManager->GetHandlerCursorPosition(nextHandlerType);
-                       if (Math::Abs(nextHandler - __handlerCursorPos) <= 1)
+                       if (totalLine == 1)
                        {
-                               pTextObject->SetFirstDisplayLineIndexFromTextIndex(nextHandler);
+                               _EditCopyPasteManager::HandlerType nextHandlerType = _EditCopyPasteManager::HANDLER_TYPE_MAX;
+                               if (__leftHandler)
+                               {
+                                       nextHandlerType = _EditCopyPasteManager::HANDLER_TYPE_RIGHT;
+                               }
+                               else
+                               {
+                                       nextHandlerType = _EditCopyPasteManager::HANDLER_TYPE_LEFT;
+                               }
+                               int nextHandler = __pCopyPasteManager->GetHandlerCursorPosition(nextHandlerType);
+                               if (Math::Abs(nextHandler - __handlerCursorPos) <= 1)
+                               {
+                                       pTextObject->SetFirstDisplayLineIndexFromTextIndex(nextHandler);
+                               }
                        }
+                       return true;
                }
-               return true;
        }
 
-       if (cursorPosFromTouch && (rowIndex != -1 && columnIndex != -1))
+       if (rowIndex > -1 && columnIndex > -1)
        {
                __rowIndex = rowIndex;
                __columnIndex =  columnIndex;
@@ -1655,7 +1571,7 @@ _EditCopyPasteHandler::OnBoundsChanging(const FloatRectangle& bounds)
                _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
                SysTryReturn(NID_UI, pEcoreEvas, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
 
-               pEcoreEvas->SetWindowBounds(*GetRootWindow(), _CoordinateSystemUtils::ConvertToInteger(bounds));
+               pEcoreEvas->SetWindowBounds(*GetRootWindow(), bounds);
                result r = GetLastResult();
                SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
        }
@@ -1689,7 +1605,7 @@ _EditCopyPasteHandler::SetWindowBounds(const FloatRectangle& bounds)
        _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
        SysTryReturn(NID_UI, pEcoreEvas, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
 
-       pEcoreEvas->SetWindowBounds(*GetRootWindow(), _CoordinateSystemUtils::ConvertToInteger(bounds));
+       pEcoreEvas->SetWindowBounds(*GetRootWindow(), bounds);
        result r = GetLastResult();
        SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
 
@@ -1893,7 +1809,7 @@ _EditCopyPasteManager::CreateCopyPastePopup(void)
                return;
        }
 
-       if (__pEdit->GetTextLength() == 0 && (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER))
+       if (__pEdit->GetTextLength() == 0 && (__pEdit->IsViewModeEnabled()))
        {
                return;
        }
@@ -1928,12 +1844,17 @@ _EditCopyPasteManager::CreateCopyPastePopup(void)
        {
                editShowAreaAbsRect = editAbsRect;
                FloatRectangle textObjectBounds = __pEditPresenter->GetTextBoundsF();
-               editShowAreaAbsRect.x += textObjectBounds.x;
-               editShowAreaAbsRect.y += textObjectBounds.y;
-               editShowAreaAbsRect.width = textObjectBounds.width;
-               if (!(__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE))
+
+               if (!(__pEdit->GetEditStyle() & EDIT_STYLE_TOKEN))
                {
-                       editShowAreaAbsRect.height = textObjectBounds.height;
+                       editShowAreaAbsRect.x += textObjectBounds.x;
+                       editShowAreaAbsRect.y += textObjectBounds.y;
+                       editShowAreaAbsRect.width = textObjectBounds.width;
+
+                       if (!(__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE))
+                       {
+                               editShowAreaAbsRect.height = textObjectBounds.height;
+                       }
                }
 
                if (commandButtonExist)
@@ -2237,8 +2158,8 @@ _EditCopyPasteManager::CreateHandle(void)
                __pEdit->CalculateAbsoluteCursorBounds(start, startRect);
                __pEdit->CalculateAbsoluteCursorBounds(end, endRect);
 
-               Point leftHandler(startRect.x, startRect.y + startRect.height);
-               Point rightHandler(endRect.x, endRect.y + endRect.height);
+               FloatPoint leftHandler(startRect.x, startRect.y + startRect.height);
+               FloatPoint rightHandler(endRect.x, endRect.y + endRect.height);
 
                __pHandle[HANDLER_TYPE_LEFT] = _EditCopyPasteHandler::CreateInstanceN(leftHandler, start, this, false, true);
                __pHandle[HANDLER_TYPE_RIGHT] = _EditCopyPasteHandler::CreateInstanceN(rightHandler, end, this, false, false);
@@ -2247,7 +2168,7 @@ _EditCopyPasteManager::CreateHandle(void)
        {
                FloatRectangle centerRect;
                __pEdit->CalculateAbsoluteCursorBounds(__pEdit->GetCursorPosition(), centerRect);
-               Point centerHandler(centerRect.x, centerRect.y + centerRect.height);
+               FloatPoint centerHandler(centerRect.x, centerRect.y + centerRect.height);
 
                __pHandle[HANDLER_TYPE_CENTER] = _EditCopyPasteHandler::CreateInstanceN(centerHandler, __pEdit->GetCursorPosition(), this, true, true);
 #if EDIT_COPY_PASTE_MAGNIFIER
@@ -2264,11 +2185,11 @@ _EditCopyPasteManager::Show(void)
                if (__pEdit->GetCursorPosition() != __pHandle[HANDLER_TYPE_CENTER]->GetHandlerCursorPosition())
                {
                        __pHandle[HANDLER_TYPE_CENTER]->SetHandlerCursorPosition(__pEdit->GetCursorPosition());
-//                     __pHandle[HANDLER_TYPE_CENTER]->MoveCopyPasteMagnifier();
                }
                __pHandle[HANDLER_TYPE_CENTER]->AdjustBounds();
                __pHandle[HANDLER_TYPE_CENTER]->CheckReverseStatus();
-               __pEdit->Invalidate();
+               __pHandle[HANDLER_TYPE_CENTER]->Invalidate();
+               __pEditPresenter->DrawText();
        }
 
        if (__pHandle[HANDLER_TYPE_LEFT] && __pHandle[HANDLER_TYPE_RIGHT])
@@ -2278,7 +2199,7 @@ _EditCopyPasteManager::Show(void)
                __pHandle[HANDLER_TYPE_RIGHT]->CheckReverseStatus();
                __pHandle[HANDLER_TYPE_LEFT]->Invalidate();
                __pHandle[HANDLER_TYPE_RIGHT]->Invalidate();
-               __pEdit->Invalidate();
+               __pEditPresenter->DrawText();
        }
 
        if (__pCopyPastePopup)
@@ -2306,13 +2227,17 @@ _EditCopyPasteManager::CheckHandleBounds(const FloatPoint& point)
        FloatRectangle panelAbsoulteBounds(0.0f, 0.0f, 0.0f, 0.0f);
        FloatRectangle editAbsBounds = __pEdit->GetAbsoluteBoundsF();
        FloatRectangle textObjectBounds = __pEditPresenter->GetTextBoundsF();
-       editAbsBounds.x += textObjectBounds.x;
-       editAbsBounds.y += textObjectBounds.y;
-       editAbsBounds.width = textObjectBounds.width;
 
-       if (!(__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE))
+       if (!(__pEdit->GetEditStyle() & EDIT_STYLE_TOKEN))
        {
-               editAbsBounds.height = textObjectBounds.height;
+               editAbsBounds.x += textObjectBounds.x;
+               editAbsBounds.y += textObjectBounds.y;
+               editAbsBounds.width = textObjectBounds.width;
+
+               if (!(__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE))
+               {
+                       editAbsBounds.height = textObjectBounds.height;
+               }
        }
 
        _Toolbar* pCommandButton = __pEditPresenter->GetKeypadCommandButton();
index 8a07e32..6a62b2c 100644 (file)
@@ -1017,6 +1017,10 @@ _EditDatePresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo
                                {
                                        __focusId = DATETIME_ID_YEAR;
                                }
+                               else
+                               {
+                                       return false;
+                               }
                        }
                        else if (__focusId == DATETIME_ID_MONTH)
                        {
@@ -1028,6 +1032,10 @@ _EditDatePresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo
                                {
                                        __focusId = DATETIME_ID_DAY;
                                }
+                               else
+                               {
+                                       return false;
+                               }
                        }
                        else if (__focusId == DATETIME_ID_YEAR)
                        {
@@ -1039,6 +1047,10 @@ _EditDatePresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo
                                {
                                        __focusId = DATETIME_ID_DAY;
                                }
+                               else
+                               {
+                                       return false;
+                               }
                        }
                        __pEditDate->Invalidate();
                        break;
@@ -1056,6 +1068,10 @@ _EditDatePresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo
                                {
                                        __focusId = DATETIME_ID_MONTH;
                                }
+                               else
+                               {
+                                       return false;
+                               }
                        }
                        else if (__focusId == DATETIME_ID_MONTH)
                        {
@@ -1067,6 +1083,10 @@ _EditDatePresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo
                                {
                                        __focusId = DATETIME_ID_DAY;
                                }
+                               else
+                               {
+                                       return false;
+                               }
                        }
                        else if (__focusId == DATETIME_ID_YEAR)
                        {
@@ -1078,6 +1098,10 @@ _EditDatePresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo
                                {
                                        __focusId = DATETIME_ID_DAY;
                                }
+                               else
+                               {
+                                       return false;
+                               }
                        }
                        __pEditDate->Invalidate();
                        break;
index 42d60b1..d654fc0 100755 (executable)
@@ -108,6 +108,7 @@ _EditFooterVisibleStatus _EditPresenter::__initialFooterVisibleStatus = EDIT_FOO
 bool _EditPresenter::__footerVisibleChanged = false;
 unsigned int _EditPresenter::__latestBoundedContext = null;
 const float _EditPresenter::TOUCH_PRESS_THRESHOLD_IN_CLEAR_AREA = 0.04f;
+_ScrollPanel* _EditPresenter::__pResizedPanel = null;
 
 _EditAnimationProvider::_EditAnimationProvider(void)
 {
@@ -174,7 +175,7 @@ _EditPresenter::_EditPresenter(void)
        , __titleBounds()
        , __clientBounds()
        , __previousCursorBounds()
-       , __keypadBounds()
+       , __keypadBounds(0.0f, 0.0f, 0.0f,0.0f)
        , __pTextObject(null)
        , __pGuideTextObject(null)
        , __pTitleTextObject(null)
@@ -202,6 +203,7 @@ _EditPresenter::_EditPresenter(void)
        , __isFlexibleHeightFrozen(false)
        , __isKeypadShowing(false)
        , __isKeypadHiding(false)
+       , __resizedByKeypadHide(false)
        , __blockStartPos(0)
        , __cursorPos(0)
        , __prevTotalTextHeight(-1.0f)
@@ -306,6 +308,12 @@ _EditPresenter::OnInputConnectionPanelShowStateChanged(InputConnection& source,
 
                __isKeypadExist = false;
 
+               if (__resizedByKeypadHide)
+               {
+                       __resizedByKeypadHide = false;
+                       return;
+               }
+
                if (__isCopyPasteManagerExist)
                {
                        InitializeCopyPasteManager();
@@ -384,7 +392,6 @@ _EditPresenter::OnInputConnectionPanelShowStateChanged(InputConnection& source,
                                        __pCommandButton->Invalidate();
                                }
 
-                               __pEdit->DetachScrollPanelEvent();
                                __isInputConnectionBound = false;
 
                                AdjustParentPanelHeight(true);
@@ -417,6 +424,7 @@ _EditPresenter::OnInputConnectionPanelShowStateChanged(InputConnection& source,
                else
                {
                        __pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_CLOSED);
+                       __pEdit->DetachScrollPanelEvent();
 
                        if (!__isClipboardExist)
                        {
@@ -478,6 +486,16 @@ _EditPresenter::OnInputConnectionPanelBoundsChanged(InputConnection& source, con
 
        __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
 
+       if (__isCopyPasteManagerExist)
+       {
+               DrawText();
+               if (__pCopyPasteManager->GetCopyPastePopup())
+               {
+                       __pCopyPasteManager->CreateCopyPastePopup();
+               }
+               __pCopyPasteManager->Show();
+       }
+
        return;
 }
 
@@ -1015,6 +1033,13 @@ _EditPresenter::OnClipboardPopupClosed(void)
 {
        if (__clipboardConnected)
        {
+               if (__isCopyPasteManagerExist)
+               {
+                       InitializeCopyPasteManager();
+                       __pTextObject->SetBlock(false);
+                       __isTextBlocked = false;
+               }
+
                if (__pClipboard)
                {
                        __pClipboard->HidePopup();
@@ -1190,13 +1215,9 @@ _EditPresenter::Dispose(void)
 
        if (__pScrollBar != null && __pEdit != null)
        {
-               result r = __pEdit->DetachSystemChild(*__pScrollBar);
-
-               if (r == E_SUCCESS)
-               {
-                       delete __pScrollBar;
-                       __pScrollBar = null;
-               }
+               __pEdit->DetachSystemChild(*__pScrollBar);
+               delete __pScrollBar;
+               __pScrollBar = null;
        }
 
        if (__pFlickAnimationTimer)
@@ -1404,6 +1425,11 @@ _EditPresenter::Initialize(const _Control& control)
                __isCutLinkParserEnabled = false;
        }
 
+       if (__pEdit->GetInputStyle() == INPUT_STYLE_FULLSCREEN)
+       {
+               SetCursorDisabled(true);
+       }
+
        __initialBounds = __pEdit->GetBoundsF();
 
        __pEdit->SetTouchPressThreshold(__defaultTouchMoveThreshold);
@@ -1478,7 +1504,7 @@ _EditPresenter::InitializeAtFirstDrawing(void)
 
        ReplaceTextIntoPasswordHyphenString();
 
-       if (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER)
+       if (__pEdit->IsViewModeEnabled())
        {
                __pEdit->SetCursorPosition(0);
        }
@@ -1636,7 +1662,7 @@ _EditPresenter::DrawBackground(Canvas& canvas, bool drawTitleText)
        }
        else
        {
-               DrawBackgroundBitmap(canvas, IsInternalFocused());
+               DrawBackgroundBitmap(canvas, __pEdit->IsFocused());
        }
 
        DrawFocusRing(canvas);
@@ -1691,7 +1717,7 @@ _EditPresenter::DrawTitleText()
        pTitleTextCanvas->Clear();
 
        titleAction = __pTitleTextObject->GetAction();
-       if (IsInternalFocused() == true)
+       if (__pEdit->IsFocused() == true)
        {
                __pTitleTextObject->SetForegroundColor(__pEdit->GetTitleTextColor(EDIT_STATUS_HIGHLIGHTED), 0, __pTitleTextObject->GetTextLength());
 
@@ -1981,7 +2007,7 @@ _EditPresenter::DrawTextForEntireFontSetting(Canvas& canvas)
 {
        result r = E_SUCCESS;
 
-       if (!(__pEdit->GetEditStyle() & EDIT_STYLE_PASSWORD) && IsInternalFocused() == false)
+       if (!(__pEdit->GetEditStyle() & EDIT_STYLE_PASSWORD) && __pEdit->IsFocused() == false)
        {
                __pTextObject->SetAction(TEXT_OBJECT_ACTION_TYPE_ABBREV);
        }
@@ -2022,7 +2048,7 @@ _EditPresenter::DrawTextForEntireFontSetting(Canvas& canvas)
 
        EditStatus editStatus = GetCurrentStatus();
 
-       if (IsInternalFocused() == false)
+       if (__pEdit->IsFocused() == false)
        {
                if (__isCursorChanged == true)
                {
@@ -2107,7 +2133,7 @@ _EditPresenter::DrawSingleLineBackground(Canvas& canvas, bool drawTitleText)
        }
        else
        {
-               DrawSingleLineBackgroundBitmap(canvas, IsInternalFocused());
+               DrawSingleLineBackgroundBitmap(canvas, __pEdit->IsFocused());
        }
 
        DrawFocusRing(canvas);
@@ -2168,7 +2194,18 @@ _EditPresenter::DrawClearIcon(Canvas& canvas)
        Bitmap* pEditReplacedBitmapClear = null;
        Color editClearIconColor;
 
-       if (__isClearIconPressed)
+       if (!__pEdit->IsEnabled())
+       {
+               r = GET_BITMAP_CONFIG_N(EDIT::CLEAR_ICON_DISABLED, BITMAP_PIXEL_FORMAT_ARGB8888, pEditBitmapClear);
+
+               if (pEditBitmapClear == null)
+               {
+                       return E_SYSTEM;
+               }
+
+               GET_COLOR_CONFIG(EDIT::CLEAR_ICON_DISABLED, editClearIconColor);
+       }
+       else if (__isClearIconPressed)
        {
                r = GET_BITMAP_CONFIG_N(EDIT::CLEAR_ICON_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888, pEditBitmapClear);
 
@@ -2248,7 +2285,7 @@ _EditPresenter::Draw(Canvas& canvas)
                r = InitializeAtFirstDrawing();
                SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Faild to initialize.");
 
-               if (IsInternalFocused() == true &&  __isInputConnectionBound == false)
+               if (__pEdit->IsFocused() == true &&  __isInputConnectionBound == false)
                {
                        if (IsViewModeEnabled() == false)
                        {
@@ -3159,7 +3196,7 @@ _EditPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touchI
                }
                else
                {
-                       if (!IsInternalFocused())
+                       if (!__pEdit->IsFocused())
                        {
                                __pEdit->SetFocused();
                        }
@@ -3181,12 +3218,6 @@ _EditPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touchI
        FloatRectangle clientBounds;
        FloatPoint touchPoint = touchInfo.GetCurrentPosition();
 
-       if (IsViewModeEnabled())
-       {
-               __pEdit->SetFocused();
-               __pTextObject->ResetAllCutLinkElementsState();
-       }
-
        if (__isClearIconPressed)
        {
                __isClearIconPressed = false;
@@ -3222,8 +3253,22 @@ _EditPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touchI
                return true;
        }
 
+       if (__isTouchMoving && __isInputConnectionBound == false)
+       {
+               FadeOutScrollBar();
+               __isTouchMoving = false;
+               __isTouchReleaseSkipped = false;
+               __pEdit->Invalidate();
+
+               return true;
+       }
+
        if (IsViewModeEnabled())
        {
+               __pEdit->SetFocused();
+
+               __pTextObject->ResetAllCutLinkElementsState();
+
                cutLinkIndex = __pTextObject->GetCutLinkIndexFromPositionData(touchPoint.x - __textObjectBounds.x, touchPoint.y - __textObjectBounds.y);
 
                if (cutLinkIndex != -1)
@@ -3241,15 +3286,6 @@ _EditPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touchI
                        __pEdit->SendLinkEvent(cutLinkString, baseLinkType, cutLinkString);
                }
        }
-       if (__isTouchMoving && __isInputConnectionBound == false)
-       {
-               FadeOutScrollBar();
-               __isTouchMoving = false;
-               __isTouchReleaseSkipped = false;
-               __pEdit->Invalidate();
-
-               return true;
-       }
 
        clientBounds = __pEdit->GetBoundsF();
        clientBounds.x = 0.0f;
@@ -3268,7 +3304,7 @@ _EditPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touchI
                        }
                        if (!__isCopyPasteManagerExist) // Copy&Paste
                        {
-                               if ((__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE) == true && IsInternalFocused() == false)
+                               if ((__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE) == true && __pEdit->IsFocused() == false)
                                {
                                        __isCursorChanged = true;
                                }
@@ -3311,7 +3347,7 @@ _EditPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touchI
                                needToCreatePopup = false;
                        }
 
-                       if (IsInternalFocused() && !tokenEditting && needToCreatePopup)
+                       if (__pEdit->IsFocused() && !tokenEditting && needToCreatePopup)
                        {
                                __pCopyPasteManager = new (std::nothrow) _EditCopyPasteManager(*__pEdit);
                                SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, false, E_SYSTEM, "Unable to create _EditCopyPasteManager instance.");
@@ -3320,8 +3356,8 @@ _EditPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touchI
                                __isCopyPasteManagerExist = true;
                        }
                }
-               //if ((cutLinkIndex < 0) && ((__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER) == false) && (IsKeypadEnabled()))
-               if ((cutLinkIndex < 0) && ((__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER) == false))
+
+               if (cutLinkIndex < 0)
                {
                        CheckUSBKeyboardStatus();
 
@@ -3331,40 +3367,51 @@ _EditPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touchI
                                {
                                        if (__pEdit->GetInputStyle() == INPUT_STYLE_OVERLAY)
                                        {
-                                               if (IsInternalFocused())
-                                               {
-                                                       ShowKeypad(false);
-                                               }
-                                               else
+                                               if (IsViewModeEnabled() == false)
                                                {
-                                                       __pEdit->SetFocused();
+                                                       if (__pEdit->IsFocused())
+                                                       {
+                                                               ShowKeypad(false);
+                                                       }
+                                                       else
+                                                       {
+                                                               __pEdit->SetFocused();
+                                                       }
                                                }
                                        }
                                        else
                                        {
-                                               ShowFullscreenKeypad();
+                                               if (__pEditModel->IsViewModeEnabled() == false) //in case of fullscreen style, should check editModel's viewMode
+                                               {
+                                                       ShowFullscreenKeypad();
+                                               }
                                        }
                                }
                        }
                        else
                        {
-
                                if (!__isKeypadExist || !__isInputConnectionBound)
                                {
                                        if (__pEdit->GetInputStyle() == INPUT_STYLE_OVERLAY)
                                        {
-                                               if (IsInternalFocused())
-                                               {
-                                                       ShowKeypad(false);
-                                               }
-                                               else
+                                               if (IsViewModeEnabled() == false)
                                                {
-                                                       __pEdit->SetFocused();
+                                                       if (__pEdit->IsFocused())
+                                                       {
+                                                               ShowKeypad(false);
+                                                       }
+                                                       else
+                                                       {
+                                                               __pEdit->SetFocused();
+                                                       }
                                                }
                                        }
                                        else
                                        {
-                                               ShowFullscreenKeypad();
+                                               if (__pEditModel->IsViewModeEnabled() == false) //in case of fullscreen style, should check editModel's viewMode
+                                               {
+                                                       ShowFullscreenKeypad();
+                                               }
                                        }
                                }
                        }
@@ -3603,7 +3650,23 @@ _EditPresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
        _AccessibilityManager* pAccessibilityManager = _AccessibilityManager::GetInstance();
        SysTryReturn(NID_UI_CTRL, pAccessibilityManager, false, E_SYSTEM, "pAccessibilityManager is null");
 
-       if (IsViewModeEnabled() == true)
+       if (__pEditModel->IsViewModeEnabled() == false)
+       {
+               if (__pEdit->GetInputStyle() == INPUT_STYLE_FULLSCREEN)
+               {
+                       if (_KEY_ENTER == keyCode)
+                       {
+                               CheckUSBKeyboardStatus();
+                               if (__isUSBKeyboardConnected)
+                               {
+                                       ShowFullscreenKeypad();
+                                       return true;
+                               }
+                       }
+                       return false;
+               }
+       }
+       else
        {
                return false;
        }
@@ -4487,7 +4550,7 @@ _EditPresenter::OnLongPressGestureDetected(void)
        {
                return true;
        }
-       else if (IsInternalFocused() == false && !IsViewModeEnabled())
+       else if (__pEdit->IsFocused() == false && !IsViewModeEnabled())
        {
                return true;
        }
@@ -4496,7 +4559,7 @@ _EditPresenter::OnLongPressGestureDetected(void)
        InitializeCopyPasteManager();
        if (IsClipped() || GetTextLength())
        {
-               if (IsClipped() && !GetTextLength() && (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER))
+               if (IsClipped() && !GetTextLength() && (__pEdit->IsViewModeEnabled()))
                {
                        return true;
                }
@@ -4545,7 +4608,7 @@ _EditPresenter::OnTapGestureDetected(void)
                return false;
        }
 
-       if (IsInternalFocused() == false)
+       if (__pEdit->IsFocused() == false)
        {
                return true;
        }
@@ -5121,7 +5184,8 @@ _EditPresenter::SetText(const String& text)
        InitializeCopyPasteManager();
 
        int length = text.GetLength();
-       if (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER)
+
+       if (__pEdit->IsViewModeEnabled())
        {
                if (__limitLength <= length)
                {
@@ -5167,7 +5231,7 @@ _EditPresenter::SetText(const String& text)
                AdjustFlexibleHeight();
        }
 
-       if (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER)
+       if (__pEdit->IsViewModeEnabled())
        {
                __isCutLinkParserEnabled = true;
        }
@@ -5257,7 +5321,7 @@ _EditPresenter::InsertTextAt(int index, const String& text)
 
        SysTryReturnResult(NID_UI_CTRL, index >= 0 && index <= currentLength, E_OUT_OF_RANGE, "The Invalid argument is given.");
 
-       if (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER)
+       if (__pEdit->IsViewModeEnabled())
        {
                if (__limitLength <= totalLength)
                {
@@ -5344,7 +5408,7 @@ _EditPresenter::InsertTextAt(int index, const String& text)
 
        __isCursorChanged = true;
 
-       if (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER)
+       if (__pEdit->IsViewModeEnabled())
        {
                __isCutLinkParserEnabled = true;
        }
@@ -5363,7 +5427,7 @@ _EditPresenter::AppendText(const String& text)
        int length = text.GetLength();
        int totalLength = currentLength + length;
 
-       if (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER)
+       if (__pEdit->IsViewModeEnabled())
        {
                if (__limitLength <= totalLength)
                {
@@ -5404,7 +5468,7 @@ _EditPresenter::AppendText(const String& text)
                AdjustFlexibleHeight();
        }
 
-       if (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER)
+       if (__pEdit->IsViewModeEnabled())
        {
                __isCutLinkParserEnabled = true;
        }
@@ -5660,15 +5724,29 @@ _EditPresenter::GetAutoLinkMask(void) const
 }
 
 bool
-_EditPresenter::IsViewModeEnabled(void) const
+_EditPresenter::IsViewModeEnabled(bool internal) const
 {
-       return __pEditModel->IsViewModeEnabled();
+       if (__pEdit->GetInputStyle() == INPUT_STYLE_OVERLAY)
+       {
+               return __pEditModel->IsViewModeEnabled();
+       }
+       else
+       {
+               if (internal)
+               {
+                       return true;
+               }
+               else
+               {
+                       return __pEditModel->IsViewModeEnabled();
+               }
+       }
 }
 
 result
 _EditPresenter::SetViewModeEnabled(bool enable)
 {
-       if (!enable && __pEditModel->IsViewModeEnabled() && IsInternalFocused())
+       if (!enable && __pEditModel->IsViewModeEnabled() && __pEdit->IsFocused() && (__pEdit->GetInputStyle() == INPUT_STYLE_OVERLAY))
        {
                __pEdit->SetFocused(false);
        }
@@ -5695,15 +5773,17 @@ _EditPresenter::SetViewModeEnabled(bool enable)
                }
        }
 
-       __isCursorDisabled = enable;
-       __pTextObject->SetCutLinkViewMode(enable);
+       if (__pEdit->GetInputStyle() == INPUT_STYLE_OVERLAY)
+       {
+               __isCursorDisabled = enable;
+               __pTextObject->SetCutLinkViewMode(enable);
+       }
 
        if (__pInputConnection)
        {
                __pInputConnection->SetKeyEventSkipped(enable);
        }
 
-
        return __pEditModel->SetViewModeEnabled(enable);
 }
 
@@ -5991,7 +6071,7 @@ _EditPresenter::InsertTextAt(int position, const String& text, const Bitmap& tex
 
        SysTryReturnResult(NID_UI_CTRL, position >= 0 && position <= currentLength, E_OUT_OF_RANGE, "The given position is out-of-range.");
 
-       if ((__pEdit->GetEditStyle() & EDIT_STYLE_FLEXIBLE) || (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER))
+       if ((__pEdit->GetEditStyle() & EDIT_STYLE_FLEXIBLE) || (__pEdit->IsViewModeEnabled()))
        {
                if (__limitLength <= totalLength)
                {
@@ -6240,7 +6320,17 @@ _EditPresenter::OnNotifiedN(IList* pArgs)
 void
 _EditPresenter::OnFrameActivated(const _Frame& source)
 {
-       if (IsInternalFocused() == true && __isInputConnectionBound == false && __isInitialized)
+       _ControlManager* pControlManager = _ControlManager::GetInstance();
+       if (pControlManager)
+       {
+               _Control* pControl = pControlManager->GetFocusControl();
+               if (pControl != __pEdit)
+               {
+                       return;
+               }
+       }
+
+       if (__isInputConnectionBound == false && __isInitialized)
        {
                if (IsViewModeEnabled() == false)
                {
@@ -6277,21 +6367,59 @@ _EditPresenter::OnFrameRestored(const _Frame& source)
 void
 _EditPresenter::ChangeToUnbindState(void)
 {
+       if(__latestBoundedContext != (unsigned int)this)//context is already changed.
+       {
+               __isKeypadHiding = false;
+       }
+
        if (IsCopyPasteManagerExist())
        {
                InitializeCopyPasteManager();
        }
 
-       if (__pEdit->IsInternalFocused())
+       if (__pEdit->IsFocused())
        {
-               if (IsKeypadEnabled())
-               {
-                       HideKeypad(true);
-               }
-               else
+               HideKeypad(false);
+       }
+
+       if (__isKeypadHiding)
+       {
+               if (__pParentForm && !__pParentForm->IsVisible())  //Unbind by Scene Change
                {
-                       __pEdit->SetFocused(false);
-                       __isInputConnectionBound = false;//forcely set, OnFocusLost callback can be missed in special condition.
+                       if (__isCopyPasteManagerExist)
+                       {
+                               InitializeCopyPasteManager();
+                               __pTextObject->SetBlock(false);
+                               __isTextBlocked = false;
+                       }
+
+                       if (__pCommandButton && __isKeypadCommandButtonVisible)
+                       {
+                               SetFooterVisible(true);
+                               __pCommandButton->SetVisibleState(false);
+                               __pCommandButton->Invalidate();
+                       }
+
+                       __isInputConnectionBound = false;
+
+                       AdjustParentPanelHeight(true);
+                       SysLog(NID_UI_CTRL, "Form deflate RESET!!!!!!!!!!");
+                       __pParentForm->DeflateClientRectHeight(0);
+
+                       if (!__pEdit->IsFullScreenKeypadEdit())
+                       {
+                               if (__pParentForm)
+                               {
+                                       __pParentForm->Draw();
+                               }
+                       }
+
+                       __pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_CLOSED);
+                       __pEdit->DetachScrollPanelEvent();
+
+                       __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_CLOSE);
+                       __resizedByKeypadHide = true;
+                       __latestBoundedContext = null;
                }
        }
 
@@ -6362,7 +6490,7 @@ _EditPresenter::GetCurrentStatus(void) const
 
        if (__pEdit->IsEnabled())
        {
-               if (IsInternalFocused())
+               if (__pEdit->IsFocused())
                {
                        editState = EDIT_STATUS_HIGHLIGHTED;
                }
@@ -6938,7 +7066,7 @@ _EditPresenter::DeleteFullscreenKeypad(void)
 }
 
 result
-_EditPresenter::GetKeypadBounds(FloatRectangle& bounds) const
+_EditPresenter::GetKeypadBounds(FloatRectangle& bounds)
 {
        if (__pInputConnection == null)
        {
@@ -6954,6 +7082,7 @@ _EditPresenter::GetKeypadBounds(FloatRectangle& bounds) const
        SysTryReturnResult(NID_UI_CTRL, pXformer, E_SYSTEM, "Coordinate system load failed.");
 
        bounds = pXformer->Transform(bounds);
+       __keypadBounds = bounds;
 
        return E_SUCCESS;
 }
@@ -7060,6 +7189,8 @@ _EditPresenter::ShowKeypad(bool focus)
                return E_SUCCESS;
        }
 
+       bool sendKeypadEventForcely = false;
+
        CheckUSBKeyboardStatus();
 
        __isInputConnectionBound = true;
@@ -7088,6 +7219,7 @@ _EditPresenter::ShowKeypad(bool focus)
        __pInputConnection->BindInputMethod();
        __isKeypadShowing = true;
        __isKeypadHiding = false;
+       __resizedByKeypadHide = false;
        __latestBoundedContext = (unsigned int)this;
 
        LanguageCode initialKeypadLanguage = LANGUAGE_INVALID;
@@ -7191,6 +7323,14 @@ _EditPresenter::ShowKeypad(bool focus)
 
                if (__isKeypadExist) //edit switiching
                {
+                       sendKeypadEventForcely = !__pParentForm->IsDeflated();
+                       if (sendKeypadEventForcely)
+                       {
+                               __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_CREATED);
+                               __pEdit->AttachScrollPanelEvent();
+                               __pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_CREATED);
+                       }
+
                        ChangeLayoutInternal(__pEdit->GetOrientation());
                        AdjustParentPanelHeight(false);
                        ScrollPanelToCursorPosition();
@@ -7199,10 +7339,16 @@ _EditPresenter::ShowKeypad(bool focus)
                                __pParentForm->Draw();
                        }
                        __isKeypadShowing = false;
+
+                       if (sendKeypadEventForcely)
+                       {
+                               __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_OPEN);
+                               __pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_OPENED);
+                       }
                }
                else
                {
-                       if(!__isClipboardExist)
+                       if(!__isClipboardExist && __pParentPanel)
                        {
                                __initialParentHeight = 0.0f;
                        }
@@ -7441,6 +7587,12 @@ _EditPresenter::AdjustParentPanelHeight(bool restore)
                return;
        }
 
+       float initialParentHeight = __initialParentHeight;
+       if (__pResizedPanel != __pParentPanel)
+       {
+               initialParentHeight = 0.0f;
+       }
+
        _ControlOrientation orientation;
        float commandButtonHeight = 0.0f;
 
@@ -7474,11 +7626,12 @@ _EditPresenter::AdjustParentPanelHeight(bool restore)
 
        if (restore)
        {
-               if (__initialParentHeight)
+               if (initialParentHeight)
                {
                        scrollPanelBounds.height = __initialParentHeight;
                        SysLog(NID_UI_CTRL, "Rollback ScrollPanel's height to %f and Set __initialParentHeight to 'Zero' ", __initialParentHeight);
                        __initialParentHeight = 0.0f;
+                       __pResizedPanel = null;
                        __pParentPanel->SetBounds(scrollPanelBounds);
                        __pParentPanel->Invalidate();
                }
@@ -7535,7 +7688,7 @@ _EditPresenter::AdjustParentPanelHeight(bool restore)
 
                SysLog(NID_UI_CTRL, "IsOverlapped:(%d), __initialParentHeight:(%f), gapY:(%f)", isOverlapped, __initialParentHeight, gapY);
 
-               if (!__initialParentHeight)
+               if (!initialParentHeight)
                {
                        if (!isOverlapped)
                        {
@@ -7544,7 +7697,9 @@ _EditPresenter::AdjustParentPanelHeight(bool restore)
 
                        if (gapY > 0.0f)
                        {
-                               __initialParentHeight = scrollPanelBounds.height;
+                               initialParentHeight = scrollPanelBounds.height;
+                               __initialParentHeight = initialParentHeight;
+                               __pResizedPanel = __pParentPanel;
 
                                SysLog(NID_UI_CTRL, "Set ScrollPanel's height to %f and Set __initialParentHeight:(%f)", gapY, __initialParentHeight);
 
@@ -7557,7 +7712,7 @@ _EditPresenter::AdjustParentPanelHeight(bool restore)
                {
                        if (!isOverlapped)
                        {
-                               if ((gapY < __initialParentHeight) && (gapY > 0.0f))
+                               if ((gapY < initialParentHeight) && (gapY > 0.0f))
                                {
                                        SysLog(NID_UI_CTRL, "Set ScrollPanel's height to %f", gapY);
 
@@ -7568,11 +7723,11 @@ _EditPresenter::AdjustParentPanelHeight(bool restore)
                                }
                                else
                                {
-                                       if (gapY > __initialParentHeight)
+                                       if (gapY > initialParentHeight)
                                        {
                                                SysLog(NID_UI_CTRL, "Set ScrollPanel's height to %f", __initialParentHeight);
 
-                                               scrollPanelBounds.height = __initialParentHeight;
+                                               scrollPanelBounds.height = initialParentHeight;
                                                __pParentPanel->SetBounds(scrollPanelBounds);
                                                __pParentPanel->Invalidate();
                                        }
@@ -7597,6 +7752,7 @@ _EditPresenter::HideKeypad(bool focus)
        InitializeCopyPasteManager();
 
        __isKeypadShowing = false;
+       __resizedByKeypadHide = false;
 
        if (__isInitialized == false || !__isInputConnectionBound)
        {
@@ -7657,7 +7813,7 @@ _EditPresenter::HideKeypad(bool focus)
 
        __isInputConnectionBound = false;
 
-       if (focus && IsInternalFocused())
+       if (focus && __pEdit->IsFocused())
        {
                __pEdit->SetFocused(false);
        }
@@ -7738,7 +7894,7 @@ _EditPresenter::InitializeCursor(void)
 {
        StopCursorTimer();
 
-       if (__isCursorDisabled == false && IsInternalFocused() && __isTextBlocked == false)
+       if (__isCursorDisabled == false && __pEdit->IsFocused() && __isTextBlocked == false)
        {
                FloatRectangle cursorBounds;
                CalculateCursorBounds(__textObjectBounds, cursorBounds);
@@ -7916,7 +8072,7 @@ _EditPresenter::MoveCursor(const FloatRectangle& fromRect, const FloatRectangle&
 void
 _EditPresenter::OnCursorTimerExpired(void)
 {
-       if (!IsInternalFocused() && __isCursorDisabled)
+       if (!__pEdit->IsFocused() && __isCursorDisabled)
        {
                StopCursorTimer();
                return;
@@ -8649,11 +8805,31 @@ _EditPresenter::SetClientBounds(void)
        }
        else if (editStyle & EDIT_STYLE_TITLE_TOP)
        {
+               result r = E_SUCCESS;
                float titletHeight = 0.0f;
                float titleTextTopMargin = 0.0f;
                GET_SHAPE_CONFIG(EDIT::FIELD_TITLE_RECT_HEIGHT, orientation, titletHeight);
                GET_SHAPE_CONFIG(EDIT::FIELD_TITLE_TEXT_TOP_MARGIN, orientation, titleTextTopMargin);
 
+               _FontImpl* fontImpl = _FontImpl::GetInstance(*__pFont);
+               SysTryReturnVoidResult(NID_UI_CTRL, fontImpl != null, E_SYSTEM, "[E_SYSTEM] fontImpl is null.");
+
+               float originalSize = fontImpl->GetSizeF();
+               float titleFontSize = 0.0f;
+               GET_SHAPE_CONFIG(EDIT::DEFAULT_TITLE_FONT_SIZE, __pEdit->GetOrientation(), titleFontSize);
+
+               r = fontImpl->SetSize(titleFontSize);
+               SysTryReturnVoidResult(NID_UI_CTRL, !(IsFailed(r)), r, "SetSize is failed.");
+
+               if (titletHeight < fontImpl->GetMaxHeightF())
+               {
+                       titleTextTopMargin -= (fontImpl->GetMaxHeightF()-titletHeight);
+                       titletHeight = fontImpl->GetMaxHeightF();
+               }
+
+               r = fontImpl->SetSize(originalSize);
+               SysTryReturnVoidResult(NID_UI_CTRL, !(IsFailed(r)), r, "SetSize is failed.");
+
                leftBorder = leftMargin;
                rightBorder = rightMargin;
                topBorder = titletHeight + titleTextTopMargin;
@@ -8683,6 +8859,7 @@ _EditPresenter::SetInitialEditFieldBounds(void)
        float titleTextTopMargin = 0.0f;
        float titleTextBottomMargin = 0.0f;
        float clearIconWidth = 0.0f;
+       float titletHeight = 0.0f;
        _ControlOrientation orientation = __pEdit->GetOrientation();
 
        GET_SHAPE_CONFIG(EDIT::FIELD_BOTTOM_MARGIN, orientation, bottomMargin);
@@ -8695,6 +8872,7 @@ _EditPresenter::SetInitialEditFieldBounds(void)
        GET_SHAPE_CONFIG(EDIT::FIELD_TITLE_TEXT_TOP_MARGIN, orientation, titleTextTopMargin);
        GET_SHAPE_CONFIG(EDIT::FIELD_TITLE_TEXT_BOTTOM_MARGIN, orientation, titleTextBottomMargin);
        GET_SHAPE_CONFIG(EDIT::CLEAR_ICON_WIDTH, orientation, clearIconWidth);
+       GET_SHAPE_CONFIG(EDIT::FIELD_TITLE_RECT_HEIGHT, orientation, titletHeight);
 
        if (!(editStyle & EDIT_STYLE_SINGLE_LINE))
        {
@@ -8731,9 +8909,27 @@ _EditPresenter::SetInitialEditFieldBounds(void)
                __textObjectBounds.height = __clientBounds.height - textBottomMargin;
 
                __titleBounds.x = titleTextLeftMargin;
+
+               _FontImpl* fontImpl = _FontImpl::GetInstance(*__pFont);
+               SysTryReturnResult(NID_UI_CTRL, fontImpl != null, E_SYSTEM, "fontImpl is null.");
+
+               float originalSize = fontImpl->GetSizeF();
+               float titleFontSize = 0.0f;
+               GET_SHAPE_CONFIG(EDIT::DEFAULT_TITLE_FONT_SIZE, __pEdit->GetOrientation(), titleFontSize);
+
+               r = fontImpl->SetSize(titleFontSize);
+               SysTryReturnResult(NID_UI_CTRL, !(IsFailed(r)), r, "SetSize is failed.");
+
+               if (titletHeight < fontImpl->GetMaxHeightF())
+               {
+                       titleTextTopMargin -= (fontImpl->GetMaxHeightF()-titletHeight);
+               }
+
+               r = fontImpl->SetSize(originalSize);
+               SysTryReturnResult(NID_UI_CTRL, !(IsFailed(r)), r, "SetSize is failed.");
+
                __titleBounds.y = titleTextTopMargin;
-               __titleBounds.width = bounds.width - __titleBounds.x
-                                                          - titleTextRightMargin;
+               __titleBounds.width = bounds.width - __titleBounds.x - titleTextRightMargin;
                __titleBounds.height = bounds.height - __titleBounds.y - __clientBounds.height
                                                                - bottomMargin;
 
@@ -9109,7 +9305,7 @@ _EditPresenter::OnTitleSlidingTimerExpired(void)
 {
        result r = E_SUCCESS;
 
-       if (!IsInternalFocused())
+       if (!__pEdit->IsFocused())
        {
                StopTitleSlidingTimer();
                return r;
@@ -9225,7 +9421,7 @@ _EditPresenter::OnPasswordTimerExpired(void)
 {
        result r = E_SUCCESS;
 
-       if (!IsInternalFocused())
+       if (!__pEdit->IsFocused())
        {
                return E_SYSTEM;
        }
@@ -9471,14 +9667,14 @@ _EditPresenter::CalculateMaximumFlexibleHeight(void)
        return maxHeight;
 }
 
-bool
-_EditPresenter::SetKeypadBounds(const FloatRectangle& bounds)
+void
+_EditPresenter::GetKeypadBoundsEx(Tizen::Graphics::FloatRectangle& bounds) const
 {
-       __keypadBounds.x = bounds.x;
-       __keypadBounds.y = bounds.y;
-       __keypadBounds.width = bounds.width;
-       __keypadBounds.height = bounds.height;
-       return true;
+       bounds.x = __keypadBounds.x;
+       bounds.y = __keypadBounds.y;
+       bounds.width = __keypadBounds.width;
+       bounds.height = __keypadBounds.height;
+       return;
 }
 
 _Form*
@@ -10171,13 +10367,13 @@ _EditPresenter::SetFocused(void)
                _Window* pTop = __pParentPanel->GetRootWindow();
                if (pTop)
                {
-                       if ((pTop->GetFocusControl(__pEdit) != __pEdit) && IsInternalFocused() == false)
+                       if ((pTop->GetFocusControl(__pEdit) != __pEdit) && __pEdit->IsFocused() == false)
                        {
                                focused = false;
                        }
                }
        }
-       else if (IsInternalFocused() == false)
+       else if (__pEdit->IsFocused() == false)
        {
                focused = false;
        }
@@ -11185,7 +11381,7 @@ _EditPresenter::DrawFocusRing(Tizen::Graphics::Canvas& canvas) const
        Bitmap* pFocusRing = null;
        Color color = __pEdit->GetColor(EDIT_STATUS_HIGHLIGHTED);
 
-       if (IsInternalFocused() && color.GetAlpha())
+       if (__pEdit->IsFocused() && color.GetAlpha())
        {
                Color focusColor;
                GET_COLOR_CONFIG(EDIT::CURSOR_NORMAL, focusColor);
index c0b2c71..14f9398 100644 (file)
@@ -1212,6 +1212,10 @@ _EditTimePresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo
                                        __focusId = DATETIME_ID_AMPM;
                                }
                        }
+                       else if (__focusId == DATETIME_ID_AMPM)
+                       {
+                               return false;
+                       }
 
                        __pEditTime->Invalidate();
                        break;
@@ -1228,6 +1232,10 @@ _EditTimePresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo
                        {
                                __focusId = DATETIME_ID_MINUTE;
                        }
+                       else if (__focusId == DATETIME_ID_HOUR)
+                       {
+                               return false;
+                       }
                        __pEditTime->Invalidate();
                        break;
                }
index af0bb6e..d835743 100644 (file)
@@ -394,12 +394,11 @@ _FastScrollIndex::AddChildTextIndexArray(int childOrder, const wchar_t* pTextInd
                        _FastScrollIndex* pFormerIndex = null;
 
                        pChildIndexList = new (std::nothrow) ArrayList();
-                       SysTryCatch(NID_UI_CTRL, pChildIndexList, , E_OUT_OF_MEMORY, "Memory allocation failed.");
+                       SysTryCatchLabel(NID_UI_CTRL, pChildIndexList, , CATCH1, E_OUT_OF_MEMORY, "Memory allocation failed.");
                        k = 0;
 
                        pFormerIndex = GetChildIndex(GetChildCount(pFormerList) - 1, pFormerList);
-                       SysTryCatch(NID_UI_CTRL, pFormerIndex, , GetLastResult(),
-                                       "[%s] Failed to get the child index.", GetErrorMessage(GetLastResult()));
+                       SysTryCatchLabel(NID_UI_CTRL, pFormerIndex, , CATCH1, GetLastResult(), "[%s] Failed to get the child index.", GetErrorMessage(GetLastResult()));
                        pFormerIndex->SetNextIndexList(pChildIndexList);
                        continue;
                }
@@ -468,13 +467,13 @@ _FastScrollIndex::AddChildTextIndexArray(int childOrder, const wchar_t* pTextInd
        delete[] pTempChar;
        return E_SUCCESS;
 
+CATCH1:
+       delete pChildIndexList;
+       pChildIndexList = null;
+
 CATCH:
        delete indexText;
        indexText = null;
-       delete pChildIndexList;
-       pChildIndexList = null;
-       delete pFirstIndexList;
-       pFirstIndexList = null;
        delete[] pTempChar;
 
        return r;
index bb3fcb0..5e930ca 100644 (file)
@@ -2271,7 +2271,7 @@ _FastScrollPresenter::AddAccessibilityElement(const _AccessibilityContainer& con
        if (onAccessibility)
        {
                r = pIndexView->AddAccessibilityElement(control);
-               SysTryReturnResult(NID_UI_CTRL, r = E_SUCCESS, r, "Failed to Add accessibility element.");
+               SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Failed to Add accessibility element.");
        }
        else
        {
index 4f6f302..cddd5d6 100644 (file)
@@ -811,7 +811,7 @@ _FooterImpl::ConvertButtonItem(const ButtonItem& buttonItem)
 
        float iconSize = 0.0f;
 
-       GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize);
+       GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize); //63
 
        Bitmap* pIconBitmap = null;
 
@@ -995,13 +995,13 @@ _FooterImpl::ConvertFooterItem(const FooterItem& footerItem)
        {
                r = GET_SHAPE_CONFIG(FOOTER::SEGMENTED_ITEM_FONT_SIZE, GetCore().GetOrientation(), fontSize);
 
-               if (footerItem.GetText() != L"")
+               if (footerItem.GetText() != L"" && __style != FOOTER_STYLE_TAB_LARGE)
                {
-                       GET_SHAPE_CONFIG(HEADER::TAB_ITEM_ICON_SIZE_WITH_TEXT, GetCore().GetOrientation(), iconSize);
+                       GET_SHAPE_CONFIG(HEADER::TAB_ITEM_ICON_SIZE_WITH_TEXT, GetCore().GetOrientation(), iconSize); //45
                }
                else
                {
-                       GET_SHAPE_CONFIG(HEADER::TAB_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize);
+                       GET_SHAPE_CONFIG(HEADER::TAB_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize); // 63
                }
 
                Bitmap* pSelectedBitmap = null;
@@ -1055,11 +1055,11 @@ _FooterImpl::ConvertFooterItem(const FooterItem& footerItem)
 
                if (footerItem.GetText() != L"")
                {
-                       GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE_WITH_TEXT, GetCore().GetOrientation(), iconSize);
+                       GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE_WITH_TEXT, GetCore().GetOrientation(), iconSize); //45
                }
                else
                {
-                       GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE, GetCore().GetOrientation(), iconSize);
+                       GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE, GetCore().GetOrientation(), iconSize); //63
                }
        }
 
index 91a1465..b35abad 100644 (file)
@@ -1495,25 +1495,6 @@ _Form::SetActionBarsTranslucent(unsigned long actionBars, bool translucent)
                return E_INVALID_OPERATION;
        }
 
-       if ((actionBars & FORM_ACTION_BAR_INDICATOR))
-       {
-               if (GetOrientation() == _CONTROL_ORIENTATION_PORTRAIT)
-               {
-                       if (!(__formStyle & FORM_STYLE_INDICATOR))
-                       {
-                               SysLog(NID_UI_CTRL,
-                                       "[E_INVALID_OPERATION] The current state of the instance prohibits the execution of the specified operation.");
-                               return E_INVALID_OPERATION;
-                       }
-               }
-               else
-               {
-                       SysLog(NID_UI_CTRL,
-                               "[E_INVALID_OPERATION] The current state of the instance prohibits the execution of the specified operation.");
-                       return E_INVALID_OPERATION;
-               }
-       }
-
        result r = E_SUCCESS;
 
        Color bgColor(0, 0, 0, 0);
@@ -2154,6 +2135,19 @@ _Form::TranslateFromClientAreaPosition(const FloatPoint& clientPosition) const
 }
 
 bool
+_Form::IsDeflated(void)
+{
+       if (__deflated)
+       {
+               return true;
+       }
+       else
+       {
+               return false;
+       }
+}
+
+bool
 _Form::DeflateClientRectHeight(int height)
 {
        if (    height > 0)
@@ -2784,6 +2778,13 @@ _Form::OnChildVisibleStateChanged(const _Control& child)
                                        {
                                                adjHeight = 0.0f;
                                        }
+                                       else
+                                       {
+                                               if (FORM_STYLE_INDICATOR_AUTO_HIDE & GetFormStyle())
+                                               {
+                                                       adjHeight = 0.0f;
+                                               }
+                                       }
                                }
                        }
                }
@@ -3156,6 +3157,7 @@ _Form::AttachedToMainTree(void)
                        }
                        else
                        {
+                               AddIndicatorObject();
                                r = SetIndicatorShowState(false);
                                SetIndicatorAutoHide(false, false);
                                SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
@@ -3287,7 +3289,7 @@ _Form::OnBoundsChanged(void)
        {
                if (FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE & GetFormStyle())
                {
-                       GET_SHAPE_CONFIG(FORM::INDICATOR_MINIMIZE_HEIGHT, GetOrientation(), indicatorheight);
+                       GET_SHAPE_CONFIG(FORM::INDICATOR_HEIGHT, GetOrientation(), indicatorheight);
                }
        }
 
index 4428b27..8176e42 100644 (file)
@@ -1281,6 +1281,13 @@ _FormImpl::OnChangeLayout(_ControlOrientation orientation)
                                        {
                                                indicatorBounds.height = 0.0f;
                                        }
+                                       else
+                                       {
+                                               if (FORM_STYLE_INDICATOR_AUTO_HIDE & GetFormStyle())
+                                               {
+                                                       adjHeight = 0.0f;
+                                               }
+                                       }
                                }
                        }
                }
index b0b3e24..2fc1e4d 100644 (file)
@@ -83,6 +83,9 @@ _GroupContainer::~_GroupContainer(void)
 
        delete[] __pStretchableRowIndex;
        delete[] __pStretchableColumnIndex;
+
+       delete __pSystemControl;
+       __pSystemControl = null;
 }
 
 _GroupContainer*
@@ -144,7 +147,7 @@ _GroupContainer::Initialize(const FloatRectangle& rect, int rowCount, int column
        SysTryReturn(NID_UI_CTRL, __pCellsArray != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
        __pStretchableRowIndex = new (std::nothrow) bool[rowCount];
-       SysTryReturn(NID_UI_CTRL, __pCellsArray != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+       SysTryCatch(NID_UI_CTRL, __pStretchableRowIndex != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
        for (int i = 0; i < rowCount; i++)
        {
@@ -152,7 +155,7 @@ _GroupContainer::Initialize(const FloatRectangle& rect, int rowCount, int column
        }
 
        __pStretchableColumnIndex = new (std::nothrow) bool[columnCount];
-       SysTryReturn(NID_UI_CTRL, __pCellsArray != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+       SysTryCatch(NID_UI_CTRL, __pStretchableColumnIndex != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
        for (int i = 0; i < columnCount; i++)
        {
@@ -299,6 +302,9 @@ CATCH:
        }
        delete[] __pCellsArray;
 
+       delete[] __pStretchableRowIndex;
+       delete[] __pStretchableColumnIndex;
+
        delete __pSystemControl;
        __pSystemControl = null;
 
@@ -915,7 +921,7 @@ _GroupContainer::ResizeControl(int rowIndex, int columnIndex)
                {
                        FloatRectangle rect = GetBoundsAt(rowIndex, columnIndex);
                        _Control* pControl = GetControlCoreAt(rowIndex, columnIndex);
-#if 1 //New Algorithm
+
                        if (pControl)
                        {
                                FloatRectangle controlRect = pControl->GetBoundsF();
@@ -928,21 +934,6 @@ _GroupContainer::ResizeControl(int rowIndex, int columnIndex)
                                r = SetChildBounds(*pControl, rowIndex, columnIndex, FloatRectangle(controlRect.x, controlRect.y, rect.width, rect.height));
                                SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
                        }
-
-#else
-
-                       rect.x += __pCellsArray[rowIndex][columnIndex].cellMargin.left;
-                       rect.y += __pCellsArray[rowIndex][columnIndex].cellMargin.top;
-                       rect.width -= (__pCellsArray[rowIndex][columnIndex].cellMargin.left + __pCellsArray[rowIndex][columnIndex].cellMargin.right);
-                       rect.height -= (__pCellsArray[rowIndex][columnIndex].cellMargin.top + __pCellsArray[rowIndex][columnIndex].cellMargin.bottom);
-
-
-                       if (pControl)
-                       {
-                               r = pControl->SetBounds(rect);
-                               SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
-                       }
-#endif
                }
        }
 
index 0b4cd2f..cfe7cd9 100644 (file)
@@ -1167,17 +1167,17 @@ _HeaderImpl::ConvertButtonItem(const ButtonItem& buttonItem)
 
        if (__style == HEADER_STYLE_BUTTON)
        {
-               GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize);
+               GET_SHAPE_CONFIG(FOOTER::BUTTON_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize); // 63
        }
        else
        {
                if (__style == HEADER_STYLE_SEGMENTED_WITH_TITLE)
                {
-                       GET_SHAPE_CONFIG(HEADER::TAB_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize);
+                       GET_SHAPE_CONFIG(HEADER::TAB_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize); //63
                }
                else
                {
-                       GET_SHAPE_CONFIG(HEADER::BUTTON_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize);
+                       GET_SHAPE_CONFIG(HEADER::BUTTON_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize); //63
                }
        }
 
@@ -1379,13 +1379,13 @@ _HeaderImpl::ConvertHeaderItem(const HeaderItem& headerItem)
        if (__style == HEADER_STYLE_SEGMENTED || __style == HEADER_STYLE_SEGMENTED_WITH_TITLE
                        || __style == HEADER_STYLE_TAB_WITH_TITLE || __style == HEADER_STYLE_TAB || __style == HEADER_STYLE_TAB_LARGE)
        {
-               if (headerItem.GetText() != L"")
+               if (headerItem.GetText() != L"" && __style != HEADER_STYLE_TAB_LARGE)
                {
-                       GET_SHAPE_CONFIG(HEADER::TAB_ITEM_ICON_SIZE_WITH_TEXT, GetCore().GetOrientation(), iconSize);
+                       GET_SHAPE_CONFIG(HEADER::TAB_ITEM_ICON_SIZE_WITH_TEXT, GetCore().GetOrientation(), iconSize); // 45
                }
                else
                {
-                       GET_SHAPE_CONFIG(HEADER::TAB_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize);
+                       GET_SHAPE_CONFIG(HEADER::TAB_ITEM_ICON_SIZE, GetCore().GetOrientation(), iconSize); // 63
                }
 
                Bitmap* pSelectedBitmap = null;
@@ -1444,11 +1444,11 @@ _HeaderImpl::ConvertHeaderItem(const HeaderItem& headerItem)
        {
                if (headerItem.GetText() != L"")
                {
-                       GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE_WITH_TEXT, GetCore().GetOrientation(), iconSize);
+                       GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE_WITH_TEXT, GetCore().GetOrientation(), iconSize); //45
                }
                else
                {
-                       GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE, GetCore().GetOrientation(), iconSize);
+                       GET_SHAPE_CONFIG(FOOTER::FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE, GetCore().GetOrientation(), iconSize); // 63
                }
        }
 
index 96479e2..5a34659 100644 (file)
@@ -770,6 +770,7 @@ _IconListItem::DrawBorder(Tizen::Graphics::Canvas& canvas, bool isFocused)
                        Color focusUiColor = __pProperty->GetBorderColor(isFocused);
 
                        pShadowBitmap = Tizen::Graphics::_BitmapImpl::GetColorReplacedBitmapN(*pShadowBitmap, Color::GetColor(COLOR_ID_MAGENTA), focusUiColor);
+                       SysTryReturn(NID_UI_CTRL, pShadowBitmap != null, GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
 
                        if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pShadowBitmap))
                        {
@@ -780,8 +781,9 @@ _IconListItem::DrawBorder(Tizen::Graphics::Canvas& canvas, bool isFocused)
                                pCanvas->DrawBitmap(__pProperty->GetDropShadowBitmapBounds(), *pShadowBitmap);
                        }
                        __pFocusVE->SetShowState(true);
-                       delete pCanvas;
+                       delete pShadowBitmap;
                }
+               delete pCanvas;
        }
        else
        {
index 4960896..fa10187 100644 (file)
@@ -2868,8 +2868,25 @@ _IconListPresenter::OnKeyReleased(const _Control& source, const _KeyInfo& keyInf
                case _KEY_DOWN:
                case _KEY_LEFT:
                case _KEY_RIGHT:
+            break;
                case _KEY_ENTER:
-                       break;
+               {
+                       if (__highlightedIndex != INVALID_INDEX)
+                       {
+                               PreDrawCheckAnimation(__highlightedIndex);
+                               FireEventAfterTouchRelease(__highlightedIndex);
+
+                               if (__isTouchAnimationEnabled)
+                               {
+                                       StartSelectAnimation(__highlightedIndex);
+                               }
+                               else
+                               {
+                                       DrawCheckAnimation(__highlightedIndex);
+                               }
+                       }
+               }
+               break;
 
                default:
                        return false;
@@ -5135,6 +5152,8 @@ _IconListPresenter::SetFocusUiIndexVerticalScrollList(const _KeyInfo& keyInfo)
                if (((keyInfo.GetKeyCode() ==  _KEY_UP) && (__highlightedIndex >= 0 && __highlightedIndex <= GetItemCountPerAxis() - 1)) ||
                        ((keyInfo.GetKeyCode() ==  _KEY_DOWN) && (__highlightedIndex <= lastItemIndex && __highlightedIndex >= lastLineTopIndex)))
                {
+                       RedrawItem(__highlightedIndex);
+                       __highlightedIndex = INVALID_INDEX;
                        return false;
                }
                else if ((keyInfo.GetKeyCode() ==  _KEY_LEFT && __highlightedIndex == 0) || (keyInfo.GetKeyCode() ==  _KEY_RIGHT && __highlightedIndex == lastItemIndex))
@@ -5187,17 +5206,6 @@ _IconListPresenter::SetFocusUiIndexVerticalScrollList(const _KeyInfo& keyInfo)
                case _KEY_ENTER:
                {
                        __selectedIndex = __highlightedIndex;
-                       PreDrawCheckAnimation(__highlightedIndex);
-                       FireEventAfterTouchRelease(__highlightedIndex);
-
-                       if (__isTouchAnimationEnabled)
-                       {
-                               StartSelectAnimation(__highlightedIndex);
-                       }
-                       else
-                       {
-                               DrawCheckAnimation(__highlightedIndex);
-                       }
                        return true;
                }
 
@@ -5303,17 +5311,6 @@ _IconListPresenter::SetFocusUiIndexHorizontalScrollList(const _KeyInfo& keyInfo)
                case _KEY_ENTER:
                {
                        __selectedIndex = __highlightedIndex;
-                       PreDrawCheckAnimation(__highlightedIndex);
-                       FireEventAfterTouchRelease(__highlightedIndex);
-
-                       if (__isTouchAnimationEnabled)
-                       {
-                               StartSelectAnimation(__highlightedIndex);
-                       }
-                       else
-                       {
-                               DrawCheckAnimation(__highlightedIndex);
-                       }
                        return true;
                }
 
index eb5f090..29fe16e 100644 (file)
@@ -33,6 +33,7 @@
 #include "FUiCtrl_Form.h"
 #include "FUiCtrl_Indicator.h"
 #include "FUiCtrl_IndicatorManager.h"
+#include "FUiAnim_EflVisualElementSurfaceImpl.h"
 
 using namespace Tizen::Base::Runtime;
 using namespace Tizen::Graphics;
@@ -615,12 +616,38 @@ _Indicator::OnMessageHandle(Ecore_Evas *pEe, int msgDomain, int msgId, void *dat
                return;
        }
 
+       Evas_Object* pPortraitIndicatorEvasObject = (Evas_Object*)ecore_evas_data_get(pEe, pPortPublicKey);
+       Evas_Object* pLandscapeIndicatorEvasObject = (Evas_Object*)ecore_evas_data_get(pEe, pLandPublicKey);
+
        if (msgDomain == MSG_DOMAIN_CONTROL_INDICATOR)
        {
-               /*if (msg_id == MSG_ID_INDICATOR_REPEAT_EVENT)
+               if (msgId == MSG_ID_INDICATOR_REPEAT_EVENT)
                {
-                       int *repeat = static_cast<int*>(data);
-               }*/
+                       int *repeat = (int*)data;
+                       if (1 == *repeat)
+                       {
+                               if (pPortraitIndicatorEvasObject)
+                          {
+                                       evas_object_repeat_events_set(pPortraitIndicatorEvasObject, EINA_TRUE);
+                          }
+                               if (pLandscapeIndicatorEvasObject)
+                               {
+                          evas_object_repeat_events_set(pLandscapeIndicatorEvasObject, EINA_TRUE);
+                               }
+                       }
+                       else
+                       {
+                               if (pPortraitIndicatorEvasObject)
+                          {
+                          evas_object_repeat_events_set(pPortraitIndicatorEvasObject, EINA_FALSE);
+                          }
+                               if (pLandscapeIndicatorEvasObject)
+                               {
+                          evas_object_repeat_events_set(pLandscapeIndicatorEvasObject, EINA_FALSE);
+                               }
+                       }
+               }
+
                if (msgId == MSG_ID_INDICATOR_TYPE)
                {
                        _IndicatorTypeMode *pIndicatorTypeMode = (_IndicatorTypeMode*)(data);
@@ -642,4 +669,27 @@ _Indicator::OnMessageHandle(Ecore_Evas *pEe, int msgDomain, int msgId, void *dat
        }
 }
 
+HitTestResult
+_Indicator::OnHitTest(const Tizen::Graphics::FloatPoint& point)
+{
+       if (!IsVisible())
+       {
+               return HIT_TEST_NOWHERE;
+       }
+
+       if (!GetBounds().Contains(point))
+       {
+               return HIT_TEST_NOWHERE;
+       }
+
+       _VisualElementImpl* pImpl = _VisualElementImpl::GetInstance(*this->__pCurrentVisualElement);
+       _EflVisualElementSurfaceImpl* pSurface = dynamic_cast<_EflVisualElementSurfaceImpl*>(_VisualElementSurfaceImpl::GetInstance(*pImpl->GetNativeNode()->GetSurface()));
+       Evas_Object* pImageObject = (Evas_Object*)pSurface->GetNativeHandle();
+
+       if (!evas_object_repeat_events_get(pImageObject))
+               return HIT_TEST_MATCH;
+       else
+               return HIT_TEST_NOWHERE;
+}
+
 }}} // Tizen::Ui::Controls
index 82e2621..ff7ae83 100644 (file)
@@ -33,6 +33,8 @@
 #include "FUiCtrl_IndicatorManager.h"
 #include "FUiCtrl_Form.h"
 #include "FUiCtrl_Frame.h"
+#include "FUiCtrl_Popup.h"
+#include "FUiCtrl_Keypad.h"
 
 using namespace Tizen::Base::Collection;
 using namespace Tizen::Graphics;
@@ -251,6 +253,14 @@ _IndicatorManager::AddWindow(_Window* pWindow)
 {
        result r = E_SUCCESS;
 
+       _Frame* pFrame = dynamic_cast<_Frame*>(pWindow);
+       _Popup* pPopup = dynamic_cast<_Popup*>(pWindow);
+       _Keypad* pKeypad = dynamic_cast<_Keypad*>(pWindow);
+
+       if ((pFrame == null) && (pPopup == null) && (pKeypad ==null))
+       {
+               return E_SUCCESS;
+       }
 
        IndicatorComponent* pIndicatorComponentArray = MakeIndicatorComponentArrayN(pWindow);
 
@@ -265,6 +275,14 @@ _IndicatorManager::DeleteWindow(_Window* pWindow)
        result r = E_SUCCESS;
        IndicatorComponent* pIndicatorComponentArray = null;
 
+       _Frame* pFrame = dynamic_cast<_Frame*>(pWindow);
+       _Popup* pPopup = dynamic_cast<_Popup*>(pWindow);
+       _Keypad* pKeypad = dynamic_cast<_Keypad*>(pWindow);
+
+       if ((pFrame == null) && (pPopup == null) && (pKeypad ==null))
+       {
+               return E_SUCCESS;
+       }
 
        r = __indicatorMap.GetValue(pWindow, pIndicatorComponentArray);
        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS && pIndicatorComponentArray, r, r, "[%s] Propagating.", GetErrorMessage(r));
index 1855b72..0bf8e14 100755 (executable)
@@ -431,11 +431,6 @@ _Keypad::ChangeLayoutInternal(LayoutChangeState layoutChangeState)
                isClipboardExist = __pChildEdit->IsClipboardExist();
        }
 
-       if ((isClipboardExist && layoutChangeState == LAYOUT_CHANGE_ROTATE))
-       {
-               return E_SUCCESS;
-       }
-
        if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
        {
                bounds.width = screenSize.width;
@@ -451,10 +446,6 @@ _Keypad::ChangeLayoutInternal(LayoutChangeState layoutChangeState)
        {
                GET_SHAPE_CONFIG(FORM::INDICATOR_HEIGHT, GetOrientation(), indicatorHeight);
        }
-       else
-       {
-               GET_SHAPE_CONFIG(FORM::INDICATOR_MINIMIZE_HEIGHT, GetOrientation(), indicatorHeight);
-       }
 
        SetResizable(true);
        SetMovable(true);
@@ -473,26 +464,33 @@ _Keypad::ChangeLayoutInternal(LayoutChangeState layoutChangeState)
        editRect.height -= indicatorHeight;
        editRect.height -= footerHeight;
 
-       if ( isKeypadExist || isClipboardExist)
+       if ((isClipboardExist && layoutChangeState == LAYOUT_CHANGE_ROTATE))
+       {
+               ;
+       }
+       else
        {
-               if (isKeypadExist)
+               if ( isKeypadExist || isClipboardExist)
                {
-                       r = __pChildEdit->GetKeypadBounds(keypadRect);
-                       SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
-               }
+                       if (isKeypadExist)
+                       {
+                               r = __pChildEdit->GetKeypadBounds(keypadRect);
+                               SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+                       }
 
-               if (isClipboardExist)
-               {
-                       clipboardHeight = __pChildEdit->GetClipboardHeight();
-               }
+                       if (isClipboardExist)
+                       {
+                               clipboardHeight = __pChildEdit->GetClipboardHeight();
+                       }
 
-               if (clipboardHeight > keypadRect.height)
-               {
-                       editRect.height -= clipboardHeight;
-               }
-               else
-               {
-                       editRect.height -= keypadRect.height;
+                       if (clipboardHeight > keypadRect.height)
+                       {
+                               editRect.height -= clipboardHeight;
+                       }
+                       else
+                       {
+                               editRect.height -= keypadRect.height;
+                       }
                }
        }
 
@@ -578,15 +576,9 @@ _Keypad::IsRotationSynchronized(void) const
 void
 _Keypad::OnDraw(void)
 {
-       Canvas* pCanvas = GetCanvasN();
-       SysTryReturnVoidResult(NID_UI_CTRL, pCanvas, E_SYSTEM, "[E_SYSTEM] System error occurred.");
-
        Color backgroundColor;
        GET_COLOR_CONFIG(EDIT::BG_NORMAL, backgroundColor);
-
-       pCanvas->SetBackgroundColor(backgroundColor);
-       pCanvas->Clear();
-       delete pCanvas;
+       SetBackgroundColor(backgroundColor);
 
        return;
 }
index 3f5ceb7..d61efa5 100755 (executable)
@@ -605,16 +605,11 @@ _OptionMenuItem::DrawArrow(void)
                pArrowBitmap = null;
        }
 
-       arrowbounds = FloatRectangle(bounds.x + bounds.width - __arrowMargin - __rightMargin,
-                       (__itemHeight - __pArrowBitmap->GetHeight())/2.0f, __pArrowBitmap->GetWidth(), __pArrowBitmap->GetHeight());
-
        if (__pArrowLabel == null)
        {
                __pArrowLabel = _Label::CreateLabelN();
         SysTryCatch(NID_UI_CTRL, (__pArrowLabel != null), , r, "[%s] Propagating.", GetErrorMessage(r));
 
-               __pArrowLabel->SetBounds(FloatRectangle(arrowbounds));
-
                AttachChild(*__pArrowLabel);
 
                _AccessibilityContainer* pContainer = __pArrowLabel->GetAccessibilityContainer();
@@ -624,6 +619,10 @@ _OptionMenuItem::DrawArrow(void)
                }
        }
 
+       arrowbounds = FloatRectangle(bounds.x + bounds.width - __arrowMargin - __rightMargin,
+                               (__itemHeight - __pArrowBitmap->GetHeight())/2.0f, __pArrowBitmap->GetWidth(), __pArrowBitmap->GetHeight());
+       __pArrowLabel->SetBounds(FloatRectangle(arrowbounds));
+
        if (__selected == true)
        {
                if (__pArrowPressedBitmap)
@@ -659,14 +658,14 @@ CATCH:
 void
 _OptionMenuItem::DrawItemUpperDivider(void)
 {
+       FloatRectangle bounds(0.0f, 0.0f, 0.0f, 0.0f);
+       Color dividerLineColor(0, 0, 0, 0);
+
        if (__pUpperDividerLineLabel == null)
        {
                __pUpperDividerLineLabel = _Label::CreateLabelN();
                SysTryReturnVoidResult(NID_UI_CTRL, __pUpperDividerLineLabel, E_OUT_OF_MEMORY, "[%s] Propagating.", GetErrorMessage(GetLastResult()));
 
-               FloatRectangle bounds = GetBoundsF();
-               __pUpperDividerLineLabel->SetBounds(FloatRectangle(__leftMargin, 0.0f, bounds.width - __leftMargin - __rightMargin, __dividerHeight));
-
                AttachChild(*__pUpperDividerLineLabel);
 
                _AccessibilityContainer* pContainer = __pUpperDividerLineLabel->GetAccessibilityContainer();
@@ -676,12 +675,13 @@ _OptionMenuItem::DrawItemUpperDivider(void)
                }
        }
 
-       Color dividerLineColor = Color(0, 0, 0, 0);
+       bounds = GetBoundsF();
        if (__selected == false)
        {
                dividerLineColor = __upperDividerLineColor;
        }
 
+       __pUpperDividerLineLabel->SetBounds(FloatRectangle(__leftMargin, 0.0f, bounds.width - __leftMargin - __rightMargin, __dividerHeight));
        __pUpperDividerLineLabel->SetBackgroundColor(dividerLineColor);
        __pUpperDividerLineLabel->Invalidate();
 }
@@ -758,14 +758,14 @@ _OptionMenuItem::DrawItemBackground(void)
 void
 _OptionMenuItem::DrawItemLowerDivider(void)
 {
+       FloatRectangle bounds(0.0f, 0.0f, 0.0f, 0.0f);
+       Color dividerLineColor(0, 0, 0, 0);
+
        if (__pLowerDividerLineLabel == null)
        {
                __pLowerDividerLineLabel = _Label::CreateLabelN();
                SysTryReturnVoidResult(NID_UI_CTRL, __pLowerDividerLineLabel, E_OUT_OF_MEMORY, "[%s] Propagating.", GetErrorMessage(GetLastResult()));
 
-               FloatRectangle bounds = GetBoundsF();
-               __pLowerDividerLineLabel->SetBounds(FloatRectangle(__leftMargin, bounds.height - __dividerHeight, bounds.width - __leftMargin - __rightMargin, __dividerHeight));
-
                AttachChild(*__pLowerDividerLineLabel);
 
                _AccessibilityContainer* pContainer = __pLowerDividerLineLabel->GetAccessibilityContainer();
@@ -775,12 +775,13 @@ _OptionMenuItem::DrawItemLowerDivider(void)
                }
        }
 
-       Color dividerLineColor = Color(0, 0, 0, 0);
+       bounds = GetBoundsF();
        if (__selected == false)
        {
                dividerLineColor = __lowerDividerLineColor;
        }
 
+       __pLowerDividerLineLabel->SetBounds(FloatRectangle(__leftMargin, bounds.height - __dividerHeight, bounds.width - __leftMargin - __rightMargin, __dividerHeight));
        __pLowerDividerLineLabel->SetBackgroundColor(dividerLineColor);
        __pLowerDividerLineLabel->Invalidate();
 }
index 0466c38..510255a 100755 (executable)
@@ -139,7 +139,7 @@ _OptionMenuPresenter::LoadShape(void)
 }
 
 _OptionMenuItem*
-_OptionMenuPresenter::CreateItem(const String& text, int actionId, const Bitmap* pNormalBitmap, const Bitmap* pPressedBitmap, const Bitmap* pHighlightedBitmap)
+_OptionMenuPresenter::CreateItem(const String& text, int actionId, const Bitmap* pNormalBitmap, const Bitmap* pPressedBitmap, const Bitmap* pHighlightedBitmap, bool isSubItem)
 {
        _OptionMenuItem* pItem = _OptionMenuItem::CreateOptionMenuItemN();
     SysTryReturn(NID_UI_CTRL, pItem != null, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
@@ -227,14 +227,12 @@ _OptionMenuPresenter::CreateItem(const String& text, int actionId, const Bitmap*
        textArea.width  += 2.0f * labelLeftMargin;
        textArea.height += 2.0f * labelTopMargin;
        itemSize.height = __itemHeight + (__dividerHeight * 2.0f);
+       itemSize.width =  __leftMargin + textArea.width + __rightMargin;
+
        if (itemType == OPTION_MENU_ITEM_DRAWING_TYPE_BITMAP)
        {
                bitmapWidth = __itemBitmapWidth;
-               itemSize.width =  textArea.width + bitmapWidth + labelLeftMargin;
-       }
-       else
-       {
-               itemSize.width =  textArea.width;
+               itemSize.width =  itemSize.width + bitmapWidth;
        }
 
        itemSize.width = itemSize.width < __itemMinWidth ? __itemMinWidth : itemSize.width;
@@ -279,7 +277,10 @@ _OptionMenuPresenter::CreateItem(const String& text, int actionId, const Bitmap*
        }
        pItem->SetTextLabel(pLabel);
 
-       __itemWidth = __itemWidth < itemSize.width ? itemSize.width : __itemWidth;
+       if (!isSubItem)
+       {
+               __itemWidth = __itemWidth < itemSize.width ? itemSize.width : __itemWidth;
+       }
 
        pItem->SetTouchPressThreshold(TOUCH_PRESS_THRESHOLD_INSENSITIVE);
        return pItem;
@@ -289,7 +290,7 @@ result
 _OptionMenuPresenter::AddItem(const String& text, int actionId, const Bitmap* normalBitmap, const Bitmap* pPressedBitmap, const Bitmap* pHighlightedBitmap)
 {
        _OptionMenuItem* pItem = CreateItem(text, actionId, normalBitmap, pPressedBitmap, pHighlightedBitmap);
-    SysTryReturn(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "Memory allocation failed.");
+       SysTryReturn(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "Memory allocation failed.");
 
        result r = __pModel->AddItem(pItem);
 
@@ -307,7 +308,7 @@ _OptionMenuPresenter::AddSubItem(int mainIndex, const String& text, int actionId
 {
        SysTryReturn(NID_UI_CTRL, mainIndex >=0 && mainIndex < __pModel->GetItemCount(), E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] Invalid mainIndex %d.", mainIndex);
 
-       _OptionMenuItem* pItem = CreateItem(text, actionId, null, null, null);
+       _OptionMenuItem* pItem = CreateItem(text, actionId, null, null, null, true);
     SysTryReturn(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "Memory allocation failed.");
 
        result r = __pModel->AddItem(pItem, mainIndex);
@@ -362,7 +363,7 @@ _OptionMenuPresenter::InsertSubItemAt(int mainIndex, int subIndex, const String&
        SysTryReturn(NID_UI_CTRL, mainIndex >=0 && mainIndex < __pModel->GetItemCount(), E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] Invalid mainIndex %d.", mainIndex);
        SysTryReturn(NID_UI_CTRL, subIndex >=0 && subIndex <= __pModel->GetSubItemCount(mainIndex), E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] Invalid subIndex %d.", subIndex);
 
-       _OptionMenuItem* pItem = CreateItem(text, actionId, null, null, null);
+       _OptionMenuItem* pItem = CreateItem(text, actionId, null, null, null, true);
     SysTryReturn(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "Memory allocation failed.");
 
        result r = __pModel->InsertItemAt(pItem, mainIndex, subIndex);
@@ -426,7 +427,49 @@ _OptionMenuPresenter::SetItem(int index, const String& text, int actionId, const
 {
        SysTryReturn(NID_UI_CTRL, index >=0 && index < __pModel->GetItemCount(), E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] Invalid mainIndex %d.", index);
 
-       return __pModel->SetItemAt(index, text, actionId, normalBitmap, pPressedBitmap, pHighlightedBitmap, __itemFontSize);
+       result r = __pModel->SetItemAt(index, text, actionId, normalBitmap, pPressedBitmap, pHighlightedBitmap, __itemFontSize);
+       SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+
+       _OptionMenuItem* pItem = __pModel->GetItem(index);
+
+       if (pItem == null)
+       {
+               SysLog(NID_UI_CTRL, "Item is null.");
+               return r;
+       }
+
+       float bitmapWidth = 0.0f;
+       FloatDimension textArea(0.0f, 0.0f);
+       FloatDimension itemSize(0.0f, 0.0f);
+
+       __pFont->GetTextExtent(text, text.GetLength(), textArea);
+
+       float labelLeftMargin = 0.0f;
+
+       GET_SHAPE_CONFIG(LABEL::LEFT_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, labelLeftMargin);
+
+       textArea.width  += 2.0f * labelLeftMargin;
+       itemSize.width =  __leftMargin + textArea.width + __rightMargin;
+
+       if (pItem->GetType() == OPTION_MENU_ITEM_DRAWING_TYPE_BITMAP)
+       {
+               bitmapWidth = __itemBitmapWidth;
+               itemSize.width =  itemSize.width + bitmapWidth;
+       }
+
+       itemSize.width = itemSize.width < __itemMinWidth ? __itemMinWidth : itemSize.width;
+
+       if (itemSize.width > __itemMaxWidth)
+       {
+               textArea.width -= itemSize.width - __itemMaxWidth;
+               itemSize.width = __itemMaxWidth;
+       }
+
+       pItem->SetSize(itemSize);
+
+       __itemWidth = __itemWidth < itemSize.width ? itemSize.width : __itemWidth;
+
+       return r;
 }
 
 result
index c0474e7..16730f2 100644 (file)
@@ -459,32 +459,35 @@ _PopupPresenter::Draw(void)
        // Draw Title
        if (__pPopup->HasTitle())
        {
-               const Bitmap* pTitleBitmap = __pPopup->GetTitleBackgroundBitmap();
-               const Bitmap* pTitleEffectBitmap = __pPopup->GetTitleBackgroundEffectBitmap();
-
-               //DrawTitleBG
-               if(pTitleBitmap != null)
+               if (__pPopup->GetColor() != Color(0x00000000))
                {
-                       if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pTitleBitmap))
-                       {
-                               pCanvas->DrawNinePatchedBitmap(_titleBgBounds, *pTitleBitmap);
-                       }
-                       else
-                       {
-                               pCanvas->DrawBitmap(_titleBgBounds, *pTitleBitmap);
-                       }
-               }
+                       const Bitmap* pTitleBitmap = __pPopup->GetTitleBackgroundBitmap();
+                       const Bitmap* pTitleEffectBitmap = __pPopup->GetTitleBackgroundEffectBitmap();
 
-               //DrawEffectTitleBitmap
-               if (pTitleEffectBitmap != null)
-               {
-                       if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pTitleEffectBitmap))
+                       //DrawTitleBG
+                       if(pTitleBitmap != null)
                        {
-                               pCanvas->DrawNinePatchedBitmap(_titleBgBounds, *pTitleEffectBitmap);
+                               if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pTitleBitmap))
+                               {
+                                       pCanvas->DrawNinePatchedBitmap(_titleBgBounds, *pTitleBitmap);
+                               }
+                               else
+                               {
+                                       pCanvas->DrawBitmap(_titleBgBounds, *pTitleBitmap);
+                               }
                        }
-                       else
+
+                       //DrawEffectTitleBitmap
+                       if (pTitleEffectBitmap != null)
                        {
-                               pCanvas->DrawBitmap(_titleBgBounds, *pTitleEffectBitmap);
+                               if (_BitmapImpl::CheckNinePatchedBitmapStrictly(*pTitleEffectBitmap))
+                               {
+                                       pCanvas->DrawNinePatchedBitmap(_titleBgBounds, *pTitleEffectBitmap);
+                               }
+                               else
+                               {
+                                       pCanvas->DrawBitmap(_titleBgBounds, *pTitleEffectBitmap);
+                               }
                        }
                }
 
@@ -504,7 +507,7 @@ _PopupPresenter::Draw(void)
        // Draw Outline
        if (!isCustomBitmap && __pPopup->GetOutlineBitmap() != null &&
                _FloatCompareGE(pBounds.width, minSize.width) &&
-               _FloatCompareGE(pBounds.height, minSize.height))
+            _FloatCompareGE(pBounds.height, minSize.height) && __pPopup->GetColor() != Color(0x00000000))
        {
                FloatRectangle bounds(0.0f,
                                                 0.0f,
index c15a86a..c5135a9 100644 (file)
@@ -447,9 +447,19 @@ _ScrollPanel::OnAccessibilityValueDecreased(const _AccessibilityContainer& contr
 void
 _ScrollPanel::OnChildControlFocusMoved(const _Control& control)
 {
+       ClearLastResult();
+
        __pScrollPanelPresenter->OnChildControlFocusMoved(control);
 }
 
+void
+_ScrollPanel::OnDescendantControlFocusMoved(const _Control& control)
+{
+       ClearLastResult();
+
+       __pScrollPanelPresenter->OnDescendantControlFocusMoved(control);
+}
+
 bool
 _ScrollPanel::OnAccessibilityItemRefreshed(const _AccessibilityContainer& control, const _AccessibilityElement& element, _AccessibilityFocusDirection direction)
 {
@@ -765,6 +775,14 @@ _ScrollPanel::SetHorizontalScrollPosition(float position)
        __pScrollPanelPresenter->SetHorizontalScrollPosition(position);
 }
 
+float
+_ScrollPanel::CalculatePagingScrollPosition(float position) const
+{
+       ClearLastResult();
+
+       return __pScrollPanelPresenter->CalculatePagingScrollPosition(position);
+}
+
 bool
 _ScrollPanel::ScrollToControl(const _Control& source, bool recursive)
 {
index 626c720..391e184 100644 (file)
@@ -60,6 +60,7 @@ namespace Tizen { namespace Ui { namespace Controls
 _ScrollPanelPresenter::_ScrollPanelPresenter(void)
        : __pScrollPanel(null)
        , __pScrollPanelModel(null)
+       , __limitAnimationDistance(0.0f)
        , __pPressedControl(null)
        , __subControlMoved(false)
        , __touchPressed(false)
@@ -493,41 +494,8 @@ _ScrollPanelPresenter::RunTouchReleased(const _Control& source, const _TouchInfo
 
        if (__pScrollPanel->IsPageScrollEnabled() && !__flickRunning && !__jumpToTopRunning)
        {
-               float currentPosition = 0.0f;
-               float maxPosition = 0.0f;
-               float pageSize = 0.0f;
-
-               if (__pScrollPanel->GetScrollDirection() == SCROLL_PANEL_SCROLL_DIRECTION_HORIZONTAL)
-               {
-                       pageSize = __pScrollPanel->GetPageScrollAlignSize().width;
-                       maxPosition = GetScrollAreaBounds().width - __pScrollPanel->GetBoundsF().width;
-                       currentPosition = GetHorizontalScrollPosition();
-               }
-               else
-               {
-                       pageSize = __pScrollPanel->GetPageScrollAlignSize().height;
-                       maxPosition = GetScrollAreaBounds().height - __pScrollPanel->GetBoundsF().height;
-                       currentPosition = GetVerticalScrollPosition();
-               }
-
-               float targetPosition = 0.0f;
-               int lowerPageIndex = currentPosition / pageSize;
-               float currentPageMin = pageSize * lowerPageIndex;
-               float pageGap = currentPosition - currentPageMin;
-               float currentPageMax = currentPageMin + pageSize;
-               if (currentPageMax > maxPosition)
-               {
-                       currentPageMax = maxPosition;
-               }
-
-               if (pageGap <= currentPageMax - currentPageMin - pageGap)
-               {
-                       targetPosition = currentPageMin;
-               }
-               else
-               {
-                       targetPosition = currentPageMax;
-               }
+               float currentPosition = GetScrollPosition();
+               float targetPosition = CalculatePagingScrollPosition(currentPosition);
 
                if (!_FloatCompare(targetPosition, currentPosition))
                {
@@ -1050,7 +1018,7 @@ _ScrollPanelPresenter::DoFlickGestureRecognized(_TouchFlickGestureDetector& gest
                                }
                        }
 
-                       ScrollTo(targetPosition, true);
+                       FlickTo(targetPosition, gesture.GetDuration());
                        result r = GetLastResult();
                        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] Propagating.", GetErrorMessage(r));
 
@@ -1087,20 +1055,20 @@ _ScrollPanelPresenter::OnFlickGestureCanceled(_TouchFlickGestureDetector& gestur
 bool
 _ScrollPanelPresenter::IsControlOutOfView(const _Control& control) const
 {
-       FloatRectangle controlBounds = control.GetBoundsF();
-       float scrollPosition = __pScrollPanel->GetScrollPosition();
+       FloatRectangle controlBounds = control.GetAbsoluteBoundsF();
+       FloatRectangle scrollPanelBounds = __pScrollPanel->GetAbsoluteBoundsF();
 
        // is control out of view area
        if (__pScrollPanel->GetScrollDirection() == SCROLL_PANEL_SCROLL_DIRECTION_HORIZONTAL)
        {
-               if (controlBounds.x < scrollPosition || controlBounds.x + controlBounds.width > scrollPosition + __pScrollPanel->GetBoundsF().width)
+               if (controlBounds.x < scrollPanelBounds.x || controlBounds.x + controlBounds.width > scrollPanelBounds.x + scrollPanelBounds.width)
                {
                        return true;
                }
        }
        else
        {
-               if (controlBounds.y < scrollPosition || controlBounds.y + controlBounds.height > scrollPosition + __pScrollPanel->GetBoundsF().height)
+               if (controlBounds.y < scrollPanelBounds.y || controlBounds.y + controlBounds.height > scrollPanelBounds.y + scrollPanelBounds.height)
                {
                        return true;
                }
@@ -1114,12 +1082,51 @@ _ScrollPanelPresenter::ScrollToControlWhenOutOfView(const _Control& control)
 {
        if (IsControlOutOfView(control))
        {
-               ScrollToControl(control, false);
+               ScrollToControl(control, true);
                result r = GetLastResult();
                SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
        }
 }
 
+float
+_ScrollPanelPresenter::CalculatePagingScrollPosition(float position) const
+{
+       float maxPosition = 0.0f;
+       float pageSize = 0.0f;
+
+       if (__pScrollPanel->GetScrollDirection() == SCROLL_PANEL_SCROLL_DIRECTION_HORIZONTAL)
+       {
+               pageSize = __pScrollPanel->GetPageScrollAlignSize().width;
+               maxPosition = GetScrollAreaBounds().width - __pScrollPanel->GetBoundsF().width;
+       }
+       else
+       {
+               pageSize = __pScrollPanel->GetPageScrollAlignSize().height;
+               maxPosition = GetScrollAreaBounds().height - __pScrollPanel->GetBoundsF().height;
+       }
+
+       float targetPosition = 0.0f;
+       int lowerPageIndex = position / pageSize;
+       float currentPageMin = pageSize * lowerPageIndex;
+       float pageGap = position - currentPageMin;
+       float currentPageMax = currentPageMin + pageSize;
+       if (currentPageMax > maxPosition)
+       {
+               currentPageMax = maxPosition;
+       }
+
+       if (pageGap <= currentPageMax - currentPageMin - pageGap)
+       {
+               targetPosition = currentPageMin;
+       }
+       else
+       {
+               targetPosition = currentPageMax;
+       }
+
+       return targetPosition;
+}
+
 void
 _ScrollPanelPresenter::RollbackBouncing(bool withAnimation)
 {
@@ -1209,6 +1216,12 @@ _ScrollPanelPresenter::OnChildControlFocusMoved(const _Control& control)
        ScrollToControlWhenOutOfView(control);
 }
 
+void
+_ScrollPanelPresenter::OnDescendantControlFocusMoved(const _Control& control)
+{
+       ScrollToControlWhenOutOfView(control);
+}
+
 bool
 _ScrollPanelPresenter::OnAccessibilityItemRefreshed(const _AccessibilityContainer& control, const _AccessibilityElement& element, _AccessibilityFocusDirection direction)
 {
@@ -1464,10 +1477,40 @@ _ScrollPanelPresenter::ScrollToControl(const _Control& source, bool recursive)
                        _ScrollPanel* pScrollPanelParent = dynamic_cast<_ScrollPanel*> (pParent);
                        if (pScrollPanelParent != null)
                        {
-                               pScrollPanelParent->SetScrollPosition(controlPosition, false);
+                               FloatDimension pagingGap(0.0f, 0.0f);
+                               if (pScrollPanelParent->IsPageScrollEnabled())
+                               {
+                                       FloatPoint pagingPosition = controlPosition;
+                                       if (pScrollPanelParent->GetScrollDirection() == SCROLL_PANEL_SCROLL_DIRECTION_HORIZONTAL)
+                                       {
+                                               pagingPosition.x = pScrollPanelParent->CalculatePagingScrollPosition(controlPosition.x);
+                                               pagingGap.width = controlPosition.x - pagingPosition.x;
+                                               if (pagingGap.width < 0.0f)
+                                               {
+                                                       pagingPosition.x -= pScrollPanelParent->GetPageScrollAlignSize().width;
+                                                       pagingGap.width += pScrollPanelParent->GetPageScrollAlignSize().width;
+                                               }
+                                       }
+                                       else
+                                       {
+                                               pagingPosition.y = pScrollPanelParent->CalculatePagingScrollPosition(controlPosition.y);
+                                               pagingGap.height = controlPosition.y - pagingPosition.y;
+                                               if (pagingGap.height < 0.0f)
+                                               {
+                                                       pagingPosition.y -= pScrollPanelParent->GetPageScrollAlignSize().height;
+                                                       pagingGap.height += pScrollPanelParent->GetPageScrollAlignSize().height;
+                                               }
+                                       }
 
-                               controlPosition.x -= pScrollPanelParent->GetHorizontalScrollPosition();
-                               controlPosition.y -= pScrollPanelParent->GetVerticalScrollPosition();
+                                       pScrollPanelParent->SetScrollPosition(pagingPosition, false);
+                               }
+                               else
+                               {
+                                       pScrollPanelParent->SetScrollPosition(controlPosition, false);
+                               }
+
+                               controlPosition.x -= pScrollPanelParent->GetHorizontalScrollPosition() + pagingGap.width;
+                               controlPosition.y -= pScrollPanelParent->GetVerticalScrollPosition() + pagingGap.height;
                        }
 
                        FloatPoint parentPosition = pParent->GetPositionF();
@@ -1478,6 +1521,34 @@ _ScrollPanelPresenter::ScrollToControl(const _Control& source, bool recursive)
                }
        }
 
+       if (__pScrollPanel->IsPageScrollEnabled())
+       {
+               FloatPoint pagingPosition = controlPosition;
+               if (__pScrollPanel->GetScrollDirection() == SCROLL_PANEL_SCROLL_DIRECTION_HORIZONTAL)
+               {
+                       pagingPosition.x  = CalculatePagingScrollPosition(controlPosition.x);
+                       if (pagingPosition.x > controlPosition.x)
+                       {
+                               controlPosition.x = pagingPosition.x - __pScrollPanel->GetPageScrollAlignSize().width;
+                       }
+                       else
+                       {
+                               controlPosition.x = pagingPosition.x;
+                       }
+               }
+               else
+               {
+                       pagingPosition.y  = CalculatePagingScrollPosition(controlPosition.y);
+                       if (pagingPosition.y > controlPosition.y)
+                       {
+                               controlPosition.y = pagingPosition.y - __pScrollPanel->GetPageScrollAlignSize().height;
+                       }
+                       else
+                       {
+                               controlPosition.y = pagingPosition.y;
+                       }
+               }
+       }
        SetScrollPosition(controlPosition, true);
        result r = GetLastResult();
        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] Propagating.", GetErrorMessage(r));
@@ -1967,5 +2038,12 @@ _ScrollPanelPresenter::AccumulateFlickGesture(_FlickDirection direction)
        return false;
 }
 
+
+float
+_ScrollPanelPresenter::FlickTo(float targetPosition, float duration)
+{
+       return ScrollTo(targetPosition, true);
+}
+
 }}}    // Tizen::Ui::Controls
 
index d04db7a..dc4f87d 100644 (file)
@@ -78,6 +78,7 @@ _SearchBar::_SearchBar(void)
        , __isFocusCallbackToBeFired(true)
        , __isButtonTextChangedByApp(false)
        , __contentVisibilitySetByApp(true)
+       , __isInFocusMode(false)
        , __keypadAction(CORE_KEYPAD_ACTION_SEARCH)
        , __pBackgroundBitmap(null)
        , __backgroundColor(Color())
@@ -265,8 +266,7 @@ _SearchBar::Initialize(bool enableSearchBarButton, CoreKeypadAction keypadAction
 
        __pSearchBarPresenter = pPresenter;
 
-       CreateAccessibilityElement();
-       AttachChildContainers();
+       InitializeAccessibility();
 
        r = _SettingInfoImpl::AddSettingEventListener(*this);
        SysTryCatch(NID_UI, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
@@ -581,12 +581,18 @@ _SearchBar::IsModeLocked(void) const
 result
 _SearchBar::SetMode(SearchBarMode mode)
 {
+       _AccessibilityElement* pEditElement = __pEdit->GetTextAccessibilityElement();
        if (mode == SEARCH_BAR_MODE_NORMAL)
        {
-               __pEdit->GetAccessibilityContainer()->Activate(false);
-               __pCancelButton->GetAccessibilityContainer()->Activate(false);
-               GetAccessibilityContainer()->Activate(true);
+               pEditElement->SetHint("Double Tap To Type Search Text");
        }
+       else
+       {
+               pEditElement->SetHint("Enter Search Text");
+       }
+
+       pEditElement->SetTrait("SearchBar");
+       pEditElement->SetName("SearchField");
 
        return __pSearchBarPresenter->SetMode(mode);
 }
@@ -1605,7 +1611,6 @@ _SearchBar::OnPreviewTouchReleased(const _Control& source, const _TouchInfo& tou
                return _UI_TOUCH_EVENT_DELIVERY_YES;
        }
 
-       __pEdit->SetSearchFieldFocus(false);
        SetContentAreaVisible(__contentVisibilitySetByApp);     //When a touch happens on SearchField
        SetFocusCallbackParameter(true);
        SetMode(SEARCH_BAR_MODE_INPUT);
@@ -1814,6 +1819,7 @@ _SearchBar::OnFocusLost(const _Control &source)
 void
 _SearchBar::OnDrawFocus(void)
 {
+       __isInFocusMode = true;
        __pEdit->SetSearchFieldFocus(true);
        _Control::OnDrawFocus();
 
@@ -1823,6 +1829,10 @@ _SearchBar::OnDrawFocus(void)
 void
 _SearchBar::OnFocusModeStateChanged(void)
 {
+       __isInFocusMode = false;
+       __pEdit->SetSearchFieldFocus(false);
+       __pEdit->Invalidate();
+
        return;
 }
 
@@ -1838,6 +1848,8 @@ _SearchBar::OnPreviewKeyPressed(const _Control &source, const _KeyInfo &keyInfo)
 
        switch (keyCode)
        {
+               case _KEY_UP:
+               case _KEY_DOWN:
                case _KEY_TAB:
                        SetFocusCallbackParameter(true);
                        if ((__pContentControl && __pContentControl->IsVisible() == false) || !__pContentControl)
@@ -1860,7 +1872,7 @@ _SearchBar::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
                return false;
        }
 
-       if (!__pEdit->IsSearchFieldFocused())
+       if (!__isInFocusMode)
        {
                return false;
        }
@@ -1974,73 +1986,6 @@ _SearchBar::OnCanvasRequestedN(const FloatRectangle& bounds)
        return __pSearchBarPresenter->OnCanvasRequestedN(bounds);
 }
 
-bool
-_SearchBar::OnAccessibilityFocusMovedNext(const _AccessibilityContainer& control, const _AccessibilityElement& element)
-{
-       return false;
-}
-
-bool
-_SearchBar::OnAccessibilityFocusMovedPrevious(const _AccessibilityContainer& control, const _AccessibilityElement& element)
-{
-       return false;
-}
-
-bool
-_SearchBar::OnAccessibilityReadingElement(const _AccessibilityContainer& control, const _AccessibilityElement& element)
-{
-       return false;
-}
-
-bool
-_SearchBar::OnAccessibilityReadElement(const _AccessibilityContainer& control, const _AccessibilityElement& element)
-{
-       return false;
-}
-
-bool
-_SearchBar::OnAccessibilityFocusIn(const _AccessibilityContainer& control, const _AccessibilityElement& element)
-{
-       return false;
-}
-
-bool
-_SearchBar::OnAccessibilityFocusOut(const _AccessibilityContainer& control, const _AccessibilityElement& element)
-{
-       return false;
-}
-
-bool
-_SearchBar::OnAccessibilityActionPerformed(const _AccessibilityContainer& control, const _AccessibilityElement& element)
-{
-       if (__pAccessibilitySearchBarElement == &element)
-       {
-               SetMode(SEARCH_BAR_MODE_INPUT);
-               __pEdit->GetAccessibilityContainer()->Activate(true);
-               __pCancelButton->GetAccessibilityContainer()->Activate(true);
-               GetAccessibilityContainer()->Activate(false);
-       }
-
-       _AccessibilityElement* pEditElement = __pEdit->GetTextAccessibilityElement();
-       _AccessibilityManager* pAccessibilityManager = _AccessibilityManager::GetInstance();
-       pAccessibilityManager->SetGlobalFocusedElement(*pEditElement);
-       pAccessibilityManager->RequestToDrawFocusUi();
-
-       return false;
-}
-
-bool
-_SearchBar::OnAccessibilityValueIncreased(const _AccessibilityContainer& control, const _AccessibilityElement& element)
-{
-       return false;
-}
-
-bool
-_SearchBar::OnAccessibilityValueDecreased(const _AccessibilityContainer& control, const _AccessibilityElement& element)
-{
-       return false;
-}
-
 _Control*
 _SearchBar::GetParentForm(void) const
 {
@@ -2656,56 +2601,34 @@ CATCH:
        __pClippedGroupControl = null;
 
        return r;
-
 }
 
 void
-_SearchBar::CreateAccessibilityElement(void)
+_SearchBar::InitializeAccessibility(void)
 {
-       if (__pAccessibilitySearchBarElement != null)
-       {
-               return;
-       }
-
-       _AccessibilityContainer* pContainer = null;
-       pContainer = GetAccessibilityContainer();
-
-       if (pContainer)
-       {
-               __pAccessibilitySearchBarElement = new (std::nothrow) _AccessibilityElement(true);
-               SysTryReturnVoidResult(NID_UI_CTRL, __pAccessibilitySearchBarElement, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to allocate memory.");
-               __pAccessibilitySearchBarElement->SetBounds(FloatRectangle(0.0f, 0.0f, GetBoundsF().width, GetBoundsF().height));
-               __pAccessibilitySearchBarElement->SetTrait(ACCESSIBILITY_TRAITS_NONE);
-               __pAccessibilitySearchBarElement->SetName("SearchBar");
-               __pAccessibilitySearchBarElement->SetHint("Double Tap To Enter Search Text");
-               pContainer->AddElement(*__pAccessibilitySearchBarElement);
-               pContainer->AddListener(*this);
-       }
-
-       return;
-}
-
-void
-_SearchBar::AttachChildContainers(void)
-{
-       _AccessibilityContainer* pContainer = null;
-       pContainer = GetAccessibilityContainer();
+       _AccessibilityContainer* pSBContainer = null;
+       pSBContainer = GetAccessibilityContainer();
 
        _AccessibilityContainer* pEditContainer = null;
        pEditContainer = __pEdit->GetAccessibilityContainer();
-
-       pContainer->AddChildContainer(*pEditContainer);
-       pEditContainer->Activate(false);
+       pSBContainer->AddChildContainer(*pEditContainer);
 
        _AccessibilityContainer* pButtonContainer = null;
        pButtonContainer = __pCancelButton->GetAccessibilityContainer();
 
        if (__isUsableCancelButton)
        {
-               pContainer->AddChildContainer(*pButtonContainer);
-               pButtonContainer->Activate(false);
+               pSBContainer->AddChildContainer(*pButtonContainer);
        }
 
+       _AccessibilityElement* pEditElement = __pEdit->GetTextAccessibilityElement();
+
+       pEditElement->SetHint("Double Tap To Type Search Text");
+       pEditElement->SetTrait("SearchBar");
+       pEditElement->SetName("SearchField");
+
+       pSBContainer->Activate(false);
+
        return;
 }
 
index 46a4da6..90e842b 100644 (file)
@@ -32,6 +32,7 @@
 #include "FUiCtrl_SliderPresenter.h"
 #include "FUiCtrl_IAdjustmentEventListener.h"
 #include "FUiCtrl_ISliderEventListener.h"
+#include "FUiCtrl_SliderOverlay.h"
 
 using namespace Tizen::Ui;
 using namespace Tizen::Base;
@@ -58,6 +59,7 @@ _Slider::_Slider(void)
        , __pBase(null)
        , __pHandle(null)
        , __pAccessibilityElement(null)
+       , __isKeyPressed(false)
 {
        __pBase = GetVisualElement();
 
@@ -342,6 +344,12 @@ _Slider::OnFocusModeStateChanged()
 }
 
 bool
+_Slider::IsKeyPressed() const
+{
+       return __isKeyPressed;
+}
+
+bool
 _Slider::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
 {
        if(__pSliderPresenter->GetFocusMode() == false)
@@ -354,15 +362,60 @@ _Slider::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
        if (keyCode == _KEY_RIGHT)
        {
                SetValue(GetValue() + 1);
-        FireSliderMoveEvent(GetValue());
+               FireSliderMoveEvent(GetValue());
+
+               if (GetStyle() & _SLIDER_STYLE_OVERLAY)
+               {
+                       _SliderOverlay* pSliderOverlay = __pSliderPresenter->GetSliderOverlay();
+                       pSliderOverlay->SetVisibleState(true);
+                       pSliderOverlay->Open();
+                       __isKeyPressed = true;
+               }
+
                Invalidate();
-        return true;
+               return true;
        }
 
        if (keyCode == _KEY_LEFT)
        {
                SetValue(GetValue() - 1);
-        FireSliderMoveEvent(GetValue());
+               FireSliderMoveEvent(GetValue());
+
+               if (GetStyle() & _SLIDER_STYLE_OVERLAY)
+               {
+                       _SliderOverlay* pSliderOverlay = __pSliderPresenter->GetSliderOverlay();
+                       pSliderOverlay->SetVisibleState(true);
+                       pSliderOverlay->Open();
+                       __isKeyPressed = true;
+               }
+
+               Invalidate();
+               return true;
+       }
+
+       return false;
+}
+
+bool
+_Slider::OnKeyReleased(const _Control &source, const _KeyInfo &keyInfo)
+{
+       if(__pSliderPresenter->GetFocusMode() == false)
+       {
+               return false;
+       }
+
+       _KeyCode keyCode = keyInfo.GetKeyCode();
+
+       if (keyCode == _KEY_LEFT || keyCode == _KEY_RIGHT)
+       {
+               if (GetStyle() & _SLIDER_STYLE_OVERLAY)
+               {
+                       _SliderOverlay* pSliderOverlay = __pSliderPresenter->GetSliderOverlay();
+                       pSliderOverlay->SetVisibleState(false);
+                       pSliderOverlay->Close();
+               }
+
+               __isKeyPressed = false;
                Invalidate();
                return true;
        }
index 83e125e..89c3ead 100644 (file)
@@ -765,7 +765,7 @@ _SliderPresenter::DrawSlider(void)
                r = DrawSliderBar(*pCanvas);
                SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
 
-               if (__isSliderPressed == true)
+               if (__isSliderPressed == true || __pSlider->IsKeyPressed())
                {
                        if (style & _SLIDER_STYLE_OVERLAY)
                        {
@@ -1459,6 +1459,12 @@ _SliderPresenter::GetIconBounds(IconPosition iconPosition) const
        return iconBounds;
 }
 
+_SliderOverlay*
+_SliderPresenter::GetSliderOverlay(void) const
+{
+       return __pSliderOverlay;
+}
+
 bool
 _SliderPresenter::OnTouchPressed(const _Control& source, const _TouchInfo& touchinfo)
 {
index 77919c0..847b837 100644 (file)
@@ -159,6 +159,9 @@ _SplitPanel::Construct(SplitPanelDividerStyle splitPanelDividerStyle, SplitPanel
        r = GetLastResult();
        SysTryCatch(NID_UI_CTRL, __pSecondPaneParent != null, , r, "[%s] Propagating.", GetErrorMessage(r));
 
+       __pFirstPaneParent->SetFocusable(false);
+       __pSecondPaneParent->SetFocusable(false);
+
        __pFirstPaneParent->SetBackgroundColor(Color(0,0,0,0));
        __pSecondPaneParent->SetBackgroundColor(Color(0,0,0,0));
 
index c67bed0..5408b21 100644 (file)
@@ -47,11 +47,12 @@ _TabBar::_TabBar()
 
        GET_COLOR_CONFIG(TABBAR::ITEM_BG_NORMAL, __itemColor[ITEM_STATUS_NORMAL]);
        GET_COLOR_CONFIG(TABBAR::ITEM_BG_SELECTED, __itemColor[ITEM_STATUS_SELECTED]);
-       GET_COLOR_CONFIG(TABBAR::ITEM_BG_PRESSED, __itemColor[ITEM_STATUS_HIGHLIGHTED]);
+       GET_COLOR_CONFIG(TABBAR::ITEM_BG_PRESSED, __itemColor[ITEM_STATUS_PRESSED]);
+       GET_COLOR_CONFIG(TABBAR::ITEM_BG_DISABLED, __itemColor[ITEM_STATUS_DISABLED]);
 
        GET_COLOR_CONFIG(TABBAR::ITEM_TEXT_NORMAL, __itemTextColor[ITEM_STATUS_NORMAL]);
        GET_COLOR_CONFIG(TABBAR::ITEM_TEXT_SELECTED, __itemTextColor[ITEM_STATUS_SELECTED]);
-       GET_COLOR_CONFIG(TABBAR::ITEM_TEXT_PRESSED, __itemTextColor[ITEM_STATUS_HIGHLIGHTED]);
+       GET_COLOR_CONFIG(TABBAR::ITEM_TEXT_PRESSED, __itemTextColor[ITEM_STATUS_PRESSED]);
        GET_COLOR_CONFIG(TABBAR::ITEM_TEXT_DISABLED, __itemTextColor[ITEM_STATUS_DISABLED]);
 }
 
@@ -234,23 +235,43 @@ _TabBar::GetPropertySelectedItemColor(void) const
 }
 
 result
-_TabBar::SetPropertyHighlightedItemColor(const Variant& color)
+_TabBar::SetPropertyPressedItemColor(const Variant& color)
 {
        result r = E_SUCCESS;
 
-       r = __pTabBarPresenter->SetItemReplacementColor(ITEM_STATUS_HIGHLIGHTED, color.ToColor());
+       r = __pTabBarPresenter->SetItemReplacementColor(ITEM_STATUS_PRESSED, color.ToColor());
        if (r == E_SUCCESS)
        {
-               __itemColor[ITEM_STATUS_HIGHLIGHTED] = color.ToColor();
+               __itemColor[ITEM_STATUS_PRESSED] = color.ToColor();
        }
 
        return r;
 }
 
 Variant
-_TabBar::GetPropertyHighlightedItemColor(void) const
+_TabBar::GetPropertyPressedItemColor(void) const
 {
-       return Tizen::Ui::Variant(__itemColor[ITEM_STATUS_HIGHLIGHTED]);
+       return Tizen::Ui::Variant(__itemColor[ITEM_STATUS_PRESSED]);
+}
+
+result
+_TabBar::SetPropertyDisabledItemColor(const Variant& color)
+{
+       result r = E_SUCCESS;
+
+       r = __pTabBarPresenter->SetItemReplacementColor(ITEM_STATUS_DISABLED, color.ToColor());
+       if (r == E_SUCCESS)
+       {
+               __itemColor[ITEM_STATUS_DISABLED] = color.ToColor();
+       }
+
+       return r;
+}
+
+Variant
+_TabBar::GetPropertyDisabledItemColor(void) const
+{
+       return Tizen::Ui::Variant(__itemColor[ITEM_STATUS_DISABLED]);
 }
 
 result
@@ -266,9 +287,13 @@ _TabBar::SetItemColor(_TabBarItemStatus itemStatus, Tizen::Graphics::Color color
        {
                r = SetProperty("selectedItemColor", Variant(color));
        }
+       else if (itemStatus == ITEM_STATUS_PRESSED)
+       {
+               r = SetProperty("pressedItemColor", Variant(color));
+       }
        else
        {
-               r = SetProperty("highlightedItemColor", Variant(color));
+               r = SetProperty("disabledItemColor", Variant(color));
        }
 
        return r;
@@ -289,9 +314,14 @@ _TabBar::GetItemColor(_TabBarItemStatus itemStatus) const
                Variant color = GetProperty("selectedItemColor");
                itemColor = color.ToColor();
        }
+       else if (itemStatus == ITEM_STATUS_PRESSED)
+       {
+               Variant color = GetProperty("pressedItemColor");
+               itemColor = color.ToColor();
+       }
        else
        {
-               Variant color = GetProperty("highlightedItemColor");
+               Variant color = GetProperty("disabledItemColor");
                itemColor = color.ToColor();
        }
 
@@ -327,17 +357,17 @@ _TabBar::GetPropertySelectedItemTextColor(void) const
 }
 
 result
-_TabBar::SetPropertyHighlightedItemTextColor(const Variant & color)
+_TabBar::SetPropertyPressedItemTextColor(const Variant & color)
 {
-       __itemTextColor[ITEM_STATUS_HIGHLIGHTED] = color.ToColor();
+       __itemTextColor[ITEM_STATUS_PRESSED] = color.ToColor();
 
        return E_SUCCESS;
 }
 
 Variant
-_TabBar::GetPropertyHighlightedItemTextColor(void) const
+_TabBar::GetPropertyPressedItemTextColor(void) const
 {
-       return Tizen::Ui::Variant(__itemTextColor[ITEM_STATUS_HIGHLIGHTED]);
+       return Tizen::Ui::Variant(__itemTextColor[ITEM_STATUS_PRESSED]);
 }
 
 result
@@ -370,7 +400,7 @@ _TabBar::SetItemTextColor(_TabBarItemStatus status, Tizen::Graphics::Color color
        }
        else
        {
-               r = SetProperty("highlightedItemTextColor", Variant(color));
+               r = SetProperty("pressedItemTextColor", Variant(color));
        }
 
        if (r != E_SUCCESS)
@@ -395,9 +425,9 @@ _TabBar::GetItemTextColor(_TabBarItemStatus status) const
                Variant color = GetProperty("selectedItemTextColor");
                itemTextColor = color.ToColor();
        }
-       else if (status == ITEM_STATUS_HIGHLIGHTED)
+       else if (status == ITEM_STATUS_PRESSED)
        {
-               Variant color = GetProperty("highlightedItemTextColor");
+               Variant color = GetProperty("pressedItemTextColor");
                itemTextColor = color.ToColor();
        }
        else
@@ -567,53 +597,53 @@ _TabBar::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
 
        if (keyCode == _KEY_RIGHT)
        {
-               if (__currentHighlightedItemIndex < (itemCount - 1))
+               if (__currentPressedItemIndex < (itemCount - 1))
                {
-                       if (__pTabBarPresenter->GetItemStatus(__currentHighlightedItemIndex) != ITEM_STATUS_SELECTED)
+                       if (__pTabBarPresenter->GetItemStatus(__currentPressedItemIndex) != ITEM_STATUS_SELECTED)
                        {
-                               __pTabBarPresenter->SetItemStatus(__currentHighlightedItemIndex, ITEM_STATUS_NORMAL);
+                               __pTabBarPresenter->SetItemStatus(__currentPressedItemIndex, ITEM_STATUS_NORMAL);
                        }
 
-                       __currentHighlightedItemIndex++;
+                       __currentPressedItemIndex++;
 
-                       if (__pTabBarPresenter->GetItemStatus(__currentHighlightedItemIndex) != ITEM_STATUS_SELECTED)
+                       if (__pTabBarPresenter->GetItemStatus(__currentPressedItemIndex) != ITEM_STATUS_SELECTED)
                        {
-                               __pTabBarPresenter->SetItemStatus(__currentHighlightedItemIndex, ITEM_STATUS_HIGHLIGHTED);
+                               __pTabBarPresenter->SetItemStatus(__currentPressedItemIndex, ITEM_STATUS_PRESSED);
                        }
-                       __pTabBarPresenter->ShiftToFocusedItem(__currentHighlightedItemIndex, _FOCUS_DIRECTION_MOVE_RIGHT);
+                       __pTabBarPresenter->ShiftToFocusedItem(__currentPressedItemIndex, _FOCUS_DIRECTION_MOVE_RIGHT);
                }
                return true;
        }
 
        if (keyCode == _KEY_LEFT)
        {
-               if (__currentHighlightedItemIndex >= -1)
+               if (__currentPressedItemIndex >= -1)
                {
-                       if (__pTabBarPresenter->GetItemStatus(__currentHighlightedItemIndex) != ITEM_STATUS_SELECTED)
+                       if (__pTabBarPresenter->GetItemStatus(__currentPressedItemIndex) != ITEM_STATUS_SELECTED)
                        {
-                               __pTabBarPresenter->SetItemStatus(__currentHighlightedItemIndex, ITEM_STATUS_NORMAL);
+                               __pTabBarPresenter->SetItemStatus(__currentPressedItemIndex, ITEM_STATUS_NORMAL);
                        }
-                       if (__currentHighlightedItemIndex == -1)
+                       if (__currentPressedItemIndex == -1)
                        {
-                               __currentHighlightedItemIndex = 0;
+                               __currentPressedItemIndex = 0;
                        }
-                       if (__currentHighlightedItemIndex > 0)
+                       if (__currentPressedItemIndex > 0)
                        {
-                               __currentHighlightedItemIndex--;
+                               __currentPressedItemIndex--;
                        }
-                       if (__pTabBarPresenter->GetItemStatus(__currentHighlightedItemIndex) != ITEM_STATUS_SELECTED)
+                       if (__pTabBarPresenter->GetItemStatus(__currentPressedItemIndex) != ITEM_STATUS_SELECTED)
                        {
-                               __pTabBarPresenter->SetItemStatus(__currentHighlightedItemIndex, ITEM_STATUS_HIGHLIGHTED);
+                               __pTabBarPresenter->SetItemStatus(__currentPressedItemIndex, ITEM_STATUS_PRESSED);
                        }
-                       __pTabBarPresenter->ShiftToFocusedItem(__currentHighlightedItemIndex, _FOCUS_DIRECTION_MOVE_LEFT);
+                       __pTabBarPresenter->ShiftToFocusedItem(__currentPressedItemIndex, _FOCUS_DIRECTION_MOVE_LEFT);
                }
                return true;
        }
 
-       if (keyCode == _KEY_ENTER && __currentHighlightedItemIndex != -1)
+       if (keyCode == _KEY_ENTER && __currentPressedItemIndex != -1)
        {
-               __pTabBarPresenter->SetItemStatus(__currentHighlightedItemIndex, ITEM_STATUS_SELECTED);
-               __pTabBarPresenter->SetItemSelected(__currentHighlightedItemIndex);
+               __pTabBarPresenter->SetItemStatus(__currentPressedItemIndex, ITEM_STATUS_SELECTED);
+               __pTabBarPresenter->SetItemSelected(__currentPressedItemIndex);
                Invalidate();
                return true;
        }
@@ -631,19 +661,19 @@ _TabBar::OnDrawFocus(void)
 {
        if (__pTabBarPresenter->GetItemCount() > 0)
        {
-               __currentHighlightedItemIndex = 0;
+               __currentPressedItemIndex = 0;
        }
        else
        {
-               __currentHighlightedItemIndex = -1;
+               __currentPressedItemIndex = -1;
        }
 
-       if (__pTabBarPresenter->GetItemStatus(__currentHighlightedItemIndex) != ITEM_STATUS_SELECTED)
+       if (__pTabBarPresenter->GetItemStatus(__currentPressedItemIndex) != ITEM_STATUS_SELECTED)
        {
-               __pTabBarPresenter->SetItemStatus(__currentHighlightedItemIndex, ITEM_STATUS_HIGHLIGHTED);
+               __pTabBarPresenter->SetItemStatus(__currentPressedItemIndex, ITEM_STATUS_PRESSED);
        }
 
-       __pTabBarPresenter->ShiftToFocusedItem(__currentHighlightedItemIndex, _FOCUS_DIRECTION_MOVE_LEFT);
+       __pTabBarPresenter->ShiftToFocusedItem(__currentPressedItemIndex, _FOCUS_DIRECTION_MOVE_LEFT);
        __isInFocusMode = true;
 
        return;
@@ -652,12 +682,12 @@ _TabBar::OnDrawFocus(void)
 void
 _TabBar::OnFocusModeStateChanged(void)
 {
-       if (__pTabBarPresenter->GetItemStatus(__currentHighlightedItemIndex) == ITEM_STATUS_HIGHLIGHTED)
+       if (__pTabBarPresenter->GetItemStatus(__currentPressedItemIndex) == ITEM_STATUS_PRESSED)
        {
-               __pTabBarPresenter->SetItemStatus(__currentHighlightedItemIndex, ITEM_STATUS_NORMAL);
+               __pTabBarPresenter->SetItemStatus(__currentPressedItemIndex, ITEM_STATUS_NORMAL);
        }
 
-       __currentHighlightedItemIndex = -1;
+       __currentPressedItemIndex = -1;
        __isInFocusMode = false;
 
        Invalidate();
index d7e8bfd..624b529 100644 (file)
@@ -49,7 +49,7 @@ _TabBarPresenter::_TabBarPresenter(_TabBar& tabBar)
        , __pFont(null)
        , __pTextObject(null)
        , __startPosition(FloatPoint(0.0f, 0.0f))
-       , __highlightedItemIndex(-1)
+       , __pressedItemIndex(-1)
        , __touchMoved(false)
        , __touchBubblingBlocked(true)
        , __topMargin(0.0f)
@@ -207,35 +207,41 @@ _TabBarPresenter::LoadBitmap(void)
 
        result r;
        r = GET_BITMAP_CONFIG_N(TABBAR::BG_NORMAL, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
-       SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "Failed to load bitmap.");
+       SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
        __pBgBitmapCached = _BitmapImpl::GetColorReplacedBitmapN(*pBitmap, Color::GetColor(COLOR_ID_MAGENTA), __tabBar.GetColor());
        delete pBitmap;
        pBitmap = null;
 
        r = GET_BITMAP_CONFIG_N(TABBAR::BG_OUTLINE_EFFECT_NORMAL, BITMAP_PIXEL_FORMAT_ARGB8888, __pBgEffectBitmapCached);
-       SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "Failed to load bitmap.");
+       SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
 
        r = GET_BITMAP_CONFIG_N(TABBAR::LEFT_ARROW_NORMAL, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
        __pLeftArrowBitmapCached = _BitmapImpl::GetColorReplacedBitmapN(*pBitmap, Color::GetColor(COLOR_ID_MAGENTA), arrowColor);
-       SysTryCatch(NID_UI_CTRL, __pLeftArrowBitmapCached != null, , E_OUT_OF_MEMORY, "Failed to load bitmap.");
+       SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
        delete pBitmap;
        pBitmap = null;
 
        r = GET_BITMAP_CONFIG_N(TABBAR::RIGHT_ARROW_NORMAL, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
        __pRightArrowBitmapCached = _BitmapImpl::GetColorReplacedBitmapN(*pBitmap, Color::GetColor(COLOR_ID_MAGENTA), arrowColor);
-       SysTryCatch(NID_UI_CTRL, __pRightArrowBitmapCached != null, , E_OUT_OF_MEMORY, "Failed to load bitmap.");
+       SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
        delete pBitmap;
        pBitmap = null;
 
        r = GET_BITMAP_CONFIG_N(TABBAR::ITEM_BG_SELECTED, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
        __pItemBgBitmapCached[ITEM_STATUS_SELECTED] = _BitmapImpl::GetColorReplacedBitmapN(*pBitmap, Color::GetColor(COLOR_ID_MAGENTA), __tabBar.GetItemColor(ITEM_STATUS_SELECTED));
-       SysTryCatch(NID_UI_CTRL, __pItemBgBitmapCached[ITEM_STATUS_SELECTED] != null, , E_OUT_OF_MEMORY, "Failed to load bitmap.");
+       SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
        delete pBitmap;
        pBitmap = null;
 
        r = GET_BITMAP_CONFIG_N(TABBAR::ITEM_BG_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
-       __pItemBgBitmapCached[ITEM_STATUS_HIGHLIGHTED] = _BitmapImpl::GetColorReplacedBitmapN(*pBitmap, Color::GetColor(COLOR_ID_MAGENTA), __tabBar.GetItemColor(ITEM_STATUS_HIGHLIGHTED));
-       SysTryCatch(NID_UI_CTRL, __pItemBgBitmapCached[ITEM_STATUS_HIGHLIGHTED] != null, , E_OUT_OF_MEMORY, "Failed to load bitmap.");
+       __pItemBgBitmapCached[ITEM_STATUS_PRESSED] = _BitmapImpl::GetColorReplacedBitmapN(*pBitmap, Color::GetColor(COLOR_ID_MAGENTA), __tabBar.GetItemColor(ITEM_STATUS_PRESSED));
+       SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
+       delete pBitmap;
+       pBitmap = null;
+
+       r = GET_BITMAP_CONFIG_N(TABBAR::ITEM_BG_DISABLED, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
+       __pItemBgBitmapCached[ITEM_STATUS_DISABLED] = _BitmapImpl::GetColorReplacedBitmapN(*pBitmap, Color::GetColor(COLOR_ID_MAGENTA), __tabBar.GetItemColor(ITEM_STATUS_DISABLED));
+       SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
        delete pBitmap;
        pBitmap = null;
 
@@ -565,7 +571,7 @@ _TabBarPresenter::SetItemReplacementColor(_TabBarItemStatus itemStatus, const Ti
                r = GET_BITMAP_CONFIG_N(TABBAR::ITEM_BG_SELECTED, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
                SysTryReturn(NID_UI_CTRL, pBitmap != null, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Image loading fail.");
        }
-       else if (itemStatus == ITEM_STATUS_HIGHLIGHTED)
+       else if (itemStatus == ITEM_STATUS_PRESSED)
        {
                r = GET_BITMAP_CONFIG_N(TABBAR::ITEM_BG_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888, pBitmap);
                SysTryReturn(NID_UI_CTRL, pBitmap != null, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Image loading fail.");
@@ -717,10 +723,21 @@ _TabBarPresenter::DrawItem(Tizen::Graphics::Canvas* pCanvas)
 
                itemStatus = pDrawItem->GetStatus();
 
-               // draw item BG
-               if (__pItemBgBitmapCached[itemStatus] != null)
+               if (!__tabBar.IsEnabled())
                {
-                       pCanvas->DrawNinePatchedBitmap(itemBounds, *__pItemBgBitmapCached[itemStatus]);
+                       textColor = __tabBar.GetItemTextColor(ITEM_STATUS_DISABLED);
+                       if (__pItemBgBitmapCached[ITEM_STATUS_DISABLED] != null)
+                       {
+                               pCanvas->DrawNinePatchedBitmap(itemBounds, *__pItemBgBitmapCached[ITEM_STATUS_DISABLED]);
+                       }
+               }
+               else
+               {
+                       textColor = __tabBar.GetItemTextColor(itemStatus);
+                       if (__pItemBgBitmapCached[itemStatus] != null)
+                       {
+                               pCanvas->DrawNinePatchedBitmap(itemBounds, *__pItemBgBitmapCached[itemStatus]);
+                       }
                }
 
                // draw item text
@@ -746,15 +763,6 @@ _TabBarPresenter::DrawItem(Tizen::Graphics::Canvas* pCanvas)
 
                __pTextObject->AppendElement(*pSimpleText);
 
-               if (!__tabBar.IsEnabled())
-               {
-                       textColor = __tabBar.GetItemTextColor(ITEM_STATUS_DISABLED);
-               }
-               else
-               {
-                       textColor = __tabBar.GetItemTextColor(itemStatus);
-               }
-
                __pTextObject->SetForegroundColor(textColor, 0, __pTextObject->GetTextLength());
                __pTextObject->SetBounds(textRect);
                __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
@@ -856,13 +864,13 @@ _TabBarPresenter::OnTouchPressed(const _Control& source, const _TouchInfo& touch
                return true;
        }
 
-       __highlightedItemIndex = index;
+       __pressedItemIndex = index;
        if (GetItemStatus(index) == ITEM_STATUS_SELECTED)
        {
                return true;
        }
 
-       result r = SetItemStatus(index, ITEM_STATUS_HIGHLIGHTED);
+       result r = SetItemStatus(index, ITEM_STATUS_PRESSED);
        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, true, r, "[%s] propagating.", GetErrorMessage(r));
 
        Draw();
@@ -881,7 +889,7 @@ _TabBarPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touc
 
        if (index != -1 && GetItemStatus(index) != ITEM_STATUS_NORMAL && __touchMoved == false)
        {
-               if (GetItemStatus(index) == ITEM_STATUS_HIGHLIGHTED)
+               if (GetItemStatus(index) == ITEM_STATUS_PRESSED)
                {
                        r = SetItemStatus(index, ITEM_STATUS_SELECTED);
                        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] propagating.", GetErrorMessage(r));
@@ -893,14 +901,14 @@ _TabBarPresenter::OnTouchReleased(const _Control& source, const _TouchInfo& touc
 
        for (int i = 0; i < GetItemCount(); i++)
        {
-               if (GetItemStatus(i) == ITEM_STATUS_HIGHLIGHTED)
+               if (GetItemStatus(i) == ITEM_STATUS_PRESSED)
                {
                        r = SetItemStatus(i, ITEM_STATUS_NORMAL);
                        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] propagating.", GetErrorMessage(r));
                }
        }
 
-       __highlightedItemIndex = -1;
+       __pressedItemIndex = -1;
        __touchMoved = false;
 
        Draw();
@@ -915,14 +923,14 @@ _TabBarPresenter::OnTouchCanceled(const _Control& source, const _TouchInfo& touc
 
        for (int i = 0; i < GetItemCount(); i++)
        {
-               if (GetItemStatus(i) == ITEM_STATUS_HIGHLIGHTED)
+               if (GetItemStatus(i) == ITEM_STATUS_PRESSED)
                {
                        r = SetItemStatus(i, ITEM_STATUS_NORMAL);
                        SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, false, r, "[%s] propagating.", GetErrorMessage(r));
                }
        }
 
-       __highlightedItemIndex = -1;
+       __pressedItemIndex = -1;
 
        Draw();
 
index d92266d..2895340 100644 (file)
@@ -1128,12 +1128,10 @@ CATCH:
 void
 _TableViewItem::FireItemEvent(bool selectedItem)
 {
-       if (HasParent() == false)
-       {
-               return;
-       }
-
-       if (IsContextItem())
+       if (!HasParent()
+               || IsContextItem()
+               || __itemType == TABLE_VIEW_ITEM_TYPE_HEADER
+               || __itemType == TABLE_VIEW_ITEM_TYPE_FOOTER)
        {
                return;
        }
@@ -3221,7 +3219,7 @@ _TableViewItem::DrawItemDivider(void)
                        }
 
                        GET_SHAPE_CONFIG(TABLEVIEW::GROUPITEM_INDEX_BAR_HEIGHT, _CONTROL_ORIENTATION_PORTRAIT, lineHeight);
-                       GET_SHAPE_CONFIG(TABLEVIEW::ITEM_DIVIDER_LEFT_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, lineLeftMargin);
+                       GET_SHAPE_CONFIG(TABLEVIEW::GROUPITEM_INDEX_BAR_LEFT_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, lineLeftMargin);
                        GET_SHAPE_CONFIG(TABLEVIEW::GROUPITEM_INDEX_BAR_BOTTOM_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, lineBottomMargin);
 
                        lineHeight = Tizen::Graphics::CoordinateSystem::ConvertToLogicalY(lineHeight);
@@ -3342,10 +3340,12 @@ _TableViewItem::DrawItemAnnexDivider(void)
                dividerHeight = (dividerHeight > 0) ? dividerHeight : 0;
                __pItemAnnexLeftDivider->SetBounds(FloatRectangle((GetBoundsF().width - annexWidth - (itemLeftMargin + annexLeftMargin) - (dividerWidth*2)), dividerTopMargin, dividerWidth, dividerHeight));
                __pItemAnnexLeftDivider->SetBackgroundColor(dividerLeftColor);
+               __pItemAnnexLeftDivider->GetVisualElement()->SetOpacity(ITEM_ANNEX_DIVIDER_OPACITY);
                __pItemAnnexLeftDivider->Invalidate();
 
                __pItemAnnexRightDivider->SetBounds(FloatRectangle((GetBoundsF().width - annexWidth - (itemLeftMargin + annexLeftMargin) - dividerWidth), dividerTopMargin, dividerWidth, dividerHeight));
                __pItemAnnexRightDivider->SetBackgroundColor(dividerRightColor);
+               __pItemAnnexLeftDivider->GetVisualElement()->SetOpacity(ITEM_ANNEX_DIVIDER_OPACITY);
                __pItemAnnexRightDivider->Invalidate();
 
        }
index 50846e6..00e7b3e 100644 (file)
@@ -536,6 +536,11 @@ _TableViewPresenter::RefreshTableView(int groupIndex, int itemIndex, TableViewRe
 
                        if (pProviderAdaptor->UpdateItem(pTableViewItem, itemTag.groupIndex, itemTag.itemIndex))
                        {
+                               FloatRectangle itemBounds = pTableViewItem->GetBoundsF();
+                               FloatDimension itemDim = Tizen::Graphics::CoordinateSystem::AlignToDevice(FloatDimension(itemBounds.width, itemBounds.height));
+                               itemBounds.height = itemDim.height;
+                               pTableViewItem->SetBounds(itemBounds);
+
                                CheckItemHeightAndRefreshLayout(itemTag, true);
 
                                if (__sweptItemTag.groupIndex != itemTag.groupIndex || __sweptItemTag.itemIndex != itemTag.itemIndex)
@@ -1100,8 +1105,10 @@ _TableViewPresenter::PreloadItem(void)
        PresetItemHeightList();
        AdjustClientAreaBounds(true);
 
-       if (__pTableView->GetScrollStyle() == TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL
-                       || __pTableView->GetScrollStyle() == TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL_FIXED)
+       TableViewScrollBarStyle scrollStyle = __pTableView->GetScrollStyle();
+
+       if (scrollStyle == TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL
+                       || scrollStyle == TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL_FIXED)
        {
                _FastScroll* pFastScroll = __pTableView->GetFastScrollBar();
                if (pFastScroll != null)
@@ -1110,6 +1117,13 @@ _TableViewPresenter::PreloadItem(void)
                        pFastScroll->SetScrollVisibility(IsScrollable());
                }
        }
+       else if (scrollStyle != TABLE_VIEW_SCROLL_BAR_STYLE_NONE)
+       {
+               if (IsScrollable())
+               {
+                       FadeInScrollBar();
+               }
+       }
 
        return true;
 }
@@ -1766,6 +1780,7 @@ _TableViewPresenter::Draw(void)
 
                if(PreloadItem() == false)
                {
+                       __pTableView->SetFocusNavigateEnabled(false);
                        return E_SUCCESS;
                }
 
@@ -1785,8 +1800,13 @@ _TableViewPresenter::Draw(void)
        // Draw empty list
        if (IsEmpty() == true)
        {
+               __pTableView->SetFocusNavigateEnabled(false);
                return DrawEmptyTableView();
        }
+       else
+       {
+               __pTableView->SetFocusNavigateEnabled(true);
+       }
 
        return E_SUCCESS;
 }
@@ -5304,6 +5324,12 @@ _TableViewPresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInf
                if (pFocusedControl != null)
                {
                        pItem = dynamic_cast<_TableViewItem*>(pFocusedControl);
+                       if (pItem == null)
+                       {
+                               _Control* pParentControl = pFocusedControl->GetParent();
+                               pItem = dynamic_cast<_TableViewItem*>(pParentControl);
+                       }
+
                        if (pItem != null)
                        {
                                pItem->GetItemIndex(itemPos.groupIndex, itemPos.itemIndex);
@@ -5356,6 +5382,12 @@ _TableViewPresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInf
                if (pFocusedControl != null)
                {
                        pItem = dynamic_cast<_TableViewItem*>(pFocusedControl);
+                       if (pItem == null)
+                       {
+                               _Control* pParentControl = pFocusedControl->GetParent();
+                               pItem = dynamic_cast<_TableViewItem*>(pParentControl);
+                       }
+
                        if (pItem != null)
                        {
                                pItem->GetItemIndex(itemPos.groupIndex, itemPos.itemIndex);
index d67d6c2..c0248e5 100644 (file)
@@ -1445,6 +1445,9 @@ _TokenEditPresenter::CalculateTokenPositionFromIndex(int startIndex, bool leftWa
                        if (findPrevTokenLoopFlag)
                        {
                                pPreviousToken = static_cast< _Token* >(__pTokenList->GetAt(index - 1));
+                               r = GetLastResult();
+                               SysTryReturnResult(NID_UI_CTRL, pPreviousToken != null, r, "Propagating.");
+
                                findPrevTokenLoopFlag = false;
                        }
 
@@ -4290,6 +4293,8 @@ _TokenEditPresenter::ScrollToFocusedTokenAccessibilityElement(const _Accessibili
        {
                _Token* pToken = null;
                pToken = static_cast< _Token* >(__pTokenList->GetAt(focusedTokenIndex));
+               r = GetLastResult();
+               SysTryReturnResult(NID_UI_CTRL, pToken != null, r, "Propagating.");
 
                focusedTokenRectangle = pToken->displayRect;
 
@@ -4438,6 +4443,8 @@ _TokenEditPresenter::ScrollToFocusedToken(void)
        {
                _Token* pToken = null;
                pToken = static_cast <_Token*>(__pTokenList->GetAt(__focusedTokenIndex));
+               r = GetLastResult();
+               SysTryReturnResult(NID_UI_CTRL, pToken != null, r, "Propagating.");
 
                focussedTokenRectangle = pToken->displayRect;
 
index c529e30..3474e90 100644 (file)
@@ -3472,38 +3472,56 @@ _Toolbar::OnHeaderFocusGained(const _Control& source)
        {
                if (__pButtonItems[LEFT_BUTTON])
                {
-                       if(__pButtonItems[LEFT_BUTTON]->GetButtonStatus() != _BUTTON_STATUS_DISABLED)
+                       if (__pButtonItems[RIGHT_BUTTON])
                        {
-                               __pButtonItems[LEFT_BUTTON]->SetButtonStatus(_BUTTON_STATUS_HIGHLIGHTED, false);
-
-                               __highlightedItemIndex = __itemCount;
-                               __lastHighlightedItemIndex = __highlightedItemIndex;
-                               __highlighted = true;
+                               if (__highlightedItemIndex == __itemCount)
+                               {
+                                       if(__pButtonItems[LEFT_BUTTON]->GetButtonStatus() != _BUTTON_STATUS_DISABLED)
+                                       {
+                                               __pButtonItems[LEFT_BUTTON]->SetButtonStatus(_BUTTON_STATUS_HIGHLIGHTED, false);
+                                               __lastHighlightedItemIndex = __highlightedItemIndex;
+                                               __highlighted = true;
+                                       }
+                               }
+                               else if (__highlightedItemIndex == __itemCount + 1)
+                               {
+                                       if (__pButtonItems[RIGHT_BUTTON])
+                                       {
+                                               if(__pButtonItems[RIGHT_BUTTON]->GetButtonStatus() != _BUTTON_STATUS_DISABLED)
+                                               {
+                                                       __pButtonItems[RIGHT_BUTTON]->SetButtonStatus(_BUTTON_STATUS_HIGHLIGHTED, false);
+                                                       __lastHighlightedItemIndex = __highlightedItemIndex;
+                                                       __highlighted = true;
+                                               }
+                                       }
+                               }
                        }
                        else
                        {
-                               if (__pButtonItems[RIGHT_BUTTON])
+                               if (__highlightedItemIndex == __itemCount)
                                {
-                                       if(__pButtonItems[RIGHT_BUTTON]->GetButtonStatus() != _BUTTON_STATUS_DISABLED)
+                                       if(__pButtonItems[LEFT_BUTTON]->GetButtonStatus() != _BUTTON_STATUS_DISABLED)
                                        {
-                                               __pButtonItems[RIGHT_BUTTON]->SetButtonStatus(_BUTTON_STATUS_HIGHLIGHTED, false);
-
-                                               __highlightedItemIndex = __itemCount + 1;
+                                               __pButtonItems[LEFT_BUTTON]->SetButtonStatus(_BUTTON_STATUS_HIGHLIGHTED, false);
                                                __lastHighlightedItemIndex = __highlightedItemIndex;
                                                __highlighted = true;
                                        }
                                }
                        }
                }
-               else if (__pButtonItems[RIGHT_BUTTON])
+               else
                {
-                       if(__pButtonItems[RIGHT_BUTTON]->GetButtonStatus() != _BUTTON_STATUS_DISABLED)
+                       if (__pButtonItems[RIGHT_BUTTON])
                        {
-                               __pButtonItems[RIGHT_BUTTON]->SetButtonStatus(_BUTTON_STATUS_HIGHLIGHTED, false);
-
-                               __highlightedItemIndex = __itemCount;
-                               __lastHighlightedItemIndex = __highlightedItemIndex;
-                               __highlighted = true;
+                               if (__highlightedItemIndex == __itemCount)
+                               {
+                                       if(__pButtonItems[RIGHT_BUTTON]->GetButtonStatus() != _BUTTON_STATUS_DISABLED)
+                                       {
+                                               __pButtonItems[RIGHT_BUTTON]->SetButtonStatus(_BUTTON_STATUS_HIGHLIGHTED, false);
+                                               __lastHighlightedItemIndex = __highlightedItemIndex;
+                                               __highlighted = true;
+                                       }
+                               }
                        }
                }
        }
@@ -7711,18 +7729,18 @@ _Toolbar::RearrangeFooterSegmentedItems(void)
                {
                        if (__pButtonItems[RIGHT_BUTTON])
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(3 + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - 3, segmentedItemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - dividerWidth * 2, segmentedItemHeight));
                        }
                        else
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(3 + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - 3, segmentedItemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - dividerWidth, segmentedItemHeight));
                        }
                }
                else
                {
                        if (__pButtonItems[RIGHT_BUTTON])
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - 1, segmentedItemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - dividerWidth, segmentedItemHeight));
                        }
                        else
                        {
@@ -7784,13 +7802,13 @@ _Toolbar::RearrangeFooterSegmentedItems(void)
                {
                        if (__pButtonItems[RIGHT_BUTTON])
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(3 + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - 3, segmentedItemHeight));
-                               __pItems.at(1)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[1] - 1, segmentedItemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - dividerWidth, segmentedItemHeight));
+                               __pItems.at(1)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[1] - dividerWidth, segmentedItemHeight));
                        }
                        else
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(3 + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - 3, segmentedItemHeight));
-                               __pItems.at(1)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[1] + 1, segmentedItemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - dividerWidth, segmentedItemHeight));
+                               __pItems.at(1)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[1], segmentedItemHeight));
                        }
                }
                else
@@ -7798,7 +7816,7 @@ _Toolbar::RearrangeFooterSegmentedItems(void)
                        if (__pButtonItems[RIGHT_BUTTON])
                        {
                                __pItems.at(0)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0], segmentedItemHeight));
-                               __pItems.at(1)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[1], segmentedItemHeight));
+                               __pItems.at(1)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[1] - dividerWidth, segmentedItemHeight));
                        }
                        else
                        {
@@ -7863,17 +7881,17 @@ _Toolbar::RearrangeFooterSegmentedItems(void)
                {
                        if (__pButtonItems[RIGHT_BUTTON])
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(3 + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - 3, segmentedItemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - dividerWidth, segmentedItemHeight));
                                __pItems.at(1)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[1], segmentedItemHeight));
                                __pItems.at(2)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + blockWidth[1] + dividerWidth * 2,
-                                               (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[2] - 1, segmentedItemHeight));
+                                               (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[2] - dividerWidth, segmentedItemHeight));
                        }
                        else
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(3 + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - 3, segmentedItemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0] - dividerWidth, segmentedItemHeight));
                                __pItems.at(1)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[1], segmentedItemHeight));
                                __pItems.at(2)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + blockWidth[1] + dividerWidth * 2,
-                                               (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[2] + 1, segmentedItemHeight));
+                                               (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[2], segmentedItemHeight));
                        }
                }
                else
@@ -7883,7 +7901,7 @@ _Toolbar::RearrangeFooterSegmentedItems(void)
                                __pItems.at(0)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[0], segmentedItemHeight));
                                __pItems.at(1)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[1], segmentedItemHeight));
                                __pItems.at(2)->SetBounds(FloatRectangle(leftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + blockWidth[1] + dividerWidth * 2,
-                                               (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[2], segmentedItemHeight));
+                                               (GetSizeF().height - segmentedItemHeight) / 2, blockWidth[2] - dividerWidth, segmentedItemHeight));
                        }
                        else
                        {
@@ -8157,18 +8175,18 @@ _Toolbar::RearrangeButtonItems(void)
                        {
                                if (__pButtonItems[RIGHT_BUTTON])
                                {
-                                       __pItems.at(0)->SetBounds(FloatRectangle(3 + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - 4, itemHeight));
+                                       __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - dividerWidth, itemHeight));
                                }
                                else
                                {
-                                       __pItems.at(0)->SetBounds(FloatRectangle(3 + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - 3, itemHeight));
+                                       __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - dividerWidth, itemHeight));
                                }
                        }
                        else
                        {
                                if (__pButtonItems[RIGHT_BUTTON])
                                {
-                                       __pItems.at(0)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - 1, itemHeight));
+                                       __pItems.at(0)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - dividerWidth, itemHeight));
                                }
                                else
                                {
@@ -8231,12 +8249,12 @@ _Toolbar::RearrangeButtonItems(void)
                {
                        if (__pButtonItems[RIGHT_BUTTON])
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(3 + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - 3, itemHeight));
-                               __pItems.at(1)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - itemHeight) / 2, blockWidth[1] - 1, itemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - dividerWidth, itemHeight));
+                               __pItems.at(1)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - itemHeight) / 2, blockWidth[1] - dividerWidth, itemHeight));
                        }
                        else
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(3 + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - 3, itemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - dividerWidth, itemHeight));
                                __pItems.at(1)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - itemHeight) / 2, blockWidth[1], itemHeight));
                        }
                }
@@ -8245,7 +8263,7 @@ _Toolbar::RearrangeButtonItems(void)
                        if (__pButtonItems[RIGHT_BUTTON])
                        {
                                __pItems.at(0)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0], itemHeight));
-                               __pItems.at(1)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - itemHeight) / 2, blockWidth[1], itemHeight));
+                               __pItems.at(1)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - itemHeight) / 2, blockWidth[1] - dividerWidth, itemHeight));
                        }
                        else
                        {
@@ -8310,17 +8328,17 @@ _Toolbar::RearrangeButtonItems(void)
                {
                        if (__pButtonItems[RIGHT_BUTTON])
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(3 + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - 3, itemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - dividerWidth, itemHeight));
                                __pItems.at(1)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - itemHeight) / 2, blockWidth[1], itemHeight));
                                __pItems.at(2)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + blockWidth[1] + dividerWidth * 2,
-                                               (GetSizeF().height - itemHeight) / 2, blockWidth[2] - 1, itemHeight));
+                                               (GetSizeF().height - itemHeight) / 2, blockWidth[2] - dividerWidth, itemHeight));
                        }
                        else
                        {
-                               __pItems.at(0)->SetBounds(FloatRectangle(3 + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - 3, itemHeight));
+                               __pItems.at(0)->SetBounds(FloatRectangle(dividerWidth + tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0] - dividerWidth, itemHeight));
                                __pItems.at(1)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - itemHeight) / 2, blockWidth[1], itemHeight));
                                __pItems.at(2)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + blockWidth[1] + dividerWidth * 2,
-                                                       (GetSizeF().height - itemHeight) / 2, blockWidth[2] + 1, itemHeight));
+                                                       (GetSizeF().height - itemHeight) / 2, blockWidth[2], itemHeight));
                        }
                }
                else
@@ -8330,7 +8348,7 @@ _Toolbar::RearrangeButtonItems(void)
                                __pItems.at(0)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap, (GetSizeF().height - itemHeight) / 2, blockWidth[0], itemHeight));
                                __pItems.at(1)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + dividerWidth, (GetSizeF().height - itemHeight) / 2, blockWidth[1], itemHeight));
                                __pItems.at(2)->SetBounds(FloatRectangle(tabLeftMargin + iconSize + itemButtonLeftGap + blockWidth[0] + blockWidth[1] + dividerWidth * 2,
-                                               (GetSizeF().height - itemHeight) / 2, blockWidth[2], itemHeight));
+                                               (GetSizeF().height - itemHeight) / 2, blockWidth[2] - dividerWidth, itemHeight));
                        }
                        else
                        {
index bd547bd..d081770 100644 (file)
@@ -637,7 +637,7 @@ _ToolbarPresenter::DrawDivider(const FloatPoint& point, Canvas* pCanvas)
        pCanvas->SetForegroundColor(dividerLeftColor);
        pCanvas->SetLineWidth(dividerWidth);
 
-       pCanvas->DrawLine(FloatPoint(point.x + dividerWidth, point.y), FloatPoint(point.x + dividerWidth, point.y + dividerHeight));
+       pCanvas->DrawLine(FloatPoint(point.x, point.y), FloatPoint(point.x, point.y + dividerHeight));
 
        //pCanvas->SetForegroundColor(dividerRightColor);
        //pCanvas->SetLineWidth(dividerWidth/2);
index 79dea00..90da69f 100644 (file)
@@ -171,6 +171,7 @@ private:
        Tizen::Graphics::FloatRectangle __focusBounds;
        int __focusedValue;
        static const int UPDATE_ITEM_COUNT = 6;
+       bool __isFlickCanceled;
 
 }; // _DateTimeBarPresenter
 
index c46fac0..73de884 100755 (executable)
@@ -193,7 +193,6 @@ public:
        result SetKeypadCommandButton(CommandButtonPosition position, const Tizen::Base::String& text, int actionId);
        _Toolbar* GetKeypadCommandButton(void) const;
        result SetKeypadCommandButtonVisible(bool visible);
-       bool SetKeypadBounds(const Tizen::Graphics::FloatRectangle& bounds);
        result SetText(const Tizen::Base::String& text);
        result SetTextAlignment(HorizontalAlignment alignment);
        result SetTextBounds(Tizen::Graphics::Rectangle& bounds);
@@ -225,7 +224,8 @@ public:
        float GetTextSizeF(void) const;
        unsigned long GetInputModeCategory(void) const;
        CoreKeypadAction GetKeypadAction(void) const;
-       result GetKeypadBounds(Tizen::Graphics::FloatRectangle& bounds) const;
+       result GetKeypadBounds(Tizen::Graphics::FloatRectangle& bounds);
+       void GetKeypadBoundsEx(Tizen::Graphics::FloatRectangle& bounds) const;
        float GetClipboardHeight(void) const;
        bool CheckKeypadExist(_ControlOrientation orientation);
        bool IsKeypadRotating(_ControlOrientation orientation);
@@ -256,7 +256,7 @@ public:
        bool IsKeypadEnabled(void) ;
        bool IsLowerCaseModeEnabled(void) const;
        bool IsKeypadCommandButtonVisible(void) const;
-       bool IsViewModeEnabled(void) const;
+       bool IsViewModeEnabled(bool internal = true) const;
        bool IsTextPredictionEnabled(void) const;
        bool IsKeypadExist(void) const;
        bool IsClipboardExist(void) const;
@@ -534,6 +534,7 @@ private:
        bool __isFlexibleHeightFrozen;
        bool __isKeypadShowing;
        bool __isKeypadHiding;
+       bool __resizedByKeypadHide;
 
        int __blockStartPos;
        int __cursorPos;
@@ -554,6 +555,7 @@ private:
        static bool __footerVisibleChanged;
        static unsigned int __latestBoundedContext;
        static const float TOUCH_PRESS_THRESHOLD_IN_CLEAR_AREA;
+       static _ScrollPanel* __pResizedPanel;
 
        wchar_t __echoChar;
 
index 8eb2aa4..17a95fa 100644 (file)
@@ -152,6 +152,7 @@ public:
        Tizen::Graphics::Point TranslateFromClientAreaPosition(const Tizen::Graphics::Point& clientPosition)    const;
        Tizen::Graphics::FloatPoint TranslateFromClientAreaPosition(const Tizen::Graphics::FloatPoint& clientPosition)  const;
 
+       bool IsDeflated(void);
        bool DeflateClientRectHeight(int height);
        bool DeflateClientRectHeight(float height);
 
index 1f4795c..1c9e3d7 100644 (file)
@@ -73,6 +73,8 @@ public:
                static void OnDisconnected(Ecore_Evas *pEe);
                static void OnMessageHandle(Ecore_Evas *pEe, int msgDomain, int msgId, void *data, int size);
 
+               virtual Animations::HitTestResult OnHitTest(const Tizen::Graphics::FloatPoint& point);
+
 private:
                _Indicator(const _Indicator& value);
                _Indicator& operator =(const _Indicator& value);
index 76640c6..82587ba 100644 (file)
@@ -121,7 +121,8 @@ private:
        void AdjustItemPosition(void);
        Tizen::Graphics::FloatDimension AdjustItemLayoutStyle(void);
 
-       _OptionMenuItem* CreateItem(const Base::String& text, int actionId, const Tizen::Graphics::Bitmap* pNormalBitmap, const Tizen::Graphics::Bitmap* pPressedBitmap, const Tizen::Graphics::Bitmap* pHighlightedBitmap);
+       _OptionMenuItem* CreateItem(const Base::String& text, int actionId, const Tizen::Graphics::Bitmap* pNormalBitmap,
+                       const Tizen::Graphics::Bitmap* pPressedBitmap, const Tizen::Graphics::Bitmap* pHighlightedBitmap, bool isSubItem = false);
        int GetItemIndexFromPosition(const Tizen::Graphics::FloatPoint& point) const;
 
 private:
index 141202c..bd6a4a2 100644 (file)
@@ -131,7 +131,8 @@ public:
        virtual bool OnAccessibilityItemRefreshed(const _AccessibilityContainer& control, const _AccessibilityElement& element, _AccessibilityFocusDirection direction);
 
        // Focus UI
-       void OnChildControlFocusMoved(const _Control& control);
+       virtual void OnChildControlFocusMoved(const _Control& control);
+       virtual void OnDescendantControlFocusMoved(const _Control& control);
 
        // scroll animation event listener
        virtual void OnVisualElementAnimationStarted(const Tizen::Ui::Animations::VisualElementAnimation& animation, const Tizen::Base::String& keyName, Tizen::Ui::Animations::VisualElement& target);
@@ -164,6 +165,8 @@ public:
        float GetHorizontalScrollPosition(void) const;
        void SetHorizontalScrollPosition(float position);
 
+       float CalculatePagingScrollPosition(float position) const;
+
        // scroll area type
        bool IsScrollAreaAutoResizingEnabled(void) const;
        void SetScrollAreaAutoResizingEnabled(bool autoResizingEnable);
index 8ac41ec..10ad22a 100644 (file)
@@ -96,8 +96,9 @@ public:
        virtual bool OnAccessibilityActionPerformed(const _AccessibilityContainer& control, const _AccessibilityElement& element);
        virtual bool OnAccessibilityItemRefreshed(const _AccessibilityContainer& control, const _AccessibilityElement& element, _AccessibilityFocusDirection direction);
 
-   // Focus UI
+       // Focus UI
        virtual void OnChildControlFocusMoved(const _Control& control);
+       virtual void OnDescendantControlFocusMoved(const _Control& control);
 
        // scroll event listener
        virtual void OnScrollEndReached(_Control& source, ScrollEndEvent type);
@@ -147,6 +148,8 @@ public:
        float GetHorizontalScrollPosition(void) const;
        void SetHorizontalScrollPosition(float position);
 
+       float CalculatePagingScrollPosition(float position) const;
+
 protected:
        // Update Layout
        virtual void UpdateLayout(void);
@@ -163,8 +166,8 @@ protected:
 
        // Scroll operation
        virtual float ScrollToInternal(float targetPosition);
-       float ScrollTo(float distance);
-       float ScrollTo(float distance, bool withAnimation);
+       float ScrollTo(float targetPosition);
+       float ScrollTo(float targetPosition, bool withAnimation);
 
        // Scrollbar operations
        virtual void FadeOutScrollBar(void);
@@ -220,6 +223,7 @@ private:
        float CalculateFlickAmount(float flickDistance, float flickDuration);
        bool DoFlickGestureRecognized(_TouchFlickGestureDetector& gesture);
        bool AccumulateFlickGesture(_FlickDirection direction);
+       float FlickTo(float targetPosition, float duration);
 
 // Attribute
 private:
@@ -233,6 +237,8 @@ private:
        _ScrollPanel* __pScrollPanel;
        _ScrollPanelModel* __pScrollPanelModel;
 
+       float __limitAnimationDistance;
+
        _Control* __pPressedControl;
        bool __subControlMoved;
        bool __touchPressed;
index 219ce15..b59a1e8 100644 (file)
@@ -70,7 +70,6 @@ class _SearchBar
        , public _IKeypadEventListener
        , public _ITextBlockEventListener
        , public _ITextEventListener
-       , public Tizen::Ui::_IAccessibilityListener
        , virtual public Tizen::Base::Runtime::IEventListener
        , virtual public Tizen::Ui::_IUiEventListener
        , virtual public Tizen::Ui::_IUiEventPreviewer
@@ -267,16 +266,6 @@ public:
        virtual void OnSettingChanged(Tizen::Base::String& key);
        virtual Tizen::Graphics::Canvas* OnCanvasRequestedN(const Tizen::Graphics::FloatRectangle& bounds);
 
-       virtual bool OnAccessibilityFocusMovedNext(const _AccessibilityContainer& control, const _AccessibilityElement& element);
-       virtual bool OnAccessibilityFocusMovedPrevious(const _AccessibilityContainer& control, const _AccessibilityElement& element);
-       virtual bool OnAccessibilityReadingElement(const _AccessibilityContainer& control, const _AccessibilityElement& element);
-       virtual bool OnAccessibilityReadElement(const _AccessibilityContainer& control, const _AccessibilityElement& element);
-       virtual bool OnAccessibilityFocusIn(const _AccessibilityContainer& control, const _AccessibilityElement& element);
-       virtual bool OnAccessibilityFocusOut(const _AccessibilityContainer& control, const _AccessibilityElement& element);
-       virtual bool OnAccessibilityActionPerformed(const _AccessibilityContainer& control, const _AccessibilityElement& element);
-       virtual bool OnAccessibilityValueIncreased(const _AccessibilityContainer& control, const _AccessibilityElement& element);
-       virtual bool OnAccessibilityValueDecreased(const _AccessibilityContainer& control, const _AccessibilityElement& element);
-
 protected:
        virtual void OnDraw(void);
 
@@ -292,8 +281,7 @@ private:
        result CreateFrontButton(void);
        result CreateContentsArea(void);
        result CreateClippedGroupControl(void);
-       void CreateAccessibilityElement(void);
-       void AttachChildContainers();
+       void InitializeAccessibility(void);
 
        Tizen::Ui::_Control* GetParentForm(void) const;
 
@@ -318,6 +306,7 @@ private:
        bool __isFocusCallbackToBeFired;
        bool __isButtonTextChangedByApp;
        bool __contentVisibilitySetByApp;
+       bool __isInFocusMode;
 
        CoreKeypadAction __keypadAction;
 
index 9d4abfc..24d9d50 100644 (file)
@@ -124,6 +124,7 @@ public:
        result SetThumbBitmap(SliderThumbStatus status, const Tizen::Graphics::Bitmap& bitmap);
        void SetThumbTextColor(SliderThumbStatus status, const Tizen::Graphics::Color& color);
        void FireSliderMoveEvent(int value);
+       bool IsKeyPressed(void) const;
 
        virtual bool OnTouchPressed(const Tizen::Ui::_Control& source, const Tizen::Ui::_TouchInfo& touchinfo);
        virtual bool OnTouchReleased(const Tizen::Ui::_Control& source, const Tizen::Ui::_TouchInfo& touchinfo);
@@ -133,6 +134,7 @@ public:
        virtual bool OnFocusGained(const _Control& source);
        virtual bool OnFocusLost(const _Control &source);
        virtual bool OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo);
+       virtual bool OnKeyReleased(const _Control &source, const _KeyInfo &keyInfo);
 
        virtual void OnBoundsChanged(void);
        virtual void OnChangeLayout(Tizen::Ui::_ControlOrientation orientation);
@@ -184,6 +186,7 @@ private:
        Tizen::Ui::Animations::_VisualElement* __pHandle;
 
        Tizen::Ui::_AccessibilityElement* __pAccessibilityElement;
+       bool __isKeyPressed;
 }; // _Slider
 
 }}} // Tizen::Ui::Controls
index 483b363..bc9c55d 100644 (file)
@@ -57,6 +57,8 @@ public:
        Tizen::Graphics::FloatRectangle GetIconBounds(IconPosition iconPosition) const;
        Tizen::Graphics::FloatRectangle GetTouchBounds(void) const;
 
+       _SliderOverlay* GetSliderOverlay(void) const;
+
        virtual bool OnTouchPressed(const Tizen::Ui::_Control& source, const Tizen::Ui::_TouchInfo& touchinfo);
        virtual bool OnTouchReleased(const Tizen::Ui::_Control& source, const Tizen::Ui::_TouchInfo& touchinfo);
        virtual bool OnTouchMoved(const Tizen::Ui::_Control& source, const Tizen::Ui::_TouchInfo& touchinfo);
index 219bd3e..6cad661 100644 (file)
@@ -62,10 +62,11 @@ class _OSP_EXPORT_ _TabBar
        DECLARE_PROPERTY("color", GetPropertyColor, SetPropertyColor);
        DECLARE_PROPERTY("normalItemColor", GetPropertyNormalItemColor, SetPropertyNormalItemColor);
        DECLARE_PROPERTY("selectedItemColor", GetPropertySelectedItemColor, SetPropertySelectedItemColor);
-       DECLARE_PROPERTY("highlightedItemColor", GetPropertyHighlightedItemColor, SetPropertyHighlightedItemColor);
+       DECLARE_PROPERTY("pressedItemColor", GetPropertyPressedItemColor, SetPropertyPressedItemColor);
+       DECLARE_PROPERTY("disabledItemColor", GetPropertyDisabledItemColor, SetPropertyDisabledItemColor);
        DECLARE_PROPERTY("normalItemTextColor", GetPropertyNormalItemTextColor, SetPropertyNormalItemTextColor);
        DECLARE_PROPERTY("selectedItemTextColor", GetPropertySelectedItemTextColor, SetPropertySelectedItemTextColor);
-       DECLARE_PROPERTY("highlightedItemTextColor", GetPropertyHighlightedItemTextColor, SetPropertyHighlightedItemTextColor);
+       DECLARE_PROPERTY("pressedItemTextColor", GetPropertyPressedItemTextColor, SetPropertyPressedItemTextColor);
        DECLARE_PROPERTY("disabledItemTextColor", GetPropertyDisabledItemTextColor, SetPropertyDisabledItemTextColor);
        DECLARE_CLASS_END();
 
@@ -79,8 +80,11 @@ class _OSP_EXPORT_ _TabBar
        result SetPropertySelectedItemColor(const Variant& color);
        Variant GetPropertySelectedItemColor(void) const;
 
-       result SetPropertyHighlightedItemColor(const Variant& color);
-       Variant GetPropertyHighlightedItemColor(void) const;
+       result SetPropertyPressedItemColor(const Variant& color);
+       Variant GetPropertyPressedItemColor(void) const;
+
+       result SetPropertyDisabledItemColor(const Variant& color);
+       Variant GetPropertyDisabledItemColor(void) const;
 
        result SetPropertyNormalItemTextColor(const Variant& color);
        Variant GetPropertyNormalItemTextColor(void) const;
@@ -88,8 +92,8 @@ class _OSP_EXPORT_ _TabBar
        result SetPropertySelectedItemTextColor(const Variant& color);
        Variant GetPropertySelectedItemTextColor(void) const;
 
-       result SetPropertyHighlightedItemTextColor(const Variant& color);
-       Variant GetPropertyHighlightedItemTextColor(void) const;
+       result SetPropertyPressedItemTextColor(const Variant& color);
+       Variant GetPropertyPressedItemTextColor(void) const;
 
        result SetPropertyDisabledItemTextColor(const Variant& color);
        Variant GetPropertyDisabledItemTextColor(void) const;
@@ -178,7 +182,7 @@ private:
        _TabBarPresenter* __pTabBarPresenter;
 
        bool __isInFocusMode;
-       int __currentHighlightedItemIndex;
+       int __currentPressedItemIndex;
        _ActionEvent* __pActionEvent;
 
        Tizen::Graphics::Color __color;
index 5b1f6d6..77cb1a1 100644 (file)
@@ -41,7 +41,7 @@ enum _TabBarItemStatus
 {
        ITEM_STATUS_NORMAL = 0,
        ITEM_STATUS_SELECTED,
-       ITEM_STATUS_HIGHLIGHTED,
+       ITEM_STATUS_PRESSED,
        ITEM_STATUS_DISABLED,
        ITEM_STATUS_MAX
 };
index a2b1bcd..810549f 100644 (file)
@@ -133,7 +133,7 @@ private:
        Tizen::Graphics::Font* __pFont;
        Tizen::Graphics::_Text::TextObject* __pTextObject;
        Tizen::Graphics::FloatPoint __startPosition;
-       int __highlightedItemIndex;
+       int __pressedItemIndex;
        bool __touchMoved;
        bool __touchBubblingBlocked;
 
index 6f1e03f..01ae5a5 100644 (file)
@@ -477,6 +477,7 @@ private:
        static const float SENSITIVE = 0.08f;
        static const float ITEM_TOP_DIVIDER_OPACITY = 0.3f;
        static const float ITEM_BOTTOM_DIVIDER_OPACITY = 1.0f;
+       static const float ITEM_ANNEX_DIVIDER_OPACITY = 0.2f;
 };
 
 }}} // Tizen::Ui::Controls
index c73980d..898b230 100644 (file)
@@ -141,7 +141,7 @@ public:
        _AccessibilityElement* GetChildElement(const Tizen::Base::String& name) const;
        void GetElements(Tizen::Base::Collection::IListT<_AccessibilityElement*>& list) const;
        Tizen::Base::Collection::IListT<_AccessibilityElement*>* GetElementsN(void) const;
-
+       bool IsContains(const _AccessibilityElement& element);
        result MoveElement(const _AccessibilityElement* pPreviousElement, const _AccessibilityElement& element);
 
        void SetFocusHandler(_IAccessibilityFocusHandler* pHandler);
index 458f402..19a7c1f 100644 (file)
@@ -115,6 +115,7 @@ public:
        virtual void OnBackgroundColorChanged(Tizen::Graphics::Color& backgroundColor) = 0;
        virtual void OnDrawFocus(void) = 0;
        virtual void OnChildControlFocusMoved(const _Control& control) = 0;
+       virtual void OnDescendantControlFocusMoved(const _Control& control) = 0;
        virtual bool IsChildControlFocusManage(void) const = 0;
        virtual void OnFocusableStateChanged(bool focusalbeState) = 0;
        virtual void OnFocusModeStateChanged(void) = 0;
@@ -276,6 +277,7 @@ public:
        virtual void OnBackgroundColorChanged(Tizen::Graphics::Color& backgroundColor);
        virtual void OnDrawFocus(void);
        virtual void OnChildControlFocusMoved(const _Control& control);
+       virtual void OnDescendantControlFocusMoved(const _Control& control);
        virtual bool IsChildControlFocusManage(void) const;
        virtual void OnFocusableStateChanged(bool focusalbeState);
        virtual void OnFocusModeStateChanged(void);
index 46b96c5..1183a10 100644 (file)
@@ -171,6 +171,7 @@ public:
        virtual void OnBackgroundColorChanged(Tizen::Graphics::Color& backgroundColor);
        virtual void OnDrawFocus(void);
        virtual void OnChildControlFocusMoved(const _Control& control);
+       virtual void OnDescendantControlFocusMoved(const _Control& control);
        virtual bool IsChildControlFocusManage(void) const;
        virtual void OnFocusableStateChanged(bool focusalbeState);
        virtual void OnFocusModeStateChanged(void);
index a4b44ef..8795cd3 100644 (file)
@@ -25,6 +25,7 @@
 #ifndef _FUI_INTERNAL_CONTROL_MANAGER_H_
 #define _FUI_INTERNAL_CONTROL_MANAGER_H_
 
+#include <unique_ptr.h>
 #include <FBaseColIListT.h>
 #include <FBaseColHashMapT.h>
 #include <FGrp_CoordinateSystem.h>
@@ -43,6 +44,7 @@ class _Window;
 class _IWindow;
 class _IUiEventListener;
 class _TouchGestureDetector;
+class _IControlManagerEventListener;
 
 class _OSP_EXPORT_ _ControlManager
        :       public Tizen::System::ISettingEventListener
@@ -128,6 +130,9 @@ public:
        void SetClipboardOwner(_Window* pOwner);
        _Window* GetClipboardOwner(void) const;
 
+       result AddControlManagerEventListener(_IControlManagerEventListener& listener);
+       result RemoveControlManagerEventListener(_IControlManagerEventListener& listener);
+
 private:
        ~_ControlManager(void);
        _ControlManager(void);
@@ -153,6 +158,7 @@ private:
        result CallOnPreAttachedToMainTree(_Control& control);
        result CallOnAttachedToMainTree(_Control& control);
        result CallOnDetachingFromMainTree(_Control& control);
+       void CallControlManagerEventListener(void);
 
        virtual void OnSettingChanged(Tizen::Base::String& key);
 
@@ -179,6 +185,7 @@ private:
        static _ControlManager* __pInstance;
        int __screenDpi;
        _Window* __pClipboardOwner;
+       std::unique_ptr<Tizen::Base::Collection::IListT<_IControlManagerEventListener*> > __pControlManagerEventListenerList;
 }; // _ControlManager
 
 }} // Tizen::Ui
diff --git a/src/ui/inc/FUi_IControlManagerEventListener.h b/src/ui/inc/FUi_IControlManagerEventListener.h
new file mode 100644 (file)
index 0000000..cb54409
--- /dev/null
@@ -0,0 +1,42 @@
+//
+// Open Service Platform
+// Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
+//
+// 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.
+//
+/**
+ * @file       FUi_IControlManagerEventListener.h
+ * @brief      This is the header file for the _IControlManagerEventListener class.
+ *
+ * This header file contains the declarations of the %_IControlManagerEventListener class.
+ */
+
+#ifndef _FUI_INTERNAL_ICONTROL_MANAGER_EVENT_LISTENER_H_
+#define _FUI_INTERNAL_ICONTROL_MANAGER_EVENT_LISTENER_H_
+
+#include <FBaseRtIEventListener.h>
+
+namespace Tizen { namespace Ui
+{
+
+class _OSP_EXPORT_ _IControlManagerEventListener
+       : public Tizen::Base::Runtime::IEventListener
+{
+public:
+       virtual ~_IControlManagerEventListener(void) {}
+       virtual void OnControlManagerTerminating(void) = 0;
+};
+
+}}//Tizen::Ui
+
+#endif // _FUI_INTERNAL_ICONTROL_MANAGER_EVENT_LISTENER_H_
index 5edcb65..cb08c2a 100644 (file)
@@ -89,6 +89,7 @@ DECLARE_UI_CONFIG(CONTEXTMENU);
        DECLARE_SHAPE_CONFIG(ANCHOR_RIGHT_MARGIN, 42);
        DECLARE_SHAPE_CONFIG(ITEM_BG_PRESSED_MARGIN, 43);
        DECLARE_SHAPE_CONFIG(ANCHOR_POPUP_OVERLAP, 44);
+       DECLARE_SHAPE_CONFIG(LIST_TEXT_GAP, 45);
        DECLARE_FIXED_VALUE_CONFIG(GRID_ITEM_GAP, 1);
 DECLARE_END_UI_CONFIG(CONTEXTMENU);
 
index f917c3c..f83ec1e 100644 (file)
@@ -39,9 +39,10 @@ DECLARE_UI_CONFIG(EDIT);
        DECLARE_COLOR_CONFIG(GUIDE_TEXT_NORMAL, 13)
        DECLARE_COLOR_CONFIG(CLEAR_ICON_NORMAL, 14)
        DECLARE_COLOR_CONFIG(CLEAR_ICON_PRESSED, 15)
-       DECLARE_COLOR_CONFIG(CUT_LINK_TEXT_NORMAL, 16)
-       DECLARE_COLOR_CONFIG(CUT_LINK_BG_NORMAL, 17)
-       DECLARE_COLOR_CONFIG(CURSOR_NORMAL, 18)
+       DECLARE_COLOR_CONFIG(CLEAR_ICON_DISABLED, 16)
+       DECLARE_COLOR_CONFIG(CUT_LINK_TEXT_NORMAL, 17)
+       DECLARE_COLOR_CONFIG(CUT_LINK_BG_NORMAL, 18)
+       DECLARE_COLOR_CONFIG(CURSOR_NORMAL, 19)
 
        DECLARE_IMAGE_CONFIG(BG_NORMAL, 1)
        DECLARE_IMAGE_CONFIG(BG_PRESSED, 2)
@@ -60,15 +61,16 @@ DECLARE_UI_CONFIG(EDIT);
        DECLARE_IMAGE_CONFIG(BG_ROUND_EFFECT, 15)
        DECLARE_IMAGE_CONFIG(CLEAR_ICON_NORMAL, 16)
        DECLARE_IMAGE_CONFIG(CLEAR_ICON_PRESSED, 17)
-       DECLARE_IMAGE_CONFIG(GROUPED_SINGLE_BG_NORMAL, 18)
-       DECLARE_IMAGE_CONFIG(GROUPED_SINGLE_BG_EFFECT_NORMAL, 19)
-       DECLARE_IMAGE_CONFIG(GROUPED_TOP_BG_NORMAL, 20)
-       DECLARE_IMAGE_CONFIG(GROUPED_TOP_BG_EFFECT_NORMAL, 21)
-       DECLARE_IMAGE_CONFIG(GROUPED_MIDDLE_BG_NORMAL, 22)
-       DECLARE_IMAGE_CONFIG(GROUPED_MIDDLE_BG_EFFECT_NORMAL, 23)
-       DECLARE_IMAGE_CONFIG(GROUPED_BOTTOM_BG_NORMAL, 24)
-       DECLARE_IMAGE_CONFIG(GROUPED_BOTTOM_BG_EFFECT_NORMAL, 25)
-       DECLARE_IMAGE_CONFIG(BG_RING_FOCUSED, 26)
+       DECLARE_IMAGE_CONFIG(CLEAR_ICON_DISABLED, 18)
+       DECLARE_IMAGE_CONFIG(GROUPED_SINGLE_BG_NORMAL, 19)
+       DECLARE_IMAGE_CONFIG(GROUPED_SINGLE_BG_EFFECT_NORMAL, 20)
+       DECLARE_IMAGE_CONFIG(GROUPED_TOP_BG_NORMAL, 21)
+       DECLARE_IMAGE_CONFIG(GROUPED_TOP_BG_EFFECT_NORMAL, 22)
+       DECLARE_IMAGE_CONFIG(GROUPED_MIDDLE_BG_NORMAL, 23)
+       DECLARE_IMAGE_CONFIG(GROUPED_MIDDLE_BG_EFFECT_NORMAL, 24)
+       DECLARE_IMAGE_CONFIG(GROUPED_BOTTOM_BG_NORMAL, 25)
+       DECLARE_IMAGE_CONFIG(GROUPED_BOTTOM_BG_EFFECT_NORMAL, 26)
+       DECLARE_IMAGE_CONFIG(BG_RING_FOCUSED, 27)
 
        DECLARE_DIMENSION_CONFIG(MIN_SIZE, 1)
        DECLARE_DIMENSION_CONFIG(TITLE_STYLE_MIN_SIZE, 2)
index a791a7e..03bf643 100644 (file)
@@ -218,6 +218,9 @@ private:
        bool GetDensityDirectory(const Tizen::Base::String& directoryName, float& scaleFactor);
        bool GetResolutionDirectory(const Tizen::Base::String& directoryName, float& scaleFactor);
        void LoadPaletteInformation(const Tizen::Base::String& systemTheme);
+       void LoadBlackPalette(void);
+       void LoadWhitePalette(void);
+       void LoadDefaultPalette(void);
 private:
 
        struct ResourceFallbackItem
index 1bd852a..734c9b9 100644 (file)
@@ -41,6 +41,7 @@ DECLARE_UI_CONFIG(TABBAR);
        DECLARE_IMAGE_CONFIG(ITEM_BG_NORMAL, 5);
        DECLARE_IMAGE_CONFIG(ITEM_BG_PRESSED, 6);
        DECLARE_IMAGE_CONFIG(ITEM_BG_SELECTED, 7);
+       DECLARE_IMAGE_CONFIG(ITEM_BG_DISABLED, 8);
        DECLARE_SHAPE_CONFIG(FONT_SIZE, 1);
        DECLARE_SHAPE_CONFIG(FONT_MARGIN, 2);
        DECLARE_SHAPE_CONFIG(TOP_MARGIN, 3);
index 38be261..73eafd8 100644 (file)
@@ -1984,6 +1984,10 @@ ConfigParser::GetImageKeyTable(void)
                        __pImageKeyTable->Add(ResourceKey(key), _TABBAR::ITEM_BG_SELECTED_IMAGE);
                }
                {
+                       const char* key ="TABBAR::ITEM_BG_DISABLED";
+                       __pImageKeyTable->Add(ResourceKey(key), _TABBAR::ITEM_BG_DISABLED_IMAGE);
+               }
+               {
                        const char* key ="TAB::VERTICAL_DIVIDER_NORMAL";
                        __pImageKeyTable->Add(ResourceKey(key), _TAB::VERTICAL_DIVIDER_NORMAL_IMAGE);
                }
index 581ba10..0dad9be 100644 (file)
@@ -112,6 +112,8 @@ START_UI_CONFIG(CONTEXTMENU);
                ADD_SHAPE_CONFIG(APPEARING_ANIMATION_DISTANCE_Y, 40);
                ADD_SHAPE_CONFIG(ITEM_BG_PRESSED_MARGIN, 4);
                ADD_SHAPE_CONFIG(ANCHOR_POPUP_OVERLAP, 1);
+
+               ADD_SHAPE_CONFIG(LIST_TEXT_GAP, 20);
        END_UI_CONFIG_MODE(720x1280);
 
        START_UI_CONFIG_MODE(1280x720);
index 05a3954..cac6cff 100644 (file)
@@ -36,8 +36,9 @@ START_UI_CONFIG(EDIT);
        ADD_COLOR_CONFIG(TEXT_HIGHLIGHTED, $F011L1);
        ADD_COLOR_CONFIG(TEXT_DISABLED, $F011L1D);
        ADD_COLOR_CONFIG(GUIDE_TEXT_NORMAL, $F051);
-       ADD_COLOR_CONFIG(CLEAR_ICON_NORMAL, $F041i);
-       ADD_COLOR_CONFIG(CLEAR_ICON_PRESSED, $B042);
+       ADD_COLOR_CONFIG(CLEAR_ICON_NORMAL, $F041i); //$F053);
+       ADD_COLOR_CONFIG(CLEAR_ICON_PRESSED, $B042);//$F053P);
+       ADD_COLOR_CONFIG(CLEAR_ICON_DISABLED, $F053D);
        ADD_COLOR_CONFIG(CUT_LINK_TEXT_NORMAL, $B052L5);
        ADD_COLOR_CONFIG(CUT_LINK_BG_NORMAL, $B0217);
        ADD_COLOR_CONFIG(CURSOR_NORMAL, $F052);
@@ -59,6 +60,7 @@ START_UI_CONFIG(EDIT);
        ADD_IMAGE_CONFIG(BG_ROUND_EFFECT, #00_edit_field_line_round_bg_01.#.png);
        ADD_IMAGE_CONFIG(CLEAR_ICON_NORMAL, #00_edit_field_clear.png);
        ADD_IMAGE_CONFIG(CLEAR_ICON_PRESSED, #00_edit_field_clear.png);
+       ADD_IMAGE_CONFIG(CLEAR_ICON_DISABLED, #00_edit_field_clear.png);
        ADD_IMAGE_CONFIG(GROUPED_SINGLE_BG_NORMAL, #00_edit_group_bg.#.png);
        ADD_IMAGE_CONFIG(GROUPED_SINGLE_BG_EFFECT_NORMAL, #00_edit_group_bg_ef.#.png);
        ADD_IMAGE_CONFIG(GROUPED_TOP_BG_NORMAL, #00_edit_group_bg_top.#.png);
index 1857f8e..b1317cc 100644 (file)
@@ -40,7 +40,7 @@ START_UI_CONFIG(FOOTER);
 
        ADD_COLOR_CONFIG(BUTTON_TEXT_NORMAL, $B052L4);
        ADD_COLOR_CONFIG(BUTTON_TEXT_DISABLED, $B052L4D);
-       ADD_COLOR_CONFIG(BUTTON_TEXT_PRESSED, $B052L5);
+       ADD_COLOR_CONFIG(BUTTON_TEXT_PRESSED, $B052L4P);
        ADD_COLOR_CONFIG(BUTTON_TEXT_HIGHLIGHTED, $B052L4);
 
        ADD_COLOR_CONFIG(BUTTON_TRANSLUCENT_TEXT_NORMAL, $B052L8);
@@ -65,7 +65,7 @@ START_UI_CONFIG(FOOTER);
        ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_DISABLED, $B052L6);
        ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_PRESSED, $B052L6);
        ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_HIGHLIGHTED, $B052L6);
-       ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_SELECTED, $B052L6);
+       ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_SELECTED, $B052L6P);
 
        ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_NORMAL, $B052L8);
        ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_DISABLED, $B052L8);
@@ -89,7 +89,7 @@ START_UI_CONFIG(FOOTER);
        ADD_COLOR_CONFIG(TAB_ITEM_TEXT_DISABLED, $B052L6);
        ADD_COLOR_CONFIG(TAB_ITEM_TEXT_PRESSED, $B052L6);
        ADD_COLOR_CONFIG(TAB_ITEM_TEXT_HIGHLIGHTED, $B052L6);
-       ADD_COLOR_CONFIG(TAB_ITEM_TEXT_SELECTED, $B052L6);
+       ADD_COLOR_CONFIG(TAB_ITEM_TEXT_SELECTED, $B052L6P);
 
        ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_NORMAL, $B052L8);
        ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_DISABLED, $B052L8D);
@@ -337,8 +337,8 @@ START_UI_CONFIG(FOOTER);
                ADD_SHAPE_CONFIG(BUTTON_ITEM_MULTILINE_FONT_SIZE, 20);
                ADD_SHAPE_CONFIG(FOOTER_ITEM_FONT_SIZE, 32);
                ADD_SHAPE_CONFIG(FOOTER_ITEM_ICON_SIZE, 63);
-               ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE, 48);
-               ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE_WITH_TEXT, 40);
+               ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE, 63);
+               ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE_WITH_TEXT, 45);
                ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_SIDE_MARGIN, 28);
                ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_ITEM_GAP, 8);
                ADD_SHAPE_CONFIG(FOOTER_ITEM_TEXT_TOP_MARGIN, 0);
@@ -389,8 +389,8 @@ START_UI_CONFIG(FOOTER);
                ADD_SHAPE_CONFIG(BUTTON_ITEM_MULTILINE_FONT_SIZE, 20);
                ADD_SHAPE_CONFIG(FOOTER_ITEM_FONT_SIZE, 32);
                ADD_SHAPE_CONFIG(FOOTER_ITEM_ICON_SIZE, 63);
-               ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE, 48);
-               ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE_WITH_TEXT, 40);
+               ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE, 63);
+               ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_ICON_SIZE_WITH_TEXT, 45);
                ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_SIDE_MARGIN, 28);
                ADD_SHAPE_CONFIG(FOOTER_ITEM_BUTTON_STYLE_ITEM_GAP, 10);
                ADD_SHAPE_CONFIG(FOOTER_ITEM_TEXT_TOP_MARGIN, 0);//1280x720
index 7399014..3b6b223 100644 (file)
@@ -46,7 +46,7 @@ START_UI_CONFIG(HEADER);
 
        ADD_COLOR_CONFIG(BUTTON_TEXT_NORMAL, $B052L4);
        ADD_COLOR_CONFIG(BUTTON_TEXT_DISABLED, $B052L4D);
-       ADD_COLOR_CONFIG(BUTTON_TEXT_PRESSED, $B052L5);
+       ADD_COLOR_CONFIG(BUTTON_TEXT_PRESSED, $B052L4P);
        ADD_COLOR_CONFIG(BUTTON_TEXT_HIGHLIGHTED, $B052L4);
 
        ADD_COLOR_CONFIG(BUTTON_TRANSLUCENT_TEXT_NORMAL, $B052L8);
@@ -70,7 +70,7 @@ START_UI_CONFIG(HEADER);
        ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_DISABLED, $B052L6);
        ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_PRESSED, $B052L6);
        ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_HIGHLIGHTED, $B052L6);
-       ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_SELECTED, $B052L6);
+       ADD_COLOR_CONFIG(SEGMENTED_ITEM_TEXT_SELECTED, $B052L6P);
 
        ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_NORMAL, $B052L8);
        ADD_COLOR_CONFIG(SEGMENTED_ITEM_TRANSLUCENT_TEXT_DISABLED, $B052L8D);
@@ -94,7 +94,7 @@ START_UI_CONFIG(HEADER);
        ADD_COLOR_CONFIG(TAB_ITEM_TEXT_DISABLED, $B052L6);
        ADD_COLOR_CONFIG(TAB_ITEM_TEXT_PRESSED, $B052L6);
        ADD_COLOR_CONFIG(TAB_ITEM_TEXT_HIGHLIGHTED, $B052L6);
-       ADD_COLOR_CONFIG(TAB_ITEM_TEXT_SELECTED, $B052L6);
+       ADD_COLOR_CONFIG(TAB_ITEM_TEXT_SELECTED, $B052L6P);
 
        ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_NORMAL, $B052L8);
        ADD_COLOR_CONFIG(TAB_ITEM_TRANSLUCENT_TEXT_DISABLED, $B052L8D);
index ad9d70c..24b4787 100644 (file)
@@ -62,9 +62,9 @@ START_UI_CONFIG(OPTIONMENU);
                ADD_SHAPE_CONFIG(ARROW_MARGIN, 36);
 
                ADD_SHAPE_CONFIG(ITEM_HEIGHT, 112);
-               ADD_SHAPE_CONFIG(LIST_MAX_WIDTH, 500);
+               ADD_SHAPE_CONFIG(LIST_MAX_WIDTH, 696);
                ADD_SHAPE_CONFIG(ITEM_MAX_COUNT, 7);
-               ADD_SHAPE_CONFIG(LIST_MIN_WIDTH, 386);
+               ADD_SHAPE_CONFIG(LIST_MIN_WIDTH, 412);
                ADD_SHAPE_CONFIG(LIST_ITEM_HEIGHT, 112);
 
                ADD_SHAPE_CONFIG(LIST_DIVIDER_HEIGHT, 1);
index d532a33..dbc8cab 100644 (file)
@@ -41,6 +41,7 @@ START_UI_CONFIG(TABBAR);
        ADD_IMAGE_CONFIG(ITEM_BG_NORMAL, #00_category_button.#.png);
        ADD_IMAGE_CONFIG(ITEM_BG_PRESSED, #00_category_button_focus.#.png);
        ADD_IMAGE_CONFIG(ITEM_BG_SELECTED, #00_category_button.#.png);
+       ADD_IMAGE_CONFIG(ITEM_BG_DISABLED, #00_category_button.#.png);
 
        START_UI_CONFIG_MODE(480x800);
        END_UI_CONFIG_MODE(480x800);
index 87f68fa..1610552 100644 (file)
@@ -146,10 +146,10 @@ START_UI_CONFIG(TABLEVIEW);
                ADD_SHAPE_CONFIG(GROUPITEM_BAR_WIDTH, 7);
                ADD_SHAPE_CONFIG(GROUPITEM_BAR_TOP_MARGIN, 4);
                ADD_SHAPE_CONFIG(GROUPITEM_INDEX_BAR_HEIGHT, 4);
-               ADD_SHAPE_CONFIG(GROUPITEM_INDEX_BAR_LEFT_MARGIN, 26);
+               ADD_SHAPE_CONFIG(GROUPITEM_INDEX_BAR_LEFT_MARGIN, 0);
                ADD_SHAPE_CONFIG(GROUPITEM_INDEX_BAR_BOTTOM_MARGIN, 14);
                ADD_SHAPE_CONFIG(FASTSCROLL_INDEX_WIDTH, 51);
-               ADD_SHAPE_CONFIG(ITEM_DIVIDER_LEFT_MARGIN, 4);
+               ADD_SHAPE_CONFIG(ITEM_DIVIDER_LEFT_MARGIN, 0);
                ADD_FIXED_VALUE_CONFIG(ITEM_DIVIDER_HEIGHT, 1);
                ADD_FIXED_VALUE_CONFIG(SECTIONITEM_TOP_MARGIN, 0);
                ADD_FIXED_VALUE_CONFIG(ITEM_ANNEX_DIVIDER_WIDTH, 1);