uidesigner/com.nokia.carbide.cpp.uiq.components/components/ListBoxEventSourcegen.inc
author tzelaw
Fri, 24 Apr 2009 14:48:12 -0500
changeset 125 b878114e8cc2
parent 2 d760517a8095
permissions -rw-r--r--
Overhaul of RCOMP/GCCE error parsing to fix 8901: -RCOMP error parser will defer C preprocessor errors to GCCECompiler error parser. -GCCE error parser is splited into compiler/assembler/linker, calling their counterpart in CDT respectively before handling special cases. -Updated error messages RCOMP error parser according to latest copy of RCOMP source. -WINSCW build configuration is using CDT GCC error parser instead of GCCE(for RCOMP C preprocessor error) Updated test case for error parsing -Added Bugzilla regression for GCC and make error parser -Converted test case from hardcoded SDK_ID to picking up the first SDK from device.xml with the build config specified by the test. -Fixed bug in test harness for input file ends on the last line so it was processed in the same run. -Fixed bug in test harness for not clearing problem view before each run(for visual cross check). -Rewritten test harness to use JDOM XML handling(from JAXP), to solve deployment issue in newer JRE.

<!-- START_USECASES: CU13 END_USECASES -->

<!-- BEGIN EVENT listBoxEventItemTapped -->
<templateGroup id="GenerateListBoxItemTappedEvent" ifEvents="listBoxEventItemTapped">
	<template id="ItemTappedEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventItemTapped, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxItemTappedEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventItemTapped -->

<!-- BEGIN EVENT listBoxEventItemHighlighted -->
<templateGroup id="GenerateListBoxItemHighlightedEvent" ifEvents="listBoxEventItemHighlighted">
	<template id="ItemHighlightedEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventItemHighlighted, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxItemHighlightedEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventItemHighlighted -->

<!-- BEGIN EVENT listBoxEventItemConfirmed -->
<templateGroup id="GenerateListBoxItemConfirmedEvent" ifEvents="listBoxEventItemConfirmed">
	<template id="ItemConfirmedEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventItemConfirmed, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxItemConfirmedEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventItemConfirmed -->

<!-- BEGIN EVENT listBoxEventSelectionChanged -->
<templateGroup id="GenerateListBoxSelectionChangedEvent" ifEvents="listBoxEventSelectionChanged">
	<template id="SelectionChangedEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventSelectionChanged, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxSelectionChangedEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventSelectionChanged -->

<!-- BEGIN EVENT listBoxEventMatchBufferChanged -->
<templateGroup id="GenerateListBoxMatchBufferChangedEvent" ifEvents="listBoxEventMatchBufferChanged">
	<template id="MatchBufferChangedEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventMatchBufferChanged, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxMatchBufferChangedEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventMatchBufferChanged -->

<!-- BEGIN EVENT listBoxEventTopReached -->
<templateGroup id="GenerateListBoxTopReachedEvent" ifEvents="listBoxEventTopReached">
	<template id="TopReachedEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventTopReached, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxTopReachedEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventTopReached -->

<!-- BEGIN EVENT listBoxEventBottomReached -->
<templateGroup id="GenerateListBoxBottomReachedEvent" ifEvents="listBoxEventBottomReached">
	<template id="BottomReachedEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventBottomReached, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxBottomReachedEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventBottomReached -->

<!-- BEGIN EVENT listBoxEventEmptyListBoxActioned -->
<templateGroup id="GenerateListBoxEmptyListBoxActionedEvent" ifEvents="listBoxEventEmptyListBoxActioned">
	<template id="EmptyListBoxActionedEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventEmptyListBoxActioned, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxEmptyListBoxActionedEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventEmptyListBoxActioned -->

<!-- BEGIN EVENT listBoxEventHighlightMoved -->
<templateGroup id="GenerateListBoxHighlightMovedEvent" ifEvents="listBoxEventHighlightMoved">
	<template id="HighlightMovedEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventHighlightMoved, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxHighlightMovedEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventHighlightMoved -->

<!-- BEGIN EVENT listBoxEventSlotIndexChanged -->
<templateGroup id="GenerateListBoxSlotIndexChangedEvent" ifEvents="listBoxEventSlotIndexChanged">
	<template id="SlotIndexChangedEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventSlotIndexChanged, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxSlotIndexChangedEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventSlotIndexChanged -->

<!-- BEGIN EVENT listBoxEventDimmedItemConfirmedAttempt -->
<templateGroup id="GenerateListBoxDimmedItemConfirmedAttemptEvent" ifEvents="listBoxEventDimmedItemConfirmedAttempt">
	<template id="DimmedItemConfirmedAttemptEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventDimmedItemConfirmedAttempt, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxDimmedItemConfirmedAttemptEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventDimmedItemConfirmedAttempt -->

<!-- BEGIN EVENT listBoxEventMatchBufferFull -->
<templateGroup id="GenerateListBoxMatchBufferFullEvent" ifEvents="listBoxEventMatchBufferFull">
	<template id="MatchBufferFullEventCase" phase="InitializeControlHandlers">
<![CDATA[
AddListBoxEventHandlerL( 
		${this.getInstanceMemberName(instance)}, 
		EEventMatchBufferFull, 
		&${className}::${event.handlerName} );]]>
	</template>
	<expandMacro name="GenerateUserEventHandlerFunction"
		FunctionLocationId="ListBoxMatchBufferFullEventHandler"
		DeclPhase="UserHandlers"
		DefnLocation="SOURCE_FILE"
		FunctionArgs="CQikListBox* /*aListBox*/, TQikListBoxEvent /*aEventType*/, TInt /*aItemIndex*/, TInt /*aSlotId*/"/>
</templateGroup>
<!-- END EVENT listBoxEventMatchBufferFull -->