widgets/widgetapp/data/WidgetUi.rss
changeset 0 dd21522fd290
child 5 10e98eab6f85
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Main rss file for WidgetUI
       
    15 *
       
    16 */
       
    17 
       
    18 NAME    WidU // 4 letter ID
       
    19 
       
    20 //  INCLUDE FILES
       
    21 #include <bldvariant.hrh>
       
    22 #include <eikon.rh>
       
    23 #include "WidgetUi.hrh"
       
    24 #include <WidgetUi.loc>
       
    25 #include <avkon.rsg>
       
    26 #include <avkon.rh>
       
    27 #include <avkon.mbg>
       
    28 #include <avkon.loc>
       
    29 #include <data_caging_paths_strings.hrh>
       
    30 #include <appinfo.rh>
       
    31 
       
    32 //  RESOURCE DEFINITIONS
       
    33 
       
    34 RESOURCE RSS_SIGNATURE { }
       
    35 
       
    36 RESOURCE TBUF { buf = "WidgetUi"; }
       
    37 
       
    38 RESOURCE EIK_APP_INFO
       
    39     {
       
    40     cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
       
    41     }
       
    42 
       
    43 RESOURCE AVKON_VIEW r_widgetui_window_view
       
    44     {
       
    45     hotkeys = r_widgetui_hotkeys;
       
    46     menubar = r_widgetui_menubar;
       
    47     //cba=r_widgetui_window_view_softkeys;
       
    48     }
       
    49 
       
    50 
       
    51 RESOURCE LOCALISABLE_APP_INFO r_widgetui_localisable_app_info
       
    52     {
       
    53     short_caption = "WidgetUI";
       
    54     caption_and_icon =
       
    55     CAPTION_AND_ICON_INFO
       
    56         {
       
    57         caption = "WidgetUI";
       
    58         };
       
    59     }
       
    60 
       
    61 RESOURCE CBA r_widgetui_window_view_softkeys
       
    62     {
       
    63       flags = EAknCBAFlagRespondWhenInvisible;
       
    64 	    buttons = 
       
    65           {
       
    66           CBA_BUTTON {id=EAknSoftkeyOptions; txt=text_softkey_option;},
       
    67           CBA_BUTTON {id=EAknSoftkeyExit; txt=text_softkey_exit;},
       
    68           CBA_BUTTON {id=ECmdMsk; txt=text_softkey_empty;}
       
    69           };
       
    70     }
       
    71 
       
    72 RESOURCE CBA_BUTTON r_widgetui_window_view_softkeys_cancel 
       
    73     {
       
    74     id=EAknSoftkeyCancel; 
       
    75     txt=text_softkey_cancel;
       
    76     }
       
    77 
       
    78 RESOURCE CBA_BUTTON r_widgetui_window_view_softkeys_done 
       
    79     {
       
    80     id=EAknSoftkeyDone; 
       
    81     txt=text_softkey_done;
       
    82     }
       
    83 
       
    84 
       
    85 // ============================================================================
       
    86 //
       
    87 //    r_widgetui_hotkeys
       
    88 //    Hot keys defined for widget UI.
       
    89 //
       
    90 // ============================================================================
       
    91 //
       
    92 RESOURCE HOTKEYS r_widgetui_hotkeys
       
    93     {
       
    94     control=
       
    95         {
       
    96         HOTKEY { command = EAknCmdExit; key = 'e'; }
       
    97         };
       
    98     }
       
    99 
       
   100 // ============================================================================
       
   101 //
       
   102 //    r_widgetui_menubar
       
   103 //    menu bar
       
   104 //
       
   105 // ============================================================================
       
   106 //
       
   107 RESOURCE MENU_BAR r_widgetui_menubar
       
   108     {
       
   109     titles=
       
   110         {
       
   111         MENU_TITLE { menu_pane = r_widgetui_menu; }
       
   112         };
       
   113     }
       
   114 
       
   115 // ============================================================================
       
   116 //
       
   117 //    r_widgetui_menu
       
   118 //    widget menu items
       
   119 //
       
   120 // ============================================================================
       
   121 //
       
   122 RESOURCE MENU_PANE r_widgetui_menu
       
   123     {
       
   124     items=
       
   125         {
       
   126 	MENU_ITEM { command = EEikCmdExit; txt = text_softkey_exit; }
       
   127         };
       
   128     }
       
   129 
       
   130 RESOURCE DIALOG r_widgetui_ok_note
       
   131     {
       
   132     flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar |
       
   133             EEikDialogFlagCbaButtons | EEikDialogFlagWait;
       
   134     items =
       
   135         {
       
   136         DLG_LINE
       
   137             {
       
   138             type = EAknCtNote;
       
   139             id = EGeneralNote;
       
   140             control = AVKON_NOTE 
       
   141                 { 
       
   142                 layout = EGeneralLayout;
       
   143                 singular_label = "";
       
   144                 plural_label = "";
       
   145                 animation = R_QGN_NOTE_OK_ANIM;
       
   146                 };
       
   147             }
       
   148         };
       
   149     }
       
   150 
       
   151 // ================== STRING RESOURCES ========================================
       
   152 
       
   153 // query to grant network access
       
   154 RESOURCE TBUF r_widgetui_network_access { buf = qtn_widgetui_network_access; }
       
   155 
       
   156 // softkey response text
       
   157 RESOURCE TBUF r_widgetui_softkey_yes { buf = qtn_widgetui_softkey_yes; }
       
   158 
       
   159 // softkey response text
       
   160 RESOURCE TBUF r_widgetui_softkey_no { buf = qtn_widgetui_softkey_no; }
       
   161 
       
   162 // non mobile widget note
       
   163 RESOURCE TBUF r_widgetui_strict_mode_access { buf = qtn_widgetui_strict_mode_access; }
       
   164 
       
   165 // out of memory note
       
   166 RESOURCE TBUF r_widgetui_oom_event { buf = qtn_widgetui_oom_event; }
       
   167 
       
   168 // Softkey Exit
       
   169 RESOURCE TBUF r_widgetui_softkey_exit { buf = text_softkey_exit; }
       
   170 
       
   171 
       
   172 // LSK Option
       
   173 RESOURCE TBUF r_widgetui_softkey_option { buf = text_softkey_option; }
       
   174 
       
   175 
       
   176 // query to grant permission for phone inofrmation and network access
       
   177 RESOURCE TBUF r_widgetui_platform_access { buf = qtn_widgetui_blanketpermission_prompt; }
       
   178 RESOURCE TBUF r_widgetui_please_work { buf = qtn_widgetui_blanketpermission_prompt; }
       
   179 
       
   180 // End of File