application/data/PodcastShowsView.ra
author Sebastian Brannstrom <sebastianb@symbian.org>
Fri, 19 Nov 2010 00:16:55 +0000
branchsymbian1
changeset 373 f5de49b27caf
parent 354 a2713e6a41a9
permissions -rw-r--r--
Popup menus tweaked

/*
* Copyright (c) 2007-2010 Sebastian Brannstrom, Lars Persson, EmbedDev AB
*
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* EmbedDev AB - initial contribution.
*
* Contributors:
*
* Description:
*
*/

RESOURCE AVKON_VIEW r_podcast_showsview
{
	menubar = r_podcast_showsview_menubar;
	cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
	toolbar = r_showsview_toolbar;
}

RESOURCE MENU_BAR r_podcast_showsview_menubar
    {
    titles =
        {
        MENU_TITLE { menu_pane = r_podcast_showsview_menu; txt = "Shows"; }
        };
    }

RESOURCE MENU_PANE r_podcast_showsview_menu
    {
    items =
        {
        MENU_ITEM
			{
			command = EPodcastMarkAllPlayed;
			txt = STRING_r_view_mark_all_played_cmd_short;
			},
        MENU_ITEM
			{
			command = EPodcastAbout;
			txt = STRING_r_view_about_cmd;
			}, 
		MENU_ITEM
			{
			command = EPodcastHelp;
			txt = STRING_r_view_help;
			},
		MENU_ITEM
			{
			command = EAknSoftkeyExit;
			txt = STRING_r_exit_cmd;
			}
        };
    }

RESOURCE AVKON_TOOLBAR r_showsview_toolbar
    {
    flags = KAknToolbarFixed;
    items =
        {
        TBAR_CTRL
            {
            type = EAknCtButton;
            id = EPodcastUpdateAllFeeds;
            control = AVKON_BUTTON
                {
                states =
                    {
                    AVKON_BUTTON_STATE
                        {
                        bmpfile = APPICON;
                        bmpid = EMbmPodcastUpdate_all;
                        bmpmask = EMbmPodcastUpdate_all_mask;
                        //txt = STRING_r_update_feed_short_cmd;
                        helptxt = STRING_r_update_all_feeds_cmd;
                        }  
                    };
                };
            },
        TBAR_CTRL
            {
            type = EAknCtButton;
            id = EPodcastUpdateFeed;
            control = AVKON_BUTTON
                {
                states =
                    {
                    AVKON_BUTTON_STATE
                        {
                        bmpfile = APPICON;
                        bmpid = EMbmPodcastUpdate;
                        bmpmask = EMbmPodcastUpdate_mask;
                        //txt = STRING_r_update_feed_short_cmd;
                        helptxt = STRING_r_update_feed_cmd;
                        }  
                    };
                };
            },
            TBAR_CTRL
                {
                type = EAknCtButton;
                id = EPodcastCancelUpdateAllFeeds;
                control = AVKON_BUTTON
                    {
                    states =
                        {
                        AVKON_BUTTON_STATE
                            {
                            bmpfile = APPICON;
                            bmpid = EMbmPodcastUpdate_cancel;
                            bmpmask = EMbmPodcastUpdate_cancel_mask;
                            //txt = STRING_r_cancel_update_all_feeds_short_cmd;
                            helptxt = STRING_r_cancel_update_all_feeds_cmd;
                           }  
                        };
                    };
                },
// we keep the download toolbar button in S^3, but always disable it
// because there are drawing issues with only one item in the toolbar
            TBAR_CTRL
			{
			type = EAknCtButton;
			id = EPodcastDownloadShow;
			control = AVKON_BUTTON
				{
				states =
					{
					AVKON_BUTTON_STATE
						{
						bmpfile = APPICON;
						bmpid = EMbmPodcastDownload;
						bmpmask = EMbmPodcastDownload_mask;
						//txt = STRING_r_view_download_show_cmd;
						helptxt = STRING_r_view_download_show_cmd;
						}  
					};
				};
			}
        ,		
		TBAR_CTRL
			{
			type = EAknCtButton;
			id =EPodcastDeleteShow;
			control = AVKON_BUTTON
				{
				states =
					{
					AVKON_BUTTON_STATE
						{
						bmpfile = APPICON;
						bmpid = EMbmPodcastDelete;
						bmpmask = EMbmPodcastDelete_mask;
						//txt = STRING_r_view_delete_show_cmd;
						helptxt = STRING_r_view_delete_show_cmd;
						}  
					};
				};
			},
		TBAR_CTRL
				 {
				 type = EAknCtButton;
				 id = EPodcastDownloadAll;
				 control = AVKON_BUTTON
					 {
					 states =
						 {
						 AVKON_BUTTON_STATE
							 {
							 bmpfile = APPICON;
							 bmpid = EMbmPodcastDownload_all;
							 bmpmask = EMbmPodcastDownload_all_mask;
							 //txt = STRING_r_cancel_update_all_feeds_short_cmd;
							 helptxt = STRING_r_download_all_shows;
							}  
						 };
					 };
				 },
		TBAR_CTRL
			{
			type = EAknCtButton;
			id = EPodcastMarkAllPlayed;
			control = AVKON_BUTTON
				{
				states =
					{
					AVKON_BUTTON_STATE
						{
						bmpfile = APPICON;
						bmpid = EMbmPodcastMark_old_all;
						bmpmask = EMbmPodcastMark_old_all_mask;
						//txt = STRING_r_cancel_update_all_feeds_short_cmd;
						helptxt = STRING_r_view_mark_all_played_cmd;
					   }  
					};
				};
			},
		TBAR_CTRL
			{
			type = EAknCtButton;
			id = EPodcastMarkAsPlayed;
			control = AVKON_BUTTON
				{
				states =
					{
					AVKON_BUTTON_STATE
						{
						bmpfile = APPICON;
						bmpid = EMbmPodcastMark_old;
						bmpmask = EMbmPodcastMark_old_mask;
						//txt = STRING_r_view_mark_as_played_cmd_short;
						helptxt = STRING_r_view_mark_as_played_cmd;
						}  
					};
				};
			},
			TBAR_CTRL
				{
				type = EAknCtButton;
				id =EPodcastMarkAsUnplayed;
				control = AVKON_BUTTON
					{
					states =
						{
						AVKON_BUTTON_STATE
							{
							bmpfile = APPICON;
							bmpid = EMbmPodcastMark_new;
							bmpmask = EMbmPodcastMark_new_mask;
							//txt = STRING_r_view_mark_as_unplayed_cmd_short;
							helptxt = STRING_r_view_mark_as_unplayed_cmd;
							}  
						};
					};
				}
        };
    }

RESOURCE STYLUS_POPUP_MENU r_showview_popup_menu
	{
		items =
		{
			STYLUS_POPUP_MENU_ITEM
				{
					txt = STRING_r_view_show_info_cmd;
					command = EPodcastShowInfo;
				},
			STYLUS_POPUP_MENU_ITEM
				{
					txt = STRING_r_view_mark_as_unplayed_cmd_short;
					command = EPodcastMarkAsUnplayed;
				},
			STYLUS_POPUP_MENU_ITEM
				{
					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;
				}
		};
	}

RESOURCE DIALOG r_show_info_note
{
   flags = EAknDialogGenericQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
   buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
   items=
   {
  
      DLG_LINE 
      {
      	 type = EAknCtPopupHeadingPane;
      	 id = EAknMessageQueryHeaderId;
         itemflags = EEikDlgItemNonFocusing;
         control = AVKON_HEADING
         {
		headinglayout=R_AVKON_LIST_HEADING_PANE_POPUPS;		
         };
      },  
      DLG_LINE
      {
         type = EAknCtMessageQuery;
         id = EAknMessageQueryContentId;
         control = AVKON_MESSAGE_QUERY
         {
          
         };
      }
   };
}