00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 NAME CLOK
00032
00033 #include <eikon.rh>
00034 #include <appinfo.rh>
00035 #include <eikcore.rsg>
00036
00037 #include "ClockExample.hrh"
00038
00039 RESOURCE RSS_SIGNATURE { }
00040
00041 RESOURCE TBUF { buf=""; }
00042
00043 RESOURCE EIK_APP_INFO
00044 {
00045 hotkeys=r_hotkeys;
00046 menubar=r_menubar;
00047 }
00048
00049 RESOURCE HOTKEYS r_hotkeys
00050 {
00051 control=
00052 {
00053 HOTKEY { command=ETestDo10; key='l'; },
00054 HOTKEY { command=ETestDo11; key='r'; },
00055
00056 HOTKEY { command=ETestDo12; key='h'; },
00057 HOTKEY { command=ETestDo13; key='s'; },
00058
00059 HOTKEY { command=EEikCmdExit; key='e'; }
00060 };
00061 shift_control=
00062 {
00063 HOTKEY { command=ETestDo0; key='l'; },
00064 HOTKEY { command=ETestDo1; key='r'; },
00065
00066 HOTKEY { command=ETestDo2; key='h'; },
00067 HOTKEY { command=ETestDo3; key='s'; }
00068 };
00069 }
00070
00071 RESOURCE MENU_BAR r_menubar
00072 {
00073 titles=
00074 {
00075 MENU_TITLE { menu_pane=r_clock_menu; txt="Clock"; }
00076 };
00077 }
00078
00079 RESOURCE MENU_PANE r_clock_menu
00080 {
00081 items=
00082 {
00083 MENU_ITEM { command=EExampleItem0; cascade=r_analog_menu; txt="Analogue"; },
00084 MENU_ITEM { command=EExampleItem1; cascade=r_digital_menu; txt="Digital"; },
00085 MENU_ITEM { command=EEikCmdExit; txt="Close"; }
00086 };
00087 }
00088
00089 RESOURCE MENU_PANE r_analog_menu
00090 {
00091 items=
00092 {
00093 MENU_ITEM { command=EAnalogPostion; cascade=r_analog_pos_menu; txt="Shift"; },
00094 MENU_ITEM { command=ETestDo12; txt="Hide"; },
00095 MENU_ITEM { command=ETestDo13; txt="Show"; },
00096 MENU_ITEM { command=EAnalogIncrement;cascade=r_analog_incr_menu; txt="Increment"; }
00097 };
00098 }
00099
00100 RESOURCE MENU_PANE r_analog_pos_menu
00101 {
00102 items=
00103 {
00104 MENU_ITEM { command=ETestDo10; txt="Left"; },
00105 MENU_ITEM { command=ETestDo11; txt="Right"; }
00106 };
00107 }
00108
00109 RESOURCE MENU_PANE r_analog_incr_menu
00110 {
00111 items=
00112 {
00113 MENU_ITEM { command=ETestDo14; txt="one hour"; },
00114 MENU_ITEM { command=ETestDo15; txt="half an hour"; },
00115 MENU_ITEM { command=ETestDo16; txt="one min"; },
00116 MENU_ITEM { command=ETestDo17; txt="one second"; }
00117 };
00118 }
00119
00120
00121 RESOURCE MENU_PANE r_digital_menu
00122 {
00123 items=
00124 {
00125 MENU_ITEM { command=EDigitalPostion; cascade=r_digital_pos_menu; txt="Shift"; },
00126 MENU_ITEM { command=ETestDo2; txt="Hide"; },
00127 MENU_ITEM { command=ETestDo3; txt="Show"; },
00128 MENU_ITEM { command=EDigitalIncrement;cascade=r_digital_incr_menu; txt="Increment"; }
00129 };
00130 }
00131
00132 RESOURCE MENU_PANE r_digital_pos_menu
00133 {
00134 items=
00135 {
00136 MENU_ITEM { command=ETestDo0; txt="Left"; },
00137 MENU_ITEM { command=ETestDo1; txt="Right"; }
00138 };
00139 }
00140
00141 RESOURCE MENU_PANE r_digital_incr_menu
00142 {
00143 items=
00144 {
00145 MENU_ITEM { command=ETestDo4; txt="one hour"; },
00146 MENU_ITEM { command=ETestDo5; txt="half an hour"; },
00147 MENU_ITEM { command=ETestDo6; txt="one min"; },
00148 MENU_ITEM { command=ETestDo7; txt="one second"; }
00149 };
00150 }
00151
00152
00153 RESOURCE TBUF r_title_text_clock_example { buf="Welcome to the clock application example"; }
00154