textinput/peninputvkbkr/src/PeninputVkbKrWindow.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 44 ecbabf52600f
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
   488         iVkbLayout->ConstructFromIrregularResourceL();
   488         iVkbLayout->ConstructFromIrregularResourceL();
   489         }
   489         }
   490     else
   490     else
   491         {
   491         {
   492         iVkbCtrl->SetIrregularKeyBoard(EFalse);
   492         iVkbCtrl->SetIrregularKeyBoard(EFalse);
   493 
       
   494 
       
   495         //Add Skin id to Vkb Control for 9 piece picture.
       
   496         iVkbCtrl->SetKeySkinId( EKeyBmpNormal, KAknsIIDQsnFrKeypadButtonFrNormal );
       
   497         iVkbCtrl->SetKeySkinId( EKeyBmpHighlight, KAknsIIDQsnFrKeypadButtonFrPressed );
       
   498         iVkbCtrl->SetKeySkinId( EKeyBmpDim, KAknsIIDQsnFrKeypadButtonFrInactive );
       
   499 
       
   500         iVkbLayout->SetNonIrregularResourceId(R_AKN_FEP_VKB_NONIRREGULAR_BITMAP);
   493         iVkbLayout->SetNonIrregularResourceId(R_AKN_FEP_VKB_NONIRREGULAR_BITMAP);
   501         iVkbLayout->ConstructFromNonIrregularResourceL();        
   494         iVkbLayout->ConstructFromNonIrregularResourceL();        
   502         }
   495         }
   503 
   496 
   504     // Add bubble support
   497     // Add bubble support
   626     if ( iLayoutContext->LayoutType() == EPluginInputModeFSQ )
   619     if ( iLayoutContext->LayoutType() == EPluginInputModeFSQ )
   627         {
   620         {
   628         x = 0;
   621         x = 0;
   629         y = 0;
   622         y = 0;
   630         }
   623         }
   631 
   624         
       
   625         
   632     for ( TInt i = 0; i < count; i++ )
   626     for ( TInt i = 0; i < count; i++ )
   633         {
   627         {
   634         controlID = controlList[i]->ControlID();
   628         controlID = controlList[i]->ControlID();
   635         ctrl = Control( controlID );
   629         ctrl = Control( controlID );
   636 
   630 
   691             else if ( ctrl->ControlId() == EPeninutWindowCtrlIdRangeBar )
   685             else if ( ctrl->ControlId() == EPeninutWindowCtrlIdRangeBar )
   692                 {
   686                 {
   693                 TRAP_IGNORE(SetRangeBarSizeL(x, y));
   687                 TRAP_IGNORE(SetRangeBarSizeL(x, y));
   694                 }
   688                 }
   695             }
   689             }
   696         }
   690         }    
   697     
       
   698     RootControl()->Draw(); 
       
   699     }
   691     }
   700 
   692 
   701 void CPeninputVkbKrWindow::DoCaseChange( TInt aNewCase )
   693 void CPeninputVkbKrWindow::DoCaseChange( TInt aNewCase )
   702     {
   694     {
   703     LOG1("Vkb.Window.DoCaseChange %d",aNewCase);
   695     LOG1("Vkb.Window.DoCaseChange %d",aNewCase);
  1201         }
  1193         }
  1202     else
  1194     else
  1203         {
  1195         {
  1204         iTableUpButton->Hide(EFalse);
  1196         iTableUpButton->Hide(EFalse);
  1205         iTableUpButton->SizeChanged( exRect, inRect, ETrue );
  1197         iTableUpButton->SizeChanged( exRect, inRect, ETrue );
       
  1198         iTableUpButton->Draw();        
  1206         }
  1199         }
  1207 
  1200 
  1208     iLafMgr->GetButtonRect(
  1201     iLafMgr->GetButtonRect(
  1209         (TPeninputCommonCtrlID)EPeninutVkbCtrlIdSymbolTablePageLabel,
  1202         (TPeninputCommonCtrlID)EPeninutVkbCtrlIdSymbolTablePageLabel,
  1210         exRect ,
  1203         exRect ,
  1263         }
  1256         }
  1264     else
  1257     else
  1265         {
  1258         {
  1266         iTablePageLabel->Hide(EFalse);
  1259         iTablePageLabel->Hide(EFalse);
  1267         iTablePageLabel->SizeChanged( exRect, inRect, ETrue );
  1260         iTablePageLabel->SizeChanged( exRect, inRect, ETrue );
       
  1261         iTablePageLabel->Draw();
  1268         }
  1262         }
  1269 
  1263 
  1270     iLafMgr->GetButtonRect(
  1264     iLafMgr->GetButtonRect(
  1271         (TPeninputCommonCtrlID)EPeninutVkbCtrlIdSymbolTableDown,
  1265         (TPeninputCommonCtrlID)EPeninutVkbCtrlIdSymbolTableDown,
  1272         exRect ,
  1266         exRect ,
  1279         }
  1273         }
  1280     else
  1274     else
  1281         {
  1275         {
  1282         iTableDownButton->Hide(EFalse);
  1276         iTableDownButton->Hide(EFalse);
  1283         iTableDownButton->SizeChanged( exRect, inRect, ETrue );
  1277         iTableDownButton->SizeChanged( exRect, inRect, ETrue );
       
  1278         iTableDownButton->Draw();
  1284         }
  1279         }
  1285     
  1280     
  1286     TRect updateArea;
  1281     TRect updateArea;
  1287     updateArea.iTl=iTableUpButton->Rect().iTl;
  1282     updateArea.iTl=iTableUpButton->Rect().iTl;
  1288     updateArea.iBr=iTableDownButton->Rect().iBr;
  1283     updateArea.iBr=iTableDownButton->Rect().iBr;
  1474         {
  1469         {
  1475         TBuf<50> buf;
  1470         TBuf<50> buf;
  1476         buf.Format(_L("%d/%d"),SymbolTableUtil::FindIndex(vkbLayoutToUpdate)+1,KMaxSymbolTable);
  1471         buf.Format(_L("%d/%d"),SymbolTableUtil::FindIndex(vkbLayoutToUpdate)+1,KMaxSymbolTable);
  1477         //iTablePageLabel->SetCaptionL(buf);
  1472         //iTablePageLabel->SetCaptionL(buf);
  1478         iTablePageLabel->SetTextL(buf);
  1473         iTablePageLabel->SetTextL(buf);
  1479         RootControl()->Draw();
  1474         iTablePageLabel->Draw();
  1480         }
  1475         }
  1481     }
  1476     }
  1482 
  1477 
  1483 // ---------------------------------------------------------------------------
  1478 // ---------------------------------------------------------------------------
  1484 // External Functions
  1479 // External Functions