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