2 #include <Scenario/Document/Event/ExecutionStatus.hpp>
3 #include <Scenario/Document/ScenarioDocument/ScenarioDocumentViewConstants.hpp>
5 #include <score/model/ColorInterpolator.hpp>
7 #include <QGraphicsItem>
10 #include <score_plugin_scenario_export.h>
14 class QGraphicsSceneDragDropEvent;
15 class QGraphicsSceneMouseEvent;
18 class QStyleOptionGraphicsItem;
28 ,
public QGraphicsItem
31 Q_INTERFACES(QGraphicsItem)
33 static const constexpr qreal fullRadius = 6.;
34 static const constexpr qreal pointRadius = 3.5;
35 static const constexpr qreal notDilated = 1.;
36 static const constexpr qreal dilated = 1.5;
41 static const constexpr
int Type = ItemType::State;
42 int type()
const final override {
return Type; }
46 QRectF boundingRect()
const override;
48 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
51 void setContainMessage(
bool);
52 void setContainProcess(
bool);
53 void setSelected(
bool arg);
54 void setStatus(ExecutionStatus);
55 void disableOverlay();
58 void dropReceived(
const QMimeData& arg_1)
59 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, dropReceived, arg_1)
60 void startCreateMode() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, startCreateMode)
61 void startCreateGraphalMode()
62 E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, startCreateGraphalMode)
63 void startCreateSequence() E_SIGNAL(SCORE_PLUGIN_SCENARIO_EXPORT, startCreateSequence)
66 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
67 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
68 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
69 void hoverEnterEvent(QGraphicsSceneHoverEvent* event)
override;
70 void hoverLeaveEvent(QGraphicsSceneHoverEvent* event)
override;
71 void dragEnterEvent(QGraphicsSceneDragDropEvent* event)
override;
72 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event)
override;
73 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
76 void setDilatation(
bool);
84 bool m_containMessage : 1;
85 bool m_containProcess : 1;
88 bool m_hasOverlay : 1;
Definition: StatePresenter.hpp:23
Definition: StateView.hpp:29
Definition: ColorInterpolator.hpp:9
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: ExecutionStatus.hpp:33
Definition: StateMenuOverlay.hpp:211