19 #ifndef QCURVEWIDGET_H
20 #define QCURVEWIDGET_H
22 #include "HermiteCurve.h"
24 #include <GraphNode.hpp>
26 #include <QtGui/QWidget>
27 #include <QtGui/QCursor>
36 void visibleAll(
bool visibility);
37 void setActive(
int active);
39 virtual void mousePressEvent(QMouseEvent *event);
40 virtual void mouseReleaseEvent(QMouseEvent *event);
41 virtual void mouseMoveEvent(QMouseEvent *event);
42 virtual void paintEvent (QPaintEvent * event);
45 inline void drawCurve(QPainter& p, std::size_t active);
49 std::size_t curvesArraySize;
50 std::size_t activeCurve;
63 #endif // QCURVEWIDGET_H