inputmethods_plat/aknfep_pen_support_api/inc/aknfeppeninputenums.h
changeset 0 eb1f2e154e89
child 7 6defe5d1bd39
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:               Pen input related enums
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 
       
    30 
       
    31 #ifndef AKNFEPPENINPUTENUMS_H
       
    32 #define AKNFEPPENINPUTENUMS_H
       
    33 
       
    34 #include <peninputcmd.h>
       
    35 /**
       
    36  *TAknFepPenInputCmd 
       
    37  *The command is sent from FEP to IME plugin
       
    38  *Some commands have a TInt parameter
       
    39 */
       
    40 enum TAknFepPenInputCmd
       
    41     {
       
    42     ECmdPenInputBase,
       
    43     /**
       
    44      * Set allowed input range
       
    45      * Parameter is input permitted mode
       
    46      */
       
    47     ECmdPenInputPermittedRange, 
       
    48     
       
    49     /**
       
    50      * Parameter is TAknEditorNumericKeymap
       
    51      */
       
    52     ECmdPenInputEditorNumericKeyMap,
       
    53     
       
    54     /**
       
    55      * Parameter is the case
       
    56      */
       
    57     ECmdPenInputCase,
       
    58     
       
    59     /**
       
    60      * Parameter is editor input language
       
    61      */
       
    62     ECmdPenInputLanguage,
       
    63     
       
    64     /**
       
    65      * Parameter is CAknEdwinState*, the command is only 
       
    66      * sent to IME plugin. 
       
    67      */
       
    68     ECmdPenInputEditorState,
       
    69     
       
    70     /**
       
    71      * When current editor is data query, UI needs adjust position
       
    72      * The command is sent to IME plugin then goes to UI layout
       
    73      *
       
    74      * Parameter is, 
       
    75      *  to IME plugin, TRect* means data query dialog rect
       
    76      *  to UI layout, a Desc contains TRect 
       
    77      */
       
    78     ECmdPenInputSetWindowPos,
       
    79     
       
    80     /**
       
    81      * Parameter is TAknFepPenInputOpenMode, indicating open method
       
    82      */
       
    83     ECmdPenInputWindowOpen,
       
    84     
       
    85     /**
       
    86      * No parameter
       
    87      */
       
    88     ECmdPenInputWindowClose,
       
    89 
       
    90     /**
       
    91      * Parameter is a TBool to indicate whether change case is allowed
       
    92      */
       
    93     ECmdPenInputAllowChangeCase,
       
    94 
       
    95     /**
       
    96      * Parameter is TInt, case mode
       
    97      */
       
    98     ECmdPenInputCaseMode,
       
    99 
       
   100     /**
       
   101      * Parameter is TInt, primary range
       
   102      */
       
   103     ECmdPenInputRange,
       
   104 
       
   105     ECmdPenInputPermittedCase,
       
   106     ECmdPenInputPluginInputMode, 
       
   107     
       
   108     ECmdPenInputEnableSettingBtn, 
       
   109     
       
   110     ECmdPenInputEditorCustomNumericKeyMap,
       
   111     
       
   112     ECmdPenInputSuggestRange,
       
   113 
       
   114     ECmdPenInputIsSecretText,
       
   115     
       
   116     ECmdPenInputIsNumberGrouping,
       
   117     
       
   118     /**
       
   119      * Parameter is a TBool to indicate whether dim arrow keys
       
   120      * in FindPane Editor
       
   121      */
       
   122     ECmdPenInputDimArrowKeys,
       
   123     
       
   124     ECmdPenInputSendEditorTextAndCurPos,
       
   125     
       
   126     /**
       
   127      * Japanese setting information for peninput.
       
   128      * The following setting information is included as parameter.
       
   129      *  Deleting direction  - 1st bit BIT ON(right side) / OFF(left side)
       
   130      *  Japanese predictive - 2nd bit BIT ON(predictive on) / OFF(predictive off)
       
   131      *  Japanese conversion - 3rd bit BIT ON(conversion on) / OFF(conversion off)
       
   132      *  Character width     - 4th bit BIT ON(full-width) / OFF(half-width)
       
   133      *  Japanese Qwerty Comma  - 5th bit BIT ON(Japanese)/OFF(Western)
       
   134      *  Japanese Qwerty Period - 6th bit BIT ON(Japanese)/OFF(Western)
       
   135      *  Japanese Qwerty Width Of Space - 7th bit BIT ON(Full)/OFF(Half)
       
   136      *  Lunch SCT           - 8th bit BIT ON(allow)/OFF(not allow)
       
   137      */
       
   138     ECmdPenInputJapaneseSetting,
       
   139 
       
   140     ECmdPenInputJapaneseSetSubRange,
       
   141 
       
   142     ECmdPenInputJapaneseGetModeOfSubRange,
       
   143 
       
   144     ECmdPenInputFingerInputMode,
       
   145     ECmdPenInputFingerOpenSCT,    //1020
       
   146     ECmdPenInputFingerCloseSCT,
       
   147     ECmdPenInputDimKey,
       
   148     ECmdPenInputHideKey,
       
   149     ECmdFingerShowKey,
       
   150     ECmdPenInputFingerHideLayout,
       
   151     ECmdPenInputFingerEvent,
       
   152     ECmdPenInputFingerLongKeyPress, //1028
       
   153     ECmdPenInputFingerKeyPress,     //1029
       
   154     ECmdPenInputFingerMatchSelection,//1030
       
   155     ECmdPenInputFingerMatchList,
       
   156     ECmdPenInputFingerMatchIndicator,
       
   157     ECmdPenInputFingerSpelling,
       
   158     ECmdPenInputFingerShowSpellEntry,
       
   159     ECmdPenInputSetTextAlignment,
       
   160     ECmdPenInputSetPromptText,
       
   161     ECmdPenInputNoFreeSpace, 
       
   162     ECmdPenInputDeActive,    
       
   163     ECmdPenInputSendEditMenuData,
       
   164     ECmdPenInputActive, 
       
   165     ECmdPenInputCharacterPreview,  
       
   166     ECmdPenInputEnableIndicatorButton,        
       
   167     ECmdPenInputSymbolOfHardKeyOne,
       
   168     ECmdPeninputAvkonFepState,
       
   169     ECmdPeninputCandidateList,
       
   170     ECmdPeninputCandidateIndex,
       
   171     ECmdPenInputFingerKutenQuery,
       
   172     ECmdPenInputInEditWordQueryDlg,
       
   173     ECmdPenInputRotation,
       
   174     ECmdPenInputPopupTooltip,
       
   175     ECmdPenInputHideTooltip,
       
   176     ECmdPenInputPopupCandidateList,
       
   177     ECmdPenInputHideCandidateList,
       
   178     ECmdPeninputITIStatus,
       
   179     ECmdPenInputImeCmdBase = 2000
       
   180     };
       
   181 
       
   182 enum TAknFepPenInputSignal
       
   183     {
       
   184     ESignalPenInput = ESignalUserEventBase,
       
   185     /**
       
   186      * When plugin UI change case mode, notify FEP
       
   187      * Parameter is case mode.
       
   188      */
       
   189     ESignalCaseMode,
       
   190     ESignalRange,
       
   191     ESignalMessage,
       
   192     ESignalReplaceText,
       
   193     ESignalReplaceTextJp,
       
   194 	ESignalReplacePartText
       
   195     };
       
   196 
       
   197 enum TAknFepPenInputRange
       
   198     {
       
   199     ERangeInvalid = 0,
       
   200     ERangeNative  = 0x01,
       
   201     ERangeEnglish = 0x02,
       
   202     ERangeNumber  = 0x04,
       
   203     ERangeSymbol  = 0x08,
       
   204     ERangeAccent =  0x10
       
   205     };
       
   206 
       
   207 /**
       
   208  *TAknFepPenInputJapaneseSubRange
       
   209  * for Japanese ERangeNative
       
   210  */
       
   211 enum TAknFepPenInputJapaneseSubRange
       
   212     {
       
   213     ERangeHiraganaKanji                 = 0x20,     // for Japanese variant
       
   214     ERangeKatakana                      = 0x40,     // for Japanese variant
       
   215     ERangeFullWidthKatakana             = 0x80,     // for Japanese variant
       
   216     ERangeFullWidthEnglish              = 0x100,    // for Japanese variant
       
   217     ERangeFullWidthNumeric              = 0x200,    // for Japanese variant
       
   218     ERangeHiraganaOnly                  = 0x400     // for Japanese variant
       
   219     };
       
   220 
       
   221 enum TAknFepPenInputCaseMode
       
   222     {
       
   223     ECaseInvalide = 0,
       
   224     //ABC
       
   225     ECaseUpper = 1, 
       
   226     //abc
       
   227     ECaseLower = 2,
       
   228     //Abc
       
   229     ECaseText = 4,
       
   230     //aBC
       
   231     ECaseInverseText = 8
       
   232     };
       
   233       
       
   234       
       
   235 enum TAknFepPenInputOpenMode
       
   236     {
       
   237     //Pen input service is opened automatically by program internal logic
       
   238     EPenInputOpenAutomatically,
       
   239     
       
   240     //Pen input service is opened by clicking touch input icon
       
   241     EPenInputOpenManually 
       
   242     };
       
   243     
       
   244 /**
       
   245  *TAknFepPenInputJapaneseSetting
       
   246  * for ECmdPenInputJapaneseSetting command
       
   247  */
       
   248 enum TAknFepPenInputJapaneseSetting
       
   249     {
       
   250     // Deleting direction ON(right side) / OFF(left side)
       
   251     EPenInputJapaneseSettingDeletingDirection  = 0x00000001,
       
   252     // Japanese predictive ON(predictive on) / OFF(predictive off)
       
   253     EPenInputJapaneseSettingPredictive         = 0x00000002,
       
   254     // Japanese HWR conversion ON(conversion on) / OFF(conversion off)
       
   255     EPenInputJapaneseSettingConversion         = 0x00000004,
       
   256     // Character width ON(full-width) / OFF(half-width)
       
   257     EPenInputJapaneseSettingCharacterWidth     = 0x00000008,
       
   258     // Japanese Qwerty Comma ON(Japanese)/OFF(Western)
       
   259     EPenInputJapaneseSettingQwertyComma        = 0x00000010,
       
   260     // Japanese Qwerty Period ON(Japanese)/OFF(Western)
       
   261     EPenInputJapaneseSettingQwertyPeriod       = 0x00000020,
       
   262     // Japanese Qwerty Width Of Space ON(Full)/OFF(Half)
       
   263     EPenInputJapaneseSettingQwertyWidthOfSpace = 0x00000040,
       
   264     // Lunch SCT ON(allow)/OFF(not allow)
       
   265     EPenInputJapaneseSettingLunchSCT           = 0x00000080,
       
   266     // Hiragana Romaji input methods ON(Romaji)/OFF(Kana)
       
   267     EPenInputJapaneseSettingRomajiInput        = 0x00000100
       
   268     };
       
   269     
       
   270 /**
       
   271  * TAknFepPenInputSettingWritingSpeed
       
   272  * for pen input general setting and hwr input methods
       
   273  */
       
   274 enum TAknFepPenInputSettingWritingSpeed
       
   275     {
       
   276     EPenInputWritingSpeedVeryFast = 1,
       
   277     EPenInputWritingSpeedFast,
       
   278     EPenInputWritingSpeedNormal,
       
   279     EPenInputWritingSpeedSlow,
       
   280     EPenInputWritingSpeedVerySlow
       
   281     };
       
   282     
       
   283 enum TAknFepPenInputWritingCharDelay
       
   284     {
       
   285     EPenInputWritingCharDelayVeryFast = 300*1000,
       
   286     EPenInputWritingCharDelayFast = 400*1000,
       
   287     EPenInputWritingCharDelayNormal = 550*1000,
       
   288     EPenInputWritingCharDelaySlow = 700*1000,
       
   289     EPenInputWritingCharDelayVerySlow = 1000*1000
       
   290     };
       
   291     
       
   292 #endif // AKNFEPPENINPUTENUMS_H
       
   293 
       
   294 // End Of File