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 Styler Factory* |
|
15 */ |
|
16 |
|
17 |
|
18 /** |
|
19 * @file ActivePalette2StylerFactory.cpp |
|
20 * Active Palette Styler Factory |
|
21 */ |
|
22 |
|
23 #include "ActivePalette2StylerFactory.h" |
|
24 #include "ActivePalette2Styler.h" |
|
25 #include "ActivePalette2SemiTransparentFadingStyler.h" |
|
26 #include "ActivePalette2SemiTransparentStyler.h" |
|
27 #include "ActivePalette2CheckerboardStyler.h" |
|
28 #include "ActivePalette2OpaqueStyler.h" |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // ActivePalette2StylerFactory::CreateStylerL() |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CActivePalette2Styler* ActivePalette2StylerFactory::CreateStylerL(TActivePalette2DrawMode aDrawMode) |
|
35 { |
|
36 CActivePalette2Styler* res = NULL; |
|
37 |
|
38 switch ( aDrawMode ) |
|
39 { |
|
40 case EAP2DrawModeSemiTransparentTooltipModeFading: |
|
41 res = CActivePalette2SemiTransparentFadingStyler::NewL(); |
|
42 break; |
|
43 |
|
44 case EAP2DrawModeSemiTransparent: |
|
45 res = CActivePalette2SemiTransparentStyler::NewL(); |
|
46 break; |
|
47 |
|
48 case EAP2DrawModeCheckerboard: |
|
49 res = CActivePalette2CheckerboardStyler::NewL(); |
|
50 break; |
|
51 |
|
52 case EAP2DrawModeOpaque: |
|
53 default: |
|
54 res = CActivePalette2OpaqueStyler::NewL(); |
|
55 break; |
|
56 } |
|
57 |
|
58 return res; |
|
59 } |
|