idlehomescreen/xmluirendering/renderingplugins/xnpopupfactory/src/xnpopupadapter.cpp
equal
deleted
inserted
replaced
24 #include "xndompropertyvalue.h" |
24 #include "xndompropertyvalue.h" |
25 #include "xndomlist.h" |
25 #include "xndomlist.h" |
26 #include "xncomponent.h" |
26 #include "xncomponent.h" |
27 |
27 |
28 #include <AknUtils.h> |
28 #include <AknUtils.h> |
|
29 #include <gfxtranseffect/gfxtranseffect.h> |
|
30 #include <akntransitionutils.h> |
29 |
31 |
30 const TInt KStartDelay = 1000000; |
32 const TInt KStartDelay = 1000000; |
31 const TInt KDisplayTime = 0; |
33 const TInt KDisplayTime = 0; |
32 |
34 |
33 // ----------------------------------------------------------------------------- |
35 // ----------------------------------------------------------------------------- |
293 } |
295 } |
294 |
296 |
295 CXnControlAdapter::ConstructL(aNode); |
297 CXnControlAdapter::ConstructL(aNode); |
296 iNode = &aNode; |
298 iNode = &aNode; |
297 iAppUi = CCoeEnv::Static()->AppUi(); |
299 iAppUi = CCoeEnv::Static()->AppUi(); |
|
300 |
|
301 GfxTransEffect::Register( this, KGfxPreviewPopupControlUid ); |
298 } |
302 } |
299 |
303 |
300 // ----------------------------------------------------------------------------- |
304 // ----------------------------------------------------------------------------- |
301 // CXnPopupAdapter::CXnPopupAdapter |
305 // CXnPopupAdapter::CXnPopupAdapter |
302 // C++ default constructor |
306 // C++ default constructor |
312 // ----------------------------------------------------------------------------- |
316 // ----------------------------------------------------------------------------- |
313 // |
317 // |
314 CXnPopupAdapter::~CXnPopupAdapter() |
318 CXnPopupAdapter::~CXnPopupAdapter() |
315 { |
319 { |
316 delete iActiveObject; |
320 delete iActiveObject; |
|
321 GfxTransEffect::Deregister( this ); |
317 } |
322 } |
318 |
323 |
319 // ----------------------------------------------------------------------------- |
324 // ----------------------------------------------------------------------------- |
320 // CXnPopupAdapter::ShowPopupL |
325 // CXnPopupAdapter::ShowPopupL |
321 // Shows the popup |
326 // Shows the popup |
539 rect.Move(contentRect.iBr.iX - rect.iBr.iX, 0); |
544 rect.Move(contentRect.iBr.iX - rect.iBr.iX, 0); |
540 } |
545 } |
541 this->SetRect( rect ); |
546 this->SetRect( rect ); |
542 } |
547 } |
543 |
548 |
|
549 // ----------------------------------------------------------------------------- |
|
550 // CXnPopupAdapter::MakeVisible |
|
551 // |
|
552 // ----------------------------------------------------------------------------- |
|
553 // |
|
554 void CXnPopupAdapter::MakeVisible( TBool aVisible ) |
|
555 { |
|
556 if ( aVisible == IsVisible() ) |
|
557 { |
|
558 return; |
|
559 } |
|
560 |
|
561 if ( aVisible ) |
|
562 { |
|
563 GfxTransEffect::Begin( this, KGfxControlAppearAction ); |
|
564 } |
|
565 else |
|
566 { |
|
567 GfxTransEffect::Begin( this, KGfxControlDisappearAction ); |
|
568 } |
|
569 |
|
570 CCoeControl::MakeVisible( aVisible ); |
|
571 |
|
572 GfxTransEffect::SetDemarcation( this, iPosition ); |
|
573 GfxTransEffect::End( this ); |
|
574 } |
|
575 |
544 // End of File |
576 // End of File |