00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 NAME ANIM
00018
00019 #include <eikon.rh>
00020 #include <appinfo.rh>
00021 #include <eikon.rsg>
00022 #include <eikcore.rsg>
00023
00024 #include <fontids.h>
00025 #include <gulfont.hrh>
00026
00027 #include "AnimExample.hrh"
00028
00029 RESOURCE RSS_SIGNATURE { }
00030
00031 RESOURCE TBUF { buf=""; }
00032
00033 RESOURCE EIK_APP_INFO
00034 {
00035 toolbar=r_AnimExample_toolbar;
00036 menubar=r_menubar;
00037 }
00038
00039 RESOURCE MENU_BAR r_menubar
00040 {
00041 titles=
00042 {
00043 MENU_TITLE { menu_pane=r_Animation_first_menu; txt="AnimExample"; }
00044 };
00045 }
00046
00047 RESOURCE MENU_PANE r_Animation_first_menu
00048 {
00049 items=
00050 {
00051
00052 MENU_ITEM { command=EExampleItem0;cascade=r_Sprite_menu; txt="Sprite"; },
00053 MENU_ITEM { command=EExampleItem1;cascade=r_Basic_menu; txt="Basic"; },
00054 MENU_ITEM { command=EEikCmdExit; txt= "Close "; }
00055 };
00056 }
00057 RESOURCE MENU_PANE r_Sprite_menu
00058 {
00059 items=
00060 {
00061
00062 MENU_ITEM { command=EAnimToDo0; txt="S.Start"; },
00063 MENU_ITEM { command=EAnimToDo1; txt="B.Start"; },
00064 MENU_ITEM { command=EAnimToDo2; txt="Pause"; },
00065 MENU_ITEM { command=EAnimToDo3; txt="Resume"; },
00066 MENU_ITEM { command=EAnimToDo4; txt="Stop"; }
00067
00068 };
00069 }
00070 RESOURCE MENU_PANE r_Basic_menu
00071 {
00072 items=
00073 {
00074
00075 MENU_ITEM { command=EAnimToDo5; txt="MoveBoth"; },
00076 MENU_ITEM { command=EAnimToDo6; txt="Pause"; },
00077 MENU_ITEM { command=EAnimToDo7; txt="Resume"; },
00078 MENU_ITEM { command=EAnimToDo8; txt="Stop"; }
00079
00080 };
00081 }
00082
00083 RESOURCE TBUF r_appname_default_file
00084 {
00085 buf="AnimExample";
00086 }
00087
00088
00089 RESOURCE LOCALISABLE_APP_INFO r_lai
00090 {
00091 short_caption="ThribbetV2";
00092
00093 caption_and_icon=
00094 {
00095 CAPTION_AND_ICON_INFO
00096 {
00097 caption="AnimExample";
00098 number_of_icons=3;
00099 icon_file="\\resource\\apps\\AnimExample_icon.mbm";
00100 }
00101 };
00102
00103 }
00104
00105
00106 rls_string STRING_r_test_toolbar0 "S.Start"
00107 rls_string STRING_r_test_toolbar1 "B.Start"
00108 rls_string STRING_r_test_toolbar2 "S.Pause"
00109 rls_string STRING_r_test_toolbar3 "S.Resume"
00110 rls_string STRING_r_test_toolbar4 "S.Stop"
00111 rls_string STRING_r_test_toolbar5 "MoveBoth"
00112 rls_string STRING_r_test_toolbar6 "B.Pause"
00113 rls_string STRING_r_test_toolbar7 "B.Resume"
00114 rls_string STRING_r_test_toolbar8 "B.Stop"
00115 rls_string STRING_r_test_toolbar9 "Close"
00116
00117
00118 RESOURCE EIK_APP_INFO
00119 {
00120
00121 }
00122
00123 #define KDenseToolBarButtonHeight 23
00124 #define KDenseToolBarWidth 30
00125
00126
00127 RESOURCE TOOLBAR r_AnimExample_toolbar
00128 {
00129 breadth=KTechViewToolbarWidth;
00130
00131 controls=
00132 {
00133 TBAR_BUTTON
00134 {
00135 id=EAnimToDo0;
00136 length=KDenseToolBarButtonHeight;
00137 flags=EEikToolBarCtrlHasSetMinLength;
00138 txt=STRING_r_test_toolbar0;
00139 layout=EEikCmdButTextRightPictureLeft|EEikCmdButShareExcess|EEikCmdButDenseFont;
00140 },
00141 TBAR_BUTTON
00142 {
00143 id=EAnimToDo1;
00144 length=KDenseToolBarButtonHeight;
00145 flags=EEikToolBarCtrlHasSetMinLength;
00146 txt=STRING_r_test_toolbar1;
00147 layout=EEikCmdButTextRightPictureLeft|EEikCmdButShareExcess|EEikCmdButDenseFont;
00148 },
00149 TBAR_BUTTON
00150 {
00151 id=EAnimToDo2;
00152 flags=EEikToolBarCtrlHasSetMinLength;
00153 length=KDenseToolBarButtonHeight;
00154 txt=STRING_r_test_toolbar2;
00155 layout=EEikCmdButTextRightPictureLeft|EEikCmdButShareExcess|EEikCmdButDenseFont;
00156 },
00157 TBAR_BUTTON
00158 {
00159 id=EAnimToDo3;
00160 flags=EEikToolBarCtrlHasSetMinLength;
00161 length=KDenseToolBarButtonHeight;
00162 txt=STRING_r_test_toolbar3;
00163 layout=EEikCmdButTextRightPictureLeft|EEikCmdButShareExcess|EEikCmdButDenseFont;
00164 },
00165 TBAR_BUTTON
00166 {
00167 id=EAnimToDo4;
00168 flags=EEikToolBarCtrlHasSetMinLength;
00169 length=KDenseToolBarButtonHeight;
00170 txt=STRING_r_test_toolbar4;
00171 layout=EEikCmdButTextRightPictureLeft|EEikCmdButShareExcess|EEikCmdButDenseFont;
00172 },
00173 TBAR_BUTTON
00174 {
00175 id=EAnimToDo5;
00176 flags=EEikToolBarCtrlHasSetMinLength;
00177 length=KDenseToolBarButtonHeight;
00178 txt=STRING_r_test_toolbar5;
00179 layout=EEikCmdButTextRightPictureLeft|EEikCmdButShareExcess|EEikCmdButDenseFont;
00180 },
00181 TBAR_BUTTON
00182 {
00183 id=EAnimToDo6;
00184 flags=EEikToolBarCtrlHasSetMinLength;
00185 length=KDenseToolBarButtonHeight;
00186 txt=STRING_r_test_toolbar6;
00187 layout=EEikCmdButTextRightPictureLeft|EEikCmdButShareExcess|EEikCmdButDenseFont;
00188 },
00189 TBAR_BUTTON
00190 {
00191 id=EAnimToDo7;
00192 flags=EEikToolBarCtrlHasSetMinLength;
00193 length=KDenseToolBarButtonHeight;
00194 txt=STRING_r_test_toolbar7;
00195 layout=EEikCmdButTextRightPictureLeft|EEikCmdButShareExcess|EEikCmdButDenseFont;
00196 },
00197 TBAR_BUTTON
00198 {
00199 id=EAnimToDo8;
00200 flags=EEikToolBarCtrlHasSetMinLength;
00201 length=KDenseToolBarButtonHeight;
00202 txt=STRING_r_test_toolbar8;
00203 layout=EEikCmdButTextRightPictureLeft|EEikCmdButShareExcess|EEikCmdButDenseFont;
00204 },
00205 TBAR_BUTTON
00206 {
00207 id=EAnimToDo9;
00208 flags=EEikToolBarCtrlHasSetMinLength;
00209 length=KDenseToolBarButtonHeight;
00210 txt=STRING_r_test_toolbar9;
00211 layout=EEikCmdButTextRightPictureLeft|EEikCmdButShareExcess|EEikCmdButDenseFont;
00212 }
00213
00214 };
00215 }
00216
00217
00218 RESOURCE TBUF r_example_text_BasicAnim { buf="Welcome to the Animation example "; }