uifw/AvKon/inc/AknTabGrpGraphics.h
branchRCL_3
changeset 72 a5e7a4f63858
parent 56 d48ab3b357f1
--- a/uifw/AvKon/inc/AknTabGrpGraphics.h	Wed Sep 15 12:29:17 2010 +0300
+++ b/uifw/AvKon/inc/AknTabGrpGraphics.h	Wed Oct 13 14:50:15 2010 +0300
@@ -115,6 +115,21 @@
     */
     void SetTabGroupBackgroundParent( TRect aParent );
 
+#if 0 // not used
+    /**
+    * This method draws the tab background bitmap using SVG graphics.
+    * The tab combination is given as bitmap id which refers to old style
+    * tab bitmaps.
+    *
+    * @param  aAvkonBitmapId  Bitmap index (@see avkon.mbg).
+    *
+    * @return  Struct which contains both the bitmap and the mask.
+    *          Ownership is transferred to the caller.
+    */
+    CAknTabGroupGraphics::SAknTabGroupBackground CreateTabGroupBackgroundL(
+        TInt aAvkonBitmapId );
+        
+#endif
     /**
     * Draw modes of the tab background graphics.
     */ 
@@ -172,7 +187,7 @@
     * @param  aTabsHidden      Specifies where hidden tabs are drawn.
     * @param  aAnimation       Specifies the used animation.
     */
-    void DrawTabGroupBackground(
+    void DrawTabGroupBackgroundL(
         TTabDrawMode aTabDrawMode,
         TBool aLongTabs,
         TInt aNumberOfTabs,
@@ -180,8 +195,7 @@
         CBitmapContext* aGc,
         SAknTabGroupBackgroundLayout& aLayout,
         TTabsHidden aTabsHidden,
-        TTabAnimationType aAnimation = ENoAnimation,
-        TInt aHighlightTab = 0 ) const;
+        TTabAnimationType aAnimation = ENoAnimation ) const;
 
     /**
     * Draws narrow tab background from given parameters.
@@ -199,7 +213,7 @@
     *                          @c EFalse, then the layout is calculated
     *                          to the @c aLayout. 
     */
-    void DrawTabGroupNarrowBackground(
+    void DrawTabGroupNarrowBackgroundL(
         TTabDrawMode aTabDrawMode,
         TBool aLongTabs,
         TInt aNumberOfTabs,
@@ -323,6 +337,70 @@
     CAknTabGroupGraphics::SAknTabGroupBackgroundLayout
         ThreeLongTabNarrowBackground( TInt aActiveTab ) const;
 
+    /**
+    * Methods to draw normal tab backgrounds.
+    */
+    void DrawTwoTabBackground( TTabDrawMode aDrawMode,
+                               TInt aActiveTab,
+                               CBitmapContext* aGc,
+                               SAknTabGroupBackgroundLayout& aLayout ) const;
+
+    void DrawThreeTabBackground( TTabDrawMode aDrawMode,
+                                 TInt aActiveTab,
+                                 CBitmapContext* aGc,
+                                 SAknTabGroupBackgroundLayout& aLayout,
+                                 TTabsHidden aTabsHidden,
+                                 TTabAnimationType aAnimation = ENoAnimation ) const;
+
+    void DrawFourTabBackground( TTabDrawMode aDrawMode,
+                                TInt aActiveTab,
+                                CBitmapContext* aGc,
+                                SAknTabGroupBackgroundLayout& aLayout ) const;
+
+    void DrawTwoLongTabBackground(
+        TTabDrawMode aDrawMode,
+        TInt aActiveTab,
+        CBitmapContext* aGc,
+        SAknTabGroupBackgroundLayout& aLayout ) const;
+
+    void DrawThreeLongTabBackground(
+        TTabDrawMode aDrawMode,
+        TInt aActiveTab,
+        CBitmapContext* aGc,
+        SAknTabGroupBackgroundLayout& aLayout ) const;
+
+    /**
+    * Methods to draw narrow tab backgrounds.
+    */
+    void DrawTwoTabNarrowBackground(
+        TTabDrawMode aDrawMode,
+        TInt aActiveTab,
+        CBitmapContext* aGc,
+        SAknTabGroupBackgroundLayout& aLayout ) const;
+
+    void DrawThreeTabNarrowBackground(
+        TTabDrawMode aDrawMode,
+        TInt aActiveTab,
+        CBitmapContext* aGc,
+        SAknTabGroupBackgroundLayout& aLayout ) const;
+
+    void DrawFourTabNarrowBackground(
+        TTabDrawMode aDrawMode,
+        TInt aActiveTab,
+        CBitmapContext* aGc,
+        SAknTabGroupBackgroundLayout& aLayout ) const;
+
+    void DrawTwoLongTabNarrowBackground(
+        TTabDrawMode aDrawMode,
+        TInt aActiveTab,
+        CBitmapContext* aGc,
+        SAknTabGroupBackgroundLayout& aLayout ) const;
+
+    void DrawThreeLongTabNarrowBackground(
+        TTabDrawMode aDrawMode,
+        TInt aActiveTab,
+        CBitmapContext* aGc,
+        SAknTabGroupBackgroundLayout& aLayout ) const;
 
     /**
     * Draws single tab graphics for an active tab.
@@ -357,21 +435,6 @@
                          TBool aFaded = EFalse ) const;
     
     /**
-     * Draws single tab graphics for a Highlight tab.
-     * 
-     * @param  aDrawMode  Mode with which the background is drawn.
-     * @param  aLeft      Rectangle of the left part of the tab.
-     * @param  aMiddle    Rectangle of the middle part of the tab.
-     * @param  aRight     Rectangle of the right part of the tab.
-     * @param  aGc        Graphics context used in drawing.
-     */
-    void DrawHighlightTabL( TTabDrawMode aDrawMode,
-                            TRect aLeft,
-                            TRect aMiddle,
-                            TRect aRight,
-                            CBitmapContext* aGc ) const;
-    
-    /**
     * Draws single tab part graphics for a passive tab.
     * Used in drawing the hidden tab bits.
     * 
@@ -395,73 +458,6 @@
     * Helper method to get the narrow tab container rect.
     */
     TRect NarrowParentRect() const;
-    
-    /**
-    * Sets the layout for tab background according to specified parameters. 
-    * Used in DrawTabGroupBackground/DrawTabGroupNarrowBackground
-    * 
-    * @param  aLayout[in,out]  Tab group background layout used in drawing.
-    *                          If the @c aLayout's @c iUse parameter is
-    *                          @c EFalse, then the layout is calculated
-    *                          to the @c aLayout. 
-    * @param  aNumberOfTabs    Number of tabs visible in the tab group (not
-    *                          the total number of tabs in the tab group).
-    * @param  aLongTabs        Active tab number in relation to the first tab
-    *                          shown. This value can be from one to
-    *                          @c aNumberOfTabs.
-    * @param  aLongTabs        Specifies whether or not long tabs are used.
-    * @param  aIsNarrow        Specifies whether or not narrow tabs are used.
-    * @param  aAnimation       Specifies the used animation.
-    */
-    void CAknTabGroupGraphics::ReviseLayoutForTabBackground(
-            SAknTabGroupBackgroundLayout& aLayout,
-            TInt aNumberOfTabs,
-            TBool aLongTabs,
-            TInt aActiveTab,
-            TBool aIsNarrow,
-            TTabAnimationType aAnimation
-            ) const;
-    
-    /**
-    * Sets active tab flag for the layout. 
-    * Used in DrawTabGroupBackground/DrawTabGroupNarrowBackground
-    * 
-    * @param  aLayout[in,out]  Tab group background layout used in drawing.
-    *                          If the @c aLayout's @c iUse parameter is
-    *                          @c EFalse, then the layout is calculated
-    *                          to the @c aLayout. 
-    * @param  aActiveTab       Active tab number in relation to the first tab
-    *                          shown. This value can be from one to
-    *                          @c aNumberOfTabs.
-    */
-    void ReviseLayoutUseFlag(
-            SAknTabGroupBackgroundLayout& aLayout,
-            TInt aActiveTab
-            ) const;
-    
-    /**
-    * Processes the instructions and draw the tab background according to instructions.
-    * Instructions are created according to drawing sequence.
-    * Used in DrawTabGroupBackground/DrawTabGroupNarrowBackground
-    * 
-    * @param aInstructions      The instructions for drawing tabs.
-    * @param aNumOfIns          The number of instructions.
-    * @param aTabDrawMode       Mode with which the background is drawn.
-    * @param aLayout[in,out]    Tab group background layout used in drawing.
-    *                           If the @c aLayout's @c iUse parameter is
-    *                           @c EFalse, then the layout is calculated
-    *                           to the @c aLayout.       
-    * @param  aGc               Graphics context used in drawing the background.
-    * 
-    */
-    void ProcessDrawTabInstructions(
-            struct TTabInstruction *aInstructions,
-            TInt aNumOfIns,
-            TTabDrawMode aTabDrawMode,
-            SAknTabGroupBackgroundLayout& aLayout,
-            CBitmapContext* aGc
-            ) const;
-    
 
 private: // Member data.