commonuisupport/uikon/test/tspane/tspane.rss
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 1997-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 // Tspane app
       
    15 // 
       
    16 //
       
    17 
       
    18 NAME TSPA
       
    19 
       
    20 #include <techview/eikon.rh>
       
    21 #include "tspane.hrh"
       
    22 #include <techview/eikon.rsg>
       
    23 #include <eikctl.rsg>
       
    24 
       
    25 RESOURCE RSS_SIGNATURE { }
       
    26 
       
    27 RESOURCE TBUF { buf="Tspane"; }
       
    28 
       
    29 RESOURCE EIK_APP_INFO
       
    30 	{
       
    31 	menubar=r_tspane_menubar;
       
    32 	hotkeys=r_tspane_hotkeys;
       
    33 	}
       
    34 
       
    35 RESOURCE HOTKEYS r_tspane_hotkeys
       
    36     {
       
    37     control=
       
    38         {
       
    39         HOTKEY { command=EEikCmdExit; key='e'; }
       
    40         };
       
    41     }
       
    42 
       
    43 RESOURCE MENU_BAR r_tspane_menubar
       
    44     {
       
    45     titles=
       
    46         {
       
    47         MENU_TITLE { menu_pane=r_tspane_file_menu; txt="File"; },
       
    48         MENU_TITLE { menu_pane=r_tspane_auto_menu; txt="Auto"; },
       
    49         MENU_TITLE { menu_pane=r_tspane_manual_menu; txt="Manual"; },
       
    50 		MENU_TITLE { menu_pane=r_tspane_other_menu; txt="Other"; }
       
    51 		};
       
    52     }
       
    53 
       
    54 RESOURCE MENU_PANE r_tspane_file_menu
       
    55 	{
       
    56 	items=
       
    57 		{
       
    58 		MENU_ITEM { command=EEikCmdExit; txt="Exit"; }
       
    59         };
       
    60     }
       
    61 
       
    62 RESOURCE MENU_PANE r_tspane_auto_menu
       
    63 	{
       
    64 	items=
       
    65 		{
       
    66 		MENU_ITEM { command=ETspaneCmdAutoAll; txt="All"; },
       
    67 		MENU_ITEM { command=ETspaneCmdAutoNormal; txt="Normal"; },
       
    68 		MENU_ITEM { command=ETspaneCmdAutoOom; txt="OOM"; }
       
    69         };
       
    70     }
       
    71 
       
    72 RESOURCE MENU_PANE r_tspane_manual_menu
       
    73 	{
       
    74 	items=
       
    75 		{
       
    76 		MENU_ITEM { command=ETspaneCmdManualVis; txt="Swap Vis"; },
       
    77 		MENU_ITEM { command=ETspaneCmdManualDim; txt="Swap Dim"; },
       
    78 		MENU_ITEM { command=ETspaneCmdManualFade; txt="Swap Fade"; },
       
    79 		MENU_ITEM { command=ETspaneCmdManualState; flags=EEikMenuItemSeparatorAfter; txt="State"; },
       
    80 		MENU_ITEM { command=ETspaneCmdManualLayout; txt="Layout"; },
       
    81 		MENU_ITEM { command=ETspaneCmdManualControl; txt="Control"; },
       
    82 		MENU_ITEM { command=ETspaneCmdManualWg; txt="Window"; }
       
    83         };
       
    84     }
       
    85 
       
    86 RESOURCE MENU_PANE r_tspane_other_menu
       
    87 	{
       
    88 	items=
       
    89 		{
       
    90 		MENU_ITEM { command=ETspaneCmdBoundingRegion; txt="Display Status Pane Bounding Rect"; }
       
    91         };
       
    92     }
       
    93 
       
    94 RESOURCE STATUS_PANE_SYSTEM_MODEL r_tspane_status_pane
       
    95 	{
       
    96 	panes = 
       
    97 		{
       
    98 		SPANE_PANE
       
    99 			{
       
   100 			id = ETSpanePaneUid1;
       
   101 			flags = EEikStatusPaneAppOwned;
       
   102 			type = EEikCtTextButton;
       
   103 			resource = r_tspane_pane1_content; 
       
   104 			},
       
   105 		SPANE_PANE
       
   106 			{
       
   107 			id = ETSpanePaneUid2;
       
   108 			flags = EEikStatusPaneAppOwned;
       
   109 			type = EEikCtTextButton;
       
   110 			resource = r_tspane_pane2_content; 
       
   111 			},
       
   112 		SPANE_PANE
       
   113 			{
       
   114 			id = ETSpanePaneUid3;
       
   115 			flags = EEikStatusPaneAppOwned;
       
   116 			type = EEikCtTextButton;
       
   117 			resource = r_tspane_pane3_content; 
       
   118 			},
       
   119 		SPANE_PANE
       
   120 			{
       
   121 			id = ETSpanePaneUid4;
       
   122 			flags = EEikStatusPaneAppOwned;
       
   123 			type = EEikCtTextButton;
       
   124 			resource = r_tspane_pane4_content; 
       
   125 			},
       
   126 		SPANE_PANE
       
   127 			{
       
   128 			id = ETSpanePaneUid5;
       
   129 			flags = EEikStatusPaneAppOwned;
       
   130 			type = EEikCtTextButton;
       
   131 			resource = r_tspane_pane5_content; 
       
   132 			},
       
   133 		SPANE_PANE
       
   134 			{
       
   135 			id = ETSpanePaneUid6;
       
   136 			flags = EEikStatusPaneAppOwned;
       
   137 			type = EEikCtTextButton;
       
   138 			resource = r_tspane_pane6_content; 
       
   139 			},
       
   140 		SPANE_PANE
       
   141 			{
       
   142 			id = ETSpanePaneUid7;
       
   143 			flags = EEikStatusPaneAppOwned;
       
   144 			type = EEikCtTextButton;
       
   145 			resource = r_tspane_pane7_content; 
       
   146 			}
       
   147 		};
       
   148 
       
   149 	default_layout = r_tspane_layout_complex;
       
   150 	layouts = 
       
   151 		{
       
   152 		r_tspane_layout_top, 
       
   153 		r_tspane_layout_left, 
       
   154 		r_tspane_layout_bottom, 
       
   155 		r_tspane_layout_right, 
       
   156 		r_tspane_layout_complex, 
       
   157 		r_tspane_layout_difsize
       
   158 		};
       
   159 	}
       
   160 
       
   161 
       
   162 RESOURCE STATUS_PANE_LAYOUT r_tspane_layout_top
       
   163 	{
       
   164 	position = EEikStatusPanePositionTop;
       
   165 	pane_tree = SPANE_LAYOUT_TREE_NODE
       
   166 		{
       
   167 		id = ETSpanePaneUid1;
       
   168 		flags = EEikStatusPaneIsStretchable;
       
   169 		size = ETspaneTopHeight;
       
   170 		sub_panes = {};
       
   171 		};
       
   172 	}
       
   173 
       
   174 RESOURCE STATUS_PANE_LAYOUT r_tspane_layout_left
       
   175 	{
       
   176 	position = EEikStatusPanePositionLeft;
       
   177 	pane_tree = SPANE_LAYOUT_TREE_NODE
       
   178 		{
       
   179 		id = ETSpanePaneUid1;
       
   180 		flags = EEikStatusPaneIsStretchable;
       
   181 		size = ETspaneLeftWidth;
       
   182 		sub_panes = {};
       
   183 		};
       
   184 	}
       
   185 
       
   186 RESOURCE STATUS_PANE_LAYOUT r_tspane_layout_bottom
       
   187 	{
       
   188 	position = EEikStatusPanePositionBottom;
       
   189 	pane_tree = SPANE_LAYOUT_TREE_NODE
       
   190 		{
       
   191 		id = ETSpanePaneUid1;
       
   192 		flags = EEikStatusPaneIsStretchable;
       
   193 		size = ETspaneBottomHeight;
       
   194 		sub_panes = {};
       
   195 		};
       
   196 	}
       
   197 
       
   198 RESOURCE STATUS_PANE_LAYOUT r_tspane_layout_right
       
   199 	{
       
   200 	position = EEikStatusPanePositionRight;
       
   201 	pane_tree = SPANE_LAYOUT_TREE_NODE
       
   202 		{
       
   203 		id = ETSpanePaneUid1;
       
   204 		flags = EEikStatusPaneIsStretchable;
       
   205 		size = ETspaneRightWidth;
       
   206 		sub_panes = {};
       
   207 		};
       
   208 	}
       
   209 
       
   210 RESOURCE STATUS_PANE_LAYOUT r_tspane_layout_complex
       
   211 	{
       
   212 	position = EEikStatusPanePositionTop;
       
   213 	pane_tree = SPANE_LAYOUT_TREE_NODE
       
   214 		{
       
   215 		size = ETspaneTopHeight;
       
   216 		sub_panes = 
       
   217 			{
       
   218 			SPANE_LAYOUT_TREE_NODE
       
   219 				{
       
   220 				flags = EEikStatusPaneIsStretchable;
       
   221 				size = 1;
       
   222 				sub_panes = 
       
   223 					{
       
   224 					SPANE_LAYOUT_TREE_NODE
       
   225 						{
       
   226 						id = ETSpanePaneUid1;
       
   227 						flags = EEikStatusPaneIsStretchable;
       
   228 						size = 1;
       
   229 						sub_panes = {};
       
   230 						},
       
   231 					SPANE_LAYOUT_TREE_NODE
       
   232 						{
       
   233 						id = ETSpanePaneUid2;
       
   234 						flags = EEikStatusPaneIsStretchable;
       
   235 						size = 1;
       
   236 						sub_panes = {};
       
   237 						}
       
   238 					};
       
   239 				},
       
   240 			SPANE_LAYOUT_TREE_NODE
       
   241 				{
       
   242 				id = ETSpanePaneUid3;
       
   243 				flags = EEikStatusPaneIsStretchable;
       
   244 				size = 1;
       
   245 				sub_panes = {};
       
   246 				},
       
   247 			SPANE_LAYOUT_TREE_NODE
       
   248 				{
       
   249 				flags = EEikStatusPaneIsStretchable;
       
   250 				size = 1;
       
   251 				sub_panes = 
       
   252 					{
       
   253 					SPANE_LAYOUT_TREE_NODE
       
   254 						{
       
   255 						id = ETSpanePaneUid4;
       
   256 						flags = EEikStatusPaneIsStretchable;
       
   257 						size = 1;
       
   258 						sub_panes = {};
       
   259 						},
       
   260 					SPANE_LAYOUT_TREE_NODE
       
   261 						{
       
   262 						flags = EEikStatusPaneIsStretchable;
       
   263 						size = 1;
       
   264 						sub_panes = 
       
   265 							{
       
   266 							SPANE_LAYOUT_TREE_NODE
       
   267 								{
       
   268 								id = ETSpanePaneUid5;
       
   269 								flags = EEikStatusPaneIsStretchable;
       
   270 								size = 1;
       
   271 								sub_panes = {};
       
   272 								},
       
   273 							SPANE_LAYOUT_TREE_NODE
       
   274 								{
       
   275 								id = ETSpanePaneUid6;
       
   276 								flags = EEikStatusPaneIsStretchable;
       
   277 								size = 1;
       
   278 								sub_panes = {};
       
   279 								}
       
   280 							};
       
   281 						}
       
   282 					};
       
   283 				},
       
   284 			SPANE_LAYOUT_TREE_NODE
       
   285 				{
       
   286 				id = ETSpanePaneUid7;
       
   287 				flags = EEikStatusPaneIsStretchable;
       
   288 				size = 1;
       
   289 				sub_panes = {};
       
   290 				}
       
   291 			};
       
   292 		};
       
   293 	}
       
   294 
       
   295 RESOURCE STATUS_PANE_LAYOUT r_tspane_layout_difsize
       
   296 	{
       
   297 	position = EEikStatusPanePositionTop;
       
   298 	pane_tree = SPANE_LAYOUT_TREE_NODE
       
   299 		{
       
   300 		id = ETSpanePaneUid1;
       
   301 		flags = EEikStatusPaneIsStretchable;
       
   302 		size = ETspaneBottomHeight;
       
   303 		sub_panes = {};
       
   304 		};
       
   305 	}
       
   306 
       
   307 
       
   308 RESOURCE TXTBUT r_tspane_pane1_content { txt1 = "1"; }
       
   309 RESOURCE TXTBUT r_tspane_pane2_content { txt1 = "2"; }
       
   310 RESOURCE TXTBUT r_tspane_pane3_content { txt1 = "3"; }
       
   311 RESOURCE TXTBUT r_tspane_pane4_content { txt1 = "4"; }
       
   312 RESOURCE TXTBUT r_tspane_pane5_content { txt1 = "5"; }
       
   313 RESOURCE TXTBUT r_tspane_pane6_content { txt1 = "6"; }
       
   314 RESOURCE TXTBUT r_tspane_pane7_content { txt1 = "7"; }
       
   315 
       
   316 RESOURCE CLOCK r_tspane_clock
       
   317 	{ 
       
   318 	digitalresourceid=R_EIK_DIGITAL_CLOCK; 
       
   319 	analogresourceid=R_EIK_ANALOG_CLOCK; 
       
   320 	}
       
   321 
       
   322 
       
   323 RESOURCE STATUS_PANE_SYSTEM_MODEL r_tspane_floating_status_pane
       
   324 	{
       
   325 	panes = 
       
   326 		{
       
   327 		SPANE_PANE
       
   328 			{
       
   329 			id = ETSpanePaneUid1;
       
   330 			flags = EEikStatusPaneAppOwned;
       
   331 			type = EEikCtLabel;
       
   332 			resource = r_tspane_float_pane1_content; 
       
   333 			},
       
   334 		SPANE_PANE
       
   335 			{
       
   336 			id = ETSpanePaneUid2;
       
   337 			flags = EEikStatusPaneAppOwned;
       
   338 			type = EEikCtLabel;
       
   339 			resource = r_tspane_float_pane2_content; 
       
   340 			}
       
   341 		};
       
   342 
       
   343 	default_layout = r_tspane_float_layout;
       
   344 	layouts = 
       
   345 		{
       
   346 		r_tspane_float_layout
       
   347 		};
       
   348 	}
       
   349 
       
   350 RESOURCE LABEL r_tspane_float_pane1_content { txt = "New WG"; }
       
   351 RESOURCE LABEL r_tspane_float_pane2_content { txt = "Kill"; }
       
   352 
       
   353 RESOURCE STATUS_PANE_LAYOUT r_tspane_float_layout
       
   354 	{
       
   355 	position = EEikStatusPanePositionBottom;
       
   356 	pane_tree = SPANE_LAYOUT_TREE_NODE
       
   357 		{
       
   358 		id = ETSpanePaneUid1;
       
   359 		flags = EEikStatusPaneIsStretchable;
       
   360 		size = 32;
       
   361 		sub_panes = 
       
   362 			{
       
   363 			SPANE_LAYOUT_TREE_NODE
       
   364 				{
       
   365 				id = ETSpanePaneUid1;
       
   366 				flags = EEikStatusPaneIsStretchable;
       
   367 				size = 3;			// split space 3:1
       
   368 				sub_panes = {};
       
   369 				},
       
   370 			SPANE_LAYOUT_TREE_NODE
       
   371 				{
       
   372 				id = ETSpanePaneUid2;
       
   373 				flags = EEikStatusPaneIsStretchable;
       
   374 				size = 1;			// split space 3:1
       
   375 				sub_panes = {};
       
   376 				}
       
   377 			};
       
   378 		};
       
   379 	}
       
   380 
       
   381 RESOURCE STATUS_PANE_APP_MODEL r_tspane_app_overrides
       
   382 	{
       
   383 	layout = r_tspane_layout_top;
       
   384 	panes = 
       
   385 		{
       
   386 		SPANE_PANE
       
   387 			{
       
   388 			id = ETSpanePaneUid1;
       
   389 			type = EEikCtLabel;
       
   390 			resource = r_tspane_pane1_content_override; 
       
   391 			}
       
   392 		};
       
   393 	}
       
   394 
       
   395 RESOURCE LABEL r_tspane_pane1_content_override { txt = "A"; }
       
   396 
       
   397 
       
   398 RESOURCE STATUS_PANE_SYSTEM_MODEL r_tspane_bad_layout_status_pane
       
   399 	{
       
   400 	panes = 
       
   401 		{
       
   402 		SPANE_PANE
       
   403 			{
       
   404 			id = ETSpanePaneUid1;
       
   405 			flags = EEikStatusPaneAppOwned;
       
   406 			type = EEikCtLabel;
       
   407 			resource = r_tspane_float_pane1_content; 
       
   408 			}
       
   409 		};
       
   410 
       
   411 	default_layout = 0x12345678;
       
   412 	layouts = 
       
   413 		{
       
   414 		r_tspane_float_layout
       
   415 		};
       
   416 	}
       
   417 
       
   418 
       
   419 RESOURCE STATUS_PANE_APP_MODEL r_tspane_app_bad_override_layout
       
   420 	{
       
   421 	layout = 0x12345678;
       
   422 	panes = 
       
   423 		{
       
   424 		SPANE_PANE
       
   425 			{
       
   426 			id = ETSpanePaneUid1;
       
   427 			type = EEikCtLabel;
       
   428 			resource = r_tspane_pane1_content_override; 
       
   429 			}
       
   430 		};
       
   431 	}
       
   432 
       
   433 RESOURCE STATUS_PANE_APP_MODEL r_tspane_app_bad_override_pane
       
   434 	{
       
   435 	layout = r_tspane_float_layout;
       
   436 	panes = 
       
   437 		{
       
   438 		SPANE_PANE
       
   439 			{
       
   440 			id = ETSpanePaneUid3;
       
   441 			type = EEikCtLabel;
       
   442 			resource = r_tspane_pane1_content_override; 
       
   443 			}
       
   444 		};
       
   445 	}