return __pDetectStartedGestureMap->GetMapEnumeratorN();
}
+IListT <_TouchGestureDetector*>*
+_Control::GetStartedGestureDetectorListN(void) const
+{
+ return __pDetectStartedGestureMap->GetKeysN();
+}
+
result
_Control::AddStartedGestureDetector(const _TouchGestureDetector& gestureDetector, _TouchGestureDetectorState state)
{
virtual bool OnMousePressed(const _Control& source, const _MouseInfo& mouseInfo)
{
- SysLog(NID_UI, "Minkyu OnMousePressed, source = 0x%x", &source);
+ SysLog(NID_UI, "OnMousePressed, source = 0x%x", &source);
bool isFiltered = false;
// 3. Impl
virtual bool OnMouseReleased(const _Control& source, const _MouseInfo& mouseInfo)
{
- SysLog(NID_UI, "Minkyu OnMouseReleased, source = 0x%x", &source);
+ SysLog(NID_UI, "OnMouseReleased, source = 0x%x", &source);
bool isFiltered = false;
// 3. Impl
delete pFingerInfoList;
pointId = pTouchManager->GeneratePointId(deviceId);
- SysSecureLog(NID_UI, "OnTouchPressed GeneratePointId = pointId %d", pointId);
+ SysSecureLog(NID_UI, "OnTouchPressed pointId = %d", pointId);
}
else
{
if (status == _TOUCH_RELEASED)
{
- SysSecureLog(NID_UI, "OnTouchReleased GetPointId = pointId %d", pointId);
+ SysSecureLog(NID_UI, "OnTouchReleased pointId = %d", pointId);
}
if (pointId == INVALID_POINT_ID)
{
r = __pTouchEventManager->AddControl(pointId, pControl->GetHandle());
SysTryReturnVoidResult(NID_UI, r == E_SUCCESS, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
- SysSecureLog(NID_UI, "touch_pressed : pointId = %d, AddControl = 0x%x", pointId, pControl);
}
}
else
_Control* pControl = GetControl();
if (pControl)
{
- IMapEnumeratorT <_TouchGestureDetector*, _TouchGestureDetectorState>* pMapEnumerator = pControl->GetStartedGestureDetectorEnumeratorN();
- if (pMapEnumerator)
+ IListT <_TouchGestureDetector*>* pList = pControl->GetStartedGestureDetectorListN();
+ if (pList)
{
- while(pMapEnumerator->MoveNext() == E_SUCCESS)
+ IEnumeratorT<_TouchGestureDetector*>* pEnumerator = pList->GetEnumeratorN();
+ if (pEnumerator)
{
- _TouchGestureDetector* pStartedGestureDetector = null;
- pMapEnumerator->GetKey(pStartedGestureDetector);
-
- if (pStartedGestureDetector && (pStartedGestureDetector == this))
+ while(pEnumerator->MoveNext() == E_SUCCESS)
{
- _TouchGestureDetectorEventType eventType = pStartedGestureDetector->GetGestureDetectorEventType();
- if (eventType == _TOUCH_GESTURE_DETECTOR_EVENT_TYPE_DISCRETE ||
- (eventType == _TOUCH_GESTURE_DETECTOR_EVENT_TYPE_CONTINUOUS && state == _TOUCH_GESTURE_DETECTOR_STATE_FINISHED))
+ _TouchGestureDetector* pStartedGestureDetector = null;
+ pEnumerator->GetCurrent(pStartedGestureDetector);
+ if (pStartedGestureDetector && (pStartedGestureDetector == this))
{
- pControl->SetStartedGestureDetector(*this, _TOUCH_GESTURE_DETECTOR_STATE_SUCCESS);
+ _TouchGestureDetectorEventType eventType = pStartedGestureDetector->GetGestureDetectorEventType();
+ if (eventType == _TOUCH_GESTURE_DETECTOR_EVENT_TYPE_DISCRETE ||
+ (eventType == _TOUCH_GESTURE_DETECTOR_EVENT_TYPE_CONTINUOUS && state == _TOUCH_GESTURE_DETECTOR_STATE_FINISHED))
+ {
+ pControl->SetStartedGestureDetector(*this, _TOUCH_GESTURE_DETECTOR_STATE_SUCCESS);
+ }
}
}
+ delete pEnumerator;
}
- delete pMapEnumerator;
+ delete pList;
}
}
_Control* pControl = GetControl();
if (pControl)
{
- IMapEnumeratorT <_TouchGestureDetector*, _TouchGestureDetectorState>* pMapEnumerator = pControl->GetStartedGestureDetectorEnumeratorN();
- if (pMapEnumerator)
+ IListT <_TouchGestureDetector*>* pList = pControl->GetStartedGestureDetectorListN();
+ if (pList)
{
- while(pMapEnumerator->MoveNext() == E_SUCCESS)
+ IEnumeratorT<_TouchGestureDetector*>* pEnumerator = pList->GetEnumeratorN();
+ if (pEnumerator)
{
- _TouchGestureDetector* pStartedGestureDetector = null;
- pMapEnumerator->GetKey(pStartedGestureDetector);
-
- if (pStartedGestureDetector && (pStartedGestureDetector == this))
+ while(pEnumerator->MoveNext() == E_SUCCESS)
{
- pControl->SetStartedGestureDetector(*this, _TOUCH_GESTURE_DETECTOR_STATE_FAILED);
+ _TouchGestureDetector* pStartedGestureDetector = null;
+ pEnumerator->GetCurrent(pStartedGestureDetector);
+ if (pStartedGestureDetector && (pStartedGestureDetector == this))
+ {
+ pControl->SetStartedGestureDetector(*this, _TOUCH_GESTURE_DETECTOR_STATE_FAILED);
+ }
}
+ delete pEnumerator;
}
- delete pMapEnumerator;
+ delete pList;
}
}
result ClearStartedGestureDetectorList(void);
result SetStartedGestureDetector(const _TouchGestureDetector& gestureDetector, _TouchGestureDetectorState state);
Tizen::Base::Collection::IMapEnumeratorT <_TouchGestureDetector*, _TouchGestureDetectorState>* GetStartedGestureDetectorEnumeratorN(void) const;
+ Tizen::Base::Collection::IListT <_TouchGestureDetector*>* GetStartedGestureDetectorListN(void) const;
void SetMultiTouchEnabled(bool enabled);
bool IsMultiTouchEnabled(void) const;