idlehomescreen/xmluirendering/renderingplugins/xnpopupfactory/src/xnpopupadapter.cpp
--- a/idlehomescreen/xmluirendering/renderingplugins/xnpopupfactory/src/xnpopupadapter.cpp Fri Feb 19 22:42:37 2010 +0200
+++ b/idlehomescreen/xmluirendering/renderingplugins/xnpopupfactory/src/xnpopupadapter.cpp Fri Mar 12 15:41:49 2010 +0200
@@ -26,6 +26,8 @@
#include "xncomponent.h"
#include <AknUtils.h>
+#include <gfxtranseffect/gfxtranseffect.h>
+#include <akntransitionutils.h>
const TInt KStartDelay = 1000000;
const TInt KDisplayTime = 0;
@@ -295,6 +297,8 @@
CXnControlAdapter::ConstructL(aNode);
iNode = &aNode;
iAppUi = CCoeEnv::Static()->AppUi();
+
+ GfxTransEffect::Register( this, KGfxPreviewPopupControlUid );
}
// -----------------------------------------------------------------------------
@@ -314,6 +318,7 @@
CXnPopupAdapter::~CXnPopupAdapter()
{
delete iActiveObject;
+ GfxTransEffect::Deregister( this );
}
// -----------------------------------------------------------------------------
@@ -541,4 +546,31 @@
this->SetRect( rect );
}
+// -----------------------------------------------------------------------------
+// CXnPopupAdapter::MakeVisible
+//
+// -----------------------------------------------------------------------------
+//
+void CXnPopupAdapter::MakeVisible( TBool aVisible )
+ {
+ if ( aVisible == IsVisible() )
+ {
+ return;
+ }
+
+ if ( aVisible )
+ {
+ GfxTransEffect::Begin( this, KGfxControlAppearAction );
+ }
+ else
+ {
+ GfxTransEffect::Begin( this, KGfxControlDisappearAction );
+ }
+
+ CCoeControl::MakeVisible( aVisible );
+
+ GfxTransEffect::SetDemarcation( this, iPosition );
+ GfxTransEffect::End( this );
+ }
+
// End of File