commonuisupport/uikon/test/tviews/tview2/tview2.RSS
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 NAME TVW2
       
    17 
       
    18 #include <techview/eikon.rh>
       
    19 #include <techview/eikon.rsg>
       
    20 #include <eikon.mbg>
       
    21 
       
    22 #include "tvwview.RH"
       
    23 #include "tview2.HRH"
       
    24 
       
    25 //
       
    26 // Essential resources.
       
    27 //
       
    28 
       
    29 RESOURCE RSS_SIGNATURE { }
       
    30 
       
    31 RESOURCE TBUF { buf=""; }
       
    32 
       
    33 RESOURCE EIK_APP_INFO
       
    34 	{
       
    35 	menubar=r_vw_menubar;
       
    36 	hotkeys=r_vw_hotkeys;
       
    37 	}
       
    38 
       
    39 //
       
    40 // Hot keys.
       
    41 //
       
    42 
       
    43 RESOURCE HOTKEYS r_vw_hotkeys
       
    44     {
       
    45     control=
       
    46         {
       
    47         HOTKEY { command=EEikCmdExit; key='e'; },
       
    48         HOTKEY { command=EDisplayTaskList; key='t'; },
       
    49         HOTKEY { command=ESwitchView; key='s'; }
       
    50         };
       
    51     }
       
    52 
       
    53 //
       
    54 // Menu bar.
       
    55 //
       
    56 
       
    57 RESOURCE MENU_BAR r_vw_menubar
       
    58     {
       
    59     titles=
       
    60         {
       
    61         MENU_TITLE { menu_pane=r_vw_file_menu; txt="File"; },
       
    62 	    MENU_TITLE { menu_pane=r_vw_display_menu; txt="Display"; },
       
    63 	    MENU_TITLE { menu_pane=r_vw_exception_test_menu; txt="Excptn. Test"; },
       
    64 	    MENU_TITLE { menu_pane=r_vw_abuse_test_menu; txt="Abuse Test"; }
       
    65  		};
       
    66     }
       
    67 
       
    68 RESOURCE MENU_PANE r_vw_display_menu
       
    69 	{
       
    70 	items=
       
    71 		{
       
    72         MENU_ITEM { command=ESwitchView; txt="Switch view dialog"; },
       
    73 		MENU_ITEM { command=EDisplayRichText; txt="Rich text dialog"; },
       
    74         MENU_ITEM { command=EDisplayTaskList; txt="Task list"; }
       
    75         };
       
    76     }
       
    77 
       
    78 RESOURCE MENU_PANE r_vw_file_menu
       
    79 	{
       
    80 	items=
       
    81 		{
       
    82 		MENU_ITEM { command=EEikCmdExit; txt="Close"; }
       
    83         };
       
    84     }
       
    85 
       
    86 RESOURCE MENU_PANE r_vw_exception_test_menu
       
    87 	{
       
    88 	items=
       
    89 		{
       
    90         MENU_ITEM { command=ESuccesiveAllocFail; txt="Test Succesive Alloc Failure"; },
       
    91         MENU_ITEM { command=EActivationOOM; txt="Test Activation OOM"; },
       
    92         MENU_ITEM { command=EStartMissingApp; txt="Test Start Missing App"; },
       
    93         MENU_ITEM { command=EPanicedActivation; txt="Test Paniced Activation"; },
       
    94         MENU_ITEM { command=EPanicedDeactivation; txt="Test Paniced Deactivation"; },
       
    95         MENU_ITEM { command=EPanicApp; txt="Test Panic"; },
       
    96         MENU_ITEM { command=ESlowActivation; txt="Test Slow Activation"; },
       
    97         MENU_ITEM { command=ESlowDeactivation; txt="Test Slow Deactivation"; }
       
    98         };
       
    99     }
       
   100 
       
   101 RESOURCE MENU_PANE r_vw_abuse_test_menu
       
   102 	{
       
   103 	items=
       
   104 		{
       
   105         MENU_ITEM { command=EWaitingActivation; txt="Test Waiting Activation"; }
       
   106         };
       
   107     }
       
   108 
       
   109 //
       
   110 // View switch dialog.
       
   111 //
       
   112 	
       
   113 RESOURCE DIALOG r_vw_view_switch_dialog
       
   114     {
       
   115 	flags=EEikDialogFlagWait|EEikDialogFlagButtonsRight;
       
   116     title="Switch view";
       
   117 	buttons=R_EIK_BUTTONS_CANCEL_OK;
       
   118     items=
       
   119         {
       
   120         DLG_LINE
       
   121             {
       
   122             type=EEikCtChoiceList;
       
   123             prompt="App:";
       
   124             id=ESwitchDlg_AppChoice;
       
   125             control=CHOICELIST
       
   126                 {
       
   127                 array_id=r_vw_switch_dlg_app_choice_array;
       
   128                 flags=EEikChlistIncrementalMatching;
       
   129                 };
       
   130             },
       
   131         DLG_LINE
       
   132             {
       
   133             type=EEikCtChoiceList;
       
   134             prompt="View:";
       
   135             id=ESwitchDlg_ViewChoice;
       
   136             control=CHOICELIST
       
   137                 {
       
   138                 array_id=r_vw_switch_dlg_view_choice_array;
       
   139                 flags=EEikChlistIncrementalMatching;
       
   140                 };
       
   141             },
       
   142 		DLG_LINE
       
   143 			{
       
   144             prompt="Custom msg:";
       
   145             type=EEikCtEdwin;
       
   146             id=ESwitchDlg_CustomMsg;
       
   147 			itemflags=0;
       
   148             control=EDWIN { maxlength=256; width=8; };
       
   149             }
       
   150         };
       
   151     }
       
   152 
       
   153 RESOURCE ARRAY r_vw_switch_dlg_app_choice_array
       
   154 	{
       
   155 	items=
       
   156 		{
       
   157 		LBUF { txt="TVIEW1"; },
       
   158 		LBUF { txt="TVIEW2"; }
       
   159 		};
       
   160 	}
       
   161 
       
   162 RESOURCE ARRAY r_vw_switch_dlg_view_choice_array
       
   163 	{
       
   164 	items=
       
   165 		{
       
   166 		LBUF { txt="View 1"; },
       
   167 		LBUF { txt="View 2"; }
       
   168 		};
       
   169 	}
       
   170 
       
   171 //
       
   172 // Rich text dialog
       
   173 //
       
   174 
       
   175 RESOURCE DIALOG r_vw_rtexted_dialog
       
   176 	{
       
   177 	flags=EEikDialogFlagWait;
       
   178 	buttons=R_EIK_BUTTONS_CANCEL_OK;
       
   179 	title="Embed objects in editor";
       
   180 	items=
       
   181 		{
       
   182 		DLG_LINE
       
   183 			{
       
   184 			type=EEikCtRichTextEditor;
       
   185 			id=ERtextedDlg_Editor;
       
   186 			control=RTXTED
       
   187 				{
       
   188 				width=200;
       
   189 				height=80;
       
   190 				numlines=0;
       
   191 				};
       
   192 			}
       
   193 		};
       
   194 	}
       
   195