photosgallery/viewframework/views/metadatadialog/src/glximgvwrmetadatacontainer.cpp
equal
deleted
inserted
replaced
222 TListBoxEvent aEventType) |
222 TListBoxEvent aEventType) |
223 { |
223 { |
224 GLX_LOG_INFO("CGlxImgVwrMetadataContainer::HandleListBoxEventL"); |
224 GLX_LOG_INFO("CGlxImgVwrMetadataContainer::HandleListBoxEventL"); |
225 if ((aEventType == EEventEnterKeyPressed) || |
225 if ((aEventType == EEventEnterKeyPressed) || |
226 (aEventType == EEventEditingStarted) || |
226 (aEventType == EEventEditingStarted) || |
227 (aEventType == EEventItemDoubleClicked)) |
227 (aEventType == EEventItemSingleClicked)) |
228 { |
228 { |
229 //handle edit functionality if items when useer selects via touch |
229 //handle edit functionality if items when useer selects via touch |
230 HandleListboxChangesL(); |
230 HandleListboxChangesL(); |
231 } |
231 } |
232 } |
232 } |
321 if(iItemMediaList->Count()) |
321 if(iItemMediaList->Count()) |
322 { |
322 { |
323 TGlxMedia item = iItemMediaList->Item(0); |
323 TGlxMedia item = iItemMediaList->Item(0); |
324 CGlxUStringConverter* stringConverter = CGlxUStringConverter::NewL(); |
324 CGlxUStringConverter* stringConverter = CGlxUStringConverter::NewL(); |
325 CleanupStack::PushL(stringConverter ); |
325 CleanupStack::PushL(stringConverter ); |
326 for(TInt index = 0; index <= 4; index++) |
326 for(TInt index = 0; index <= EImgVwrlicenseItem; index++) |
327 { |
327 { |
328 HBufC* string = NULL; |
328 HBufC* string = NULL; |
329 |
329 |
330 if(index == EImgVwrSizeItem) |
330 if(index == EImgVwrSizeItem) |
331 { |
331 { |
351 else if(index == EImgVwrResolutionItem) |
351 else if(index == EImgVwrResolutionItem) |
352 { |
352 { |
353 stringConverter->AsStringL(item, |
353 stringConverter->AsStringL(item, |
354 KGlxMediaGeneralDimensions,0, string ); |
354 KGlxMediaGeneralDimensions,0, string ); |
355 } |
355 } |
|
356 else if(index == EImgVwrlicenseItem) |
|
357 { |
|
358 // If an item is DRM protected, License field in details |
|
359 // should display "View Details" |
|
360 string = StringLoader::LoadL(R_GLX_METADATA_VIEW_OPTIONS_VIEW); |
|
361 } |
356 else |
362 else |
357 { |
363 { |
358 //no implementation |
364 //no implementation |
359 } |
365 } |
360 if(string) |
366 if(string) |
361 { |
367 { |
362 iTextSetter.Copy(KGlxTextSetter); |
368 iTextSetter.Copy(KGlxTextSetter); |
363 iTextSetter.Append(*string); |
369 iTextSetter.Append(*string); |
364 } |
370 } |
365 EditItemL(index,EFalse); |
371 CleanupStack::PushL( string ); |
366 delete string; |
372 EditItemL(index,EFalse); |
367 string = NULL; |
373 CleanupStack::PopAndDestroy(string ); |
368 } |
374 } |
369 CleanupStack::PopAndDestroy(stringConverter ); |
375 CleanupStack::PopAndDestroy(stringConverter ); |
370 } |
376 } |
371 } |
377 } |
372 |
378 |