textinput/peninputfingerhwrar/inc/peninputfingerhwrarstoreconstants.h
branchRCL_3
changeset 5 a47de9135b21
parent 3 f5a1e66df979
child 12 5e18d8c489d6
equal deleted inserted replaced
3:f5a1e66df979 5:a47de9135b21
     1 /*
     1 /*
     2 * Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  const definitions for finger hwr
    14 * Description:  const definitions for finger hwrar
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #ifndef PENINPUTFINGERHWRARSTORECONSTANTS_H
    19 #ifndef PENINPUTFINGERHWRARSTORECONSTANTS_H
    20 #define PENINPUTFINGERHWRARSTORECONSTANTS_H
    20 #define PENINPUTFINGERHWRARSTORECONSTANTS_H
    21 
    21 
    22 /**
    22 /**
    23  *  writing speed definition
    23  *  writing speed definition
    24  * 
    24  * 
    25  *  @lib peninputfingerhwr.lib
    25  *  @lib peninputfingerhwrar.lib
    26  *  @since S60 v5.0
    26  *  @since S60 v5.0
    27  */
    27  */
    28 enum TPeninputHwrfscnWritingSpeed
    28 enum TPeninputHwrfscnWritingSpeed
    29     {
    29     {
    30     EHwrWritingSpeedVeryFast = 300*1000,
    30     EHwrWritingSpeedVeryFast = 300*1000,
    31     EHwrWritingSpeedFast = 400*1000,
    31     EHwrWritingSpeedFast = 400*1000,
    32     EHwrWritingSpeedNormal = 550*1000,
    32     EHwrWritingSpeedNormal = 550*1000,
    33     EHwrWritingSpeedSlow = 700*1000,
    33     EHwrWritingSpeedSlow = 700*1000,
    34     EHwrWritingSpeedVerySlow = 1000*1000
    34     EHwrWritingSpeedVerySlow = 1000*1000
    35     };
    35     };
    36     
       
    37 /**
       
    38  *  
       
    39  * 
       
    40  *  @lib peninputfingerhwr.lib
       
    41  *  @since S60 v5.0
       
    42  */
       
    43 enum TPeninputHwrfscnStateMgrCmd
       
    44     {
       
    45     ERecgnizeCmd,
       
    46     EPredictiveCmd,
       
    47     ESetTriggerStringCmd,
       
    48     EAppendTriggerStringCmd
       
    49     };
       
    50 
    36 
    51 /**
    37 /**
    52  *  char range id definition
    38  *  char range id definition
    53  * 
    39  * 
    54  *  @lib peninputfingerhwr.lib
    40  *  @lib peninputfingerhwrar.lib
    55  *  @since S60 v5.0
    41  *  @since S60 v5.0
    56  */
    42  */
    57 enum TFingerHwrRange
    43 enum TFingerHwrRange
    58     {
    44     {
    59     EFingerHwrNativeRange,
    45     EFingerHwrNativeRange,
    63     };    
    49     };    
    64 
    50 
    65 /**
    51 /**
    66  *  pop directions definition
    52  *  pop directions definition
    67  * 
    53  * 
    68  *  @lib peninputfingerhwr.lib
    54  *  @lib peninputfingerhwrar.lib
    69  *  @since S60 v5.0
    55  *  @since S60 v5.0
    70  */
    56  */
    71 enum TPeninputPopListDirection
    57 enum TPeninputPopListDirection
    72     {
    58     {
    73     EPopDirAuto = 0,
    59     EPopDirAuto = 0,
    83     EPagePosNextPage,
    69     EPagePosNextPage,
    84     EPagePosPrevPage,
    70     EPagePosPrevPage,
    85     EPagePosLastPage,
    71     EPagePosLastPage,
    86     EPagePosFirstPage,
    72     EPagePosFirstPage,
    87     };
    73     };
    88 
       
    89 /**
       
    90  *  row index definition
       
    91  * 
       
    92  *  @lib peninputfingerhwr.lib
       
    93  *  @since S60 v5.0
       
    94  */
       
    95 enum TRowCount
       
    96     {
       
    97     ERowOne,
       
    98     ERowTwo
       
    99     };
       
   100     
       
   101 // the predict symbol unicode when the primary is the english
       
   102 const TUint16 EnglishSymbolCodeOneRow[6] =
       
   103 	{
       
   104 	0x0027,     // '
       
   105 	0x002C,     // ,
       
   106 	0x002E,     // .
       
   107 	0x003F,     // ?
       
   108 	0x0021,     // !	
       
   109 #ifdef RD_INTELLIGENT_TEXT_INPUT
       
   110     0x002D	    // -
       
   111 #else
       
   112     0xF800	    // space
       
   113 #endif
       
   114 	};
       
   115 
       
   116 
       
   117 const TUint16 EnglishSymbolCodeTwoRow[6] =
       
   118 	{	
       
   119 	0x0040,     // @
       
   120 	0x003A,     // :
       
   121 	0x003B,     // ;
       
   122     0x0029,     // )
       
   123 	0x0044,     // D
       
   124 	0x0028	    // (
       
   125 	};
       
   126 
       
   127 const TUint16 ColonSymbol = 0x003A;
       
   128 
       
   129 
       
   130 const TUint16 ChineseSymbolCode[6] =
       
   131 	{
       
   132 	0xFF0C,
       
   133 	0x3002,
       
   134 	0xFF1F,
       
   135 	0xFF01,
       
   136 	0x3001,
       
   137 	0xFF1A	
       
   138 	};
       
   139 	
       
   140 
       
   141 const TUint16 ChinesePredictCode[100] =
       
   142 	{
       
   143 	0x6211, 0x4F60, 0x7684, 0x4E86, 0xFF0C, 0x4E0D, 0x597D, 0x5728, 0x662F, 0x6709, 
       
   144 	0x3002, 0x4E00, 0x4E48,	0x53BB,	0x5427,	0x5929, 0x4E0A, 0xFF1F, 0x6765, 0x6CA1,
       
   145 	0x554A, 0x5230, 0x5417,	0xFF01, 0x4EEC, 0x5C31, 0x56DE, 0x8FD8, 0x90A3, 0x8981, 
       
   146     0x4E0B, 0x5BB6, 0x4E2A, 0x65F6, 0x70B9, 0x8FD9, 0x4E5F, 0x8FC7, 0x7ED9, 0x770B, 
       
   147     0x4EC0, 0x4F1A, 0x4EBA, 0x8BF4, 0x53EF, 0x5927, 0x4ED6, 0x4E8B, 0x591A, 0x5B66, 
       
   148     0x60F3, 0xFF1A, 0x80FD, 0x4EE5, 0x73B0, 0x90FD, 0x9053, 0x77E5, 0x660E, 0x5F97, 
       
   149     0x8BDD, 0x5403, 0x5B50, 0x53D1, 0x91CC, 0x5462, 0x548C, 0x51FA, 0x6253, 0x4ECA, 
       
   150     0x884C, 0x5C0F, 0x7535, 0x7B49, 0x6837, 0x5FC3, 0x8D77, 0x7740, 0x540E, 0x600E, 
       
   151     0x8001, 0x5F88, 0x518D, 0x628A, 0x51E0, 0x7528, 0x5F00, 0x4E2D, 0x751F, 0x95EE, 
       
   152     0x95F4, 0x5979, 0x3001, 0x513F, 0x5730, 0x5BF9, 0x81EA, 0x89C1, 0x4E3A, 0x5DF2
       
   153 	};		
       
   154 	
       
   155 	
       
   156 	
       
   157 		
    74 		
   158 // the default end mark    
    75 // the default end mark    
   159 const TInt KDefaultStrokeEndMarkX = -65536;
    76 const TInt KDefaultStrokeEndMarkX = -65536;
   160 const TInt KDefaultStrokeEndMarkY = -65536;
    77 const TInt KDefaultStrokeEndMarkY = -65536;
   161 
    78 
   162 //candiate number
    79 //candiate number
   163 const TInt KCandidateCount = 6;
    80 const TInt KCandidateCount = 6;
   164 const TInt KMaxPredictiveCount = 100;
       
   165 const TInt KPredictiveCountPerPage = 20;
       
   166 const TInt KPremaryCandidateCount = 10;
    81 const TInt KPremaryCandidateCount = 10;
   167 
    82 
   168 const TInt KCandidateRowCount = 2;
    83 const TInt KCandidateRowCount = 2;
   169 const TInt KPredictiveRowCount = 3;
       
   170 const TInt KCandidateCountPerRow = 5;
    84 const TInt KCandidateCountPerRow = 5;
   171 const TInt KPredictiveCountPerRow = 5;
    85 
   172 
    86 
   173 
    87 
   174 const TInt KSpecialConvertedCharCount = 2;
    88 const TInt KSpecialConvertedCharCount = 2;
   175 
    89 
   176 //max number string
    90 //max number string
   185 const TInt KInvalidImg = -1 ;
    99 const TInt KInvalidImg = -1 ;
   186 const TInt KNotSupportSkin = -1;
   100 const TInt KNotSupportSkin = -1;
   187 const TInt KInvalidIndex = -1;
   101 const TInt KInvalidIndex = -1;
   188 
   102 
   189 //category
   103 //category
   190 _LIT(KCategory, "AKNFEPHWR");
   104 _LIT(KCategory, "AKNFEPHWRAR");
   191 
   105 
   192 //the number string
   106 //the number string
   193 _LIT(KNumberString,"0123456789");
   107 _LIT(KNumberString,"0123456789");
   194 
   108 
   195 //special chars
   109 //special chars