emailuis/emailui/inc/FreestyleEmailUiLayoutHandler.h
changeset 1 12c456ceeff2
parent 0 8466d47a6819
child 14 48df8036c0f5
child 16 4ce476e64c59
equal deleted inserted replaced
0:8466d47a6819 1:12c456ceeff2
    76 		TRgb GridNormalStateTextSkinColor() const;
    76 		TRgb GridNormalStateTextSkinColor() const;
    77 		
    77 		
    78 		// One line node and item height
    78 		// One line node and item height
    79 		TInt OneLineListNodeHeight() const;
    79 		TInt OneLineListNodeHeight() const;
    80 		TInt OneLineListItemHeight() const;
    80 		TInt OneLineListItemHeight() const;
       
    81 		TInt TwoLineListItemHeight() const;
    81     	// <cmail>
    82     	// <cmail>
    82 		// Folder list item heigh
    83 		// Folder list item heigh
    83 		TInt FolderListOneLineItemHeight( const TBool& aFullscreen ) const;
    84 		TInt FolderListOneLineItemHeight( const TBool& aFullscreen ) const;
    84 	    // </cmail>
       
    85 		
    85 		
    86 		// Mail icon size
    86 		// Mail icon size
    87 		TSize MailIconSizeInThisResolution() const;
    87 		TSize MailIconSizeInThisResolution() const;
    88 
    88 
    89 		// For setting list marquee behaviour 
    89 		// For setting list marquee behaviour 
    96 	    TRect FolderListPaneRectInThisResolution( const TRect& aParent ) const;
    96 	    TRect FolderListPaneRectInThisResolution( const TRect& aParent ) const;
    97 
    97 
    98 		// Scroll pane list item size
    98 		// Scroll pane list item size
    99 		TSize FolderListItemSizeInThisResolution( const TRect& aParent ) const;
    99 		TSize FolderListItemSizeInThisResolution( const TRect& aParent ) const;
   100 		
   100 		
   101 	    // <cmail>
       
   102         // Drop down menu rect
   101         // Drop down menu rect
   103 		TRect DropDownMenuListRect( const TDropDownMenuSide aSide ) const;
   102 		TRect DropDownMenuListRect( const TDropDownMenuSide aSide, TBool aStretch = ETrue ) const;
   104     	// </cmail>
   103     	// </cmail>
   105 
   104 
   106 		// Folder list pane indentation in pixels
   105 		// Folder list pane indentation in pixels
   107 		TInt FolderListIndentation( const TRect& aParent ) const;
   106 		TInt FolderListIndentation( const TRect& aParent ) const;
   108 
   107 
   109 		// Selector ring size for the current resolution
   108 		// Selector ring size for the current resolution
   110 		TSize SelectorVisualSizeInThisResolution() const;
   109 		TSize SelectorVisualSizeInThisResolution() const;
   111 
   110 
   112 		// FS Email UI fonts, returns font style. Calling
   111 		// FS Email UI fonts, returns font style. Calling
   113 		// View may set text visual style using SetTextStyle( CAlfTextStyle.Id() )
   112 		// View may set text visual style using SetTextStyle( CAlfTextStyle.Id() )
   114 		CAlfTextStyle* FSTextStyleFromIdL( TFSEmailFont aFontId ); // <cmail> const removed due to changes in method
   113 		CAlfTextStyle* FSTextStyleFromIdL( TFSEmailFont aFontId );
   115 		
   114 		
   116 		// Control bar list padding
   115 		// Control bar list padding
   117 		TPoint ControlBarListPadding() const;
   116 		TPoint ControlBarListPadding() const;
   118 
   117 
   119 		// Control bar list border rounding size in pixels, used e.g. to
   118 		// Control bar list border rounding size in pixels, used e.g. to
   123 		// Control bar button bg rounding size
   122 		// Control bar button bg rounding size
   124 		TInt ControlBarButtonBgRoundingSize() const;
   123 		TInt ControlBarButtonBgRoundingSize() const;
   125 
   124 
   126 		// Control bar height
   125 		// Control bar height
   127 		TInt ControlBarHeight() const;
   126 		TInt ControlBarHeight() const;
   128 
       
   129 		// <cmail> Platform layout change
       
   130 		// Control bar text height
       
   131 		//TInt ControlBarTextHeight() const;
       
   132 		// </cmail> Platform layout change
       
   133 
   127 
   134 		// List fade effect times
   128 		// List fade effect times
   135         TInt ListFadeInEffectTime() const;
   129         TInt ListFadeInEffectTime() const;
   136         TInt ListFadeOutEffectTime() const;
   130         TInt ListFadeOutEffectTime() const;
   137 
   131 
   185 		TInt ViewerFontHeightInTwips() const;
   179 		TInt ViewerFontHeightInTwips() const;
   186 
   180 
   187 		// List items font heigjht in twips global zoom level
   181 		// List items font heigjht in twips global zoom level
   188 		TInt ListItemFontHeightInTwips( const TBool aPopup = EFalse ) const;
   182 		TInt ListItemFontHeightInTwips( const TBool aPopup = EFalse ) const;
   189 		
   183 		
   190  
   184  		// Logical font id's for viewer fonts 		
   191 		// Logical font id's for viewer fonts 		
       
   192 		TAknLogicalFontId ViewerTitleFontAknLogicalFontId() const;
   185 		TAknLogicalFontId ViewerTitleFontAknLogicalFontId() const;
   193 		TAknLogicalFontId ViewerTextFontAknLogicalFontId() const;
   186 		TAknLogicalFontId ViewerTextFontAknLogicalFontId() const;
   194 
   187 
   195 		// Viewer font heights based on global zoom level
   188 		// Viewer font heights based on global zoom level
   196 		TInt ViewerTitleFontHeight() const;
   189 		TInt ViewerTitleFontHeight() const;
   270         //</cmail>
   263         //</cmail>
   271 		TInt ViewerHighlightTextureSize() const;
   264 		TInt ViewerHighlightTextureSize() const;
   272 		TInt ControlBarArrowTextureXSize() const;
   265 		TInt ControlBarArrowTextureXSize() const;
   273 		TInt ControlBarArrowTextureYSize() const;
   266 		TInt ControlBarArrowTextureYSize() const;
   274 
   267 
   275 // <cmail> Use layout data instead of hardcoded values
       
   276 		TRect GetControlBarMailboxIconRect() const;
   268 		TRect GetControlBarMailboxIconRect() const;
   277 		TPoint GetControlBarMailboxIconPos() const;
   269 		TRect GetControlBarNewEmailButtonRect() const;
   278 		TSize GetControlBarMailboxIconSize() const;
       
   279 
       
   280 		TRect GetControlBarFolderListButtonRect() const;
   270 		TRect GetControlBarFolderListButtonRect() const;
   281 		TPoint GetControlBarFolderListButtonPos() const;
       
   282 		TSize GetControlBarFolderListButtonSize() const;
       
   283 
       
   284         TRect GetControlBarSortButtonRect() const;
   271         TRect GetControlBarSortButtonRect() const;
   285         TPoint GetControlBarSortButtonPos() const;
       
   286         TSize GetControlBarSortButtonSize() const;
       
   287 
       
   288         TRect GetControlBarConnectionIconRect() const;
   272         TRect GetControlBarConnectionIconRect() const;
   289         TPoint GetControlBarConnectionIconPos() const;
       
   290         TSize GetControlBarConnectionIconSize() const;
       
   291 
   273 
   292         TRect GetControlBarRect() const;
   274         TRect GetControlBarRect() const;
   293 
   275 
   294         TRect GetListRect() const;
   276         TRect GetListRect( TBool aControlsOnTop = EFalse ) const;
   295 
   277 
   296 		CAlfTextStyle& FSTextStyleFromLayoutL( const TAknTextComponentLayout& aLayout  );
   278 		CAlfTextStyle& FSTextStyleFromLayoutL( const TAknTextComponentLayout& aLayout  );
   297 //<cmail>
   279 //<cmail>
   298 		TInt TitleCaptionPadding() const;
   280 		TInt TitleCaptionPadding() const;
   299 
   281