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 that fades in and out |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ACTIVE_PALETTE_2_TOOLTIP_FADING_H |
|
20 #define ACTIVE_PALETTE_2_TOOLTIP_FADING_H |
|
21 |
|
22 // =========================================================================== |
|
23 // Includes |
|
24 #include "ActivePalette2Tooltip.h" |
|
25 |
|
26 |
|
27 // =========================================================================== |
|
28 // Forward declarations |
|
29 class CActivePalette2Model; |
|
30 class CActivePalette2BasicUI; |
|
31 class CActivePalette2Styler; |
|
32 |
|
33 |
|
34 // =========================================================================== |
|
35 // Class declarations |
|
36 class CActivePalette2TooltipFading : public CActivePalette2Tooltip |
|
37 { |
|
38 // ======================================================= |
|
39 // Methods |
|
40 |
|
41 // ------------------------------------------------------- |
|
42 // Constructors and destructor |
|
43 public: |
|
44 |
|
45 static CActivePalette2TooltipFading* NewL( const CActivePalette2BasicUI* aParent, |
|
46 CActivePalette2Model* aModel, |
|
47 CActivePalette2Styler* aStyler ); |
|
48 virtual ~CActivePalette2TooltipFading(); |
|
49 |
|
50 protected: |
|
51 |
|
52 void ConstructL( const CActivePalette2BasicUI* aParent ); |
|
53 |
|
54 CActivePalette2TooltipFading( CActivePalette2Model* aModel, |
|
55 CActivePalette2Styler* aStyler ); |
|
56 |
|
57 // ------------------------------------------------------- |
|
58 // From CActivePalette2Tooltip |
|
59 public: |
|
60 |
|
61 /** |
|
62 * Draw the tooltip. |
|
63 */ |
|
64 virtual void ProduceTooltipToScreen( TBool aActivateGc ) const; |
|
65 |
|
66 protected: |
|
67 |
|
68 /** |
|
69 * Current tooltip rectangle. |
|
70 */ |
|
71 virtual TRect TooltipRect() const; |
|
72 |
|
73 // ======================================================= |
|
74 // Data |
|
75 protected: |
|
76 |
|
77 // ======================================================= |
|
78 }; |
|
79 |
|
80 #endif // ACTIVE_PALETTE_2_TOOLTIP_FADING_H |
|
81 |
|
82 // =========================================================================== |
|
83 // end of file |
|