1339 TAknWindowLineLayout appWnd; |
1339 TAknWindowLineLayout appWnd; |
1340 TAknWindowLineLayout wndLayout; |
1340 TAknWindowLineLayout wndLayout; |
1341 TAknWindowLineLayout keypad, cellpane; |
1341 TAknWindowLineLayout keypad, cellpane; |
1342 |
1342 |
1343 // Modify begin |
1343 // Modify begin |
1344 TAknWindowLineLayout cellPaneBK; |
1344 //TAknWindowLineLayout cellPaneBK; |
1345 TAknLayoutRect cellPaneBKRect; |
1345 //TAknLayoutRect cellPaneBKRect; |
1346 TRect keyBKRect; |
1346 //TRect keyBKRect; |
1347 // Modify end |
1347 // Modify end |
1348 |
1348 |
1349 TAknLayoutRect keypadRect, cellpaneRect; |
1349 TAknLayoutRect keypadRect, cellpaneRect; |
1350 TAknLayoutRect wndRect; |
1350 TAknLayoutRect wndRect; |
1351 TAknLayoutText keyTextLayout; |
1351 TAknLayoutText keyTextLayout; |
1360 // top pane and bottom pane |
1360 // top pane and bottom pane |
1361 GetTopAndBottomPaneInfo( wndRect.Rect(), ELayout10x3, 0, *dataInfo ); |
1361 GetTopAndBottomPaneInfo( wndRect.Rect(), ELayout10x3, 0, *dataInfo ); |
1362 dataInfo->iQwtRect = wndRect.Rect(); |
1362 dataInfo->iQwtRect = wndRect.Rect(); |
1363 // keypad |
1363 // keypad |
1364 keyText = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_t1(0).LayoutLine(); |
1364 keyText = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_t1(0).LayoutLine(); |
|
1365 |
|
1366 keyText.iB -= 3; |
|
1367 |
1365 dataInfo->iKeypad.iTextLayout = keyText; |
1368 dataInfo->iKeypad.iTextLayout = keyText; |
1366 dataInfo->iKeypad.iFont = AknLayoutUtils::FontFromId(keyText.iFont, NULL); |
1369 dataInfo->iKeypad.iFont = AknLayoutUtils::FontFromId(keyText.iFont, NULL); |
1367 //dataInfo->iKeypad.iTxtRect = keyText.TextRect(); |
1370 //dataInfo->iKeypad.iTxtRect = keyText.TextRect(); |
1368 |
1371 |
1369 keypad = AknLayoutScalable_Avkon::vkb2_area_keypad_pane(0).LayoutLine(); |
1372 keypad = AknLayoutScalable_Avkon::vkb2_area_keypad_pane(0).LayoutLine(); |
1370 keypadRect.LayoutRect(wndRect.Rect(), keypad); |
1373 keypadRect.LayoutRect(wndRect.Rect(), keypad); |
1371 dataInfo->iKeypad.iKaypadRect = keypadRect.Rect(); |
1374 dataInfo->iKeypad.iKaypadRect = keypadRect.Rect(); |
1372 |
1375 |
1373 // Modify begin |
1376 // Modify begin |
1374 cellPaneBK = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_g1(0, 0, 0).LayoutLine(); |
1377 //cellPaneBK = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_g1(0, 0, 0).LayoutLine(); |
1375 // Modify end |
1378 // Modify end |
1376 |
1379 |
1377 //iKeypadRect10x3 = keypadRect.Rect(); |
1380 //iKeypadRect10x3 = keypadRect.Rect(); |
1378 for( TInt i = 0; i < KKeypadLayoutCn[0][1]; i++) |
1381 for( TInt i = 0; i < KKeypadLayoutCn[0][1]; i++) |
1379 { |
1382 { |
1383 cellpaneRect.LayoutRect(keypadRect.Rect(), cellpane); |
1386 cellpaneRect.LayoutRect(keypadRect.Rect(), cellpane); |
1384 keyRect = cellpaneRect.Rect(); |
1387 keyRect = cellpaneRect.Rect(); |
1385 keyRect.Move( -keypadRect.Rect().iTl.iX, -keypadRect.Rect().iTl.iY ); |
1388 keyRect.Move( -keypadRect.Rect().iTl.iX, -keypadRect.Rect().iTl.iY ); |
1386 |
1389 |
1387 // Modify begin |
1390 // Modify begin |
1388 cellPaneBKRect.LayoutRect( keyRect, cellPaneBK ); |
1391 //cellPaneBKRect.LayoutRect( keyRect, cellPaneBK ); |
1389 keyBKRect = cellPaneBKRect.Rect(); |
1392 //keyBKRect = cellPaneBKRect.Rect(); |
1390 dataInfo->iKeypad.iRects.AppendL( keyBKRect ); |
1393 //dataInfo->iKeypad.iRects.AppendL( keyBKRect ); |
1391 // Modify end |
1394 // Modify end |
|
1395 dataInfo->iKeypad.iRects.AppendL( keyRect ); |
1392 |
1396 |
1393 keyTextLayout.LayoutText(keyRect, keyText); |
1397 keyTextLayout.LayoutText(keyRect, keyText); |
1394 dataInfo->iKeypad.iCharRects.AppendL(keyTextLayout.TextRect()); |
1398 dataInfo->iKeypad.iCharRects.AppendL(keyTextLayout.TextRect()); |
1395 } |
1399 } |
1396 } |
1400 } |
1432 keyText = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_t1(1).LayoutLine(); |
1436 keyText = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_t1(1).LayoutLine(); |
1433 dataInfo->iKeypad.iTextLayout = keyText; |
1437 dataInfo->iKeypad.iTextLayout = keyText; |
1434 dataInfo->iKeypad.iFont = AknLayoutUtils::FontFromId(keyText.iFont, NULL); |
1438 dataInfo->iKeypad.iFont = AknLayoutUtils::FontFromId(keyText.iFont, NULL); |
1435 |
1439 |
1436 // Modify begin |
1440 // Modify begin |
1437 cellPaneBK = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_g1(1, 0, 0).LayoutLine(); |
1441 //cellPaneBK = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_g1(1, 0, 0).LayoutLine(); |
1438 // Modify end |
1442 // Modify end |
1439 |
1443 |
1440 for( TInt i = 0; i < KKeypadLayoutCn[1][1]; i++) |
1444 for( TInt i = 0; i < KKeypadLayoutCn[1][1]; i++) |
1441 { |
1445 { |
1442 for( TInt j = 0; j < KKeypadLayoutCn[1][0]; j++) |
1446 for( TInt j = 0; j < KKeypadLayoutCn[1][0]; j++) |
1445 cellpaneRect.LayoutRect(keypadRect.Rect(), cellpane); |
1449 cellpaneRect.LayoutRect(keypadRect.Rect(), cellpane); |
1446 keyRect = cellpaneRect.Rect(); |
1450 keyRect = cellpaneRect.Rect(); |
1447 keyRect.Move( -keypadRect.Rect().iTl.iX, -keypadRect.Rect().iTl.iY ); |
1451 keyRect.Move( -keypadRect.Rect().iTl.iX, -keypadRect.Rect().iTl.iY ); |
1448 |
1452 |
1449 // Modify begin |
1453 // Modify begin |
1450 cellPaneBKRect.LayoutRect( keyRect, cellPaneBK ); |
1454 //cellPaneBKRect.LayoutRect( keyRect, cellPaneBK ); |
1451 keyBKRect = cellPaneBKRect.Rect(); |
1455 //keyBKRect = cellPaneBKRect.Rect(); |
1452 dataInfo->iKeypad.iRects.AppendL( keyBKRect ); |
1456 //dataInfo->iKeypad.iRects.AppendL( keyBKRect ); |
1453 // Modify end |
1457 // Modify end |
|
1458 dataInfo->iKeypad.iRects.AppendL( keyRect ); |
|
1459 |
1454 keyTextLayout.LayoutText(keyRect, keyText); |
1460 keyTextLayout.LayoutText(keyRect, keyText); |
1455 dataInfo->iKeypad.iCharRects.AppendL(keyTextLayout.TextRect()); |
1461 dataInfo->iKeypad.iCharRects.AppendL(keyTextLayout.TextRect()); |
1456 } |
1462 } |
1457 } |
1463 } |
1458 |
1464 |
1477 keypad = AknLayoutScalable_Avkon::vkb2_area_keypad_pane(2).LayoutLine(); |
1483 keypad = AknLayoutScalable_Avkon::vkb2_area_keypad_pane(2).LayoutLine(); |
1478 keypadRect.LayoutRect(wndRect.Rect(), keypad); |
1484 keypadRect.LayoutRect(wndRect.Rect(), keypad); |
1479 dataInfo->iKeypad.iKaypadRect = keypadRect.Rect(); |
1485 dataInfo->iKeypad.iKaypadRect = keypadRect.Rect(); |
1480 |
1486 |
1481 keyText = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_t1(2).LayoutLine(); |
1487 keyText = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_t1(2).LayoutLine(); |
1482 // why, you asked? well, the reason is it's turned out this is the better one. |
1488 |
1483 keyText.iB += 3; |
1489 //keyText.iB += 3; |
1484 |
1490 |
1485 dataInfo->iKeypad.iTextLayout = keyText; |
1491 dataInfo->iKeypad.iTextLayout = keyText; |
1486 dataInfo->iKeypad.iFont = AknLayoutUtils::FontFromId(keyText.iFont, NULL); |
1492 dataInfo->iKeypad.iFont = AknLayoutUtils::FontFromId(keyText.iFont, NULL); |
1487 |
1493 |
1488 // Modify begin |
1494 // Modify begin |
1489 cellPaneBK = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_g1(2, 0, 0).LayoutLine(); |
1495 //cellPaneBK = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_g1(2, 0, 0).LayoutLine(); |
1490 // Modify end |
1496 // Modify end |
1491 |
1497 |
1492 for( TInt i = 0; i < KKeypadLayoutCn[2][1]; i++) |
1498 for( TInt i = 0; i < KKeypadLayoutCn[2][1]; i++) |
1493 { |
1499 { |
1494 for( TInt j = 0; j < KKeypadLayoutCn[2][0]; j++) |
1500 for( TInt j = 0; j < KKeypadLayoutCn[2][0]; j++) |
1497 cellpaneRect.LayoutRect(keypadRect.Rect(), cellpane); |
1503 cellpaneRect.LayoutRect(keypadRect.Rect(), cellpane); |
1498 keyRect = cellpaneRect.Rect(); |
1504 keyRect = cellpaneRect.Rect(); |
1499 keyRect.Move( -keypadRect.Rect().iTl.iX, -keypadRect.Rect().iTl.iY ); |
1505 keyRect.Move( -keypadRect.Rect().iTl.iX, -keypadRect.Rect().iTl.iY ); |
1500 |
1506 |
1501 // Modify begin |
1507 // Modify begin |
1502 cellPaneBKRect.LayoutRect( keyRect, cellPaneBK ); |
1508 //cellPaneBKRect.LayoutRect( keyRect, cellPaneBK ); |
1503 keyBKRect = cellPaneBKRect.Rect(); |
1509 //keyBKRect = cellPaneBKRect.Rect(); |
1504 dataInfo->iKeypad.iRects.AppendL( keyBKRect ); |
1510 //dataInfo->iKeypad.iRects.AppendL( keyBKRect ); |
1505 // Modify end |
1511 // Modify end |
|
1512 dataInfo->iKeypad.iRects.AppendL( keyRect ); |
1506 |
1513 |
1507 keyTextLayout.LayoutText(keyRect, keyText); |
1514 keyTextLayout.LayoutText(keyRect, keyText); |
1508 dataInfo->iKeypad.iCharRects.AppendL(keyTextLayout.TextRect()); |
1515 dataInfo->iKeypad.iCharRects.AppendL(keyTextLayout.TextRect()); |
1509 } |
1516 } |
1510 } |
1517 } |
1525 wndRect.LayoutRect(appWnd.Rect(), wndLayout); |
1532 wndRect.LayoutRect(appWnd.Rect(), wndLayout); |
1526 GetTopAndBottomPaneInfo( wndRect.Rect(), ELayout10x3, 0, *dataInfo ); |
1533 GetTopAndBottomPaneInfo( wndRect.Rect(), ELayout10x3, 0, *dataInfo ); |
1527 dataInfo->iQwtRect = wndRect.Rect(); |
1534 dataInfo->iQwtRect = wndRect.Rect(); |
1528 |
1535 |
1529 keyText = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_t1(0).LayoutLine(); |
1536 keyText = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_t1(0).LayoutLine(); |
|
1537 |
|
1538 keyText.iB -= 3; |
|
1539 |
1530 dataInfo->iKeypad.iTextLayout = keyText; |
1540 dataInfo->iKeypad.iTextLayout = keyText; |
1531 dataInfo->iKeypad.iFont = AknLayoutUtils::FontFromId(keyText.iFont, NULL); |
1541 dataInfo->iKeypad.iFont = AknLayoutUtils::FontFromId(keyText.iFont, NULL); |
1532 |
1542 |
1533 keypad = AknLayoutScalable_Avkon::vkb2_area_keypad_pane(6).LayoutLine(); |
1543 keypad = AknLayoutScalable_Avkon::vkb2_area_keypad_pane(6).LayoutLine(); |
1534 keypadRect.LayoutRect(wndRect.Rect(), keypad); |
1544 keypadRect.LayoutRect(wndRect.Rect(), keypad); |
1535 dataInfo->iKeypad.iKaypadRect = keypadRect.Rect(); |
1545 dataInfo->iKeypad.iKaypadRect = keypadRect.Rect(); |
1536 |
1546 |
1537 // Modify begin |
1547 // Modify begin |
1538 cellPaneBK = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_g1(0, 0, 0).LayoutLine(); |
1548 //cellPaneBK = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_g1(0, 0, 0).LayoutLine(); |
1539 // Modify end |
1549 // Modify end |
1540 |
1550 |
1541 TInt keyHeight = keypadRect.Rect().Height()/3; |
1551 TInt keyHeight = keypadRect.Rect().Height()/3; |
1542 for( TInt i = 0; i < KKeypadLayoutCn[0][1]; i++) |
1552 for( TInt i = 0; i < KKeypadLayoutCn[0][1]; i++) |
1543 { |
1553 { |
1548 keyRect = cellpaneRect.Rect(); |
1558 keyRect = cellpaneRect.Rect(); |
1549 keyRect.SetHeight( keyHeight ); |
1559 keyRect.SetHeight( keyHeight ); |
1550 keyRect.Move( -keypadRect.Rect().iTl.iX, -keypadRect.Rect().iTl.iY + keyHeight*i); |
1560 keyRect.Move( -keypadRect.Rect().iTl.iX, -keypadRect.Rect().iTl.iY + keyHeight*i); |
1551 |
1561 |
1552 // Modify begin |
1562 // Modify begin |
1553 cellPaneBKRect.LayoutRect( keyRect, cellPaneBK ); |
1563 //cellPaneBKRect.LayoutRect( keyRect, cellPaneBK ); |
1554 keyBKRect = cellPaneBKRect.Rect(); |
1564 //keyBKRect = cellPaneBKRect.Rect(); |
1555 dataInfo->iKeypad.iRects.AppendL( keyBKRect ); |
1565 //dataInfo->iKeypad.iRects.AppendL( keyBKRect ); |
1556 // Modify end |
1566 // Modify end |
|
1567 dataInfo->iKeypad.iRects.AppendL( keyRect ); |
1557 |
1568 |
1558 keyTextLayout.LayoutText(keyRect, keyText); |
1569 keyTextLayout.LayoutText(keyRect, keyText); |
1559 dataInfo->iKeypad.iCharRects.AppendL(keyTextLayout.TextRect()); |
1570 dataInfo->iKeypad.iCharRects.AppendL(keyTextLayout.TextRect()); |
1560 } |
1571 } |
1561 } |
1572 } |
1582 GetTopAndBottomPaneInfo( wndRect.Rect(), ELayout10x3, 0, *dataInfo ); |
1593 GetTopAndBottomPaneInfo( wndRect.Rect(), ELayout10x3, 0, *dataInfo ); |
1583 dataInfo->iQwtRect = wndRect.Rect(); |
1594 dataInfo->iQwtRect = wndRect.Rect(); |
1584 |
1595 |
1585 // keypad |
1596 // keypad |
1586 keyText = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_t1(0).LayoutLine(); |
1597 keyText = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_t1(0).LayoutLine(); |
|
1598 |
|
1599 keyText.iB -= 3; |
|
1600 |
1587 dataInfo->iKeypad.iTextLayout = keyText; |
1601 dataInfo->iKeypad.iTextLayout = keyText; |
1588 dataInfo->iKeypad.iFont = AknLayoutUtils::FontFromId(keyText.iFont, NULL); |
1602 dataInfo->iKeypad.iFont = AknLayoutUtils::FontFromId(keyText.iFont, NULL); |
1589 |
1603 |
1590 keypad = AknLayoutScalable_Avkon::vkb2_area_keypad_pane(6).LayoutLine(); |
1604 keypad = AknLayoutScalable_Avkon::vkb2_area_keypad_pane(6).LayoutLine(); |
1591 keypadRect.LayoutRect(wndRect.Rect(), keypad); |
1605 keypadRect.LayoutRect(wndRect.Rect(), keypad); |
1592 dataInfo->iKeypad.iKaypadRect = keypadRect.Rect(); |
1606 dataInfo->iKeypad.iKaypadRect = keypadRect.Rect(); |
1593 |
1607 |
1594 // Modify begin |
1608 // Modify begin |
1595 cellPaneBK = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_g1(0, 0, 0).LayoutLine(); |
1609 //cellPaneBK = AknLayoutScalable_Avkon::vkb2_cell_keypad_pane_g1(0, 0, 0).LayoutLine(); |
1596 // Modify end |
1610 // Modify end |
1597 |
1611 |
1598 keyHeight = keypadRect.Rect().Height()/3; |
1612 keyHeight = keypadRect.Rect().Height()/3; |
1599 for( TInt i = 0; i < KKeypadLayoutCn[3][1]; i++) |
1613 for( TInt i = 0; i < KKeypadLayoutCn[3][1]; i++) |
1600 { |
1614 { |
1605 keyRect = cellpaneRect.Rect(); |
1619 keyRect = cellpaneRect.Rect(); |
1606 keyRect.SetHeight( keyHeight ); |
1620 keyRect.SetHeight( keyHeight ); |
1607 keyRect.Move( -keypadRect.Rect().iTl.iX, -keypadRect.Rect().iTl.iY + keyHeight*i); |
1621 keyRect.Move( -keypadRect.Rect().iTl.iX, -keypadRect.Rect().iTl.iY + keyHeight*i); |
1608 |
1622 |
1609 // Modify begin |
1623 // Modify begin |
1610 cellPaneBKRect.LayoutRect( keyRect, cellPaneBK ); |
1624 //cellPaneBKRect.LayoutRect( keyRect, cellPaneBK ); |
1611 keyBKRect = cellPaneBKRect.Rect(); |
1625 //keyBKRect = cellPaneBKRect.Rect(); |
1612 dataInfo->iKeypad.iRects.AppendL( keyBKRect ); |
1626 //dataInfo->iKeypad.iRects.AppendL( keyBKRect ); |
1613 // Modify end |
1627 // Modify end |
|
1628 dataInfo->iKeypad.iRects.AppendL( keyRect ); |
|
1629 |
1614 keyTextLayout.LayoutText(keyRect, keyText); |
1630 keyTextLayout.LayoutText(keyRect, keyText); |
1615 dataInfo->iKeypad.iCharRects.AppendL(keyTextLayout.TextRect()); |
1631 dataInfo->iKeypad.iCharRects.AppendL(keyTextLayout.TextRect()); |
1616 } |
1632 } |
1617 } |
1633 } |
1618 dataInfo->iKeypad.iKaypadRect = keypadRect.Rect(); |
1634 dataInfo->iKeypad.iKaypadRect = keypadRect.Rect(); |