|
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: Grid Anchor layout definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_ALFLCTGRIDLAYOUT_H |
|
21 #define C_ALFLCTGRIDLAYOUT_H |
|
22 |
|
23 #include <alf/alfgridlayout.h> |
|
24 |
|
25 class TAknLayoutHierarchyComponentHandle; |
|
26 |
|
27 /** |
|
28 * LCT Grid layout |
|
29 * |
|
30 * This is a specialised anchor layout, which is aware of the |
|
31 * avkon LCT layout system. It provides additional APIs |
|
32 * that allow grid layouts to be set by referring to LCT layout |
|
33 * components from the Layout Specifcations. |
|
34 * |
|
35 * @lib alfclient.lib |
|
36 * @since S60 v3.2 |
|
37 */ |
|
38 class CAlfLCTGridLayout : public CAlfGridLayout |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 /** |
|
44 * Two-phased constructor, which attach new object into the control. |
|
45 * @param aOwnerControl Control that owns this new obejct. |
|
46 * @param aParentLayout If given, the new object is set as child. |
|
47 */ |
|
48 IMPORT_C static CAlfLCTGridLayout* AddNewL(CAlfControl& aOwnerControl, |
|
49 CAlfLayout* aParentLayout = 0); |
|
50 |
|
51 /** |
|
52 * Constructor. |
|
53 */ |
|
54 IMPORT_C CAlfLCTGridLayout(); |
|
55 |
|
56 /** |
|
57 * Second-phase constructor. |
|
58 */ |
|
59 IMPORT_C void ConstructL(CAlfControl& aOwner); |
|
60 |
|
61 /** |
|
62 * Destructor. |
|
63 */ |
|
64 IMPORT_C ~CAlfLCTGridLayout(); |
|
65 |
|
66 /** |
|
67 * Sets the rows and columns for the grid. |
|
68 * |
|
69 * @param aComponentHandle reference to the layout data that corresponds to |
|
70 * the grid. |
|
71 * @ param aOffset timed point, note that the position of the timed point will be ignored. |
|
72 */ |
|
73 IMPORT_C void SetColsAndRows( |
|
74 TAknLayoutHierarchyComponentHandle& aComponentHandle, |
|
75 const TAlfTimedPoint& aOffset); |
|
76 |
|
77 /** |
|
78 * From CAlfVisual |
|
79 * @see CAlfVisual |
|
80 */ |
|
81 IMPORT_C void RemoveAndDestroyAllD(); |
|
82 IMPORT_C void UpdateChildrenLayout(TInt aTransitionTime = 0); |
|
83 IMPORT_C CAlfVisual* FindTag(const TDesC8& aTag); |
|
84 /** |
|
85 * From CAlfLayout |
|
86 * @see CAlfLayout |
|
87 */ |
|
88 IMPORT_C TAlfXYMetric BaseUnit() const; |
|
89 |
|
90 |
|
91 protected: |
|
92 /** |
|
93 * From CAlfVisual |
|
94 * @see CAlfVisual |
|
95 */ |
|
96 IMPORT_C void DoRemoveAndDestroyAllD(); |
|
97 IMPORT_C void PropertyOwnerExtension(const TUid& aExtensionUid, TAny** aExtensionParams); |
|
98 |
|
99 private: |
|
100 |
|
101 struct TLCTGridLayoutPrivateData; |
|
102 TLCTGridLayoutPrivateData* iLCTGridLayoutData; |
|
103 }; |
|
104 |
|
105 |
|
106 |
|
107 #endif // C_ALFLCTGRIDLAYOUT_H |