From: vignesh.v Date: Fri, 28 Jun 2013 12:30:43 +0000 (+0530) Subject: Implementation of OnVisible, OnAncestorEnabled and OnAncestorVisible CallBacks For... X-Git-Tag: accepted/tizen/20130924.144426~1^2~256^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e49cf059063530816c4464187c93378c25bae63;p=platform%2Fframework%2Fnative%2Fuifw.git Implementation of OnVisible, OnAncestorEnabled and OnAncestorVisible CallBacks For EdtiTime. Signed-off-by: vignesh.v Change-Id: I5517a5198741f96a81ab55307c1429f739ef08cc --- diff --git a/src/ui/controls/FUiCtrl_EditTime.cpp b/src/ui/controls/FUiCtrl_EditTime.cpp index 673d836..840e8c9 100644 --- a/src/ui/controls/FUiCtrl_EditTime.cpp +++ b/src/ui/controls/FUiCtrl_EditTime.cpp @@ -862,6 +862,44 @@ _EditTime::SetXmlBoundsExist(bool isXmlBoundsExist) } void +_EditTime::OnVisibleStateChanged(void) +{ + if(__pEditTimePresenter->GetLastSelectedId() != DATETIME_ID_NONE) + { + __pEditTimePresenter->SetLastSelectedId(DATETIME_ID_NONE); + Invalidate(); + } +} + +void +_EditTime::OnAncestorVisibleStateChanged(const _Control& control) +{ + if(GetDateTimeBar() != null && GetDateTimeBar()->IsActivated()) + { + + GetDateTimeBar()->CloseDateTimeBar(); + __pEditTimePresenter->SetLastSelectedId(DATETIME_ID_NONE); + Invalidate(); + } + +} + +void +_EditTime::OnAncestorEnableStateChanged(const _Control& control) +{ + if(!IsEnabled()) + { + if(GetDateTimeBar() != null && GetDateTimeBar()->IsActivated()) + { + + GetDateTimeBar()->CloseDateTimeBar(); + __pEditTimePresenter->SetLastSelectedId(DATETIME_ID_NONE); + Invalidate(); + } + } +} + +void _EditTime::UpdateAccessibilityElement(void) { diff --git a/src/ui/inc/FUiCtrl_EditTime.h b/src/ui/inc/FUiCtrl_EditTime.h index 2835164..f08713d 100644 --- a/src/ui/inc/FUiCtrl_EditTime.h +++ b/src/ui/inc/FUiCtrl_EditTime.h @@ -126,6 +126,11 @@ public: Tizen::Graphics::FloatRectangle GetParentWindowBounds(void) const; void SetXmlBoundsExist(bool isXmlBoundsExist); + void OnVisibleStateChanged(void); + void OnAncestorVisibleStateChanged(const _Control& control); + void OnAncestorEnableStateChanged(const _Control& control); + + void CreateAccessibilityElement(void); void UpdateAccessibilityElement(void);