testapps/rschandler/Common/rsc/ResourceHandler.rss
changeset 0 9736f095102e
equal deleted inserted replaced
-1:000000000000 0:9736f095102e
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 NAME RES
       
    17 
       
    18 #include "ResourceHandler.hrh"
       
    19 
       
    20 #include <techview/eikon.rh>
       
    21 
       
    22 #include <uiklafgt/eikcore.rsg>
       
    23 // for symbolic definition of buttons
       
    24 #include <techview/eikon.rsg> //for runtime
       
    25 // for various constants
       
    26 #include <techview/eikon.hrh> //for runtime
       
    27 
       
    28 #ifdef UIQ
       
    29 // for QIK_NUMBER_EDITOR/QIK_VERTOPBUT/EQikDlgItemUseFullWidth
       
    30 #include <qikon.rh>
       
    31 // for various constants
       
    32 #include <qikon.hrh> //for runtime
       
    33 #endif
       
    34 
       
    35 #ifdef TV
       
    36 // for CEikNumberEditor
       
    37 #include <techview/techviewctl.rh>
       
    38 #include <techview/techview.hrh>
       
    39 #endif
       
    40 
       
    41 RESOURCE RSS_SIGNATURE { } 
       
    42 
       
    43 RESOURCE TBUF { buf=""; }
       
    44 
       
    45 RESOURCE EIK_APP_INFO
       
    46 	{
       
    47 	menubar=r_resource_menubar;
       
    48 	}
       
    49 
       
    50 //
       
    51 // Menus
       
    52 //                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
       
    53                             
       
    54 RESOURCE MENU_BAR r_resource_menubar
       
    55     {
       
    56     titles=
       
    57         {
       
    58         MENU_TITLE { menu_pane=r_resource_menu_1; txt="Kernel"; },
       
    59 		MENU_TITLE { menu_pane=r_resource_menu_2; txt="System"; },
       
    60 		MENU_TITLE { menu_pane=r_resource_menu_3; txt="Tools"; }
       
    61 	};
       
    62     }
       
    63 
       
    64 RESOURCE MENU_PANE r_resource_menu_1
       
    65     {
       
    66 	items=
       
    67 	{
       
    68 		MENU_ITEM { command=EResourceMenu1Item0; txt="Process"; },
       
    69 		MENU_ITEM { command=EResourceMenu1Item1; txt="Thread"; },
       
    70 		MENU_ITEM { command=EResourceMenu1Item2; txt="Chunk"; },
       
    71 		MENU_ITEM { command=EResourceMenu1Item3; txt="Library"; },
       
    72 		MENU_ITEM { command=EResourceMenu1Item4; txt="Server"; },
       
    73 		MENU_ITEM { command=EResourceMenu1Item5; txt="Semaphore"; },
       
    74 		MENU_ITEM { command=EResourceMenu1Item6; txt="Mutex"; },
       
    75 		MENU_ITEM { command=EResourceMenu1Item7; txt="Log Device"; },
       
    76 		MENU_ITEM { command=EResourceMenu1Item8; txt="Phy Device"; },
       
    77 		MENU_ITEM { command=EResourceMenu1Item9; txt="Log Chan"; }
       
    78 
       
    79         };
       
    80     }
       
    81 
       
    82 RESOURCE MENU_PANE r_resource_menu_2
       
    83     {
       
    84 	items=
       
    85 		{
       
    86 		MENU_ITEM { command=EResourceMenu2Item0; txt="Window Grp"; },
       
    87 		MENU_ITEM { command=EResourceMenu2Item1; txt="Drive"; },
       
    88 		MENU_ITEM { command=EResourceMenu2Item2; txt="HAL"; }
       
    89         };
       
    90     }
       
    91 
       
    92 RESOURCE MENU_PANE r_resource_menu_3
       
    93 	{
       
    94 	items=
       
    95 		{
       
    96 		MENU_ITEM { command=EResourceMenu3Item1; txt="Thread Tool"; },
       
    97 		MENU_ITEM { command=EResourceMenu3Item2; txt="Process Tool"; },
       
    98 		MENU_ITEM { command=EResourceMenu3Item3; txt="RAM Tool"; },
       
    99 		MENU_ITEM { command=EResourceMenu3Item4; txt="Drive Tool"; }
       
   100         };
       
   101     }
       
   102 
       
   103 //
       
   104 // Debug dialog
       
   105 //
       
   106 
       
   107 RESOURCE DIALOG r_debug_dialog
       
   108 	{
       
   109 	title = "Debug Tool";
       
   110 	flags = EEikDialogFlagWait;
       
   111 	buttons = r_debug_dialog_buttons;
       
   112 	pages = r_debug_dialog_pages;
       
   113 
       
   114 	}
       
   115 
       
   116 RESOURCE DLG_BUTTONS r_debug_dialog_buttons
       
   117 	{
       
   118 	buttons=
       
   119 		{
       
   120 		DLG_BUTTON
       
   121 			{
       
   122 			id=EDebugSetButtonCtl;
       
   123 			button=CMBUT { txt="Set";};
       
   124 			hotkey = 'S';
       
   125 			},
       
   126 		DLG_BUTTON
       
   127 			{
       
   128 			id=EEikBidCancel;
       
   129 			button=CMBUT { txt="Cancel";};
       
   130 			hotkey = 'C';
       
   131 			},
       
   132 		DLG_BUTTON
       
   133 			{
       
   134 			id=EEikBidOk;
       
   135 			button=CMBUT { txt="Done";};
       
   136 			hotkey = 'D';
       
   137 			}
       
   138 		};
       
   139 	}
       
   140 
       
   141 RESOURCE ARRAY r_debug_dialog_pages
       
   142 	{
       
   143 	items =
       
   144 		{
       
   145 		PAGE 
       
   146 			{
       
   147      		text = "Port"; 
       
   148 			id = EDebugPagePort;
       
   149 			lines = r_debug_dialog_page_port;
       
   150 			},
       
   151 		PAGE
       
   152 			{
       
   153 			text = "Kernel"; 
       
   154 			id = EDebugPageKernel;
       
   155 			lines = r_debug_dialog_page_kernel;
       
   156 			},
       
   157 		PAGE
       
   158 			{
       
   159 			text = "FS"; 
       
   160 			id = EDebugPageFiles;
       
   161 			lines = r_debug_dialog_page_file_s;
       
   162 			}
       
   163 		};
       
   164 	}
       
   165 
       
   166 
       
   167 RESOURCE ARRAY r_debug_dialog_page_kernel
       
   168 	{
       
   169 	items =
       
   170 		{
       
   171 		DLG_LINE
       
   172 			{
       
   173 			type=EEikCtLabel;
       
   174 			ITEMFLAG_USEFULLWIDTH
       
   175 			id = EDebugKernelLabel;
       
   176 			control=LABEL
       
   177 				{
       
   178 				horiz_align=EEikLabelAlignHLeft;
       
   179 				txt="Select debugging information to be printed.\nNote: must have debug version of ekern.exe in ROM.\nNote: not all combinations may be possible.";
       
   180 				}; 
       
   181 			},
       
   182 		DLG_LINE { type=EEikCtCheckBox; prompt="KHARDWARE"; id = EDebugKernelKHARDWARE;},
       
   183 		DLG_LINE { type=EEikCtCheckBox; prompt="KBOOT"; id = EDebugKernelKBOOT;},
       
   184 		DLG_LINE { type=EEikCtCheckBox; prompt="KSERVER"; id = EDebugKernelKSERVER;},
       
   185 		DLG_LINE { type=EEikCtCheckBox; prompt="KMMU"; id = EDebugKernelKMMU;},
       
   186 		DLG_LINE { type=EEikCtCheckBox; prompt="KSEMAPHORE"; id = EDebugKernelKSEMAPHORE;},
       
   187 		DLG_LINE { type=EEikCtCheckBox; prompt="KSCHED"; id = EDebugKernelKSCHED;},
       
   188 		DLG_LINE { type=EEikCtCheckBox; prompt="KPROC"; id = EDebugKernelKPROC;},
       
   189 		DLG_LINE { type=EEikCtCheckBox; prompt="KEXEC"; id = EDebugKernelKEXEC;},
       
   190 		DLG_LINE { type=EEikCtCheckBox; prompt="KEXECFAST"; id = EDebugKernelKEXECFAST;},
       
   191 		DLG_LINE { type=EEikCtCheckBox; prompt="KTHREAD"; id = EDebugKernelKTHREAD;},
       
   192 		DLG_LINE { type=EEikCtCheckBox; prompt="KDLL"; id = EDebugKernelKDLL;},
       
   193 		DLG_LINE { type=EEikCtCheckBox; prompt="KLOGON"; id = EDebugKernelKLOGON;},
       
   194 		DLG_LINE { type=EEikCtCheckBox; prompt="KPBUS1"; id = EDebugKernelKPBUS1;},
       
   195 		DLG_LINE { type=EEikCtCheckBox; prompt="KPBUS2"; id = EDebugKernelKPBUS2;},
       
   196 		DLG_LINE { type=EEikCtCheckBox; prompt="KPBUSDRV"; id = EDebugKernelKPBUSDRV;},
       
   197 		DLG_LINE { type=EEikCtCheckBox; prompt="KPOWER"; id = EDebugKernelKPOWER;},
       
   198 		DLG_LINE { type=EEikCtCheckBox; prompt="KTIMING"; id = EDebugKernelKTIMING;},
       
   199 		DLG_LINE { type=EEikCtCheckBox; prompt="KEVENT"; id = EDebugKernelKEVENT;},
       
   200 		DLG_LINE { type=EEikCtCheckBox; prompt="KMEMTRACE"; id = EDebugKernelKMEMTRACE;},
       
   201 		DLG_LINE { type=EEikCtCheckBox; prompt="KIPC"; id = EDebugKernelKIPC;},
       
   202 		DLG_LINE { type=EEikCtCheckBox; prompt="KDEBUGGER"; id = EDebugKernelKDEBUGGER;},
       
   203 		DLG_LINE { type=EEikCtCheckBox; prompt="KVIDEO"; id = EDebugKernelKVIDEO;},
       
   204 		DLG_LINE { type=EEikCtCheckBox; prompt="KUSB"; id = EDebugKernelKUSB;},
       
   205 		DLG_LINE { type=EEikCtCheckBox; prompt="KPANIC"; id = EDebugKernelKPANIC;}
       
   206 		}; 
       
   207 	}
       
   208 
       
   209 
       
   210 RESOURCE ARRAY r_debug_dialog_page_file_s
       
   211 	{
       
   212 	items =
       
   213 		{
       
   214 		DLG_LINE
       
   215 			{
       
   216 			type=EEikCtLabel;
       
   217 			ITEMFLAG_USEFULLWIDTH //needed?
       
   218 			id = EDebugFileLabel;
       
   219 			control=LABEL
       
   220 				{
       
   221 				horiz_align=EEikLabelAlignHLeft;
       
   222 				txt="Select debugging information to be printed.\nMust have debug version of efile.exe in ROM. Or define\n_DEBUG_RELEASE in f32dbg.h. \nNote: these values are not readable.";
       
   223 				}; 
       
   224 			},
       
   225 		DLG_LINE 
       
   226 			{ 
       
   227 			type=EEikCtCheckBox;
       
   228 			prompt="File Server"; 
       
   229 			id = EDebugFileServerCtl;
       
   230 		    },
       
   231 		DLG_LINE 
       
   232 			{ 
       
   233 			type=EEikCtCheckBox;
       
   234 			prompt="FAT File System"; 
       
   235 			id = EDebugFATCtl;
       
   236 			},
       
   237 		DLG_LINE 
       
   238 			{ 
       
   239 			type=EEikCtCheckBox;
       
   240 			prompt="Loader"; 
       
   241 			id = EDebugLoaderCtl;
       
   242 			} 
       
   243 
       
   244 		}; 
       
   245 	
       
   246 	} 
       
   247 	
       
   248 
       
   249 RESOURCE ARRAY r_debug_dialog_page_port
       
   250 	{
       
   251 	items =
       
   252 		{
       
   253 		DLG_LINE
       
   254 			{
       
   255 			type=EEikCtLabel;
       
   256 			ITEMFLAG_USEFULLWIDTH
       
   257 			id = EDebugPortLabel;
       
   258 			control=LABEL
       
   259 				{
       
   260 				horiz_align=EEikLabelAlignHLeft;
       
   261 				txt="Set the port number for debug output. (-1 means no port is set).";
       
   262 				}; 
       
   263 			},
       
   264 		DLG_LINE
       
   265 			{
       
   266 			type = EXIKCTNUMBEREDITOR;
       
   267 			prompt = "Debug Port ";
       
   268 			id = EDebugPortCtl;
       
   269 			control = A_NUMBER_EDITOR 
       
   270 				{ 
       
   271 				min = -1; 
       
   272 				max = 1023; 
       
   273 				};
       
   274 			//itemflags = EEikDlgItemNoBorder | EEikDlgItemNonFocusing;
       
   275 			ITEMFLAG_NONFOCUSING
       
   276 			}
       
   277 		}; 
       
   278 	}
       
   279 
       
   280 
       
   281 //
       
   282 // Thread Dialog
       
   283 //
       
   284 
       
   285 RESOURCE DIALOG r_thread_dialog
       
   286 	{
       
   287 	title = "Thread Tool";
       
   288 	buttons = r_thread_dialog_buttons;
       
   289 	flags = EEikDialogFlagWait;
       
   290 	pages = r_thread_dialog_pages;
       
   291 	}
       
   292 
       
   293 
       
   294 RESOURCE DLG_BUTTONS r_thread_dialog_buttons
       
   295 	{
       
   296 	buttons=
       
   297 		{		
       
   298 		DLG_BUTTON
       
   299 			{
       
   300 			id=EThreadKillButtonCtl;
       
   301 			button=CMBUT { txt="Kill!";};
       
   302 			hotkey = 'K';
       
   303 			},
       
   304 		DLG_BUTTON
       
   305 			{
       
   306 			id=EThreadSetButtonCtl;
       
   307 			button=CMBUT { txt="Set";};
       
   308 			hotkey = 'S';
       
   309 			},
       
   310 		DLG_BUTTON
       
   311 			{
       
   312 			id=EEikBidCancel;
       
   313 			button=CMBUT { txt="Cancel";};
       
   314 			hotkey = 'C';
       
   315 			},
       
   316 		DLG_BUTTON
       
   317 			{
       
   318 			id=EEikBidOk;
       
   319 			button=CMBUT { txt="Done";};
       
   320 			hotkey = 'D';
       
   321 			}
       
   322 		};
       
   323 	}
       
   324 
       
   325 RESOURCE ARRAY r_thread_dialog_pages
       
   326 	{
       
   327 	items =
       
   328 		{
       
   329 		PAGE 
       
   330 			{
       
   331      		text = "Thread"; 
       
   332 			id = EThreadPageGeneral;
       
   333 			lines = r_thread_dialog_page_general;
       
   334 			//buttons=r_thread_dialog_buttonbar;
       
   335 			},
       
   336 		PAGE
       
   337 			{
       
   338 			text = "Priority"; 
       
   339 			id = EThreadPagePriority;
       
   340 			lines = r_thread_dialog_page_priority;
       
   341 			},
       
   342 		PAGE
       
   343 			{
       
   344 			text = "Other"; 
       
   345 			id = EThreadPageOther;
       
   346 			lines = r_thread_dialog_page_other;
       
   347 			}
       
   348 		};
       
   349 	}
       
   350 
       
   351 RESOURCE ARRAY r_thread_dialog_page_general
       
   352 	{
       
   353 	items = 
       
   354 		{
       
   355 		DLG_LINE
       
   356 			{
       
   357 			type=EEikCtLabel;
       
   358 			ITEMFLAG_USEFULLWIDTH
       
   359 			id = EThreadLabelTop;
       
   360 			control = LABEL
       
   361 				{
       
   362 				horiz_align=EEikLabelAlignHLeft;
       
   363 				txt="Enter thread id number and hit 'Get Thread' to find and change \nthread attributes. (Zero for all threads)";
       
   364 				}; 
       
   365 			},
       
   366 		DLG_LINE
       
   367 			{
       
   368 			type = EXIKCTNUMBEREDITOR;
       
   369 			prompt = "Thread Number";
       
   370 			id = EThreadNumberCtl;
       
   371 			control = A_NUMBER_EDITOR 
       
   372 				{ 
       
   373 				min = 0; 
       
   374 				max = 1023; 
       
   375 				};
       
   376 			//itemflags = EEikDlgItemNoBorder | EEikDlgItemNonFocusing;
       
   377 			ITEMFLAG_NONFOCUSING
       
   378 			},
       
   379 //The process and thread name are defined on one line in TV and 2 lines in UIQ, due to restricted dialog space in TV.
       
   380 #ifdef TV
       
   381 		DLG_LINE
       
   382 			{
       
   383 			type=EEikCtLabel;
       
   384 			prompt = "Thread/Process:";
       
   385 			id = EThreadLabelThreadAndProcessName;
       
   386 			control = LABEL
       
   387 				{
       
   388 				horiz_align=EEikLabelAlignHLeft;
       
   389 				txt="";
       
   390 				}; 
       
   391 			},
       
   392 #endif
       
   393 #ifdef UIQ
       
   394 		DLG_LINE
       
   395 			{
       
   396 			type=EEikCtLabel;
       
   397 			prompt = "Process:";
       
   398 			ITEMFLAG_DENSELYPACKED//ITEMFLAG_USEFULLWIDTH
       
   399 			id = EThreadLabelProcessName;
       
   400 			control = LABEL
       
   401 				{
       
   402 				horiz_align=EEikLabelAlignHLeft;
       
   403 				txt="";
       
   404 				}; 
       
   405 			},
       
   406 		DLG_LINE
       
   407 			{
       
   408 			type=EEikCtLabel;
       
   409 			prompt = "Thread:";
       
   410 			ITEMFLAG_DENSELYPACKED//ITEMFLAG_USEFULLWIDTH
       
   411 			id = EThreadLabelThreadName;
       
   412 			control = LABEL
       
   413 				{
       
   414 				horiz_align=EEikLabelAlignHLeft;
       
   415 				txt="";
       
   416 				}; 
       
   417 			},
       
   418 #endif
       
   419 		DLG_LINE
       
   420 			{
       
   421 			type=EEikCtCommandButton;
       
   422 			ITEMFLAG_USEFULLWIDTH
       
   423 			id = EThreadGetButtonCtl;
       
   424 			control = CMBUT
       
   425 				{
       
   426 				txt="GET Thread";
       
   427 				}; 
       
   428 			},
       
   429 		DLG_LINE //create space between buttons
       
   430 			{
       
   431 			type=EEikCtLabel;
       
   432 			id = EThreadLabelThreadName;
       
   433 			control = LABEL
       
   434 				{
       
   435 				horiz_align=EEikLabelAlignHLeft;
       
   436 				txt="         ";
       
   437 				}; 
       
   438 			}
       
   439 		};
       
   440 	}
       
   441 
       
   442 RESOURCE ARRAY r_thread_dialog_page_priority
       
   443 	{
       
   444 	items = 
       
   445 		{
       
   446 			DLG_LINE
       
   447 				{
       
   448 				type=EEikCtLabel;
       
   449 				ITEMFLAG_USEFULLWIDTH
       
   450 				id = EThreadPriorityPrompt;
       
   451 				control = LABEL
       
   452 					{
       
   453 					horiz_align=EEikLabelAlignHLeft;
       
   454 					txt="";
       
   455 					}; 
       
   456 				},
       
   457 			DLG_LINE 
       
   458 				{ 
       
   459 				prompt="Priority"; 
       
   460 				type=EEikCtChoiceList; 
       
   461 				id=EThreadPriorityButtonCtl;
       
   462 				control=CHOICELIST
       
   463 					{ 
       
   464 					array_id=r_thread_priority_buttons; 
       
   465 					};
       
   466 				},
       
   467 			DLG_LINE
       
   468 				{
       
   469 				type=EEikCtLabel;
       
   470 				ITEMFLAG_USEFULLWIDTH
       
   471 				id = EThreadPriorityText;
       
   472 				control = LABEL
       
   473 					{
       
   474 					horiz_align=EEikLabelAlignHLeft;
       
   475 					txt="";
       
   476 					}; 
       
   477 				}
       
   478 		};
       
   479 	}
       
   480 	
       
   481 	
       
   482 RESOURCE ARRAY r_thread_dialog_page_other
       
   483 	{
       
   484 	items = 
       
   485 		{
       
   486 		DLG_LINE 
       
   487 			{ 
       
   488 			type=EEikCtCheckBox;
       
   489 			prompt="System"; 
       
   490 			id = EThreadSystemCtl;
       
   491 			},
       
   492 		DLG_LINE 
       
   493 			{ 
       
   494 			type=EEikCtCheckBox;
       
   495 			prompt="Protected"; 
       
   496 			id = EThreadProtectedCtl;
       
   497 			}
       
   498 		};
       
   499 	}
       
   500 	
       
   501 
       
   502 
       
   503 RESOURCE ARRAY r_thread_priority_buttons
       
   504 	{
       
   505 	items= 
       
   506         	{ 
       
   507 			LBUF { txt="PriorityNull=-30";},				//	EThreadPm30_Null
       
   508 			LBUF { txt="PriorityMuchLess=-20";},			//	EThreadPm20_MuchLess	
       
   509 			LBUF { txt="PriorityLess=-10";},				//	EThreadPm10_Less	
       
   510 			LBUF { txt="PriorityNormal=0";},				//	EThreadP0_Normal
       
   511         		LBUF { txt="PriorityMore=10"; },				//	EThreadP10_More
       
   512         		LBUF { txt="PriorityMuchMore=20"; },			//	EThreadP20_MuchMore
       
   513        	 		LBUF { txt="PriorityRealTime=30"; },			//	EThreadP30_RealTime
       
   514 			LBUF { txt="PriorityAbsoluteVeryLow=100";},	//	EThreadP100_AbsoluteVeryLow
       
   515 			LBUF { txt="PriorityAbsoluteLow=200";},		//	EThreadP200_AbsoluteLow
       
   516 			LBUF { txt="PriorityAbsoluteBackground=300";},	//	EThreadP300_AbsoluteBackground
       
   517 			LBUF { txt="PriorityAbsoluteForeground=400";},	//	EThreadP400_AbsoluteForeground
       
   518 			LBUF { txt="PriorityAbsoluteHigh=500";},		//	EThreadP500_AbsoluteHigh
       
   519 			LBUF { txt = "Not Standard";}				//	EThreadP_NotStandard
       
   520         	};
       
   521 	}
       
   522 //
       
   523 // Process Dialog
       
   524 //
       
   525 
       
   526 RESOURCE DIALOG r_process_number_dialog
       
   527 	{
       
   528 	title = "Process Tool";
       
   529 	buttons = r_process_dialog_buttons;
       
   530 	flags = EEikDialogFlagWait;
       
   531 	pages = r_process_dialog_pages;
       
   532 	}
       
   533 
       
   534 RESOURCE DLG_BUTTONS r_process_dialog_buttons
       
   535 	{
       
   536 	buttons=
       
   537 		{
       
   538 		DLG_BUTTON
       
   539 			{
       
   540 			id=EProcessKillButtonCtl;
       
   541 			button=CMBUT { txt="Kill";};
       
   542 			hotkey = 'K';
       
   543 			},
       
   544 		DLG_BUTTON
       
   545 			{
       
   546 			id=EProcessSetButtonCtl;
       
   547 			button=CMBUT { txt="Set";};
       
   548 			hotkey = 'S';
       
   549 			},
       
   550 		DLG_BUTTON
       
   551 			{
       
   552 			id=EEikBidCancel;
       
   553 			button=CMBUT { txt="Cancel";};
       
   554 			hotkey = 'C';
       
   555 			},
       
   556 		DLG_BUTTON
       
   557 			{
       
   558 			id=EEikBidOk;
       
   559 			button=CMBUT { txt="Done";};
       
   560 			hotkey = 'D';
       
   561 			}
       
   562 		};
       
   563 	}
       
   564 
       
   565 RESOURCE ARRAY r_process_dialog_pages
       
   566 	{
       
   567 	items =
       
   568 		{
       
   569 		PAGE 
       
   570 			{
       
   571      		text = "Process"; 
       
   572 			id = EProcessPageGeneral;
       
   573 			lines = r_process_dialog_page_general;
       
   574 			},
       
   575 		PAGE
       
   576 			{
       
   577 			text = "Priority"; 
       
   578 			id = EProcessPagePriority;
       
   579 			lines = r_process_dialog_page_priority;
       
   580 			},
       
   581 		PAGE
       
   582 			{
       
   583 			text = "Other"; 
       
   584 			id = EProcessPageOther;
       
   585 			lines = r_process_dialog_page_other;
       
   586 			}
       
   587 		};
       
   588 	}
       
   589 
       
   590 	
       
   591 RESOURCE ARRAY r_process_dialog_page_general
       
   592 	{
       
   593 	items = 
       
   594 		{
       
   595 		DLG_LINE
       
   596 			{
       
   597 			type=EEikCtLabel;
       
   598 			ITEMFLAG_USEFULLWIDTH//itemflags=EEikDlgItemCtlSharesWidth;?
       
   599 			id = EProcessLabelTop;
       
   600 			control = LABEL
       
   601 				{
       
   602 				horiz_align=EEikLabelAlignHLeft;
       
   603 				txt="Enter process id number and hit 'Get Process' to find and \nchange process attributes";
       
   604 				}; 
       
   605 			},
       
   606 		DLG_LINE
       
   607 			{
       
   608 			type = EXIKCTNUMBEREDITOR;
       
   609 			prompt = "Process Number";
       
   610 			id = EProcessNumberCtl;
       
   611 			control = A_NUMBER_EDITOR
       
   612 				{ 
       
   613 				min = 0; 
       
   614 				max = 1023; 
       
   615 				};
       
   616 			//itemflags = EEikDlgItemNoBorder | EEikDlgItemNonFocusing;
       
   617 			ITEMFLAG_NONFOCUSING
       
   618 			},
       
   619 		DLG_LINE
       
   620 			{
       
   621 			type=EEikCtLabel;
       
   622 			ITEMFLAG_DENSELYPACKED
       
   623 			prompt = "Process: ";
       
   624 			id = EProcessLabelProcessName;
       
   625 			control = LABEL
       
   626 				{
       
   627 				horiz_align=EEikLabelAlignHLeft;
       
   628 				txt="";
       
   629 				}; 
       
   630 			},
       
   631 		DLG_LINE
       
   632 			{
       
   633 			type=EEikCtCommandButton;
       
   634 			ITEMFLAG_USEFULLWIDTH
       
   635 			id = EProcessGetButtonCtl;
       
   636 			control = CMBUT
       
   637 				{
       
   638 				txt="Get Process";
       
   639 				}; 
       
   640 			}
       
   641 		};
       
   642 	}
       
   643 
       
   644 RESOURCE ARRAY r_process_dialog_page_priority
       
   645 	{
       
   646 	items =
       
   647 		{
       
   648 			DLG_LINE 
       
   649 				{ 
       
   650 				prompt="Priority"; 
       
   651 				type=EEikCtChoiceList; 
       
   652 				id=EProcessPriorityButtonCtl;
       
   653 				control=CHOICELIST
       
   654 					{ 
       
   655 					array_id=r_process_priority_buttons; 
       
   656 					};
       
   657 				},
       
   658 			DLG_LINE
       
   659 				{
       
   660 				type=EEikCtLabel;
       
   661 				ITEMFLAG_USEFULLWIDTH
       
   662 				//prompt = "Priority";
       
   663 				id = EProcessPriorityText;
       
   664 				control = LABEL
       
   665 					{
       
   666 					horiz_align=EEikLabelAlignHLeft;
       
   667 					txt="";
       
   668 					}; 
       
   669 				}
       
   670 		};
       
   671 	}
       
   672 	
       
   673 RESOURCE ARRAY r_process_dialog_page_other
       
   674 	{
       
   675 	items = 
       
   676 		{
       
   677 		DLG_LINE 
       
   678 			{ 
       
   679 			type=EEikCtCheckBox;
       
   680 			prompt="System"; 
       
   681 			id = EProcessSystemCtl;
       
   682 			},
       
   683 		DLG_LINE 
       
   684 			{ 
       
   685 			type=EEikCtCheckBox;
       
   686 			prompt="Protected"; 
       
   687 			id = EProcessProtectedCtl;
       
   688 			}
       
   689 		};
       
   690 	}
       
   691 
       
   692 RESOURCE ARRAY r_process_priority_buttons
       
   693 	{
       
   694 	items= 
       
   695         { 
       
   696         	LBUF { txt="EPriorityLow=150"; },			//	EProcessP150_PriorityLow
       
   697         	LBUF { txt="EPriorityBackground=250"; },	//	EProcessP250_PriorityBackground
       
   698         	LBUF { txt="EPriorityForeground=350"; },	//	EProcessP350_PriorityForeground
       
   699 		LBUF { txt="EPriorityHigh=450";},			//	EProcessP450_PriorityHigh
       
   700 		LBUF { txt="EPriorityWindowServer=650";},	//	EProcessP650_PriorityWindowServer
       
   701 		LBUF { txt="EPriorityFileServer=750";},		//	EProcessP750_PriorityFileServer
       
   702 		LBUF { txt="EPriorityRealTimeServer=850";},	//	EProcessP850_PriorityRealTimeServer	
       
   703 		LBUF { txt="EPrioritySupervisor=950";},		//	EProcessP950_PrioritySupervisor
       
   704        	 	LBUF { txt ="PriorityNotStandard"; }	//	EProcessPriorityNotStandard
       
   705              };
       
   706 	}
       
   707 //
       
   708 // Ram Dialog
       
   709 //
       
   710 
       
   711 RESOURCE DIALOG r_ram_dialog
       
   712 	{
       
   713 	title = "RAM Tool";
       
   714 	buttons = r_ram_dialog_buttons;
       
   715 	flags = EEikDialogFlagWait;
       
   716 		items =
       
   717 		{
       
   718 		DLG_LINE
       
   719 			{
       
   720 			type=EEikCtLabel;
       
   721 			ITEMFLAG_USEFULLWIDTH
       
   722 			id = ERamLabel1;
       
   723 			control=LABEL
       
   724 				{
       
   725 				horiz_align=EEikLabelAlignHLeft;
       
   726 				txt="Fill the RAM by tapping OK. This will use RAM up to the amount specified";
       
   727 				}; 
       
   728 			},
       
   729 		DLG_LINE 
       
   730 			{ 
       
   731 			prompt="Leave RAM"; 
       
   732 			type=EXIKCTOPTIONBUTLIST; 
       
   733 			id=ERamToLeaveButtonCtl;
       
   734 			control=OPBUTLIST
       
   735 					{ 
       
   736 					array_id=r_ram_to_leave_buttons; 
       
   737 					};
       
   738 				},
       
   739 		DLG_LINE
       
   740 			{
       
   741 			type=EEikCtLabel;
       
   742 			ITEMFLAG_USEFULLWIDTH
       
   743 			id = ERamTotal;
       
   744 			control=LABEL
       
   745 				{
       
   746 				horiz_align=EEikLabelAlignHLeft;
       
   747 				txt="Total";
       
   748 				}; 
       
   749 			},
       
   750 		DLG_LINE
       
   751 			{
       
   752 			type=EEikCtLabel;
       
   753 			ITEMFLAG_USEFULLWIDTH
       
   754 			id = ERamFree;
       
   755 			control=LABEL
       
   756 				{
       
   757 				horiz_align=EEikLabelAlignHLeft;
       
   758 				txt="Free";
       
   759 				}; 
       
   760 			},
       
   761 		DLG_LINE
       
   762 			{
       
   763 			type=EEikCtLabel;
       
   764 			ITEMFLAG_USEFULLWIDTH
       
   765 			id = ERamLabel2;
       
   766 			control=LABEL
       
   767 				{
       
   768 				horiz_align=EEikLabelAlignHLeft;
       
   769 				txt="To relinquish RAM kill this thread with the thread tool";
       
   770 				}; 
       
   771 			}
       
   772 		};
       
   773 	}
       
   774 
       
   775 RESOURCE DLG_BUTTONS r_ram_dialog_buttons
       
   776 	{
       
   777 	buttons=
       
   778 		{
       
   779 		DLG_BUTTON
       
   780 			{
       
   781 			id=ERamSetButtonCtl;
       
   782 			button=CMBUT { txt="Fill";};
       
   783 			hotkey = 'F';
       
   784 			},
       
   785 		DLG_BUTTON
       
   786 			{
       
   787 			id=ERamUndoFillButtonCtl;
       
   788 			button=CMBUT { txt="Undo Fill(s)";};
       
   789 			hotkey = 'U';
       
   790 			},
       
   791 		DLG_BUTTON
       
   792 			{
       
   793 			id=EEikBidCancel;
       
   794 			button=CMBUT { txt="Close";};
       
   795 			hotkey = 'C';
       
   796 			}
       
   797 		};
       
   798 	}
       
   799 
       
   800 RESOURCE ARRAY r_ram_to_leave_buttons
       
   801 	{
       
   802 	items= 
       
   803        	{ 
       
   804        	OPBUT { id = ERamLeave4K; text="<4K"; },
       
   805        	OPBUT { id = ERamLeave8K; text="<8K"; },
       
   806        	OPBUT { id = ERamLeave16K; text="<16K"; },
       
   807 		OPBUT { id = ERamLeave64K; text="<64K"; },
       
   808 		OPBUT { id = ERamLeave256K; text="<256K"; }
       
   809        	};
       
   810 	}
       
   811 
       
   812 //
       
   813 // Drive Dialog
       
   814 //
       
   815 
       
   816 RESOURCE DIALOG r_drive_dialog
       
   817 	{
       
   818 	title = "Drive Tool";
       
   819 	buttons = r_drive_dialog_buttons;
       
   820 	flags = EEikDialogFlagWait;
       
   821 		items =
       
   822 		{
       
   823 		DLG_LINE
       
   824 			{
       
   825 			type=EEikCtLabel;
       
   826 			ITEMFLAG_USEFULLWIDTH //EEikDlgItemCtlGetsWidthFirst
       
   827 			id = ERamLabel1;
       
   828 			control=LABEL
       
   829 				{
       
   830 				horiz_align=EEikLabelAlignHLeft;
       
   831 				txt="Pick a drive. Fill the drive by tapping Fill. This will use space up to the \namount specified. This can be undone by tapping Undo Fill";
       
   832 				}; 
       
   833 
       
   834 			},
       
   835 		DLG_LINE 
       
   836 			{ 
       
   837 			prompt="Drive"; 
       
   838 			type=EEikCtChoiceList; 
       
   839 			id=EDriveChoiceList;
       
   840 			control=CHOICELIST
       
   841 				{
       
   842 			
       
   843 				};
       
   844 			},
       
   845 		DLG_LINE 
       
   846 			{ 
       
   847 			prompt="Leave space"; 
       
   848 			type=EXIKCTOPTIONBUTLIST;//EQikCtVertOptionButtonList; 
       
   849 			id=EDriveToLeaveButtonCtl;
       
   850 			control=OPBUTLIST
       
   851 					{ 
       
   852 					array_id=r_drive_to_leave_buttons; 
       
   853 					};
       
   854 			}
       
   855 		};
       
   856 	}
       
   857 
       
   858 RESOURCE DLG_BUTTONS r_drive_dialog_buttons
       
   859 	{
       
   860 	buttons=
       
   861 		{
       
   862 		DLG_BUTTON
       
   863 			{
       
   864 			id=EDriveFormatButtonCtl;
       
   865 			button=CMBUT { txt="Format";};
       
   866 			hotkey = 'T';
       
   867 			},
       
   868 		DLG_BUTTON
       
   869 			{
       
   870 			id=EDriveFillButtonCtl;
       
   871 			button=CMBUT { txt="Fill";};
       
   872 			hotkey = 'F';
       
   873 			},
       
   874 		DLG_BUTTON
       
   875 			{
       
   876 			id=EDriveUndoFillButtonCtl;
       
   877 			button=CMBUT { txt="Undo Fill(s)";};
       
   878 			hotkey = 'U';
       
   879 			},
       
   880 		DLG_BUTTON
       
   881 			{
       
   882 			id=EEikBidCancel;
       
   883 			button=CMBUT { txt="Close";};
       
   884 			hotkey = 'C';
       
   885 			}
       
   886 		};
       
   887 	}
       
   888 
       
   889 RESOURCE ARRAY r_drive_to_leave_buttons
       
   890 	{
       
   891 	items= 
       
   892         	{ 
       
   893         	OPBUT { id = EDriveLeave4K; text="<4K"; },
       
   894         	OPBUT { id = EDriveLeave8K; text="<8K"; },
       
   895 			OPBUT { id = EDriveLeave16K; text="<16K"; },
       
   896 			OPBUT { id = EDriveLeave64K; text="<64K"; },
       
   897         	OPBUT { id = EDriveLeave256K; text="<256K"; }
       
   898          	};
       
   899 	}