Fixed colorpicker accessibility issues (Hueslider focus, Saturationslider reverse...
authorsriram.k <sriram.k@samsung.com>
Fri, 12 Apr 2013 08:40:53 +0000 (14:10 +0530)
committerSyed Khaja Moinuddin <moinuddin.s@samsung.com>
Mon, 15 Apr 2013 01:47:31 +0000 (10:47 +0900)
Signed-off-by: sriram.k <sriram.k@samsung.com>
Change-Id: I71498d35dd9a1fc52bfa75da01fb4d60066fab50

src/ui/controls/FUiCtrl_ColorPicker.cpp

index 10dbd9e..9e5e7cd 100644 (file)
@@ -378,7 +378,8 @@ _ColorPicker::InitializeAccessibilityElement(void)
                __pHueBarElement->SetLabel("Hue Slider");
                __pHueBarElement->SetTrait(ACCESSIBILITY_TRAITS_NONE);
                __pHueBarElement->SetHint(hintText);
-               __pHueBarElement->SetBounds(floatBounds);
+               __pHueBarElement->SetSupportOperatingGesture(false);
+               __pHueBarElement->SetBounds(FloatRectangle(floatBounds.x, floatBounds.y, floatBounds.width, blockHeight));
                pContainer->AddElement(*__pHueBarElement);
 
                String hueValue;
@@ -391,6 +392,7 @@ _ColorPicker::InitializeAccessibilityElement(void)
                __pSaturationBarElement->SetLabel("Saturation Slider");
                __pSaturationBarElement->SetTrait(ACCESSIBILITY_TRAITS_NONE);
                __pSaturationBarElement->SetHint(hintText);
+               __pSaturationBarElement->SetSupportOperatingGesture(false);
                __pSaturationBarElement->SetBounds(FloatRectangle(floatBounds.x, floatBounds.y + blockHeight, floatBounds.width, blockHeight));
                pContainer->AddElement(*__pSaturationBarElement);
 
@@ -404,6 +406,7 @@ _ColorPicker::InitializeAccessibilityElement(void)
                __pLuminanceBarElement->SetLabel("Luminance Slider");
                __pLuminanceBarElement->SetTrait(ACCESSIBILITY_TRAITS_NONE);
                __pLuminanceBarElement->SetHint(hintText);
+               __pLuminanceBarElement->SetSupportOperatingGesture(false);
                __pLuminanceBarElement->SetBounds(FloatRectangle(floatBounds.x, floatBounds.y + 2 * blockHeight, floatBounds.width, blockHeight));
                pContainer->AddElement(*__pLuminanceBarElement);
 
@@ -539,7 +542,7 @@ _ColorPicker::OnAccessibilityValueIncreased(const _AccessibilityContainer& contr
        }
        else if (elementLabel.Equals(L"Saturation Slider", false))
        {
-               SetSaturation(GetSaturation() + 1);
+               SetSaturation(GetSaturation() - 1);
                string.Append(GetSaturation());
        }
        else if (elementLabel.Equals(L"Luminance Slider", false))
@@ -568,7 +571,7 @@ _ColorPicker::OnAccessibilityValueDecreased(const _AccessibilityContainer& contr
        }
        else if (elementLabel.Equals(L"Saturation Slider", false))
        {
-               SetSaturation(GetSaturation() - 1);
+               SetSaturation(GetSaturation() + 1);
                string.Append(GetSaturation());
        }
        else if (elementLabel.Equals(L"Luminance Slider", false))