00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 NAME THRE
00012
00013 #include <eikon.rh>
00014 #include <avkon.rh>
00015 #include <avkon.rsg>
00016 #include <thread.mbg>
00017
00018
00019 #include "Thread.hrh"
00020 #include "thread.loc"
00021
00022 #define KWidth 176
00023 #define KHeight 100
00024 #define KMaxLength 256
00025
00026 #define KThreadOneFrameTime 100
00027 #define KThreadTwoFrameTime 100
00028 #define KThreadThreeFrameTime 100
00029
00030 #define KThreadAnimationPosY 0
00031 #define KThreadAnimationTwoPosX 55
00032 #define KThreadAnimationThreePosX 110
00033
00034 #ifdef EKA2
00035 #define ANIMATION_BMPFILE_NAME "\\resource\\apps\\Thread.mbm"
00036 #else
00037 #define ANIMATION_BMPFILE_NAME "\\system\\apps\\Thread\\thread.mbm"
00038 #endif
00039
00040
00041
00042
00043
00044
00045
00046
00047 RESOURCE RSS_SIGNATURE
00048 {
00049 }
00050
00051
00052
00053
00054
00055
00056
00057 RESOURCE TBUF r_default_document_name
00058 {
00059 buf="";
00060 }
00061
00062
00063
00064
00065
00066
00067
00068 RESOURCE EIK_APP_INFO
00069 {
00070 menubar = r_Thread_menubar;
00071 cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00072 status_pane = r_my_status_pane;
00073 }
00074
00075
00076
00077
00078
00079
00080
00081
00082 RESOURCE MENU_BAR r_Thread_menubar
00083 {
00084 titles =
00085 {
00086 MENU_TITLE
00087 {
00088 menu_pane = r_Thread_menu;
00089 }
00090 };
00091 }
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101 RESOURCE MENU_PANE r_Thread_menu
00102 {
00103 items =
00104 {
00105 MENU_ITEM
00106 {
00107 command = EThreadKillCommand1;
00108 txt = THREAD1_KILL;
00109 },
00110 MENU_ITEM
00111 {
00112 command = EThreadKillCommand2;
00113 txt = THREAD2_KILL;
00114 },
00115 MENU_ITEM
00116 {
00117 command = EThreadKillCommand3;
00118 txt = THREAD3_KILL;
00119 },
00120 MENU_ITEM
00121 {
00122 command = EThreadStartCommand;
00123 txt = THREAD_START;
00124 },
00125 MENU_ITEM
00126 {
00127 command = EAknSoftkeyExit;
00128 txt = THREAD_EXIT;
00129 }
00130 };
00131 }
00132
00133
00134
00135
00136
00137
00138
00139
00140 RESOURCE RTXTED r_richtexteditor_rich_text_editor
00141 {
00142 width=KWidth;
00143 height=KHeight;
00144 textlimit=KMaxLength;
00145 flags=EEikEdwinReadOnly | EEikEdwinAvkonDisableCursor;
00146 avkon_flags=EAknEditorFlagEnableScrollBars;
00147 }
00148
00149
00150
00151
00152
00153
00154 RESOURCE BMPANIM_DATA r_animation_thread_one_data
00155 {
00156 frameinterval = 500;
00157 playmode = EAknBitmapAnimationPlayModeCycle;
00158 flash = 0;
00159 bmpfile = ANIMATION_BMPFILE_NAME;
00160 frames = r_animation_array ;
00161 }
00162
00163 RESOURCE BMPANIM_DATA r_animation_thread_two_data
00164 {
00165 frameinterval = 500;
00166 playmode = EAknBitmapAnimationPlayModeCycle;
00167 flash = 0;
00168 bmpfile = ANIMATION_BMPFILE_NAME;
00169 frames = r_animation_array_two;
00170 }
00171
00172 RESOURCE BMPANIM_DATA r_animation_thread_three_data
00173 {
00174 frameinterval = 500;
00175 playmode = EAknBitmapAnimationPlayModeCycle;
00176 flash = 0;
00177 bmpfile = ANIMATION_BMPFILE_NAME;
00178 frames = r_animation_array_three;
00179 }
00180
00181
00182
00183
00184
00185
00186
00187 RESOURCE ARRAY r_animation_array
00188 {
00189 items =
00190 {
00191 BMPANIM_FRAME { time= KThreadOneFrameTime; bmpid = EMbmThreadImage01;},
00192 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage02;},
00193 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage03;},
00194 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage04;},
00195 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage05;},
00196 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage06;},
00197 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage07;},
00198 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage08;},
00199 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage09;},
00200 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage10;},
00201 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage11;},
00202 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage12;},
00203 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage13;},
00204 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage14;},
00205 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage15;},
00206 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage16;},
00207 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage17;},
00208 BMPANIM_FRAME { time = KThreadOneFrameTime; bmpid = EMbmThreadImage18;}
00209 };
00210 }
00211
00212 RESOURCE ARRAY r_animation_array_two
00213 {
00214 items =
00215 {
00216 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage01;},
00217 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage02;},
00218 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage03;},
00219 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage04;},
00220 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage05;},
00221 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage06;},
00222 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage07;},
00223 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage08;},
00224 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage09;},
00225 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage10;},
00226 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage11;},
00227 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage12;},
00228 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage13;},
00229 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage14;},
00230 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage15;},
00231 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage16;},
00232 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage17;},
00233 BMPANIM_FRAME { time = KThreadTwoFrameTime; posx = KThreadAnimationTwoPosX; posy = KThreadAnimationPosY; bmpid = EMbmThreadImage18;}
00234 };
00235 }
00236
00237 RESOURCE ARRAY r_animation_array_three
00238 {
00239 items =
00240 {
00241 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage01;},
00242 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage02;},
00243 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage03;},
00244 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage04;},
00245 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage05;},
00246 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage06;},
00247 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage07;},
00248 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage08;},
00249 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage09;},
00250 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage10;},
00251 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage11;},
00252 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage12;},
00253 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage13;},
00254 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage14;},
00255 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage15;},
00256 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage16;},
00257 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage17;},
00258 BMPANIM_FRAME { time = KThreadThreeFrameTime; posx = KThreadAnimationThreePosX ; posy = KThreadAnimationPosY;bmpid = EMbmThreadImage18;}
00259 };
00260 }
00261
00262
00263
00264
00265
00266
00267
00268 RESOURCE STATUS_PANE_APP_MODEL r_my_status_pane
00269 {
00270 panes =
00271 {
00272 SPANE_PANE
00273 {
00274 id = EEikStatusPaneUidTitle;
00275 type = EAknCtTitlePane;
00276 resource = r_my_title_pane;
00277 }
00278 };
00279 }
00280
00281 RESOURCE TITLE_PANE r_my_title_pane
00282 {
00283 txt = THREAD_TITLE_PANE_TEXT;
00284 }
00285 RESOURCE TBUF r_killed_thread1
00286 {
00287 buf = KILLED_THREAD1;
00288 }
00289 RESOURCE TBUF r_killed_thread2
00290 {
00291 buf = KILLED_THREAD2;
00292 }
00293 RESOURCE TBUF r_killed_thread3
00294 {
00295 buf = KILLED_THREAD3;
00296 }
00297 RESOURCE TBUF r_thread1_was_killed
00298 {
00299 buf = THREAD1_WAS_KILLED;
00300 }
00301 RESOURCE TBUF r_thread2_was_killed
00302 {
00303 buf = THREAD2_WAS_KILLED;
00304 }
00305 RESOURCE TBUF r_thread3_was_killed
00306 {
00307 buf = THREAD3_WAS_KILLED;
00308 }
00309 RESOURCE TBUF r_thread1_name
00310 {
00311 buf = THREAD1_NAME;
00312 }
00313 RESOURCE TBUF r_thread2_name
00314 {
00315 buf = THREAD2_NAME;
00316 }
00317 RESOURCE TBUF r_thread3_name
00318 {
00319 buf = THREAD3_NAME;
00320 }
00321 RESOURCE TBUF r_thread1_create_failure
00322 {
00323 buf = THREAD1_CREATE_FAILURE;
00324 }
00325 RESOURCE TBUF r_thread2_create_failure
00326 {
00327 buf = THREAD2_CREATE_FAILURE;
00328 }
00329 RESOURCE TBUF r_thread3_create_failure
00330 {
00331 buf = THREAD3_CREATE_FAILURE;
00332 }
00333