equal
deleted
inserted
replaced
41 public : |
41 public : |
42 GlxGridView(HbMainWindow *window); |
42 GlxGridView(HbMainWindow *window); |
43 ~GlxGridView(); |
43 ~GlxGridView(); |
44 void activate() ; |
44 void activate() ; |
45 void deActivate(); |
45 void deActivate(); |
|
46 void initializeView(QAbstractItemModel *model); |
46 void setModel(QAbstractItemModel *model); |
47 void setModel(QAbstractItemModel *model); |
47 void addToolBar( HbToolBar *toolBar ); |
48 void addToolBar( HbToolBar *toolBar ); |
48 void enableMarking() ; |
49 void enableMarking() ; |
49 void disableMarking() ; |
50 void disableMarking() ; |
50 void handleUserAction(qint32 commandId); |
51 void handleUserAction(qint32 commandId); |
52 QGraphicsItem * getAnimationItem(GlxEffect transitionEffect); |
53 QGraphicsItem * getAnimationItem(GlxEffect transitionEffect); |
53 |
54 |
54 public slots: |
55 public slots: |
55 void itemSelected(const QModelIndex & index); |
56 void itemSelected(const QModelIndex & index); |
56 void setVisvalWindowIndex(); |
57 void setVisvalWindowIndex(); |
57 void scrollPositionChange (QPointF newPosition, Qt::Orientations importantDimensions); |
|
58 /* |
58 /* |
59 * This loads the docml and retrives the widgets from the |
59 * This loads the docml and retrives the widgets from the |
60 * docml corresponding to the present orentation |
60 * docml corresponding to the present orentation |
61 */ |
61 */ |
62 void loadGridView(Qt::Orientation orient); |
62 void loadGridView(Qt::Orientation orient); |
69 void indicateLongPress( HbAbstractViewItem *item, QPointF coords ); |
69 void indicateLongPress( HbAbstractViewItem *item, QPointF coords ); |
70 |
70 |
71 private: |
71 private: |
72 void addViewConnection(); |
72 void addViewConnection(); |
73 void removeViewConnection(); |
73 void removeViewConnection(); |
|
74 void resetItemTransform(); |
74 |
75 |
75 private: |
76 private: |
76 HbGridView *mGridView; |
77 HbGridView *mGridView; |
77 HbView *mView; |
78 HbView *mView; |
78 HbMainWindow *mWindow; //no ownership |
79 HbMainWindow *mWindow; //no ownership |
79 QAbstractItemModel *mModel ; |
80 QAbstractItemModel *mModel ; |
80 int mVisualIndex; //first item index of the page //To:Do remove later |
81 int mVisualIndex; //first item index of the page //To:Do remove later |
81 HbAbstractViewItem *mItem; |
82 HbAbstractViewItem *mItem; |
82 HbDocumentLoader *mDocLoader; //Docml loader to load the widgets from docml |
83 HbDocumentLoader *mDocLoader; //Docml loader to load the widgets from docml |
83 }; |
84 }; |
84 |
85 |
85 #endif /* GLXGRIDVIEW_H_ */ |
86 #endif /* GLXGRIDVIEW_H_ */ |