idlehomescreen/xmluirendering/renderingplugins/xnmenufactory/src/xnmenuadapter.cpp
changeset 5 c743ef5928ba
parent 2 08c6ee43b396
child 9 f966699dea19
child 25 31c56aa1478f
equal deleted inserted replaced
4:4d54b72983ae 5:c743ef5928ba
  1094 // 
  1094 // 
  1095 // -----------------------------------------------------------------------------
  1095 // -----------------------------------------------------------------------------
  1096 //
  1096 //
  1097 void CXnMenuAdapter::SetSoftkeyAppearanceL( CXnSoftkeyItem& aItem )
  1097 void CXnMenuAdapter::SetSoftkeyAppearanceL( CXnSoftkeyItem& aItem )
  1098     {
  1098     {
  1099     if( IsNodeVisibleL( *aItem.iNode) )
  1099     if( iContainer && IsNodeVisibleL( *aItem.iNode) )
  1100         {
  1100         {
  1101         if( aItem.iImageOn )
  1101         if( aItem.iImageOn )
  1102             {
  1102             {
  1103             ChangeSoftkeyImageL( aItem );
  1103             ChangeSoftkeyImageL( aItem );
  1104             }
  1104             }
  1105         else if( aItem.iLabel )// change label
  1105         else if( aItem.iLabel )// change label
  1106             {
  1106             {
  1107             TBool left( EFalse );
       
  1108             if ( aItem.iPosition == CEikButtonGroupContainer::ELeftSoftkeyPosition )
  1107             if ( aItem.iPosition == CEikButtonGroupContainer::ELeftSoftkeyPosition )
  1109                 {
  1108                 {
  1110                 left = ETrue;
  1109                 EikSoftkeyImage::SetLabel( iContainer, ETrue );
  1111                 EikSoftkeyImage::SetLabel( iContainer,left );
       
  1112                 }
  1110                 }
  1113             else if ( aItem.iPosition == CEikButtonGroupContainer::ERightSoftkeyPosition )
  1111             else if ( aItem.iPosition == CEikButtonGroupContainer::ERightSoftkeyPosition )
  1114                 {
  1112                 {
  1115                 left = EFalse;
  1113                 EikSoftkeyImage::SetLabel( iContainer, EFalse );
  1116                 EikSoftkeyImage::SetLabel( iContainer,left );
       
  1117                 }
  1114                 }
  1118 
  1115 
  1119             iContainer->SetCommandL( aItem.iPosition, aItem.iCommandId, *aItem.iLabel );
  1116             iContainer->SetCommandL( aItem.iPosition, aItem.iCommandId, *aItem.iLabel );
  1120             }
  1117             }
  1121         }
  1118         }