|
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 |
|
12 <enumPropertyDeclaration qualifiedName="com.nokia.sdt.series60.NaviVolume.VolumeType"> |
|
13 <enumElement value="R_AVKON_NAVI_PANE_VOLUME_INDICATOR"/> |
|
14 <enumElement value="R_AVKON_NAVI_PANE_RECORDER_VOLUME_INDICATOR"/> |
|
15 <enumElement value="R_AVKON_NAVI_PANE_EARPIECE_VOLUME_INDICATOR"/> |
|
16 </enumPropertyDeclaration> |
|
17 |
|
18 <component baseComponent="com.nokia.sdt.series60.NaviBase" |
|
19 friendlyName="%friendlyName" |
|
20 qualifiedName="com.nokia.sdt.series60.NaviVolume" |
|
21 category="System" |
|
22 instanceNameRoot="naviVolume" |
|
23 version="1.0"> |
|
24 |
|
25 <documentation> |
|
26 <information>%information</information> |
|
27 </documentation> |
|
28 |
|
29 <symbian sdkName="com.nokia.series60" minSDKVersion="2.0" |
|
30 className="CAknNavigationControlContainer" classHelpTopic="" |
|
31 resourceType="NAVI_DECORATOR, VOLUME" resourceHelpTopic="" |
|
32 /> |
|
33 |
|
34 <attributes> |
|
35 <attribute key="rss-control-type-enum">EAknCtNaviPane</attribute> |
|
36 </attributes> |
|
37 |
|
38 <properties> |
|
39 <enumProperty name="volumeType" category="Appearance" |
|
40 type="com.nokia.sdt.series60.NaviVolume.VolumeType" |
|
41 descriptionKey="volumeTypeDescription" |
|
42 default="R_AVKON_NAVI_PANE_VOLUME_INDICATOR"/> |
|
43 <property name="value" category="Data" |
|
44 type="integer" |
|
45 descriptionKey="valueDescription" |
|
46 default="5" minValue="0" maxValue="9"/> |
|
47 </properties> |
|
48 |
|
49 <designerImages |
|
50 layoutImageFile="NaviVolumeLayout2.png" |
|
51 smallIconFile="NaviVolume_sm.png" |
|
52 largeIconFile="NaviVolume.png" |
|
53 /> |
|
54 |
|
55 <implementations> |
|
56 <implementation> |
|
57 <interface id="com.nokia.sdt.datamodel.adapter.IVisualAppearance"/> |
|
58 <interface id="com.nokia.sdt.datamodel.adapter.IDirectImageEdit"/> |
|
59 <interface id="com.nokia.sdt.datamodel.adapter.IImagePropertyRenderingInfo"/> |
|
60 <script file="NaviVolume_visual.js" prototype="NaviVolumeVisual"/> |
|
61 </implementation> |
|
62 </implementations> |
|
63 |
|
64 <sourceMapping> |
|
65 <mapResource struct="NAVI_DECORATOR" headers="avkon.rh"> |
|
66 <mapResourceMember property="." member="control" struct="VOLUME" headers="avkon.rh"> |
|
67 <mapSimpleMember property="value" member="value"/> |
|
68 </mapResourceMember> |
|
69 </mapResource> |
|
70 </sourceMapping> |
|
71 |
|
72 |
|
73 <sourceGen> |
|
74 |
|
75 <useTemplateGroup ids="NaviBaseSetup"/> |
|
76 <useTemplate ids="SetupPrelude"/> |
|
77 |
|
78 <template phase="MainSystemIncludes"><![CDATA[ |
|
79 #include <AknVolumeControl.h> |
|
80 ]]> </template> |
|
81 |
|
82 <template phase="MainSystemIncludes"><![CDATA[ |
|
83 #include <avkon.rsg> |
|
84 ]]> </template> |
|
85 |
|
86 <template phase="SetupStatusPane"><![CDATA[ |
|
87 iNaviDecorator_ = naviPane->CreateVolumeIndicatorL( ${instance.properties.volumeType} ); |
|
88 static_cast< CAknVolumeControl* >( iNaviDecorator_->DecoratedControl() ) |
|
89 ->SetValue( ${properties.value} ); |
|
90 ]]> |
|
91 </template> |
|
92 |
|
93 <useTemplate ids="SetupPostlude CleanupPostlude"/> |
|
94 |
|
95 </sourceGen> |
|
96 </component> |
|
97 </componentDefinition> |