Fix the ownee rotation
authorChoi Munseok <ms47.choi@samsung.com>
Wed, 10 Apr 2013 12:15:13 +0000 (21:15 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Wed, 10 Apr 2013 12:15:13 +0000 (21:15 +0900)
Change-Id: I164b818b5b066a05c3a153f9d8ecfdee44812068
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/controls/FUiCtrl_Keypad.cpp
src/ui/controls/FUiCtrl_MessageBox.cpp [changed mode: 0755->0644]
src/ui/controls/FUiCtrl_Popup.cpp [changed mode: 0755->0644]
src/ui/inc/FUiCtrl_Popup.h [changed mode: 0755->0644]

index 1a37cd6..f06b896 100644 (file)
@@ -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);
old mode 100755 (executable)
new mode 100644 (file)
index 98b6c1b..5945442
@@ -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
old mode 100755 (executable)
new mode 100644 (file)
index 5efdcb5..3f4e038
@@ -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
 
old mode 100755 (executable)
new mode 100644 (file)
index f4e9a5b..de5d550
@@ -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: