2 #include <score/widgets/MimeData.hpp>
4 #include <QGraphicsItem>
5 #include <QGraphicsSceneDragDropEvent>
8 #include <score_lib_process_export.h>
13 class QStyleOptionGraphicsItem;
20 ,
public QGraphicsItem
23 Q_INTERFACES(QGraphicsItem)
29 QRectF boundingRect()
const final override;
30 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
33 void setHeight(qreal height) noexcept;
34 qreal height()
const noexcept {
return m_height; }
36 void setWidth(qreal width) noexcept;
37 qreal width()
const noexcept {
return m_width; }
39 virtual QPixmap pixmap() noexcept;
41 void dragEnterEvent(QGraphicsSceneDragDropEvent* event)
override;
42 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event)
override;
43 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
45 void clearPressed() E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, clearPressed)
47 void escPressed() E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, escPressed)
49 void pressed(QPointF arg_1) E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, pressed, arg_1)
50 void released(QPointF arg_1) E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, released, arg_1)
51 void moved(QPointF arg_1) E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, moved, arg_1)
52 void doubleClicked(QPointF arg_1)
53 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, doubleClicked, arg_1)
56 void askContextMenu(
const QPoint& arg_1,
const QPointF& arg_2)
57 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, askContextMenu, arg_1, arg_2)
58 void dropReceived(
const QPointF& pos,
const QMimeData& arg_2)
59 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, dropReceived, pos, arg_2)
60 void presetDropReceived(
const QPointF& pos,
const QMimeData& arg_2)
61 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, presetDropReceived, pos, arg_2)
63 void keyPressed(
int arg_1) E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, keyPressed, arg_1)
64 void keyReleased(
int arg_1) E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, keyReleased, arg_1)
67 void dragEnter(
const QPointF& pos,
const QMimeData& arg_2)
68 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, dragEnter, pos, arg_2)
69 void dragMove(
const QPointF& pos,
const QMimeData& arg_2)
70 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, dragMove, pos, arg_2)
71 void dragLeave(
const QPointF& pos,
const QMimeData& arg_2)
72 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, dragLeave, pos, arg_2)
75 virtual void paint_impl(QPainter*)
const = 0;
76 virtual void heightChanged(qreal);
77 virtual void widthChanged(qreal);
79 void hoverEnterEvent(QGraphicsSceneHoverEvent* event)
override;
80 void hoverLeaveEvent(QGraphicsSceneHoverEvent* event)
override;
82 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
83 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
84 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
86 void contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
override;
91 bool m_dropPresetOverlay{
false};
94 class SCORE_LIB_PROCESS_EXPORT
MiniLayer :
public QGraphicsItem
96 Q_INTERFACES(QGraphicsItem)
102 QRectF boundingRect()
const final override;
103 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
106 void setHeight(qreal height);
107 qreal height()
const;
109 void setWidth(qreal width);
112 void setZoomRatio(qreal);
116 virtual void paint_impl(QPainter*)
const = 0;
Definition: LayerView.hpp:21
Definition: LayerView.hpp:95
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324