uifw/AvKon/src/AknViewAppUi.cpp
branchRCL_3
changeset 9 aabf2c525e0f
parent 0 2f259fa3e83a
child 23 3d340a0166ff
equal deleted inserted replaced
4:8ca85d2f0db7 9:aabf2c525e0f
    25 #include <eikcolib.h>
    25 #include <eikcolib.h>
    26 #include <eikapp.h>
    26 #include <eikapp.h>
    27 #include <aknclearer.h>
    27 #include <aknclearer.h>
    28 #include <AknUtils.h>
    28 #include <AknUtils.h>
    29 #include <akntoolbar.h>
    29 #include <akntoolbar.h>
       
    30 #include <akntranseffect.h>
       
    31 #include <centralrepository.h>
       
    32 
       
    33 
    30 #include "aknview.h"
    34 #include "aknview.h"
    31 #include "aknshut.h"
    35 #include "aknshut.h"
    32 #include "aknenv.h"
    36 #include "aknenv.h"
    33 #include "AknPanic.h"
    37 #include "AknPanic.h"
    34 #ifdef RD_SPLIT_VIEW
    38 #ifdef RD_SPLIT_VIEW
    41 #include "aknViewAppUi.h"
    45 #include "aknViewAppUi.h"
    42 
    46 
    43 // CONSTANTS
    47 // CONSTANTS
    44 const TInt KAknAppUiViewsGranularity = 1;
    48 const TInt KAknAppUiViewsGranularity = 1;
    45 const TInt KAknViewAsyncPriority = EActivePriorityRedrawEvents + 10;
    49 const TInt KAknViewAsyncPriority = EActivePriorityRedrawEvents + 10;
       
    50 const TUid KCRUidThemes = { 0x102818E8 }; // defined in pslninternalcrkeys.h
       
    51 const TUint32 KThemesTransitionEffects = 0x00000009; //defined in pslninternalcrkeys.h
       
    52 
       
    53 
    46 #ifdef RD_SPLIT_VIEW
    54 #ifdef RD_SPLIT_VIEW
    47 const TInt KAknSplitViewSize = 2;
    55 const TInt KAknSplitViewSize = 2;
    48 
    56 
    49 // MODULE DATA STRUCTURES
    57 // MODULE DATA STRUCTURES
    50 enum TAknViewAppUiFlags
    58 enum TAknViewAppUiFlags
   227 #ifdef RD_SPLIT_VIEW
   235 #ifdef RD_SPLIT_VIEW
   228 	iExtension->iNavigator = new ( ELeave ) CAknViewNavigator( this );
   236 	iExtension->iNavigator = new ( ELeave ) CAknViewNavigator( this );
   229 	AddToStackL( iExtension->iNavigator, ECoeStackPriorityDefault - 1, ECoeStackFlagRefusesFocus );
   237 	AddToStackL( iExtension->iNavigator, ECoeStackPriorityDefault - 1, ECoeStackFlagRefusesFocus );
   230 #endif // RD_SPLIT_VIEW
   238 #endif // RD_SPLIT_VIEW
   231 	
   239 	
       
   240 	
       
   241 	// disable CAknLocalScreenClearer when fullscreen effect is on
       
   242 	CRepository *uiThemeCenRep =  CRepository::NewL( KCRUidThemes );
       
   243 	CleanupStack::PushL( uiThemeCenRep );
       
   244 	TInt effectValue = 0;
       
   245 	TBool themeEffectDisabled = ETrue;
       
   246 	if ( KErrNone == uiThemeCenRep->Get( KThemesTransitionEffects, effectValue ) )
       
   247         {
       
   248         themeEffectDisabled = effectValue & AknTransEffect::EFullScreenTransitionsOff;
       
   249         }
       
   250 
   232 	if ( iEikonEnv->RootWin().OrdinalPosition() == 0 && // only clear the window for foreground apps
   251 	if ( iEikonEnv->RootWin().OrdinalPosition() == 0 && // only clear the window for foreground apps
   233 	     iExtension->iUseDefaultScreenClearer )
   252 	     iExtension->iUseDefaultScreenClearer && themeEffectDisabled )
   234 		{
   253 		{
   235 		iClearer = CAknLocalScreenClearer::NewL( ETrue );
   254 		iClearer = CAknLocalScreenClearer::NewL( ETrue );
   236 		}
   255 		}
       
   256 	
       
   257 	CleanupStack::PopAndDestroy( uiThemeCenRep ); // uiThemeCenRep
       
   258 	
   237 	}
   259 	}
   238 
   260 
   239 // -----------------------------------------------------------------------------
   261 // -----------------------------------------------------------------------------
   240 // CAknViewAppUi::~CAknViewAppUi
   262 // CAknViewAppUi::~CAknViewAppUi
   241 // Destructor.
   263 // Destructor.