#include <DataPickerTool.h>
Public Types | |
enum | Mode { Display, Move, Remove } |
enum | MoveMode { Free, Vertical, Horizontal } |
Signals | |
void | selected (QwtPlotCurve *, int) |
Emitted whenever a new data point has been selected. | |
void | statusText (const QString &) |
Public Member Functions | |
void | copySelection () |
void | cutSelection () |
DataPickerTool (Graph *graph, ApplicationWindow *app, Mode mode, const QObject *status_target=NULL, const char *status_slot="") | |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
int | findClosestPoint (QwtPlotCurve *c, double x, bool up) |
Searches the index of the closest point to the given x coordinate. | |
bool | keyEventFilter (QKeyEvent *ke) |
void | pasteSelection () |
void | removePoint () |
virtual int | rtti () const |
QwtPlotCurve * | selectedCurve () const |
void | selectTableRow () |
virtual | ~DataPickerTool () |
Protected Member Functions | |
virtual void | append (const QPoint &point) |
virtual bool | end (bool ok) |
virtual void | move (const QPoint &point) |
void | moveBy (int dx, int dy) |
void | movePoint (const QPoint &cursor) |
void | setSelection (QwtPlotCurve *curve, int point_index) |
Private Attributes | |
ApplicationWindow * | d_app |
Mode | d_mode |
MoveMode | d_move_mode |
QPoint | d_restricted_move_pos |
QwtPlotCurve * | d_selected_curve |
int | d_selected_point |
QwtPlotMarker | d_selection_marker |
enum DataPickerTool::Mode |
DataPickerTool::DataPickerTool | ( | Graph * | graph, | |
ApplicationWindow * | app, | |||
Mode | mode, | |||
const QObject * | status_target = NULL , |
|||
const char * | status_slot = "" | |||
) |
DataPickerTool::~DataPickerTool | ( | ) | [virtual] |
void DataPickerTool::append | ( | const QPoint & | point | ) | [protected, virtual] |
void DataPickerTool::copySelection | ( | ) |
void DataPickerTool::cutSelection | ( | ) |
bool DataPickerTool::end | ( | bool | ok | ) | [protected, virtual] |
bool DataPickerTool::eventFilter | ( | QObject * | obj, | |
QEvent * | event | |||
) | [virtual] |
int DataPickerTool::findClosestPoint | ( | QwtPlotCurve * | c, | |
double | x, | |||
bool | up | |||
) |
Searches the index of the closest point to the given x coordinate.
bool DataPickerTool::keyEventFilter | ( | QKeyEvent * | ke | ) |
void DataPickerTool::move | ( | const QPoint & | point | ) | [protected, virtual] |
void DataPickerTool::moveBy | ( | int | dx, | |
int | dy | |||
) | [protected] |
void DataPickerTool::movePoint | ( | const QPoint & | cursor | ) | [protected] |
void DataPickerTool::pasteSelection | ( | ) |
void DataPickerTool::removePoint | ( | ) |
virtual int DataPickerTool::rtti | ( | ) | const [inline, virtual] |
Reimplemented from PlotToolInterface.
void DataPickerTool::selected | ( | QwtPlotCurve * | , | |
int | ||||
) | [signal] |
Emitted whenever a new data point has been selected.
QwtPlotCurve* DataPickerTool::selectedCurve | ( | ) | const [inline] |
void DataPickerTool::selectTableRow | ( | ) |
void DataPickerTool::setSelection | ( | QwtPlotCurve * | curve, | |
int | point_index | |||
) | [protected] |
void DataPickerTool::statusText | ( | const QString & | ) | [signal] |
Emitted whenever a new message should be presented to the user.
You don't have to connect to this signal if you alreay specified a reciever during initialization.
ApplicationWindow* DataPickerTool::d_app [private] |
Mode DataPickerTool::d_mode [private] |
MoveMode DataPickerTool::d_move_mode [private] |
QPoint DataPickerTool::d_restricted_move_pos [private] |
QwtPlotCurve* DataPickerTool::d_selected_curve [private] |
int DataPickerTool::d_selected_point [private] |
QwtPlotMarker DataPickerTool::d_selection_marker [private] |