, __pMagneticScrollTimer(null)
, __pAnimationTimer(null)
, __pRunningAnimationCheckTimer(null)
+ , __pFirstShowScrollTimer(null)
, __magneticScrollAnimation()
, __isTouchAnimationEnabled(true)
, __previousTouchAnimatinEnabled(true)
, __runningAnimationBackupIndex(INVALID_INDEX)
, __lazyDecodeBackGroundBitmap(false)
, __lazyDecodeEmptyListBitmap(false)
+ , __needSetAccessibility(false)
{
}
delete __pRunningAnimationCheckTimer;
__pRunningAnimationCheckTimer = null;
+ delete __pFirstShowScrollTimer;
+ __pFirstShowScrollTimer = null;
+
if (__pRemoveItemVE != null)
{
__pRemoveItemVE->Destroy();
_IconListItem* pItem = dynamic_cast <_IconListItem*>(__pItemProviderAdaptor->LoadItem(DEFAULT_GROUP_INDEX, index));
SysTryReturn(NID_UI_CTRL, (pItem != null), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
+ if (pItem->GetItemAccessibilityElement() != null && pItem->GetItemAccessibilityElement()->IsActivated())
+ {
+ pItem->GetItemAccessibilityElement()->Activate(false);
+ }
+
r = SetItemAt(index, pItem);
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), r, r, "[%s] Propagating.", GetErrorMessage(r));
+ __needSetAccessibility = true;
RedrawItem(index);
return r;
}
ResetAnimationTimer();
StopAllAnimations();
+ _AccessibilityContainer* pContainer = __pIconListView->GetAccessibilityContainer();
+ int itemCount = __pListModel->GetItemCountInGroup(DEFAULT_GROUP_INDEX);
+ if (_AccessibilityManager::IsActivated() && (pContainer != null) && itemCount > 0)
+ {
+ for (int index = 0; index < itemCount; index++)
+ {
+ _IconListItem* pItem = dynamic_cast <_IconListItem*>(__pItemProviderAdaptor->LoadItem(DEFAULT_GROUP_INDEX, index));
+ if (pItem->GetItemAccessibilityElement() != null)
+ {
+ pItem->GetItemAccessibilityElement()->Activate(false);
+ }
+ }
+ }
+
result r = RemoveAllItems();
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), r, r, "[%s] Propagating.", GetErrorMessage(r));
pScroll->GetScrollRange(&scrollViewRange, &scrollRange);
if (!_FloatCompareGE(scrollViewRange, scrollRange))
{
- ScrollFadeOut();
+ pScroll->SetScrollVisibility(true);
+ pScroll->SetScrollingEffectVisibility(true);
+ StartFirstShowScrollTimer();
}
}
}
pItem->DrawItem(itemRect, LIST_ITEM_STATE_NORMAL);
}
+ if (_AccessibilityManager::IsActivated())
+ {
+ _AccessibilityElement* pAccessibilityElement = pItem->GetItemAccessibilityElement();
+ if (pAccessibilityElement->GetParent() == null && __needSetAccessibility)
+ {
+ pItem->SetItemAccessibilityElement(itemRect, index);
+ SetAccessibilityElement(index, pItem);
+ __needSetAccessibility = false;
+ }
+ }
+
_VisualElement* pBase = pItem->GetVisualElement();
pBase->InvalidateRectangle(&itemRect);
pBase->Draw();
return E_SUCCESS;
}
+result
+_IconListPresenter::StartFirstShowScrollTimer(void)
+{
+ result r = E_SUCCESS;
+
+ if (__pFirstShowScrollTimer == null)
+ {
+ __pFirstShowScrollTimer = new (std::nothrow) Timer;
+ SysTryReturn(NID_UI_CTRL, (__pFirstShowScrollTimer != null), E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+
+ r = __pFirstShowScrollTimer->Construct(*this);
+ SysTryCatch(NID_UI, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+ }
+ else
+ {
+ __pFirstShowScrollTimer->Cancel();
+ }
+
+ r = __pFirstShowScrollTimer->Start(1000);
+ SysTryCatch(NID_UI, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+
+ return r;
+
+CATCH:
+ ResetFirstShowScrollTimer();
+ return r;
+
+}
+
+result
+_IconListPresenter::ResetFirstShowScrollTimer(void)
+{
+ delete __pFirstShowScrollTimer;
+ __pFirstShowScrollTimer = null;
+
+ return E_SUCCESS;
+}
+
+
// Tizen::Ui::_ControlImpl
void
_IconListPresenter::OnBoundsChanged(void)
StartRunningAnimationCheckTimer();
}
}
+ else if (&timer == __pFirstShowScrollTimer)
+ {
+ ScrollFadeOut();
+ ResetFirstShowScrollTimer();
+ }
}
void
{
pItem->GetItemAccessibilityElement()->Activate(false);
}
-
}
for (int i = __lastDrawnIndex+1; i <= lastLoadedItemIndex; i++)
{
pItem->GetItemAccessibilityElement()->Activate(false);
}
-
}
// set dummy AccessibilityElement
MakeDummyAccessibilityElement((__lastDrawnIndex + 1), false);
_AccessibilityManager::GetInstance()->RequestToDrawFocusUi();
+
__RequestToDrawAccessibilityFocusUi = false;
// for change GestureMode of _AccessibilityManager
result StartRunningAnimationCheckTimer(void);
result ResetRunningAnimationCheckTimer(void);
+ result StartFirstShowScrollTimer(void);
+ result ResetFirstShowScrollTimer(void);
+
void StartSelectAnimation(int index);
void StartCheckAnimation(int index);
result DrawCheckAnimation(int index);
Tizen::Base::Runtime::Timer* __pMagneticScrollTimer;
Tizen::Base::Runtime::Timer* __pAnimationTimer;
Tizen::Base::Runtime::Timer* __pRunningAnimationCheckTimer;
+ Tizen::Base::Runtime::Timer* __pFirstShowScrollTimer;
_IconListUtils::MagneticScrollAnimation __magneticScrollAnimation;
bool __isTouchAnimationEnabled;
bool __previousTouchAnimatinEnabled;
int __runningAnimationBackupIndex;
bool __lazyDecodeBackGroundBitmap;
bool __lazyDecodeEmptyListBitmap;
+ bool __needSetAccessibility;
}; // _IconListPresenter
}}} // Tizen::Ui::Controls