mobilemessaging/mmsui/viewersrc/UniMmsViewerAppUi.cpp
changeset 1 d09ac5c1e252
parent 0 72b543305e3a
child 2 0bf1d54f37d9
equal deleted inserted replaced
0:72b543305e3a 1:d09ac5c1e252
  1172             if ( iSmilModel->SlideCount( ) > iMaxForwardSlideCount )
  1172             if ( iSmilModel->SlideCount( ) > iMaxForwardSlideCount )
  1173                 {
  1173                 {
  1174                 aMenuPane->SetItemDimmed( EMmsViewerForward, ETrue );
  1174                 aMenuPane->SetItemDimmed( EMmsViewerForward, ETrue );
  1175                 }
  1175                 }
  1176                                 
  1176                                 
  1177             if ( !  (    Document( )->SmilType( ) == EMmsSmil  
  1177    
  1178                     &&   focusedControl == EMsgComponentIdImage
       
  1179                     &&   iImage 
       
  1180                     &&   MediaInitializedL( iImage ) ) )
       
  1181                 {
       
  1182                 aMenuPane->SetItemDimmed( EMmsViewerViewImage, ETrue );
       
  1183                 }
       
  1184             if ( ! (    focusedControl == EMsgComponentIdAudio
       
  1185                     &&  iAudio
       
  1186                     &&  MediaInitializedL( iAudio ) ) )
       
  1187                 {
       
  1188                 aMenuPane->SetItemDimmed( EMmsViewerPlayAudio, ETrue );
       
  1189                 }
       
  1190             if ( ! (    focusedControl == EMsgComponentIdVideo
       
  1191                     &&  iVideo
       
  1192                     &&  MediaInitializedL( iVideo ) ) )
       
  1193                 {
       
  1194                 aMenuPane->SetItemDimmed( EMmsViewerPlayVideo, ETrue );
       
  1195                 }
       
  1196 #ifdef RD_SVGT_IN_MESSAGING              
       
  1197             if ( !  ( Document( )->SmilType( ) == EMmsSmil  
       
  1198                     &&  focusedControl == EMsgComponentIdSvg
       
  1199                     &&  iSvgt
       
  1200                     &&  MediaInitializedL( iSvgt ) ) )
       
  1201                 {
       
  1202                 aMenuPane->SetItemDimmed( EMmsViewerPlaySvg, ETrue );
       
  1203                 }                
       
  1204 #endif                 
       
  1205             if ( ! (    Document( )->SmilType( ) == EMmsSmil 
  1178             if ( ! (    Document( )->SmilType( ) == EMmsSmil 
  1206                    &&   (  focusedControl == EMsgComponentIdBody 
  1179                    &&   (  focusedControl == EMsgComponentIdBody 
  1207                         || focusedControl == EMsgComponentIdImage 
  1180                         || focusedControl == EMsgComponentIdImage 
  1208                         || focusedControl == EMsgComponentIdAudio 
  1181                         || focusedControl == EMsgComponentIdAudio 
  1209 #ifdef RD_SVGT_IN_MESSAGING              
  1182 #ifdef RD_SVGT_IN_MESSAGING              
  1226                 aMenuPane->SetItemDimmed( EAknCmdHelp, ETrue );
  1199                 aMenuPane->SetItemDimmed( EAknCmdHelp, ETrue );
  1227                 }
  1200                 }
  1228             if ( !Document( )->SmilList( )->Count( ) )
  1201             if ( !Document( )->SmilList( )->Count( ) )
  1229                 {
  1202                 {
  1230                 aMenuPane->SetItemDimmed( EMmsViewerShowMessage, ETrue );
  1203                 aMenuPane->SetItemDimmed( EMmsViewerShowMessage, ETrue );
  1231                 aMenuPane->SetItemDimmed( EMmsViewerShowPresentation, ETrue );
  1204 
  1232                 }
  1205                 }
  1233             else 
  1206             else 
  1234                 {
  1207                 {
  1235                 if ( Document( )->SmilType( ) != EMmsSmil )
  1208                 if ( Document( )->SmilType( ) != EMmsSmil )
  1236                     {
  1209                     {
  1237                     aMenuPane->SetItemDimmed( EMmsViewerShowMessage, ETrue );
  1210                     aMenuPane->SetItemDimmed( EMmsViewerShowMessage, ETrue );
  1238                     }
  1211                     }
  1239                 if (    Document( )->SmilType( ) == EMmsSmil 
  1212 
  1240                     ||  (   Document( )->SmilType( ) != EMmsSmil
       
  1241 			            &&  focusedControl != EMsgComponentIdImage ) )
       
  1242                     {
       
  1243                     aMenuPane->SetItemDimmed( EMmsViewerShowPresentation, ETrue );
       
  1244     				}
       
  1245 				}
  1213 				}
  1246 
  1214 
  1247             if ( !ShowReplyMenu( ) )
  1215             if ( !ShowReplyMenu( ) )
  1248                 {
  1216                 {
  1249                 aMenuPane->SetItemDimmed( EMmsViewerReplyMenu, ETrue );
  1217                 aMenuPane->SetItemDimmed( EMmsViewerReplyMenu, ETrue );