examples/AppFramework/Clock/ClockExample.rss

00001 /*
00002 Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
00003 
00004 Redistribution and use in source and binary forms, with or without
00005 modification, are permitted provided that the following conditions are met:
00006 
00007 * Redistributions of source code must retain the above copyright notice, this
00008   list of conditions and the following disclaimer.
00009 * Redistributions in binary form must reproduce the above copyright notice,
00010   this list of conditions and the following disclaimer in the documentation
00011   and/or other materials provided with the distribution.
00012 * Neither the name of Nokia Corporation nor the names of its contributors
00013   may be used to endorse or promote products derived from this software
00014   without specific prior written permission.
00015 
00016 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00017 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00018 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00019 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00020 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00021 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00022 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00023 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00024 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00025 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026 
00027 Description:  
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 

Generated by  doxygen 1.6.2