}
void
-_Edit::OnChangeLayout(_ControlOrientation orientation)
+_Edit::OnChangeLayout(_ControlRotation rotation)
{
- result r = _pEditPresenter->ChangeLayout(orientation);
+ result r = _pEditPresenter->ChangeLayout(rotation);
SetLastResult(r);
return;
if (this == dynamic_cast< const _Edit* >(&control))
{
_pEditPresenter->SetKeypadEventSkipped(!enableState);
- _pEditPresenter->SetCursorDisabled(!enableState);
+ if (__inputStyle != INPUT_STYLE_FULLSCREEN)
+ {
+ _pEditPresenter->SetCursorDisabled(!enableState);
+ }
}
Invalidate();
void
_EditPresenter::OnInputConnectionPanelBoundsChanged(InputConnection& source, const Rectangle& bounds)
{
+ float previousHeight = __keypadBounds.height;
+
CheckUSBKeyboardStatus();
if ((__isUSBKeyboardConnected == false) && __isKeypadExist == false)
DrawText();
if (__pCopyPasteManager->GetCopyPastePopup())
{
- __pCopyPasteManager->CreateCopyPastePopup();
+ if (previousHeight != bounds.height)
+ {
+ __pCopyPasteManager->CreateCopyPastePopup();
+ }
}
__pCopyPasteManager->Show();
}
}
result
+_EditPresenter::ChangeLayout(_ControlRotation rotation)
+{
+ _ControlOrientation orientation = _CONTROL_ORIENTATION_PORTRAIT;
+
+ if (rotation == _CONTROL_ROTATION_0 || rotation == _CONTROL_ROTATION_180)
+ {
+ orientation = _CONTROL_ORIENTATION_PORTRAIT;
+ }
+ else
+ {
+ orientation = _CONTROL_ORIENTATION_LANDSCAPE;
+ }
+
+ return ChangeLayout(orientation);
+}
+
+result
_EditPresenter::ChangeLayoutInternal(_ControlOrientation orientation, bool deflateForm)
{
result r = E_SUCCESS;
bool isKeypadExist = false;
bool isClipboardExist = false;
- isKeypadExist = __pChildEdit->CheckKeypadExist(orientation);
- isClipboardExist = __pChildEdit->IsClipboardExist();
+ if (__isInitialized)
+ {
+ isKeypadExist = __pChildEdit->CheckKeypadExist(orientation);
+ isClipboardExist = __pChildEdit->IsClipboardExist();
+ }
if (orientation == _CONTROL_ORIENTATION_PORTRAIT)
{
void
_Keypad::OnNativeWindowActivated(void)
{
+ if (__isFirstCall && __pChildEdit)
+ {
+ __pChildEdit->SetFocused();
+ __isFirstCall = false;
+ }
+
return;
}
GET_COLOR_CONFIG(EDIT::BG_NORMAL, backgroundColor);
SetBackgroundColor(backgroundColor);
- if (__isFirstCall)
- {
- __pChildEdit->SetFocused();
- __isFirstCall = false;
- }
-
return;
}
void OnScrollPanelBoundsChanged(void);
virtual result OnAttachedToMainTree(void);
virtual void OnBoundsChanged(void);
- virtual void OnChangeLayout(_ControlOrientation orientation);
+ virtual void OnChangeLayout(_ControlRotation rotation);
virtual void OnClipboardPopupClosed(const ClipboardItem* pClipboardItem);
virtual void OnDraw(void);
virtual bool OnFocusGained(const _Control& source);
result CalculateAbsoluteCursorBounds(int index, Tizen::Graphics::FloatRectangle& absCursorBounds);
result CalculateAbsoluteCursorBounds(int rowIndex, int columnIndex, FloatRectangle& absCursorBounds);
virtual result ChangeLayout(_ControlOrientation orientation);
+ virtual result ChangeLayout(_ControlRotation rotation);
result ClearText(void);
result CopyText(void);
virtual result CutText(void);