2 #include <Process/ZoomHelper.hpp>
4 #include <score/graphics/RectItem.hpp>
22 class LayerContextMenuManager;
23 class GraphicsShapeItem;
33 void setSize(
const QSizeF& r);
34 void setWidth(qreal r);
35 void setHeight(qreal r);
36 QSizeF size()
const noexcept;
39 QRectF boundingRect()
const override;
41 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
44 void hoverEnterEvent(QGraphicsSceneHoverEvent* event)
override;
45 void hoverLeaveEvent(QGraphicsSceneHoverEvent* event)
override;
46 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
47 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
48 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
70 Process::LayerPresenter* mainPresenter() const noexcept;
71 Process::LayerView* mainView() const noexcept;
75 Process::LayerFactory& factory, ZoomRatio zoomRatio,
76 const
Process::Context& context, QGraphicsItem* parentItem, QObject* parent);
78 Layer& layer,
int idx, qreal parentWidth, qreal parent_default_width, qreal w,
81 std::
size_t count() const noexcept {
return m_layers.size(); }
82 void removeView(
int i);
86 void setFocus(
bool focus)
const;
87 void on_focusChanged()
const;
89 void setFullView()
const;
91 void setWidth(qreal width, qreal defaultWidth)
const;
92 void setHeight(qreal height)
const;
94 void putToFront()
const;
95 void putBehind()
const;
97 void on_zoomRatioChanged(
99 qreal parent_default_width, qreal slot_height, QGraphicsItem* parentItem,
104 qreal parent_default_width, qreal slot_height, QGraphicsItem* parentItem,
107 void parentGeometryChanged()
const;
109 void fillContextMenu(
110 QMenu& m, QPoint pos, QPointF scenepos,
123 void updateYPositions(qreal y);
125 void updateContainerHeights(qreal h)
const;
127 void updateStartOffset(
double x)
const;
131 void setZValue(qreal z)
const;
133 QPixmap pixmap() const noexcept;
137 const std::vector<Layer>& layers() const noexcept {
return m_layers; }
144 std::vector<Layer> m_layers;
Definition: LayerPresenter.hpp:21
Definition: LayerPresenter.hpp:34
Definition: LayerView.hpp:21
The Process class.
Definition: score-lib-process/Process/Process.hpp:61
Definition: LayerData.hpp:55
Definition: LayerData.hpp:29
The core hierarchical and temporal process of score.
Definition: ScenarioModel.hpp:37
Definition: RectItem.hpp:12
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: ProcessContext.hpp:12
Definition: LayerData.hpp:58