22 ,
public Nano::Observer
28 void setData(
const std::shared_ptr<AudioFile>& data);
29 void setFrontColors(
bool);
30 void setTempoRatio(
double);
31 void recompute(ZoomRatio ratio);
32 void recompute()
const;
34 void on_finishedDecoding();
37 void paint_impl(QPainter*)
const override;
38 void mousePressEvent(QGraphicsSceneMouseEvent*)
override;
39 void dragEnterEvent(QGraphicsSceneDragDropEvent* event)
override;
40 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event)
override;
41 void dragMoveEvent(QGraphicsSceneDragDropEvent* event)
override;
42 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
44 void heightChanged(qreal)
override;
45 void widthChanged(qreal)
override;
47 void scrollValueChanged(
int);
51 std::shared_ptr<AudioFile> m_data;
56 double m_tempoRatio{1.};
58 QVector<QImage*> m_images;
64 bool m_frontColors{
true};
65 mutable bool m_recomputed{
false};
66 mutable bool m_renderAll{
true};