uidesigner/com.nokia.sdt.series60.componentlibrary/components/cba/CBA.component
author Frank Turovich <frank.turovich@nokia.com>
Thu, 02 Apr 2009 15:09:04 -0500
changeset 24 f2ad263823f3
parent 2 d760517a8095
permissions -rw-r--r--
added DS_Store to hgignore list
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
<!DOCTYPE componentDefinition [
cawthron
parents:
diff changeset
     3
<!ENTITY common_implementations SYSTEM "CBA_commonImpl.inc">
cawthron
parents:
diff changeset
     4
<!ENTITY common_source SYSTEM "CBA_commonSrc.inc">
cawthron
parents:
diff changeset
     5
]>
cawthron
parents:
diff changeset
     6
<!-- Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). -->
cawthron
parents:
diff changeset
     7
<!-- All rights reserved. -->
cawthron
parents:
diff changeset
     8
<!-- This component and the accompanying materials are made available -->
cawthron
parents:
diff changeset
     9
<!-- under the terms of the License "Eclipse Public License v1.0" -->
cawthron
parents:
diff changeset
    10
<!-- which accompanies this distribution, and is available -->
cawthron
parents:
diff changeset
    11
<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
cawthron
parents:
diff changeset
    12
cawthron
parents:
diff changeset
    13
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component"
cawthron
parents:
diff changeset
    14
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
cawthron
parents:
diff changeset
    15
	
cawthron
parents:
diff changeset
    16
	<enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.CBA.Type">
cawthron
parents:
diff changeset
    17
		<enumElement value="R_AVKON_SOFTKEYS_EMPTY"/>
cawthron
parents:
diff changeset
    18
		<enumElement value="R_AVKON_SOFTKEYS_EMPTY_WITH_IDS"/>
cawthron
parents:
diff changeset
    19
		<enumElement value="R_AVKON_SOFTKEYS_OK_EMPTY"/>
cawthron
parents:
diff changeset
    20
		<enumElement value="R_AVKON_SOFTKEYS_SELECT_CANCEL"/>
cawthron
parents:
diff changeset
    21
		<enumElement value="R_AVKON_SOFTKEYS_OK_CANCEL"/>
cawthron
parents:
diff changeset
    22
		<enumElement value="R_AVKON_SOFTKEYS_OK_DETAILS"/>
cawthron
parents:
diff changeset
    23
		<enumElement value="R_AVKON_SOFTKEYS_CALL_CANCEL"/>
cawthron
parents:
diff changeset
    24
		<enumElement value="R_AVKON_SOFTKEYS_OPTIONS_BACK"/>
cawthron
parents:
diff changeset
    25
		<enumElement value="R_AVKON_SOFTKEYS_OPTIONS_DONE"/>
cawthron
parents:
diff changeset
    26
		<enumElement value="R_AVKON_SOFTKEYS_OPTIONS_CANCEL"/>
cawthron
parents:
diff changeset
    27
		<enumElement value="R_AVKON_SOFTKEYS_OPTIONS_EXIT"/>
cawthron
parents:
diff changeset
    28
		<enumElement value="R_AVKON_SOFTKEYS_OK_BACK"/>
cawthron
parents:
diff changeset
    29
		<enumElement value="R_AVKON_SOFTKEYS_CANCEL"/>
cawthron
parents:
diff changeset
    30
		<enumElement value="R_AVKON_SOFTKEYS_BACK"/>
cawthron
parents:
diff changeset
    31
		<enumElement value="R_AVKON_SOFTKEYS_CLOSE"/>
cawthron
parents:
diff changeset
    32
		<enumElement value="R_AVKON_SOFTKEYS_DONE_BACK"/>
cawthron
parents:
diff changeset
    33
		<enumElement value="R_AVKON_SOFTKEYS_DONE_CANCEL"/>
cawthron
parents:
diff changeset
    34
		<enumElement value="R_AVKON_SOFTKEYS_MARK_BACK"/>
cawthron
parents:
diff changeset
    35
		<enumElement value="R_AVKON_SOFTKEYS_UNMARK_BACK"/>
cawthron
parents:
diff changeset
    36
		<enumElement value="R_AVKON_SOFTKEYS_YES_NO"/>
cawthron
parents:
diff changeset
    37
		<enumElement value="R_AVKON_SOFTKEYS_UNLOCK_EMPTY"/>
cawthron
parents:
diff changeset
    38
		<enumElement value="R_AVKON_SOFTKEYS_SAVE_BACK"/>
cawthron
parents:
diff changeset
    39
		<enumElement value="R_AVKON_SOFTKEYS_SHOW_CANCEL"/>
cawthron
parents:
diff changeset
    40
		<enumElement value="R_AVKON_SOFTKEYS_SHOW_EXIT"/>
cawthron
parents:
diff changeset
    41
		<enumElement value="R_AVKON_SOFTKEYS_EXIT"/>
cawthron
parents:
diff changeset
    42
		<enumElement value="R_AVKON_SOFTKEYS_READ_EXIT"/>
cawthron
parents:
diff changeset
    43
		<enumElement value="R_AVKON_SOFTKEYS_LISTEN_EXIT"/>
cawthron
parents:
diff changeset
    44
		<enumElement value="R_AVKON_SOFTKEYS_SEARCH_BACK"/>
cawthron
parents:
diff changeset
    45
		<enumElement value="R_AVKON_SOFTKEYS_AGAIN_QUIT"/>
cawthron
parents:
diff changeset
    46
		<enumElement value="R_AVKON_SOFTKEYS_QUIT"/>
cawthron
parents:
diff changeset
    47
		<enumElement value="R_AVKON_SOFTKEYS_INSERT_BACK"/>
cawthron
parents:
diff changeset
    48
	</enumPropertyDeclaration>
cawthron
parents:
diff changeset
    49
	
cawthron
parents:
diff changeset
    50
	<enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.CBA.Id">
cawthron
parents:
diff changeset
    51
		<enumElement value="" displayValue="None"/>
cawthron
parents:
diff changeset
    52
		<enumElement value="UNIQUE"/>
cawthron
parents:
diff changeset
    53
		<enumElement value="EAknSoftkeyOk"/>
cawthron
parents:
diff changeset
    54
		<enumElement value="EAknSoftkeyCancel"/>
cawthron
parents:
diff changeset
    55
		<enumElement value="EAknSoftkeySelect"/>
cawthron
parents:
diff changeset
    56
		<enumElement value="EAknSoftkeyOptions"/>
cawthron
parents:
diff changeset
    57
		<enumElement value="EAknSoftkeyBack"/>
cawthron
parents:
diff changeset
    58
		<enumElement value="EAknSoftkeyMark"/>
cawthron
parents:
diff changeset
    59
		<enumElement value="EAknSoftkeyUnmark"/>
cawthron
parents:
diff changeset
    60
		<enumElement value="EAknSoftkeyInsert"/>
cawthron
parents:
diff changeset
    61
		<enumElement value="EAknSoftkeyYes"/>
cawthron
parents:
diff changeset
    62
		<enumElement value="EAknSoftkeyNo"/>
cawthron
parents:
diff changeset
    63
		<enumElement value="EAknSoftkeyDone"/>
cawthron
parents:
diff changeset
    64
		<enumElement value="EAknSoftkeyClose"/>
cawthron
parents:
diff changeset
    65
		<enumElement value="EAknSoftkeyExit"/>
cawthron
parents:
diff changeset
    66
		<enumElement value="EAknSoftkeyClear"/>
cawthron
parents:
diff changeset
    67
		<enumElement value="EAknSoftkeyUnlock"/>
cawthron
parents:
diff changeset
    68
		<enumElement value="EAknSoftkeySave"/>
cawthron
parents:
diff changeset
    69
		<enumElement value="EAknSoftkeyShow"/>
cawthron
parents:
diff changeset
    70
		<enumElement value="EAknSoftkeyListen"/>
cawthron
parents:
diff changeset
    71
		<enumElement value="EAknSoftkeyRead"/>
cawthron
parents:
diff changeset
    72
		<enumElement value="EAknSoftkeySearch"/>
cawthron
parents:
diff changeset
    73
		<enumElement value="EAknSoftkeyEmpty"/>
cawthron
parents:
diff changeset
    74
		<enumElement value="EAknSoftkeyLock"/>
cawthron
parents:
diff changeset
    75
		<enumElement value="EAknSoftkeyCall"/>
cawthron
parents:
diff changeset
    76
		<enumElement value="EAknSoftkeyAgain"/>
cawthron
parents:
diff changeset
    77
		<enumElement value="EAknSoftkeyQuit"/>
cawthron
parents:
diff changeset
    78
		<enumElement value="EAknSoftkeyDetails"/>
cawthron
parents:
diff changeset
    79
		<enumElement value="EAknSoftkeyNext"/>
cawthron
parents:
diff changeset
    80
	</enumPropertyDeclaration>
cawthron
parents:
diff changeset
    81
	
cawthron
parents:
diff changeset
    82
	<compoundPropertyDeclaration editableType="com.nokia.sdt.series60.CBA.Type"
cawthron
parents:
diff changeset
    83
									qualifiedName="com.nokia.sdt.series60.CBAProperty">
cawthron
parents:
diff changeset
    84
		<property name="leftText" type="localizedString" default="" 
cawthron
parents:
diff changeset
    85
			descriptionKey="leftTextDescription"
cawthron
parents:
diff changeset
    86
			editorClass="com.nokia.sdt.symbian.ui.editors.ScalableTextEditorFactory" />
cawthron
parents:
diff changeset
    87
		<enumProperty name="leftId" type="com.nokia.sdt.series60.CBA.Id" default="EAknSoftkeyOptions"
cawthron
parents:
diff changeset
    88
			descriptionKey="leftIdDescription" />
cawthron
parents:
diff changeset
    89
		<property name="rightText" type="localizedString" default="" 
cawthron
parents:
diff changeset
    90
			descriptionKey="rightTextDescription"
cawthron
parents:
diff changeset
    91
			editorClass="com.nokia.sdt.symbian.ui.editors.ScalableTextEditorFactory" />
cawthron
parents:
diff changeset
    92
		<enumProperty name="rightId" type="com.nokia.sdt.series60.CBA.Id" default="EAknSoftkeyExit"
cawthron
parents:
diff changeset
    93
			descriptionKey="rightIdDescription" />
cawthron
parents:
diff changeset
    94
		<enumProperty name="type" type="string" category="Hidden" />
cawthron
parents:
diff changeset
    95
	</compoundPropertyDeclaration>
cawthron
parents:
diff changeset
    96
		
cawthron
parents:
diff changeset
    97
	<component friendlyName="%friendlyName" 
cawthron
parents:
diff changeset
    98
		qualifiedName="com.nokia.sdt.series60.CBA" 
cawthron
parents:
diff changeset
    99
		baseComponent="com.nokia.sdt.series60.CBABase"
cawthron
parents:
diff changeset
   100
		category="System"
cawthron
parents:
diff changeset
   101
		instanceNameRoot="controlPane"
cawthron
parents:
diff changeset
   102
		version="1.0">
cawthron
parents:
diff changeset
   103
cawthron
parents:
diff changeset
   104
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" maxSDKVersion="3.1.9"
cawthron
parents:
diff changeset
   105
			className="CEikButtonGroupContainer" classHelpTopic=""
cawthron
parents:
diff changeset
   106
			resourceType="CBA" resourceHelpTopic="" />
cawthron
parents:
diff changeset
   107
cawthron
parents:
diff changeset
   108
		<documentation>
cawthron
parents:
diff changeset
   109
			<information>%information</information>
cawthron
parents:
diff changeset
   110
		</documentation>
cawthron
parents:
diff changeset
   111
cawthron
parents:
diff changeset
   112
		<designerImages smallIconFile="CBA_sm.png" 
cawthron
parents:
diff changeset
   113
			largeIconFile="CBA.png"/>
cawthron
parents:
diff changeset
   114
cawthron
parents:
diff changeset
   115
		<properties>
cawthron
parents:
diff changeset
   116
			<compoundProperty category="Behavior" name="info" type="com.nokia.sdt.series60.CBAProperty"
cawthron
parents:
diff changeset
   117
				descriptionKey="infoKey" />
cawthron
parents:
diff changeset
   118
		</properties>
cawthron
parents:
diff changeset
   119
		
cawthron
parents:
diff changeset
   120
		<implementations>
cawthron
parents:
diff changeset
   121
			&common_implementations;
cawthron
parents:
diff changeset
   122
		</implementations>
cawthron
parents:
diff changeset
   123
			
cawthron
parents:
diff changeset
   124
	<events>
cawthron
parents:
diff changeset
   125
		<event name="leftSoftKeyPressed" category="ControlPane" 
cawthron
parents:
diff changeset
   126
	    	handlerNameTemplate="Handle{title(name)}LeftSoftKeyPressedL"
cawthron
parents:
diff changeset
   127
	    	descriptionKey="leftSoftKeyPressedDescription"
cawthron
parents:
diff changeset
   128
		/>
cawthron
parents:
diff changeset
   129
		<event name="rightSoftKeyPressed" category="ControlPane" 
cawthron
parents:
diff changeset
   130
	    	handlerNameTemplate="Handle{title(name)}RightSoftKeyPressedL"
cawthron
parents:
diff changeset
   131
	    	descriptionKey="rightSoftKeyPressedDescription"
cawthron
parents:
diff changeset
   132
		/>
cawthron
parents:
diff changeset
   133
	</events>
cawthron
parents:
diff changeset
   134
		
cawthron
parents:
diff changeset
   135
		<sourceMapping>
cawthron
parents:
diff changeset
   136
 		  <select property="info">
cawthron
parents:
diff changeset
   137
 		  	<!-- only emit something for custom CBAs -->
cawthron
parents:
diff changeset
   138
		    <choice value="com.nokia.sdt.series60.CBA.Type.CUSTOM">
cawthron
parents:
diff changeset
   139
		    	<!-- this struct MOVES between uikon.rh and eikon.rh with each release! -->
cawthron
parents:
diff changeset
   140
		    	<mapResource struct="CBA" headers="uikon.rh eikon.rh">
cawthron
parents:
diff changeset
   141
			        <mapResourceMember property="info" member="buttons[0]"  struct="CBA_BUTTON" headers="uikon.rh eikon.rh">
cawthron
parents:
diff changeset
   142
			           <mapEnumMember property="leftId" member="id" 
cawthron
parents:
diff changeset
   143
			           headers="avkon.rsg"
cawthron
parents:
diff changeset
   144
						uniqueValue="UNIQUE"
cawthron
parents:
diff changeset
   145
						nameAlgorithm="com.nokia.sdt.component.symbian.NAME_ALG_COMMANDS"
cawthron
parents:
diff changeset
   146
			           />
cawthron
parents:
diff changeset
   147
			           <mapSimpleMember property="leftText" member="txt"/>
cawthron
parents:
diff changeset
   148
			        </mapResourceMember>
cawthron
parents:
diff changeset
   149
			        <mapResourceMember property="info" member="buttons[1]"  struct="CBA_BUTTON" headers="uikon.rh eikon.rh">
cawthron
parents:
diff changeset
   150
			           <mapEnumMember property="rightId" member="id" 
cawthron
parents:
diff changeset
   151
			           headers="avkon.rsg"
cawthron
parents:
diff changeset
   152
						uniqueValue="UNIQUE"
cawthron
parents:
diff changeset
   153
						nameAlgorithm="com.nokia.sdt.component.symbian.NAME_ALG_COMMANDS"
cawthron
parents:
diff changeset
   154
			           />
cawthron
parents:
diff changeset
   155
			           <mapSimpleMember property="rightText" member="txt"/>
cawthron
parents:
diff changeset
   156
			        </mapResourceMember>
cawthron
parents:
diff changeset
   157
		        </mapResource>
cawthron
parents:
diff changeset
   158
		    </choice>
cawthron
parents:
diff changeset
   159
		    <choice/>
cawthron
parents:
diff changeset
   160
		    
cawthron
parents:
diff changeset
   161
		  </select>
cawthron
parents:
diff changeset
   162
		</sourceMapping>
cawthron
parents:
diff changeset
   163
		
cawthron
parents:
diff changeset
   164
		<sourceGen forms="AppUi AknView HandleCommandSwitchDispatch">
cawthron
parents:
diff changeset
   165
			<inline scope="prototype">
cawthron
parents:
diff changeset
   166
include("cbaLibrary.js")
cawthron
parents:
diff changeset
   167
			</inline>
cawthron
parents:
diff changeset
   168
cawthron
parents:
diff changeset
   169
			<template form="AknView" phase="MainSystemIncludes"><![CDATA[
cawthron
parents:
diff changeset
   170
#include <eikbtgpc.h>
cawthron
parents:
diff changeset
   171
]]>			</template>
cawthron
parents:
diff changeset
   172
cawthron
parents:
diff changeset
   173
		&common_source;
cawthron
parents:
diff changeset
   174
cawthron
parents:
diff changeset
   175
		</sourceGen>	
cawthron
parents:
diff changeset
   176
		
cawthron
parents:
diff changeset
   177
	</component>
cawthron
parents:
diff changeset
   178
</componentDefinition>