1 #ifndef GRAPHAXISWIDGET_H
2 #define GRAPHAXISWIDGET_H
9 * The generic base class of all graph axes.
11 * Handles orientation, simple selections, and view area.
13 class GraphAxisWidget : public QWidget {
28 GraphAxisWidget(QWidget* parent = 0);
29 virtual ~GraphAxisWidget(){}
31 /* Is this axis part of the active selection */
34 void setSelectable(SelectionStyle selectable);
35 void setSelectionState(SelectionState* state);
37 void setOrientation(Orientation v);
39 virtual void mouseMoveEvent(QMouseEvent *e);
40 virtual void mousePressEvent(QMouseEvent *e);
41 virtual void mouseReleaseEvent(QMouseEvent *e);
44 /* The minimum and maximum values of this axis */
45 void setRange(qint64 min, qint64 max);
47 /* The currently visible range of values */
48 void setView(qint64 start, qint64 end);
51 void selectionChanged();
54 Orientation m_orientation;
56 /* The min/max value of this axis */
60 /* The highest and lowest currently visible value */
65 SelectionStyle m_selectable;
66 SelectionState* m_selectionState;
69 QPoint m_mousePressPosition;
70 qint64 m_mousePressValue;