|
1 /* |
|
2 * Copyright (c) 2002 - 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: Test grids_api |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * Include files |
|
20 */ |
|
21 #include <eiktxlbx.h> |
|
22 #include <barsread.h> |
|
23 #include <akngrid.h> |
|
24 #include <aknlists.h> |
|
25 #include <eiklbx.h> |
|
26 #include <w32std.h> |
|
27 |
|
28 #include "testsdkgridsext.h" |
|
29 #include "testsdkgrids.h" |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CAknGridExt::CAknGridExt |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 CAknGridExt::CAknGridExt() |
|
36 { |
|
37 |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CAknGridExt::~CAknGridExt |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 CAknGridExt::~CAknGridExt() |
|
45 { |
|
46 |
|
47 } |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CAknGridExt::HorizontalNudgeValue |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 TInt CAknGridExt::HorizontalNudgeValue() const |
|
53 { |
|
54 return CAknGrid::HorizontalNudgeValue(); |
|
55 } |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // CAknGridExt::HorizScrollGranularityInPixels |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 TInt CAknGridExt::HorizScrollGranularityInPixels() const |
|
62 { |
|
63 return CAknGrid::HorizScrollGranularityInPixels(); |
|
64 } |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // CAknGridExt::AdjustTopItemIndex |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 void CAknGridExt::AdjustTopItemIndex() const |
|
71 { |
|
72 CAknGrid::AdjustTopItemIndex(); |
|
73 } |
|
74 |
|
75 // ----------------------------------------------------------------------------- |
|
76 // CAknGridExt::HandleDragEventL |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 void CAknGridExt::HandleDragEventL(TPoint aPointerPos) |
|
80 { |
|
81 CAknGrid::HandleDragEventL( aPointerPos ); |
|
82 } |
|
83 |
|
84 // ----------------------------------------------------------------------------- |
|
85 // CAknGridExt::RestoreClientRectFromViewRect |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 void CAknGridExt::RestoreClientRectFromViewRect(TRect& aClientRect) const |
|
89 { |
|
90 CAknGrid::RestoreClientRectFromViewRect( aClientRect ); |
|
91 } |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // CAknGridExt::AdjustRectHeightToWholeNumberOfItems |
|
95 // ----------------------------------------------------------------------------- |
|
96 // |
|
97 TInt CAknGridExt::AdjustRectHeightToWholeNumberOfItems(TRect& aRect) const |
|
98 { |
|
99 return CAknGrid::AdjustRectHeightToWholeNumberOfItems( aRect ); |
|
100 } |
|
101 |
|
102 // ----------------------------------------------------------------------------- |
|
103 // CAknGridExt::UpdateScrollBarThumbs |
|
104 // ----------------------------------------------------------------------------- |
|
105 // |
|
106 void CAknGridExt::UpdateScrollBarThumbs() const |
|
107 { |
|
108 CAknGrid::UpdateScrollBarThumbs(); |
|
109 } |
|
110 |
|
111 // ----------------------------------------------------------------------------- |
|
112 // CAknGridExt::CountComponentControls |
|
113 // ----------------------------------------------------------------------------- |
|
114 // |
|
115 TInt CAknGridExt::CountComponentControls() const |
|
116 { |
|
117 return CAknGrid::CountComponentControls(); |
|
118 } |
|
119 |
|
120 // ----------------------------------------------------------------------------- |
|
121 // CAknGridExt::MoveToNextOrPreviousItemL |
|
122 // ----------------------------------------------------------------------------- |
|
123 // |
|
124 void CAknGridExt::MoveToNextOrPreviousItemL(TPoint aPoint) |
|
125 { |
|
126 CAknGrid::MoveToNextOrPreviousItemL( aPoint ); |
|
127 } |
|
128 |
|
129 // ----------------------------------------------------------------------------- |
|
130 // CAknGridExt::CalcGridSizeL |
|
131 // ----------------------------------------------------------------------------- |
|
132 // |
|
133 void CAknGridExt::CalcGridSizeL() |
|
134 { |
|
135 CAknGrid::CalcGridSizeL(); |
|
136 } |
|
137 |
|
138 // ----------------------------------------------------------------------------- |
|
139 // CAknGridExt::CreateItemDrawerL |
|
140 // ----------------------------------------------------------------------------- |
|
141 // |
|
142 void CAknGridExt::CreateItemDrawerL() |
|
143 { |
|
144 CAknGrid::CreateItemDrawerL(); |
|
145 } |
|
146 |
|
147 // ----------------------------------------------------------------------------- |
|
148 // CAknGridExt::HandleScrollEventL |
|
149 // ----------------------------------------------------------------------------- |
|
150 // |
|
151 void CAknGridExt::HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType) |
|
152 { |
|
153 CAknGrid::HandleScrollEventL( aScrollBar, aEventType ); |
|
154 } |
|
155 |
|
156 // ----------------------------------------------------------------------------- |
|
157 // CAknGridExt::MopSupplyObject |
|
158 // ----------------------------------------------------------------------------- |
|
159 // |
|
160 TTypeUid::Ptr CAknGridExt::MopSupplyObject(TTypeUid aId) |
|
161 { |
|
162 return CAknGrid::MopSupplyObject( aId ); |
|
163 } |
|
164 |