browserui/browser/SrcData/browser_toolbar.rssi
changeset 51 48e827313edd
parent 37 481242ead638
child 53 f427d27b98d8
equal deleted inserted replaced
37:481242ead638 51:48e827313edd
     1 /*
       
     2 * Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *     Resource file for the content view's toolbar
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #include <browser_platform_variant.hrh>
       
    22 
       
    23 #ifdef BRDO_AVKON_EXT_TB_FF
       
    24 
       
    25 //  RESOURCE IDENTIFIER
       
    26 
       
    27 #include <eikon.hrh>
       
    28 #include "BrowserToolbar.hrh"
       
    29 
       
    30 // Common toolbar resource 
       
    31 RESOURCE AVKON_TOOLBAR r_content_view_toolbar
       
    32     {
       
    33     flags = KAknToolbarFixed | KAknToolbarWithoutCba;
       
    34     items =
       
    35         {
       
    36         TBAR_CTRL
       
    37             {
       
    38             type=EAknCtToolbarExtension;
       
    39 			id= EWmlCmdToolbarExtensionContentView;
       
    40 
       
    41             control = AVKON_TOOLBAR_EXTENSION
       
    42                 {
       
    43                 helptxt = qtn_browser_ext_tb_tt;
       
    44                 items =
       
    45                     {
       
    46 #ifndef BRDO_SINGLE_CLICK_ENABLED_FF		    
       
    47                     TBAR_CTRL
       
    48                         {
       
    49                         type = EAknCtButton;
       
    50                         id = EWmlCmdFavourites;     
       
    51                         
       
    52                         control = AVKON_BUTTON
       
    53                             {
       
    54                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
    55                             states =
       
    56                                 {
       
    57                                 AVKON_BUTTON_STATE
       
    58                                     {                      
       
    59                                     txt     = qtn_browser_ext_tb_bm;  
       
    60                                     helptxt = qtn_browser_ext_tb_bm_tt;
       
    61                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
    62                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_bm;         
       
    63                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_bm_mask;   
       
    64                                     extension = r_browser_ext_qgn_indi_browser_tb_bm;
       
    65                                     }
       
    66                                 };
       
    67                             };
       
    68                         },
       
    69 #endif
       
    70                     TBAR_CTRL
       
    71                         {
       
    72                         type = EAknCtButton;
       
    73                         id = EWmlCmdLaunchHomePage;     
       
    74                         
       
    75                         control = AVKON_BUTTON
       
    76                             {
       
    77                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
    78                             states =
       
    79                                 {
       
    80                                 AVKON_BUTTON_STATE
       
    81                                     {
       
    82                                     txt     = qtn_browser_ext_tb_home;  
       
    83                                     helptxt = qtn_browser_ext_tb_home_tt;
       
    84                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
    85                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_home;         
       
    86                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_home_mask;   
       
    87                                     extension = r_browser_ext_qgn_indi_browser_tb_home;
       
    88                                     }
       
    89                                 };
       
    90                             };
       
    91                         },
       
    92                     TBAR_CTRL
       
    93                         {
       
    94                         type = EAknCtButton;
       
    95                         id = EWmlCmdSaveAsBookmark;     
       
    96                         
       
    97                         control = AVKON_BUTTON
       
    98                             {
       
    99                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
   100                             states =
       
   101                                 {
       
   102                                 AVKON_BUTTON_STATE
       
   103                                     {
       
   104                                     txt     = qtn_browser_ext_tb_save_bookmark;  
       
   105                                     helptxt = qtn_browser_ext_tb_save_bookmark_tt;
       
   106                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
   107                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_save_bm;         
       
   108                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_save_bm_mask;
       
   109                                     extension = r_browser_ext_qgn_indi_browser_tb_savebm;
       
   110                                     }
       
   111                                 };
       
   112                             };
       
   113                         },
       
   114                     TBAR_CTRL
       
   115                         {
       
   116                         type = EAknCtButton;
       
   117                         id = EWmlCmdFindKeyword;     
       
   118                         
       
   119                         control = AVKON_BUTTON
       
   120                             {
       
   121                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
   122                             states =
       
   123                                 {
       
   124                                 AVKON_BUTTON_STATE
       
   125                                     {
       
   126                                     txt     = qtn_browser_ext_tb_find_keyword;  
       
   127                                     helptxt = qtn_browser_ext_tb_find_keyword_tt;
       
   128                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
   129                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_find_kw;         
       
   130                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_find_kw_mask;
       
   131                                     extension = r_browser_ext_qgn_indi_browser_tb_findkw;
       
   132                                     }
       
   133                                 };
       
   134                             };
       
   135                         },
       
   136                     TBAR_CTRL
       
   137                         {
       
   138                         type = EAknCtButton;
       
   139                         id = EWmlCmdReload;     
       
   140                         
       
   141                         control = AVKON_BUTTON
       
   142                             {
       
   143                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
   144                             states =
       
   145                                 {
       
   146                                 AVKON_BUTTON_STATE
       
   147                                     {
       
   148                                     txt     = qtn_browser_ext_tb_reload;  
       
   149                                     helptxt = qtn_browser_ext_tb_reload_tt;
       
   150                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
   151                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_reload;         
       
   152                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_reload_mask;
       
   153                                     extension = r_browser_ext_qgn_indi_browser_tb_reload;
       
   154                                     }
       
   155                                 };
       
   156                             };
       
   157                         },
       
   158                     TBAR_CTRL
       
   159                         {
       
   160                         type = EAknCtButton;
       
   161                         id = EAknCmdHelp;     
       
   162                         
       
   163                         control = AVKON_BUTTON
       
   164                             {
       
   165                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
   166                             states =
       
   167                                 {
       
   168                                 AVKON_BUTTON_STATE
       
   169                                     {
       
   170                                     txt     = qtn_browser_ext_tb_help;  
       
   171                                     helptxt = qtn_browser_ext_tb_help_tt;
       
   172                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
   173                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_help;         
       
   174                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_help_mask;
       
   175                                     extension = r_browser_ext_qgn_indi_browser_tb_help;
       
   176                                     }
       
   177                                 };
       
   178                             };
       
   179                         },
       
   180                     TBAR_CTRL
       
   181                         {
       
   182                         type = EAknCtButton;
       
   183                         id = EWmlCmdShowMiniature;     
       
   184                         
       
   185                         control = AVKON_BUTTON
       
   186                             {
       
   187                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
   188                             states =
       
   189                                 {
       
   190                                 AVKON_BUTTON_STATE
       
   191                                     {
       
   192                                     txt     = qtn_browser_ext_tb_miniature_show;  
       
   193                                     helptxt = qtn_browser_ext_tb_miniature_show_tt;
       
   194                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
   195                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_page;         
       
   196                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_page_mask;
       
   197                                     extension = r_browser_ext_qgn_indi_browser_tb_pages;
       
   198                                     }
       
   199                                 };
       
   200                             };
       
   201                         },
       
   202                     TBAR_CTRL
       
   203                         {
       
   204                         type = EAknCtButton;
       
   205                         id = EWmlCmdPreferences;     
       
   206                         
       
   207                         control = AVKON_BUTTON
       
   208                             {
       
   209                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
   210                             states =
       
   211                                 {
       
   212                                 AVKON_BUTTON_STATE
       
   213                                     {
       
   214                                     txt     = qtn_browser_ext_tb_settings;  
       
   215                                     helptxt = qtn_browser_ext_tb_settings_tt;
       
   216                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
   217                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_settings;         
       
   218                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_settings_mask;
       
   219                                     extension = r_browser_ext_qgn_indi_browser_tb_settings;
       
   220                                     }
       
   221                                 };
       
   222                             };
       
   223                         },
       
   224                     TBAR_CTRL
       
   225                         {
       
   226                         type = EAknCtButton;
       
   227                         id = EWmlCmdOpenFeedsFolder;
       
   228                         
       
   229                         control = AVKON_BUTTON
       
   230                             {
       
   231                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
   232                             states =
       
   233                                 {
       
   234                                 AVKON_BUTTON_STATE
       
   235                                     {
       
   236                                     txt     = qtn_browser_ext_tb_view_feeds;
       
   237                                     helptxt = qtn_browser_ext_tb_view_feeds_tt;
       
   238                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
   239                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_feeds;
       
   240                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_feeds_mask;
       
   241                                     extension = r_browser_ext_qgn_indi_browser_tb_feeds;
       
   242                                     }
       
   243                                 };
       
   244                             };
       
   245                         },
       
   246                     TBAR_CTRL
       
   247                         {
       
   248                         type = EAknCtButton;
       
   249                         id = EWmlCmdShowSubscribeList;
       
   250                         
       
   251                         control = AVKON_BUTTON
       
   252                             {
       
   253                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
   254                             states =
       
   255                                 {
       
   256                                 AVKON_BUTTON_STATE
       
   257                                     {
       
   258                                     txt     = qtn_browser_ext_tb_subscribe_list;
       
   259                                     helptxt = qtn_browser_ext_tb_subscribe_list_tt;
       
   260                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
   261                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_rss;
       
   262                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_rss_mask;
       
   263                                     extension = r_browser_ext_qgn_indi_browser_tb_rss;
       
   264                                     }
       
   265                                 };
       
   266                             };
       
   267                         },
       
   268                     TBAR_CTRL
       
   269                         {
       
   270                         type = EAknCtButton;
       
   271                         id = EWmlCmdSwitchWindow;
       
   272                         
       
   273                         control = AVKON_BUTTON
       
   274                             {
       
   275                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
   276                             states =
       
   277                                 {
       
   278                                 AVKON_BUTTON_STATE
       
   279                                     {
       
   280                                     txt     = qtn_browser_ext_tb_switch_win;
       
   281                                     helptxt = qtn_browser_ext_tb_switch_win_tt;
       
   282                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
   283                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_switch_win;         
       
   284                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_switch_win_mask;
       
   285                                     extension = r_browser_ext_qgn_indi_browser_tb_switch_win;
       
   286                                     }
       
   287                                 };
       
   288                             };
       
   289                         },
       
   290                     TBAR_CTRL
       
   291                         {
       
   292                         type = EAknCtButton;
       
   293                         id = EWmlCmdSendAddressViaUnifiedMessage;
       
   294                         
       
   295                         control = AVKON_BUTTON
       
   296                             {
       
   297                             flags = KAknButtonRequestExitOnButtonUpEvent;
       
   298                             states =
       
   299                                 {
       
   300                                 AVKON_BUTTON_STATE
       
   301                                     {
       
   302                                     txt     = qtn_browser_ext_tb_send_url;
       
   303                                     helptxt = qtn_browser_ext_tb_send_url_tt;
       
   304                                     bmpfile = "\\Resource\\apps\\browser.mif";
       
   305                                     bmpid   = EMbmBrowserQgn_indi_browser_tb_send_url;
       
   306                                     bmpmask = EMbmBrowserQgn_indi_browser_tb_send_url_mask;
       
   307                                     extension = r_browser_ext_qgn_indi_browser_tb_send_url;
       
   308                                     }
       
   309                                 };
       
   310                             };
       
   311 	#ifndef BRDO_SINGLE_CLICK_ENABLED_FF
       
   312 			}
       
   313 	#else
       
   314 			},
       
   315 						
       
   316 		TBAR_CTRL
       
   317                        {
       
   318                        type = EAknCtButton;
       
   319                        id = EWmlCmdCloseWindow;
       
   320                        
       
   321                        control = AVKON_BUTTON
       
   322                            {
       
   323                            flags = KAknButtonRequestExitOnButtonUpEvent;
       
   324                            states =
       
   325                                {
       
   326                                AVKON_BUTTON_STATE
       
   327                                    {
       
   328                                    txt     = qtn_options_exit; //qtn_browser_list_close_window;
       
   329                                    helptxt = qtn_options_exit; //qtn_browser_list_close_window;
       
   330                                    bmpfile = "\\Resource\\apps\\browser.mif";
       
   331                                    bmpid   = EMbmBrowserQgn_indi_browser_tb_exit;         
       
   332                                    bmpmask = EMbmBrowserQgn_indi_browser_tb_exit_mask;
       
   333                                    extension = r_browser_ext_qgn_indi_browser_tb_exit;
       
   334                                    }
       
   335                                };
       
   336                            };
       
   337                        }     
       
   338 	#endif
       
   339                       
       
   340                     };
       
   341                 };
       
   342             },
       
   343             
       
   344         TBAR_CTRL
       
   345             {
       
   346             type = EAknCtButton;
       
   347             id = EWmlCmdGoToAddress;     
       
   348             
       
   349             control = AVKON_BUTTON
       
   350                 {
       
   351                 flags = 0;
       
   352                 states =
       
   353                     {
       
   354                     AVKON_BUTTON_STATE
       
   355                         {
       
   356                         txt     = "";  //Icon should always be visible instead of this
       
   357                         helptxt = qtn_browser_tb_gotoaddress_tt;
       
   358                         bmpfile = "\\Resource\\apps\\browser.mif";
       
   359                         bmpid   = EMbmBrowserQgn_indi_browser_tb_goto;         
       
   360                         bmpmask = EMbmBrowserQgn_indi_browser_tb_goto_mask;
       
   361                         extension = r_browser_ext_qgn_indi_browser_tb_goto;
       
   362                         }
       
   363                     };
       
   364                 };
       
   365             }, 
       
   366          TBAR_CTRL
       
   367             {
       
   368             type = EAknCtButton;
       
   369             id = EWmlCmdGoToAddressAndSearch;     
       
   370             control = AVKON_BUTTON
       
   371                 {
       
   372                 flags = 0;
       
   373                 states =
       
   374                     {
       
   375                     AVKON_BUTTON_STATE
       
   376                         {
       
   377                         txt     = "";  //Icon should always be visible instead of this
       
   378                         helptxt = qtn_is_tooltip_goto_search;
       
   379                         bmpfile = "\\Resource\\apps\\browser.mif";
       
   380                         bmpid   = EMbmBrowserQgn_indi_browser_tb_goto_and_search;         
       
   381                         bmpmask = EMbmBrowserQgn_indi_browser_tb_goto_and_search_mask;
       
   382                         extension = r_browser_ext_qgn_indi_browser_tb_goto_and_search;
       
   383                         }
       
   384                     };
       
   385                 };
       
   386             },  
       
   387          TBAR_CTRL
       
   388             {
       
   389             type = EAknCtButton;
       
   390             id = EWmlCmdHistoryBack;     
       
   391             
       
   392             control = AVKON_BUTTON
       
   393                 {
       
   394                 flags = 0;
       
   395                 states = 
       
   396                     {
       
   397                     AVKON_BUTTON_STATE
       
   398                         {
       
   399                         txt     = "";  //Icon should always be visible instead of this
       
   400                         helptxt = qtn_browser_tb_history_back_tt;
       
   401                         bmpfile = "\\Resource\\apps\\browser.mif";
       
   402                         bmpid   = EMbmBrowserQgn_indi_browser_tb_history_back;      
       
   403                         bmpmask = EMbmBrowserQgn_indi_browser_tb_history_back_mask;
       
   404                         extension = r_browser_ext_qgn_indi_browser_tb_history_back;
       
   405                         }
       
   406                     };
       
   407                 };
       
   408             },
       
   409         TBAR_CTRL
       
   410             {
       
   411             type = EAknCtButton;
       
   412             id = EWmlCmdFindPrevious;     
       
   413             
       
   414             control = AVKON_BUTTON
       
   415                 {
       
   416                 flags = 0;
       
   417                 states = 
       
   418                     {
       
   419                     AVKON_BUTTON_STATE
       
   420                         {
       
   421                         txt     = "";  //Icon should always be visible instead of this
       
   422                         helptxt = qtn_browser_tb_findprevious_tt;
       
   423                         bmpfile = "\\Resource\\apps\\browser.mif";
       
   424                         bmpid   = EMbmBrowserQgn_indi_browser_tb_find_kw_prev;         
       
   425                         bmpmask = EMbmBrowserQgn_indi_browser_tb_find_kw_prev_mask;
       
   426                         extension = r_browser_ext_qgn_indi_browser_tb_findkw_prev;
       
   427                         }
       
   428                     };
       
   429                 };
       
   430             },
       
   431         TBAR_CTRL
       
   432             {
       
   433             type = EAknCtButton;
       
   434             id = EWmlNoCmd;     
       
   435             control = AVKON_BUTTON
       
   436                 {
       
   437                 flags = 0;
       
   438                 states = 
       
   439                     {
       
   440                     AVKON_BUTTON_STATE
       
   441                         {
       
   442                         txt     = "";  //Icon should always be visible instead of this
       
   443                         helptxt = "";
       
   444                      //   bmpfile = ;
       
   445                      //   bmpid   = ;         
       
   446                      //   bmpmask = ;
       
   447                         extension = r_browser_ext_qgn_indi_browser_tb_blank;
       
   448                         }
       
   449                     };
       
   450                 };
       
   451             },
       
   452         TBAR_CTRL
       
   453             {
       
   454             type = EAknCtButton;
       
   455             id = EWmlCmdFindNext;     
       
   456             
       
   457             control = AVKON_BUTTON
       
   458                 {
       
   459                 flags = 0;
       
   460                 states = 
       
   461                     {
       
   462                     AVKON_BUTTON_STATE
       
   463                         {
       
   464                         txt     = "";  //Icon should always be visible instead of this
       
   465                         helptxt = qtn_browser_tb_findnext_tt;
       
   466                         bmpfile = "\\Resource\\apps\\browser.mif";
       
   467                         bmpid   = EMbmBrowserQgn_indi_browser_tb_find_kw_next;         
       
   468                         bmpmask = EMbmBrowserQgn_indi_browser_tb_find_kw_next_mask;
       
   469                         extension = r_browser_ext_qgn_indi_browser_tb_findkw_next;
       
   470                         }
       
   471                     };
       
   472                 };
       
   473             },
       
   474         TBAR_CTRL
       
   475             {
       
   476             type = EAknCtButton;
       
   477             id = EWmlCmdHistoryForward;     
       
   478             
       
   479             control = AVKON_BUTTON
       
   480                 {
       
   481                 flags = 0;
       
   482                 states = 
       
   483                     {
       
   484                     AVKON_BUTTON_STATE
       
   485                         {
       
   486                         txt     = "";  //Icon should always be visible instead of this
       
   487                         helptxt = qtn_browser_tb_history_forward_tt;
       
   488                         bmpfile = "\\Resource\\apps\\browser.mif";
       
   489                         bmpid   = EMbmBrowserQgn_indi_browser_tb_history_fw;         
       
   490                         bmpmask = EMbmBrowserQgn_indi_browser_tb_history_fw_mask;
       
   491                         extension = r_browser_ext_qgn_indi_browser_tb_history_fw;
       
   492                         }
       
   493                     };
       
   494                 };
       
   495             },
       
   496 	    
       
   497 #ifdef BRDO_SINGLE_CLICK_ENABLED_FF
       
   498 
       
   499 	TBAR_CTRL
       
   500             {
       
   501             type = EAknCtButton;
       
   502             id = EWmlCmdFavourites;     
       
   503             
       
   504             control = AVKON_BUTTON
       
   505                 {
       
   506                 flags = 0;
       
   507                 states =
       
   508                     {
       
   509                     AVKON_BUTTON_STATE
       
   510                         {                      
       
   511                         txt     = "";  
       
   512                         helptxt = qtn_browser_ext_tb_bm_tt;
       
   513                         bmpfile = "\\Resource\\apps\\browser.mif";
       
   514                         bmpid   = EMbmBrowserQgn_indi_browser_tb_bm;         
       
   515                         bmpmask = EMbmBrowserQgn_indi_browser_tb_bm_mask;   
       
   516                         extension = r_browser_ext_qgn_indi_browser_tb_bm;
       
   517                         }
       
   518                     };
       
   519                 };
       
   520             }
       
   521 #else	    
       
   522         TBAR_CTRL
       
   523             {
       
   524             type = EAknCtButton;
       
   525             id = EWmlCmdZoomSliderShow;     
       
   526             
       
   527             control = AVKON_BUTTON
       
   528                 {
       
   529                 flags = 0;
       
   530                 states = 
       
   531                     {
       
   532                     AVKON_BUTTON_STATE
       
   533                         {
       
   534                         txt     = "";  //Icon should always be visible instead of this
       
   535                         helptxt = qtn_browser_tb_zoomshow_tt;
       
   536                         bmpfile = "\\Resource\\apps\\browser.mif";
       
   537                         bmpid   = EMbmBrowserQgn_indi_browser_tb_zoom_in;         
       
   538                         bmpmask = EMbmBrowserQgn_indi_browser_tb_zoom_in_mask;
       
   539                         extension = r_browser_ext_qgn_indi_browser_tb_zoomin;
       
   540                         }
       
   541                     };
       
   542                 };
       
   543             }
       
   544 #endif
       
   545         };
       
   546     }
       
   547 
       
   548 #else
       
   549 
       
   550 // Common toolbar resource 
       
   551 RESOURCE AVKON_TOOLBAR r_content_view_toolbar
       
   552     {
       
   553     }
       
   554 
       
   555 #endif