, __parentWindowBounds(0.0f, 0.0f, 0.0f, 0.0f)
, __pOwner(null)
, __accessibilityFocusOutIndex(-1)
+ , __isAnimating(false)
{
}
_DateTimeBar::OnTouchPressed(const _Control& source, const _TouchInfo& touchinfo)
{
ClearLastResult();
+ if (__isAnimating)
+ {
+ return true;
+ }
return __pDateTimeBarPresenter->OnTouchPressed(source, touchinfo);
}
_DateTimeBar::OnTouchReleased(const _Control& source, const _TouchInfo& touchinfo)
{
ClearLastResult();
+ if (__isAnimating)
+ {
+ return true;
+ }
return __pDateTimeBarPresenter->OnTouchReleased(source, touchinfo);
}
_DateTimeBar::OnTouchMoved(const _Control& source, const _TouchInfo& touchinfo)
{
ClearLastResult();
+ if (__isAnimating)
+ {
+ return true;
+ }
return __pDateTimeBarPresenter->OnTouchMoved(source, touchinfo);
}
VisualElement* pVisualElement = null;
VisualElementAnimation *pAnimation = null;
+ __isAnimating = true;
pVisualElement = GetVisualElement();
SysTryReturnVoidResult(NID_UI_CTRL, pVisualElement != null, E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get visual element.");
pAnimation = CreateAnimationN(*pVisualElement, false);
Close();
target.SetBounds(bounds);
}
+ __isAnimating = false;
delete pUserData;
}
void
_EditDatePresenter::Animate(void)
{
+ SysTryReturnVoidResult(NID_UI_CTRL, !__isAnimating, E_SUCCESS, "Rolling animation is in progress.");
SysAssertf((__pFont != null), "Font instance must not be null.");
(_FontImpl::GetInstance(*__pFont))->SetSize(__dateFontSize);
if (r != E_SUCCESS)
{
pNewVisualElement->Destroy();
+ pNewVisualElement = null;
}
SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
if (pOldVisualElement == null)
{
pNewVisualElement->Destroy();
+ pNewVisualElement = null;
}
SysTryCatch(NID_UI_CTRL, (pOldVisualElement != null), , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
{
pNewVisualElement->Destroy();
pOldVisualElement->Destroy();
+ pNewVisualElement = null;
+ pOldVisualElement = null;
}
SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
CATCH:
__isAnimating = false;
__pContentProvider->Destroy();
+ __pContentProvider = null;
delete pNewBoundsAnimation;
pNewBoundsAnimation = null;
pEditDateElement->DetachChild(*__pContentProvider);
__pContentProvider->Destroy();
+ __pContentProvider = null;
Draw();
return;
void
_EditTimePresenter::Animate(void)
{
+ SysTryReturnVoidResult(NID_UI_CTRL, !__isAnimating, E_SUCCESS, "Rolling animation is in progress.");
SysAssertf((__pFont != null), "Font instance must not be null.");
(_FontImpl::GetInstance(*__pFont))->SetSize(__timeFontSize);
if (r != E_SUCCESS)
{
pNewVisualElement->Destroy();
+ pNewVisualElement = null;
}
SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
if (pOldVisualElement == null)
{
pNewVisualElement->Destroy();
+ pNewVisualElement = null;
}
SysTryCatch(NID_UI_CTRL, (pOldVisualElement != null), , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
{
pNewVisualElement->Destroy();
pOldVisualElement->Destroy();
+ pNewVisualElement = null;
+ pOldVisualElement = null;
}
SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
CATCH:
__isAnimating = false;
__pContentProvider->Destroy();
+ __pContentProvider = null;
delete pNewBoundsAnimation;
pNewBoundsAnimation = null;
pEditTimeElement->DetachChild(*__pContentProvider);
__pContentProvider->Destroy();
+ __pContentProvider = null;
Draw();
return;
Tizen::Graphics::FloatRectangle __parentWindowBounds;
_Control* __pOwner;
int __accessibilityFocusOutIndex;
+ bool __isAnimating;
}; // _DateTimeBar
}}} // Tizen::Ui::Controls