uidesigner/com.nokia.sdt.series60.componentlibrary/components/containers/DialogBase.component
author fturovic <frank.turovich@nokia.com>
Fri, 03 Apr 2009 10:36:00 -0500
changeset 36 131ddbe8aee4
parent 2 d760517a8095
permissions -rw-r--r--
added IAD rules to CS manual
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
cawthron
parents:
diff changeset
     2
<!-- Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). -->
cawthron
parents:
diff changeset
     3
<!-- All rights reserved. -->
cawthron
parents:
diff changeset
     4
<!-- This component and the accompanying materials are made available -->
cawthron
parents:
diff changeset
     5
<!-- under the terms of the License "Eclipse Public License v1.0" -->
cawthron
parents:
diff changeset
     6
<!-- which accompanies this distribution, and is available -->
cawthron
parents:
diff changeset
     7
<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
cawthron
parents:
diff changeset
     8
cawthron
parents:
diff changeset
     9
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component" 
cawthron
parents:
diff changeset
    10
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" 
cawthron
parents:
diff changeset
    11
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
cawthron
parents:
diff changeset
    12
cawthron
parents:
diff changeset
    13
	<component baseComponent="com.nokia.sdt.series60.ContainerBase" 
cawthron
parents:
diff changeset
    14
			friendlyName=""
cawthron
parents:
diff changeset
    15
			qualifiedName="com.nokia.sdt.series60.DialogBase" 
cawthron
parents:
diff changeset
    16
			abstract="true"
cawthron
parents:
diff changeset
    17
			version="1.0">
cawthron
parents:
diff changeset
    18
			
cawthron
parents:
diff changeset
    19
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0"/>
cawthron
parents:
diff changeset
    20
		
cawthron
parents:
diff changeset
    21
		<attributes>
cawthron
parents:
diff changeset
    22
			<attribute key="is-top-level-content-container">true</attribute>
cawthron
parents:
diff changeset
    23
			<attribute key="vertical-scrollable-container">true</attribute>
cawthron
parents:
diff changeset
    24
			<attribute key="layout-type">ordered</attribute>
cawthron
parents:
diff changeset
    25
			<attribute key="ordered-layout-type">vertical-row</attribute>
cawthron
parents:
diff changeset
    26
			<attribute key="allow-cba-in-parent">true</attribute>
cawthron
parents:
diff changeset
    27
			<attribute key="container-background-color-property-name">backColor</attribute>
cawthron
parents:
diff changeset
    28
		</attributes>
cawthron
parents:
diff changeset
    29
	
cawthron
parents:
diff changeset
    30
		<properties>
cawthron
parents:
diff changeset
    31
			<property category="Hidden" name="notifyEsc" type="boolean" default="false"/>
cawthron
parents:
diff changeset
    32
			<property category="Behavior" name="modeless" type="boolean" default="true"
cawthron
parents:
diff changeset
    33
				descriptionKey="EEikDialogFlagModelessDescription" />
cawthron
parents:
diff changeset
    34
			<property category="Behavior" name="wait" type="boolean" default="false"
cawthron
parents:
diff changeset
    35
				descriptionKey="EEikDialogFlagWaitDescription" />
cawthron
parents:
diff changeset
    36
				<!-- corresponds to flag EEikDialogFlagWait 0x001 -->
cawthron
parents:
diff changeset
    37
		</properties>
cawthron
parents:
diff changeset
    38
		
cawthron
parents:
diff changeset
    39
		<implementations>
cawthron
parents:
diff changeset
    40
			<implementation>
cawthron
parents:
diff changeset
    41
				<interface id="com.nokia.sdt.datamodel.adapter.IInitializer"/>
cawthron
parents:
diff changeset
    42
				<script file="DialogBase.js" prototype="DialogBase" />
cawthron
parents:
diff changeset
    43
			</implementation>
cawthron
parents:
diff changeset
    44
		</implementations>
cawthron
parents:
diff changeset
    45
		
cawthron
parents:
diff changeset
    46
		<events>
cawthron
parents:
diff changeset
    47
		<event name="prepareForFocusTransition" category="Dialog" 
cawthron
parents:
diff changeset
    48
		    handlerNameTemplate="Handle{title(name)}PrepareForFocusTransitionL"
cawthron
parents:
diff changeset
    49
		    descriptionKey="prepareForFocusTransitionDescription"
cawthron
parents:
diff changeset
    50
		/>
cawthron
parents:
diff changeset
    51
		<event name="pageChanged" category="Dialog" 
cawthron
parents:
diff changeset
    52
		    handlerNameTemplate="Handle{title(name)}PageChangedL"
cawthron
parents:
diff changeset
    53
		    descriptionKey="pageChangedDescription"
cawthron
parents:
diff changeset
    54
		/>		
cawthron
parents:
diff changeset
    55
		<event name="lineChanged" category="Dialog" 
cawthron
parents:
diff changeset
    56
		    handlerNameTemplate="Handle{title(name)}LineChangedL"
cawthron
parents:
diff changeset
    57
		    descriptionKey="lineChangedDescription"
cawthron
parents:
diff changeset
    58
		/>
cawthron
parents:
diff changeset
    59
		<event name="processCommand" category="Command" 
cawthron
parents:
diff changeset
    60
		    handlerNameTemplate="Handle{title(name)}ProcessCommandL"
cawthron
parents:
diff changeset
    61
		    descriptionKey="processCommandDescription"
cawthron
parents:
diff changeset
    62
		/>
cawthron
parents:
diff changeset
    63
		<event name="dynInitMenuPane" category="Menu" 
cawthron
parents:
diff changeset
    64
		    handlerNameTemplate="Handle{title(name)}DynInitMenuPaneL"
cawthron
parents:
diff changeset
    65
		    descriptionKey="dynInitMenuPaneDescription"
cawthron
parents:
diff changeset
    66
		/>
cawthron
parents:
diff changeset
    67
		<event name="offerKeyToApp" category="Menu" 
cawthron
parents:
diff changeset
    68
		    handlerNameTemplate="Handle{title(name)}OfferKeyToAppL"
cawthron
parents:
diff changeset
    69
		    descriptionKey="offerKeyToAppDescription"
cawthron
parents:
diff changeset
    70
		/>
cawthron
parents:
diff changeset
    71
		</events>
cawthron
parents:
diff changeset
    72
		
cawthron
parents:
diff changeset
    73
	<sourceGen>
cawthron
parents:
diff changeset
    74
		
cawthron
parents:
diff changeset
    75
<!-- BEGIN EVENT prepareForFocusTransition -->
cawthron
parents:
diff changeset
    76
			<templateGroup id="GeneratePrepareForFocusTransition" ifEvents="prepareForFocusTransition">
cawthron
parents:
diff changeset
    77
				<template id="DeclarePrepareForFocusTransitionOverride" phase="OverriddenMethods"><![CDATA[
cawthron
parents:
diff changeset
    78
void PrepareForFocusTransitionL();
cawthron
parents:
diff changeset
    79
]]>				</template>
cawthron
parents:
diff changeset
    80
cawthron
parents:
diff changeset
    81
				<defineLocation id="PrepareForFocusTransitionOverride" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
    82
					owned="false"
cawthron
parents:
diff changeset
    83
					location="function(${handlerClassName}::PrepareForFocusTransitionL())">
cawthron
parents:
diff changeset
    84
					<template><![CDATA[
cawthron
parents:
diff changeset
    85
/** 
cawthron
parents:
diff changeset
    86
 * Handle focus transition this dialog (override)
cawthron
parents:
diff changeset
    87
 */
cawthron
parents:
diff changeset
    88
void ${handlerClassName}::PrepareForFocusTransitionL()
cawthron
parents:
diff changeset
    89
	{
cawthron
parents:
diff changeset
    90
	${instance.attributes["base-container-class"]}::PrepareForFocusTransitionL();
cawthron
parents:
diff changeset
    91
	}
cawthron
parents:
diff changeset
    92
]]>				
cawthron
parents:
diff changeset
    93
					</template>
cawthron
parents:
diff changeset
    94
				</defineLocation>
cawthron
parents:
diff changeset
    95
				
cawthron
parents:
diff changeset
    96
			<defineLocation id="PrepareForFocusTransitionMethodBody" baseLocation="PrepareForFocusTransitionOverride"
cawthron
parents:
diff changeset
    97
				location="region(Generated Contents)">
cawthron
parents:
diff changeset
    98
				<template/>
cawthron
parents:
diff changeset
    99
			</defineLocation>
cawthron
parents:
diff changeset
   100
			
cawthron
parents:
diff changeset
   101
			<template id="InvokePrepareForFocusTransitionHandler" location="PrepareForFocusTransitionMethodBody">
cawthron
parents:
diff changeset
   102
${event.handlerName}();
cawthron
parents:
diff changeset
   103
			</template>
cawthron
parents:
diff changeset
   104
cawthron
parents:
diff changeset
   105
			<template id="DeclarePrepareForFocusTransitionHandler" phase="UserHandlers">
cawthron
parents:
diff changeset
   106
void ${event.handlerName}();
cawthron
parents:
diff changeset
   107
			</template>
cawthron
parents:
diff changeset
   108
cawthron
parents:
diff changeset
   109
			<defineLocation id="PrepareForFocusTransitionHandlerMethod" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   110
				owned="false"
cawthron
parents:
diff changeset
   111
				isEventHandler="true"
cawthron
parents:
diff changeset
   112
				location="function(${handlerClassName}::${event.handlerName}())">
cawthron
parents:
diff changeset
   113
			<template><![CDATA[
cawthron
parents:
diff changeset
   114
/** 
cawthron
parents:
diff changeset
   115
 * Handle the ${event.eventName} event.
cawthron
parents:
diff changeset
   116
 */
cawthron
parents:
diff changeset
   117
void ${handlerClassName}::${event.handlerName}()
cawthron
parents:
diff changeset
   118
	{
cawthron
parents:
diff changeset
   119
	// TODO: implement ${event.eventName} event handler
cawthron
parents:
diff changeset
   120
	}
cawthron
parents:
diff changeset
   121
]]>				
cawthron
parents:
diff changeset
   122
				</template>
cawthron
parents:
diff changeset
   123
			</defineLocation>
cawthron
parents:
diff changeset
   124
			
cawthron
parents:
diff changeset
   125
			<template id="RealizePrepareForFocusTransitionHandler" location="PrepareForFocusTransitionHandlerMethod" />
cawthron
parents:
diff changeset
   126
			</templateGroup>
cawthron
parents:
diff changeset
   127
<!-- END EVENT prepareForFocusTransition -->
cawthron
parents:
diff changeset
   128
cawthron
parents:
diff changeset
   129
<!-- BEGIN EVENT pageChanged -->
cawthron
parents:
diff changeset
   130
			<templateGroup id="GeneratePageChanged" ifEvents="pageChanged">
cawthron
parents:
diff changeset
   131
				<template id="DeclarePageChangedOverride" phase="OverriddenMethods"><![CDATA[
cawthron
parents:
diff changeset
   132
void PageChangedL( TInt aPageId );
cawthron
parents:
diff changeset
   133
]]>				</template>
cawthron
parents:
diff changeset
   134
cawthron
parents:
diff changeset
   135
				<defineLocation id="PageChangedOverride" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   136
					owned="false"
cawthron
parents:
diff changeset
   137
					location="function(${handlerClassName}::PageChangedL(TInt))">
cawthron
parents:
diff changeset
   138
					<template><![CDATA[
cawthron
parents:
diff changeset
   139
/** 
cawthron
parents:
diff changeset
   140
 * Handle page changed notifications this dialog (override)
cawthron
parents:
diff changeset
   141
 */
cawthron
parents:
diff changeset
   142
void ${handlerClassName}::PageChangedL( TInt aPageId )
cawthron
parents:
diff changeset
   143
	{
cawthron
parents:
diff changeset
   144
	${instance.attributes["base-container-class"]}::PageChangedL( aPageId );
cawthron
parents:
diff changeset
   145
	}
cawthron
parents:
diff changeset
   146
]]>				
cawthron
parents:
diff changeset
   147
					</template>
cawthron
parents:
diff changeset
   148
				</defineLocation>
cawthron
parents:
diff changeset
   149
cawthron
parents:
diff changeset
   150
			<defineLocation id="PageChangedMethodBody" baseLocation="PageChangedOverride"
cawthron
parents:
diff changeset
   151
				location="region(Generated Contents)">
cawthron
parents:
diff changeset
   152
				<template/>
cawthron
parents:
diff changeset
   153
			</defineLocation>
cawthron
parents:
diff changeset
   154
			
cawthron
parents:
diff changeset
   155
			<template id="InvokePageChangedHandler" location="PageChangedMethodBody">
cawthron
parents:
diff changeset
   156
${event.handlerName}( aPageId );
cawthron
parents:
diff changeset
   157
			</template>
cawthron
parents:
diff changeset
   158
cawthron
parents:
diff changeset
   159
			<template id="DeclarePageChangedHandler" phase="UserHandlers">
cawthron
parents:
diff changeset
   160
void ${event.handlerName}( TInt aPageId );
cawthron
parents:
diff changeset
   161
			</template>
cawthron
parents:
diff changeset
   162
cawthron
parents:
diff changeset
   163
			<defineLocation id="PageChangedHandlerMethod" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   164
				owned="false"
cawthron
parents:
diff changeset
   165
				isEventHandler="true"
cawthron
parents:
diff changeset
   166
				location="function(${handlerClassName}::${event.handlerName}(TInt))">
cawthron
parents:
diff changeset
   167
			<template><![CDATA[
cawthron
parents:
diff changeset
   168
/** 
cawthron
parents:
diff changeset
   169
 * Handle the ${event.eventName} event.
cawthron
parents:
diff changeset
   170
 */
cawthron
parents:
diff changeset
   171
void ${handlerClassName}::${event.handlerName}( TInt aPageId )
cawthron
parents:
diff changeset
   172
	{
cawthron
parents:
diff changeset
   173
	// TODO: implement ${event.eventName} event handler
cawthron
parents:
diff changeset
   174
	}
cawthron
parents:
diff changeset
   175
]]>				
cawthron
parents:
diff changeset
   176
				</template>
cawthron
parents:
diff changeset
   177
			</defineLocation>
cawthron
parents:
diff changeset
   178
			
cawthron
parents:
diff changeset
   179
			<template id="RealizePageChangedHandler" location="PageChangedHandlerMethod" />
cawthron
parents:
diff changeset
   180
			</templateGroup>
cawthron
parents:
diff changeset
   181
<!-- END EVENT pageChanged -->
cawthron
parents:
diff changeset
   182
cawthron
parents:
diff changeset
   183
<!-- BEGIN EVENT lineChanged -->
cawthron
parents:
diff changeset
   184
			<templateGroup id="GenerateLineChanged" ifEvents="lineChanged">
cawthron
parents:
diff changeset
   185
				<template id="DeclareLineChangedOverride" phase="OverriddenMethods"><![CDATA[
cawthron
parents:
diff changeset
   186
void LineChangedL( TInt aPageId );
cawthron
parents:
diff changeset
   187
]]>				</template>
cawthron
parents:
diff changeset
   188
cawthron
parents:
diff changeset
   189
				<defineLocation id="LineChangedOverride" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   190
					owned="false"
cawthron
parents:
diff changeset
   191
					location="function(${handlerClassName}::LineChangedL(TInt))">
cawthron
parents:
diff changeset
   192
					<template><![CDATA[
cawthron
parents:
diff changeset
   193
/** 
cawthron
parents:
diff changeset
   194
 * Handle line change notifications for this dialog (override)
cawthron
parents:
diff changeset
   195
 */
cawthron
parents:
diff changeset
   196
void ${handlerClassName}::LineChangedL( TInt aControlId )
cawthron
parents:
diff changeset
   197
	{
cawthron
parents:
diff changeset
   198
	${instance.attributes["base-container-class"]}::LineChangedL( aControlId );
cawthron
parents:
diff changeset
   199
	}
cawthron
parents:
diff changeset
   200
]]>				
cawthron
parents:
diff changeset
   201
					</template>
cawthron
parents:
diff changeset
   202
				</defineLocation>
cawthron
parents:
diff changeset
   203
		
cawthron
parents:
diff changeset
   204
			<defineLocation id="LineChangedMethodBody" baseLocation="LineChangedOverride"
cawthron
parents:
diff changeset
   205
				location="region(Generated Contents)">
cawthron
parents:
diff changeset
   206
				<template/>
cawthron
parents:
diff changeset
   207
			</defineLocation>
cawthron
parents:
diff changeset
   208
			
cawthron
parents:
diff changeset
   209
			<template id="InvokeLineChangedHandler" location="LineChangedMethodBody">
cawthron
parents:
diff changeset
   210
${event.handlerName}( aControlId );
cawthron
parents:
diff changeset
   211
			</template>
cawthron
parents:
diff changeset
   212
cawthron
parents:
diff changeset
   213
			<template id="DeclareLineChangedHandler" phase="UserHandlers">
cawthron
parents:
diff changeset
   214
void ${event.handlerName}( TInt aControlId );
cawthron
parents:
diff changeset
   215
			</template>
cawthron
parents:
diff changeset
   216
cawthron
parents:
diff changeset
   217
			<defineLocation id="LineChangedHandlerMethod" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   218
				owned="false"
cawthron
parents:
diff changeset
   219
				isEventHandler="true"
cawthron
parents:
diff changeset
   220
				location="function(${handlerClassName}::${event.handlerName}(TInt))">
cawthron
parents:
diff changeset
   221
			<template><![CDATA[
cawthron
parents:
diff changeset
   222
/** 
cawthron
parents:
diff changeset
   223
 * Handle the ${event.eventName} event.
cawthron
parents:
diff changeset
   224
 */
cawthron
parents:
diff changeset
   225
void ${handlerClassName}::${event.handlerName}( TInt aControlId )
cawthron
parents:
diff changeset
   226
	{
cawthron
parents:
diff changeset
   227
	// TODO: implement ${event.eventName} event handler
cawthron
parents:
diff changeset
   228
	}
cawthron
parents:
diff changeset
   229
]]>				
cawthron
parents:
diff changeset
   230
				</template>
cawthron
parents:
diff changeset
   231
			</defineLocation>
cawthron
parents:
diff changeset
   232
			
cawthron
parents:
diff changeset
   233
			<template id="RealizeLineChangedHandlerMethod" location="LineChangedHandlerMethod" />
cawthron
parents:
diff changeset
   234
			</templateGroup>
cawthron
parents:
diff changeset
   235
<!-- END EVENT lineChanged -->
cawthron
parents:
diff changeset
   236
cawthron
parents:
diff changeset
   237
<!-- BEGIN EVENT processCommand -->
cawthron
parents:
diff changeset
   238
			<templateGroup id="GenerateProcessCommand" ifEvents="processCommand">
cawthron
parents:
diff changeset
   239
				<template id="DeclareProcessCommandOverride" phase="OverriddenMethods"><![CDATA[
cawthron
parents:
diff changeset
   240
void ProcessCommandL( TInt aCommandId );
cawthron
parents:
diff changeset
   241
]]>				</template>
cawthron
parents:
diff changeset
   242
cawthron
parents:
diff changeset
   243
				<defineLocation id="ProcessCommandOverride" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   244
					owned="false"
cawthron
parents:
diff changeset
   245
					location="function(${handlerClassName}::ProcessCommandL(TInt))">
cawthron
parents:
diff changeset
   246
					<template><![CDATA[
cawthron
parents:
diff changeset
   247
/** 
cawthron
parents:
diff changeset
   248
 * Handle commands for this dialog. (override)
cawthron
parents:
diff changeset
   249
 */
cawthron
parents:
diff changeset
   250
void ${handlerClassName}::ProcessCommandL( TInt aCommandId )
cawthron
parents:
diff changeset
   251
	{
cawthron
parents:
diff changeset
   252
	${instance.attributes["base-container-class"]}::ProcessCommandL( aCommandId );
cawthron
parents:
diff changeset
   253
	}
cawthron
parents:
diff changeset
   254
]]>				
cawthron
parents:
diff changeset
   255
					</template>
cawthron
parents:
diff changeset
   256
				</defineLocation>
cawthron
parents:
diff changeset
   257
		
cawthron
parents:
diff changeset
   258
			<defineLocation id="ProcessCommandMethodBody" baseLocation="ProcessCommandOverride"
cawthron
parents:
diff changeset
   259
				location="region(Generated Contents)">
cawthron
parents:
diff changeset
   260
				<template/>
cawthron
parents:
diff changeset
   261
			</defineLocation>
cawthron
parents:
diff changeset
   262
			
cawthron
parents:
diff changeset
   263
			<template id="InvokeProcessCommandHandler" location="ProcessCommandMethodBody">
cawthron
parents:
diff changeset
   264
${event.handlerName}( aCommandId );
cawthron
parents:
diff changeset
   265
			</template>
cawthron
parents:
diff changeset
   266
cawthron
parents:
diff changeset
   267
			<template id="DeclareProcessCommandHandler" phase="UserHandlers">
cawthron
parents:
diff changeset
   268
void ${event.handlerName}( TInt aCommandId );
cawthron
parents:
diff changeset
   269
			</template>
cawthron
parents:
diff changeset
   270
cawthron
parents:
diff changeset
   271
			<defineLocation id="ProcessCommandHandlerMethod" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   272
				owned="false"
cawthron
parents:
diff changeset
   273
				isEventHandler="true"
cawthron
parents:
diff changeset
   274
				location="function(${handlerClassName}::${event.handlerName}(TInt))">
cawthron
parents:
diff changeset
   275
			<template><![CDATA[
cawthron
parents:
diff changeset
   276
/** 
cawthron
parents:
diff changeset
   277
 * Handle the ${event.eventName} event.
cawthron
parents:
diff changeset
   278
 */
cawthron
parents:
diff changeset
   279
void ${handlerClassName}::${event.handlerName}( TInt aCommandId )
cawthron
parents:
diff changeset
   280
	{
cawthron
parents:
diff changeset
   281
	// TODO: implement ${event.eventName} event handler
cawthron
parents:
diff changeset
   282
	}
cawthron
parents:
diff changeset
   283
]]>				
cawthron
parents:
diff changeset
   284
				</template>
cawthron
parents:
diff changeset
   285
			</defineLocation>
cawthron
parents:
diff changeset
   286
			
cawthron
parents:
diff changeset
   287
			<template id="RealizeProcessCommandHandler" location="ProcessCommandHandlerMethod" />
cawthron
parents:
diff changeset
   288
			</templateGroup>
cawthron
parents:
diff changeset
   289
<!-- END EVENT processCommand -->
cawthron
parents:
diff changeset
   290
cawthron
parents:
diff changeset
   291
<!-- BEGIN EVENT dynInitMenuPane -->
cawthron
parents:
diff changeset
   292
			<templateGroup id="GenerateDynInitMenuPane" ifEvents="dynInitMenuPane">
cawthron
parents:
diff changeset
   293
				<template id="DeclareDynInitMenuPaneOverride" phase="OverriddenMethods"><![CDATA[
cawthron
parents:
diff changeset
   294
void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
cawthron
parents:
diff changeset
   295
]]>				</template>
cawthron
parents:
diff changeset
   296
				<template id="CEikMenuPaneForwardDecl" phase="ForwardDeclarations">
cawthron
parents:
diff changeset
   297
class CEikMenuPane;
cawthron
parents:
diff changeset
   298
				</template>
cawthron
parents:
diff changeset
   299
cawthron
parents:
diff changeset
   300
				<defineLocation id="DYNINITMENUPANEL" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   301
					owned="false"
cawthron
parents:
diff changeset
   302
					location="function(${handlerClassName}::DynInitMenuPaneL(TInt, CEikMenuPane*))">
cawthron
parents:
diff changeset
   303
					<template><![CDATA[
cawthron
parents:
diff changeset
   304
/** 
cawthron
parents:
diff changeset
   305
 * Handle menu enablement for this dialog. (override)
cawthron
parents:
diff changeset
   306
 */
cawthron
parents:
diff changeset
   307
void ${handlerClassName}::DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane )
cawthron
parents:
diff changeset
   308
	{
cawthron
parents:
diff changeset
   309
	${instance.attributes["base-container-class"]}::DynInitMenuPaneL( aResourceId, aMenuPane );
cawthron
parents:
diff changeset
   310
	}
cawthron
parents:
diff changeset
   311
]]>				
cawthron
parents:
diff changeset
   312
					</template>
cawthron
parents:
diff changeset
   313
				</defineLocation>
cawthron
parents:
diff changeset
   314
		
cawthron
parents:
diff changeset
   315
			<defineLocation id="DynInitMenuPaneMethodBody" baseLocation="DYNINITMENUPANEL"
cawthron
parents:
diff changeset
   316
				location="region(Generated Contents)">
cawthron
parents:
diff changeset
   317
				<template/>
cawthron
parents:
diff changeset
   318
			</defineLocation>
cawthron
parents:
diff changeset
   319
			
cawthron
parents:
diff changeset
   320
			<template id="InvokeDynInitMenuPaneHandler" location="DynInitMenuPaneMethodBody">
cawthron
parents:
diff changeset
   321
${event.handlerName}( aResourceId, aMenuPane );
cawthron
parents:
diff changeset
   322
			</template>
cawthron
parents:
diff changeset
   323
cawthron
parents:
diff changeset
   324
			<template id="DeclareDynInitMenuPaneHandler" phase="UserHandlers">
cawthron
parents:
diff changeset
   325
void ${event.handlerName}( TInt aResourceId, CEikMenuPane* aMenuPane );
cawthron
parents:
diff changeset
   326
			</template>
cawthron
parents:
diff changeset
   327
cawthron
parents:
diff changeset
   328
			<defineLocation id="DynInitMenuPaneHandlerMethod" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   329
				owned="false"
cawthron
parents:
diff changeset
   330
				isEventHandler="true"
cawthron
parents:
diff changeset
   331
				location="function(${handlerClassName}::${event.handlerName}(TInt, CEikMenuPane*))">
cawthron
parents:
diff changeset
   332
			<template><![CDATA[
cawthron
parents:
diff changeset
   333
/** 
cawthron
parents:
diff changeset
   334
 * Handle the ${event.eventName} event.
cawthron
parents:
diff changeset
   335
 */
cawthron
parents:
diff changeset
   336
void ${handlerClassName}::${event.handlerName}( TInt aResourceId, CEikMenuPane* aMenuPane )
cawthron
parents:
diff changeset
   337
	{
cawthron
parents:
diff changeset
   338
	// TODO: implement ${event.eventName} event handler
cawthron
parents:
diff changeset
   339
	}
cawthron
parents:
diff changeset
   340
]]>				
cawthron
parents:
diff changeset
   341
				</template>
cawthron
parents:
diff changeset
   342
			</defineLocation>
cawthron
parents:
diff changeset
   343
			
cawthron
parents:
diff changeset
   344
			<template id="RealizeDynInitMenuPaneHandler" location="DynInitMenuPaneHandlerMethod" />
cawthron
parents:
diff changeset
   345
			</templateGroup>
cawthron
parents:
diff changeset
   346
<!-- END EVENT dynInitMenuPane -->
cawthron
parents:
diff changeset
   347
cawthron
parents:
diff changeset
   348
<!-- BEGIN EVENT offerKeyToApp -->
cawthron
parents:
diff changeset
   349
			<templateGroup id="GenerateOfferKeyToApp" ifEvents="offerKeyToApp">
cawthron
parents:
diff changeset
   350
				<template id="DeclareOfferKeyToAppOverride" phase="OverriddenMethods"><![CDATA[
cawthron
parents:
diff changeset
   351
void OfferKeyToAppL( const TKeyEvent& aKeyEvent, TEventCode aType );
cawthron
parents:
diff changeset
   352
]]>				</template>
cawthron
parents:
diff changeset
   353
cawthron
parents:
diff changeset
   354
				<defineLocation id="OfferKeyToAppOverride" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   355
					owned="false"
cawthron
parents:
diff changeset
   356
					location="function(${handlerClassName}::OfferKeyToAppL(const TKeyEvent&amp;,TEventCode))">
cawthron
parents:
diff changeset
   357
					<template><![CDATA[
cawthron
parents:
diff changeset
   358
/** 
cawthron
parents:
diff changeset
   359
 * Handle special keys during menu selection for this dialog. (override)
cawthron
parents:
diff changeset
   360
 */
cawthron
parents:
diff changeset
   361
void ${handlerClassName}::OfferKeyToAppL( 
cawthron
parents:
diff changeset
   362
		const TKeyEvent& aKeyEvent, 
cawthron
parents:
diff changeset
   363
		TEventCode aType )
cawthron
parents:
diff changeset
   364
	{
cawthron
parents:
diff changeset
   365
	${instance.attributes["base-container-class"]}::OfferKeyToAppL( aKeyEvent, aType );
cawthron
parents:
diff changeset
   366
	}
cawthron
parents:
diff changeset
   367
]]>				
cawthron
parents:
diff changeset
   368
					</template>
cawthron
parents:
diff changeset
   369
				</defineLocation>
cawthron
parents:
diff changeset
   370
		
cawthron
parents:
diff changeset
   371
			<defineLocation id="OfferKeyToAppMethodBody" baseLocation="OfferKeyToAppOverride"
cawthron
parents:
diff changeset
   372
				location="region(Generated Contents)">
cawthron
parents:
diff changeset
   373
				<template/>
cawthron
parents:
diff changeset
   374
			</defineLocation>
cawthron
parents:
diff changeset
   375
			
cawthron
parents:
diff changeset
   376
			<template id="InvokeOfferKeyToAppHandler" location="OfferKeyToAppMethodBody">
cawthron
parents:
diff changeset
   377
${event.handlerName}( aKeyEvent, aType );
cawthron
parents:
diff changeset
   378
			</template>
cawthron
parents:
diff changeset
   379
cawthron
parents:
diff changeset
   380
			<template id="DeclareOfferKeyToAppHandler" phase="UserHandlers"><![CDATA[
cawthron
parents:
diff changeset
   381
void ${event.handlerName}( 
cawthron
parents:
diff changeset
   382
		const TKeyEvent& aKeyEvent, 
cawthron
parents:
diff changeset
   383
		TEventCode aType );
cawthron
parents:
diff changeset
   384
]]>			</template>
cawthron
parents:
diff changeset
   385
cawthron
parents:
diff changeset
   386
			<defineLocation id="OfferKeyToAppHandlerMethod" baseLocation="MAIN_FILE"
cawthron
parents:
diff changeset
   387
				owned="false"
cawthron
parents:
diff changeset
   388
				isEventHandler="true"
cawthron
parents:
diff changeset
   389
				location="function(${handlerClassName}::${event.handlerName}(const TKeyEvent&amp;, TEventCode))">
cawthron
parents:
diff changeset
   390
			<template><![CDATA[
cawthron
parents:
diff changeset
   391
/** 
cawthron
parents:
diff changeset
   392
 * Handle the ${event.eventName} event.
cawthron
parents:
diff changeset
   393
 */
cawthron
parents:
diff changeset
   394
void ${handlerClassName}::${event.handlerName}( 
cawthron
parents:
diff changeset
   395
		const TKeyEvent& aKeyEvent, 
cawthron
parents:
diff changeset
   396
		TEventCode aType )
cawthron
parents:
diff changeset
   397
	{
cawthron
parents:
diff changeset
   398
	// TODO: implement ${event.eventName} event handler
cawthron
parents:
diff changeset
   399
	}
cawthron
parents:
diff changeset
   400
]]>				
cawthron
parents:
diff changeset
   401
				</template>
cawthron
parents:
diff changeset
   402
			</defineLocation>
cawthron
parents:
diff changeset
   403
			
cawthron
parents:
diff changeset
   404
			<template id="RealizeOfferKeyToAppHandler" location="OfferKeyToAppHandlerMethod" />
cawthron
parents:
diff changeset
   405
			</templateGroup>
cawthron
parents:
diff changeset
   406
<!-- END EVENT offerKeyToApp -->
cawthron
parents:
diff changeset
   407
cawthron
parents:
diff changeset
   408
	</sourceGen>
cawthron
parents:
diff changeset
   409
cawthron
parents:
diff changeset
   410
	</component>
cawthron
parents:
diff changeset
   411
</componentDefinition>
cawthron
parents:
diff changeset
   412