Merge "Fix the scene destroy timing problems - Do sync. scene destroy for non-animati...
authorJungmin Park <jungmin76.park@samsung.com>
Thu, 11 Jul 2013 12:47:49 +0000 (12:47 +0000)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 11 Jul 2013 12:47:49 +0000 (12:47 +0000)
src/ui/controls/FUiCtrl_DateTimePresenter.cpp
src/ui/controls/FUiCtrl_Form.cpp
src/ui/controls/FUiCtrl_FormImpl.cpp
src/ui/controls/FUiCtrl_Indicator.cpp
src/ui/controls/FUiCtrl_Popup.cpp

index c00d339..513a5b1 100644 (file)
@@ -729,8 +729,6 @@ _DateTimePresenter::OnActionPerformed(const _Control& source, int actionId)
 bool
 _DateTimePresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo)
 {
-       int boxId = 0;
-
        if (!__keypadEnabled)
        {
                return false;
@@ -738,17 +736,6 @@ _DateTimePresenter::OnKeyPressed(const _Control& source, const _KeyInfo& keyInfo
 
        _KeyCode keyCode = keyInfo.GetKeyCode();
 
-       if (__focusedBoxIndex < __outputBoxMaxCount)
-       {
-               boxId = __pDisplayBox[__focusedBoxIndex]->GetDisplayBoxId();
-
-               if ((keyCode != _KEY_RIGHT) && (keyCode != _KEY_LEFT) && (keyCode != _KEY_TAB) && (boxId == DATETIME_ID_MONTH))
-               {
-                       //month can be changed only with touch on input pad
-                       return true;
-               }
-       }
-
        switch (keyCode)
        {
                case _KEY_RIGHT:
@@ -944,11 +931,39 @@ _DateTimePresenter::HandleInputPadValueChange(int inputPadReturnValue)
        else if (boxId == DATETIME_ID_MONTH)
        {
                PLAY_FEEDBACK(_RESOURCE_FEEDBACK_PATTERN_SIP, __pView);
-               newNumber = inputPadReturnValue;
-               __inputComposing = DATETIME_INPUT_BEGIN;
+
+               if (__inputComposing == DATETIME_INPUT_BEGIN && __keypadEnabled)
+               {
+                       currentNumber = GetNumberInBox(boxId);
+                       newNumber = currentNumber * 10 + inputPadReturnValue;
+
+                       if (newNumber > 12)
+                       {
+                               newNumber = 12;
+                       }
+                       else if (newNumber < 1)
+                       {
+                               newNumber = 1;
+                       }
+
+                       ChangeFocusBox();
+               }
+               else
+               {
+                       if (inputPadReturnValue == 0)
+                       {
+                               return;
+                       }
+                       newNumber = inputPadReturnValue;
+                       __inputComposing = DATETIME_INPUT_BEGIN;
+
+                       if (!__keypadEnabled || newNumber > 1)
+                       {
+                               ChangeFocusBox();
+                       }
+               }
 
                SetNumberInBox(boxId, newNumber);
-               ChangeFocusBox();
        }
        else
        {
index e1251d4..542cb94 100644 (file)
@@ -2948,7 +2948,7 @@ _Form::SetIndicatorShowState(bool state)
        }
        else if (!pFrame && IsAttachedToMainTree())
        {
-               r = __pIndicator->SetIndicatorShowState(false);
+               __pIndicator->SetShowState(false);
        }
 
        __indicatorShowState = state;
index f7c238a..b9eeb33 100644 (file)
@@ -335,6 +335,15 @@ _FormImpl::SetFormStyle(unsigned long formStyle)
                }
                else
                {
+                       if (OnFormOrientationStatusRequested() == ORIENTATION_STATUS_PORTRAIT || OnFormOrientationStatusRequested() == ORIENTATION_STATUS_PORTRAIT_REVERSE)
+                       {
+                               GetCore().SetIndicatorShowState(true);
+                       }
+                       else
+                       {
+                               GetCore().SetIndicatorShowState(false);
+                       }
+
                        GetCore().SetIndicatorAutoHide(false, false);
                }
                r = GetLastResult();
@@ -1249,6 +1258,10 @@ _FormImpl::OnChangeLayout(_ControlOrientation orientation)
                                {
                                        GetCore().SetIndicatorShowState(true);
                                }
+                               else
+                               {
+                                       GetCore().SetIndicatorShowState(false);
+                               }
                        }
                }
                GetCore().AdjustClientBounds();
@@ -1262,7 +1275,6 @@ _FormImpl::OnChangeLayout(_ControlOrientation orientation)
                pIndicator->OnChangeLayout(orientation);
        }
 
-
        float adjHeight = 0.0f;
 
        if (GetCore().HasHeader())
index 3fed93a..6ff33ea 100644 (file)
@@ -465,7 +465,6 @@ _Indicator::OnChangeLayout(_ControlOrientation orientation)
                }
                else
                {
-                       SetIndicatorShowState(false);
                        SetIndicatorOpacity(__opacity);
                        ecore_x_e_illume_indicator_opacity_set(win, ECORE_X_ILLUME_INDICATOR_OPAQUE);
                }
index c64b61c..8c8d892 100644 (file)
@@ -813,6 +813,10 @@ _Popup::OnChangeLayout(_ControlOrientation orientation)
                                {
                                        __pIndicator->SetIndicatorShowState(true);
                                }
+                               else
+                               {
+                                       __pIndicator->SetIndicatorShowState(false);
+                               }
                        }
                        __pIndicator->OnChangeLayout(orientation);
                }