22 #ifndef DOCKMODELAUNCHPOINT_H
23 #define DOCKMODELAUNCHPOINT_H
30 #include <QPropertyAnimation>
31 #include <QParallelAnimationGroup>
32 #include <QGraphicsSceneMouseEvent>
33 #include <QGestureEvent>
35 #include <QTextLayout>
62 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget);
81 void createSplashImage( QPixmap* img, OrientationEvent::Orientation imgOrientation);
88 void resize (
int width,
int height);
94 void positionAnimationValueChanged(
const QVariant& value);
98 static QPainter imagePainter;
99 static QPixmap *s_removeIcon, *s_removeIconHighlight;
100 static QPixmap *s_scrimPixmap;
101 static QPixmap* s_defaultSplash;
103 static QPixmap* defaultSplashImage();
104 static QPixmap* scrimImage();
108 void copyAndRotateImage(QPixmap* source, OrientationEvent::Orientation srcOrient,
109 QPixmap* destination, OrientationEvent::Orientation dstOrient, qreal scaleFactor);
112 int m_width, m_height;
115 QRect m_bounds, m_imageBounds;
116 QRect m_removeHitArea;
119 bool m_buttonHighlight;
120 bool m_buttonPressed;
124 bool m_hasScreenshot;
126 std::string m_splashImgPath;
127 QPixmap* m_splashImage;
128 QPixmap* m_appScreenShot;
129 OrientationEvent::Orientation m_screenShotOrientation;
130 OrientationEvent::Orientation m_orientation;
133 QTextLayout m_textLayout;
135 QPointer<QPropertyAnimation> m_positionAnimationPtr;