uidesigner/com.nokia.carbide.cpp.uiq.components/components/ControlEventSourcegen.inc
author tzelaw
Tue, 14 Apr 2009 15:03:19 -0500
changeset 94 d74b720418db
parent 2 d760517a8095
permissions -rw-r--r--
Test framework support: Ask debugger to remember DebugTarget so test framework can use it to setup test framework related utility. With this we can use the DebugUI way of launching while keeping test framework functionality
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
<!-- BEGIN EVENT formatChanged -->
cawthron
parents:
diff changeset
     2
		<templateGroup id="GenerateFormatChangedEvent" ifEvents="EEventFormatChanged">
cawthron
parents:
diff changeset
     3
				
cawthron
parents:
diff changeset
     4
			<template id="FormatChangedEventCase" phase="InitializeControlHandlers">
cawthron
parents:
diff changeset
     5
<![CDATA[
cawthron
parents:
diff changeset
     6
	AddEdwinEventHandlerL( 
cawthron
parents:
diff changeset
     7
			${this.getInstanceMemberName(instance)}, 
cawthron
parents:
diff changeset
     8
			EEventFormatChanged, 
cawthron
parents:
diff changeset
     9
			&${className}::${event.handlerName} );
cawthron
parents:
diff changeset
    10
]]>
cawthron
parents:
diff changeset
    11
			</template>
cawthron
parents:
diff changeset
    12
			<expandMacro name="GenerateUserEventHandlerFunction"
cawthron
parents:
diff changeset
    13
					FunctionLocationId="FormatChangedHandler" 
cawthron
parents:
diff changeset
    14
					FunctionArgs="CEikEdwin* /*aEdwin*/, TEdwinEvent /*aEventType*/"
cawthron
parents:
diff changeset
    15
					DeclPhase="UserHandlers"
cawthron
parents:
diff changeset
    16
					DefnLocation="SOURCE_FILE" />
cawthron
parents:
diff changeset
    17
cawthron
parents:
diff changeset
    18
		</templateGroup>
cawthron
parents:
diff changeset
    19
<!-- END EVENT formatChanged -->
cawthron
parents:
diff changeset
    20
cawthron
parents:
diff changeset
    21
<!-- BEGIN EVENT Navigation -->
cawthron
parents:
diff changeset
    22
		<templateGroup id="GenerateNavigationEvent" ifEvents="EEventNavigation">
cawthron
parents:
diff changeset
    23
				
cawthron
parents:
diff changeset
    24
			<template id="FormatNavigationCase" phase="InitializeControlHandlers">
cawthron
parents:
diff changeset
    25
<![CDATA[
cawthron
parents:
diff changeset
    26
	AddEdwinEventHandlerL( 
cawthron
parents:
diff changeset
    27
			${this.getInstanceMemberName(instance)}, 
cawthron
parents:
diff changeset
    28
			EEventNavigation, 
cawthron
parents:
diff changeset
    29
			&${className}::${event.handlerName} );
cawthron
parents:
diff changeset
    30
]]>
cawthron
parents:
diff changeset
    31
			</template>
cawthron
parents:
diff changeset
    32
			<expandMacro name="GenerateUserEventHandlerFunction"
cawthron
parents:
diff changeset
    33
					FunctionLocationId="NavigationHandler" 
cawthron
parents:
diff changeset
    34
					FunctionArgs="CEikEdwin* /*aEdwin*/, TEdwinEvent /*aEventType*/"
cawthron
parents:
diff changeset
    35
					DeclPhase="UserHandlers"
cawthron
parents:
diff changeset
    36
					DefnLocation="SOURCE_FILE" />
cawthron
parents:
diff changeset
    37
cawthron
parents:
diff changeset
    38
		</templateGroup>
cawthron
parents:
diff changeset
    39
<!-- END EVENT Navigation -->
cawthron
parents:
diff changeset
    40
cawthron
parents:
diff changeset
    41
<!-- BEGIN EVENT PrepareForSelectionDelete -->
cawthron
parents:
diff changeset
    42
		<templateGroup id="GeneratePrepareForSelectionDeleteEvent" ifEvents="EEventPrepareForSelectionDelete">
cawthron
parents:
diff changeset
    43
				
cawthron
parents:
diff changeset
    44
			<template id="PrepareForSelectionDeleteCase" phase="InitializeControlHandlers">
cawthron
parents:
diff changeset
    45
<![CDATA[
cawthron
parents:
diff changeset
    46
	AddEdwinEventHandlerL( 
cawthron
parents:
diff changeset
    47
			${this.getInstanceMemberName(instance)}, 
cawthron
parents:
diff changeset
    48
			EEventPrepareForSelectionDelete, 
cawthron
parents:
diff changeset
    49
			&${className}::${event.handlerName} );
cawthron
parents:
diff changeset
    50
]]>
cawthron
parents:
diff changeset
    51
			</template>
cawthron
parents:
diff changeset
    52
			<expandMacro name="GenerateUserEventHandlerFunction"
cawthron
parents:
diff changeset
    53
					FunctionLocationId="PrepareForSelectionDeleteHandler" 
cawthron
parents:
diff changeset
    54
					FunctionArgs="CEikEdwin* /*aEdwin*/, TEdwinEvent /*aEventType*/"
cawthron
parents:
diff changeset
    55
					DeclPhase="UserHandlers"
cawthron
parents:
diff changeset
    56
					DefnLocation="SOURCE_FILE" />
cawthron
parents:
diff changeset
    57
cawthron
parents:
diff changeset
    58
		</templateGroup>
cawthron
parents:
diff changeset
    59
<!-- END EVENT PrepareForSelectionDelete -->
cawthron
parents:
diff changeset
    60
cawthron
parents:
diff changeset
    61
cawthron
parents:
diff changeset
    62
cawthron
parents:
diff changeset
    63
cawthron
parents:
diff changeset
    64
cawthron
parents:
diff changeset
    65
cawthron
parents:
diff changeset
    66
cawthron
parents:
diff changeset
    67
<!-- BEGIN EVENT EEventStateChanged -->
cawthron
parents:
diff changeset
    68
cawthron
parents:
diff changeset
    69
			<templateGroup id="GenerateStateChangedEvent" ifEvents="EEventStateChanged" form="EventGen">
cawthron
parents:
diff changeset
    70
				
cawthron
parents:
diff changeset
    71
			<template id="StateChangedEventCase" phase="InitializeControlHandlers">
cawthron
parents:
diff changeset
    72
<![CDATA[
cawthron
parents:
diff changeset
    73
	AddControlEventHandlerL( 
cawthron
parents:
diff changeset
    74
			${this.getInstanceMemberName(instance)}, 
cawthron
parents:
diff changeset
    75
			EEventStateChanged, 
cawthron
parents:
diff changeset
    76
			&${className}::${event.handlerName} );
cawthron
parents:
diff changeset
    77
]]>
cawthron
parents:
diff changeset
    78
			</template>
cawthron
parents:
diff changeset
    79
			<expandMacro name="GenerateUserEventHandlerFunction"
cawthron
parents:
diff changeset
    80
					FunctionLocationId="StateChangedHandler" 
cawthron
parents:
diff changeset
    81
					FunctionArgs="CCoeControl* /*aControl*/, TCoeEvent /*aEvent*/"
cawthron
parents:
diff changeset
    82
					DeclPhase="UserHandlers"
cawthron
parents:
diff changeset
    83
					DefnLocation="SOURCE_FILE" />
cawthron
parents:
diff changeset
    84
cawthron
parents:
diff changeset
    85
			</templateGroup>
cawthron
parents:
diff changeset
    86
cawthron
parents:
diff changeset
    87
<!-- END EVENT EEventStateChanged -->
cawthron
parents:
diff changeset
    88
cawthron
parents:
diff changeset
    89
<!-- BEGIN EVENT EEventRequestExit -->
cawthron
parents:
diff changeset
    90
cawthron
parents:
diff changeset
    91
			<templateGroup id="GenerateRequestExitEvent" ifEvents="EEventRequestExit" form="EventGen">
cawthron
parents:
diff changeset
    92
cawthron
parents:
diff changeset
    93
			<template id="RequestExitEventCase" phase="InitializeControlHandlers">
cawthron
parents:
diff changeset
    94
<![CDATA[
cawthron
parents:
diff changeset
    95
	AddControlEventHandlerL( 
cawthron
parents:
diff changeset
    96
			${this.getInstanceMemberName(instance)}, 
cawthron
parents:
diff changeset
    97
			EEventRequestExit, 
cawthron
parents:
diff changeset
    98
			&${className}::${event.handlerName} );
cawthron
parents:
diff changeset
    99
]]>
cawthron
parents:
diff changeset
   100
cawthron
parents:
diff changeset
   101
			</template>
cawthron
parents:
diff changeset
   102
			<expandMacro name="GenerateUserEventHandlerFunction"
cawthron
parents:
diff changeset
   103
					FunctionLocationId="RequestExitHandler" 
cawthron
parents:
diff changeset
   104
					FunctionArgs="CCoeControl* /*aControl*/, TCoeEvent /*aEvent*/"
cawthron
parents:
diff changeset
   105
					DeclPhase="UserHandlers"
cawthron
parents:
diff changeset
   106
					DefnLocation="SOURCE_FILE" />
cawthron
parents:
diff changeset
   107
cawthron
parents:
diff changeset
   108
			</templateGroup>
cawthron
parents:
diff changeset
   109
cawthron
parents:
diff changeset
   110
<!-- END EVENT EEventRequestExit -->
cawthron
parents:
diff changeset
   111
cawthron
parents:
diff changeset
   112
<!-- BEGIN EVENT EEventRequestCancel -->
cawthron
parents:
diff changeset
   113
cawthron
parents:
diff changeset
   114
			<templateGroup id="GenerateRequestCancelEvent" ifEvents="EEventRequestCancel" form="EventGen">
cawthron
parents:
diff changeset
   115
cawthron
parents:
diff changeset
   116
			<template id="RequestCancelEventCase" phase="InitializeControlHandlers">
cawthron
parents:
diff changeset
   117
<![CDATA[
cawthron
parents:
diff changeset
   118
	AddControlEventHandlerL( 
cawthron
parents:
diff changeset
   119
			${this.getInstanceMemberName(instance)}, 
cawthron
parents:
diff changeset
   120
			EEventRequestCancel, 
cawthron
parents:
diff changeset
   121
			&${className}::${event.handlerName} );
cawthron
parents:
diff changeset
   122
]]>
cawthron
parents:
diff changeset
   123
			</template>
cawthron
parents:
diff changeset
   124
			<expandMacro name="GenerateUserEventHandlerFunction"
cawthron
parents:
diff changeset
   125
					FunctionLocationId="RequestCancelHandler" 
cawthron
parents:
diff changeset
   126
					FunctionArgs="CCoeControl* /*aControl*/, TCoeEvent /*aEvent*/"
cawthron
parents:
diff changeset
   127
					DeclPhase="UserHandlers"
cawthron
parents:
diff changeset
   128
					DefnLocation="SOURCE_FILE" />
cawthron
parents:
diff changeset
   129
cawthron
parents:
diff changeset
   130
			</templateGroup>
cawthron
parents:
diff changeset
   131
cawthron
parents:
diff changeset
   132
<!-- END EVENT EEventRequestCancel -->
cawthron
parents:
diff changeset
   133
cawthron
parents:
diff changeset
   134
<!-- BEGIN EVENT EEventRequestFocus -->
cawthron
parents:
diff changeset
   135
cawthron
parents:
diff changeset
   136
			<templateGroup id="GenerateRequestFocusEvent" ifEvents="EEventRequestFocus" form="EventGen">
cawthron
parents:
diff changeset
   137
cawthron
parents:
diff changeset
   138
			<template id="RequestFocusEventCase" phase="InitializeControlHandlers">
cawthron
parents:
diff changeset
   139
<![CDATA[
cawthron
parents:
diff changeset
   140
	AddControlEventHandlerL( 
cawthron
parents:
diff changeset
   141
			${this.getInstanceMemberName(instance)}, 
cawthron
parents:
diff changeset
   142
			EEventRequestFocus, 
cawthron
parents:
diff changeset
   143
			&${className}::${event.handlerName} );
cawthron
parents:
diff changeset
   144
]]>
cawthron
parents:
diff changeset
   145
			</template>
cawthron
parents:
diff changeset
   146
		
cawthron
parents:
diff changeset
   147
			<expandMacro name="GenerateUserEventHandlerFunction"
cawthron
parents:
diff changeset
   148
					FunctionLocationId="RequestFocusHandler" 
cawthron
parents:
diff changeset
   149
					FunctionArgs="CCoeControl* /*aControl*/, TCoeEvent /*aEvent*/"
cawthron
parents:
diff changeset
   150
					DeclPhase="UserHandlers"
cawthron
parents:
diff changeset
   151
					DefnLocation="SOURCE_FILE" />
cawthron
parents:
diff changeset
   152
cawthron
parents:
diff changeset
   153
			</templateGroup>
cawthron
parents:
diff changeset
   154
cawthron
parents:
diff changeset
   155
<!-- END EVENT EEventRequestFocus -->
cawthron
parents:
diff changeset
   156
cawthron
parents:
diff changeset
   157
<!-- BEGIN EVENT EEventPrepareFocusTransition -->
cawthron
parents:
diff changeset
   158
cawthron
parents:
diff changeset
   159
			<templateGroup id="GeneratePrepareFocusTransitionEvent" ifEvents="EEventPrepareFocusTransition" form="EventGen">
cawthron
parents:
diff changeset
   160
cawthron
parents:
diff changeset
   161
			<template id="PrepareFocusTransitionEventCase" phase="InitializeControlHandlers">
cawthron
parents:
diff changeset
   162
<![CDATA[
cawthron
parents:
diff changeset
   163
	AddControlEventHandlerL( 
cawthron
parents:
diff changeset
   164
			${this.getInstanceMemberName(instance)}, 
cawthron
parents:
diff changeset
   165
			EEventPrepareFocusTransition, 
cawthron
parents:
diff changeset
   166
			&${className}::${event.handlerName} );
cawthron
parents:
diff changeset
   167
]]>
cawthron
parents:
diff changeset
   168
			</template>
cawthron
parents:
diff changeset
   169
			<expandMacro name="GenerateUserEventHandlerFunction"
cawthron
parents:
diff changeset
   170
					FunctionLocationId="PrepareFocusTransitionHandler" 
cawthron
parents:
diff changeset
   171
					FunctionArgs="CCoeControl* /*aControl*/, TCoeEvent /*aEvent*/"
cawthron
parents:
diff changeset
   172
					DeclPhase="UserHandlers"
cawthron
parents:
diff changeset
   173
					DefnLocation="SOURCE_FILE" />
cawthron
parents:
diff changeset
   174
cawthron
parents:
diff changeset
   175
			</templateGroup>
cawthron
parents:
diff changeset
   176
cawthron
parents:
diff changeset
   177
<!-- END EVENT EEventPrepareFocusTransition -->
cawthron
parents:
diff changeset
   178
cawthron
parents:
diff changeset
   179
<!-- BEGIN EVENT EEventInteractionRefused -->
cawthron
parents:
diff changeset
   180
cawthron
parents:
diff changeset
   181
			<templateGroup id="GenerateInteractionRefusedEvent" ifEvents="EEventInteractionRefused" form="EventGen">
cawthron
parents:
diff changeset
   182
cawthron
parents:
diff changeset
   183
			<template id="InteractionRefusedEventCase" phase="InitializeControlHandlers">
cawthron
parents:
diff changeset
   184
<![CDATA[
cawthron
parents:
diff changeset
   185
	AddControlEventHandlerL( 
cawthron
parents:
diff changeset
   186
			${this.getInstanceMemberName(instance)}, 
cawthron
parents:
diff changeset
   187
			EEventInteractionRefused, 
cawthron
parents:
diff changeset
   188
			&${className}::${event.handlerName} );
cawthron
parents:
diff changeset
   189
]]>
cawthron
parents:
diff changeset
   190
			</template>
cawthron
parents:
diff changeset
   191
cawthron
parents:
diff changeset
   192
			<expandMacro name="GenerateUserEventHandlerFunction"
cawthron
parents:
diff changeset
   193
					FunctionLocationId="InteractionRefusedHandler" 
cawthron
parents:
diff changeset
   194
					FunctionArgs="CCoeControl* /*aControl*/, TCoeEvent /*aEvent*/"
cawthron
parents:
diff changeset
   195
					DeclPhase="UserHandlers"
cawthron
parents:
diff changeset
   196
					DefnLocation="SOURCE_FILE" />
cawthron
parents:
diff changeset
   197
cawthron
parents:
diff changeset
   198
			</templateGroup>
cawthron
parents:
diff changeset
   199
cawthron
parents:
diff changeset
   200
<!-- END EVENT EEventInteractionRefused -->
cawthron
parents:
diff changeset
   201
cawthron
parents:
diff changeset
   202