uidesigner/com.nokia.sdt.series60.componentlibrary/components/transient/StandardNote.component
author timkelly
Thu, 23 Apr 2009 08:52:08 -0500
branchRCL_2_0
changeset 117 bac3606e1ea9
parent 2 d760517a8095
permissions -rw-r--r--
fix bug 8914. endless sdk refresh when devices.xml is empty or has xml format error
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:xsi="http://www.w3.org/2001/XMLSchema-instance">
cawthron
parents:
diff changeset
    11
	<enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.StandardNote.type">
cawthron
parents:
diff changeset
    12
		<enumElement value="CAknConfirmationNote"/>
cawthron
parents:
diff changeset
    13
		<enumElement value="CAknInformationNote"/>
cawthron
parents:
diff changeset
    14
		<enumElement value="CAknWarningNote"/>
cawthron
parents:
diff changeset
    15
		<enumElement value="CAknErrorNote"/>
cawthron
parents:
diff changeset
    16
	</enumPropertyDeclaration>
cawthron
parents:
diff changeset
    17
cawthron
parents:
diff changeset
    18
	<component baseComponent="com.nokia.sdt.series60.NonLayoutBase" 
cawthron
parents:
diff changeset
    19
		friendlyName="%friendlyName" 
cawthron
parents:
diff changeset
    20
		qualifiedName="com.nokia.sdt.series60.StandardNote" 
cawthron
parents:
diff changeset
    21
		category="NotesDialogs"
cawthron
parents:
diff changeset
    22
		instanceNameRoot="note"
cawthron
parents:
diff changeset
    23
		version="1.0">
cawthron
parents:
diff changeset
    24
		<documentation>
cawthron
parents:
diff changeset
    25
			<information>%information</information>
cawthron
parents:
diff changeset
    26
		</documentation>
cawthron
parents:
diff changeset
    27
		<symbian sdkName="com.nokia.series60" minSDKVersion="2.0" 
cawthron
parents:
diff changeset
    28
			className="CAknResourceNoteDialog" classHelpTopic=""
cawthron
parents:
diff changeset
    29
			resourceType="AVKON_NOTE" resourceHelpTopic="" />
cawthron
parents:
diff changeset
    30
		<designerImages smallIconFile="StandardNote_sm.png" 
cawthron
parents:
diff changeset
    31
			largeIconFile="StandardNote.png"/>
cawthron
parents:
diff changeset
    32
		<attributes>
cawthron
parents:
diff changeset
    33
			<attribute key="is-transient-object">true</attribute>
cawthron
parents:
diff changeset
    34
			<attribute key="is-non-resizable-or-moveable-layout-object">true</attribute>
cawthron
parents:
diff changeset
    35
		</attributes>
cawthron
parents:
diff changeset
    36
		<properties>
cawthron
parents:
diff changeset
    37
			<compoundProperty category="Hidden" name="location" type="com.nokia.sdt.series60.locationProperty"
cawthron
parents:
diff changeset
    38
				editorClass="com.nokia.sdt.symbian.ui.editors.ReadOnlySummaryEditorFactory"/>
cawthron
parents:
diff changeset
    39
			<compoundProperty category="Hidden" name="size" type="com.nokia.sdt.series60.sizeProperty"
cawthron
parents:
diff changeset
    40
				editorClass="com.nokia.sdt.symbian.ui.editors.ReadOnlySummaryEditorFactory"/>
cawthron
parents:
diff changeset
    41
			<enumProperty category="Appearance" name="type" type="com.nokia.sdt.series60.StandardNote.type" 
cawthron
parents:
diff changeset
    42
				default="CAknConfirmationNote"
cawthron
parents:
diff changeset
    43
				descriptionKey="typeDescription" />
cawthron
parents:
diff changeset
    44
			<property category="Data" name="text" type="localizedString" 
cawthron
parents:
diff changeset
    45
				default="Note" descriptionKey="textDescription"
cawthron
parents:
diff changeset
    46
				editorClass="com.nokia.sdt.symbian.ui.editors.ScalableTextEditorFactory" />
cawthron
parents:
diff changeset
    47
		</properties>
cawthron
parents:
diff changeset
    48
		<implementations>
cawthron
parents:
diff changeset
    49
			<implementation>
cawthron
parents:
diff changeset
    50
				<interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/>
cawthron
parents:
diff changeset
    51
				<interface id="com.nokia.sdt.datamodel.adapter.IDirectLabelEdit"/>
cawthron
parents:
diff changeset
    52
				<script file="StandardNote_visual.js" prototype="StandardNoteVisual"/>
cawthron
parents:
diff changeset
    53
			</implementation>
cawthron
parents:
diff changeset
    54
			<implementation>
cawthron
parents:
diff changeset
    55
				<interface id="com.nokia.sdt.datamodel.adapter.ILayout"/>
cawthron
parents:
diff changeset
    56
				<interface id="com.nokia.sdt.datamodel.adapter.IComponentInstancePropertyListener"/> 
cawthron
parents:
diff changeset
    57
				<script file="StandardNote_layout.js" prototype="StandardNoteLayout"/>
cawthron
parents:
diff changeset
    58
			</implementation>
cawthron
parents:
diff changeset
    59
		</implementations>
cawthron
parents:
diff changeset
    60
		<sourceMapping>
cawthron
parents:
diff changeset
    61
			<mapResource struct="TBUF" headers="eikon.rh">
cawthron
parents:
diff changeset
    62
				<mapSimpleMember property="text" member="buf"/>
cawthron
parents:
diff changeset
    63
			</mapResource>
cawthron
parents:
diff changeset
    64
		</sourceMapping>
cawthron
parents:
diff changeset
    65
		<sourceGen>
cawthron
parents:
diff changeset
    66
			<template phase="ClassMethods">
cawthron
parents:
diff changeset
    67
static void Run${instanceName$title}L( const TDesC* aOverrideText = NULL );
cawthron
parents:
diff changeset
    68
			</template>
cawthron
parents:
diff changeset
    69
			<defineLocation id="MethodLocation" baseLocation="MAIN_FILE" 
cawthron
parents:
diff changeset
    70
				owned="true"
cawthron
parents:
diff changeset
    71
				location="function(${className}::Run${instanceName$title}L(const TDesC*))">
cawthron
parents:
diff changeset
    72
				<template>
cawthron
parents:
diff changeset
    73
/**
cawthron
parents:
diff changeset
    74
 * Show the popup note for ${instanceName}
cawthron
parents:
diff changeset
    75
 * @param aOverrideText optional override text
cawthron
parents:
diff changeset
    76
 */
cawthron
parents:
diff changeset
    77
void ${className}::Run${instanceName$title}L( const TDesC* aOverrideText )
cawthron
parents:
diff changeset
    78
	{
cawthron
parents:
diff changeset
    79
	}
cawthron
parents:
diff changeset
    80
				</template>
cawthron
parents:
diff changeset
    81
			</defineLocation>
cawthron
parents:
diff changeset
    82
			<template location="MethodLocation">
cawthron
parents:
diff changeset
    83
${properties.type}* note = new ( ELeave ) ${properties.type}();
cawthron
parents:
diff changeset
    84
if ( aOverrideText == NULL )
cawthron
parents:
diff changeset
    85
	{
cawthron
parents:
diff changeset
    86
	HBufC* noteText = StringLoader::LoadLC( ${resourceName$upper} );
cawthron
parents:
diff changeset
    87
	note->ExecuteLD( *noteText );
cawthron
parents:
diff changeset
    88
	CleanupStack::PopAndDestroy( noteText );
cawthron
parents:
diff changeset
    89
	}
cawthron
parents:
diff changeset
    90
else
cawthron
parents:
diff changeset
    91
	{
cawthron
parents:
diff changeset
    92
	note->ExecuteLD( *aOverrideText );
cawthron
parents:
diff changeset
    93
	}
cawthron
parents:
diff changeset
    94
			</template>
cawthron
parents:
diff changeset
    95
cawthron
parents:
diff changeset
    96
			<template phase="MainSystemIncludes"><![CDATA[
cawthron
parents:
diff changeset
    97
#include <aknnotewrappers.h>
cawthron
parents:
diff changeset
    98
]]>			</template>
cawthron
parents:
diff changeset
    99
			<template phase="MainSystemIncludes"><![CDATA[
cawthron
parents:
diff changeset
   100
#include <barsread.h>
cawthron
parents:
diff changeset
   101
]]>			</template>
cawthron
parents:
diff changeset
   102
			<template phase="MainSystemIncludes"><![CDATA[
cawthron
parents:
diff changeset
   103
#include <stringloader.h>
cawthron
parents:
diff changeset
   104
]]>			</template>
cawthron
parents:
diff changeset
   105
			
cawthron
parents:
diff changeset
   106
		</sourceGen>
cawthron
parents:
diff changeset
   107
	</component>
cawthron
parents:
diff changeset
   108
	
cawthron
parents:
diff changeset
   109
</componentDefinition>