35 const TInt KMaxCoversVisible(17); |
35 const TInt KMaxCoversVisible(17); |
36 |
36 |
37 // selected item index |
37 // selected item index |
38 const TInt KSelectedItemIndex(8); |
38 const TInt KSelectedItemIndex(8); |
39 |
39 |
40 // fi |
40 // |
41 const TReal KMinFlickSpeed(0.5f); |
41 const TReal KMinFlickSpeed(0.5f); |
42 |
42 |
43 const TInt KViewUpdateInterval( 16000 ); // > ~60 fps |
43 const TInt KViewScrollingUpdateInterval( 16000 ); // > ~60 fps |
44 |
44 |
45 // The amound of pixels one item (virtually) takes on the screen (if you think coverflow as uniform list) |
45 // The amound of pixels one item (virtually) takes on the screen (if you think coverflow as uniform list) |
46 const TReal KRowHeight(1.0f); |
46 const TReal KRowHeight(1.0f); |
47 const TInt KRowHeightStep(10); |
47 const TInt KRowHeightStep(10); |
48 |
48 |
101 // when swiping |
101 // when swiping |
102 const TReal KCameraRotationFactor(PI/8.0f); |
102 const TReal KCameraRotationFactor(PI/8.0f); |
103 |
103 |
104 // zooming factor to use in animation |
104 // zooming factor to use in animation |
105 const TReal KCameraZoomFactor(0); |
105 const TReal KCameraZoomFactor(0); |
|
106 |
|
107 const TInt KLetterPopupSizeX(128); |
|
108 const TInt KLetterPopupSizeY(128); |
|
109 const TInt KLetterPopupFontSize(100); |
|
110 const TReal KMaxLetterPopupOpacity(0.85); |
106 |
111 |
107 // maximum opacity of the letter popup (1.0 would be fully opaque) |
112 const TReal KZOffset(1.0f); |
108 const TReal KMaxLetterPopupOpacity(0.85); |
113 |
109 |
|
110 // update rate for the key scrolling timer |
|
111 const TInt KMediaWallKeyScrollingUpdateInterval( 50000 ); |
114 const TInt KMediaWallKeyScrollingUpdateInterval( 50000 ); |
112 |
115 |
113 // number of rows in grid mediawall |
116 |
114 const TInt KGridRowCount(3); |
117 const TInt KGridRowCount(3); |
115 |
118 |
116 // flipping angle in flip animation in grid mediawall |
|
117 const TReal KGridFlipAngle(PI * 2); |
119 const TReal KGridFlipAngle(PI * 2); |
118 |
120 |
119 // space between items in grid mediawall |
|
120 const TReal KSpaceBetweenGridItems(0.02f); |
121 const TReal KSpaceBetweenGridItems(0.02f); |
121 |
122 |
122 // blur deviation factor for blur in zoom animation |
|
123 const TReal KDefaultBlurDeviation(4); |
123 const TReal KDefaultBlurDeviation(4); |
124 |
|
125 // Specific constants for full screen coverflow mediawall |
|
126 const TInt KMediaWallFullScreenItemsOnScreen(5); |
|
127 const TReal KMediaWallFullScreenCameraZoomFactor(1.5); |
|
128 const TReal KMediaWallFullScreenCameraRotationFactor(PI/5.0); |
|
129 const TReal KMediaWallFullScreenSpringVelocityToAnimationFactor(10); |
|
130 const TReal KMediaWallFullScreenZOffset(1); |
|
131 const TInt KMediaWallFullScreenRowCount(1); |
|
132 const TReal KMediaWallFullScreenSpringK(28); |
|
133 const TReal KMediaWallFullScreenSpringDamping(KSpringDamping); |
|
134 const TReal KMediaWallFullScreenSpringMaxVelocity(KMaxSpringVelocity); |
|
135 const TReal KMediaWallFullScreenItemsToMoveOnFullScreenDrag(5); |
|
136 |
|
137 // distance to target item where titles get rendered in fullscreen mediawall |
|
138 // eg. if distance is greater than this, titles are not rendered |
|
139 const TReal KTitleDrawDistance(2.0); |
|
140 |
|
141 // Specific constants for tbone "portrait" mediawall |
|
142 const TInt KMediaWallTBoneItemsOnScreen(3); |
|
143 const TReal KMediaWallTBoneCameraZoomFactor(2); |
|
144 const TReal KMediaWallTBoneCameraRotationFactor(KCameraRotationFactor); |
|
145 const TReal KMediaWallTBoneSpringVelocityToAnimationFactor(KSpringVelocityToAnimationFactor); |
|
146 const TInt KMediaWallTBonePopupFontSize(100); |
|
147 const TInt KMediaWallTBoneLabelFontSize(18); |
|
148 const TReal KMediaWallTBoneZOffset(0.5); |
|
149 const TInt KMediaWallTBoneRowCount(1); |
|
150 const TReal KMediaWallTBoneSpringK(KSpringK); |
|
151 const TReal KMediaWallTBoneSpringDamping(KSpringDamping); |
|
152 const TReal KMediaWallTBoneSpringMaxVelocity(KMaxSpringVelocity); |
|
153 const TReal KMediaWallTBoneItemsToMoveOnFullScreenDrag(3); |
|
154 |
|
155 // if distance to target item is over this in tbone mediawall, it shows letter popup |
|
156 const TReal KDrawLetterPopupDistance(2.0); |
|
157 |
|
158 // Specific constants for mediawall grid (for photos application) |
|
159 const TInt KMediaWallGridItemsOnScreen(3*7); |
|
160 const TReal KMediaWallGridCameraZoomFactor(0.2); |
|
161 const TReal KMediaWallGridCameraRotationFactor(KCameraRotationFactor); |
|
162 const TReal KMediaWallGridSpringVelocityToAnimationFactor(KSpringVelocityToAnimationFactor/3); |
|
163 const TInt KMediaWallGridPopupFontSize(30); |
|
164 const TReal KMediaWallGridZOffset(0.5); |
|
165 const TInt KMediaWallGridRowCount(3); |
|
166 const TReal KMediaWallGridSpringK(KSpringK); |
|
167 const TReal KMediaWallGridSpringDamping(KSpringDamping*2); |
|
168 const TReal KMediaWallGridSpringMaxVelocity(KMaxSpringVelocity/3); |
|
169 const TReal KMediaWallGridItemsToMoveOnFullScreenDrag(15); |
|
170 |
|
171 } |
124 } |
172 |
125 |
173 #endif /* HGVGCONSTANTS */ |
126 #endif /* HGVGCONSTANTS */ |