diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_clock_example_8rss-source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_clock_example_8rss-source.html Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,151 @@ + + +TB10.1 Example Applications: examples/AppFramework/Clock/ClockExample.rss Source File + + + + +

examples/AppFramework/Clock/ClockExample.rss

00001 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+00002 // All rights reserved.
+00003 // This component and the accompanying materials are made available
+00004 // under the terms of "Eclipse Public License v1.0"
+00005 // which accompanies this distribution, and is available
+00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
+00007 //
+00008 // Initial Contributors:
+00009 // Nokia Corporation - initial contribution.
+00010 //
+00011 // Contributors:
+00012 //
+00013 // Description:
+00014 //
+00015 
+00016 NAME CLOK
+00017 
+00018 #include <eikon.rh>
+00019 #include <appinfo.rh>
+00020 #include <eikcore.rsg>
+00021 
+00022 #include "ClockExample.hrh"
+00023 
+00024 RESOURCE RSS_SIGNATURE { }
+00025 
+00026 RESOURCE TBUF { buf=""; }
+00027 
+00028 RESOURCE EIK_APP_INFO
+00029         {
+00030         hotkeys=r_hotkeys;
+00031         menubar=r_menubar;
+00032         }
+00033 
+00034 RESOURCE HOTKEYS r_hotkeys
+00035     {
+00036     control=
+00037         {
+00038         HOTKEY { command=ETestDo10; key='l'; },
+00039         HOTKEY { command=ETestDo11; key='r'; }, 
+00040         
+00041         HOTKEY { command=ETestDo12; key='h'; },
+00042         HOTKEY { command=ETestDo13; key='s'; },
+00043         
+00044         HOTKEY { command=EEikCmdExit; key='e'; }
+00045         };
+00046     shift_control=
+00047         {
+00048         HOTKEY { command=ETestDo0; key='l'; },
+00049         HOTKEY { command=ETestDo1; key='r'; }, 
+00050         
+00051         HOTKEY { command=ETestDo2; key='h'; },
+00052         HOTKEY { command=ETestDo3; key='s'; }
+00053         };
+00054     }
+00055 
+00056 RESOURCE MENU_BAR r_menubar
+00057     {
+00058     titles=
+00059         {
+00060         MENU_TITLE { menu_pane=r_clock_menu; txt="Clock"; }
+00061                 };
+00062     }
+00063   
+00064 RESOURCE MENU_PANE r_clock_menu
+00065         {
+00066         items=
+00067                 {
+00068                 MENU_ITEM { command=EExampleItem0; cascade=r_analog_menu; txt="Analogue"; },
+00069                 MENU_ITEM { command=EExampleItem1; cascade=r_digital_menu; txt="Digital"; },
+00070                 MENU_ITEM { command=EEikCmdExit; txt="Close"; }
+00071                 };
+00072         }
+00073 
+00074 RESOURCE MENU_PANE r_analog_menu
+00075         {
+00076         items=
+00077                 {
+00078                 MENU_ITEM { command=EAnalogPostion; cascade=r_analog_pos_menu; txt="Shift"; },          
+00079                 MENU_ITEM { command=ETestDo12; txt="Hide"; },
+00080                 MENU_ITEM { command=ETestDo13; txt="Show"; },
+00081                 MENU_ITEM { command=EAnalogIncrement;cascade=r_analog_incr_menu; txt="Increment"; }
+00082                 };
+00083         }
+00084 
+00085 RESOURCE MENU_PANE r_analog_pos_menu
+00086         {
+00087         items=
+00088                 {
+00089                 MENU_ITEM { command=ETestDo10; txt="Left"; },
+00090                 MENU_ITEM { command=ETestDo11; txt="Right"; }
+00091                 };
+00092         }
+00093     
+00094 RESOURCE MENU_PANE r_analog_incr_menu
+00095         {
+00096         items=
+00097                 {
+00098                 MENU_ITEM { command=ETestDo14; txt="one hour"; },
+00099                 MENU_ITEM { command=ETestDo15; txt="half an hour"; },
+00100                 MENU_ITEM { command=ETestDo16; txt="one min"; },
+00101                 MENU_ITEM { command=ETestDo17; txt="one second"; }
+00102                 };
+00103         }
+00104 
+00105     
+00106 RESOURCE MENU_PANE r_digital_menu
+00107         {
+00108         items=
+00109                 {
+00110                 MENU_ITEM { command=EDigitalPostion; cascade=r_digital_pos_menu; txt="Shift"; },                
+00111                 MENU_ITEM { command=ETestDo2; txt="Hide"; },
+00112                 MENU_ITEM { command=ETestDo3; txt="Show"; },
+00113                 MENU_ITEM { command=EDigitalIncrement;cascade=r_digital_incr_menu; txt="Increment"; }
+00114                 };
+00115         }
+00116 
+00117 RESOURCE MENU_PANE r_digital_pos_menu
+00118         {
+00119         items=
+00120                 {
+00121                 MENU_ITEM { command=ETestDo0; txt="Left"; },
+00122                 MENU_ITEM { command=ETestDo1; txt="Right"; }
+00123                 };
+00124         }
+00125     
+00126 RESOURCE MENU_PANE r_digital_incr_menu
+00127         {
+00128         items=
+00129                 {
+00130                 MENU_ITEM { command=ETestDo4; txt="one hour"; },
+00131                 MENU_ITEM { command=ETestDo5; txt="half an hour"; },
+00132                 MENU_ITEM { command=ETestDo6; txt="one min"; },
+00133                 MENU_ITEM { command=ETestDo7; txt="one second"; }
+00134                 };
+00135         }
+00136     
+00137         
+00138 RESOURCE TBUF r_title_text_clock_example { buf="Welcome to the clock application example"; }
+00139 
+

Generated on Thu Jan 21 10:32:54 2010 for TB10.1 Example Applications by  + +doxygen 1.5.3
+ +