|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef HGCONSTANTS_H_ |
|
20 #define HGCONSTANTS_H_ |
|
21 |
|
22 // UI Constants |
|
23 const TInt KMinDragDistance(20); |
|
24 const TInt KPhysLaunchKeyCount(10); |
|
25 const TInt KTurboModeLimit(15); |
|
26 const TInt KKeyScrollingNormalModeMove(20); |
|
27 const TInt KKeyScrollingTurboModeMove(40); |
|
28 const TInt KMaxSearchLenght(128); |
|
29 const TInt KSearchEndTimeOut(1500000); // 0,5 sec |
|
30 const TInt KFocusTextFontSize(50); // biggest font available |
|
31 const TInt KMaxPopupTextLength(32); |
|
32 const TInt KScrollAreaOffset(15); |
|
33 const TInt KListHighlightInnerRectShrink(10); |
|
34 const TInt KPopupTextExtraPadding(50); |
|
35 const TInt KPopupWidthDiv(3); |
|
36 const TInt KDefaultHighlightTimeout( 50000 ); // 50 ms |
|
37 const TInt KMaxNumberOfTitleIndicators( 2 ); |
|
38 const TInt KKeyScrollingUpdateInterval( 50000 ); |
|
39 // timeout for long keypress used in markable lists |
|
40 const TInt KLongPressInterval = 600000; // 0,6 seconds |
|
41 const TInt KMSKControlId = 3; |
|
42 |
|
43 // Marquee CONSTANTS |
|
44 const TInt KHgMarqueeDelay = 1000000; // start scrolling after a delay of 1 second |
|
45 const TInt KHgMarqueeInterval = 100000; // scroll 10 times in a second |
|
46 const TInt KHgMarqueeSpeed = 7; // scroll 3 pixels at time |
|
47 const TInt KHgMarqueeLoops = 1; |
|
48 const TInt KAknSensibleLength = 80; |
|
49 // it does not make any sense to marquee texts longer than this |
|
50 // since it will take hours and drain battery. |
|
51 const TInt KAknMaxMarqueeLength = 512; |
|
52 |
|
53 _LIT( KGanesMif, "\\resource\\apps\\ganes.mif" ); |
|
54 _LIT( KGanesDateString, "%D%M%Y%/0%1%/1%2%/2%3%/3" ); |
|
55 _LIT( KGanesYearString, "%Y%3" ); |
|
56 _LIT( KGanesMonthString, "%N%M%2" ); |
|
57 |
|
58 #endif /* HGCONSTANTS_H_ */ |