if (window.IsOrientationRoot() == false)
{
- _EcoreEvas* pEcoreEvas = ::GetEcoreEvasMgr()->GetEcoreEvas();
- if (pEcoreEvas)
+ if (window.GetWindowType() == _WINDOW_TYPE_VE)
{
- pEcoreEvas->SetWindowPreferredRotation(window, ::Convert(__orientationStatus));
+ window.ChangeLayout(__orientation);
+ }
+ else
+ {
+ _EcoreEvas* pEcoreEvas = ::GetEcoreEvasMgr()->GetEcoreEvas();
+ if (pEcoreEvas)
+ {
+ pEcoreEvas->SetWindowPreferredRotation(window, ::Convert(__orientationStatus));
+ }
}
}
result
_ControlManager::AttachWindow(_Window& window)
{
- _IndicatorManager::GetInstance()->AddWindow(&window);
-
- if (window.IsDimmingEnabled())
+ if (window.GetWindowType() != _WINDOW_TYPE_VE)
{
- _DimmingManager::GetInstance()->RegisterWindow(&window);
+ _IndicatorManager::GetInstance()->AddWindow(&window);
+
+ if (window.IsDimmingEnabled())
+ {
+ _DimmingManager::GetInstance()->RegisterWindow(&window);
+ }
}
return __pWindowList->Add(&window);
_Window* pWindow = GetWindow((count-1) - i);
_RootVisualElement* pRootVE = pWindow->GetRootVisualElement();
+ if (!pRootVE)
+ {
+ continue;
+ }
+
_EflLayer* pLayer = static_cast<_EflLayer*>(pRootVE->GetNativeLayer());
Ecore_Evas* pEcoreEvas = pLayer->GetEcoreEvas();
}
_RootVisualElement* pRootVE = pWindow->GetRootVisualElement();
+ if (!pRootVE)
+ {
+ continue;
+ }
+
_EflLayer* pLayer = static_cast<_EflLayer*>(pRootVE->GetNativeLayer());
Ecore_Evas* pEcoreEvas = pLayer->GetEcoreEvas();
_Window* pOwnee = pImpl->GetCore().GetOwnee(i);
if (pOwnee)
{
- if (!((callback == true) && (pOwnee->IsRotationSynchronized() == true)))
+ if (pOwnee->GetWindowType() == _WINDOW_TYPE_VE)
{
pOwnee->ChangeLayout(coreOrientation);
}
-
- if (pOwnee->GetVisibleState() == true)
+ else
{
- pEcoreEvas->SetOwner(*pOwnee, pImpl->GetCore());
+ if (!((callback == true) && (pOwnee->IsRotationSynchronized() == true)))
+ {
+ pOwnee->ChangeLayout(coreOrientation);
+ }
+
+ if (pOwnee->GetVisibleState() == true)
+ {
+ pEcoreEvas->SetOwner(*pOwnee, pImpl->GetCore());
+ }
}
}
}
_Window* pOwnee = pParent->GetOwnee(i);
if (pOwnee)
{
- if (!((callback == true) && (pOwnee->IsRotationSynchronized() == true)))
+ if (pOwnee->GetWindowType() == _WINDOW_TYPE_VE)
{
pOwnee->ChangeLayout(coreOrientation);
}
-
- if (pOwnee->GetVisibleState() == true)
+ else
{
- pEcoreEvas->SetOwner(*pOwnee, *pParent);
+ if (!((callback == true) && (pOwnee->IsRotationSynchronized() == true)))
+ {
+ pOwnee->ChangeLayout(coreOrientation);
+ }
+
+ if (pOwnee->GetVisibleState() == true)
+ {
+ pEcoreEvas->SetOwner(*pOwnee, *pParent);
+ }
}
}
}
bool visibleState = GetVisibleState();
if (!__isOpened && visibleState)
{
- _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
- SysTryReturn(NID_UI, pEcoreEvas, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
- pEcoreEvas->SetWindowVisibleState(*GetRootWindow(), visibleState);
+ if (__type != _WINDOW_TYPE_VE)
+ {
+ _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
+ SysTryReturn(NID_UI, pEcoreEvas, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ pEcoreEvas->SetWindowVisibleState(*GetRootWindow(), visibleState);
+ }
__isOpened = true;
__isInitialized = true;
return _ControlManager::GetInstance()->OpenWindow(*this, drawAndShow);
{
if (__isOpened)
{
- bool visibleState = GetVisibleState();
- _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
- SysTryReturnVoidResult(NID_UI, pEcoreEvas, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
- pEcoreEvas->SetWindowVisibleState(*GetRootWindow(), visibleState);
+ if (__type != _WINDOW_TYPE_VE)
+ {
+ bool visibleState = GetVisibleState();
+ _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
+ SysTryReturnVoidResult(NID_UI, pEcoreEvas, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
+ pEcoreEvas->SetWindowVisibleState(*GetRootWindow(), visibleState);
+ }
_ControlManager::GetInstance()->CloseWindow(*this);
__isOpened = false;
if (pOwner)
{
- _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
- if (pEcoreEvas)
+ if (__type != _WINDOW_TYPE_VE)
{
- if (__transient == true)
+ _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
+ if (pEcoreEvas)
{
- pEcoreEvas->SetOwner(*this, *pOwner);
- }
+ if (__transient == true)
+ {
+ pEcoreEvas->SetOwner(*this, *pOwner);
+ }
- __transient = true;
+ __transient = true;
+ }
}
}
return;
}
+ _VisualElement* pVE = GetVisualElement();
+
if (__pOwner)
{
__pOwner->DetachOwnee(*this);
+
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ _Window* pRootWindow = __pOwner->GetRootWindow();
+ if (pRootWindow)
+ {
+ _RootVisualElement* pRootVE = pRootWindow->GetRootVisualElement();
+ if (pRootVE && pVE)
+ {
+ pRootVE->DetachChild(*pVE);
+ }
+ }
+ }
}
if (pOwner)
{
pOwner->AttachOwnee(*this);
+
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ _Window* pRootWindow = pOwner->GetRootWindow();
+ if (pRootWindow)
+ {
+ _RootVisualElement* pRootVE = pRootWindow->GetRootVisualElement();
+ if (pRootVE && pVE)
+ {
+ pRootVE->AttachChild(*pVE);
+ }
+ }
+ }
}
_Control* pOldOwner = __pOwner;
{
__type = windowType;
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ return E_SUCCESS;
+ }
+
result r = CreateLayer();
SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
void
_Window::SetActivationEnabled(bool enable)
{
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ SetFocusable(enable);
+ return;
+ }
+
_EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
SysTryReturnVoidResult(NID_UI, pEcoreEvas, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
bool
_Window::IsActivationEnabled(void)
{
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ return IsFocusable();
+ }
+
_EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
SysTryReturn(NID_UI, pEcoreEvas, true, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
NativeWindowHandle
_Window::GetNativeHandle(void) const
{
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ return 0;
+ }
+
_RootVisualElement* pRootVE = GetRootVisualElement();
SysAssert(pRootVE);
void
_Window::OnFocusableStateChanged(bool focusalbeState)
{
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ return;
+ }
+
SetActivationEnabled(focusalbeState);
}
-
bool
_Window::OnNotifiedN(const _Control& source, IList* pArgs)
{
result
_Window::OnBoundsChanging(const FloatRectangle& bounds)
{
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ return E_SUCCESS;
+ }
+
_EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
SysTryReturn(NID_UI, pEcoreEvas, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
result
_Window::OnAttachingToMainTree(const _Control* pParent)
{
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ return E_SUCCESS;
+ }
+
_EflLayer* pLayer = static_cast<_EflLayer*>(__pRootVisualElement->GetNativeLayer());
SysAssert(pLayer);
SetVisibleState(true);
result
_Window::OnDetachingFromMainTree(void)
{
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ return E_SUCCESS;
+ }
+
_EflLayer* pLayer = static_cast<_EflLayer*>(__pRootVisualElement->GetNativeLayer());
SysAssert(pLayer);
pLayer->SetShowState(false);
bool
_Window::IsLayoutChangable(void) const
{
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ return true;
+ }
+
return false;
}
__rotation = rotation;
}
+_WindowType
+_Window::GetWindowType(void)
+{
+ return __type;
+}
+
void
_Window::OnChangeLayout(_ControlOrientation orientation)
{
result
_Window::SetZOrderGroup(int windowZOrderGroup)
{
+ if (__type == _WINDOW_TYPE_VE)
+ {
+ return E_SUCCESS;
+ }
+
_EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
if (windowZOrderGroup == WINDOW_Z_ORDER_GROUP_HIGHEST)
__pOwner = &owner;
- r = CreateRootVisualElement(_WINDOW_TYPE_SUB);
+ r = CreateRootVisualElement(_WINDOW_TYPE_VE);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
SetActivationEnabled(false);
return E_SYSTEM;
}
-result
-_SliderOverlay::OnBoundsChanging(const FloatRectangle& bounds)
-{
- _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
- SysTryReturn(NID_UI, pEcoreEvas, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occurred.");
-
- FloatRectangle newBounds( bounds.x, bounds.y , __overlayWidth, bounds.height);
-
- pEcoreEvas->SetWindowBounds(*GetRootWindow(), newBounds);
- result r = GetLastResult();
- SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage);
- return r;
-}
-
bool
_SliderOverlay::IsActivatedOnOpen(void) const
{