Restore the state of indicator.
authorKeuckdo Bang <keuckdo.bang@samsung.net>
Tue, 29 Oct 2013 00:41:37 +0000 (09:41 +0900)
committerKeuckdo Bang <keuckdo.bang@samsung.net>
Tue, 29 Oct 2013 00:41:37 +0000 (09:41 +0900)
Change-Id: Ib2d431a310dd97d8bf5f61630f0c2e397ff6050a

src/ui/controls/FUiCtrl_Frame.cpp

index 994fc68..0e9aa0b 100644 (file)
@@ -971,6 +971,59 @@ _Frame::OnBackgroundColorChanged(Color& backgroundColor)
        default:
                break;
        }
+
+       if (FORM_STYLE_INDICATOR & pCurrentForm->GetFormStyle())
+       {
+               pCurrentForm->SetIndicatorShowState(pCurrentForm->IsIndicatorVisible());
+               if (FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE & pCurrentForm->GetFormStyle())
+               {
+                       pCurrentForm->SetIndicatorAutoHide(false, true);
+               }
+               else
+               {
+                       pCurrentForm->SetIndicatorAutoHide(false, false);
+               }
+       }
+       else
+       {
+               if ((FORM_STYLE_INDICATOR_AUTO_HIDE & pCurrentForm->GetFormStyle()) && (FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE & pCurrentForm->GetFormStyle()))
+               {
+                       pCurrentForm->SetIndicatorShowState(pCurrentForm->IsIndicatorVisible());
+                       pCurrentForm->SetIndicatorAutoHide(true, true);
+               }
+               else
+               {
+                       if (FORM_STYLE_INDICATOR_AUTO_HIDE & pCurrentForm->GetFormStyle())
+                       {
+                               if (GetOrientation() == _CONTROL_ORIENTATION_PORTRAIT)
+                               {
+                                       pCurrentForm->SetIndicatorShowState(pCurrentForm->IsIndicatorVisible());
+                               }
+                               else
+                               {
+                                       pCurrentForm->SetIndicatorShowState(false);
+                               }
+                               pCurrentForm->SetIndicatorAutoHide(true, false);
+                       }
+                       else if(FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE & pCurrentForm->GetFormStyle())
+                       {
+                               if (GetOrientation() == _CONTROL_ORIENTATION_PORTRAIT)
+                               {
+                                       pCurrentForm->SetIndicatorShowState(false);
+                               }
+                               else
+                               {
+                                       pCurrentForm->SetIndicatorShowState(pCurrentForm->IsIndicatorVisible());
+                               }
+                               pCurrentForm->SetIndicatorAutoHide(false, true);
+                       }
+                       else
+                       {
+                               pCurrentForm->SetIndicatorShowState(false);
+                               pCurrentForm->SetIndicatorAutoHide(false, false);
+                       }
+               }
+       }
 }
 
 void