camerauis/activepalette/Src/activepalette2tooltipfactory.cpp
changeset 0 1ddebce53859
equal deleted inserted replaced
-1:000000000000 0:1ddebce53859
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Active Palette 2 Tooltip Factory implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // ===========================================================================
       
    20 // Includes
       
    21 #include "ActivePalette2Tooltip.h"
       
    22 #include "activepalette2tooltipfading.h"
       
    23 #include "activepalette2tooltipfactory.h"
       
    24 
       
    25 // ===========================================================================
       
    26 // Implementation
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // CreateTooltipL
       
    30 // ---------------------------------------------------------------------------
       
    31 //
       
    32 CActivePalette2Tooltip* 
       
    33 ActivePalette2TooltipFactory::CreateTooltipL( 
       
    34     TActivePalette2DrawMode     aDrawMode,
       
    35     const CActivePalette2BasicUI* aParent,
       
    36     CActivePalette2Model*       aModel,
       
    37     CActivePalette2Styler*      aStyler  )
       
    38   {
       
    39   CActivePalette2Tooltip* tt = NULL;
       
    40   
       
    41   switch ( aDrawMode )
       
    42     {
       
    43     case EAP2DrawModeSemiTransparentTooltipModeFading:
       
    44       tt = CActivePalette2TooltipFading::NewL( aParent, aModel, aStyler );
       
    45       break;  
       
    46     case EAP2DrawModeSemiTransparent:
       
    47     case EAP2DrawModeCheckerboard:
       
    48     case EAP2DrawModeOpaque:
       
    49     default:
       
    50       tt = CActivePalette2Tooltip::NewL( aParent, aModel, aStyler );
       
    51       break;
       
    52     }
       
    53   
       
    54   return tt;
       
    55   }
       
    56 
       
    57 // ===========================================================================
       
    58 // end of file