50 #ifndef QT_SLIDE_WINDOW_
51 #define QT_SLIDE_WINDOW_
62 #include <QGraphicsProxyWidget>
63 #include <QPropertyAnimation>
72 class QGraphicsItemAnimation;
92 QtSlideWindow (QString _name = 0, QGraphicsItem *_parent = 0);
95 void updateGeometry ();
98 void attachWidget (QWidget *_m);
101 void detachWidget ();
105 void saveState (QSettings &_settings);
108 void restoreState (QSettings &_settings);
111 void updateParentGeometry();
116 virtual void paintWindowFrame(QPainter *_painter,
const QStyleOptionGraphicsItem *_option, QWidget *_widget = 0);
119 virtual bool windowFrameEvent(QEvent *_e);
122 virtual Qt::WindowFrameSection windowFrameSectionAt(
const QPointF &_pos)
const;
125 virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *_event);
126 virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event);
129 virtual void resizeEvent (QGraphicsSceneResizeEvent *_event);
130 virtual void moveEvent (QGraphicsSceneMoveEvent *_event);
134 void detachPressed ();
137 void dialogClosed ();
140 void autohidePressed ();
149 void animationFinished();
152 void startSlideDownAnimation();
160 QWidget *mainWidget_;
179 QPropertyAnimation* animation_;
190 #endif // QT_SLIDE_WINDOW_ defined