|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Phonebook thumbnail popup window control class definition. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPBKTHUMBNAILPOPUPCONTROL_H__ |
|
21 #define __CPBKTHUMBNAILPOPUPCONTROL_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <coecntrl.h> // CCoeControl |
|
25 #include <calslbs.h> // TAknLayoutRect |
|
26 #include <eiklbx.h> |
|
27 #include "MPbkThumbnailPopupControl.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CFbsBitmap; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Control for thumbnail popup window. |
|
36 */ |
|
37 NONSHARABLE_CLASS(CPbkThumbnailPopupControlSlim) |
|
38 : public CCoeControl, |
|
39 public MPbkThumbnailPopupControl |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 /** |
|
43 * Creates a new instance of this class. |
|
44 */ |
|
45 static CPbkThumbnailPopupControlSlim* NewL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CPbkThumbnailPopupControlSlim(); |
|
51 |
|
52 public: // From MPbkThumbnailPopupControl |
|
53 |
|
54 void ChangeBitmap( CFbsBitmap* aBitmap, CEikListBox* aListBox ); |
|
55 |
|
56 void SetThumbnailBackg( CFbsBitmap* aThumbBackg, CFbsBitmap* aThumbBackgMask ); |
|
57 |
|
58 void MakeControlVisible( TBool aVisible ); |
|
59 private: // from CCoeControl |
|
60 /** |
|
61 * Draw this control |
|
62 */ |
|
63 void Draw(const TRect& aRect) const; |
|
64 |
|
65 private: // Implementation |
|
66 /** |
|
67 * Standard C++ constructor. |
|
68 */ |
|
69 CPbkThumbnailPopupControlSlim(); |
|
70 |
|
71 /** |
|
72 * Performs the 2nd phase of the construction. |
|
73 */ |
|
74 void ConstructL(); |
|
75 |
|
76 private: // Data |
|
77 /// Ref: Bitmap in the popup window |
|
78 CFbsBitmap* iBitmap; |
|
79 /// Own: Controls size |
|
80 TSize iControlSize; |
|
81 /// Ref: Thumbnail background |
|
82 CFbsBitmap* iThumbBackg; |
|
83 /// Ref: Thumbnail background mask |
|
84 CFbsBitmap* iThumbBackgMask; |
|
85 /// Own: Shadow width |
|
86 TInt iShadowWidth; |
|
87 /// Own: Shadow height |
|
88 TInt iShadowHeight; |
|
89 /// Own: Is thumbnail drawn in upper right corner previously |
|
90 TBool iThumbnailDown; |
|
91 /// Own: Redraw needed |
|
92 TBool iDrawNeeded; |
|
93 |
|
94 }; |
|
95 |
|
96 #endif // __CPBKTHUMBNAILPOPUPCONTROL_H__ |
|
97 |
|
98 // End of File |