camerauis/cameraapp/generic/src/CamInfoListBoxContainer.cpp
branchRCL_3
changeset 16 53c8aa5d97a3
parent 15 bf64cebf4673
child 17 8f559c47d7fd
equal deleted inserted replaced
15:bf64cebf4673 16:53c8aa5d97a3
   298 // -----------------------------------------------------------------------------
   298 // -----------------------------------------------------------------------------
   299 // CCamInfoListBoxContainer::HandleSettingValueUpdateL
   299 // CCamInfoListBoxContainer::HandleSettingValueUpdateL
   300 // Handles a change to the setting value of the slider
   300 // Handles a change to the setting value of the slider
   301 // -----------------------------------------------------------------------------
   301 // -----------------------------------------------------------------------------
   302 //
   302 //
   303 void CCamInfoListBoxContainer::HandleSettingValueUpdateL( TInt /*aNewValue*/ )
   303 void CCamInfoListBoxContainer::HandleSettingValueUpdateL( TInt aNewValue )
   304     {   
   304     {
       
   305     iController.PreviewSettingChangeL( ECamSettingItemDynamicPhotoLightSensitivity, aNewValue );
   305     }
   306     }
   306     
   307     
   307 // ---------------------------------------------------------
   308 // ---------------------------------------------------------
   308 // CCamInfoListBoxContainer::CountComponentControls 
   309 // CCamInfoListBoxContainer::CountComponentControls 
   309 // Returns the number of controls owned
   310 // Returns the number of controls owned
   418         return response;
   419         return response;
   419         }
   420         }
   420     
   421     
   421     TKeyResponse returnvalue = iListBox->OfferKeyEventL( aKeyEvent, aType );
   422     TKeyResponse returnvalue = iListBox->OfferKeyEventL( aKeyEvent, aType );
   422 
   423 
   423     if ( CamUtility::IsNhdDevice() )
   424     if ( EStdKeyUpArrow == aKeyEvent.iScanCode ||
   424         {
   425            EStdKeyDownArrow == aKeyEvent.iScanCode )
   425         // for non touch, we use key presses to scroll thru the scene modes
   426         {
   426         // for touch with keyboard, key pressing can also scroll thru the scene modes            
   427         ShowTooltipL();
   427         // after every up and down key presses we display the tool tip
       
   428         if ( EStdKeyUpArrow == aKeyEvent.iScanCode ||
       
   429              EStdKeyDownArrow == aKeyEvent.iScanCode )
       
   430             {
       
   431             ShowTooltipL();
       
   432             }
       
   433         }
   428         }
   434     else // No tooltip
   429     else // No tooltip
   435         {
   430         {
   436         DrawDeferred(); // Update explanation text
   431         DrawDeferred(); // Update explanation text
   437         }
   432         }
   590 
   585 
   591 void CCamInfoListBoxContainer::HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType )
   586 void CCamInfoListBoxContainer::HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType )
   592     {
   587     {
   593     switch( aEventType )
   588     switch( aEventType )
   594         {
   589         {
   595         case EEventEnterKeyPressed:
       
   596         case EEventItemDoubleClicked:
   590         case EEventItemDoubleClicked:
   597               {
   591               {
   598               iView.HandleCommandL( EAknSoftkeySelect ); 
   592               iView.HandleCommandL( EAknSoftkeySelect ); 
   599               }
   593               }
   600               break;  
   594               break;