.TH "QwtPlotPanner" 3 "Mon Aug 1 2011" "Version 5.2.2" "Qwt User's Guide" \" -*- nroff -*- .ad l .nh .SH NAME QwtPlotPanner \- .PP \fBQwtPlotPanner\fP provides panning of a plot canvas. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBQwtPanner\fP. .SS "Signals" .in +1c .ti -1c .RI "void \fBmoved\fP (int dx, int dy)" .br .ti -1c .RI "void \fBpanned\fP (int dx, int dy)" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBQwtPlotCanvas\fP * \fBcanvas\fP ()" .br .ti -1c .RI "const \fBQwtPlotCanvas\fP * \fBcanvas\fP () const " .br .ti -1c .RI "const QCursor \fBcursor\fP () const " .br .ti -1c .RI "virtual bool \fBeventFilter\fP (QObject *, QEvent *)" .br .ti -1c .RI "void \fBgetAbortKey\fP (int &key, int &state) const " .br .ti -1c .RI "void \fBgetMouseButton\fP (int &button, int &buttonState) const " .br .ti -1c .RI "bool \fBisAxisEnabled\fP (int axis) const " .br .ti -1c .RI "bool \fBisEnabled\fP () const " .br .ti -1c .RI "bool \fBisOrientationEnabled\fP (Qt::Orientation) const " .br .ti -1c .RI "Qt::Orientations \fBorientations\fP () const " .br .ti -1c .RI "\fBQwtPlot\fP * \fBplot\fP ()" .br .ti -1c .RI "const \fBQwtPlot\fP * \fBplot\fP () const " .br .ti -1c .RI "\fBQwtPlotPanner\fP (\fBQwtPlotCanvas\fP *)" .br .ti -1c .RI "void \fBsetAbortKey\fP (int key, int state=Qt::NoButton)" .br .ti -1c .RI "void \fBsetAxisEnabled\fP (int axis, bool on)" .br .ti -1c .RI "void \fBsetCursor\fP (const QCursor &)" .br .ti -1c .RI "void \fBsetEnabled\fP (bool)" .br .ti -1c .RI "void \fBsetMouseButton\fP (int button, int buttonState=Qt::NoButton)" .br .ti -1c .RI "void \fBsetOrientations\fP (Qt::Orientations)" .br .ti -1c .RI "virtual \fB~QwtPlotPanner\fP ()" .br .in -1c .SS "Protected Slots" .in +1c .ti -1c .RI "virtual void \fBmoveCanvas\fP (int dx, int dy)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual void \fBpaintEvent\fP (QPaintEvent *)" .br .ti -1c .RI "virtual void \fBwidgetKeyPressEvent\fP (QKeyEvent *)" .br .ti -1c .RI "virtual void \fBwidgetKeyReleaseEvent\fP (QKeyEvent *)" .br .ti -1c .RI "virtual void \fBwidgetMouseMoveEvent\fP (QMouseEvent *)" .br .ti -1c .RI "virtual void \fBwidgetMousePressEvent\fP (QMouseEvent *)" .br .ti -1c .RI "virtual void \fBwidgetMouseReleaseEvent\fP (QMouseEvent *)" .br .in -1c .SH "Detailed Description" .PP \fBQwtPlotPanner\fP provides panning of a plot canvas. \fBQwtPlotPanner\fP is a panner for a \fBQwtPlotCanvas\fP, that adjusts the scales of the axes after dropping the canvas on its new position. .PP Together with \fBQwtPlotZoomer\fP and \fBQwtPlotMagnifier\fP powerful ways of navigating on a \fBQwtPlot\fP widget can be implemented easily. .PP \fBNote:\fP .RS 4 The axes are not updated, while dragging the canvas .RE .PP \fBSee also:\fP .RS 4 \fBQwtPlotZoomer\fP, \fBQwtPlotMagnifier\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "QwtPlotPanner::QwtPlotPanner (\fBQwtPlotCanvas\fP *canvas)\fC [explicit]\fP" .PP Create a plot panner. The panner is enabled for all axes .PP \fBParameters:\fP .RS 4 \fIcanvas\fP Plot canvas to pan, also the parent object .RE .PP \fBSee also:\fP .RS 4 \fBsetAxisEnabled()\fP .RE .PP .SS "QwtPlotPanner::~QwtPlotPanner ()\fC [virtual]\fP" .PP Destructor. .SH "Member Function Documentation" .PP .SS "\fBQwtPlotCanvas\fP * QwtPlotPanner::canvas ()" .PP Return observed plot canvas. .SS "const \fBQwtPlotCanvas\fP * QwtPlotPanner::canvas () const" .PP Return Observed plot canvas. .SS "const QCursor QwtPanner::cursor () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 Cursor that is active while panning .RE .PP \fBSee also:\fP .RS 4 \fBsetCursor()\fP .RE .PP .SS "bool QwtPanner::eventFilter (QObject *o, QEvent *e)\fC [virtual, inherited]\fP" .PP Event filter. When \fBisEnabled()\fP the mouse events of the observed widget are filtered. .PP \fBSee also:\fP .RS 4 \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseMoveEvent()\fP .RE .PP .SS "void QwtPanner::getAbortKey (int &key, int &state) const\fC [inherited]\fP" .PP Get the abort key. .SS "void QwtPanner::getMouseButton (int &button, int &buttonState) const\fC [inherited]\fP" .PP Get the mouse button. .SS "bool QwtPlotPanner::isAxisEnabled (intaxis) const"Test if an axis is enabled .PP \fBParameters:\fP .RS 4 \fIaxis\fP Axis, see \fBQwtPlot::Axis\fP .RE .PP \fBReturns:\fP .RS 4 True, if the axis is enabled .RE .PP \fBSee also:\fP .RS 4 \fBsetAxisEnabled()\fP, \fBmoveCanvas()\fP .RE .PP .SS "bool QwtPanner::isEnabled () const\fC [inherited]\fP"\fBReturns:\fP .RS 4 true when enabled, false otherwise .RE .PP \fBSee also:\fP .RS 4 \fBsetEnabled\fP, \fBeventFilter()\fP .RE .PP .SS "bool QwtPanner::isOrientationEnabled (Qt::Orientationo) const\fC [inherited]\fP"Return true if a orientatio is enabled .PP \fBSee also:\fP .RS 4 \fBorientations()\fP, \fBsetOrientations()\fP .RE .PP .SS "void QwtPlotPanner::moveCanvas (intdx, intdy)\fC [protected, virtual, slot]\fP"Adjust the enabled axes according to dx/dy .PP \fBParameters:\fP .RS 4 \fIdx\fP Pixel offset in x direction .br \fIdy\fP Pixel offset in y direction .RE .PP \fBSee also:\fP .RS 4 \fBQwtPanner::panned()\fP .RE .PP .SS "void QwtPanner::moved (intdx, intdy)\fC [signal, inherited]\fP"Signal emitted, while the widget moved, but panning is not finished. .PP \fBParameters:\fP .RS 4 \fIdx\fP Offset in horizontal direction .br \fIdy\fP Offset in vertical direction .RE .PP .SS "Qt::Orientations QwtPanner::orientations () const\fC [inherited]\fP" .PP Return the orientation, where paning is enabled. .SS "void QwtPanner::paintEvent (QPaintEvent *pe)\fC [protected, virtual, inherited]\fP" .PP Paint event. Repaint the grabbed pixmap on its current position and fill the empty spaces by the background of the parent widget. .PP \fBParameters:\fP .RS 4 \fIpe\fP Paint event .RE .PP .SS "void QwtPanner::panned (intdx, intdy)\fC [signal, inherited]\fP"Signal emitted, when panning is done .PP \fBParameters:\fP .RS 4 \fIdx\fP Offset in horizontal direction .br \fIdy\fP Offset in vertical direction .RE .PP .SS "const \fBQwtPlot\fP * QwtPlotPanner::plot () const" .PP Return plot widget, containing the observed plot canvas. .SS "\fBQwtPlot\fP * QwtPlotPanner::plot ()" .PP Return plot widget, containing the observed plot canvas. .SS "void QwtPanner::setAbortKey (intkey, intstate = \fCQt::NoButton\fP)\fC [inherited]\fP"Change the abort key The defaults are Qt::Key_Escape and Qt::NoButton .PP \fBParameters:\fP .RS 4 \fIkey\fP Key ( See Qt::Keycode ) .br \fIstate\fP State .RE .PP .SS "void QwtPlotPanner::setAxisEnabled (intaxis, boolon)" .PP En/Disable an axis. Axes that are enabled will be synchronized to the result of panning. All other axes will remain unchanged. .PP \fBParameters:\fP .RS 4 \fIaxis\fP Axis, see \fBQwtPlot::Axis\fP .br \fIon\fP On/Off .RE .PP \fBSee also:\fP .RS 4 \fBisAxisEnabled()\fP, \fBmoveCanvas()\fP .RE .PP .SS "void QwtPanner::setCursor (const QCursor &cursor)\fC [inherited]\fP"Change the cursor, that is active while panning The default is the cursor of the parent widget. .PP \fBParameters:\fP .RS 4 \fIcursor\fP New cursor .RE .PP \fBSee also:\fP .RS 4 \fBsetCursor()\fP .RE .PP .SS "void QwtPanner::setEnabled (boolon)\fC [inherited]\fP" .PP En/disable the panner. When enabled is true an event filter is installed for the observed widget, otherwise the event filter is removed. .PP \fBParameters:\fP .RS 4 \fIon\fP true or false .RE .PP \fBSee also:\fP .RS 4 \fBisEnabled()\fP, \fBeventFilter()\fP .RE .PP .SS "void QwtPanner::setMouseButton (intbutton, intbuttonState = \fCQt::NoButton\fP)\fC [inherited]\fP"Change the mouse button The defaults are Qt::LeftButton and Qt::NoButton .SS "void QwtPanner::setOrientations (Qt::Orientationso)\fC [inherited]\fP"Set the orientations, where panning is enabled The default value is in both directions: Qt::Horizontal | Qt::Vertical .PP /param o Orientation .SS "void QwtPanner::widgetKeyPressEvent (QKeyEvent *ke)\fC [protected, virtual, inherited]\fP"Handle a key press event for the observed widget. .PP \fBParameters:\fP .RS 4 \fIke\fP Key event .RE .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "void QwtPanner::widgetKeyReleaseEvent (QKeyEvent *)\fC [protected, virtual, inherited]\fP"Handle a key release event for the observed widget. .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetKeyReleaseEvent()\fP .RE .PP .SS "void QwtPanner::widgetMouseMoveEvent (QMouseEvent *me)\fC [protected, virtual, inherited]\fP"Handle a mouse move event for the observed widget. .PP \fBParameters:\fP .RS 4 \fIme\fP Mouse event .RE .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP .RE .PP .SS "void QwtPanner::widgetMousePressEvent (QMouseEvent *me)\fC [protected, virtual, inherited]\fP"Handle a mouse press event for the observed widget. .PP \fBParameters:\fP .RS 4 \fIme\fP Mouse event .RE .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseMoveEvent()\fP, .RE .PP .SS "void QwtPanner::widgetMouseReleaseEvent (QMouseEvent *me)\fC [protected, virtual, inherited]\fP"Handle a mouse release event for the observed widget. .PP \fBParameters:\fP .RS 4 \fIme\fP Mouse event .RE .PP \fBSee also:\fP .RS 4 \fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseMoveEvent()\fP, .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Qwt User's Guide from the source code.