Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
188:dd573e090eed | 189:5b7472db612b |
---|---|
31 void setThumbColour(QColor colour); | 31 void setThumbColour(QColor colour); |
32 void setAlpha(int backgroundAlpha, int thumbAlpha); | 32 void setAlpha(int backgroundAlpha, int thumbAlpha); |
33 | 33 |
34 void getRectExtents(float &x0, float &y0, float &width, float &height); | 34 void getRectExtents(float &x0, float &y0, float &width, float &height); |
35 | 35 |
36 virtual void mousePressEvent(QMouseEvent *e); | |
37 virtual void mouseDoubleClickEvent(QMouseEvent *e); | |
38 virtual void mouseMoveEvent(QMouseEvent *e); | |
39 virtual void mouseReleaseEvent(QMouseEvent *e); | |
40 virtual void wheelEvent(QWheelEvent *e); | |
41 virtual void paintEvent(QPaintEvent *e); | |
42 | |
43 virtual QSize sizeHint() const; | 36 virtual QSize sizeHint() const; |
44 | 37 |
45 signals: | 38 signals: |
46 /** | 39 /** |
47 * Emitted when the panned rectangle is dragged or otherwise | 40 * Emitted when the panned rectangle is dragged or otherwise |
62 /** | 55 /** |
63 * Emitted when the panner is double-clicked (for the "customer" | 56 * Emitted when the panner is double-clicked (for the "customer" |
64 * code to pop up a value editing dialog, for example). | 57 * code to pop up a value editing dialog, for example). |
65 */ | 58 */ |
66 void doubleClicked(); | 59 void doubleClicked(); |
60 | |
61 void mouseEntered(); | |
62 void mouseLeft(); | |
67 | 63 |
68 public slots: | 64 public slots: |
69 /** | 65 /** |
70 * Set the extents of the panned rectangle within the overall | 66 * Set the extents of the panned rectangle within the overall |
71 * panner widget. Coordinates are in the range 0 -> 1 in both axes, | 67 * panner widget. Coordinates are in the range 0 -> 1 in both axes, |
100 void setRectCentreY(float y); | 96 void setRectCentreY(float y); |
101 | 97 |
102 void resetToDefault(); | 98 void resetToDefault(); |
103 | 99 |
104 protected: | 100 protected: |
101 virtual void mousePressEvent(QMouseEvent *e); | |
102 virtual void mouseDoubleClickEvent(QMouseEvent *e); | |
103 virtual void mouseMoveEvent(QMouseEvent *e); | |
104 virtual void mouseReleaseEvent(QMouseEvent *e); | |
105 virtual void wheelEvent(QWheelEvent *e); | |
106 virtual void paintEvent(QPaintEvent *e); | |
107 virtual void enterEvent(QEvent *); | |
108 virtual void leaveEvent(QEvent *); | |
109 | |
105 void normalise(); | 110 void normalise(); |
106 void emitAndUpdate(); | 111 void emitAndUpdate(); |
107 | 112 |
108 float m_rectX; | 113 float m_rectX; |
109 float m_rectY; | 114 float m_rectY; |