return E_INVALID_OPERATION;
}
- if ((actionBars & FORM_ACTION_BAR_INDICATOR))
- {
- if (GetOrientation() == _CONTROL_ORIENTATION_PORTRAIT)
- {
- if (!(__formStyle & FORM_STYLE_INDICATOR))
- {
- SysLog(NID_UI_CTRL,
- "[E_INVALID_OPERATION] The current state of the instance prohibits the execution of the specified operation.");
- return E_INVALID_OPERATION;
- }
- }
- else
- {
- SysLog(NID_UI_CTRL,
- "[E_INVALID_OPERATION] The current state of the instance prohibits the execution of the specified operation.");
- return E_INVALID_OPERATION;
- }
- }
-
result r = E_SUCCESS;
Color bgColor(0, 0, 0, 0);
{
adjHeight = 0.0f;
}
+ else
+ {
+ if (FORM_STYLE_INDICATOR_AUTO_HIDE & GetFormStyle())
+ {
+ adjHeight = 0.0f;
+ }
+ }
}
}
}
}
else
{
+ AddIndicatorObject();
r = SetIndicatorShowState(false);
SetIndicatorAutoHide(false, false);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
{
if (FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE & GetFormStyle())
{
- GET_SHAPE_CONFIG(FORM::INDICATOR_MINIMIZE_HEIGHT, GetOrientation(), indicatorheight);
+ GET_SHAPE_CONFIG(FORM::INDICATOR_HEIGHT, GetOrientation(), indicatorheight);
}
}
{
indicatorBounds.height = 0.0f;
}
+ else
+ {
+ if (FORM_STYLE_INDICATOR_AUTO_HIDE & GetFormStyle())
+ {
+ adjHeight = 0.0f;
+ }
+ }
}
}
}
#include "FUiCtrl_Form.h"
#include "FUiCtrl_Indicator.h"
#include "FUiCtrl_IndicatorManager.h"
+#include "FUiAnim_EflVisualElementSurfaceImpl.h"
using namespace Tizen::Base::Runtime;
using namespace Tizen::Graphics;
return;
}
+ Evas_Object* pPortraitIndicatorEvasObject = (Evas_Object*)ecore_evas_data_get(pEe, pPortPublicKey);
+ Evas_Object* pLandscapeIndicatorEvasObject = (Evas_Object*)ecore_evas_data_get(pEe, pLandPublicKey);
+
if (msgDomain == MSG_DOMAIN_CONTROL_INDICATOR)
{
- /*if (msg_id == MSG_ID_INDICATOR_REPEAT_EVENT)
+ if (msgId == MSG_ID_INDICATOR_REPEAT_EVENT)
{
- int *repeat = static_cast<int*>(data);
- }*/
+ int *repeat = (int*)data;
+ if (1 == *repeat)
+ {
+ if (pPortraitIndicatorEvasObject)
+ {
+ evas_object_repeat_events_set(pPortraitIndicatorEvasObject, EINA_TRUE);
+ }
+ if (pLandscapeIndicatorEvasObject)
+ {
+ evas_object_repeat_events_set(pLandscapeIndicatorEvasObject, EINA_TRUE);
+ }
+ }
+ else
+ {
+ if (pPortraitIndicatorEvasObject)
+ {
+ evas_object_repeat_events_set(pPortraitIndicatorEvasObject, EINA_FALSE);
+ }
+ if (pLandscapeIndicatorEvasObject)
+ {
+ evas_object_repeat_events_set(pLandscapeIndicatorEvasObject, EINA_FALSE);
+ }
+ }
+ }
+
if (msgId == MSG_ID_INDICATOR_TYPE)
{
_IndicatorTypeMode *pIndicatorTypeMode = (_IndicatorTypeMode*)(data);
}
}
+HitTestResult
+_Indicator::OnHitTest(const Tizen::Graphics::FloatPoint& point)
+{
+ if (!IsVisible())
+ {
+ return HIT_TEST_NOWHERE;
+ }
+
+ if (!GetBounds().Contains(point))
+ {
+ return HIT_TEST_NOWHERE;
+ }
+
+ _VisualElementImpl* pImpl = _VisualElementImpl::GetInstance(*this->__pCurrentVisualElement);
+ _EflVisualElementSurfaceImpl* pSurface = dynamic_cast<_EflVisualElementSurfaceImpl*>(_VisualElementSurfaceImpl::GetInstance(*pImpl->GetNativeNode()->GetSurface()));
+ Evas_Object* pImageObject = (Evas_Object*)pSurface->GetNativeHandle();
+
+ if (!evas_object_repeat_events_get(pImageObject))
+ return HIT_TEST_MATCH;
+ else
+ return HIT_TEST_NOWHERE;
+}
+
}}} // Tizen::Ui::Controls
#include "FUiCtrl_IndicatorManager.h"
#include "FUiCtrl_Form.h"
#include "FUiCtrl_Frame.h"
+#include "FUiCtrl_Popup.h"
+#include "FUiCtrl_Keypad.h"
using namespace Tizen::Base::Collection;
using namespace Tizen::Graphics;
{
result r = E_SUCCESS;
+ _Frame* pFrame = dynamic_cast<_Frame*>(pWindow);
+ _Popup* pPopup = dynamic_cast<_Popup*>(pWindow);
+ _Keypad* pKeypad = dynamic_cast<_Keypad*>(pWindow);
+
+ if ((pFrame == null) && (pPopup == null) && (pKeypad ==null))
+ {
+ return E_SUCCESS;
+ }
IndicatorComponent* pIndicatorComponentArray = MakeIndicatorComponentArrayN(pWindow);
result r = E_SUCCESS;
IndicatorComponent* pIndicatorComponentArray = null;
+ _Frame* pFrame = dynamic_cast<_Frame*>(pWindow);
+ _Popup* pPopup = dynamic_cast<_Popup*>(pWindow);
+ _Keypad* pKeypad = dynamic_cast<_Keypad*>(pWindow);
+
+ if ((pFrame == null) && (pPopup == null) && (pKeypad ==null))
+ {
+ return E_SUCCESS;
+ }
r = __indicatorMap.GetValue(pWindow, pIndicatorComponentArray);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS && pIndicatorComponentArray, r, r, "[%s] Propagating.", GetErrorMessage(r));
static void OnDisconnected(Ecore_Evas *pEe);
static void OnMessageHandle(Ecore_Evas *pEe, int msgDomain, int msgId, void *data, int size);
+ virtual Animations::HitTestResult OnHitTest(const Tizen::Graphics::FloatPoint& point);
+
private:
_Indicator(const _Indicator& value);
_Indicator& operator =(const _Indicator& value);