2 #include "ExecutionStatus.hpp"
4 #include <Scenario/Document/Event/ConditionView.hpp>
5 #include <Scenario/Document/ScenarioDocument/ScenarioDocumentViewConstants.hpp>
6 #include <Scenario/Document/VerticalExtent.hpp>
8 #include <score/model/ColorInterpolator.hpp>
9 #include <score/model/ColorReference.hpp>
10 #include <score/widgets/MimeData.hpp>
12 #include <QGraphicsItem>
17 #include <score_plugin_scenario_export.h>
20 class QGraphicsSceneDragDropEvent;
21 class QGraphicsSceneHoverEvent;
22 class QGraphicsSceneMouseEvent;
25 class QStyleOptionGraphicsItem;
34 ,
public QGraphicsItem
37 Q_INTERFACES(QGraphicsItem)
43 static const constexpr
int Type = ItemType::Event;
44 int type()
const final override {
return Type; }
48 QRectF boundingRect()
const override {
return {-1, 0., 6, m_height}; }
49 void setStatus(ExecutionStatus);
51 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
54 void setSelected(
bool selected);
55 bool isSelected()
const;
57 void setCondition(
const QString& cond);
58 bool hasCondition()
const;
59 ConditionView& conditionItem() noexcept {
return m_conditionItem; }
64 void changeToolTip(
const QString&);
67 void eventHoverEnter() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, eventHoverEnter)
68 void eventHoverLeave() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, eventHoverLeave)
70 void dropReceived(
const QPointF& pos,
const QMimeData& arg_2)
71 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, dropReceived, pos, arg_2)
74 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
75 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
76 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
78 void hoverEnterEvent(QGraphicsSceneHoverEvent* h)
override;
79 void hoverLeaveEvent(QGraphicsSceneHoverEvent* h)
override;
81 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
Definition: ConditionView.hpp:21
Definition: EventPresenter.hpp:24
Definition: EventView.hpp:35
Definition: ColorInterpolator.hpp:9
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
The VerticalExtent struct.
Definition: VerticalExtent.hpp:20
A reference to a color. Used for skinning.
Definition: ColorReference.hpp:21