{
GetCore().SetIndicatorShowState(true);
indicatorBounds = GetCore().GetIndicatorBoundsF();
- GetCore().SetIndicatorAutoHide(false);
+
+ if (FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE & formStyle)
+ {
+ GetCore().SetIndicatorAutoHide(false, true);
+ }
+ else
+ {
+ GetCore().SetIndicatorAutoHide(false, false);
+ }
r = GetLastResult();
SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
}
- else if(FORM_STYLE_INDICATOR_AUTO_HIDE & formStyle)
- {
- r = GetCore().SetIndicatorShowState(true);
- GetCore().SetIndicatorAutoHide(true);
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
- }
else
{
- r = GetCore().SetIndicatorShowState(false);
- GetCore().SetIndicatorAutoHide(false);
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ if ((FORM_STYLE_INDICATOR_AUTO_HIDE & formStyle) && (FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE & formStyle))
+ {
+ r = GetCore().SetIndicatorShowState(true);
+ GetCore().SetIndicatorAutoHide(true, true);
+ SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ }
+ else
+ {
+ if (FORM_STYLE_INDICATOR_AUTO_HIDE & formStyle)
+ {
+ r = GetCore().SetIndicatorShowState(true);
+ GetCore().SetIndicatorAutoHide(true, false);
+ SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ }
+ else if(FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE & formStyle)
+ {
+ r = GetCore().SetIndicatorShowState(true);
+ GetCore().SetIndicatorAutoHide(false, true);
+ SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ }
+ else
+ {
+ r = GetCore().SetIndicatorShowState(false);
+ GetCore().SetIndicatorAutoHide(false, false);
+ SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
+ }
+ }
}
if (formStyle & FORM_STYLE_HEADER)
void
_FormImpl::SetFormBackEventListener(const IFormBackEventListener* pFormBackEventListener)
{
- bool isBackButton = false;
-
- Tizen::System::SystemInfo::GetValue(L"http://tizen.org/feature/input.keys.back", isBackButton);
-
- if(!isBackButton)
- {
- SysTryReturnVoidResult(NID_UI_CTRL, GetFooter() || GetHeader(), E_INVALID_STATE, "[E_INVALID_STATE] Footer isn't constructed.");
- }
-
__pFormBackEventListener = const_cast <IFormBackEventListener*>(pFormBackEventListener);
GetCore().SetFormBackEventListener(this);
result r = GetLastResult();
void
_FormImpl::SetFormMenuEventListener(const IFormMenuEventListener* pFormMenuEventListener)
{
- bool isMenuButton = false;
-
- Tizen::System::SystemInfo::GetValue(L"http://tizen.org/feature/input.keys.menu", isMenuButton);
-
- if(!isMenuButton)
- {
- SysTryReturnVoidResult(NID_UI_CTRL, GetFooter() || GetHeader(), E_INVALID_STATE, "[E_INVALID_STATE] Footer isn't constructed.");
- }
__pFormMenuEventListener = const_cast <IFormMenuEventListener*>(pFormMenuEventListener);
GetCore().SetFormMenuEventListener(this);
result r = GetLastResult();
portraitSize = pFrameImpl->GetSizeF();
landscapeSize = portraitSize;
pFrameImpl->GetCore().SetMovable(movable);
+ pFrameImpl->GetCore().SetFloatingOrientation(orientation);
}
}
if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
{
pIndicator->SetBounds(FloatRectangle(0.0f, 0.0f, GetClientBoundsF().width, indicatorheight));
+ if ((FORM_STYLE_INDICATOR & GetFormStyle()) || (FORM_STYLE_INDICATOR_AUTO_HIDE & GetFormStyle()))
+ {
+ GetCore().SetIndicatorShowState(true);
+ }
+ else
+ {
+ GetCore().SetIndicatorShowState(false);
+ }
}
else
{
- GET_SHAPE_CONFIG(FORM::INDICATOR_MINIMIZE_HEIGHT, GetCore().GetOrientation(), indicatorheight);
- pIndicator->SetBounds(FloatRectangle(0.0f, 0.0f, GetClientBoundsF().width, indicatorheight));
+ if (FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE & GetFormStyle())
+ {
+ GetCore().SetIndicatorShowState(true);
+ }
}
}
GetCore().AdjustClientBounds();
}
+ else
+ {
+ GetCore().SetIndicatorShowState(false);
+ }
if (pIndicator)
{
pIndicator->OnChangeLayout(orientation);
{
indicatorBounds.height = 0.0f;
}
+ else
+ {
+ if (FORM_STYLE_INDICATOR_AUTO_HIDE & GetFormStyle())
+ {
+ adjHeight = 0.0f;
+ }
+ }
}
}
}
style |= FORM_STYLE_INDICATOR;
}
}
+ if (styleString.Contains(L"FORM_STYLE_PORTRAIT_INDICATOR"))
+ {
+ if (styleString.Contains(L"FORM_STYLE_PORTRAIT_INDICATOR_AUTO_HIDE"))
+ {
+ style |= FORM_STYLE_PORTRAIT_INDICATOR_AUTO_HIDE;
+ }
+ else
+ {
+ style |= FORM_STYLE_PORTRAIT_INDICATOR;
+ }
+ }
+ if (styleString.Contains(L"FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE"))
+ {
+ style |= FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE;
+ }
if (styleString.Contains(L"FORM_STYLE_TEXT_TAB"))
{
style |= FORM_STYLE_TEXT_TAB;