#include <ScalePicker.h>
This class is used by Graph to catch events for the scales on its Plot. ScalePicker doesn't take any actions beyond emitting signals, which are then processed by Graph.
Signals | |
| void | axisDblClicked (int) |
| void | axisRightClicked (int) |
| void | axisTitleRightClicked (int) |
| void | clicked () |
| Emitted when the user clicks on one of the monitored axes. | |
| void | rightAxisTitleDblClicked () |
| void | topAxisTitleDblClicked () |
| void | xAxisTitleDblClicked () |
| void | yAxisTitleDblClicked () |
Public Member Functions | |
| QwtPlot * | plot () |
| Return my parent casted to QwtPlot. | |
| void | refresh () |
| ScalePicker (QwtPlot *plot) | |
| QRect | scaleRect (const QwtScaleWidget *) const |
| Returns the bounding rectangle of a scale without the title. | |
| QRect | scaleTicksRect (const QwtScaleWidget *scale) const |
| Returns the bounding rectangle of a scale excluding the title and the tick labels. | |
Private Member Functions | |
| bool | eventFilter (QObject *, QEvent *) |
| void | mouseClicked (const QwtScaleWidget *scale, const QPoint &pos) |
| void | mouseDblClicked (const QwtScaleWidget *, const QPoint &) |
| void | mouseRightClicked (const QwtScaleWidget *scale, const QPoint &pos) |
| ScalePicker::ScalePicker | ( | QwtPlot * | plot | ) |
| void ScalePicker::axisDblClicked | ( | int | ) | [signal] |
Emitted when the user double-clicks on an axis (but not its title). The argument specifies the axis' QwtScaleDraw::Alignment.
| void ScalePicker::axisRightClicked | ( | int | ) | [signal] |
Emitted when the user right-clicks on an axis (but not its title). The argument specifies the axis' QwtScaleDraw::Alignment.
| void ScalePicker::axisTitleRightClicked | ( | int | ) | [signal] |
Emitted when the user right-clicks on the title of an axis. The argument specifies the axis' QwtScaleDraw::Alignment.
| void ScalePicker::clicked | ( | ) | [signal] |
Emitted when the user clicks on one of the monitored axes.
| bool ScalePicker::eventFilter | ( | QObject * | object, | |
| QEvent * | e | |||
| ) | [private] |
| void ScalePicker::mouseClicked | ( | const QwtScaleWidget * | scale, | |
| const QPoint & | pos | |||
| ) | [private] |
| void ScalePicker::mouseDblClicked | ( | const QwtScaleWidget * | scale, | |
| const QPoint & | pos | |||
| ) | [private] |
| void ScalePicker::mouseRightClicked | ( | const QwtScaleWidget * | scale, | |
| const QPoint & | pos | |||
| ) | [private] |
| QwtPlot* ScalePicker::plot | ( | ) | [inline] |
Return my parent casted to QwtPlot.
| void ScalePicker::refresh | ( | ) |
Install myself as event filter for all axes of my parent. For every axis of plot(), add myself to the corresponding QwtScaleWidget.
| void ScalePicker::rightAxisTitleDblClicked | ( | ) | [signal] |
Emitted when the user double-clicks on an the right-axis title.
| QRect ScalePicker::scaleRect | ( | const QwtScaleWidget * | scale | ) | const |
Returns the bounding rectangle of a scale without the title.
| QRect ScalePicker::scaleTicksRect | ( | const QwtScaleWidget * | scale | ) | const |
Returns the bounding rectangle of a scale excluding the title and the tick labels.
| void ScalePicker::topAxisTitleDblClicked | ( | ) | [signal] |
Emitted when the user double-clicks on an the top-axis title.
| void ScalePicker::xAxisTitleDblClicked | ( | ) | [signal] |
Emitted when the user double-clicks on an the bottom-axis title.
| void ScalePicker::yAxisTitleDblClicked | ( | ) | [signal] |
Emitted when the user double-clicks on an the left-axis title.
1.5.3