camerauis/cameraapp/generic/src/CamShootingModeContainer.cpp
branchRCL_3
changeset 57 2c87b2808fd7
parent 54 bac7acad7cb3
child 62 f0c0788c4de2
equal deleted inserted replaced
54:bac7acad7cb3 57:2c87b2808fd7
   180 	iListBox->SetContainerWindowL( *this );
   180 	iListBox->SetContainerWindowL( *this );
   181 	iListBox->CreateScrollBarFrameL( ETrue ); 
   181 	iListBox->CreateScrollBarFrameL( ETrue ); 
   182     iListBox->DisableSingleClick( ETrue );
   182     iListBox->DisableSingleClick( ETrue );
   183    
   183    
   184 	TRect listboxRect;
   184 	TRect listboxRect;
   185     if ( CamUtility::IsNhdDevice() ) 
   185     if ( AknLayoutUtils::PenEnabled() ) 
   186         {
   186         {
   187         listboxRect = TouchLayout();
   187         listboxRect = TouchLayout();
   188         }
   188         }
   189     else
   189     else
   190         {
   190         {
   512 void CCamShootingModeContainer::Draw( const TRect& aRect ) const
   512 void CCamShootingModeContainer::Draw( const TRect& aRect ) const
   513     {
   513     {
   514 	PRINT(_L("Camera => CCamShootingModeContainer::Draw") )
   514 	PRINT(_L("Camera => CCamShootingModeContainer::Draw") )
   515 
   515 
   516     CWindowGc& gc = SystemGc();
   516     CWindowGc& gc = SystemGc();
   517     if ( CamUtility::IsNhdDevice() )
   517     if ( AknLayoutUtils::PenEnabled() )
   518         {
   518         {
   519         TRgb color;
   519         TRgb color;
   520         if( iFullySkinned )
   520         if( iFullySkinned )
   521             {
   521             {
   522         MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   522         MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   614     // for touch with keyboard, key pressing can also scroll thru the scene modes
   614     // for touch with keyboard, key pressing can also scroll thru the scene modes
   615     // after every up and down key presses we display the tool tip
   615     // after every up and down key presses we display the tool tip
   616     if ( EStdKeyUpArrow == aKeyEvent.iScanCode ||
   616     if ( EStdKeyUpArrow == aKeyEvent.iScanCode ||
   617          EStdKeyDownArrow == aKeyEvent.iScanCode )
   617          EStdKeyDownArrow == aKeyEvent.iScanCode )
   618         {
   618         {
   619         if ( CamUtility::IsNhdDevice() )  
   619         if ( AknLayoutUtils::PenEnabled() )  
   620             {
   620             {
   621             ShowTooltipL(); 
   621             ShowTooltipL(); 
   622             }
   622             }
   623         else
   623         else
   624             {
   624             {
   675                 // the description of the icon
   675                 // the description of the icon
   676                 HBufC* Description;
   676                 HBufC* Description;
   677                 TInt description = R_CAM_SCENE_DESCRIPTION_LANDSCAPE_AUTOFOCUS;
   677                 TInt description = R_CAM_SCENE_DESCRIPTION_LANDSCAPE_AUTOFOCUS;
   678                 Description = StringLoader::LoadL( description );
   678                 Description = StringLoader::LoadL( description );
   679                 User::LeaveIfError( iDescArray.Append( Description ) );
   679                 User::LeaveIfError( iDescArray.Append( Description ) );
       
   680                 delete descr;
       
   681                 descr = NULL;
   680                 }
   682                 }
   681             else 
   683             else 
   682                 {
   684                 {
   683                 User::LeaveIfError( iDescArray.Append( descr ) );
   685                 User::LeaveIfError( iDescArray.Append( descr ) );
   684                 }
   686                 }