26 Panner(QWidget *parent = 0);
32 void setAlpha(
int backgroundAlpha,
int thumbAlpha);
42 void getRectExtents(
float &x0,
float &y0,
float &width,
float &height);
78 void setRectExtents(
float x0,
float y0,
float width,
float height);
virtual void mousePressEvent(QMouseEvent *e)
virtual void leaveEvent(QEvent *)
void getRectExtents(float &x0, float &y0, float &width, float &height)
Panner(QWidget *parent=0)
virtual QSize sizeHint() const
void scroll(bool up)
Move up (if up is true) or down a bit.
void setScrollUnit(float unit)
Set the amount the scroll() function or mouse wheel movement makes the panner rectangle move by.
virtual void mouseDoubleClickEvent(QMouseEvent *e)
void setRectWidth(float width)
Set the width of the panned rectangle as a fraction (0 -> 1) of that of the whole panner widget.
virtual void enterEvent(QEvent *)
void setRectHeight(float height)
Set the height of the panned rectangle as a fraction (0 -> 1) of that of the whole panner widget.
void setThumbColour(QColor colour)
void setRectCentreY(float y)
Set the location of the centre of the panned rectangle on the y axis, as a proportion (0 -> 1) of the...
virtual void mouseReleaseEvent(QMouseEvent *e)
virtual void wheelEvent(QWheelEvent *e)
void rectExtentsChanged(float, float, float, float)
Emitted when the panned rectangle is dragged or otherwise moved.
void doubleClicked()
Emitted when the panner is double-clicked (for the "customer" code to pop up a value editing dialog,...
virtual void mouseMoveEvent(QMouseEvent *e)
void setRectCentreX(float x)
Set the location of the centre of the panned rectangle on the x axis, as a proportion (0 -> 1) of the...
void setDefaultRectCentre(float, float)
void setRectExtents(float x0, float y0, float width, float height)
Set the extents of the panned rectangle within the overall panner widget.
void rectCentreMoved(float, float)
Emitted when the rectangle is dragged or otherwise moved (as well as extentsChanged).
virtual void paintEvent(QPaintEvent *e)
void setAlpha(int backgroundAlpha, int thumbAlpha)