equal
deleted
inserted
replaced
47 OpeningAnimationFlip, |
47 OpeningAnimationFlip, |
48 OpeningAnimationZoomIn, |
48 OpeningAnimationZoomIn, |
49 OpeningAnimationZoomOver |
49 OpeningAnimationZoomOver |
50 }; |
50 }; |
51 |
51 |
52 explicit HgMediaWallRenderer(HgMediaWallDataProvider* provider); |
52 explicit HgMediaWallRenderer(HgMediaWallDataProvider* provider, |
|
53 Qt::Orientation orientation, bool coverflowMode); |
53 |
54 |
54 virtual ~HgMediaWallRenderer(); |
55 virtual ~HgMediaWallRenderer(); |
55 |
56 |
56 void setCameraDistance(qreal distance); |
57 void setCameraDistance(qreal distance); |
57 qreal getCameraDistance() const; |
58 qreal getCameraDistance() const; |
112 bool initialized() const; |
113 bool initialized() const; |
113 |
114 |
114 HgQuadRenderer* getRenderer(); |
115 HgQuadRenderer* getRenderer(); |
115 |
116 |
116 bool getItemPoints(int index, QPolygonF& points) const; |
117 bool getItemPoints(int index, QPolygonF& points) const; |
117 |
118 |
118 QList<HgQuad*> getVisibleQuads() const; |
119 QList<HgQuad*> getVisibleQuads() const; |
|
120 |
|
121 void setFrontItemPosition(const QPointF& position); |
|
122 QPointF frontItemPosition() const; |
119 |
123 |
120 signals: |
124 signals: |
121 void renderingNeeded(); |
125 void renderingNeeded(); |
122 void itemOpened(int index); |
126 void itemOpened(int index); |
123 void itemClosed(int index); |
127 void itemClosed(int index); |
187 void setupGridColumn(qreal posX, int itemIndex, int& quadIndex); |
191 void setupGridColumn(qreal posX, int itemIndex, int& quadIndex); |
188 void setupDefaultQuad(const QVector3D& pos, int itemIndex, bool reflectionsEnabled, int& quadIndex); |
192 void setupDefaultQuad(const QVector3D& pos, int itemIndex, bool reflectionsEnabled, int& quadIndex); |
189 void setupIndicator(HgQuad* parent, |
193 void setupIndicator(HgQuad* parent, |
190 HgQuad* indicator, const HgImage* indicatorImage, int itemIndex); |
194 HgQuad* indicator, const HgImage* indicatorImage, int itemIndex); |
191 bool initializeRenderer(QPainter* painter); |
195 bool initializeRenderer(QPainter* painter); |
|
196 |
192 |
197 |
193 protected: |
198 protected: |
194 |
199 |
195 enum ItemState |
200 enum ItemState |
196 { |
201 { |
260 int mInsertEnd; |
265 int mInsertEnd; |
261 int mColumnCount; |
266 int mColumnCount; |
262 |
267 |
263 ItemState mOpenedItemState; |
268 ItemState mOpenedItemState; |
264 |
269 |
|
270 QPointF mFrontItemPosition; |
|
271 bool mFrontItemPositionSet; |
|
272 |
265 private: |
273 private: |
266 Q_DISABLE_COPY(HgMediaWallRenderer) |
274 Q_DISABLE_COPY(HgMediaWallRenderer) |
267 }; |
275 }; |
268 |
276 |
269 #endif |
277 #endif |