13 #ifndef __EXAMPLEVIEW_H__ 14 #define __EXAMPLEVIEW_H__ 25 enum class Grip : int;
45 void drawElements(QPainter& painter,
const QList<Element*>& el);
46 void setDropTarget(
const Element* el);
48 virtual void paintEvent(QPaintEvent*);
49 virtual void dragEnterEvent(QDragEnterEvent*);
50 virtual void dragLeaveEvent(QDragLeaveEvent*);
51 virtual void dragMoveEvent(QDragMoveEvent*);
52 virtual void wheelEvent(QWheelEvent*);
53 virtual void dropEvent(QDropEvent*);
54 virtual void mousePressEvent(QMouseEvent*);
55 void constraintCanvas(
int *dxx);
56 virtual QSize sizeHint()
const;
59 void noteClicked(
Note*);
66 virtual void layoutChanged();
67 virtual void dataChanged(
const QRectF&);
68 virtual void updateAll();
69 virtual void adjustCanvasPosition(
const Element* el,
bool playBack);
70 virtual void setScore(
Score*);
71 virtual void removeScore();
73 virtual void changeEditElement(
Element*);
74 virtual QCursor cursor()
const;
75 virtual void setCursor(
const QCursor&);
76 virtual void setDropRectangle(
const QRectF&);
77 virtual void cmdAddSlur(
Note* firstNote,
Note* lastNote);
78 virtual Element* elementNear(QPointF);
79 virtual void drawBackground(QPainter*,
const QRectF&)
const;
80 void dragExampleView(QMouseEvent* ev);
81 virtual const QRect
geometry()
const override {
return QFrame::geometry(); }
93 virtual void onTransition(QEvent* e);
97 : QEventTransition(c, QEvent::MouseMove), canvas(c) {}
QColor _fgColor
Definition: exampleview.h:35
ExampleView * canvas
Definition: exampleview.h:90
Base class of score layout elements.
Definition: element.h:158
QLineF dropAnchor
line to current anchor point during dragMove
Definition: exampleview.h:40
DragTransitionExampleView(ExampleView *c)
Definition: exampleview.h:96
QStateMachine * sm
Definition: exampleview.h:42
QPointF startMove
Definition: exampleview.h:43
QPixmap * _fgPixmap
Definition: exampleview.h:36
QTransform imatrix
Definition: exampleview.h:34
Definition: exampleview.h:88
Grip
Definition: element.h:43
Definition: aeolus.cpp:26
Graphic representation of a chord.
Definition: chord.h:55
virtual const QRect geometry() const override
Definition: exampleview.h:81
QRectF dropRectangle
current drop rectangle during dragMove
Definition: exampleview.h:39
Graphic representation of a note.
Definition: note.h:212
Definition: exampleview.h:31
Definition: mscoreview.h:32