__isKeypadShowing = false;
__isKeypadExist = true;
- SysLog(NID_UI_CTRL, "[EDIT] INPUT_PANEL_SHOW_STATE_SHOW");
-
CheckUSBKeyboardStatus();
+ SysLog(NID_UI_CTRL, "[EDIT] INPUT_PANEL_SHOW_STATE_SHOW[Target:%x][Bound:%d][Usb mode:%d]", this, __isInputConnectionBound, __isUSBKeyboardConnected);
+
if (__isInputConnectionBound)
{
if (__isKeypadCommandButtonVisible)
else if (showState == INPUT_PANEL_SHOW_STATE_HIDE)// 1.unbound 2.bounded&usb off -> usb on 3.Flick keypad hide
{
__isKeypadHiding = false;
- SysLog(NID_UI_CTRL, "[EDIT] INPUT_PANEL_SHOW_STATE_HIDE");
CheckUSBKeyboardStatus();
+ SysLog(NID_UI_CTRL, "[EDIT] INPUT_PANEL_SHOW_STATE_HIDE[Target:%x][Bound:%d][Usb mode:%d]", this, __isInputConnectionBound, __isUSBKeyboardConnected);
__isKeypadExist = false;
if (__pParentForm)
{
+ SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
}
}
}
}
- if (__isUSBKeyboardConnected && __isKeypadCommandButtonVisible)
+ if (__isKeypadCommandButtonVisible && __isInputConnectionBound)
{
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
}
+ else if(__isUSBKeyboardConnected && __isKeypadCommandButtonVisible && !__isInputConnectionBound)
+ {
+ //do nothing
+ }
else
{
__pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_CLOSED);
{
ScrollPanelToExposedRegion(true);
ScrollPanelToCursorPosition();
+ __pParentForm->SetClipboardShowState(true);
__pParentForm->Draw();
}
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
}
+ else
+ {
+ if (__pParentForm)
+ {
+ __pParentForm->SetClipboardShowState(true);
+ }
+ }
}
else
{
{
ScrollPanelToExposedRegion(true);
ScrollPanelToCursorPosition();
+ __pParentForm->SetClipboardShowState(true);
__pParentForm->Draw();
}
if (__pParentForm)
{
+ __pParentForm->SetClipboardShowState(false);
__pParentForm->Draw();
}
AdjustParentPanelHeight(true);
if (__pParentForm)
{
- __pParentForm->DeflateClientRectHeight(0);
+ SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
+ __pParentForm->DeflateClientRectHeight(0.0f);
+ __pParentForm->SetClipboardShowState(false);
__pParentForm->Draw();
}
__pCurrentFrame = null;
}
- if (__pCommandButton && __isKeypadCommandButtonVisible)
+ CheckUSBKeyboardStatus();
+
+ if (__isInputConnectionBound || __isKeypadHiding)
{
- __pCommandButton->SetVisibleState(false);
- if (__isKeypadCommandButtonVisible && !__isUSBKeyboardConnected)
+ if (__pCommandButton && __isKeypadCommandButtonVisible)
{
+ __pCommandButton->SetVisibleState(false);
+
SetFooterVisible(true);
- }
- delete __pCommandButton;
- __pCommandButton = null;
- }
+ delete __pCommandButton;
+ __pCommandButton = null;
+ }
- if (__isInputConnectionBound || __isKeypadHiding)
- {
if (__pParentForm)
{
+ SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
__pParentForm->SetKeypadShowState(false);
}
__isKeypadExist = false;
+ __initialFooterVisibleStatus = EDIT_FOOTER_VISIBLE_STATUS_NONE;
}
if (__clipboardConnected)
{
if (!enable && IsKeypadEnabled())
{
+ CheckUSBKeyboardStatus();
//hide keypad
if (!__isUSBKeyboardConnected && __isInputConnectionBound)
{
__isCursorOpaque = false;
__isTouchMoving = false;
__isTouchReleaseSkipped = false;
- __isUSBKeyboardConnected = false;
HideKeypad();
}
{
__pCommandButton->SetResizable(true);
__pCommandButton->SetMovable(true);
-
+ SysLog(NID_UI_CTRL, "[EDIT]Command position changed!!!! bounds(%f, %f, %f, %f)", bounds.x, bounds.y, bounds.width, bounds.height);
r = __pCommandButton->SetBounds(bounds);
__pCommandButton->SetResizable(false);
__pCommandButton->SetResizable(true);
__pCommandButton->SetMovable(true);
-
+ SysLog(NID_UI_CTRL, "[EDIT]Command created!!!! bounds(%f, %f, %f, %f)", bounds.x, bounds.y, bounds.width, bounds.height);
r = __pCommandButton->SetBounds(bounds);
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
if (pFooter->GetVisibleState() == false)
{
__initialFooterVisibleStatus = EDIT_FOOTER_VISIBLE_STATUS_HIDE;
+ SysLog(NID_UI_CTRL, "[EDIT] CheckInitialFooterVisibleState - EDIT_FOOTER_VISIBLE_STATUS_HIDE");
}
else
{
__initialFooterVisibleStatus = EDIT_FOOTER_VISIBLE_STATUS_SHOW;
+ SysLog(NID_UI_CTRL, "[EDIT] CheckInitialFooterVisibleState - EDIT_FOOTER_VISIBLE_STATUS_SHOW");
}
}
else
{
__initialFooterVisibleStatus = EDIT_FOOTER_VISIBLE_STATUS_NONE;
+ SysLog(NID_UI_CTRL, "[EDIT] CheckInitialFooterVisibleState - EDIT_FOOTER_VISIBLE_STATUS_NONE");
}
return;
if ((isVisible == true && pFooter->GetVisibleState() == false) ||
(isVisible == false && pFooter->GetVisibleState() == true))
{
+ if (isVisible)
+ {
+ SysLog(NID_UI_CTRL, "[EDIT] SetFooterVisible TRUE!!!!!");
+ }
+ else
+ {
+ SysLog(NID_UI_CTRL, "[EDIT] SetFooterVisible FALSE!!!!!");
+ }
+
pFooter->SetVisibleState(isVisible);
pFooter->Invalidate();
screenSize.width = pControlManager->GetScreenSizeF().height;
}
- SysLog(NID_UI_CTRL, "[EDIT] CheckKeypadExist:ScreenSize(w: %f, h: %f)", screenSize.width, screenSize.height);
- SysLog(NID_UI_CTRL, "[EDIT] CheckKeypadExist:absKeypadBounds(%f, %f, %f, %f)", absKeypadBounds.x, absKeypadBounds.y, absKeypadBounds.width, absKeypadBounds.height);
-
if ((absKeypadBounds.y != screenSize.height) && (absKeypadBounds.width == screenSize.width))
{
+ SysLog(NID_UI_CTRL, "[EDIT] CheckKeypadExist: KEYPAD EXIST!!!!Keypad(y: %f, h: %f)", absKeypadBounds.y, absKeypadBounds.height);
return true;
}
else
{
+ SysLog(NID_UI_CTRL, "[EDIT] CheckKeypadExist: NO KEYPAD!!!!Keypad(y: %f, h: %f)", absKeypadBounds.y, absKeypadBounds.height);
return false;
}
}
{
SetCurrentLanguage(initialKeypadLanguage);
}
-
//layout rearrange
if (IsKeypadEnabled())
{
if (__isUSBKeyboardConnected)
{
+ SysLog(NID_UI_CTRL, "[EDIT]ShowKeypad called in USB ON mode!!!!");
if (__initialFooterVisibleStatus == EDIT_FOOTER_VISIBLE_STATUS_NONE)
{
CheckInitialFooterVisibleState();
}
else
{
- __isKeypadExist = CheckKeypadExist(__pEdit->GetOrientation()); //call once only from here.
+ SysLog(NID_UI_CTRL, "[EDIT]ShowKeypad called in USB OFF mode!!!!");
- __pInputConnection->ShowInputPanel();
+ __isKeypadExist = CheckKeypadExist(__pEdit->GetOrientation()); //call once only from here.
if (!__isKeypadExist)
{
__pEdit->AttachScrollPanelEvent();
__pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_CREATED);
- CheckInitialFooterVisibleState();
+ if (__initialFooterVisibleStatus == EDIT_FOOTER_VISIBLE_STATUS_NONE)
+ {
+ CheckInitialFooterVisibleState();
+ }
}
if (__isKeypadCommandButtonVisible)
ScrollPanelToExposedRegion(true);
ScrollPanelToCursorPosition();
}
+
+ __pInputConnection->ShowInputPanel();
}
}
if (__pParentForm)
{
+ SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
}
if (__pParentForm && deflateForm)
{
- SysLog(NID_UI_CTRL, "ChangeLayoutInternal: formDeflateHeight:%f, KeypadExist(%d), ClipboardExist(%d), CommandButtonVisible(%d)",
+ SysLog(NID_UI_CTRL, "[EDIT]ChangeLayoutInternal: formDeflateHeight:%f, KeypadExist(%d), ClipboardExist(%d), CommandButtonVisible(%d)",
formDeflateHeight, __isKeypadExist, __isClipboardExist, __isKeypadCommandButtonVisible);
__pParentForm->DeflateClientRectHeight(formDeflateHeight);
}
return E_SUCCESS;
}
+ CheckUSBKeyboardStatus();
+
if (__isUSBKeyboardConnected)
{
+ SysLog(NID_UI_CTRL, "[EDIT]HideKeypad called in USB ON mode!!!!");
SetFooterVisible(true);
if (__pCommandButton && __isKeypadCommandButtonVisible)
{
if (__pParentForm)
{
+ SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
}
}
else
{
+ SysLog(NID_UI_CTRL, "[EDIT]HideKeypad called in USB OFF mode!!!!");
if (__pCommandButton && __isKeypadCommandButtonVisible)
{
if (!__isKeypadExist)
SetFooterVisible(true);//must be called ahead of DeflateClientRectHeights
if (__pParentForm)
{
+ SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
}
+ __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_CLOSE);
}
__pCommandButton->SetVisibleState(false);
}
__isTextComposing = false;
__composingTextLength = 0;
- if (__isKeypadExist)
+ if (__isKeypadExist && focus)
{
__isKeypadHiding = true;
}