locationsystemui/locationsysui/locblidsatelliteinfo/src/satellitecontrol.cpp
branchRCL_3
changeset 7 19bff11d6c18
parent 0 667063e416a2
child 8 6fcbaa43369c
equal deleted inserted replaced
6:f3bd2a0973b9 7:19bff11d6c18
   277 
   277 
   278 // ---------------------------------------------------------
   278 // ---------------------------------------------------------
   279 // CBlidManualWayPointCtrl::ChangeView
   279 // CBlidManualWayPointCtrl::ChangeView
   280 // ---------------------------------------------------------
   280 // ---------------------------------------------------------
   281 //
   281 //
   282 void CSatelliteControl::ChangeView()
   282 void CSatelliteControl::ChangeViewL()
   283 	{
   283 	{
   284     // Change the view variable and update the rects
   284     // Change the view variable and update the rects
   285 	switch ( iCurrentSatelliteView )
   285 	switch ( iCurrentSatelliteView )
   286 	    {
   286 	    {
   287 	    case ESignalStrengthView:
   287 	    case ESignalStrengthView:
   699 // CSatelliteControl::ConstructFromResourceL
   699 // CSatelliteControl::ConstructFromResourceL
   700 // ---------------------------------------------------------
   700 // ---------------------------------------------------------
   701 //
   701 //
   702 void CSatelliteControl::ConstructFromResourceL(TResourceReader& /*aReader*/)
   702 void CSatelliteControl::ConstructFromResourceL(TResourceReader& /*aReader*/)
   703     {
   703     {
   704     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
       
   705     MAknsControlContext* cc = AknsDrawUtils::ControlContext( this );
       
   706 	iEditorContext = CAknsFrameBackgroundControlContext::NewL(
   704 	iEditorContext = CAknsFrameBackgroundControlContext::NewL(
   707         KAknsIIDQsnFrInput, TRect(0,0,1,1), TRect(0,0,1,1), EFalse );
   705         KAknsIIDQsnFrInput, TRect(0,0,1,1), TRect(0,0,1,1), EFalse );
   708     ActivateL();
   706     ActivateL();
   709     }
   707     }
   710 
   708 
   810 	headingTextLayout.LayoutText(headingFrameRect, AknLayoutScalable_Avkon::heading_pane_t1(0).LayoutLine());
   808 	headingTextLayout.LayoutText(headingFrameRect, AknLayoutScalable_Avkon::heading_pane_t1(0).LayoutLine());
   811 		
   809 		
   812 	CWindowGc& gc=SystemGc();
   810 	CWindowGc& gc=SystemGc();
   813 		
   811 		
   814 	MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   812 	MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   815 	MAknsControlContext* cc = AknsDrawUtils::ControlContext( this ); // get parent's cc
       
   816 
   813 
   817     TRgb rgb;
   814     TRgb rgb;
   818     AknsUtils::GetCachedColor( skin,
   815     AknsUtils::GetCachedColor( skin,
   819                                rgb,
   816                                rgb,
   820                                KAknsIIDQsnTextColors,
   817                                KAknsIIDQsnTextColors,
  1434                 feedback->InstantFeedback(ETouchFeedbackBasic);
  1431                 feedback->InstantFeedback(ETouchFeedbackBasic);
  1435                 }
  1432                 }
  1436 #endif //RD_TACTILE_FEEDBACK
  1433 #endif //RD_TACTILE_FEEDBACK
  1437     		// Change view soft key pressed.Notify the control to change 
  1434     		// Change view soft key pressed.Notify the control to change 
  1438     		// the view and draw.
  1435     		// the view and draw.
  1439     		ChangeView();		
  1436     		ChangeViewL();		
  1440     		DrawNow();
  1437     		DrawNow();
  1441     		}	
  1438     		}	
  1442         }
  1439         }
  1443     }
  1440     }
  1444 #endif // RD_SCALABLE_UI_V2
  1441 #endif // RD_SCALABLE_UI_V2