Merge branch 'tizen_2.1' into devgfx
authorSungyeon Woo <s.woo@samsung.com>
Tue, 14 May 2013 06:07:09 +0000 (15:07 +0900)
committerSungyeon Woo <s.woo@samsung.com>
Tue, 14 May 2013 07:16:01 +0000 (16:16 +0900)
Change-Id: I2a5cec902ff6b89bb21ad4bd240fdf2ffe9b07f3

12 files changed:
inc/FUiCtrlPanel.h
inc/FUiCtrlPopup.h
inc/FUiCtrlScrollPanel.h
src/graphics/FGrp_Font.cpp
src/ui/controls/FUiCtrl_EditPresenter.cpp
src/ui/controls/FUiCtrl_ExpandableListImpl.cpp
src/ui/controls/FUiCtrl_ListBaseImpl.cpp
src/ui/inc/FUi_ResourceListConfig.h
src/ui/inc/FUi_ResourceTableViewConfig.h
src/ui/resource/FUi_ResourceConfigParser.cpp
src/ui/resource/FUi_ResourceListConfig.cpp
src/ui/resource/FUi_ResourceTableViewConfig.cpp

index b7a60ca..148bbdc 100644 (file)
@@ -176,6 +176,8 @@ public:
         * @exception  E_FILE_NOT_FOUND        The specified file cannot be found.
         * @exception  E_INVALID_FORMAT        The specified XML format is invalid.
         * @exception  E_OPERATION_FAILED      The operation has failed.
+        * @remarks     If SetBounds(), SetSize(), SetPosition() methods are called before the control is added to the parent via AddControl(), then the new value is applied
+        *                      to both orientations because the current orientation is not known. After AddControl() is called, then the values are applied only to the current orientation.  
         */
        result Construct(const Tizen::Base::String& resourceId);
 
index 9bdf0f7..efc2da5 100644 (file)
@@ -246,6 +246,8 @@ public:
         * @exception  E_OPERATION_FAILED      The operation has failed.
         * @remarks             The default owner will be the current Form (or Frame). It is possible that this control may not be visible
         * due to this ownership relationship. @n In this case, use the SetOwner() method to change the ownership to the top-most window.
+        * @remarks     If SetBounds(), SetSize(), SetPosition() methods are called before Show(), then the new value is applied to both orientations 
+        *                      because the current orientation is not known. After Show() is called, then the values are applied only to the current orientation.
         */
        result Construct(const Tizen::Base::String& resourceId);
 
index c288037..1b9d017 100644 (file)
@@ -184,6 +184,8 @@ public:
         * @exception  E_FILE_NOT_FOUND        The specified file cannot be found.
         * @exception  E_INVALID_FORMAT        The specified XML format is invalid.
         * @exception  E_OPERATION_FAILED      The operation has failed.
+        * @remarks     If SetBounds(), SetSize(), SetPosition() methods are called before the control is added to the parent via AddControl(), then the new value is applied
+        *                      to both orientations because the current orientation is not known. After AddControl() is called, then the values are applied only to the current orientation. 
         */
        result Construct(const Tizen::Base::String& resourceId);
 
index 66d93fb..e6895d5 100755 (executable)
@@ -138,10 +138,6 @@ _GetSystemFontList(Tizen::Base::Collection::IList& list)
        const char* pLang = null;
        const char* fcStyle = "Regular";
 
-       // initialize fontconfig library
-       FcBool rtn = FcInit();
-       SysTryCatch(NID_GRP, rtn, , E_SYSTEM, "[E_SYSTEM] Failed to init fontconfig");
-
        pPattern = FcPatternCreate();
        SysTryCatch(NID_GRP, pPattern, , E_SYSTEM, "[E_SYSTEM] Failed to FcPatternCreate()");
 
@@ -214,7 +210,6 @@ _GetSystemFontList(Tizen::Base::Collection::IList& list)
        FcFontSetDestroy(pSet);
        FcObjectSetDestroy(pObjectSet);
        FcPatternDestroy(pPattern);
-       FcFini();
 
        return E_SUCCESS;
 
@@ -237,8 +232,6 @@ CATCH:
                FcPatternDestroy(pPattern);
        }
 
-       FcFini();
-
        return GetLastResult();
 
 #else
@@ -2318,10 +2311,6 @@ _Font::__GetFallbackFontFileList(wchar_t character, Tizen::Base::Collection::ILi
        FcResult res = FcResultNoMatch;
        const char* fcStyle = (__fontAttrib.style & FONT_STYLE_BOLD) ? "Bold" : "Regular";
 
-       // initialize fontconfig library
-       FcBool rtn = FcInit();
-       SysTryCatch(NID_GRP, rtn, , E_SYSTEM, "[E_SYSTEM] Failed to init fontconfig");
-
        // getting fallback font list
        pPattern = FcPatternBuild(NULL, FC_STYLE, FcTypeString, (FcChar8*)fcStyle, NULL);
        SysTryCatch(NID_GRP, pPattern, , E_SYSTEM, "[E_SYSTEM] Failed to FcPatternBuild()");
@@ -2353,10 +2342,8 @@ _Font::__GetFallbackFontFileList(wchar_t character, Tizen::Base::Collection::ILi
        // destroy
        FcFontSetDestroy(pSet);
        FcPatternDestroy(pPattern);
-       FcFini();
 
        return (out.GetCount() > 0) ? true : false;
-
 CATCH:
        if (pSet != null)
        {
@@ -2368,8 +2355,6 @@ CATCH:
                FcPatternDestroy(pPattern);
        }
 
-       FcFini();
-
        return false;
 }
 
index c3305e6..433cf82 100644 (file)
@@ -314,14 +314,6 @@ _EditPresenter::OnInputConnectionPanelShowStateChanged(InputConnection& source,
                                SetFooterVisible(true);// must be called ahead of DeflateClientRectHeight
                        }
 
-                       if (!__pEdit->IsFullScreenKeypadEdit())
-                       {
-                               if (__pParentForm)
-                               {
-                                       __pParentForm->SetKeypadShowState(false);
-                               }
-                       }
-
                        ChangeLayoutInternal(__pEdit->GetOrientation());
 
                        if (__isClipboardExist)
@@ -332,6 +324,15 @@ _EditPresenter::OnInputConnectionPanelShowStateChanged(InputConnection& source,
                        {
                                AdjustParentPanelHeight(true);
                        }
+
+                       if (!__pEdit->IsFullScreenKeypadEdit())
+                       {
+                               if (__pParentForm)
+                               {
+                                       __pParentForm->SetKeypadShowState(false);
+                                       __pParentForm->Draw();
+                               }
+                       }
                }
                else
                {
@@ -359,6 +360,15 @@ _EditPresenter::OnInputConnectionPanelShowStateChanged(InputConnection& source,
                                {
                                        AdjustParentPanelHeight(true);
                                }
+
+                               if (!__pEdit->IsFullScreenKeypadEdit())
+                               {
+                                       if (__pParentForm)
+                                       {
+                                               __pParentForm->SetKeypadShowState(false);
+                                               __pParentForm->Draw();
+                                       }
+                               }
                        }
                        else// called by focus move or HideKeypad() api call
                        {
@@ -379,19 +389,15 @@ _EditPresenter::OnInputConnectionPanelShowStateChanged(InputConnection& source,
                                        SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
                                        __pParentForm->DeflateClientRectHeight(0.0f);
                                }
-                       }
-               }
 
-               if (!__pEdit->IsFullScreenKeypadEdit())
-               {
-                       if (__pParentForm)
-                       {
-                               if (!__isUSBKeyboardConnected)
+                               if (!__pEdit->IsFullScreenKeypadEdit())
                                {
-                                       __pParentForm->SetKeypadShowState(false);
+                                       if (__pParentForm)
+                                       {
+                                               __pParentForm->SetKeypadShowState(false);
+                                               __pParentForm->Draw();
+                                       }
                                }
-
-                               __pParentForm->Draw();
                        }
                }
 
index 5ec55c4..8eb35d6 100644 (file)
@@ -601,9 +601,9 @@ _ExpandableListImpl::LoadArrowBitmap(void)
        Color disabledColor;
        Color pressedColor;
 
-       GET_COLOR_CONFIG(TABLEVIEW::EXPANDABLE_ARROW_NORMAL, normalColor);
-       GET_COLOR_CONFIG(TABLEVIEW::EXPANDABLE_ARROW_DISABLED, disabledColor);
-       GET_COLOR_CONFIG(TABLEVIEW::EXPANDABLE_ARROW_PRESSED, pressedColor);
+       GET_COLOR_CONFIG(LIST::EXPANDABLE_ARROW_NORMAL, normalColor);
+       GET_COLOR_CONFIG(LIST::EXPANDABLE_ARROW_DISABLED, disabledColor);
+       GET_COLOR_CONFIG(LIST::EXPANDABLE_ARROW_PRESSED, pressedColor);
 
        r = GET_BITMAP_CONFIG_N(LIST::BUTTON_COLLAPSE_GROUP, BITMAP_PIXEL_FORMAT_ARGB8888, pTempBitmap);
        SysTryReturnResult(NID_UI_CTRL, (r == E_SUCCESS), r, "Failed to fetch Arrow Bitmap");
@@ -623,10 +623,10 @@ _ExpandableListImpl::LoadArrowBitmap(void)
        delete pTempBitmap;
        pTempBitmap = null;
 
-       r = GET_BITMAP_CONFIG_N(TABLEVIEW::BUTTON_EXPAND_CLOSED_EFFECT, BITMAP_PIXEL_FORMAT_ARGB8888, __pEffectOpenedImage);
+       r = GET_BITMAP_CONFIG_N(LIST::BUTTON_EXPAND_CLOSED_EFFECT, BITMAP_PIXEL_FORMAT_ARGB8888, __pEffectOpenedImage);
        SysTryReturnResult(NID_UI_CTRL, (r == E_SUCCESS), r, "Failed to fetch Arrow effect Bitmap");
 
-       r = GET_BITMAP_CONFIG_N(TABLEVIEW::BUTTON_EXPAND_OPENED_EFFECT, BITMAP_PIXEL_FORMAT_ARGB8888, __pEffectClosedImage);
+       r = GET_BITMAP_CONFIG_N(LIST::BUTTON_EXPAND_OPENED_EFFECT, BITMAP_PIXEL_FORMAT_ARGB8888, __pEffectClosedImage);
        SysTryReturnResult(NID_UI_CTRL, (r == E_SUCCESS), r, "Failed to fetch Arrow effect Bitmap");
 
        return r;
index 7ba002b..88b32f9 100644 (file)
@@ -77,8 +77,6 @@ _ListBaseImpl::CreateMergedBitmapN(Bitmap& pNormalBitmap, Bitmap* pSelectedBitma
        Canvas* pCanvas = null;
 
        Rectangle bitmapBounds;
-       Color canvasBackgroundColor;
-
        result r = E_SUCCESS;
 
        bitmapBounds =  Rectangle(0, 0, pNormalBitmap.GetWidth(), pNormalBitmap.GetHeight());
@@ -86,10 +84,8 @@ _ListBaseImpl::CreateMergedBitmapN(Bitmap& pNormalBitmap, Bitmap* pSelectedBitma
        pCanvas = new (std::nothrow) Canvas();
        SysTryReturn(NID_UI_CTRL, pCanvas != null, null, E_OUT_OF_MEMORY, "Memory allocation failed.");
 
-       GET_COLOR_CONFIG(TABLEVIEW::ITEM_ANNEX_CANVAS_BG_NORMAL, canvasBackgroundColor);
-
        pCanvas->Construct(bitmapBounds);
-       pCanvas->SetBackgroundColor(Color(canvasBackgroundColor.GetRed(), canvasBackgroundColor.GetGreen(), canvasBackgroundColor.GetBlue(), 0));
+       pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
        pCanvas->Clear();
 
        if (_BitmapImpl::CheckNinePatchedBitmapStrictly(pNormalBitmap))
@@ -138,11 +134,8 @@ _ListBaseImpl::CreateOnOffMergedBitmapN(Bitmap& pNormalBitmap, Bitmap& pSelected
        Canvas* pCanvas = null;
 
        Rectangle bitmapBounds;
-
-       result r = E_SUCCESS;
-
        Rectangle handlerBounds;
-       Color canvasBackgroundColor;
+       result r = E_SUCCESS;
 
        bitmapBounds =  Rectangle(0, 0, pNormalBitmap.GetWidth(), pNormalBitmap.GetHeight());
 
@@ -161,10 +154,8 @@ _ListBaseImpl::CreateOnOffMergedBitmapN(Bitmap& pNormalBitmap, Bitmap& pSelected
        pCanvas = new (std::nothrow) Canvas();
        SysTryReturn(NID_UI_CTRL, pCanvas != null, null, E_OUT_OF_MEMORY, "Memory allocation failed.");
 
-       GET_COLOR_CONFIG(TABLEVIEW::ITEM_ANNEX_CANVAS_BG_NORMAL, canvasBackgroundColor);
-
        pCanvas->Construct(bitmapBounds);
-       pCanvas->SetBackgroundColor(Color(canvasBackgroundColor.GetRed(), canvasBackgroundColor.GetGreen(), canvasBackgroundColor.GetBlue(), 0));
+       pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
        pCanvas->Clear();
 
        if (_BitmapImpl::CheckNinePatchedBitmapStrictly(pNormalBitmap))
index 209d8c3..c4bb556 100644 (file)
@@ -32,15 +32,13 @@ DECLARE_UI_CONFIG(LIST);
        DECLARE_COLOR_CONFIG(ELEMENT_TEXT_PRESSED, 5);
        DECLARE_COLOR_CONFIG(ELEMENT_TEXT_HIGHLIGHTED, 6);
        DECLARE_COLOR_CONFIG(ELEMENT_TEXT_DISABLED, 7);
-       DECLARE_IMAGE_CONFIG(CHECK_BG_BITMAP, 1);
-       DECLARE_IMAGE_CONFIG(CHECK_MARK_BG_BITMAP, 2);
-       DECLARE_IMAGE_CONFIG(CHECK_DIM_BITMAP, 3);
-       DECLARE_IMAGE_CONFIG(BUTTON_RADIO_BITMAP, 4);
-       DECLARE_IMAGE_CONFIG(BUTTON_RADIO_SELECTED_BITMAP, 5);
-       DECLARE_IMAGE_CONFIG(BUTTON_OFF_BITMAP, 6);
-       DECLARE_IMAGE_CONFIG(BUTTON_ON_BITMAP, 7);
-       DECLARE_IMAGE_CONFIG(BUTTON_EXPAND_GROUP, 8);
-       DECLARE_IMAGE_CONFIG(BUTTON_COLLAPSE_GROUP, 9);
+       DECLARE_COLOR_CONFIG(EXPANDABLE_ARROW_NORMAL, 8);
+       DECLARE_COLOR_CONFIG(EXPANDABLE_ARROW_DISABLED, 9);
+       DECLARE_COLOR_CONFIG(EXPANDABLE_ARROW_PRESSED, 10);
+       DECLARE_IMAGE_CONFIG(BUTTON_EXPAND_GROUP, 1);
+       DECLARE_IMAGE_CONFIG(BUTTON_COLLAPSE_GROUP, 2);
+       DECLARE_IMAGE_CONFIG(BUTTON_EXPAND_CLOSED_EFFECT, 3);
+       DECLARE_IMAGE_CONFIG(BUTTON_EXPAND_OPENED_EFFECT, 4);
        DECLARE_SHAPE_CONFIG(EMPTY_LIST_TEXT_HEIGHT, 1);
        DECLARE_SHAPE_CONFIG(LIST_ITEM_TEXT_SIZE, 2);
        DECLARE_SHAPE_CONFIG(LIST_STYLE_NUMBER_X, 3);
index 7354cc9..38e6ef2 100644 (file)
@@ -26,9 +26,9 @@
 
 DECLARE_UI_CONFIG(TABLEVIEW);
        DECLARE_COLOR_CONFIG(BG_NORMAL, 1);
-       DECLARE_COLOR_CONFIG(EXPANDABLE_ARROW_NORMAL, 2);
-       DECLARE_COLOR_CONFIG(EXPANDABLE_ARROW_DISABLED, 3);
-       DECLARE_COLOR_CONFIG(EXPANDABLE_ARROW_PRESSED, 4);
+//     DECLARE_COLOR_CONFIG(EXPANDABLE_ARROW_NORMAL, 2);
+//     DECLARE_COLOR_CONFIG(EXPANDABLE_ARROW_DISABLED, 3);
+//     DECLARE_COLOR_CONFIG(EXPANDABLE_ARROW_PRESSED, 4);
        DECLARE_COLOR_CONFIG(ITEM_DIVIDER_TOP_BG_NORMAL, 5);
        DECLARE_COLOR_CONFIG(ITEM_DIVIDER_BOTTOM_BG_NORMAL, 6);
        DECLARE_COLOR_CONFIG(ITEM_BG_NORMAL, 7);
@@ -97,8 +97,8 @@ DECLARE_UI_CONFIG(TABLEVIEW);
        DECLARE_IMAGE_CONFIG(CIRCLE_BUTTON_BG_EFFECT, 32);
 //     DECLARE_IMAGE_CONFIG(CIRCLE_BUTTON_REVEAL, 33);
        DECLARE_IMAGE_CONFIG(SEARCH_ICON_NORMAL, 34);
-       DECLARE_IMAGE_CONFIG(BUTTON_EXPAND_CLOSED_EFFECT, 35);
-       DECLARE_IMAGE_CONFIG(BUTTON_EXPAND_OPENED_EFFECT, 36);
+//     DECLARE_IMAGE_CONFIG(BUTTON_EXPAND_CLOSED_EFFECT, 35);
+//     DECLARE_IMAGE_CONFIG(BUTTON_EXPAND_OPENED_EFFECT, 36);
        DECLARE_IMAGE_CONFIG(CHECKBOX_BG_DISABLED, 37);
        DECLARE_IMAGE_CONFIG(CHECKBOX_CHECK_MARK_DISABLED, 38);
        DECLARE_IMAGE_CONFIG(RADIOBUTTON_NORMAL_DISABLED, 39);
index c73b75e..05089ca 100644 (file)
@@ -3908,18 +3908,6 @@ ConfigParser::GetColorKeyTable(void)
                        __pColorKeyTable->Add(ResourceKey(key), _TABLEVIEW::BG_NORMAL_COLOR);
                }
                {
-                       const char* key ="TABLEVIEW::EXPANDABLE_ARROW_NORMAL";
-                       __pColorKeyTable->Add(ResourceKey(key), _TABLEVIEW::EXPANDABLE_ARROW_NORMAL_COLOR);
-               }
-               {
-                       const char* key ="TABLEVIEW::EXPANDABLE_ARROW_DISABLED";
-                       __pColorKeyTable->Add(ResourceKey(key), _TABLEVIEW::EXPANDABLE_ARROW_DISABLED_COLOR);
-               }
-               {
-                       const char* key ="TABLEVIEW::EXPANDABLE_ARROW_PRESSED";
-                       __pColorKeyTable->Add(ResourceKey(key), _TABLEVIEW::EXPANDABLE_ARROW_PRESSED_COLOR);
-               }
-               {
                        const char* key ="TABLEVIEW::ITEM_DIVIDER_TOP_BG_NORMAL";
                        __pColorKeyTable->Add(ResourceKey(key), _TABLEVIEW::ITEM_DIVIDER_TOP_BG_NORMAL_COLOR);
                }
index c693e36..fe2b6aa 100644 (file)
@@ -28,12 +28,17 @@ START_UI_CONFIG(LIST);
        ADD_COLOR_CONFIG(LISTITEM_DIVIDER_LEFT_HALF_COLOR, $B0223);
        ADD_COLOR_CONFIG(LISTITEM_DIVIDER_RIGHT_HALF_COLOR, $B0222);
        ADD_COLOR_CONFIG(EXPANDABLELIST_SUB_ITEM_BG_COLOR, $B0217);
+       ADD_COLOR_CONFIG(EXPANDABLE_ARROW_NORMAL, $F032L1);
+       ADD_COLOR_CONFIG(EXPANDABLE_ARROW_DISABLED, $F032L1D);
+       ADD_COLOR_CONFIG(EXPANDABLE_ARROW_PRESSED, $F032L1P);
        ADD_COLOR_CONFIG(ELEMENT_TEXT_NORMAL, $F011L1);
        ADD_COLOR_CONFIG(ELEMENT_TEXT_PRESSED, $F011L1P);
        ADD_COLOR_CONFIG(ELEMENT_TEXT_HIGHLIGHTED, $F011L1P);
        ADD_COLOR_CONFIG(ELEMENT_TEXT_DISABLED, $F011L1D);
        ADD_IMAGE_CONFIG(BUTTON_EXPAND_GROUP, #00_button_expand_opened.png);
        ADD_IMAGE_CONFIG(BUTTON_COLLAPSE_GROUP, #00_button_expand_closed.png);
+       ADD_IMAGE_CONFIG(BUTTON_EXPAND_CLOSED_EFFECT, #00_button_expand_closed_ef.png);
+       ADD_IMAGE_CONFIG(BUTTON_EXPAND_OPENED_EFFECT, #00_button_expand_opened_ef.png);
 
        START_UI_CONFIG_MODE(720x1280);
                ADD_SHAPE_CONFIG(EMPTY_LIST_TEXT_HEIGHT, 38);
index 2016352..89f4864 100644 (file)
@@ -25,9 +25,6 @@
 START_UI_CONFIG(TABLEVIEW);
 {
        ADD_COLOR_CONFIG(BG_NORMAL, 0x00000000);
-       ADD_COLOR_CONFIG(EXPANDABLE_ARROW_NORMAL, $F032L1);
-       ADD_COLOR_CONFIG(EXPANDABLE_ARROW_DISABLED, $F032L1D);
-       ADD_COLOR_CONFIG(EXPANDABLE_ARROW_PRESSED, $F032L1P);
        ADD_COLOR_CONFIG(ITEM_DIVIDER_TOP_BG_NORMAL, $B0222);
        ADD_COLOR_CONFIG(ITEM_DIVIDER_BOTTOM_BG_NORMAL, $B0223);
        ADD_COLOR_CONFIG(ITEM_BG_NORMAL, 0x00000000);
@@ -105,8 +102,6 @@ START_UI_CONFIG(TABLEVIEW);
        ADD_IMAGE_CONFIG(CIRCLE_BUTTON_BG_EFFECT_DISABLED, #00_circle_bg_ef_dim.png);
        ADD_IMAGE_CONFIG(CIRCLE_BUTTON_REVEAL_NORMAL, #00_button_right.png);
        ADD_IMAGE_CONFIG(SEARCH_ICON_NORMAL, #00_search_icon.png);
-       ADD_IMAGE_CONFIG(BUTTON_EXPAND_CLOSED_EFFECT, #00_button_expand_closed_ef.png);
-       ADD_IMAGE_CONFIG(BUTTON_EXPAND_OPENED_EFFECT, #00_button_expand_opened_ef.png);
        ADD_IMAGE_CONFIG(CHECKBOX_CHECK_MARK_PRESSED, #00_check_press.png);
        ADD_IMAGE_CONFIG(CIRCLE_BUTTON_REVEAL_PRESSED, #00_button_right.png);
        ADD_IMAGE_CONFIG(CIRCLE_BUTTON_REVEAL_HIGHLIGHTED, #00_button_right.png);