Revision: 200951
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 07 Jan 2010 12:54:49 +0200
changeset 1 b5888e2aa472
parent 0 8c5d936e5675
child 2 051d34a3f367
Revision: 200951 Kit: 201001
gssettingsuis/Gs/group/bld.inf
profilesservices/MediaFileList/Inc/mediafiledialog.h
profilesservices/MediaFileList/Src/mediafiledialog.cpp
profilesservices/MediaFileList/group/MediaFileList.mmp
--- a/gssettingsuis/Gs/group/bld.inf	Thu Dec 17 08:52:52 2009 +0200
+++ b/gssettingsuis/Gs/group/bld.inf	Thu Jan 07 12:54:49 2010 +0200
@@ -27,14 +27,6 @@
 
     PRJ_MMPFILES
 
-    //gnumakefile icons_dc.mk
-
-    #ifdef __SCALABLE_ICONS
-        gnumakefile icons_aif_scalable_dc.mk
-    //#else
-        //gnumakefile icons_aif_bitmaps_dc.mk
-    #endif //__SCALABLE_ICONS
-
     ../group/GS.mmp
 
 
--- a/profilesservices/MediaFileList/Inc/mediafiledialog.h	Thu Dec 17 08:52:52 2009 +0200
+++ b/profilesservices/MediaFileList/Inc/mediafiledialog.h	Thu Jan 07 12:54:49 2010 +0200
@@ -294,8 +294,10 @@
 		void ShowErrorNoteL( TInt aError );
     	void ShowPreviewErrorNoteL( TInt aError, TInt aMediaType );
 		void DeleteMenuItem( CEikMenuPane* aMenuPane, TInt aCommandId );
-		CGulIcon* IconL( TAknsItemID aId, const TDesC& aFileName,
-		                 TInt aFileIndex, TInt aFileMaskIndex );
+		CGulIcon* IconL(TAknsItemID aId, const TDesC& aFileName, TInt aFileIndex,
+			TInt aFileMaskIndex);
+		CGulIcon* IconL(TAknsItemID aId, const TDesC& aFileName, TInt aFileIndex,
+			TInt aFileMaskIndex, TAknsQsnIconColorsIndex colorIndex);
 		static TInt CloseDialog( TAny *aObj );
 		void CloseDialogWithDelayL();
 		
--- a/profilesservices/MediaFileList/Src/mediafiledialog.cpp	Thu Dec 17 08:52:52 2009 +0200
+++ b/profilesservices/MediaFileList/Src/mediafiledialog.cpp	Thu Jan 07 12:54:49 2010 +0200
@@ -1105,12 +1105,12 @@
     // memory card icon
     icons->AppendL( IconL( KAknsIIDQgnIndiMmcAdd, iIconFileName,
                            EMbmMediafilelistQgn_indi_mmc_add,
-                           EMbmMediafilelistQgn_indi_mmc_add_mask ) );
+                           EMbmMediafilelistQgn_indi_mmc_add_mask, EAknsCIQsnIconColorsCG13 ) );
 
      // mass storage icon
     icons->AppendL( IconL( KAknsIIDQgnPropLinkEmbdSmall, iIconFileName,
                            EMbmMediafilelistQgn_indi_fmgr_ms_add,
-                           EMbmMediafilelistQgn_indi_fmgr_ms_add_mask ) );
+                           EMbmMediafilelistQgn_indi_fmgr_ms_add_mask,EAknsCIQsnIconColorsCG13 ) );
 
     // empty icon
     icons->AppendL( IconL( KAknsIIDQgnPropEmpty, KAvkonBitmapFile,
@@ -1145,6 +1145,31 @@
 	}
 
 
+// -----------------------------------------------------------------------------
+// CMediaFileDialog::IconL
+// For MMC icon and Mass Storage icon
+// -----------------------------------------------------------------------------
+//
+CGulIcon* CMediaFileDialog::IconL(TAknsItemID aId, const TDesC& aFileName,
+                                   TInt aFileIndex, TInt aFileMaskIndex, TAknsQsnIconColorsIndex colorIndex)
+	{
+	TRgb defaultColour(KRgbBlack);
+	CFbsBitmap* bmap = NULL;
+	CFbsBitmap* mask = NULL;
+
+	AknsUtils::GetCachedColor(AknsUtils::SkinInstance(), defaultColour, KAknsIIDQsnIconColors,
+			colorIndex);
+	AknsUtils::CreateColorIconLC(AknsUtils::SkinInstance(), KAknsIIDQgnIndiMmcAdd,
+			KAknsIIDQsnIconColors, colorIndex, bmap, mask,
+			aFileName, aFileIndex, aFileMaskIndex, defaultColour);
+
+	CGulIcon* icon = CGulIcon::NewL(bmap, mask);
+	icon->SetBitmapsOwnedExternally(EFalse);
+	CleanupStack::Pop(2);
+	return icon;
+	}
+
+
 // ----------------------------------------------------------------------------
 // CMediaFileDialog::ShowContextMenuL
 // 
@@ -3065,7 +3090,7 @@
         return;
         }
 
-    if ( aEventType == EEventItemDoubleClicked || aEventType == EEventEnterKeyPressed )
+    if ( aEventType == EEventItemSingleClicked  || aEventType == EEventEnterKeyPressed )
         {
         TBool closeDialog = HandleOKL( EAttrDoubleClicked );
         
--- a/profilesservices/MediaFileList/group/MediaFileList.mmp	Thu Dec 17 08:52:52 2009 +0200
+++ b/profilesservices/MediaFileList/group/MediaFileList.mmp	Thu Jan 07 12:54:49 2010 +0200
@@ -53,7 +53,7 @@
 
 USERINCLUDE    ../Inc
 APP_LAYER_SYSTEMINCLUDE
-SYSTEMINCLUDE /epoc32/include/mmf/common
+SYSTEMINCLUDE /epoc32/include/mmf/common /epoc32/include/platform/mmf/common
 
 LIBRARY   avkon.lib
 LIBRARY   bafl.lib