equal
deleted
inserted
replaced
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description : A visualizer for data items with plain text. |
14 * Description : A visualizer for data items with plain text. |
15 * Version : %version: tr1sido#14 % |
15 * Version : %version: tr1sido#15 % |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 |
19 |
20 //<cmail> removed __FS_ALFRED_SUPPORT flag |
20 //<cmail> removed __FS_ALFRED_SUPPORT flag |
1682 |
1682 |
1683 iTextVisual->EnableShadow(iFlags & KFsTreeListItemTextShadow); |
1683 iTextVisual->EnableShadow(iFlags & KFsTreeListItemTextShadow); |
1684 iTextVisual->SetColor( textColor ); |
1684 iTextVisual->SetColor( textColor ); |
1685 iTextVisual->SetTextStyle( styleId ); |
1685 iTextVisual->SetTextStyle( styleId ); |
1686 |
1686 |
1687 iTextVisual->SetWrapping(CAlfTextVisual::ELineWrapManual); |
1687 // iTextVisual->SetWrapping(CAlfTextVisual::ELineWrapManual); |
1688 |
1688 |
1689 TAlfAlignHorizontal currTextAlign( EAlfAlignHLocale ); |
1689 TAlfAlignHorizontal currTextAlign( EAlfAlignHLocale ); |
1690 currTextAlign = CurrentTextAlignmentL( iTextAlign, &data->Data(), iTextVisual ); |
1690 currTextAlign = CurrentTextAlignmentL( iTextAlign, &data->Data(), iTextVisual ); |
1691 iTextVisual->SetAlign( currTextAlign, EAlfAlignVCenter ); |
1691 iTextVisual->SetAlign( currTextAlign, EAlfAlignVCenter ); |
1692 |
1692 |
1711 |
1711 |
1712 iSecondaryTextVisual->EnableShadow(iFlags & KFsTreeListItemTextShadow); |
1712 iSecondaryTextVisual->EnableShadow(iFlags & KFsTreeListItemTextShadow); |
1713 iSecondaryTextVisual->SetColor( textColor ); |
1713 iSecondaryTextVisual->SetColor( textColor ); |
1714 iSecondaryTextVisual->SetTextStyle( styleId ); |
1714 iSecondaryTextVisual->SetTextStyle( styleId ); |
1715 |
1715 |
1716 iSecondaryTextVisual->SetWrapping(CAlfTextVisual::ELineWrapManual); |
1716 // iSecondaryTextVisual->SetWrapping(CAlfTextVisual::ELineWrapManual); |
1717 |
1717 |
1718 TAlfAlignHorizontal currSecTextAlign( EAlfAlignHLocale ); |
1718 TAlfAlignHorizontal currSecTextAlign( EAlfAlignHLocale ); |
1719 currSecTextAlign = CurrentTextAlignmentL( iSecondaryTextAlign, &data->SecondaryData(), iSecondaryTextVisual ); |
1719 currSecTextAlign = CurrentTextAlignmentL( iSecondaryTextAlign, &data->SecondaryData(), iSecondaryTextVisual ); |
1720 iSecondaryTextVisual->SetAlign(currSecTextAlign,EAlfAlignVCenter ); |
1720 iSecondaryTextVisual->SetAlign(currSecTextAlign,EAlfAlignVCenter ); |
1721 |
1721 |
1742 |
1742 |
1743 iPreviewPaneTextVisual->EnableShadow(iFlags & KFsTreeListItemTextShadow); |
1743 iPreviewPaneTextVisual->EnableShadow(iFlags & KFsTreeListItemTextShadow); |
1744 iPreviewPaneTextVisual->SetColor( textColor ); |
1744 iPreviewPaneTextVisual->SetColor( textColor ); |
1745 iPreviewPaneTextVisual->SetTextStyle( styleId ); |
1745 iPreviewPaneTextVisual->SetTextStyle( styleId ); |
1746 |
1746 |
1747 iPreviewPaneTextVisual->SetWrapping(CAlfTextVisual::ELineWrapManual); |
1747 // iPreviewPaneTextVisual->SetWrapping(CAlfTextVisual::ELineWrapManual); |
1748 |
1748 |
1749 TAlfAlignHorizontal currSecTextAlign( EAlfAlignHLocale ); |
1749 TAlfAlignHorizontal currSecTextAlign( EAlfAlignHLocale ); |
1750 currSecTextAlign = CurrentTextAlignmentL( EAlfAlignHLocale, &data->PreviewPaneData(), iPreviewPaneTextVisual ); |
1750 currSecTextAlign = CurrentTextAlignmentL( EAlfAlignHLocale, &data->PreviewPaneData(), iPreviewPaneTextVisual ); |
1751 iPreviewPaneTextVisual->SetAlign(currSecTextAlign,EAlfAlignVCenter ); |
1751 iPreviewPaneTextVisual->SetAlign(currSecTextAlign,EAlfAlignVCenter ); |
1752 |
1752 |