|
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 HGDOUBLETEXTLIST_H_ |
|
20 #define HGDOUBLETEXTLIST_H_ |
|
21 |
|
22 #include <ganes/HgList.h> |
|
23 |
|
24 class CHgDoubleTextList : public CHgList |
|
25 { |
|
26 public: |
|
27 /** |
|
28 * Creates new CHgDoubleTextList. |
|
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 CHgDoubleTextList-object |
|
36 */ |
|
37 IMPORT_C static CHgDoubleTextList* NewL ( const TRect& aRect, |
|
38 TInt aItemCount, |
|
39 CGulIcon* aDefaultIcon = NULL, |
|
40 RWsSession* aSession = NULL); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 IMPORT_C virtual ~CHgDoubleTextList( ); |
|
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 protected: // CHgScroller |
|
55 void HandleSizeChanged(); |
|
56 |
|
57 protected: // CHgList |
|
58 void DrawItem(TInt aIndex, const TRect& aRect) const; |
|
59 |
|
60 protected: |
|
61 CHgDoubleTextList( TInt aItemCount, |
|
62 CGulIcon* aDefaultIcon ); |
|
63 |
|
64 }; |
|
65 |
|
66 #endif /*HGDOUBLETEXTLIST_H_*/ |