24 #ifndef TUNINGCURVEGRAPH_H
25 #define TUNINGCURVEGRAPH_H
27 #include <QGraphicsPathItem>
30 #include "../core/drawers/tuningcurvegraphdrawer.h"
56 virtual QSize
sizeHint() const override final {
return QSize(0, 400);}
75 #endif // TUNINGCURVEGRAPH_H
float mPressedX
The x coordinate where the mouse was pressed in first instance.
TuningCurveGraph(QWidget *parent)
Constructor, linking AutoScaledToKeyboardGraphicsView with the TuningCurveGraphDrawer.
The QGraphicsView to display the tuning curve and the inharmonicity.
void mouseMoveEvent(QMouseEvent *event) override
Function for handling mouse moves. Moving the mouse will continuously change the tuning curve by drag...
void handleMouseInteraction(double relX, double relY)
TuningCurveGraph::handleMouseInteraction.
void mouseReleaseEvent(QMouseEvent *event) override
Mouse release event to stop the change of the tuning curve.
virtual QSize minimumSizeHint() const overridefinal
virtual QSize sizeHint() const overridefinal
virtual ~TuningCurveGraph()
Empty virtual destructor.
bool mPressed
Is the mouse pressed?
An GraphicsViewAdaptorForQt keeping the same size as a KeyboardGraphicsView.
Class for drawing various tuning curves.
void mousePressEvent(QMouseEvent *event) override
Function handling a mouse click. The mouse press event is used to manually edit the tuning curve...