53 void itemSelected(const QModelIndex & index); |
55 void itemSelected(const QModelIndex & index); |
54 void scrollingEnded(); |
56 void scrollingEnded(); |
55 void scrollingStarted(); |
57 void scrollingStarted(); |
56 void orientationchanged(Qt::Orientation orient); |
58 void orientationchanged(Qt::Orientation orient); |
57 void visibleIndexChanged(const QModelIndex& current, const QModelIndex& previous); |
59 void visibleIndexChanged(const QModelIndex& current, const QModelIndex& previous); |
|
60 void stateChanged(int state); |
|
61 //show the marked item count |
|
62 void showMarkedItemCount(); |
|
63 //show item count in the grid |
|
64 void showItemCount(); |
|
65 //clear all the model connection |
|
66 void clearCurrentModel(); |
|
67 //add the connection to the model |
|
68 void initializeNewModel(); |
|
69 void showAlbumTitle(QString aTitle); |
|
70 void populated(); |
58 |
71 |
59 protected : |
72 protected : |
60 QVariant itemChange (GraphicsItemChange change, const QVariant &value) ; |
73 QVariant itemChange (GraphicsItemChange change, const QVariant &value) ; |
61 |
74 |
62 private slots: |
75 private slots: |
63 void indicateLongPress(const QModelIndex& index, QPointF coords); |
76 void indicateLongPress(const QModelIndex& index, QPointF coords); |
64 void uiButtonClicked(bool checked); |
77 void uiButtonClicked(bool checked); |
|
78 void cameraButtonClicked(bool checked); |
65 |
79 |
66 private: |
80 private: |
67 void addViewConnection(); |
81 void addViewConnection(); |
68 void removeViewConnection(); |
82 void removeViewConnection(); |
69 void hideorshowitems(Qt::Orientation orient); |
83 void hideorshowitems(Qt::Orientation orient); |
70 void scrolltofocus(); |
84 void scrolltofocus(); |
71 void loadGridView(); |
85 void loadGridView(); |
72 |
86 void showHbItems(); |
|
87 int getSubState(); |
|
88 void showNoImageString(); |
|
89 |
73 HbMainWindow *mWindow; // no ownership |
90 HbMainWindow *mWindow; // no ownership |
74 QAbstractItemModel *mModel ; |
91 QAbstractItemModel *mModel ; |
75 HgWidget *mWidget; // HG Grid Widget |
92 HgWidget *mWidget; // HG Grid Widget |
76 QItemSelectionModel *mSelectionModel; // Selected items model |
93 QItemSelectionModel *mSelectionModel; // Selected items model |
77 GlxModelWrapper *mModelWrapper; // Temp Model Wrapper, so That Role Change not a problem |
94 GlxModelWrapper *mModelWrapper; // Temp Model Wrapper, so That Role Change not a problem |
78 HbPushButton *mUiOnButton; |
95 HbPushButton *mUiOnButton; |
|
96 HbPushButton *mCameraButton; // Camera Button, when item count is zero |
79 bool mScrolling; |
97 bool mScrolling; |
80 HbIconItem *mIconItem; |
98 HbIconItem *mIconItem; |
|
99 HbCheckBox *mMarkCheckBox; // Mark All checkbox |
|
100 HbLabel *mCountItem; // Item count of the grid |
|
101 HbLabel *mMainLabel; |
|
102 HbLabel *mCountLabel; // Marked item count |
|
103 HbLabel *mZeroItemLabel; // zero itemcount |
|
104 HbLabel *mAlbumName; |
81 }; |
105 }; |
82 |
106 |
83 #endif /* GLXGRIDVIEW_H_ */ |
107 #endif /* GLXGRIDVIEW_H_ */ |