|
1 /* |
|
2 * Copyright (c) 2007 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 "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 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Deck layout |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "alf/alfdecklayout.h" |
|
21 #include "alf/alfcontrol.h" |
|
22 #include "alf/alfenv.h" |
|
23 #include "alfclient.h" |
|
24 #include "alf/alfconstants.h" |
|
25 #include "alf/alfgencomponent.h" |
|
26 #include "alflogger.h" |
|
27 |
|
28 struct CAlfDeckLayout::TDeckLayoutPrivateData |
|
29 { |
|
30 // Add member variables here. |
|
31 }; |
|
32 |
|
33 // ======== LOCAL FUNCTIONS ======== |
|
34 |
|
35 |
|
36 // ======== MEMBER FUNCTIONS ======== |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // 1st phase constructor |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 EXPORT_C CAlfDeckLayout::CAlfDeckLayout() |
|
43 : CAlfLayout() |
|
44 { |
|
45 } |
|
46 |
|
47 |
|
48 // --------------------------------------------------------------------------- |
|
49 // 2nd phase constructor |
|
50 // --------------------------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C void CAlfDeckLayout::ConstructL(CAlfControl& aOwner) |
|
53 { |
|
54 CAlfLayout::ConstructL(aOwner); |
|
55 |
|
56 // Allocate iDeckLayoutData here if it gets member data. |
|
57 } |
|
58 |
|
59 // --------------------------------------------------------------------------- |
|
60 // Destructor |
|
61 // --------------------------------------------------------------------------- |
|
62 // |
|
63 EXPORT_C CAlfDeckLayout::~CAlfDeckLayout() |
|
64 { |
|
65 delete iDeckLayoutData; |
|
66 iDeckLayoutData = NULL; |
|
67 } |
|
68 |
|
69 |
|
70 // --------------------------------------------------------------------------- |
|
71 // Creates new anchor layout for the control. |
|
72 // --------------------------------------------------------------------------- |
|
73 // |
|
74 EXPORT_C CAlfDeckLayout* CAlfDeckLayout::AddNewL( |
|
75 CAlfControl& aOwnerControl, |
|
76 CAlfLayout* aParentLayout ) |
|
77 { |
|
78 CAlfDeckLayout* layout = STATIC_CAST(CAlfDeckLayout*, |
|
79 aOwnerControl.AppendLayoutL(EAlfLayoutTypeDeck, aParentLayout)); |
|
80 return layout; |
|
81 } |
|
82 |
|
83 |
|
84 // --------------------------------------------------------------------------- |
|
85 // Place holder from CAlfVisual |
|
86 // --------------------------------------------------------------------------- |
|
87 // |
|
88 EXPORT_C void CAlfDeckLayout::RemoveAndDestroyAllD() |
|
89 { |
|
90 CAlfLayout::RemoveAndDestroyAllD(); |
|
91 } |
|
92 |
|
93 // --------------------------------------------------------------------------- |
|
94 // Place holder from CAlfVisual |
|
95 // --------------------------------------------------------------------------- |
|
96 // |
|
97 EXPORT_C void CAlfDeckLayout::UpdateChildrenLayout(TInt aTransitionTime ) |
|
98 { |
|
99 CAlfLayout::UpdateChildrenLayout( aTransitionTime ); |
|
100 } |
|
101 |
|
102 // --------------------------------------------------------------------------- |
|
103 // Place holder from CAlfVisual |
|
104 // --------------------------------------------------------------------------- |
|
105 // |
|
106 EXPORT_C CAlfVisual* CAlfDeckLayout::FindTag(const TDesC8& aTag) |
|
107 { |
|
108 return CAlfLayout::FindTag( aTag ); |
|
109 } |
|
110 |
|
111 // --------------------------------------------------------------------------- |
|
112 // Place holder from CAlfLayout |
|
113 // --------------------------------------------------------------------------- |
|
114 // |
|
115 EXPORT_C TAlfXYMetric CAlfDeckLayout::BaseUnit() const |
|
116 { |
|
117 return CAlfLayout::BaseUnit(); |
|
118 } |
|
119 |
|
120 // --------------------------------------------------------------------------- |
|
121 // Place holder from CAlfVisual |
|
122 // --------------------------------------------------------------------------- |
|
123 // |
|
124 EXPORT_C void CAlfDeckLayout::DoRemoveAndDestroyAllD() |
|
125 { |
|
126 CAlfLayout::DoRemoveAndDestroyAllD(); |
|
127 } |
|
128 |
|
129 // --------------------------------------------------------------------------- |
|
130 // future proofing |
|
131 // --------------------------------------------------------------------------- |
|
132 // |
|
133 EXPORT_C void CAlfDeckLayout::PropertyOwnerExtension(const TUid& aExtensionUid, TAny** aExtensionParams) |
|
134 { |
|
135 CAlfLayout::PropertyOwnerExtension(aExtensionUid,aExtensionParams); |
|
136 } |
|
137 |