void
_Form::SetFormBackEventListener(_IFormBackEventListener* pFormBackEventListener)
{
- SysTryReturnVoidResult(NID_UI_CTRL, __pFooter || __pHeader, E_INVALID_STATE, "[E_INVALID_STATE] Footer and Header aren't constructed.");
__pFormBackEventListener = pFormBackEventListener;
+
if (__pFooter)
{
__pFooter->SetBackEventListener(*this, ID_BACK_BUTTON);
void
_Form::SetFormMenuEventListener(_IFormMenuEventListener* pFormMenuEventListener)
{
- SysTryReturnVoidResult(NID_UI_CTRL, __pFooter, E_INVALID_STATE, "[E_INVALID_STATE] Footer and Header aren't constructed.");
__pFormMenuEventListener = pFormMenuEventListener;
+
if (__pFooter)
{
__pFooter->SetMenuEventListener(*this, ID_MENU_BUTTON);
r = GetCore().AttachSystemChild(pHeader->GetCore());
SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
-
- GetCore().SetFormBackEventListener(this);
}
}
else if (formStyle & FORM_STYLE_TITLE)
r = GetCore().AttachSystemChild(pFooter->GetCore());
SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
- //[ToDo]
- GetCore().SetFormBackEventListener(this);
- GetCore().SetFormMenuEventListener(this);
}
}
else if (formStyle & FORM_STYLE_SOFTKEY_0 || formStyle & FORM_STYLE_SOFTKEY_1 || formStyle & FORM_STYLE_OPTIONKEY)
}
}
+ GetCore().SetFormBackEventListener(this);
+ GetCore().SetFormMenuEventListener(this);
+
GetCore().AdjustClientBounds();
SetLastResult(E_SUCCESS);
void
_FormImpl::SetFormBackEventListener(const IFormBackEventListener* pFormBackEventListener)
{
- SysTryReturnVoidResult(NID_UI_CTRL, GetFooter() || GetHeader(), E_INVALID_STATE, "[E_INVALID_STATE] Footer isn't constructed.");
+ 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)
{
- SysTryReturnVoidResult(NID_UI_CTRL, GetFooter() || GetHeader(), E_INVALID_STATE, "[E_INVALID_STATE] Footer isn't constructed.");
+ 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.");
+ }
__pFormMenuEventListener = const_cast <IFormMenuEventListener*>(pFormMenuEventListener);
GetCore().SetFormMenuEventListener(this);
result r = GetLastResult();