|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef GLXLISTVIEW_H |
|
19 #define GLXLISTVIEW_H |
|
20 |
|
21 //User Includes |
|
22 #include "glxview.h" |
|
23 |
|
24 //Qt/Orbit forward declarations |
|
25 class HbListView; |
|
26 class HbMainWindow; |
|
27 class HbAbstractViewItem; |
|
28 class HbDocumentLoader; |
|
29 |
|
30 class GlxListView : public GlxView |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public : |
|
35 GlxListView(HbMainWindow *window); |
|
36 virtual ~GlxListView(); |
|
37 void activate() ; |
|
38 void deActivate(); |
|
39 void setModel(QAbstractItemModel *model); |
|
40 void addToolBar( HbToolBar *toolBar ); |
|
41 void initializeView( QAbstractItemModel *model, GlxView *preView ); |
|
42 QGraphicsItem * getAnimationItem( GlxEffect transtionEffect ); |
|
43 |
|
44 public slots: |
|
45 void itemSelected(const QModelIndex & index); |
|
46 void populated(); |
|
47 |
|
48 private slots: |
|
49 void indicateLongPress( HbAbstractViewItem *item, QPointF coords ); |
|
50 void setVisvalWindowIndex(); |
|
51 |
|
52 private: |
|
53 void addViewConnection(); |
|
54 void removeViewConnection(); |
|
55 void createListView(); |
|
56 /* |
|
57 * This loads the docml and retrives the widgets/layout information from the |
|
58 * docml corresponding to the present orentation |
|
59 */ |
|
60 void loadListView(); |
|
61 |
|
62 private: |
|
63 HbListView *mListView; |
|
64 HbView *mView; |
|
65 HbMainWindow *mWindow; //no ownership |
|
66 QAbstractItemModel *mModel ; |
|
67 HbDocumentLoader *mDocLoader; //Docml loader to load the widgets from docml |
|
68 bool mIsLongPress; |
|
69 }; |
|
70 |
|
71 #endif /* GLXLISTVIEW_H */ |