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 |
163 { |
163 { |
164 /** |
164 /** |
165 * Threshold for items shift. |
165 * Threshold for items shift. |
166 */ |
166 */ |
167 const TReal KShiftRatio(0.25); |
167 const TReal KShiftRatio(0.25); |
168 |
168 |
169 /** |
169 /** |
170 * Drag and drop speed limit. |
170 * Drag and drop speed limit. |
171 */ |
171 */ |
172 const TInt KDragSpeedIgnoreThreshold(15 * 15); |
172 const TInt KDragSpeedIgnoreThreshold(15 * 15); |
173 |
173 |
174 /** |
174 /** |
175 * Number of frames to animate. |
175 * Number of frames to animate. |
176 */ |
176 */ |
177 const TInt KMaximumAnimationFramesCount( 6 ); |
177 const TInt KMaximumAnimationFramesCount( 6 ); |
178 |
178 |
179 /** |
179 /** |
180 * Number of frames to animate. |
180 * Number of frames to animate. |
181 */ |
181 */ |
182 const TInt KUsualAnimationFramesCount( 3 ); |
182 const TInt KUsualAnimationFramesCount( 3 ); |
183 |
183 |
184 /** |
184 /** |
185 * Number of frames to animate on non-touch devices. |
185 * Number of frames to animate on non-touch devices. |
186 */ |
186 */ |
187 const TInt KUsualAnimationFramesCountNonTouch( 2 ); |
187 const TInt KUsualAnimationFramesCountNonTouch( 2 ); |
188 |
188 |
189 /** |
189 /** |
190 * No animation frames count. |
190 * No animation frames count. |
191 */ |
191 */ |
192 const TInt KNoAnimationFramesCount( 1 ); |
192 const TInt KNoAnimationFramesCount( 1 ); |
193 |
193 |
194 /** |
194 /** |
195 * Delay between redrawing frames. |
195 * Delay between redrawing frames. |
196 */ |
196 */ |
197 const TInt KAnimationFrameDelay( 40000 ); |
197 const TInt KAnimationFrameDelay( 40000 ); |
198 |
198 |
199 /** |
199 /** |
200 * Text alpha during drag. |
200 * Text alpha during drag. |
201 */ |
201 */ |
202 const TInt KDragTextAlpha( 50 ); |
202 const TInt KDragTextAlpha( 50 ); |
203 |
203 |
204 /** |
204 /** |
205 * Focus based scrolling item threshold. |
205 * Focus based scrolling item threshold. |
206 */ |
206 */ |
207 const TReal KFocusScrollingThreshold( 0.55 ); |
207 const TReal KFocusScrollingThreshold( 0.55 ); |
208 |
208 |
209 /** |
209 /** |
210 * Focus based scrolling item threshold for listbox landscape mode. |
210 * Focus based scrolling item threshold for listbox landscape mode. |
211 */ |
211 */ |
212 const TReal KFocusScrollingThresholdListboxLanscape( 1.0 ); |
212 const TReal KFocusScrollingThresholdListboxLanscape( 1.0 ); |
213 |
213 |
214 /** |
214 /** |
215 * Value of drag ignore. |
215 * Value of drag ignore. |
216 */ |
216 */ |
217 const TInt KDragIgnoreRectValue(200); |
217 const TInt KDragIgnoreRectValue(200); |
218 |
218 |
219 /** |
219 /** |
220 * Time between two butto repeat events. |
220 * Time between two butto repeat events. |
221 */ |
221 */ |
222 const TInt KDragRepeatRespawn(2); |
222 const TInt KDragRepeatRespawn(2); |
223 |
223 |
224 /** |
224 /** |
225 * Determines the speed of focus-based scrolling in edit mode. |
225 * Determines the speed of focus-based scrolling in edit mode. |
226 */ |
226 */ |
227 const TInt KEditModeScrollingDelayFactor = 4000; |
227 const TInt KEditModeScrollingDelayFactor = 4000; |
228 } |
228 } |
229 |
229 |
230 /** |
230 /** |
231 * Templates' related constants. |
231 * Templates' related constants. |
232 */ |
232 */ |
233 namespace MmTemplateContants |
233 namespace MmTemplateContants |
280 } |
280 } |
281 /** |
281 /** |
282 * Matrix Template Library panic notice. |
282 * Matrix Template Library panic notice. |
283 */ |
283 */ |
284 _LIT( KMtlPanic, "MTL" ); |
284 _LIT( KMtlPanic, "MTL" ); |
285 |
285 |
286 _LIT8( KMmTitle8, "mul_title" ); |
286 _LIT8( KMmTitle8, "mul_title" ); |
287 _LIT8( KMmDetail8, "mul_detail" ); |
287 _LIT8( KMmDetail8, "mul_detail" ); |
288 _LIT8( KMmIcon8, "mul_icon" ); |
288 _LIT8( KMmIcon8, "mul_icon" ); |
289 _LIT8( KMmBackdropIcon8, "mul_icon_backdrop" ); |
289 _LIT8( KMmBackdropIcon8, "mul_icon_backdrop" ); |
290 _LIT8( KMmTemplate8, "mul_template" ); |
290 _LIT8( KMmTemplate8, "mul_template" ); |
291 _LIT8( KGrid8, "grid" ); |
291 _LIT8( KGrid8, "grid" ); |
292 _LIT8( KListbox8, "listbox" ); |
292 _LIT8( KListbox8, "listbox" ); |
293 _LIT8( KZoomLarge8, "large_zoom" ); |
|
294 _LIT8( KZoomNormal8, "normal_zoom" ); |
|
295 _LIT8( KZoomSmall8, "small_zoom" ); |
|
296 |
293 |
297 _LIT8( KEmpty8, "empty" ); |
294 _LIT8( KEmpty8, "empty" ); |
298 _LIT8( KOrientation8, "orientation" ); |
295 _LIT8( KOrientation8, "orientation" ); |
299 _LIT8( KBase8, "base" ); |
296 _LIT8( KBase8, "base" ); |
300 _LIT8( KText8, "text" ); |
297 _LIT8( KText8, "text" ); |
308 _LIT8( KWidth8, "width" ); |
305 _LIT8( KWidth8, "width" ); |
309 _LIT8( KTextVisual8, "textvisual" ); |
306 _LIT8( KTextVisual8, "textvisual" ); |
310 _LIT8( KImageVisual8, "imagevisual" ); |
307 _LIT8( KImageVisual8, "imagevisual" ); |
311 _LIT8( KImagePath8, "imagepath" ); |
308 _LIT8( KImagePath8, "imagepath" ); |
312 _LIT8( KGridLayout8, "gridlayout" ); |
309 _LIT8( KGridLayout8, "gridlayout" ); |
313 _LIT8( KVarietyZoom8, "variety_zoom" ); |
|
314 _LIT8( KEnabled8, "enabled" ); |
310 _LIT8( KEnabled8, "enabled" ); |
315 _LIT8( KRow8, "row" ); |
311 _LIT8( KRow8, "row" ); |
316 _LIT8( KCol8, "col" ); |
312 _LIT8( KCol8, "col" ); |
317 _LIT8( KPositionX8, "positionx" ); |
313 _LIT8( KPositionX8, "positionx" ); |
318 _LIT8( KPositionY8, "positiony" ); |
314 _LIT8( KPositionY8, "positiony" ); |
321 _LIT8( KQfnPrimarySmall8, "qfn_primarysmall" ); |
317 _LIT8( KQfnPrimarySmall8, "qfn_primarysmall" ); |
322 _LIT8( KHorizontalAlign8, "horizontalalign" ); |
318 _LIT8( KHorizontalAlign8, "horizontalalign" ); |
323 _LIT8( KLct8, "lct"); |
319 _LIT8( KLct8, "lct"); |
324 _LIT8( KHighlight8, "highlight" ); |
320 _LIT8( KHighlight8, "highlight" ); |
325 _LIT8( KNoHighlight8, "nohighlight" ); |
321 _LIT8( KNoHighlight8, "nohighlight" ); |
326 _LIT8( KLandscape8, "landscape" ); |
322 _LIT8( KLandscape8, "landscape" ); |
327 |
323 |
328 _LIT8( KMmMoveIndicatorFrame8, "mul_move_indicator_frame" ); |
324 _LIT8( KMmMoveIndicatorFrame8, "mul_move_indicator_frame" ); |
329 _LIT8( KMmMoveIndicatorArrowTop8, "mul_move_indicator_arrow_top" ); |
325 _LIT8( KMmMoveIndicatorArrowTop8, "mul_move_indicator_arrow_top" ); |
330 _LIT8( KMmMoveIndicatorArrowBottom8, "mul_move_indicator_arrow_bottom" ); |
326 _LIT8( KMmMoveIndicatorArrowBottom8, "mul_move_indicator_arrow_bottom" ); |
331 _LIT8( KMmMoveIndicatorArrowLeft8, "mul_move_indicator_arrow_left" ); |
327 _LIT8( KMmMoveIndicatorArrowLeft8, "mul_move_indicator_arrow_left" ); |