extras/calcsoft/src/CalcEnv.cpp
changeset 0 3ee3dfdd8d69
equal deleted inserted replaced
-1:000000000000 0:3ee3dfdd8d69
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0""
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Global data class, CCalcAppEnv, derived from CBase
       
    15 *                This class maintain global data. e.g font, bitmap.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <barsread.h> // resource reader
       
    23 #include <eikapp.h>
       
    24 #include <eikenv.h>
       
    25 #include <eikrutil.h> 
       
    26 #include <fbs.h>    // Fonts
       
    27 #include <AknUtils.h>
       
    28 
       
    29 //Extended Icon Skin Implementation
       
    30 #include  <AknsConstants.h>
       
    31 #include <AknsUtils.h>
       
    32 #include <AknsItemID.h>
       
    33 
       
    34 #include <Calcsoft.rsg>
       
    35 #include <calcsoft.mbg>
       
    36 #include "CalcEnv.h"
       
    37 #include "CalcAppUi.h"
       
    38 
       
    39 //  LOCAL CONSTANTS AND MACROS  
       
    40 
       
    41 // ================= MEMBER FUNCTIONS =======================
       
    42 // Two-phased constructor.
       
    43 CCalcAppEnv* CCalcAppEnv::NewL
       
    44 (CCalcAppUi* aAppUi)    
       
    45 	{
       
    46 	CCalcAppEnv* self = new (ELeave) CCalcAppEnv(aAppUi);
       
    47 	CleanupStack::PushL(self);
       
    48 	self->ConstructAppEnvL();
       
    49 	CleanupStack::Pop(self);
       
    50 	// Set to TLS(Thread Local Storage).
       
    51 	UserSvr::DllSetTls(67338721, self); 
       
    52 
       
    53 	return self;     	
       
    54 	}
       
    55 
       
    56 void CCalcAppEnv::InitializeAppUI(CCalcAppUi* aAppUi)
       
    57 	{
       
    58 	iAppUi = aAppUi;
       
    59 	}
       
    60 
       
    61 
       
    62 // Destructor
       
    63 CCalcAppEnv::~CCalcAppEnv()
       
    64 	{
       
    65 	// Text
       
    66 	delete iEditorOperArray;
       
    67 	delete iOutSheetOperArray;
       
    68 #ifdef __SCALABLE_ICONS
       
    69 	delete  iResultsLineBitmap;
       
    70 #endif
       
    71 
       
    72 
       
    73 	// Bitmap
       
    74     	delete iDisplaySideLBitmap;
       
    75 		delete iDisplayCenterBitmap;
       
    76 		delete iDisplaySideRBitmap;
       
    77 		
       
    78 	delete iPaperBitmap;
       
    79 	for(TInt Cnt=0;Cnt<9;Cnt++)
       
    80 		{
       
    81 	delete iScalablePaperBitmap[Cnt];
       
    82 		} 
       
    83     
       
    84 	// font 
       
    85 	// free font for number and operator
       
    86 	CBitmapDevice* device = iEnv->ScreenDevice();
       
    87 	device->ReleaseFont(iNumberShadowFont);
       
    88 	device->ReleaseFont(iNumberFont);
       
    89 	device->ReleaseFont(iOperatorShadowFont);
       
    90 	device->ReleaseFont(iOperatorFont);
       
    91 	device->ReleaseFont(iOutSheetOperatorFont);
       
    92 
       
    93    
       
    94 	//Extended Icon Skin Implementation
       
    95 		iAknsConstArray.Close();
       
    96 		iAknsConstArrayForPaper.Close();
       
    97 	}
       
    98 
       
    99 
       
   100 // ---------------------------------------------------------
       
   101 // CCalcAppEnv::Static
       
   102 // Return value of thread-local storage.
       
   103 // This value is set pointer of CCalcAppEnc class in CCalcAppEnv::NewL().  
       
   104 // (other items were commented in a header).  
       
   105 // ---------------------------------------------------------
       
   106 //
       
   107 CCalcAppEnv* CCalcAppEnv::Static()
       
   108 	{
       
   109 	return REINTERPRET_CAST(CCalcAppEnv*, UserSvr::DllTls(67338721)); 
       
   110 	}
       
   111 
       
   112 
       
   113 // C++ default constructor can NOT contain any code, that
       
   114 // might leave.
       
   115 //
       
   116 
       
   117 CCalcAppEnv::CCalcAppEnv()
       
   118 	{
       
   119 	}
       
   120 	
       
   121 
       
   122 CCalcAppEnv::CCalcAppEnv
       
   123 (CCalcAppUi* aAppUi)  
       
   124 : iAppUi(aAppUi)
       
   125 	{
       
   126 	}
       
   127 
       
   128 // Second-phase constructor
       
   129 void CCalcAppEnv::ConstructAppEnvL()
       
   130 	{
       
   131 	iEnv = CEikonEnv::Static();
       
   132 
       
   133 	// Read char code for operator.
       
   134 	TResourceReader editOperRr;
       
   135 	iEnv ->CreateResourceReaderLC(
       
   136 		editOperRr, R_CALC_EDITOR_OPERATOR_ARRAY);
       
   137 	TResourceReader osheetOperRr;
       
   138 	iEnv->CreateResourceReaderLC(
       
   139 		osheetOperRr, R_CALC_OUTSHEET_OPERATOR_ARRAY);
       
   140 
       
   141 	editOperRr.ReadInt16(); // Read count of items
       
   142 	osheetOperRr.ReadInt16(); // Read count of items
       
   143 
       
   144 	iEditorOperArray = 
       
   145 		new (ELeave) CDesCArrayFlat(KCalcCountOfOperatorType);
       
   146 	iOutSheetOperArray = 
       
   147 		new (ELeave) CDesCArrayFlat(KCalcCountOfOperatorType);
       
   148 
       
   149 	TChar editorOper;
       
   150 	TChar outSheetOper;
       
   151 
       
   152 	for (TInt cnt(0); cnt < KCalcCountOfOperatorType; cnt++)
       
   153 		{
       
   154 		editorOper = editOperRr.ReadUint16();
       
   155 		outSheetOper = osheetOperRr.ReadUint16();
       
   156 		TBuf<1> editorOperBuf;
       
   157 		TBuf<1> outSheetOperBuf; 
       
   158 		editorOperBuf.Append(editorOper);
       
   159 		outSheetOperBuf.Append(outSheetOper);
       
   160 		iEditorOperArray->AppendL(editorOperBuf); 
       
   161 		iOutSheetOperArray->AppendL(outSheetOperBuf);
       
   162 		}
       
   163 
       
   164 	CleanupStack::PopAndDestroy(2); // editOperRr, osheetOperRr
       
   165 
       
   166 
       
   167 	// TLocale::DecimalSeparator() must be used when decimal separator is get.  
       
   168 	TLocale locale;
       
   169 	iDecimalSeparator = locale.DecimalSeparator();
       
   170 
       
   171 	TBuf<1> buf;
       
   172 	iEnv->ReadResourceL(buf, R_CALC_MINUS_INDICATOR);
       
   173 	iMinusIndicator = buf[0];
       
   174 	iEnv->ReadResourceL(iMemoryIndicator, R_CALC_STTUS_SAVED_TO_MEM);
       
   175 	iEnv->ReadResourceL(iMemoryIndicatorShadow, R_CALC_STTUS_SAVED_TO_MEM_SHA);
       
   176 
       
   177 	CEikApplication* app = iEnv->EikAppUi()->Application();
       
   178 	TFileName bmpPath(app->BitmapStoreName());
       
   179 
       
   180 	MAknsSkinInstance* skin = AknsUtils::SkinInstance();
       
   181 	CFbsBitmap* bitmap = NULL;
       
   182 	CFbsBitmap* mask	= NULL;
       
   183 
       
   184 	//Ext Icon Skinning implementation for Display
       
   185 	
       
   186 	AknsUtils::CreateIconL(skin,KAknsIIDQsnFrCalcDisplaySideL,bitmap,mask,bmpPath,
       
   187 		EMbmCalcsoftQsn_fr_calc_display_side_l, EMbmCalcsoftQsn_fr_calc_display_side_l_mask);
       
   188 		
       
   189 		iDisplaySideLBitmap = CGulIcon::NewL(bitmap, mask);
       
   190 			bitmap = NULL;
       
   191 			mask	= NULL;
       
   192 		
       
   193 		
       
   194 	AknsUtils::CreateIconL(skin,KAknsIIDQsnFrCalcDisplayCenter,bitmap,mask,bmpPath,
       
   195 		EMbmCalcsoftQsn_fr_calc_display_center, EMbmCalcsoftQsn_fr_calc_display_center_mask);
       
   196 			
       
   197 		iDisplayCenterBitmap = CGulIcon::NewL(bitmap, mask);
       
   198 			bitmap = NULL;
       
   199 			mask	= NULL;
       
   200 		
       
   201 	AknsUtils::CreateIconL(skin,KAknsIIDQsnFrCalcDisplaySideR,bitmap,mask,bmpPath,
       
   202 		EMbmCalcsoftQsn_fr_calc_display_side_r, EMbmCalcsoftQsn_fr_calc_display_side_r_mask);
       
   203 			
       
   204 		iDisplaySideRBitmap = CGulIcon::NewL(bitmap, mask);
       
   205 
       
   206 	//Ext Icon Skinning implementation for Paper
       
   207 	bitmap = NULL;
       
   208 	mask	= NULL;
       
   209 	AknsUtils::CreateIconL(skin,KAknsIIDQgnGrafCalcPaper,bitmap,mask,bmpPath,
       
   210 		EMbmCalcsoftQgn_graf_calc_paper,EMbmCalcsoftQgn_graf_calc_paper_mask);
       
   211 	iPaperBitmap = CGulIcon::NewL(bitmap, mask);
       
   212 
       
   213 	bitmap = NULL;
       
   214 	mask	= NULL;
       
   215 
       
   216 #ifdef __SCALABLE_ICONS
       
   217 	AknsUtils::CreateIconL(skin,KAknsIIDQgnGrafCalcResultsLine, bitmap,mask,bmpPath,
       
   218 		EMbmCalcsoftQgn_graf_calc_results_line,EMbmCalcsoftQgn_graf_calc_results_line_mask);
       
   219 	iResultsLineBitmap = CGulIcon::NewL(bitmap, mask);
       
   220 #endif
       
   221 	bitmap = NULL;
       
   222 	mask	= NULL; 
       
   223 	iIsSkinChanged = EFalse;
       
   224 	UpdateAknConstArrayforPaper();
       
   225 	LoadPaperBitmapsL();
       
   226 
       
   227 	UpdateAknConstArray();
       
   228 
       
   229 	LoadFuncMapBitmapL();
       
   230 
       
   231 
       
   232 	}
       
   233 
       
   234 
       
   235 // ---------------------------------------------------------
       
   236 // CCalcAppEnv::LoadPaperBitmapsL
       
   237 // Load bitmaps for Paper Pane.  
       
   238 // (other items were commented in a header).  
       
   239 // ---------------------------------------------------------
       
   240 //
       
   241  void CCalcAppEnv::LoadPaperBitmapsL()
       
   242 	{
       
   243 	CEikApplication* app = iEnv->EikAppUi()->Application();
       
   244 	TFileName bmpPath(app->BitmapStoreName());
       
   245 	TInt startBitmapId = EMbmCalcsoftQsn_fr_calc_paper_center;
       
   246 	TInt startMaskId = EMbmCalcsoftQsn_fr_calc_paper_center_mask;
       
   247 	TInt startIndex=0;
       
   248 	TInt count = 9;
       
   249 	TInt bmpId(startBitmapId);
       
   250 	TInt maskId(startMaskId);
       
   251 
       
   252 	MAknsSkinInstance* skin = AknsUtils::SkinInstance();
       
   253 	CFbsBitmap* bitmap = NULL;
       
   254 	CFbsBitmap* mask	= NULL; 
       
   255 
       
   256 	for (TInt cnt(startIndex); cnt < (count + startIndex); cnt++)
       
   257 		{
       
   258 
       
   259 		AknsUtils::CreateIconL(skin, (iAknsConstArrayForPaper)[cnt],bitmap,mask,
       
   260 					bmpPath, bmpId, maskId);
       
   261 
       
   262 		if(!iIsSkinChanged)
       
   263 			{
       
   264 			iScalablePaperBitmap[cnt] = CGulIcon::NewL(bitmap, mask);
       
   265 			}
       
   266 		else
       
   267 			{
       
   268 			iScalablePaperBitmap[cnt]->SetBitmap(bitmap);
       
   269 			iScalablePaperBitmap[cnt]->SetMask(mask);
       
   270 			}
       
   271 		bmpId = bmpId + 2;
       
   272 		maskId = maskId + 2;
       
   273 		}
       
   274 	}
       
   275 
       
   276 // ---------------------------------------------------------
       
   277 // CCalcAppEnv::LoadFuncMapBitmapL
       
   278 // Load bitmaps for FunctionMap SubPane.  
       
   279 // (other items were commented in a header).  
       
   280 // ---------------------------------------------------------
       
   281 //
       
   282 void CCalcAppEnv::LoadFuncMapBitmapL()
       
   283 	{
       
   284 
       
   285 	CEikApplication* app = iEnv->EikAppUi()->Application();
       
   286 	TFileName bmpPath(app->BitmapStoreName());
       
   287 
       
   288 	if(iIsSkinChanged) //EISkin2.6
       
   289 		{
       
   290 		MAknsSkinInstance* skin = AknsUtils::SkinInstance();
       
   291 		CFbsBitmap* bitmap = NULL;
       
   292 		CFbsBitmap* mask	= NULL;
       
   293 
       
   294 		//Ext Icon Skinning implementation for Display
       
   295 		
       
   296 	AknsUtils::CreateIconL(skin,KAknsIIDQsnFrCalcDisplaySideL,bitmap,mask,bmpPath,
       
   297 		EMbmCalcsoftQsn_fr_calc_display_side_l, EMbmCalcsoftQsn_fr_calc_display_side_l_mask);
       
   298 		
       
   299 		iDisplaySideLBitmap->SetBitmap(bitmap);
       
   300 		iDisplaySideLBitmap->SetMask(mask);
       
   301 		
       
   302 			bitmap = NULL;
       
   303 			mask	= NULL;
       
   304 		
       
   305 		
       
   306 	AknsUtils::CreateIconL(skin,KAknsIIDQsnFrCalcDisplayCenter,bitmap,mask,bmpPath,
       
   307 		EMbmCalcsoftQsn_fr_calc_display_center, EMbmCalcsoftQsn_fr_calc_display_center_mask);
       
   308 			
       
   309 		iDisplayCenterBitmap->SetBitmap(bitmap);
       
   310 		iDisplayCenterBitmap->SetMask(mask);
       
   311 		
       
   312 			bitmap = NULL;
       
   313 			mask	= NULL;
       
   314 		
       
   315 	AknsUtils::CreateIconL(skin,KAknsIIDQsnFrCalcDisplaySideR,bitmap,mask,bmpPath,
       
   316 		EMbmCalcsoftQsn_fr_calc_display_side_r, EMbmCalcsoftQsn_fr_calc_display_side_r_mask);
       
   317 			
       
   318 	iDisplaySideRBitmap->SetBitmap(bitmap);
       
   319 	iDisplaySideRBitmap->SetMask(mask);
       
   320 			
       
   321 		//Ext Icon Skinning implementation for Paper
       
   322 		bitmap = NULL;
       
   323 		mask	= NULL;
       
   324 		AknsUtils::CreateIconL(skin,KAknsIIDQgnGrafCalcPaper,bitmap,mask,bmpPath,
       
   325 			EMbmCalcsoftQgn_graf_calc_paper,EMbmCalcsoftQgn_graf_calc_paper_mask);
       
   326 	
       
   327 		iPaperBitmap->SetBitmap(bitmap);
       
   328 		iPaperBitmap->SetMask(mask);
       
   329 		bitmap = NULL;
       
   330 		mask	= NULL;
       
   331 #ifdef __SCALABLE_ICONS
       
   332 		AknsUtils::CreateIconL(skin,KAknsIIDQgnGrafCalcResultsLine, bitmap,mask,bmpPath,
       
   333 		EMbmCalcsoftQgn_graf_calc_results_line,EMbmCalcsoftQgn_graf_calc_results_line_mask);
       
   334 		
       
   335 		iResultsLineBitmap->SetBitmap(bitmap);
       
   336 		iResultsLineBitmap->SetMask(mask);
       
   337 #endif
       
   338 		bitmap = NULL;
       
   339 		mask	= NULL;
       
   340 		LoadPaperBitmapsL();
       
   341 		}
       
   342 
       
   343 	if(!iIsSkinChanged)
       
   344 	{
       
   345 		
       
   346 	
       
   347 		if( AknLayoutUtils::PenEnabled() )
       
   348 	    {
       
   349 	            
       
   350 	        
       
   351 	        LoadBitmapForFuncMapL(
       
   352 			EMbmCalcsoftQgn_indi_calc_cancel,
       
   353 	    	EMbmCalcsoftQgn_indi_calc_cancel_mask,
       
   354 		    0, 
       
   355 		    KCountOfButtonsTouch, iUnpressedButtonBmp, ENORMAL);
       
   356 	    }
       
   357 
       
   358 		else
       
   359 	    {
       
   360 	        LoadBitmapForFuncMapL(
       
   361 			EMbmCalcsoftQgn_indi_calc_button_plus,
       
   362 	    	EMbmCalcsoftQgn_indi_calc_button_plus_mask,
       
   363 		    0, 
       
   364 		    KCountOfButtons, iUnpressedButtonBmp, ENORMAL);
       
   365 		    
       
   366 		    LoadBitmapForFuncMapL(
       
   367 			EMbmCalcsoftQgn_indi_calc_button_plus_pressed,
       
   368 	    	EMbmCalcsoftQgn_indi_calc_button_plus_pressed_mask,
       
   369 		    0, 
       
   370 		    KCountOfButtons, iPressedButtonBmp, EPRESSED);
       
   371 		    
       
   372 	    }	
       
   373 	}
       
   374 
       
   375 	}
       
   376 
       
   377 // ---------------------------------------------------------
       
   378 // CCalcAppEnv::UpdateAknConstArrayForFuncmap
       
   379 // Update array for function map.  
       
   380 // (other items were commented in a header).  
       
   381 // ---------------------------------------------------------
       
   382 //
       
   383 void CCalcAppEnv::UpdateAknConstArrayForFuncMap()
       
   384     {
       
   385     UpdateAknConstArray();
       
   386     }
       
   387 	    
       
   388 // ---------------------------------------------------------
       
   389 // CCalcAppEnv::LoadBitmapForFuncMapButtonL
       
   390 // Load bitmaps for FunctionMap button.  
       
   391 // (other items were commented in a header).  
       
   392 // ---------------------------------------------------------
       
   393 //
       
   394 
       
   395 void CCalcAppEnv::LoadBitmapForFuncMapL(TInt aStartBitmapId, TInt aStartMaskId, TInt aStartIndex,
       
   396 	TInt aCount, CGulIcon* aBitmapArray[], ButtonType aType)
       
   397 	{
       
   398 	CEikApplication* app = iEnv->EikAppUi()->Application();
       
   399 	TFileName bmpPath(app->BitmapStoreName());
       
   400 	TInt bmpId(aStartBitmapId);
       
   401 	TInt maskId(aStartMaskId);
       
   402 
       
   403 	MAknsSkinInstance* skin = AknsUtils::SkinInstance();
       
   404 	CFbsBitmap* bitmap = NULL;
       
   405 	CFbsBitmap* mask	= NULL;
       
   406 
       
   407     // Get the text color of theme
       
   408     TRgb iconColor;
       
   409     AknsUtils::GetCachedColor( skin, iconColor, 
       
   410         KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG29 );
       
   411     
       
   412 	for (TInt cnt(aStartIndex); cnt < (aCount + aStartIndex); cnt++)
       
   413 		{
       
   414 		switch(aType)
       
   415 			{
       
   416 			case EPRESSED:
       
   417 				{
       
   418     				if(!AknLayoutUtils::PenEnabled() )
       
   419     				{
       
   420     				    AknsUtils::CreateIconL(skin,(iAknsConstArray)[cnt + KCalcCountOfButtonPressed],bitmap,mask,
       
   421     					bmpPath, bmpId, maskId);    
       
   422     					
       
   423     				}
       
   424 				}
       
   425 			break;
       
   426 			case ENORMAL:
       
   427 				{
       
   428 				    if(!AknLayoutUtils::PenEnabled() )
       
   429 				    {
       
   430 				        AknsUtils::CreateIconL(skin,(iAknsConstArray)[cnt],bitmap,mask,
       
   431 					    bmpPath, bmpId, maskId);        
       
   432 				    }
       
   433                     else
       
   434                     {
       
   435                         AknsUtils::CreateIconL(skin,(iAknsConstArray)[cnt]/*KAknsIIDQgnIndiCalcAdd*/,bitmap,mask,
       
   436                         bmpPath, bmpId, maskId);
       
   437                         // Set the color of icons
       
   438                         AknIconUtils::SetIconColor( bitmap, iconColor );
       
   439                     }
       
   440 				
       
   441 				}
       
   442 			break;
       
   443 			case EACTIVE_INACTIVE:
       
   444 				{
       
   445 				AknsUtils::CreateIconL(skin,(iAknsConstArray)[cnt + KCalcCountOfButtonInactive],bitmap,mask,
       
   446 					bmpPath, bmpId, maskId);
       
   447 				}
       
   448 			break;
       
   449 			default:
       
   450 				break;
       
   451 
       
   452 			}
       
   453 
       
   454 		CGulIcon* icon = CGulIcon::NewL(bitmap, mask);
       
   455 		aBitmapArray[cnt] = icon;
       
   456 			
       
   457 		bmpId = bmpId + 2;
       
   458 		maskId = maskId + 2;
       
   459 		}
       
   460 
       
   461 	}
       
   462 
       
   463 //---------------------------------------------------------
       
   464 // CCalcAppEnv::UpdateAknConstArrayforPaper
       
   465 //Updates the array with avkon skin constant Ids for paper bitmaps.   
       
   466 // ---------------------------------------------------------
       
   467 //
       
   468    void CCalcAppEnv::UpdateAknConstArrayforPaper()
       
   469 	{
       
   470 	iAknsConstArrayForPaper.Append(KAknsIIDQsnFrCalcPaperCenter);
       
   471 	iAknsConstArrayForPaper.Append(KAknsIIDQsnFrCalcPaperCornerTl);
       
   472 	iAknsConstArrayForPaper.Append(KAknsIIDQsnFrCalcPaperCornerTr);
       
   473 	iAknsConstArrayForPaper.Append(KAknsIIDQsnFrCalcPaperCornerBl);
       
   474 	iAknsConstArrayForPaper.Append(KAknsIIDQsnFrCalcPaperCornerBr);
       
   475 	iAknsConstArrayForPaper.Append(KAknsIIDQsnFrCalcPaperSideT);
       
   476 	iAknsConstArrayForPaper.Append(KAknsIIDQsnFrCalcPaperSideB);
       
   477 	iAknsConstArrayForPaper.Append(KAknsIIDQsnFrCalcPaperSideL);
       
   478 	iAknsConstArrayForPaper.Append(KAknsIIDQsnFrCalcPaperSideR); 
       
   479 	
       
   480 	}
       
   481 
       
   482 //---------------------------------------------------------
       
   483 // CCalcAppEnv::UpdateAknConstArray
       
   484 //Updates the array with avkon skin constant Ids for bitmaps.   
       
   485 // ---------------------------------------------------------
       
   486 //
       
   487 void CCalcAppEnv::UpdateAknConstArray()
       
   488     {
       
   489     iAknsConstArray.Reset();
       
   490     if( AknLayoutUtils::PenEnabled() )
       
   491     {
       
   492     iAknsConstArray.Append( KAknsIIDQgnIndiCalcCancel );
       
   493     iAknsConstArray.Append( KAknsIIDQgnIndiCalcSeven );
       
   494     iAknsConstArray.Append( KAknsIIDQgnIndiCalcFour );
       
   495     iAknsConstArray.Append( KAknsIIDQgnIndiCalcOne );
       
   496     iAknsConstArray.Append( KAknsIIDQgnIndiCalcZero );
       
   497     iAknsConstArray.Append( KAknsIIDQgnIndiCalcSquareroot );
       
   498     iAknsConstArray.Append( KAknsIIDQgnIndiCalcEight );
       
   499     iAknsConstArray.Append( KAknsIIDQgnIndiCalcFive );
       
   500     iAknsConstArray.Append( KAknsIIDQgnIndiCalcTwo );
       
   501     iAknsConstArray.Append( KAknsIIDQgnIndiCalcSeparator );  
       
   502     iAknsConstArray.Append( KAknsIIDQgnIndiCalcPercent );
       
   503     iAknsConstArray.Append( KAknsIIDQgnIndiCalcNine );
       
   504     iAknsConstArray.Append( KAknsIIDQgnIndiCalcSix );
       
   505     iAknsConstArray.Append( KAknsIIDQgnIndiCalcThree );
       
   506     iAknsConstArray.Append( KAknsIIDQgnIndiCalcSign );
       
   507     iAknsConstArray.Append( KAknsIIDQgnIndiCalcDivide );
       
   508     iAknsConstArray.Append( KAknsIIDQgnIndiCalcMultiply );
       
   509     iAknsConstArray.Append( KAknsIIDQgnIndiCalcSubtract );
       
   510     iAknsConstArray.Append( KAknsIIDQgnIndiCalcAdd );
       
   511     iAknsConstArray.Append( KAknsIIDQgnIndiCalcEquals );
       
   512     }
       
   513     else
       
   514     {
       
   515     //Akn Const for +, -, *, /....etc 0-9
       
   516     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonPlus);
       
   517     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonMinus);
       
   518     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonMultiply);
       
   519     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonDivide);
       
   520     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonSign);
       
   521     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonEquals);
       
   522     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonSquareroot);
       
   523     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonPercent);
       
   524     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonUp);
       
   525     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonDown);
       
   526 
       
   527 
       
   528     //Akn Const for pressed +, -, *, /....etc  10-19
       
   529     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonPlusPressed);
       
   530     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonMinusPressed);
       
   531     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonMultiplyPressed);
       
   532     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonDividePressed);
       
   533     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonSignPressed);
       
   534     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonEqualsPressed);
       
   535     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonSquarerootPressed);
       
   536     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonPercentPressed);
       
   537     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonUpPressed);
       
   538     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonDownPressed);
       
   539 
       
   540     //Akn Const for Active/ Inactive icons 20-24
       
   541     /*iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonSignInactive);
       
   542     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonSignInactive);
       
   543     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonSquarerootInactive);
       
   544     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonPercentInactive);
       
   545     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonUpInactive);
       
   546     iAknsConstArray.Append(KAknsIIDQgnIndiCalcButtonDownInactive);*/
       
   547     //}
       
   548     }
       
   549     }   
       
   550 //EISkin2.6
       
   551 //-----------------------------------------------------------
       
   552 //CCalcAppEnv::LoadFuncMapBitmapSkinChangeL
       
   553 //Loads the function map Icons when the skin changes
       
   554 //-----------------------------------------------------------
       
   555 //
       
   556 void CCalcAppEnv::LoadFuncMapBitmapSkinChangeL()
       
   557 	{
       
   558 	iIsSkinChanged = ETrue;
       
   559 	LoadFuncMapBitmapL();
       
   560 	}
       
   561 
       
   562 
       
   563 //-----------------------------------------------------------
       
   564 //CCalcAppEnv::SetSkinChangedValue
       
   565 //Sets if the skin is changed or not
       
   566 //-----------------------------------------------------------
       
   567 	
       
   568 void CCalcAppEnv::SetSkinChangedValue(TBool aValue)
       
   569 {
       
   570 	iIsSkinChanged = aValue;
       
   571 }
       
   572 //  End of File