Mercurial > hg > svgui
diff widgets/Panner.h @ 189:5b7472db612b
* Add large chunks of context help in the optional status bar
* Add an extra overlay mode in which even the centre frame is disabled
* Fixes to FTP retrieval
author | Chris Cannam |
---|---|
date | Fri, 19 Jan 2007 13:13:14 +0000 |
parents | dd573e090eed |
children | c492902dba40 |
line wrap: on
line diff
--- a/widgets/Panner.h Fri Jan 12 21:52:56 2007 +0000 +++ b/widgets/Panner.h Fri Jan 19 13:13:14 2007 +0000 @@ -33,13 +33,6 @@ void getRectExtents(float &x0, float &y0, float &width, float &height); - virtual void mousePressEvent(QMouseEvent *e); - virtual void mouseDoubleClickEvent(QMouseEvent *e); - virtual void mouseMoveEvent(QMouseEvent *e); - virtual void mouseReleaseEvent(QMouseEvent *e); - virtual void wheelEvent(QWheelEvent *e); - virtual void paintEvent(QPaintEvent *e); - virtual QSize sizeHint() const; signals: @@ -65,6 +58,9 @@ */ void doubleClicked(); + void mouseEntered(); + void mouseLeft(); + public slots: /** * Set the extents of the panned rectangle within the overall @@ -102,6 +98,15 @@ void resetToDefault(); protected: + virtual void mousePressEvent(QMouseEvent *e); + virtual void mouseDoubleClickEvent(QMouseEvent *e); + virtual void mouseMoveEvent(QMouseEvent *e); + virtual void mouseReleaseEvent(QMouseEvent *e); + virtual void wheelEvent(QWheelEvent *e); + virtual void paintEvent(QPaintEvent *e); + virtual void enterEvent(QEvent *); + virtual void leaveEvent(QEvent *); + void normalise(); void emitAndUpdate();