htiui/HtiAdmin/data/HtiAdmin.rss
changeset 0 d6fe6244b863
equal deleted inserted replaced
-1:000000000000 0:d6fe6244b863
       
     1 /*
       
     2 * Copyright (c) 2009 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 "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:  Resource definitions for HtiAdmin
       
    15 *
       
    16 */
       
    17 
       
    18 NAME HTIA
       
    19 
       
    20 // INCLUDES
       
    21 #include <eikon.rh>
       
    22 #include <eikon.rsg>
       
    23 #include <avkon.rh>
       
    24 #include <avkon.rsg>
       
    25 #include <appinfo.rh>
       
    26 #include <data_caging_paths_strings.hrh>
       
    27 #include "HtiAdmin.hrh"
       
    28 
       
    29 
       
    30 // RESOURCE DEFINITIONS
       
    31 
       
    32 // ---------------------------------------------------------
       
    33 //
       
    34 //    Define the resource file signature
       
    35 //    This resource should be empty.
       
    36 //
       
    37 // ---------------------------------------------------------
       
    38 //
       
    39 RESOURCE RSS_SIGNATURE { }
       
    40 
       
    41 // ---------------------------------------------------------
       
    42 //
       
    43 //    Default Document Name
       
    44 //
       
    45 // ---------------------------------------------------------
       
    46 //
       
    47 RESOURCE TBUF r_default_document_name { buf=""; }
       
    48 
       
    49 // ---------------------------------------------------------
       
    50 //
       
    51 //    Define default menu and CBA key.
       
    52 //
       
    53 // ---------------------------------------------------------
       
    54 //
       
    55 RESOURCE EIK_APP_INFO
       
    56     {
       
    57     menubar = r_htiadmin_menubar;
       
    58     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
       
    59     }
       
    60 
       
    61 
       
    62 // ---------------------------------------------------------
       
    63 //
       
    64 //   r_htiadmin_menubar
       
    65 //   Menubar for HtiAdmin example
       
    66 //
       
    67 // ---------------------------------------------------------
       
    68 //
       
    69 RESOURCE MENU_BAR r_htiadmin_menubar
       
    70     {
       
    71     titles =
       
    72         {
       
    73         MENU_TITLE {menu_pane = r_htiadmin_menu;}
       
    74         };
       
    75     }
       
    76 
       
    77 
       
    78 // ---------------------------------------------------------
       
    79 //
       
    80 //   Options menu items
       
    81 //
       
    82 //
       
    83 // ---------------------------------------------------------
       
    84 
       
    85 RESOURCE MENU_PANE r_htiadmin_submenu_logs
       
    86     {
       
    87     items =
       
    88         {
       
    89         MENU_ITEM {command = EHtiAdminCreateLogFolder; txt = "Create c:\\logs\\hti";},
       
    90         MENU_ITEM {command = EHtiAdminRemoveLogFolder; txt = "Remove c:\\logs\\hti";},
       
    91         MENU_ITEM {command = EHtiAdminClearLogs;       txt = "Clear";}
       
    92         };
       
    93     }
       
    94 
       
    95 RESOURCE MENU_PANE r_htiadmin_submenu_priority
       
    96     {
       
    97     items =
       
    98         {
       
    99         MENU_ITEM {command = EHtiAdminPriorityBackground;   flags = EEikMenuItemCheckBox; txt="Background"; },
       
   100         MENU_ITEM {command = EHtiAdminPriorityForeground;   flags = EEikMenuItemCheckBox; txt="Foreground"; },
       
   101         MENU_ITEM {command = EHtiAdminPriorityHigh;         flags = EEikMenuItemCheckBox; txt="High"; },
       
   102         MENU_ITEM {command = EHtiAdminPriorityAbsoluteHigh; flags = EEikMenuItemCheckBox; txt="AbsoluteHigh"; }
       
   103         };
       
   104     }
       
   105 
       
   106 RESOURCE MENU_PANE r_htiadmin_submenu_watchdog
       
   107     {
       
   108     items =
       
   109         {
       
   110         MENU_ITEM {command = EHtiAdminWatchDogEnable;  flags = EEikMenuItemCheckBox; txt="Enable"; },
       
   111         MENU_ITEM {command = EHtiAdminWatchDogDisable; flags = EEikMenuItemCheckBox; txt="Disable"; }
       
   112         };
       
   113     }
       
   114 
       
   115 RESOURCE MENU_PANE r_htiadmin_submenu_console
       
   116     {
       
   117     items =
       
   118         {
       
   119         MENU_ITEM {command = EHtiAdminConsoleEnable;  flags = EEikMenuItemCheckBox; txt="Enable"; },
       
   120         MENU_ITEM {command = EHtiAdminConsoleDisable; flags = EEikMenuItemCheckBox; txt="Disable"; }
       
   121         };
       
   122     }
       
   123 
       
   124 RESOURCE MENU_PANE r_htiadmin_submenu_error_dialogs
       
   125     {
       
   126     items =
       
   127         {
       
   128         MENU_ITEM {command = EHtiAdminErrorDialogsEnable;  flags = EEikMenuItemCheckBox; txt="Enable"; },
       
   129         MENU_ITEM {command = EHtiAdminErrorDialogsDisable; flags = EEikMenuItemCheckBox; txt="Disable"; }
       
   130         };
       
   131     }
       
   132 
       
   133 RESOURCE MENU_PANE r_htiadmin_submenu_autostart
       
   134     {
       
   135     items =
       
   136         {
       
   137         MENU_ITEM {command = EHtiAdminAutoStartEnable;  flags = EEikMenuItemCheckBox; txt="Enable"; },
       
   138         MENU_ITEM {command = EHtiAdminAutoStartDisable; flags = EEikMenuItemCheckBox; txt="Disable"; }
       
   139         };
       
   140     }
       
   141 
       
   142 RESOURCE MENU_PANE r_htiadmin_submenu_set_param
       
   143     {
       
   144     items =
       
   145         {
       
   146         MENU_ITEM {command = EHtiAdminHtiCfg;           txt = "Hti.cfg";},
       
   147         MENU_ITEM {command = EHtiAdminHtiBtCommCfg;     txt = "HtiBtComm.cfg";},
       
   148         MENU_ITEM {command = EHtiAdminHtiSerialCommCfg; txt = "HtiSerialComm.cfg";},
       
   149         MENU_ITEM {command = EHtiAdminHtiIPCommCfg;     txt = "HtiIPComm.cfg";}
       
   150         };
       
   151     }
       
   152 
       
   153 RESOURCE MENU_PANE r_htiadmin_submenu_options
       
   154     {
       
   155     items =
       
   156         {
       
   157         MENU_ITEM {command = EHtiAdminSubComms;        txt = "Comms";},
       
   158         MENU_ITEM {command = EHtiAdminSubAutoStart;    cascade = r_htiadmin_submenu_autostart;     txt = "AutoStart";},
       
   159         MENU_ITEM {command = EHtiAdminSubLogs;         cascade = r_htiadmin_submenu_logs;          txt = "Logs";},
       
   160         MENU_ITEM {command = EHtiAdminSubPriority;     cascade = r_htiadmin_submenu_priority;      txt = "Priority";},
       
   161         MENU_ITEM {command = EHtiAdminSubWatchDog;     cascade = r_htiadmin_submenu_watchdog;      txt = "Watchdog";},
       
   162         MENU_ITEM {command = EHtiAdminSubConsole;      cascade = r_htiadmin_submenu_console;       txt = "Console";},
       
   163         MENU_ITEM {command = EHtiAdminSubErrorDialogs; cascade = r_htiadmin_submenu_error_dialogs; txt = "Error dialogs";},
       
   164         MENU_ITEM {command = EHtiAdminSubSetParam;     cascade = r_htiadmin_submenu_set_param;     txt = "Set parameter";}
       
   165         };
       
   166     }
       
   167 
       
   168 // ---------------------------------------------------------
       
   169 //
       
   170 //   r_htiadmin_menu
       
   171 //   Menu for "Options"
       
   172 //
       
   173 // ---------------------------------------------------------
       
   174 //
       
   175 RESOURCE MENU_PANE r_htiadmin_menu
       
   176     {
       
   177     items =
       
   178         {
       
   179         MENU_ITEM {command = EHtiAdminStart;   txt = "Start";},
       
   180         MENU_ITEM {command = EHtiAdminStop;    txt = "Stop";},
       
   181         MENU_ITEM {command = EHtiAdminSubOptions; cascade = r_htiadmin_submenu_options;   txt = "Options";},
       
   182         MENU_ITEM {command = EHtiAdminAbout;   txt = "About";},
       
   183         MENU_ITEM {command = EAknSoftkeyExit;  txt = "Exit";}
       
   184         };
       
   185     }
       
   186 
       
   187 
       
   188 RESOURCE DIALOG r_numeric_query
       
   189   {
       
   190   flags = EGeneralQueryFlags;
       
   191   buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   192   items =
       
   193     {
       
   194     DLG_LINE
       
   195       {
       
   196       type = EAknCtQuery;
       
   197       id = EGeneralQuery;
       
   198       control = AVKON_DATA_QUERY
       
   199         {
       
   200         layout = EDataLayout;
       
   201         control = EDWIN
       
   202           {
       
   203           flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
       
   204           default_input_mode = EAknEditorNumericInputMode;
       
   205           };
       
   206         };
       
   207       }
       
   208     };
       
   209   }
       
   210 
       
   211 RESOURCE DIALOG r_text_query
       
   212   {
       
   213   flags = EGeneralQueryFlags;
       
   214   buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   215   items =
       
   216     {
       
   217     DLG_LINE
       
   218       {
       
   219       type = EAknCtQuery;
       
   220       id = EGeneralQuery;
       
   221       control = AVKON_DATA_QUERY
       
   222         {
       
   223         layout = EDataLayout;
       
   224         control = EDWIN
       
   225           {
       
   226           flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
       
   227           default_input_mode = EAknEditorTextInputMode;
       
   228           };
       
   229         };
       
   230       }
       
   231     };
       
   232   }
       
   233 
       
   234 RESOURCE AVKON_LIST_QUERY r_query_dialog
       
   235 {
       
   236    flags = EGeneralQueryFlags;
       
   237    softkeys = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   238    items =
       
   239    {
       
   240       AVKON_LIST_QUERY_DLG_LINE
       
   241       {
       
   242          control = AVKON_LIST_QUERY_CONTROL
       
   243          {
       
   244             listtype = EAknCtSinglePopupMenuListBox;
       
   245             listbox = AVKON_LIST_QUERY_LIST
       
   246             {
       
   247             };
       
   248             heading = "Select Option";
       
   249          };
       
   250       }
       
   251    };
       
   252 }
       
   253 
       
   254 RESOURCE AVKON_LIST_QUERY r_select_iap_dialog
       
   255 {
       
   256    flags = EGeneralQueryFlags;
       
   257    softkeys = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   258    items =
       
   259    {
       
   260       AVKON_LIST_QUERY_DLG_LINE
       
   261       {
       
   262          control = AVKON_LIST_QUERY_CONTROL
       
   263          {
       
   264             listtype = EAknCtSinglePopupMenuListBox;
       
   265             listbox = AVKON_LIST_QUERY_LIST
       
   266             {
       
   267             };
       
   268             heading = "Select IAP";
       
   269          };
       
   270       }
       
   271    };
       
   272 }
       
   273 
       
   274 // ---------------------------------------------------------
       
   275 //
       
   276 //   r_htiadmin_about_dialog
       
   277 //   About dialog
       
   278 //
       
   279 // ---------------------------------------------------------
       
   280 //
       
   281 RESOURCE DIALOG r_htiadmin_about_dialog
       
   282    {
       
   283    flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
       
   284    buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
       
   285    items=
       
   286        {
       
   287        DLG_LINE
       
   288            {
       
   289            type = EAknCtPopupHeadingPane;
       
   290            id = EAknMessageQueryHeaderId;
       
   291            control = AVKON_HEADING
       
   292                {
       
   293                label = "About HTI Admin";
       
   294                headinglayout = R_AVKON_WML_SIGN_QUERY_HEADING_PANE;
       
   295                };
       
   296            },
       
   297        DLG_LINE
       
   298            {
       
   299            type = EAknCtMessageQuery;
       
   300            id = EAknMessageQueryContentId;
       
   301            control = AVKON_MESSAGE_QUERY
       
   302                {             
       
   303                };
       
   304            }
       
   305        };
       
   306    }
       
   307 
       
   308 // ---------------------------------------------------------
       
   309 //
       
   310 //   r_htiadmin_about_text
       
   311 //   Text for the About dialog
       
   312 //
       
   313 // ---------------------------------------------------------
       
   314 //
       
   315 RESOURCE TBUF r_htiadmin_about_text { buf="Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved."; }
       
   316 
       
   317 // End of File