96 //get the focused image from the model |
96 //get the focused image from the model |
97 QPixmap getFocusedImage(); |
97 QPixmap getFocusedImage(); |
98 //set all the zoom parameters as per the circumstances |
98 //set all the zoom parameters as per the circumstances |
99 void setZoomParams(); |
99 void setZoomParams(); |
100 |
100 |
|
101 bool isFocussedItemCorrupt(); |
101 //data members |
102 //data members |
102 private: |
103 private: |
|
104 //to be in sync with the model |
|
105 QAbstractItemModel *mModel; |
|
106 |
|
107 //view Z values |
|
108 //might push to layouts later |
|
109 int mMinZValue ; |
|
110 int mMaxZValue ; |
|
111 int mTimerId; |
|
112 |
|
113 //status flags |
|
114 //To check if the decode request has already been send or not |
|
115 bool mImageDecodeRequestSend; |
|
116 //To check if the pinch gesture is in progress to block any events to HbScrollArea |
|
117 bool mPinchGestureOngoing; |
|
118 //to check if decoded image is available |
|
119 bool mDecodedImageAvailable; |
|
120 //to check if the widget is actually in Foreground |
|
121 bool mZoomOngoing; |
|
122 |
103 //view widgets |
123 //view widgets |
104 QGraphicsPixmapItem *mZoomItem; //Item containing the pixmap |
124 QGraphicsPixmapItem *mZoomItem; //Item containing the pixmap |
105 QGraphicsWidget *mZoomWidget; //container :all scaling and transforms would be done on this widget |
125 QGraphicsWidget *mZoomWidget; //container :all scaling and transforms would be done on this widget |
106 HbIconItem* mBlackBackgroundItem; //for setting black background |
126 HbIconItem* mBlackBackgroundItem; //for setting black background |
107 |
127 |
108 //view Z values |
|
109 //might push to layouts later |
|
110 |
|
111 int mMinZValue ; |
|
112 int mMaxZValue ; |
|
113 |
|
114 |
|
115 //to be in sync with the model |
|
116 QAbstractItemModel *mModel; |
|
117 int mFocusIndex; |
128 int mFocusIndex; |
118 |
129 |
119 //size parameter |
130 //size parameter |
120 QSizeF mItemSize; // the actual pixmap size. Keep it updated with latest pixmap size |
131 QSizeF mItemSize; // the actual pixmap size. Keep it updated with latest pixmap size |
121 QSizeF mStepCurrentSize; //to save the size before gesture started |
132 QSizeF mStepCurrentSize; //to save the size before gesture started |
130 QPointF m_AnimRefPoint; |
141 QPointF m_AnimRefPoint; |
131 QTimeLine *m_AnimTimeLine; |
142 QTimeLine *m_AnimTimeLine; |
132 //for Decoder support |
143 //for Decoder support |
133 GlxImageDecoderWrapper* mImageDecoder; |
144 GlxImageDecoderWrapper* mImageDecoder; |
134 |
145 |
135 //status flags |
|
136 //To check if the decode request has already been send or not |
|
137 bool mImageDecodeRequestSend; |
|
138 //To check if the pinch gesture is in progress to block any events to HbScrollArea |
|
139 bool mPinchGestureOngoing; |
|
140 //to check if decoded image is available |
|
141 bool mDecodedImageAvailable; |
|
142 //to check if the widget is actually in Foreground |
|
143 bool mZoomOngoing; |
|
144 int mTimerId; |
|
145 |
|
146 }; |
146 }; |
147 #endif //GLXZOOMWIDGET_H |
147 #endif //GLXZOOMWIDGET_H |