From 4195dc59ff18c19cedf1be59de519238f2d0a34b Mon Sep 17 00:00:00 2001 From: Choi Munseok Date: Wed, 10 Apr 2013 21:15:13 +0900 Subject: [PATCH] Fix the ownee rotation Change-Id: I164b818b5b066a05c3a153f9d8ecfdee44812068 Signed-off-by: Choi Munseok --- src/ui/controls/FUiCtrl_Keypad.cpp | 2 +- src/ui/controls/FUiCtrl_MessageBox.cpp | 2 +- src/ui/controls/FUiCtrl_Popup.cpp | 8 +++++++- src/ui/inc/FUiCtrl_Popup.h | 1 + 4 files changed, 10 insertions(+), 3 deletions(-) mode change 100755 => 100644 src/ui/controls/FUiCtrl_MessageBox.cpp mode change 100755 => 100644 src/ui/controls/FUiCtrl_Popup.cpp mode change 100755 => 100644 src/ui/inc/FUiCtrl_Popup.h diff --git a/src/ui/controls/FUiCtrl_Keypad.cpp b/src/ui/controls/FUiCtrl_Keypad.cpp index 1a37cd6..f06b896 100644 --- a/src/ui/controls/FUiCtrl_Keypad.cpp +++ b/src/ui/controls/FUiCtrl_Keypad.cpp @@ -94,7 +94,7 @@ _Keypad::CreateKeypadN(void) SysTryCatch(NID_UI_CTRL, pKeypad, , r, "[%s] Propagating.", GetErrorMessage(r)); SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r)); - r = pKeypad->CreateRootVisualElement(); + r = pKeypad->CreateRootVisualElement(_WINDOW_TYPE_SUB); SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r)); pEcoreEvas->SetWindowRotationBounds(*pKeypad, 0, portBounds); diff --git a/src/ui/controls/FUiCtrl_MessageBox.cpp b/src/ui/controls/FUiCtrl_MessageBox.cpp old mode 100755 new mode 100644 index 98b6c1b..5945442 --- a/src/ui/controls/FUiCtrl_MessageBox.cpp +++ b/src/ui/controls/FUiCtrl_MessageBox.cpp @@ -74,7 +74,7 @@ _MessageBox::CreateMessageBoxN(void) _MessageBox* pMsgbox = new (std::nothrow) _MessageBox(); SysTryReturn(NID_UI, pMsgbox != null, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - result r = pMsgbox->CreateRootVisualElement(); + result r = pMsgbox->CreateRootVisualElement(_WINDOW_TYPE_SUB); SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r)); // for taking touch event diff --git a/src/ui/controls/FUiCtrl_Popup.cpp b/src/ui/controls/FUiCtrl_Popup.cpp old mode 100755 new mode 100644 index 5efdcb5..3f4e038 --- a/src/ui/controls/FUiCtrl_Popup.cpp +++ b/src/ui/controls/FUiCtrl_Popup.cpp @@ -99,7 +99,7 @@ _Popup::CreatePopupN(void) _Popup* pPopup = new (std::nothrow) _Popup(); SysTryReturn(NID_UI_CTRL, pPopup != null, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed."); - result r = pPopup->CreateRootVisualElement(); + result r = pPopup->CreateRootVisualElement(_WINDOW_TYPE_SUB); SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r)); // for taking touch event @@ -571,5 +571,11 @@ _Popup::UpdateClientBounds(const FloatDimension& size, FloatRectangle& clientBou clientBounds.height = size.height - clientBounds.y; } +bool +_Popup::IsRotationSynchronized(void) const +{ + return true; +} + }}} // Tizen::Ui::Controls diff --git a/src/ui/inc/FUiCtrl_Popup.h b/src/ui/inc/FUiCtrl_Popup.h old mode 100755 new mode 100644 index f4e9a5b..de5d550 --- a/src/ui/inc/FUiCtrl_Popup.h +++ b/src/ui/inc/FUiCtrl_Popup.h @@ -104,6 +104,7 @@ public: virtual bool IsLayoutChangable(void) const; virtual void OnOwnerChanged(_Control* pOldOwner); virtual void UpdateClientBounds(const Tizen::Graphics::FloatDimension& size, Tizen::Graphics::FloatRectangle& clientBounds); + virtual bool IsRotationSynchronized(void) const; // Accessor public: -- 2.7.4