25 |
25 |
26 /** |
26 /** |
27 * Grid constants' namespace. |
27 * Grid constants' namespace. |
28 */ |
28 */ |
29 namespace MmGrid |
29 namespace MmGrid |
30 { |
30 { |
31 /** |
31 /** |
32 * X component of the 4x3 layout. |
32 * X component of the 4x3 layout. |
33 */ |
33 */ |
34 const TInt K4By3LayoutX = 4; |
34 const TInt K4By3LayoutX = 4; |
35 |
35 |
36 /** |
36 /** |
37 * Y component of the 4x3 layout. |
37 * Y component of the 4x3 layout. |
38 */ |
38 */ |
39 const TInt K4By3LayoutY = 3; |
39 const TInt K4By3LayoutY = 3; |
40 |
40 |
41 /** |
41 /** |
42 * X component of the 3x4 layout. |
42 * X component of the 3x4 layout. |
43 */ |
43 */ |
44 |
44 |
45 const TInt K3By4LayoutX = 3; |
45 const TInt K3By4LayoutX = 3; |
46 |
46 |
47 /** |
47 /** |
48 * Y component of the 3x4 layout. |
48 * Y component of the 3x4 layout. |
49 */ |
49 */ |
50 const TInt K3By4LayoutY = 4; |
50 const TInt K3By4LayoutY = 4; |
51 |
51 |
52 /** |
52 /** |
53 * X component of the 4x5 layout. |
53 * X component of the 4x5 layout. |
54 */ |
54 */ |
55 const TInt K4By5LayoutX = 4; |
55 const TInt K4By5LayoutX = 4; |
56 |
56 |
57 /** |
57 /** |
58 * Y component of the 5x4 layout. |
58 * Y component of the 5x4 layout. |
59 */ |
59 */ |
60 const TInt K4By5LayoutY = 5; |
60 const TInt K4By5LayoutY = 5; |
61 |
61 |
62 /** |
62 /** |
63 * X component of the 5x4 layout. |
63 * X component of the 5x4 layout. |
64 */ |
64 */ |
65 const TInt K5By4LayoutX = 5; |
65 const TInt K5By4LayoutX = 5; |
66 |
66 |
67 /** |
67 /** |
68 * Y component of the 5x4 layout. |
68 * Y component of the 5x4 layout. |
69 */ |
69 */ |
70 const TInt K5By4LayoutY = 4; |
70 const TInt K5By4LayoutY = 4; |
71 |
71 |
72 /** |
72 /** |
73 * Below this value, default highlight in 3x4 grid |
73 * Below this value, default highlight in 3x4 grid |
74 * is set up on the first item. Otherwize, on the default |
74 * is set up on the first item. Otherwize, on the default |
75 * highlight. |
75 * highlight. |
76 */ |
76 */ |
77 const TInt K3By4Threshold( 5 ); |
77 const TInt K3By4Threshold(5); |
78 |
78 |
79 /** |
79 /** |
80 * Below this value, default highlight in 4x3 grid |
80 * Below this value, default highlight in 4x3 grid |
81 * is set up on the first item. Otherwize, on the default |
81 * is set up on the first item. Otherwize, on the default |
82 * highlight. |
82 * highlight. |
83 */ |
83 */ |
84 const TInt K4By3Threshold( 6 ); |
84 const TInt K4By3Threshold(6); |
85 |
85 |
86 /** |
86 /** |
87 * Below this value, default highlight in 5x4 grid |
87 * Below this value, default highlight in 5x4 grid |
88 * is set up on the first item. Otherwize, on the default |
88 * is set up on the first item. Otherwize, on the default |
89 * highlight. |
89 * highlight. |
90 */ |
90 */ |
91 const TInt K5By4Threshold( 8 ); |
91 const TInt K5By4Threshold(8); |
92 |
92 |
93 /** |
93 /** |
94 * Below this value, default highlight in 4x5 grid |
94 * Below this value, default highlight in 4x5 grid |
95 * is set up on the first item. Otherwize, on the default |
95 * is set up on the first item. Otherwize, on the default |
96 * highlight. |
96 * highlight. |
97 */ |
97 */ |
98 const TInt K4By5Threshold( 10 ); |
98 const TInt K4By5Threshold(10); |
99 |
99 |
100 /** |
100 /** |
101 * Default highlight in 3x4 grid. |
101 * Default highlight in 3x4 grid. |
102 */ |
102 */ |
103 const TInt K3By4DefaultHighlight( 4 ); |
103 const TInt K3By4DefaultHighlight(4); |
104 |
104 |
105 /** |
105 /** |
106 * Default highlight in 4x3 grid. |
106 * Default highlight in 4x3 grid. |
107 */ |
107 */ |
108 const TInt K4By3DefaultHighlight( 5 ); |
108 const TInt K4By3DefaultHighlight(5); |
109 |
109 |
110 /** |
110 /** |
111 * Default highlight in 5x4 grid. |
111 * Default highlight in 5x4 grid. |
112 */ |
112 */ |
113 const TInt K5By4DefaultHighlight( 7 ); |
113 const TInt K5By4DefaultHighlight(7); |
114 |
114 |
115 /** |
115 /** |
116 * Default highlight in 4x5 grid. |
116 * Default highlight in 4x5 grid. |
117 */ |
117 */ |
118 const TInt K4By5DefaultHighlight( 8 ); |
118 const TInt K4By5DefaultHighlight(8); |
119 |
119 |
120 /** |
120 /** |
121 * Number of rows in portrait/non-zoom mode; |
121 * Number of rows in portrait/non-zoom mode; |
122 */ |
122 */ |
123 const TInt KRowsPortraitZoomNormal( 4 ); |
123 const TInt KRowsPortraitZoomNormal(4); |
124 |
124 |
125 /** |
125 /** |
126 * Number of columns in landscape/non-zoom mode; |
126 * Number of columns in landscape/non-zoom mode; |
127 */ |
127 */ |
128 const TInt KColsPortraitZoomNormal( 3 ); |
128 const TInt KColsPortraitZoomNormal(3); |
129 |
129 |
130 /** |
130 /** |
131 * Number of rows in portrait/non-zoom mode; |
131 * Number of rows in portrait/non-zoom mode; |
132 */ |
132 */ |
133 const TInt KRowsLandscapeZoomNormal( 3 ); |
133 const TInt KRowsLandscapeZoomNormal(3); |
134 |
134 |
135 /** |
135 /** |
136 * Number of columns in landscape/non-zoom mode; |
136 * Number of columns in landscape/non-zoom mode; |
137 */ |
137 */ |
138 const TInt KColsLandscapeZoomNormal( 4 ); |
138 const TInt KColsLandscapeZoomNormal(4); |
139 |
139 |
140 /** |
140 /** |
141 * Focus based scrolling item threshold for grid. |
141 * Focus based scrolling item threshold for grid. |
142 */ |
142 */ |
143 const TReal KFocusScrollingThreshold( 0.27 ); |
143 const TReal KFocusScrollingThreshold( 0.27 ); |
144 |
144 } |
145 /** |
|
146 * Scrolling step (in pixels) for grid. |
|
147 */ |
|
148 const TInt KScrollingStep( 10 ); |
|
149 |
|
150 /** |
|
151 * Determines the speed of focus-based scrolling in edit mode. |
|
152 * Minimal delay of scrolling in the grid layout. |
|
153 */ |
|
154 const TInt KEditModeScrollingGridMinDelay( 2000 ); |
|
155 |
|
156 /** |
|
157 * Determines the speed of focus-based scrolling in edit mode. |
|
158 * Maximal delay of scrolling in the grid layout. |
|
159 */ |
|
160 const TInt KEditModeScrollingGridMaxDelay( 30000 ); |
|
161 } |
|
162 |
145 |
163 /** |
146 /** |
164 * Listbox constants' namespace. |
147 * Listbox constants' namespace. |
165 */ |
148 */ |
166 namespace MmListBox |
149 namespace MmListBox |
178 |
161 |
179 /** |
162 /** |
180 * Focus based scrolling item threshold for list. |
163 * Focus based scrolling item threshold for list. |
181 */ |
164 */ |
182 const TReal KFocusScrollingThreshold( 0.55 ); |
165 const TReal KFocusScrollingThreshold( 0.55 ); |
183 |
166 } |
184 /** |
167 |
185 * Scrolling step (in pixels) for listbox. |
168 /** |
186 */ |
169 * Drag and drop related constants. |
187 const TInt KScrollingStep( 10 ); |
170 */ |
188 |
171 namespace MmEffects |
|
172 { |
|
173 /** |
|
174 * Threshold for items shift. |
|
175 */ |
|
176 const TReal KShiftRatio( 0.25 ); |
|
177 |
|
178 /** |
|
179 * Drag and drop speed limit. |
|
180 */ |
|
181 const TInt KDragSpeedIgnoreThreshold( 15 * 15 ); |
|
182 |
|
183 /** |
|
184 * Number of frames to animate. |
|
185 */ |
|
186 const TInt KMaximumAnimationFramesCount( 6 ); |
|
187 |
|
188 /** |
|
189 * Number of frames to animate. |
|
190 */ |
|
191 const TInt KUsualAnimationFramesCount( 3 ); |
|
192 |
|
193 /** |
|
194 * Number of frames to animate on non-touch devices. |
|
195 */ |
|
196 const TInt KUsualAnimationFramesCountNonTouch( 2 ); |
|
197 |
|
198 /** |
|
199 * No animation frames count. |
|
200 */ |
|
201 const TInt KNoAnimationFramesCount( 1 ); |
|
202 |
|
203 /** |
|
204 * Delay between redrawing frames. |
|
205 */ |
|
206 const TInt KAnimationFrameDelay( 35000 ); |
|
207 |
|
208 /** |
|
209 * Text alpha during drag. |
|
210 */ |
|
211 const TInt KDragTextAlpha( 50 ); |
|
212 |
|
213 /** |
|
214 * Value of drag ignore. |
|
215 */ |
|
216 const TInt KDragIgnoreRectValue( 200 ); |
|
217 |
|
218 /** |
|
219 * Time between two butto repeat events. |
|
220 */ |
|
221 const TInt KDragRepeatRespawn( 2 ); |
|
222 |
189 /** |
223 /** |
190 * Determines the speed of focus-based scrolling in edit mode. |
224 * Determines the speed of focus-based scrolling in edit mode. |
191 * Minimal delay of scrolling in the listbox layout. |
225 */ |
192 */ |
226 const TInt KEditModeScrollingDelayFactor = 4000; |
193 const TInt KEditModeScrollingListBoxMinDelay( 4000 ); |
|
194 |
|
195 /** |
|
196 * Determines the speed of focus-based scrolling in edit mode. |
|
197 * Maximal delay of scrolling in the listbox layout. |
|
198 */ |
|
199 const TInt KEditModeScrollingListBoxMaxDelay( 30000 ); |
|
200 } |
227 } |
201 |
228 |
202 /** |
229 /** |
203 * Drag and drop related constants. |
|
204 */ |
|
205 namespace MmEffects |
|
206 { |
|
207 /** |
|
208 * Threshold for items shift. |
|
209 */ |
|
210 const TReal KShiftRatio( 0.25 ); |
|
211 |
|
212 /** |
|
213 * Drag and drop speed limit. |
|
214 */ |
|
215 const TInt KDragSpeedIgnoreThreshold( 15 * 15 ); |
|
216 |
|
217 /** |
|
218 * Number of frames to animate. |
|
219 */ |
|
220 const TInt KMaximumAnimationFramesCount( 6 ); |
|
221 |
|
222 /** |
|
223 * Number of frames to animate. |
|
224 */ |
|
225 const TInt KUsualAnimationFramesCount( 3 ); |
|
226 |
|
227 /** |
|
228 * Number of frames to animate on non-touch devices. |
|
229 */ |
|
230 const TInt KUsualAnimationFramesCountNonTouch( 2 ); |
|
231 |
|
232 /** |
|
233 * No animation frames count. |
|
234 */ |
|
235 const TInt KNoAnimationFramesCount( 1 ); |
|
236 |
|
237 /** |
|
238 * Delay between redrawing frames. |
|
239 */ |
|
240 const TInt KAnimationFrameDelay( 35000 ); |
|
241 |
|
242 /** |
|
243 * Text alpha during drag. |
|
244 */ |
|
245 const TInt KDragTextAlpha( 50 ); |
|
246 |
|
247 /** |
|
248 * Value of drag ignore. |
|
249 */ |
|
250 const TInt KDragIgnoreRectValue( 200 ); |
|
251 |
|
252 /** |
|
253 * Time between two butto repeat events. |
|
254 */ |
|
255 const TInt KDragRepeatRespawn( 2 ); |
|
256 } |
|
257 |
|
258 /** |
|
259 * Templates' related constants. |
230 * Templates' related constants. |
260 */ |
231 */ |
261 namespace MmTemplateContants |
232 namespace MmTemplateContants |
262 { |
233 { |
263 /** |
234 /** |
264 * If a custom (non LCT) template is used, this is |
235 * If a custom (non LCT) template is used, this is |
265 * its default scrollbar width. |
236 * its default scrollbar width. |
266 */ |
237 */ |
267 const TInt KCustomTemplateScrolbarWidth( 25 ); |
238 const TInt KCustomTemplateScrolbarWidth (25); |
268 |
239 |
269 const TInt KTemplateChildTextLength( 64 ); |
240 const TInt KTemplateChildTextLength (64); |
270 |
241 |
271 const TInt KSubCellsCount( 6 ); |
242 const TInt KSubCellsCount (6); |
272 |
243 |
273 const TInt KItemSubCellsText( 300 ); |
244 const TInt KItemSubCellsText (300); |
274 |
245 |
275 const TInt KMoveIndicatorStartingPos( 32 ); |
246 const TInt KMoveIndicatorStartingPos ( 32 ); |
276 } |
247 |
|
248 } |
277 |
249 |
278 /** |
250 /** |
279 * Shortcut constants. |
251 * Shortcut constants. |
280 */ |
252 */ |
281 namespace MmShortcutConstants |
253 namespace MmShortcutConstants |