uifw/EikStd/coctlsrc/aknstyluspopupmenucontent.cpp
changeset 14 3320e4e6e8bb
parent 0 2f259fa3e83a
equal deleted inserted replaced
0:2f259fa3e83a 14:3320e4e6e8bb
   619                     iFirstItem = i;
   619                     iFirstItem = i;
   620                     break;
   620                     break;
   621                     }
   621                     }
   622                 }
   622                 }
   623             }
   623             }
   624         //SizeChanged();
   624         SizeChanged();
   625         }
   625         }
   626     }
   626     }
   627 
   627 
   628 // ---------------------------------------------------------------------------
   628 // ---------------------------------------------------------------------------
   629 // Returns the command id of the specified menu item.
   629 // Returns the command id of the specified menu item.
   756     
   756     
   757     if ( aType == KAknsMessageSkinChange )
   757     if ( aType == KAknsMessageSkinChange )
   758         {
   758         {
   759         // Implementation when graphics are ready.
   759         // Implementation when graphics are ready.
   760         }
   760         }
   761     else if ( aType == KEikMessageFadeAllWindows 
   761     else if ( aType == KEikDynamicLayoutVariantSwitch )
   762               || aType == KEikDynamicLayoutVariantSwitch ) 
   762         {
       
   763 
       
   764         // Background under highlight may have changed -> we need to update
       
   765         // highlight background to animation
       
   766         if ( iExtension )
       
   767             {
       
   768             iExtension->HandleLayoutSwitch();
       
   769             }
       
   770             
       
   771         iPopUpMenu.UpdatePosition();
       
   772         }
       
   773     else if ( aType == KEikMessageFadeAllWindows ) 
   763         {
   774         {
   764         if ( Observer() ) 
   775         if ( Observer() ) 
   765             {
   776             {
   766             // this will close the stylus popup menu
   777             // this will close the stylus popup menu
   767             TRAP_IGNORE( Observer()->HandleControlEventL( this,
   778             TRAP_IGNORE( Observer()->HandleControlEventL( this,
   768                 MCoeControlObserver::EEventRequestExit ) );
   779                 MCoeControlObserver::EEventRequestExit ) );
   769             }    
   780             }    
   770         }            
   781         }    
   771     }
   782     }
   772 
   783 
   773 // -----------------------------------------------------------------------------
   784 // -----------------------------------------------------------------------------
   774 // CAknStylusPopUpMenuContent::HandlePointerEventL
   785 // CAknStylusPopUpMenuContent::HandlePointerEventL
   775 // -----------------------------------------------------------------------------
   786 // -----------------------------------------------------------------------------
  1172                         listRect.iBr.iX -= AknLayoutScalable_Avkon::scroll_pane().LayoutLine().iW;
  1183                         listRect.iBr.iX -= AknLayoutScalable_Avkon::scroll_pane().LayoutLine().iW;
  1173                         }
  1184                         }
  1174                     }
  1185                     }
  1175                 }
  1186                 }
  1176             }
  1187             }
  1177         else
       
  1178         	{
       
  1179             if ( AknLayoutUtils::LayoutMirrored() )
       
  1180 	            {
       
  1181                 listRect.iTl.iX += AknLayoutScalable_Avkon::scroll_pane().LayoutLine().iW;
       
  1182 	            }
       
  1183             else
       
  1184 	            {
       
  1185                 listRect.iBr.iX -= AknLayoutScalable_Avkon::scroll_pane().LayoutLine().iW;
       
  1186                 }        	
       
  1187         	}
       
  1188 
  1188 
  1189         }
  1189         }
  1190     
  1190     
  1191     // Adjust first and last item 
  1191     // Adjust first and last item 
  1192     if ( iFirstItem < firstItem )
  1192     if ( iFirstItem < firstItem )