menufw/menufwui/matrixmenu/src/mmappui.cpp
branchRCL_3
changeset 9 f966699dea19
parent 5 c743ef5928ba
child 30 b8fae6b8a148
equal deleted inserted replaced
5:c743ef5928ba 9:f966699dea19
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Application UI class
    14 * Description:  Application UI class
    15 *  Version     : %version: MM_176.1.28.1.61 % << Don't touch! Updated by Synergy at check-out.
    15 *  Version     : %version: MM_176.1.28.1.65 % << Don't touch! Updated by Synergy at check-out.
    16 *  Version     : %version: MM_176.1.28.1.61 % << Don't touch! Updated by Synergy at check-out.
    16 *  Version     : %version: MM_176.1.28.1.65 % << Don't touch! Updated by Synergy at check-out.
    17 *
    17 *
    18 */
    18 */
    19 
    19 
    20 #include <e32base.h>
    20 #include <e32base.h>
    21 #include <e32cmn.h>
    21 #include <e32cmn.h>
   609                 {
   609                 {
   610                 DEBUG(("_MM_:CMmAppUi::ForwardEventToHNL Foreground"));
   610                 DEBUG(("_MM_:CMmAppUi::ForwardEventToHNL Foreground"));
   611                 GfxTransEffect::BeginFullScreen(
   611                 GfxTransEffect::BeginFullScreen(
   612                      effect, rect,
   612                      effect, rect,
   613                      AknTransEffect::EParameterType,
   613                      AknTransEffect::EParameterType,
   614                      AknTransEffect::GfxTransParam( appUid ) );
   614                      AknTransEffect::GfxTransParam( appUid , KUidMatrixMenuApp ) );
   615                 }
   615                 }
   616             }
   616             }
   617 
   617 
   618         iHNInterface->TriggerHnEventL( aEvent, id, aEventParams );
   618         iHNInterface->TriggerHnEventL( aEvent, id, aEventParams );
   619         MMPERF(("Handling event - END"));
   619         MMPERF(("Handling event - END"));
  1129                 }
  1129                 }
  1130 
  1130 
  1131             iCurrentContainer->HandleItemRemovalL();
  1131             iCurrentContainer->HandleItemRemovalL();
  1132             iCurrentContainer->CancelDragL( EFalse );
  1132             iCurrentContainer->CancelDragL( EFalse );
  1133 
  1133 
  1134             if( typeCurr == EItemTypeParentFolder )
       
  1135                 {
       
  1136                 StartLayoutSwitchFullScreen( EMenuCloseFolderEffect );
       
  1137                 }
       
  1138             else
       
  1139                 {
       
  1140                 StartLayoutSwitchFullScreen( EMenuOpenFolderEffect );
       
  1141                 }
       
  1142             iHNInterface->TriggerHnEventL( KKeyIdMoveInto, itemId, eventParameters );
  1134             iHNInterface->TriggerHnEventL( KKeyIdMoveInto, itemId, eventParameters );
  1143             iMakeHightlightedItemFullyVisible = ETrue;
  1135             iMakeHightlightedItemFullyVisible = ETrue;
  1144             }
  1136             }
  1145         else if ( iIdDragged == itemId )
  1137         else if ( iIdDragged == itemId )
  1146             {
  1138             {
  2831     CLiwGenericParamList* paramList = CLiwGenericParamList::NewLC();
  2823     CLiwGenericParamList* paramList = CLiwGenericParamList::NewLC();
  2832     TLiwGenericParam command(KHnRequest, TLiwVariant( KRefreshIcons));
  2824     TLiwGenericParam command(KHnRequest, TLiwVariant( KRefreshIcons));
  2833     paramList->AppendL(command);
  2825     paramList->AppendL(command);
  2834     HandleRequestL(*paramList);
  2826     HandleRequestL(*paramList);
  2835     CleanupStack::PopAndDestroy(paramList);
  2827     CleanupStack::PopAndDestroy(paramList);
       
  2828     if( iCurrentContainer )
       
  2829         {
       
  2830         iCurrentContainer->HandleResourceChange( KAknsMessageSkinChange );
       
  2831         }
  2836     }
  2832     }
  2837 
  2833 
  2838 // ---------------------------------------------------------------------------
  2834 // ---------------------------------------------------------------------------
  2839 //
  2835 //
  2840 // ---------------------------------------------------------------------------
  2836 // ---------------------------------------------------------------------------
  2955 			iCurrentContainer->Widget()->View()->DrawItem(
  2951 			iCurrentContainer->Widget()->View()->DrawItem(
  2956 							  iCurrentContainer->Widget()->CurrentItemIndex() ) ;
  2952 							  iCurrentContainer->Widget()->CurrentItemIndex() ) ;
  2957 			}
  2953 			}
  2958 		if( IsEditMode() && iCurrentContainer->IsDraggable() )
  2954 		if( IsEditMode() && iCurrentContainer->IsDraggable() )
  2959 			{
  2955 			{
  2960 			iCurrentContainer->CancelDragL( EFalse );
  2956 			HandleDragStopL( iCurrentContainer->GetHighlight() );
  2961 			iCurrentContainer->DrawNow();
  2957 			iCurrentContainer->DrawNow();
  2962 			}
  2958 			}
  2963 		iCurrentContainer->SetHasFocusL( EFalse );
  2959 		iCurrentContainer->SetHasFocusL( EFalse );
  2964 		}
  2960 		}
  2965 	if ( iCurrentSuiteModel )
  2961 	if ( iCurrentSuiteModel )
  2988 		{
  2984 		{
  2989 		MAknsSkinInstance* skinInstance = AknsUtils::SkinInstance();
  2985 		MAknsSkinInstance* skinInstance = AknsUtils::SkinInstance();
  2990 		if (skinInstance && !skinInstance->IsUpdateInProgress())
  2986 		if (skinInstance && !skinInstance->IsUpdateInProgress())
  2991 			{
  2987 			{
  2992 			RefreshIconsL();
  2988 			RefreshIconsL();
       
  2989 
  2993 			}
  2990 			}
  2994 		}
  2991 		}
  2995 	}
  2992 	}
  2996 
  2993 
  2997 // ---------------------------------------------------------------------------
  2994 // ---------------------------------------------------------------------------