2
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<!-- Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). -->
|
|
3 |
<!-- All rights reserved. -->
|
|
4 |
<!-- This component and the accompanying materials are made available -->
|
|
5 |
<!-- under the terms of the License "Eclipse Public License v1.0" -->
|
|
6 |
<!-- which accompanies this distribution, and is available -->
|
|
7 |
<!-- at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
|
|
8 |
|
|
9 |
<componentDefinition xmlns="http://www.nokia.com/sdt/emf/component"
|
|
10 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
11 |
<enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.GlobalNote.type">
|
|
12 |
<enumElement value="EAknGlobalConfirmationNote"/>
|
|
13 |
<enumElement value="EAknGlobalInformationNote"/>
|
|
14 |
<enumElement value="EAknGlobalWarningNote"/>
|
|
15 |
<enumElement value="EAknGlobalErrorNote"/>
|
|
16 |
</enumPropertyDeclaration>
|
|
17 |
|
|
18 |
<enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.GlobalNote.tone">
|
|
19 |
<enumElement value="" displayValue="none"/>
|
|
20 |
<enumElement value="EAknNoteDialogConfirmationTone"/>
|
|
21 |
<enumElement value="EAknNoteDialogWarningTone"/>
|
|
22 |
<enumElement value="EAknNoteDialogErrorTone"/>
|
|
23 |
</enumPropertyDeclaration>
|
|
24 |
|
|
25 |
<component baseComponent="com.nokia.sdt.series60.NonLayoutBase"
|
|
26 |
friendlyName="%friendlyName"
|
|
27 |
qualifiedName="com.nokia.sdt.series60.GlobalNote"
|
|
28 |
category="NotesDialogs"
|
|
29 |
instanceNameRoot="globalNote"
|
|
30 |
version="1.0">
|
|
31 |
<documentation>
|
|
32 |
<information>%information</information>
|
|
33 |
</documentation>
|
|
34 |
<symbian sdkName="com.nokia.series60" minSDKVersion="2.0"
|
|
35 |
className="CAknGlobalNote" classHelpTopic="" />
|
|
36 |
<designerImages smallIconFile="GlobalNote_sm.png"
|
|
37 |
largeIconFile="GlobalNote.png"/>
|
|
38 |
<attributes>
|
|
39 |
<attribute key="is-non-layout-object">true</attribute>
|
|
40 |
<attribute key="is-non-resizable-or-moveable-layout-object">true</attribute>
|
|
41 |
<attribute key="is-transient-object">true</attribute>
|
|
42 |
</attributes>
|
|
43 |
<properties>
|
|
44 |
<compoundProperty category="Hidden" name="location" type="com.nokia.sdt.series60.locationProperty"
|
|
45 |
editorClass="com.nokia.sdt.symbian.ui.editors.ReadOnlySummaryEditorFactory"/>
|
|
46 |
<compoundProperty category="Hidden" name="size" type="com.nokia.sdt.series60.sizeProperty"
|
|
47 |
editorClass="com.nokia.sdt.symbian.ui.editors.ReadOnlySummaryEditorFactory"/>
|
|
48 |
<enumProperty category="Appearance" name="type" type="com.nokia.sdt.series60.GlobalNote.type"
|
|
49 |
default="EAknGlobalErrorNote"
|
|
50 |
descriptionKey="typeDescription" />
|
|
51 |
<property category="Appearance" name="textProcessing" type="boolean" default="true"
|
|
52 |
descriptionKey="textProcessingDescription" />
|
|
53 |
<property category="Data" name="text" type="localizedString"
|
|
54 |
default="Error!"
|
|
55 |
descriptionKey="textDescription"
|
|
56 |
editorClass="com.nokia.sdt.symbian.ui.editors.ScalableTextEditorFactory" />
|
|
57 |
<property category="Data" name="priority" type="integer"
|
|
58 |
descriptionKey="priorityDescription" />
|
|
59 |
<enumProperty category="Data" name="tone"
|
|
60 |
type="com.nokia.sdt.series60.GlobalNote.tone"
|
|
61 |
descriptionKey="toneDescription" />
|
|
62 |
</properties>
|
|
63 |
<implementations>
|
|
64 |
<implementation>
|
|
65 |
<interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/>
|
|
66 |
<interface id="com.nokia.sdt.datamodel.adapter.IDirectLabelEdit"/>
|
|
67 |
<script file="GlobalNote_visual.js" prototype="GlobalNoteVisual"/>
|
|
68 |
</implementation>
|
|
69 |
<implementation>
|
|
70 |
<interface id="com.nokia.sdt.datamodel.adapter.ILayout"/>
|
|
71 |
<interface id="com.nokia.sdt.datamodel.adapter.IComponentInstancePropertyListener"/>
|
|
72 |
<script file="GlobalNote_layout.js" prototype="GlobalNoteLayout"/>
|
|
73 |
</implementation>
|
|
74 |
</implementations>
|
|
75 |
<sourceMapping>
|
|
76 |
<mapResource struct="TBUF" headers="eikon.rh">
|
|
77 |
<mapSimpleMember property="text" member="buf"/>
|
|
78 |
</mapResource>
|
|
79 |
</sourceMapping>
|
|
80 |
<sourceGen>
|
|
81 |
<template phase="MainSystemIncludes"><![CDATA[
|
|
82 |
#include <avkon.rsg>
|
|
83 |
]]> </template>
|
|
84 |
<template phase="MainSystemIncludes"><![CDATA[
|
|
85 |
#include <aknglobalnote.h>
|
|
86 |
]]> </template>
|
|
87 |
<template phase="MainSystemIncludes"><![CDATA[
|
|
88 |
#include <stringloader.h>
|
|
89 |
]]> </template>
|
|
90 |
<template phase="ClassMethods">
|
|
91 |
static void Run${instanceName$title}L( const TDesC* aOverrideText = NULL );
|
|
92 |
</template>
|
|
93 |
<defineLocation id="MethodLocation" baseLocation="MAIN_FILE"
|
|
94 |
owned="true"
|
|
95 |
location="function(${className}::Run${instanceName$title}L(const TDesC*))">
|
|
96 |
<template>
|
|
97 |
/**
|
|
98 |
* Show the popup note for ${instanceName}
|
|
99 |
* @param aOverrideText optional override text
|
|
100 |
*/
|
|
101 |
void ${className}::Run${instanceName$title}L( const TDesC* aOverrideText )
|
|
102 |
{
|
|
103 |
}
|
|
104 |
</template>
|
|
105 |
</defineLocation>
|
|
106 |
<template location="MethodLocation"><![CDATA[
|
|
107 |
CAknGlobalNote* globalNote = CAknGlobalNote::NewLC();
|
|
108 |
if ( aOverrideText == NULL )
|
|
109 |
{
|
|
110 |
HBufC* noteText = StringLoader::LoadLC( ${resourceName$upper} );
|
|
111 |
<% if (properties.textProcessing != true) { %>globalNote->SetTextProcessing( ${properties.textProcessing} );
|
|
112 |
<%} %><% if (properties.priority != 0) { %>globalNote->SetPriority( ${properties.priority} );
|
|
113 |
<% } %><% if (properties.tone != "") { %>globalNote->SetTone( ${properties.tone} );
|
|
114 |
<% } %>globalNote->ShowNoteL( ${properties.type}, *noteText );
|
|
115 |
CleanupStack::PopAndDestroy( noteText );
|
|
116 |
}
|
|
117 |
else
|
|
118 |
{
|
|
119 |
globalNote->ShowNoteL( ${properties.type}, *aOverrideText );
|
|
120 |
}
|
|
121 |
CleanupStack::PopAndDestroy( globalNote );
|
|
122 |
]]> </template>
|
|
123 |
|
|
124 |
|
|
125 |
</sourceGen>
|
|
126 |
</component>
|
|
127 |
|
|
128 |
</componentDefinition>
|