433 { |
433 { |
434 mContextMenuActions[EActionAttach] = |
434 mContextMenuActions[EActionAttach] = |
435 mContextMenu->addAction(hbTrId("txt_common_menu_select"), this, SLOT(openItemSlot())); |
435 mContextMenu->addAction(hbTrId("txt_common_menu_select"), this, SLOT(openItemSlot())); |
436 mContextMenuActions[EActionAttach]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_ATTACH); |
436 mContextMenuActions[EActionAttach]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_ATTACH); |
437 |
437 |
438 mContextMenuActions[EActionOpen] = |
438 mContextMenuActions[EActionOpen] = |
439 mContextMenu->addAction(hbTrId("txt_common_menu_open"), this, SLOT(openItemSlot())); |
439 mContextMenu->addAction(hbTrId("txt_common_menu_open"), this, SLOT(openItemSlot())); |
440 mContextMenuActions[EActionOpen]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_OPEN); |
440 mContextMenuActions[EActionOpen]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_OPEN); |
441 |
441 |
442 mContextMenuActions[EActionPlay] = |
442 mContextMenuActions[EActionPlay] = |
443 mContextMenu->addAction(hbTrId("txt_videos_menu_play"), this, SLOT(playItemSlot())); |
443 mContextMenu->addAction(hbTrId("txt_videos_menu_play"), this, SLOT(playItemSlot())); |
444 mContextMenuActions[EActionPlay]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_PLAY); |
444 mContextMenuActions[EActionPlay]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_PLAY); |
445 |
445 |
446 mContextMenuActions[EActionDetails] = |
446 mContextMenuActions[EActionDetails] = |
447 mContextMenu->addAction(hbTrId("txt_common_menu_details"), this, SLOT(openDetailsSlot())); |
447 mContextMenu->addAction(hbTrId("txt_common_menu_details"), this, SLOT(openDetailsSlot())); |
448 mContextMenuActions[EActionDetails]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_DETAILS); |
448 mContextMenuActions[EActionDetails]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_DETAILS); |
449 } |
449 } |
450 else if (mService == VideoServices::EBrowse) |
450 else if (mService == VideoServices::EBrowse) |
451 { |
451 { |
452 mContextMenuActions[EActionPlay] = |
452 mContextMenuActions[EActionPlay] = |
453 mContextMenu->addAction(hbTrId("txt_videos_menu_play"), this, SLOT(playItemSlot())); |
453 mContextMenu->addAction(hbTrId("txt_videos_menu_play"), this, SLOT(playItemSlot())); |
454 mContextMenuActions[EActionPlay]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_PLAY); |
454 mContextMenuActions[EActionPlay]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_PLAY); |
455 |
|
456 mContextMenuActions[EActionDelete] = |
|
457 mContextMenu->addAction(hbTrId("txt_common_menu_delete"), this, SLOT(deleteItemSlot())); |
|
458 mContextMenuActions[EActionDelete]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_DELETE); |
|
459 |
455 |
460 mContextMenuActions[EActionDetails] = |
456 mContextMenuActions[EActionDetails] = |
461 mContextMenu->addAction(hbTrId("txt_common_menu_details"), this, SLOT(openDetailsSlot())); |
457 mContextMenu->addAction(hbTrId("txt_common_menu_details"), this, SLOT(openDetailsSlot())); |
462 mContextMenuActions[EActionDetails]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_DETAILS); |
458 mContextMenuActions[EActionDetails]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_DETAILS); |
|
459 |
|
460 mContextMenuActions[EActionDelete] = |
|
461 mContextMenu->addAction(hbTrId("txt_common_menu_delete"), this, SLOT(deleteItemSlot())); |
|
462 mContextMenuActions[EActionDelete]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_DELETE); |
463 } |
463 } |
464 else |
464 else |
465 { |
465 { |
466 mContextMenuActions[EActionPlay] = |
466 mContextMenuActions[EActionPlay] = |
467 mContextMenu->addAction(hbTrId("txt_videos_menu_play"), this, SLOT(playItemSlot())); |
467 mContextMenu->addAction(hbTrId("txt_videos_menu_play"), this, SLOT(playItemSlot())); |
468 mContextMenuActions[EActionPlay]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_PLAY); |
468 mContextMenuActions[EActionPlay]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_PLAY); |
469 |
469 |
470 mContextMenuActions[EActionOpen] = |
470 mContextMenuActions[EActionDetails] = |
|
471 mContextMenu->addAction(hbTrId("txt_common_menu_details"), this, SLOT(openDetailsSlot())); |
|
472 mContextMenuActions[EActionDetails]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_DETAILS); |
|
473 |
|
474 mContextMenuActions[EActionOpen] = |
471 mContextMenu->addAction(hbTrId("txt_common_menu_open"), this, SLOT(openItemSlot())); |
475 mContextMenu->addAction(hbTrId("txt_common_menu_open"), this, SLOT(openItemSlot())); |
472 mContextMenuActions[EActionOpen]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_OPEN); |
476 mContextMenuActions[EActionOpen]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_OPEN); |
473 |
477 |
474 mContextMenuActions[EActionAddToCollection] = |
478 mContextMenuActions[EActionAddToCollection] = |
475 mContextMenu->addAction(hbTrId("txt_videos_menu_add_to_collection"), this, SLOT(addToCollectionSlot())); |
479 mContextMenu->addAction(hbTrId("txt_videos_menu_add_to_collection"), this, SLOT(addToCollectionSlot())); |
476 mContextMenuActions[EActionAddToCollection]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_ADD_TO); |
480 mContextMenuActions[EActionAddToCollection]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_ADD_TO); |
477 |
481 |
478 mContextMenuActions[EActionRemove] = |
482 mContextMenuActions[EActionRemove] = |
479 mContextMenu->addAction(hbTrId("txt_videos_menu_remove_from_collection"), this, SLOT(removeFromCollectionSlot())); |
483 mContextMenu->addAction(hbTrId("txt_videos_menu_remove_from_collection"), this, SLOT(removeFromCollectionSlot())); |
480 mContextMenuActions[EActionRemove]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_REMOVE_FROM); |
484 mContextMenuActions[EActionRemove]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_REMOVE_FROM); |
481 |
485 |
482 mContextMenuActions[EActionRename] = |
486 mContextMenuActions[EActionRename] = |
483 mContextMenu->addAction(hbTrId("txt_common_menu_rename_item"), this, SLOT(renameSlot())); |
487 mContextMenu->addAction(hbTrId("txt_common_menu_rename_item"), this, SLOT(renameSlot())); |
484 mContextMenuActions[EActionRename]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_RENAME); |
488 mContextMenuActions[EActionRename]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_RENAME); |
485 |
489 |
486 mContextMenuActions[EActionRemoveCollection] = |
490 mContextMenuActions[EActionRemoveCollection] = |
487 mContextMenu->addAction(hbTrId("txt_videos_menu_remove_collection"), this, SLOT(removeCollectionSlot())); |
491 mContextMenu->addAction(hbTrId("txt_videos_menu_remove_collection"), this, SLOT(removeCollectionSlot())); |
488 mContextMenuActions[EActionRemoveCollection]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_REMOVE_COLLECTION); |
492 mContextMenuActions[EActionRemoveCollection]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_REMOVE_COLLECTION); |
489 |
493 |
490 mContextMenuActions[EActionDelete] = |
494 mContextMenuActions[EActionDelete] = |
491 mContextMenu->addAction(hbTrId("txt_common_menu_delete"), this, SLOT(deleteItemSlot())); |
495 mContextMenu->addAction(hbTrId("txt_common_menu_delete"), this, SLOT(deleteItemSlot())); |
492 mContextMenuActions[EActionDelete]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_DELETE); |
496 mContextMenuActions[EActionDelete]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_DELETE); |
493 |
|
494 mContextMenuActions[EActionDetails] = |
|
495 mContextMenu->addAction(hbTrId("txt_common_menu_details"), this, SLOT(openDetailsSlot())); |
|
496 mContextMenuActions[EActionDetails]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_DETAILS); |
|
497 } |
497 } |
498 } |
498 } |
499 |
499 |
500 // ------------------------------------------------------------------------------------------------- |
500 // ------------------------------------------------------------------------------------------------- |
501 // setContextMenu |
501 // setContextMenu |