CheckUSBKeyboardStatus();
- SysLog(NID_UI_CTRL, "[EDIT] INPUT_PANEL_SHOW_STATE_SHOW[Target:%x][Bound:%d][Usb mode:%d]", this, __isInputConnectionBound, __isUSBKeyboardConnected);
+ SysLog(NID_UI_CTRL, "INPUT_PANEL_SHOW_STATE_SHOW[Target:%x][Bound:%d][Usb mode:%d]", this, __isInputConnectionBound, __isUSBKeyboardConnected);
if (__isInputConnectionBound)
{
- if (__isKeypadCommandButtonVisible)
+ if (__isKeypadCommandButtonVisible && __pCommandButton)
{
SetFooterVisible(false);
}
}
}
- if ((__isUSBKeyboardConnected && __isKeypadCommandButtonVisible))
+ if (__isUSBKeyboardConnected && (__isKeypadCommandButtonVisible && __pCommandButton))
{
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
}
__isKeypadHiding = false;
CheckUSBKeyboardStatus();
- SysLog(NID_UI_CTRL, "[EDIT] INPUT_PANEL_SHOW_STATE_HIDE[Target:%x][Bound:%d][Usb mode:%d]", this, __isInputConnectionBound, __isUSBKeyboardConnected);
+ SysLog(NID_UI_CTRL, "INPUT_PANEL_SHOW_STATE_HIDE[Target:%x][Bound:%d][Usb mode:%d]", this, __isInputConnectionBound, __isUSBKeyboardConnected);
__isKeypadExist = false;
if (__isClipboardExist)
{
- AdjustParentPanelHeight(false, true);
+ AdjustParentPanelHeight(false);
}
else
{
if (__isClipboardExist)
{
- AdjustParentPanelHeight(false, true);
+ AdjustParentPanelHeight(false);
}
else
{
if (__pParentForm)
{
- SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
+ SysLog(NID_UI_CTRL, "Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
}
}
}
- if (__isKeypadCommandButtonVisible && __isInputConnectionBound)
+ if ((__isKeypadCommandButtonVisible && __pCommandButton) && __isInputConnectionBound)
{
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
}
- else if((__isUSBKeyboardConnected && __isKeypadCommandButtonVisible && !__isInputConnectionBound) ||
+ else if((__isUSBKeyboardConnected && (__isKeypadCommandButtonVisible &&__pCommandButton) && !__isInputConnectionBound) ||
(__isUSBKeyboardConnected && __isClipboardExist))
{
//do nothing
if ((__isUSBKeyboardConnected == false) && __isKeypadExist == false)
{
+ SysLog(NID_UI_CTRL, "OnInputConnectionPanelBoundsChanged skipped - __isUSBKeyboardConnected:(%), __isKeypadExist:(%d)", __isUSBKeyboardConnected, __isKeypadExist);
return;
}
if (CheckKeypadExist(__pEdit->GetOrientation()) == false)//double check keypad Exist
{
+ SysLog(NID_UI_CTRL, "OnInputConnectionPanelBoundsChanged skipped - Keypad doesn't exist!!");
return;
}
+ else
+ {
+ if (IsKeypadRotating(__pEdit->GetOrientation()))
+ {
+ SysLog(NID_UI_CTRL, "OnInputConnectionPanelBoundsChanged skipped - Keypad is rotating!!");
+ AdjustParentPanelHeight(true);
+ return;
+ }
+ }
- SysLog(NID_UI_CTRL, "[EDIT] OnInputConnectionPanelBoundsChanged");
+ SysLog(NID_UI_CTRL, "OnInputConnectionPanelBoundsChanged");
ChangeLayoutInternal(__pEdit->GetOrientation());
- AdjustParentPanelHeight(false, true);
+ AdjustParentPanelHeight(false);
+ ScrollPanelToCursorPosition();
if (__pParentForm)
{
- ScrollPanelToCursorPosition();
__pParentForm->Draw();
}
__clipboardHeight = floatClipboardPopupSize.height;
- SysLog(NID_UI_CTRL, "[EDIT] clipboard height = %f, [KeypadExist:%d]keypad height = %f", floatClipboardPopupSize.height, __isKeypadExist, absKeypadBounds.height);
+ SysLog(NID_UI_CTRL, "clipboard height = %f, [KeypadExist:%d]keypad height = %f", floatClipboardPopupSize.height, __isKeypadExist, absKeypadBounds.height);
if (__isKeypadExist) //resize as difference between clipboard height vs keypad height
{
if (floatClipboardPopupSize.height > absKeypadBounds.height)
{
ChangeLayoutInternal(__pEdit->GetOrientation());
- AdjustParentPanelHeight(false, true);
+ AdjustParentPanelHeight(false);
+ ScrollPanelToCursorPosition();
if (__pParentForm)
{
- ScrollPanelToCursorPosition();
__pParentForm->SetClipboardShowState(true);
__pParentForm->Draw();
}
ChangeLayoutInternal(__pEdit->GetOrientation());
AdjustParentPanelHeight(false);
+ ScrollPanelToCursorPosition();
if (__pParentForm)
{
- ScrollPanelToCursorPosition();
__pParentForm->SetClipboardShowState(true);
__pParentForm->Draw();
}
{
ChangeLayoutInternal(__pEdit->GetOrientation());
AdjustParentPanelHeight(false);
+ ScrollPanelToCursorPosition();
if (__pParentForm)
{
- ScrollPanelToCursorPosition();
__pParentForm->SetClipboardShowState(true);
__pParentForm->Draw();
}
__clipboardHeight = floatClipboardPopupSize.height;
- SysLog(NID_UI_CTRL, "[EDIT] clipboard height = %f, [KeypadExist:%d]keypad height = %f", floatClipboardPopupSize.height, __isKeypadExist, absKeypadBounds.height);
+ SysLog(NID_UI_CTRL, "clipboard height = %f, [KeypadExist:%d]keypad height = %f", floatClipboardPopupSize.height, __isKeypadExist, absKeypadBounds.height);
if (__isKeypadExist)
{
{
ChangeLayoutInternal(__pEdit->GetOrientation());
AdjustParentPanelHeight(false);
+ ScrollPanelToCursorPosition();
+
if (__pParentForm)
{
__pParentForm->Draw();
- ScrollPanelToCursorPosition();
}
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
{
ChangeLayoutInternal(__pEdit->GetOrientation());
AdjustParentPanelHeight(false);
+ ScrollPanelToCursorPosition();
+
if (__pParentForm)
{
__pParentForm->Draw();
- ScrollPanelToCursorPosition();
}
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
{
ChangeLayoutInternal(__pEdit->GetOrientation());
AdjustParentPanelHeight(false);
+ ScrollPanelToCursorPosition();
+
if (__pParentForm)
{
__pParentForm->Draw();
- ScrollPanelToCursorPosition();
}
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
__clipboardHeight = 0.0f;
- SysLog(NID_UI_CTRL, "[EDIT] clipboard closed! [KeypadExist:%d]keypad height = %f", __isKeypadExist, absKeypadBounds.height);
+ SysLog(NID_UI_CTRL, "clipboard closed! [KeypadExist:%d]keypad height = %f", __isKeypadExist, absKeypadBounds.height);
if (__isInputConnectionBound)
{
if (__isKeypadExist)
{
- AdjustParentPanelHeight(false, true);
+ AdjustParentPanelHeight(false);
if (__pParentForm)
{
AdjustParentPanelHeight(true);
if (__pParentForm)
{
- SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
+ SysLog(NID_UI_CTRL, "Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
__pParentForm->SetClipboardShowState(false);
__pParentForm->Draw();
if (__pParentForm)
{
- SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
+ SysLog(NID_UI_CTRL, "Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
if (__clipboardConnected)
}
__pTextString = new (std::nothrow) String;
- SysTryCatch(NID_UI_CTRL, __pTextString, , r = E_OUT_OF_MEMORY, "[EDIT] Unable to allocate text buffer.");
+ SysTryCatch(NID_UI_CTRL, __pTextString, , r = E_OUT_OF_MEMORY, "Unable to allocate text buffer.");
__limitLength = 0;
if (__pFont == null)
EditCutlinkColor cutlinkColor;
Font* pFont = _FontImpl::CloneN(const_cast <Font&>(*__pFont));
- SysTryReturnResult(NID_UI_CTRL, pFont, GetLastResult(), "[EDIT] Unable to get font.");
+ SysTryReturnResult(NID_UI_CTRL, pFont, GetLastResult(), "Unable to get font.");
_FontImpl* fontImpl = _FontImpl::GetInstance(*pFont);
SysTryReturnResult(NID_UI_CTRL, fontImpl, GetLastResult(), "[E_SYSTEM] fontImpl is null.");
if (pCutLinkObject == null)
{
- SysLog(NID_UI_CTRL, "[EDIT] Unable to allocate cutlink object.");
+ SysLog(NID_UI_CTRL, "Unable to allocate cutlink object.");
}
else
{
if (pSimpleText == null)
{
- SysLog(NID_UI_CTRL, "[EDIT] Unable to allocate text object.");
+ SysLog(NID_UI_CTRL, "Unable to allocate text object.");
}
else
_EditPresenter::GetLinkElementOffsetInTextBuffer(int elementIndex) const
{
const int textElementCount = __pTextObject->GetElementCount();
- SysTryReturn(NID_UI_CTRL, elementIndex >= 0 && elementIndex <= textElementCount, -1, E_OUT_OF_RANGE, "[EDIT] The Invalid argument is given.");
+ SysTryReturn(NID_UI_CTRL, elementIndex >= 0 && elementIndex <= textElementCount, -1, E_OUT_OF_RANGE, "The Invalid argument is given.");
_Text::TextElement* pTextElement = null;
int elementOffset = -1;
if (IsInternalFocused() && !tokenEditting)
{
__pCopyPasteManager = new (std::nothrow) _EditCopyPasteManager(*__pEdit);
- SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, false, E_SYSTEM, "[EDIT] Unable to create _EditCopyPasteManager instance.");
+ SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, false, E_SYSTEM, "Unable to create _EditCopyPasteManager instance.");
__pCopyPasteManager->AddCopyPasteEventListener(*this);
__pCopyPasteManager->Show();
__isCopyPasteManagerExist = true;
UpdateComponentInformation();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, true, r, "[%s] Propagating.", GetErrorMessage(r));
__pCopyPasteManager = new (std::nothrow) _EditCopyPasteManager(*__pEdit);
- SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, true, E_OUT_OF_MEMORY, "[EDIT] Unable to create _EditCopyPasteManager instance.");
+ SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, true, E_OUT_OF_MEMORY, "Unable to create _EditCopyPasteManager instance.");
__pCopyPasteManager->AddCopyPasteEventListener(*this);
__pCopyPasteManager->CreateCopyPastePopup();
__pCopyPasteManager->Show();
else if (__textBlockMoving)
{
__pCopyPasteManager = new (std::nothrow) _EditCopyPasteManager(*__pEdit);
- SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, true, E_OUT_OF_MEMORY, "[EDIT] Unable to create _EditCopyPasteManager instance.");
+ SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, true, E_OUT_OF_MEMORY, "Unable to create _EditCopyPasteManager instance.");
__pCopyPasteManager->AddCopyPasteEventListener(*this);
__pCopyPasteManager->CreateCopyPastePopup();
__pCopyPasteManager->Show();
DeleteText(start, end);
ReleaseTextBlock();
pSubString = new String(__limitLength - currentLength + (end - start));
- SysTryCatch(NID_UI_CTRL, pSubString, , r = E_OUT_OF_MEMORY, "[EDIT] Unable to allocate text buffer.");
+ SysTryCatch(NID_UI_CTRL, pSubString, , r = E_OUT_OF_MEMORY, "Unable to allocate text buffer.");
filteredString.SubString(0, __limitLength - currentLength + (end - start), *pSubString);
r = InsertTextAt(__cursorPos, pSubString->GetPointer());
}
pSubString = new String(__limitLength - currentLength);
- SysTryCatch(NID_UI_CTRL, pSubString, , r = E_OUT_OF_MEMORY, "[EDIT] Unable to allocate text buffer.");
+ SysTryCatch(NID_UI_CTRL, pSubString, , r = E_OUT_OF_MEMORY, "Unable to allocate text buffer.");
filteredString.SubString(0, __limitLength - currentLength, *pSubString);
r = InsertTextAt(__cursorPos, pSubString->GetPointer());
bool
_EditPresenter::OnLongPressGestureDetected(void)
{
- SysLog(NID_UI_CTRL, "[EDIT] OnLongPressGestureDetected");
+ SysLog(NID_UI_CTRL, "OnLongPressGestureDetected");
if (__isClearIconPressed)
{
GetCursorBounds(true, cursorBounds);
__pCopyPasteManager = new (std::nothrow) _EditCopyPasteManager(*__pEdit);
- SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, false, E_SYSTEM, "[EDIT] Unable to create _EditCopyPasteManager instance.");
+ SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, false, E_SYSTEM, "Unable to create _EditCopyPasteManager instance.");
__pCopyPasteManager->AddCopyPasteEventListener(*this);
__pCopyPasteManager->Show();
__isCopyPasteManagerExist = true;
bool
_EditPresenter::OnTapGestureDetected(void)
{
- SysLog(NID_UI_CTRL, "[EDIT] OnTapGestureDetected");
+ SysLog(NID_UI_CTRL, "OnTapGestureDetected");
if (IsInternalFocused() == false)
{
GetCursorBounds(true, cursorBounds);
__pCopyPasteManager = new (std::nothrow) _EditCopyPasteManager(*__pEdit);
- SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, false, E_SYSTEM, "[EDIT] Unable to create _EditCopyPasteManager instance.");
+ SysTryReturn(NID_UI_CTRL, __pCopyPasteManager != null, false, E_SYSTEM, "Unable to create _EditCopyPasteManager instance.");
__pCopyPasteManager->AddCopyPasteEventListener(*this);
__pCopyPasteManager->Show();
__isCopyPasteManagerExist = true;
result r = E_SUCCESS;
_Clipboard* pClipBoard = _Clipboard::GetInstance();
- SysTryReturnResult(NID_UI_CTRL, pClipBoard != null, E_SYSTEM, "[EDIT] Unable to get the clipboard instance.");
+ SysTryReturnResult(NID_UI_CTRL, pClipBoard != null, E_SYSTEM, "Unable to get the clipboard instance.");
int start = 0;
int end = 0;
String blockString(GetText(start, end - 1));
_ClipboardItem* pClipboardItem = _ClipboardItem::CreateInstanceN(CLIPBOARD_DATA_TYPE_TEXT, blockString);
- SysTryReturnResult(NID_UI_CTRL, pClipboardItem != null, E_SYSTEM, "[EDIT] Unable to get the clipboarditem instance.");
+ SysTryReturnResult(NID_UI_CTRL, pClipboardItem != null, E_SYSTEM, "Unable to get the clipboarditem instance.");
r = pClipBoard->CopyItem(*pClipboardItem);
continue;
}
const Bitmap * pImage = pImageText->GetBitmap();
- SysTryReturnResult(NID_UI_CTRL, pImage != null, E_SYSTEM, "[EDIT] Unable to get the bitmap from textobject.");
+ SysTryReturnResult(NID_UI_CTRL, pImage != null, E_SYSTEM, "Unable to get the bitmap from textobject.");
_ClipboardItem* pClipboardImageItem = _ClipboardItem::CreateInstanceN(CLIPBOARD_DATA_TYPE_IMAGE, *pImage);
- SysTryReturnResult(NID_UI_CTRL, pClipboardImageItem != null, E_SYSTEM, "[EDIT] Unable to get the clipboardImageitem instance.");
+ SysTryReturnResult(NID_UI_CTRL, pClipboardImageItem != null, E_SYSTEM, "Unable to get the clipboardImageitem instance.");
r = pClipBoard->CopyItem(*pClipboardImageItem);
String filteredString;
_Clipboard* pClipBoard = _Clipboard::GetInstance();
- SysTryReturnResult(NID_UI_CTRL, pClipBoard != null, E_SYSTEM, "[EDIT] Unable to get the clipboard instance.");
+ SysTryReturnResult(NID_UI_CTRL, pClipBoard != null, E_SYSTEM, "Unable to get the clipboard instance.");
const _ClipboardItem* pClipboardItem = pClipBoard->RetrieveLatestItemN(CLIPBOARD_DATA_TYPE_TEXT|CLIPBOARD_DATA_TYPE_AUDIO | CLIPBOARD_DATA_TYPE_VIDEO);
- SysTryReturnResult(NID_UI_CTRL, pClipboardItem != null, E_SYSTEM, "[EDIT] Unable to get the clipboarditem instance.");
+ SysTryReturnResult(NID_UI_CTRL, pClipboardItem != null, E_SYSTEM, "Unable to get the clipboarditem instance.");
const String* pClipString = dynamic_cast<const String*>(pClipboardItem->GetData());
- SysTryCatch(NID_UI_CTRL, pClipString, r = E_SYSTEM, E_SYSTEM, "[EDIT] Unable to get the clipboarditem instance.");
+ SysTryCatch(NID_UI_CTRL, pClipString, r = E_SYSTEM, E_SYSTEM, "Unable to get the clipboarditem instance.");
filteredString = *pClipString;
DeleteText(start, end);
ReleaseTextBlock();
pSubString = new String(__limitLength - currentLength + (end - start));
- SysTryCatch(NID_UI_CTRL, pSubString, , r = E_OUT_OF_MEMORY, "[EDIT] Unable to allocate text buffer.");
+ SysTryCatch(NID_UI_CTRL, pSubString, , r = E_OUT_OF_MEMORY, "Unable to allocate text buffer.");
filteredString.SubString(0, __limitLength - currentLength + (end - start), *pSubString);
r = InsertTextAt(__cursorPos, pSubString->GetPointer());
}
pSubString = new String(__limitLength - currentLength);
- SysTryCatch(NID_UI_CTRL, pSubString, , r = E_OUT_OF_MEMORY, "[EDIT] Unable to allocate text buffer.");
+ SysTryCatch(NID_UI_CTRL, pSubString, , r = E_OUT_OF_MEMORY, "Unable to allocate text buffer.");
filteredString.SubString(0, __limitLength - currentLength, *pSubString);
r = InsertTextAt(__cursorPos, pSubString->GetPointer());
_EditPresenter::IsClipped(void) const
{
_Clipboard* pClipBoard = _Clipboard::GetInstance();
- SysTryReturn(NID_UI_CTRL, pClipBoard != null, false, E_SYSTEM, "[EDIT] Unable to get the clipboard instance.");
+ SysTryReturn(NID_UI_CTRL, pClipBoard != null, false, E_SYSTEM, "Unable to get the clipboard instance.");
const _ClipboardItem* pClipboardItem = pClipBoard->RetrieveLatestItemN(CLIPBOARD_DATA_TYPE_TEXT|CLIPBOARD_DATA_TYPE_AUDIO | CLIPBOARD_DATA_TYPE_VIDEO);
if (pClipboardItem == null)
{
r = __pTextObject->SetAlignment(textAlign | TEXT_OBJECT_ALIGNMENT_TOP);
}
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "[EDIT] Unable to set text alignment.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "Unable to set text alignment.");
__horizontalAlignment = alignment;
return r;
if (start != 0 && end != -1)
{
SysTryReturn(NID_UI_CTRL, (start <= end), tempString, E_SYSTEM, "[E_SYSTEM] The invalid argument(start = %d, end = %d) is given.", start, end);
+ int textLength = GetTextLength();
+ SysTryReturn(NID_UI_CTRL, (start < textLength && end < textLength), tempString, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] The invalid argument(start = %d, end = %d) is given.", start, end);
}
- int textLength = GetTextLength();
- SysTryReturn(NID_UI_CTRL, (start < textLength && end < textLength), tempString, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] The invalid argument(start = %d, end = %d) is given.", start, end);
-
if (__pEdit->GetEditStyle() & EDIT_STYLE_PASSWORD)
{
int length = end - start + 1;
}
else
{
- SysTryReturnResult(NID_UI_CTRL, length <= __limitLength, E_INVALID_ARG, "[EDIT] The Invalid argument is given.");
+ SysTryReturnResult(NID_UI_CTRL, length <= __limitLength, E_INVALID_ARG, "The Invalid argument is given.");
}
if (__isInputConnectionBound && __isTextComposing)
result r = E_SUCCESS;
int length = GetTextLength();
- SysTryReturnResult(NID_UI_CTRL, -1 < position && position <= length, E_INVALID_ARG, "[Edit] Invalid argument is given.");
+ SysTryReturnResult(NID_UI_CTRL, -1 < position && position <= length, E_INVALID_ARG, "Invalid argument is given.");
if (__isTouchMoving == false)
{
}
r = __pTextObject->SetCursorIndex(position);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "[Edit] Failed to set cursor position");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "Failed to set cursor position");
if (__cursorPos != position)
{
result r = E_SUCCESS;
int length = GetTextLength();
- SysTryReturnResult(NID_UI_CTRL, -1 < position && position <= length, E_INVALID_ARG, "[Edit] Invalid argument is given.");
+ SysTryReturnResult(NID_UI_CTRL, -1 < position && position <= length, E_INVALID_ARG, "Invalid argument is given.");
if (__isTouchMoving == false)
{
}
r = __pTextObject->SetCursorIndex(position);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "[Edit] Failed to set cursor position");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "Failed to set cursor position");
__rowCursorIndex = rowIndex;
__columnCursorIndex = columnIndex;
String insertText = text;
int i = 0;
- SysTryReturnResult(NID_UI_CTRL, index >= 0 && index <= currentLength, E_OUT_OF_RANGE, "[EDIT] The Invalid argument is given.");
+ SysTryReturnResult(NID_UI_CTRL, index >= 0 && index <= currentLength, E_OUT_OF_RANGE, "The Invalid argument is given.");
if (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER)
{
}
else
{
- SysTryReturnResult(NID_UI_CTRL, totalLength <= __limitLength, E_MAX_EXCEEDED, "[EDIT] The Invalid argument is given.");
+ SysTryReturnResult(NID_UI_CTRL, totalLength <= __limitLength, E_MAX_EXCEEDED, "The Invalid argument is given.");
}
if (__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE || __pEdit->GetEditStyle() & EDIT_STYLE_TOKEN )
__pTextObject->SetRange(index, length);
r = __pTextObject->NotifyTextChanged(__pTextBuffer, 0, __pTextString->GetLength(), length);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "[Edit] Failed to set length");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "Failed to set length");
__pTextObject->Compose();
}
else
{
- SysTryReturnResult(NID_UI_CTRL, totalLength <= __limitLength, E_MAX_EXCEEDED, "[EDIT] The Invalid argument is given.");
+ SysTryReturnResult(NID_UI_CTRL, totalLength <= __limitLength, E_MAX_EXCEEDED, "The Invalid argument is given.");
}
r = __pTextString->Append(text);
__pTextObject->SetRange(currentLength, length);
r = __pTextObject->NotifyTextChanged(__pTextBuffer, 0, __pTextString->GetLength(), length);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "[Edit] Failed to set length");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "Failed to set length");
__pTextObject->Compose();
int length = GetTextLength();
- SysTryReturnResult(NID_UI_CTRL, -1 < startCursorPosition && startCursorPosition < endCursorPosition, E_INVALID_ARG, "[EDIT] Invalid argument is given.");
- SysTryReturnResult(NID_UI_CTRL, startCursorPosition < endCursorPosition && endCursorPosition <= length, E_INVALID_ARG, "[EDIT] Invalid argument is given.");
+ SysTryReturnResult(NID_UI_CTRL, -1 < startCursorPosition && startCursorPosition < endCursorPosition, E_INVALID_ARG, "Invalid argument is given.");
+ SysTryReturnResult(NID_UI_CTRL, startCursorPosition < endCursorPosition && endCursorPosition <= length, E_INVALID_ARG, "Invalid argument is given.");
_Text::TextElement* pFirstTextElement = __pTextObject->GetElementAtTextIndex(startCursorPosition);
const TextSimple* pFirstSimpleText = dynamic_cast <const TextSimple*>(pFirstTextElement);
int length = text.GetLength();
int totalLength = currentLength + length;
- SysTryReturnResult(NID_UI_CTRL, position >= 0 && position <= currentLength, E_OUT_OF_RANGE, "[EDIT] The given position is out-of-range.");
+ SysTryReturnResult(NID_UI_CTRL, position >= 0 && position <= currentLength, E_OUT_OF_RANGE, "The given position is out-of-range.");
if ((__pEdit->GetEditStyle() & EDIT_STYLE_FLEXIBLE) || (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER))
{
}
else
{
- SysTryReturnResult(NID_UI_CTRL, totalLength <= __limitLength, E_MAX_EXCEEDED, "[EDIT] The text exceeds the limitation length.");
+ SysTryReturnResult(NID_UI_CTRL, totalLength <= __limitLength, E_MAX_EXCEEDED, "The text exceeds the limitation length.");
}
if (__isInputConnectionBound == true && __isTextComposing == true)
TextSimple* pSimpleText = null;
pSimpleText = new (std::nothrow) TextSimple(__pTextBuffer, length, TEXT_ELEMENT_SOURCE_TYPE_EXTERNAL, GetFont());
- SysTryReturnResult(NID_UI_CTRL, pSimpleText, E_OUT_OF_MEMORY, "[Edit] Unable to allocate text simple element.");
+ SysTryReturnResult(NID_UI_CTRL, pSimpleText, E_OUT_OF_MEMORY, "Unable to allocate text simple element.");
pSimpleText->ChangeTextOffset(__pTextBuffer, position);
pSimpleText->SetBitmap((Bitmap&)textImage);
if (!__pParentForm)
{
__pParentForm = GetParentForm();
+
+ if (!__pParentForm && __isKeypadCommandButtonVisible)
+ {
+ __isKeypadCommandButtonVisible = false;
+ }
}
if (__isAutoShrinkEnabled)
{
result r = E_SUCCESS;
__pTextVisualElement = new (std::nothrow) _VisualElement;
- SysTryReturn(NID_UI_CTRL, __pTextVisualElement != null, false, E_OUT_OF_MEMORY, "[EDIT] Unable to create __pTextVisualElement instance.");
+ SysTryReturn(NID_UI_CTRL, __pTextVisualElement != null, false, E_OUT_OF_MEMORY, "Unable to create __pTextVisualElement instance.");
r = __pTextVisualElement->Construct();
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Failed to construct", GetErrorMessage(r));
{
__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);
+ SysLog(NID_UI_CTRL, "Command position changed!!!! bounds(%f, %f, %f, %f)", bounds.x, bounds.y, bounds.width, bounds.height);
r = __pCommandButton->SetBounds(bounds);
__pCommandButton->SetResizable(false);
if (__pParentForm == false)
{
+ __isKeypadCommandButtonVisible = false;
return r;
}
__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);
+ SysLog(NID_UI_CTRL, "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");
+ SysLog(NID_UI_CTRL, "EDIT_FOOTER_VISIBLE_STATUS_HIDE");
}
else
{
__initialFooterVisibleStatus = EDIT_FOOTER_VISIBLE_STATUS_SHOW;
- SysLog(NID_UI_CTRL, "[EDIT] CheckInitialFooterVisibleState - EDIT_FOOTER_VISIBLE_STATUS_SHOW");
+ SysLog(NID_UI_CTRL, "EDIT_FOOTER_VISIBLE_STATUS_SHOW");
}
}
else
{
__initialFooterVisibleStatus = EDIT_FOOTER_VISIBLE_STATUS_NONE;
- SysLog(NID_UI_CTRL, "[EDIT] CheckInitialFooterVisibleState - EDIT_FOOTER_VISIBLE_STATUS_NONE");
+ SysLog(NID_UI_CTRL, "EDIT_FOOTER_VISIBLE_STATUS_NONE");
}
return;
{
if (isVisible)
{
- SysLog(NID_UI_CTRL, "[EDIT] SetFooterVisible TRUE!!!!!");
+ SysLog(NID_UI_CTRL, "SetFooterVisible TRUE!!!!!");
__footerVisibleChanged = false;
}
else
{
- SysLog(NID_UI_CTRL, "[EDIT] SetFooterVisible FALSE!!!!!");
+ SysLog(NID_UI_CTRL, "SetFooterVisible FALSE!!!!!");
__footerVisibleChanged = true;
}
bounds = __pInputConnection->GetInputPanelBoundsF();
_CoordinateSystem* pCoordSystem = _CoordinateSystem::GetInstance();
- SysTryReturnResult(NID_UI_CTRL, pCoordSystem, E_SYSTEM, "[EDIT] Coordinate system load failed.");
+ SysTryReturnResult(NID_UI_CTRL, pCoordSystem, E_SYSTEM, "Coordinate system load failed.");
_ICoordinateSystemTransformer* pXformer = pCoordSystem->GetInverseTransformer();
- SysTryReturnResult(NID_UI_CTRL, pXformer, E_SYSTEM, "[EDIT] Coordinate system load failed.");
+ SysTryReturnResult(NID_UI_CTRL, pXformer, E_SYSTEM, "Coordinate system load failed.");
bounds = pXformer->Transform(bounds);
}
bool
-_EditPresenter::CheckKeypadExist(_ControlOrientation orientation)
+_EditPresenter::IsKeypadRotating(_ControlOrientation orientation)
{
FloatDimension screenSize;
FloatRectangle absKeypadBounds(0.0f, 0.0f, 0.0f, 0.0f);
screenSize.width = pControlManager->GetScreenSizeF().height;
}
- if ((absKeypadBounds.y != screenSize.height) && (absKeypadBounds.width == screenSize.width))
+ if (absKeypadBounds.width == screenSize.width)
+ {
+ return false;
+ }
+ else
{
- SysLog(NID_UI_CTRL, "[EDIT] CheckKeypadExist: KEYPAD EXIST!!!!Keypad(y: %f, h: %f)", absKeypadBounds.y, absKeypadBounds.height);
return true;
}
+}
+
+bool
+_EditPresenter::CheckKeypadExist(_ControlOrientation orientation)
+{
+ FloatDimension screenSize;
+ FloatRectangle absKeypadBounds(0.0f, 0.0f, 0.0f, 0.0f);
+ _ControlManager* pControlManager = _ControlManager::GetInstance();
+
+ GetKeypadBounds(absKeypadBounds);
+
+ if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
+ {
+ screenSize.height = pControlManager->GetScreenSizeF().height;
+ screenSize.width = pControlManager->GetScreenSizeF().width;
+ }
+ else
+ {
+ screenSize.height = pControlManager->GetScreenSizeF().width;
+ screenSize.width = pControlManager->GetScreenSizeF().height;
+ }
+
+ if (absKeypadBounds.width != 0 && absKeypadBounds.height != 0)
+ {
+ if ((absKeypadBounds.y != screenSize.height))
+ {
+ SysLog(NID_UI_CTRL, "KEYPAD EXIST!!!!Keypad(y: %f, w: %f, h: %f)", absKeypadBounds.y, absKeypadBounds.width, absKeypadBounds.height);
+ return true;
+ }
+ else
+ {
+ SysLog(NID_UI_CTRL, "NO KEYPAD!!!!Keypad(y: %f, w: %f, h: %f)", absKeypadBounds.y, absKeypadBounds.width, absKeypadBounds.height);
+ return false;
+ }
+ }
else
{
- SysLog(NID_UI_CTRL, "[EDIT] CheckKeypadExist: NO KEYPAD!!!!Keypad(y: %f, h: %f)", absKeypadBounds.y, absKeypadBounds.height);
+ SysLog(NID_UI_CTRL, "NO KEYPAD!!!!Keypad(y: %f, w: %f, h: %f)", absKeypadBounds.y, absKeypadBounds.width, absKeypadBounds.height);
return false;
}
}
//layout rearrange
if (__isUSBKeyboardConnected)
{
- SysLog(NID_UI_CTRL, "[EDIT]ShowKeypad called in USB ON mode!!!!");
+ SysLog(NID_UI_CTRL, "ShowKeypad called in USB ON mode!!!!");
__isKeypadExist = CheckKeypadExist(__pEdit->GetOrientation()); //prediction alreaedy exists
}
else
{
- SysLog(NID_UI_CTRL, "[EDIT]ShowKeypad called in USB OFF mode!!!!");
+ SysLog(NID_UI_CTRL, "ShowKeypad called in USB OFF mode!!!!");
__isKeypadExist = CheckKeypadExist(__pEdit->GetOrientation()); //call once only from here.
__pCopyPasteManager->Release();
}
+ bool isScrollPanelBoundsReloaded = false;
+
+ if (__pParentPanel)
+ {
+ _ControlImpl* pParentPanelImpl = static_cast <_ControlImpl* >(__pParentPanel->GetUserData());
+ Rectangle builderBounds;
+ isScrollPanelBoundsReloaded= pParentPanelImpl->GetBuilderBounds(orientation, builderBounds);
+ }
+
__rotated = true;
CheckUSBKeyboardStatus();
if (__isInputConnectionBound || __clipboardConnected)
{
- SysLog(NID_UI_CTRL, "[EDIT]-------------------ChangeLayout------------------------");
+ SysLog(NID_UI_CTRL, "-------------------ChangeLayout------------------------");
+
+ if (!isScrollPanelBoundsReloaded)
+ {
+ SysLog(NID_UI_CTRL, "ScrollPanel bounds is not changed by UIBuilder, so forcely reset ScrollPanel's height");
+ AdjustParentPanelHeight(true);
+ }
+ else
+ {
+ SysLog(NID_UI_CTRL, "ScrollPanel bounds is changed by UIBuilder");
+ }
if (__pParentForm)
{
- SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
+ SysLog(NID_UI_CTRL, "Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
}
if (__isKeypadExist && ! __isClipboardExist) //only keypad exists, already get keypadbounds before callback [Causion]this timing clipboard height is still previous height
{
- __initialParentHeight = 0.0f;
+ if (isScrollPanelBoundsReloaded)
+ {
+ __initialParentHeight = 0.0f;
+ }
+
ChangeLayoutInternal(orientation);
AdjustParentPanelHeight(false);
ScrollPanelToCursorPosition();
}
else // if clipboard exists, boundsChanged callback will delivered after rotate callback
{
+ /*
if (__isClipboardExist)
{
__initialParentHeight = 0.0f;
AdjustParentPanelHeight(false);
ScrollPanelToCursorPosition();
}
+ }*/
+
+ if (!__isClipboardExist)
+ {
+ if (__isKeypadCommandButtonVisible)
+ {
+ __initialParentHeight = 0.0f;
+ ChangeLayoutInternal(orientation);
+ AdjustParentPanelHeight(false);
+ ScrollPanelToCursorPosition();
+ }
}
}
}
FloatRectangle keypadBounds(0.0f, 0.0f, 0.0f, 0.0f);
_ControlManager* pControlManager = _ControlManager::GetInstance();
- SysTryReturnResult(NID_UI_CTRL, pControlManager, E_SYSTEM, "[EDIT] Failed to get root.");
+ SysTryReturnResult(NID_UI_CTRL, pControlManager, E_SYSTEM, "Failed to get root.");
FloatDimension screenSize;
FloatRectangle commandButtonBounds(0.0f, 0.0f, 0.0f, 0.0f);
{
commandButtonBounds.width = screenSize.width;
float commandButtonHeight = 0.0f;
- GET_SHAPE_CONFIG(FOOTER::HEIGHT, orientation, commandButtonHeight);
- commandButtonBounds.height = commandButtonHeight;
if (__pParentForm)
{
+ GET_SHAPE_CONFIG(FOOTER::HEIGHT, orientation, commandButtonHeight);
+ commandButtonBounds.height = commandButtonHeight;
formDeflateHeight += commandButtonBounds.height;
if (__isKeypadExist || __isClipboardExist)
{
commandButtonBounds.y = screenSize.height - commandButtonBounds.height - __pParentForm->GetClientBoundsF().y;
}
- }
- else
- {
- if (__isKeypadExist || __isClipboardExist)
- {
- commandButtonBounds.y = screenSize.height - shrinkedHeight - commandButtonBounds.height;
- }
- else
- {
- commandButtonBounds.y = screenSize.height - commandButtonBounds.height;
- }
- }
- r = SetKeypadCommandButton(commandButtonBounds);
- SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SetKeypadCommandButton(commandButtonBounds);
- if (__pCommandButton)
- {
- __pCommandButton->SetVisibleState(true);
- __pCommandButton->Invalidate();
+ if (__pCommandButton)
+ {
+ __pCommandButton->SetVisibleState(true);
+ __pCommandButton->Invalidate();
+ }
}
}
else
if (__pParentForm && deflateForm)
{
- SysLog(NID_UI_CTRL, "[EDIT]ChangeLayoutInternal: formDeflateHeight:%f, KeypadExist(%d), ClipboardExist(%d), CommandButtonVisible(%d)",
+ SysLog(NID_UI_CTRL, "FormDeflateHeight:%f, KeypadExist(%d), ClipboardExist(%d), CommandButtonVisible(%d)",
formDeflateHeight, __isKeypadExist, __isClipboardExist, __isKeypadCommandButtonVisible);
__pParentForm->DeflateClientRectHeight(formDeflateHeight);
}
}
void
-_EditPresenter::AdjustParentPanelHeight(bool restore, bool panelResizeByPrediction)
+_EditPresenter::AdjustParentPanelHeight(bool restore)
{
if (__pParentPanel == null)
{
screenSize.height = pControlManager->GetScreenSizeF().width;
}
- if (panelResizeByPrediction)
- restore = false;
-
if (restore)
{
if (__initialParentHeight)
{
scrollPanelBounds.height = __initialParentHeight;
-
+ SysLog(NID_UI_CTRL, "Rollback ScrollPanel's height to %f and Set __initialParentHeight to 'Zero' ", __initialParentHeight);
__initialParentHeight = 0.0f;
__pParentPanel->SetBounds(scrollPanelBounds);
__pParentPanel->Invalidate();
displayedPanelHeight = screenSize.height - commandButtonHeight - absScrollPanelBounds.y;
gapY = (absKeypadBounds.y - commandButtonHeight)- absScrollPanelBounds.y;
- if (panelResizeByPrediction)
+ bool isOverlapped = true;
+
+ if ((absKeypadBounds.y - commandButtonHeight) >= (absScrollPanelBounds.y + absScrollPanelBounds.height))
+ {
+ isOverlapped = false;
+ }
+
+ SysLog(NID_UI_CTRL, "IsOverlapped:(%d), __initialParentHeight:(%f), gapY:(%f)", isOverlapped, __initialParentHeight, gapY);
+
+ if (!__initialParentHeight)
{
- if ((absKeypadBounds.y - commandButtonHeight) >= (absScrollPanelBounds.y + absScrollPanelBounds.height))
+ if (!isOverlapped)
{
return;
}
- if (__isUSBKeyboardConnected)
+ if (gapY > 0.0f)
{
- if (gapY > 0.0f)
- {
- scrollPanelBounds.height = gapY;
- __pParentPanel->SetBounds(scrollPanelBounds);
- __pParentPanel->Invalidate();
- }
+ __initialParentHeight = scrollPanelBounds.height;
+
+ SysLog(NID_UI_CTRL, "Set ScrollPanel's height to %f and Set __initialParentHeight:(%f)", gapY, __initialParentHeight);
+
+ scrollPanelBounds.height = gapY;
+ __pParentPanel->SetBounds(scrollPanelBounds);
+ __pParentPanel->Invalidate();
}
- else
+ }
+ else
+ {
+ if (!isOverlapped)
{
- if ((gapY > 0.0f) && __initialParentHeight)
+ if ((gapY < __initialParentHeight) && (gapY > 0.0f))
{
+ SysLog(NID_UI_CTRL, "Set ScrollPanel's height to %f", gapY);
+
scrollPanelBounds.height = gapY;
__pParentPanel->SetBounds(scrollPanelBounds);
__pParentPanel->Invalidate();
+ return;
+ }
+ else
+ {
+ if (gapY > __initialParentHeight)
+ {
+ SysLog(NID_UI_CTRL, "Set ScrollPanel's height to %f", __initialParentHeight);
+
+ scrollPanelBounds.height = __initialParentHeight;
+ __pParentPanel->SetBounds(scrollPanelBounds);
+ __pParentPanel->Invalidate();
+ }
+ return;
}
- }
- }
- else
- {
- if ((absKeypadBounds.y - commandButtonHeight) >= (absScrollPanelBounds.y + absScrollPanelBounds.height))
- {
- return;
}
- if ((gapY > 0) && (gapY < displayedPanelHeight) && !__initialParentHeight)
+ if (gapY > 0.0f)
{
- __initialParentHeight = scrollPanelBounds.height;
-
+ SysLog(NID_UI_CTRL, "Set ScrollPanel's height to %f", gapY);
scrollPanelBounds.height = gapY;
__pParentPanel->SetBounds(scrollPanelBounds);
__pParentPanel->Invalidate();
}
}
}
-
- return;
}
result
if (__isUSBKeyboardConnected)
{
- SysLog(NID_UI_CTRL, "[EDIT]HideKeypad called in USB ON mode!!!!");
+ SysLog(NID_UI_CTRL, "HideKeypad called in USB ON mode!!!!");
if (__pCommandButton && __isKeypadCommandButtonVisible)
{
SetFooterVisible(true);
if (__pParentForm)
{
- SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
+ SysLog(NID_UI_CTRL, "Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
}
}
else
{
- SysLog(NID_UI_CTRL, "[EDIT]HideKeypad called in USB OFF mode!!!!");
+ SysLog(NID_UI_CTRL, "HideKeypad called in USB OFF mode!!!!");
if (__pCommandButton && __isKeypadCommandButtonVisible)
{
if (!__isKeypadExist)
if (__pParentForm)
{
- SysLog(NID_UI_CTRL, "[EDIT] Form deflate RESET!!!!!!!!!!");
+ SysLog(NID_UI_CTRL, "Form deflate RESET!!!!!!!!!!");
__pParentForm->DeflateClientRectHeight(0.0f);
}
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_CLOSE);
__pTextObject->SetAction(TEXT_OBJECT_ACTION_TYPE_ABBREV);
r = __pTextObject->SetTextObjectEllipsisType(ellipsisType);
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "[EDIT] Unable to Set ellipsis position.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "Unable to Set ellipsis position.");
return r;
}
result r = E_SUCCESS;
r = AdjustFont(*pFont, EDIT_FONT_CHANGE_ALL);
- SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, GetLastResult(), "[EDIT] Unable to set font.");
+ SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, GetLastResult(), "Unable to set font.");
__titleFontFaceName = pFont->GetFaceName();
SysTryReturn(NID_UI_CTRL, fontImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = fontImpl->SetSize(size);
- SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "[EDIT] SetSize is failed.");
+ SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "SetSize is failed.");
if (__pTextObject)
{
r = __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
__ContentTextStatus = EDIT_TEXT_STATUS_COMPOSE_NON;
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
}
if (IsGuideTextActivated())
{
r = __pGuideTextObject->SetFont(__pFont, 0, __pGuideTextObject->GetTextLength());
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
}
__contentFontSize = _CoordinateSystemUtils::ConvertToFloat(size);
SysTryReturn(NID_UI_CTRL, fontImpl, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = fontImpl->SetSize(size);
- SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "[EDIT] SetSize is failed.");
+ SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "SetSize is failed.");
if (__pTextObject)
{
r = __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
__ContentTextStatus = EDIT_TEXT_STATUS_COMPOSE_NON;
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
}
if (IsGuideTextActivated())
{
r = __pGuideTextObject->SetFont(__pFont, 0, __pGuideTextObject->GetTextLength());
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
}
__contentFontSize = size;
result r = E_SUCCESS;
Font* pFont = _FontImpl::CloneN(const_cast <Font&>(font));
- SysTryReturnResult(NID_UI_CTRL, pFont, GetLastResult(), "[EDIT] Unable to create font.");
+ SysTryReturnResult(NID_UI_CTRL, pFont, GetLastResult(), "Unable to create font.");
__pFont = pFont;
{
r = __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
__ContentTextStatus = EDIT_TEXT_STATUS_COMPOSE_NON;
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, GetLastResult(), "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, GetLastResult(), "Unable to set font.");
}
if (IsGuideTextActivated())
{
r = __pGuideTextObject->SetFont(__pFont, 0, __pGuideTextObject->GetTextLength());
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, GetLastResult(), "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, GetLastResult(), "Unable to set font.");
}
return r;
if (__pTitleTextObject)
{
r = fontImpl->SetSize(__titleFontSize);
- SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "[EDIT] SetSize is failed.");
+ SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "SetSize is failed.");
r = __pTitleTextObject->SetFont(pFont, 0, __pTitleTextObject->GetTextLength());
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
}
}
if (fontChange == EDIT_FONT_CHANGE_CONTENT || fontChange == EDIT_FONT_CHANGE_ALL)
{
r = fontImpl->SetSize(__contentFontSize);
- SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "[EDIT] SetSize is failed.");
+ SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "SetSize is failed.");
unsigned long style = FONT_STYLE_PLAIN;
{
r = __pTextObject->SetFont(pFont, 0, __pTextObject->GetTextLength());
__ContentTextStatus = EDIT_TEXT_STATUS_COMPOSE_NON;
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
}
if (__pGuideTextObject)
{
r = __pGuideTextObject->SetFont(pFont, 0, __pGuideTextObject->GetTextLength());
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
}
}
Font* pFont = null;
IList* systemFontList = Font::GetSystemFontListN();
- SysTryReturnResult(NID_UI_CTRL, systemFontList, E_SYSTEM, "[EDIT] Unable to get system font list.\n");
+ SysTryReturnResult(NID_UI_CTRL, systemFontList, E_SYSTEM, "Unable to get system font list.\n");
int fontListCount = systemFontList->GetCount();
String tempFontFaceName;
tempFontFaceName = *static_cast<String*>(systemFontList->GetAt(i));
pFont = new (std::nothrow) Font;
- SysTryCatch(NID_UI_CTRL, pFont, , r = E_OUT_OF_MEMORY, "[EDIT] Unable to get text information.\n");
+ SysTryCatch(NID_UI_CTRL, pFont, , r = E_OUT_OF_MEMORY, "Unable to get text information.\n");
r = pFont->Construct(tempFontFaceName, fontStyle, textSize);
- SysTryCatch(NID_UI_CTRL, !IsFailed(r), , r, "[EDIT] Unable to construct Font.\n");
+ SysTryCatch(NID_UI_CTRL, !IsFailed(r), , r, "Unable to construct Font.\n");
// check font face name.
if (typefaceName.Equals(pFont->GetFaceName(), true))
pFont = null;
}
- SysTryCatch(NID_UI_CTRL, isFaceNameAvailable, , r = E_INVALID_ARG, "[EDIT] The unsupported font face name is given.\n");
+ SysTryCatch(NID_UI_CTRL, isFaceNameAvailable, , r = E_INVALID_ARG, "The unsupported font face name is given.\n");
if (styleMask & TEXT_BOX_TEXT_STYLE_UNDERLINE)
{
{
r = __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
__ContentTextStatus = EDIT_TEXT_STATUS_COMPOSE_NON;
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, GetLastResult(), "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, GetLastResult(), "Unable to set font.");
}
return r;
{
r = __pTextObject->SetFont(__pFont, 0, __pTextObject->GetTextLength());
__ContentTextStatus = EDIT_TEXT_STATUS_COMPOSE_NON;
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
}
if (IsGuideTextActivated())
{
r = __pGuideTextObject->SetFont(__pFont, 0, __pGuideTextObject->GetTextLength());
- SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "[EDIT] Unable to set font.");
+ SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Unable to set font.");
}
__contentTextStyle = textStyle;
if(fontImpl)
{
r = fontImpl->SetSize(__titleFontSize);
- SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "[EDIT] SetSize is failed.");
+ SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "SetSize is failed.");
}
else
{
__pTitleTextObject->SetFont(__pFont, 0, __pTitleTextObject->GetTextLength());
r = fontImpl->SetSize(__contentFontSize);
- SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "[EDIT] SetSize is failed.");
+ SysTryReturn(NID_UI_CTRL, !(IsFailed(r)), r, r, "SetSize is failed.");
__pEdit->UpdateAccessibilityElement(EDIT_ACCESSIBILITY_ELEMENT_TYPE_TEXT);
startPosition = -1;
endPosition = -1;
- SysTryReturnResult(NID_UI_CTRL, postion >= 0 && postion <= length, E_OUT_OF_RANGE, "[EDIT] The given index is out-of-range.");
+ SysTryReturnResult(NID_UI_CTRL, postion >= 0 && postion <= length, E_OUT_OF_RANGE, "The given index is out-of-range.");
_Text::TextElement* pTextElement = __pTextObject->GetElementAtTextIndex(postion);
const TextSimple* pSimpleText = dynamic_cast <const TextSimple*>(pTextElement);