2 #include <Process/LayerView.hpp>
4 #include <Midi/MidiProcess.hpp>
7 #include <QPainterPath>
18 View(QGraphicsItem* parent);
21 double defaultWidth()
const noexcept {
return m_defaultW; }
22 void setDefaultWidth(
double w);
24 void setRange(
int,
int);
25 std::pair<int, int>
range()
const {
return {m_min, m_max}; }
26 NoteData noteAtPos(QPointF point)
const;
27 int visibleCount()
const;
30 void deleteRequested() W_SIGNAL(deleteRequested);
34 void paint_impl(QPainter*)
const override;
35 void heightChanged(qreal h)
override;
36 void widthChanged(qreal w)
override;
37 void mousePressEvent(QGraphicsSceneMouseEvent*)
override;
38 void mouseMoveEvent(QGraphicsSceneMouseEvent*)
override;
39 void mouseReleaseEvent(QGraphicsSceneMouseEvent*)
override;
40 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent*)
override;
41 void keyPressEvent(QKeyEvent*)
override;
42 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
44 void updateBackground(
double height);
46 QPainterPath m_selectArea;
48 int m_min{0}, m_max{127};
53 mutable std::vector<QPainter::PixmapFragment> m_fragmentCache;
Definition: MidiView.hpp:15
Definition: LayerView.hpp:21
Definition: MidiNote.hpp:11
Definition: LFO_v2.hpp:68