textinput/peninputgenericvkb/src/peninputgenericvkblayout.cpp
branchRCL_3
changeset 7 a47de9135b21
parent 0 eb1f2e154e89
child 14 e6a39382bb9c
equal deleted inserted replaced
3:f5a1e66df979 7:a47de9135b21
    48 const TUint16 thaiUnicodeNew[KNumberOfDottedChar] = {0xF731,0xF733,0xF734,0xF735,0xF736,0xF737,0xF738,0xF739, 
    48 const TUint16 thaiUnicodeNew[KNumberOfDottedChar] = {0xF731,0xF733,0xF734,0xF735,0xF736,0xF737,0xF738,0xF739, 
    49                               0xF73A,0xF747,0xF748,0xF749,0xF74A,0xF74B,0xF74C,0xF74D}; 
    49                               0xF73A,0xF747,0xF748,0xF749,0xF74A,0xF74B,0xF74C,0xF74D}; 
    50 
    50 
    51 
    51 
    52 _LIT(KDisplaySpace, "\x0020");
    52 _LIT(KDisplaySpace, "\x0020");
       
    53 _LIT(KEmptyString, "");
    53 
    54 
    54 // ---------------------------------------------------------------------------
    55 // ---------------------------------------------------------------------------
    55 // CPeninputGenericVkbLayoutImp::NewL
    56 // CPeninputGenericVkbLayoutImp::NewL
    56 // (other items were commented in a header)
    57 // (other items were commented in a header)
    57 // ---------------------------------------------------------------------------
    58 // ---------------------------------------------------------------------------
   220             break;
   221             break;
   221         case ECmdPenInputLanguage:
   222         case ECmdPenInputLanguage:
   222             {
   223             {
   223             vkbWindow->SetSwitchlistLanguage(*aData);
   224             vkbWindow->SetSwitchlistLanguage(*aData);
   224             vkbWindow->SetDeadKey();
   225             vkbWindow->SetDeadKey();
   225 			TRAP_IGNORE(vkbWindow->ConstructAccentListL(*aData));
   226             if ( iLayoutType == EPluginInputModeFSQ )
       
   227                 {
       
   228                 TRAP_IGNORE(vkbWindow->ConstructFSQAccentListL( *aData ));
       
   229                 TRAP_IGNORE(vkbWindow->ConstructRangeLabelListL( *aData ));
       
   230                 }
       
   231             else
       
   232                 {
       
   233                 TRAP_IGNORE(vkbWindow->ConstructAccentListL(*aData));
       
   234                 }
       
   235             }
       
   236             break;
       
   237         case ECmdPenInputRange:
       
   238             {
       
   239             if ( iLayoutType == EPluginInputModeFSQ )
       
   240                 {
       
   241                 TRAP_IGNORE( vkbWindow->UpdateRangeCtrlsL());
       
   242                 }
   226             }
   243             }
   227             break;
   244             break;
   228         case ECmdPenInputIsSecretText:
   245         case ECmdPenInputIsSecretText:
   229             {
   246             {
   230             vkbWindow->SetSwitchlistSecretFlag(*aData);
   247             vkbWindow->SetSwitchlistSecretFlag(*aData);
   275         case ECmdPeninputITIStatus:
   292         case ECmdPeninputITIStatus:
   276             {
   293             {
   277             // Set the flag to indicate if FSQ with ITI feature is opened
   294             // Set the flag to indicate if FSQ with ITI feature is opened
   278             iITIEnabled = CPeninputDataConverter::AnyToInt( aData );
   295             iITIEnabled = CPeninputDataConverter::AnyToInt( aData );
   279             }            
   296             }            
       
   297             break;
       
   298         case ECmdPenInputFingerMatchIndicator:
       
   299             {
       
   300             if ( iLayoutType == EPluginInputModeFSQ )
       
   301                 {
       
   302 				TRAP_IGNORE( vkbWindow->UpdateIndiBubbleL( aData ));
       
   303                 }
       
   304             }
   280             break;
   305             break;
   281         default:
   306         default:
   282             {
   307             {
   283             }
   308             }
   284             break;
   309             break;
   373         
   398         
   374         if ( icf && ( aType == EAppIndicatorMsg ) && (iLayoutType == EPluginInputModeFSQ) )
   399         if ( icf && ( aType == EAppIndicatorMsg ) && (iLayoutType == EPluginInputModeFSQ) )
   375             { 
   400             { 
   376             if ( aInfo.Length() > 0 && !iInEditWordQueryDlg)
   401             if ( aInfo.Length() > 0 && !iInEditWordQueryDlg)
   377                 {
   402                 {
       
   403 				icf->HideBubble();
       
   404                 CPeninputGenericVkbWindow* vkbWindow = 
       
   405                     static_cast<CPeninputGenericVkbWindow*>(iLayoutWindow);
       
   406                 vkbWindow->SetIndiWithTextFlag( ETrue );
       
   407                 vkbWindow->IndiBubbleWithText();
       
   408                 
       
   409                 if ( vkbWindow->IndicatorData().iIndicatorImgID != 0 && 
       
   410                      vkbWindow->IndicatorData().iIndicatorMaskID != 0 && 
       
   411                      vkbWindow->IndicatorData().iIndicatorTextImgID != 0 &&
       
   412                      vkbWindow->IndicatorData().iIndicatorTextMaskID != 0 )
       
   413                     {
       
   414 					TRAP_IGNORE( vkbWindow->SetIndiBubbleImageL( 
       
   415                             vkbWindow->IndicatorData().iIndicatorImgID,
       
   416                             vkbWindow->IndicatorData().iIndicatorMaskID,
       
   417                             vkbWindow->IndicatorData().iIndicatorTextImgID,
       
   418                             vkbWindow->IndicatorData().iIndicatorTextMaskID ));
       
   419                     }
   378                 icf->ShowBubble(aInfo,icf->MsgBubbleCtrl()->Rect());
   420                 icf->ShowBubble(aInfo,icf->MsgBubbleCtrl()->Rect());
   379                 }
   421                 }
   380             else
   422             else
   381                 {
   423                 {
   382                 icf->HideBubble();
   424                 icf->HideBubble();
       
   425                 CPeninputGenericVkbWindow* vkbWindow = 
       
   426                     static_cast<CPeninputGenericVkbWindow*>(iLayoutWindow);
       
   427                 vkbWindow->SetIndiWithTextFlag( EFalse );
       
   428                 vkbWindow->IndiBubbleWithoutText();
       
   429                 
       
   430                 if ( vkbWindow->IndicatorData().iIndicatorImgID != 0 && 
       
   431                      vkbWindow->IndicatorData().iIndicatorMaskID != 0 && 
       
   432                      vkbWindow->IndicatorData().iIndicatorTextImgID != 0 &&
       
   433                      vkbWindow->IndicatorData().iIndicatorTextMaskID != 0 )
       
   434                     {
       
   435 					TRAP_IGNORE( vkbWindow->SetIndiBubbleImageL( 
       
   436                             vkbWindow->IndicatorData().iIndicatorImgID,
       
   437                             vkbWindow->IndicatorData().iIndicatorMaskID,
       
   438                             vkbWindow->IndicatorData().iIndicatorTextImgID,
       
   439                             vkbWindow->IndicatorData().iIndicatorTextMaskID));
       
   440                     }
       
   441                 
       
   442                 icf->ShowBubble(KEmptyString, icf->MsgBubbleCtrl()->Rect());
   383                 }
   443                 }
   384             }            
   444             }            
   385         else 
   445         else 
   386             {
   446             {
   387             if ( icf && ( aType == EAppByteWarningMsg ) && (iLayoutType == EPluginInputModeFSQ) )
   447             if ( icf && ( aType == EAppByteWarningMsg ) && (iLayoutType == EPluginInputModeFSQ) )