1 /* |
|
2 * Copyright (c) 2009 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef HGDOUBLEGRAPHICLIST_H_ |
|
20 #define HGDOUBLEGRAPHICLIST_H_ |
|
21 |
|
22 #include <ganes/HgList.h> |
|
23 |
|
24 class CHgDoubleGraphicList : public CHgList |
|
25 { |
|
26 public: |
|
27 /** |
|
28 * Creates new CHgDoubleGraphicList. |
|
29 * |
|
30 * @param aRect Rect that the control draws onto. |
|
31 * @param aItemCount Total count of items in the grid |
|
32 * @param aDefaultIcon Default icon to be used. |
|
33 * @param aSession Window server session for DSA. Default is NULL and DSA is disabled. |
|
34 * |
|
35 * @return CHgDoubleGraphicList-object |
|
36 */ |
|
37 IMPORT_C static CHgDoubleGraphicList* NewL ( const TRect& aRect, |
|
38 TInt aItemCount, |
|
39 CGulIcon* aDefaultIcon = NULL, |
|
40 RWsSession* aSession = NULL); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 IMPORT_C virtual ~CHgDoubleGraphicList( ); |
|
46 |
|
47 public: |
|
48 |
|
49 /** |
|
50 * Returns preferred image size that should be used when passing images. |
|
51 */ |
|
52 IMPORT_C static TSize PreferredImageSize(); |
|
53 |
|
54 /** |
|
55 * Sets overlay indicator to be placed on top if the list icon. |
|
56 * The indicator will be shown on list items that have enabled the overlay indicator flag. |
|
57 * Ownership of the indicator is transferred. |
|
58 * |
|
59 * @param aIndicator The indicator to be shown |
|
60 */ |
|
61 IMPORT_C void SetIconOverlayIndicator(CGulIcon* aIndicator); |
|
62 |
|
63 protected: // CHgScroller |
|
64 void HandleSizeChanged(); |
|
65 |
|
66 protected: // CHgList |
|
67 void DrawItem(TInt aIndex, const TRect& aRect) const; |
|
68 |
|
69 protected: |
|
70 CHgDoubleGraphicList( TInt aItemCount, |
|
71 CGulIcon* aDefaultIcon ); |
|
72 |
|
73 void InitOverlayIcon(); |
|
74 |
|
75 protected: |
|
76 |
|
77 CGulIcon* iIconOverlayIndicator; |
|
78 }; |
|
79 |
|
80 #endif /*HGDOUBLEGRAPHICLIST_H_*/ |
|