Popup menus tweaked symbian1
authorSebastian Brannstrom <sebastianb@symbian.org>
Fri, 19 Nov 2010 00:16:55 +0000
branchsymbian1
changeset 373 f5de49b27caf
parent 372 ad9eb3eed056
child 374 f067cee22e48
Popup menus tweaked
application/data/PodcastClient_english.rls
application/data/PodcastQueueView.ra
application/data/PodcastShowsView.ra
application/src/PodcastQueueView.cpp
application/src/PodcastShowsView.cpp
--- a/application/data/PodcastClient_english.rls	Tue Nov 16 18:03:06 2010 +0000
+++ b/application/data/PodcastClient_english.rls	Fri Nov 19 00:16:55 2010 +0000
@@ -134,7 +134,9 @@
 rls_string STRING_r_view_mark_as_unplayed_cmd "Mark show new"
 rls_string STRING_r_view_mark_as_unplayed_cmd_short "Mark  new"
 rls_string STRING_r_view_download_show_cmd "Download show"
+rls_string STRING_r_view_download_show_cmd_short "Download"
 rls_string STRING_r_view_delete_show_cmd "Delete show"
+rls_string STRING_r_view_delete_show_cmd_short "Delete"
 rls_string STRING_r_view_show_info_cmd "Info"
 rls_string STRING_r_error_playback_failed "Could not play show"
 
--- a/application/data/PodcastQueueView.ra	Tue Nov 16 18:03:06 2010 +0000
+++ b/application/data/PodcastQueueView.ra	Fri Nov 19 00:16:55 2010 +0000
@@ -164,6 +164,11 @@
 				},
 			STYLUS_POPUP_MENU_ITEM
 				{
+				txt = STRING_r_view_remove_download_short_cmd;
+				command = EPodcastRemoveDownload;
+				},
+			STYLUS_POPUP_MENU_ITEM
+				{
 					txt = STRING_r_view_move_up_short_cmd;
 					command = EPodcastMoveDownloadUp;
 				},
--- a/application/data/PodcastShowsView.ra	Tue Nov 16 18:03:06 2010 +0000
+++ b/application/data/PodcastShowsView.ra	Fri Nov 19 00:16:55 2010 +0000
@@ -258,8 +258,17 @@
 				{
 					txt = STRING_r_view_mark_as_played_cmd_short;
 					command = EPodcastMarkAsPlayed;
+				},
+			STYLUS_POPUP_MENU_ITEM
+				{
+				txt = STRING_r_view_download_show_cmd_short;
+				command = EPodcastDownloadShow;
+				},
+			STYLUS_POPUP_MENU_ITEM
+				{
+				txt = STRING_r_view_delete_show_cmd_short;
+				command = EPodcastDeleteShow;
 				}
-
 		};
 	}
 
--- a/application/src/PodcastQueueView.cpp	Tue Nov 16 18:03:06 2010 +0000
+++ b/application/src/PodcastQueueView.cpp	Fri Nov 19 00:16:55 2010 +0000
@@ -400,7 +400,6 @@
 
 		iStylusPopupMenu->SetItemDimmed(EPodcastMarkAsPlayed, info->PlayState() != ENeverPlayed);
 		iStylusPopupMenu->SetItemDimmed(EPodcastMarkAsUnplayed, info->PlayState() == ENeverPlayed);
-	
 		iStylusPopupMenu->ShowMenu();
 		iStylusPopupMenu->SetPosition(aPenEventLocation);
     }
--- a/application/src/PodcastShowsView.cpp	Tue Nov 16 18:03:06 2010 +0000
+++ b/application/src/PodcastShowsView.cpp	Fri Nov 19 00:16:55 2010 +0000
@@ -914,8 +914,8 @@
 			TBool hideDeleteShowCmd = info->DownloadState() != EDownloaded;
 			TBool hideMarkOld = info->PlayState() == EPlayed;
 			
-			iStylusPopupMenu->SetItemDimmed(EPodcastMarkAsPlayed, hideMarkOld || !iShowNewShows);
-			iStylusPopupMenu->SetItemDimmed(EPodcastMarkAsUnplayed, !hideMarkOld || !iShowNewShows);
+			iStylusPopupMenu->SetItemDimmed(EPodcastMarkAsPlayed, hideMarkOld);
+			iStylusPopupMenu->SetItemDimmed(EPodcastMarkAsUnplayed, !hideMarkOld);
 						
 			iStylusPopupMenu->SetItemDimmed(EPodcastDownloadShow, hideDownloadShowCmd);
 			iStylusPopupMenu->SetItemDimmed(EPodcastDeleteShow, hideDeleteShowCmd);